/* Hero */
.section-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.25rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-width: 0;
}

.hero-grid > * {
  min-width: 0;
}

.hero-title {
  font-size: clamp(2.15rem, 5.2vw, 3.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin: 0.85rem 0 1.25rem;
}

.hero-copy {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.45vw, 1.1rem);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-visual {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.hero-canvas {
  position: relative;
  min-height: 280px;
  padding-bottom: 2.75rem;
}

.hero-browser {
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(17, 28, 46, 0.08);
}

.hero-browser__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 32px;
  padding: 0 0.85rem;
  background: #f3f6fb;
  border-bottom: 1px solid var(--line);
}

.hero-browser__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5dce6;
}

.hero-browser__bar i:first-child {
  background: #f59e9e;
}

.hero-browser img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
}

.hero-phone {
  position: absolute;
  right: -6%;
  bottom: 12%;
  width: 34%;
  min-width: 92px;
  background: #111c2e;
  border-radius: 18px;
  padding: 7px 6px 10px;
  box-shadow: 0 16px 32px rgba(17, 28, 46, 0.22);
  z-index: 2;
}

.hero-phone img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.hero-arch {
  position: absolute;
  left: -8%;
  bottom: -6%;
  width: 42%;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow: 0 10px 28px rgba(17, 28, 46, 0.08);
  z-index: 2;
}

.hero-arch svg {
  width: 100%;
  height: auto;
}

.hero-aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.hero-aside blockquote {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--text);
}

.hero-aside ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
}

.hero-aside li {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-place,
.hero-avail {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-place {
  font-weight: 600;
  color: var(--text-muted);
}

/* Proof */
.section-proof {
  padding-top: 0.5rem;
}

.proof-grid {
  display: grid;
  gap: 1.5rem 0;
}

.proof-item {
  padding: 1.6rem 0;
}

.proof-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

.proof-value {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.proof-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 20ch;
}

/* Work */
.work-layout {
  display: grid;
  gap: 2.5rem;
}

.work-head {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  align-content: start;
}

.work-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.work-link:hover {
  color: var(--accent-hover);
}

.work-grid {
  display: grid;
  gap: 2rem 1.75rem;
}

.work-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.65rem 0 0.45rem;
}

.work-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.work-ico {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.work-ico svg {
  width: 28px;
  height: 28px;
}

/* Think */
.section-think {
  background: var(--bg-soft);
}

.think-layout {
  display: grid;
  gap: 2.25rem;
}

.think-head .section-heading {
  max-width: none;
}

.think-flow {
  display: grid;
  gap: 0;
}

.think-flow li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0 1.15rem 0.15rem;
  position: relative;
}

.think-flow li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.think-flow li:first-child::before {
  top: 1.7rem;
}

.think-flow li:last-child::before {
  height: 1.7rem;
  bottom: auto;
}

.think-flow span {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
  background: var(--bg-soft);
  padding: 0.1rem 0;
}

.think-flow li > div {
  min-width: 0;
  padding-top: 0.2rem;
}

.think-flow strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.think-flow em {
  display: block;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.3rem;
}

/* Spotlight projects */
.spot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.spot-head .section-heading {
  margin: 0;
}

.spot-more-top {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.spot-more-top:hover {
  color: var(--accent-hover);
}

.spot-board {
  display: grid;
  gap: 1.25rem;
}

.spot-lead {
  display: grid;
  gap: 0;
  background: var(--ink-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spot-lead__copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: #fff;
  margin: 0.65rem 0 0.75rem;
}

.spot-lead__copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
  font-size: 0.98rem;
}

.spot-lead__copy {
  padding: 1.5rem 1.35rem 1.75rem;
}

.spot-lead__copy .btn {
  margin-top: 1.25rem;
}

.spot-lead__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.spot-lead__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.spot-lead .spot-tags {
  color: rgba(255, 255, 255, 0.55);
}

.spot-lead__media {
  overflow: hidden;
  margin: 0;
  background: #0a1220;
  display: flex;
  align-items: center;
}

.spot-lead__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 548;
  object-fit: cover;
  object-position: top center;
}

.spot-tags,
.spot-side__tags,
.pf-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
  margin: 0.7rem 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.spot-side {
  display: grid;
  gap: 0.9rem;
}

.spot-tile {
  display: grid;
  grid-template-columns: minmax(148px, 0.95fr) 1fr auto;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  min-height: 168px;
  padding: 0 0.85rem 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.spot-tile h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.spot-tile p {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spot-tile__media {
  width: 100%;
  height: 100%;
  min-height: 168px;
  overflow: hidden;
  border-radius: 0;
}

.spot-tile__media img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}

.spot-tile__copy {
  min-width: 0;
  padding: 0.85rem 0;
}

.spot-tile__go {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
}

.spot-tile--dark {
  background: #1a2740;
  border-color: transparent;
  color: #fff;
}

.spot-tile--dark h3,
.spot-tile--dark p {
  color: #fff;
}

.spot-tile--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.spot-tile--green {
  background: #eef6f0;
  border-color: #d7e8dc;
}

.spot-more {
  margin-top: 1.75rem;
}

.project-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.project-link:hover {
  color: var(--accent-hover);
}

/* Stack */
.stack-layout {
  display: grid;
  gap: 1.5rem;
}

.stack-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  align-items: center;
}

.stack-line li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stack-ico {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stack-ico img {
  width: 16px;
  height: 16px;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

.about-mid {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.about-visual {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  min-height: 220px;
  display: grid;
  align-items: center;
}

.about-visual svg {
  width: 100%;
  height: auto;
}

.about-copy p + p {
  margin-top: 1.15rem;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 38rem;
}

.about-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.25rem;
}

.about-traits li {
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Contact */
.section-contact {
  background: var(--bg-accent);
}

.contact-row {
  display: grid;
  gap: 1.5rem;
}

.section-contact .section-heading {
  max-width: 16ch;
  margin-bottom: 0;
}

.contact-lede {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 32rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
  .section-hero {
    padding: calc(var(--header-h) + 2.25rem) 0 2rem;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(1.95rem, 9vw, 2.45rem);
  }

  .hero-actions .btn,
  .section-contact .btn,
  .spot-lead__copy .btn {
    width: 100%;
  }

  .hero-canvas {
    min-height: 0;
    padding-bottom: 0;
  }

  .hero-phone,
  .hero-arch {
    display: none;
  }

  .hero-aside {
    gap: 0.85rem;
  }

  .hero-aside blockquote {
    font-size: 1.05rem;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
  }

  .proof-item {
    padding: 0;
  }

  .proof-label {
    max-width: none;
    font-size: 0.82rem;
  }

  .work-head {
    max-width: none;
  }

  .spot-head {
    align-items: start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .spot-lead__copy {
    padding: 1.25rem 1.15rem 1.4rem;
  }

  .spot-lead__copy h3 {
    font-size: 1.4rem;
  }

  .spot-tile {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 0;
    align-items: center;
  }

  .spot-tile__media {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .spot-tile__media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .spot-tile__copy {
    padding: 0.9rem 0 0.95rem 0.95rem;
  }

  .spot-tile__go {
    margin-right: 0.75rem;
  }

  .stack-line {
    gap: 0.7rem 1rem;
  }

  .about-visual {
    min-height: 0;
    padding: 1rem;
  }

  .about-traits {
    gap: 0 1rem;
  }

  .about-traits li {
    padding: 0.65rem 0;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: start;
  }

  .hero-aside ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .think-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.75rem;
  }

  .think-flow li {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .think-flow li::before {
    display: none;
  }

  .think-flow span {
    font-size: 2rem;
    background: transparent;
    padding: 0;
    margin-bottom: 0.65rem;
  }

  .think-flow li > div {
    padding-top: 0;
  }
}

@media (min-width: 768px) {
  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .proof-item {
    padding: 0;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .about-grid .section-heading,
  .about-traits {
    grid-column: 1 / -1;
  }

  .contact-row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .work-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: start;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spot-lead {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
    align-items: stretch;
  }

  .spot-lead__copy {
    order: -1;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .spot-lead__media {
    min-height: 100%;
    align-items: stretch;
  }

  .spot-lead__media img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .spot-side {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }

  .stack-layout {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
  }

  .about-traits {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 1.25rem;
  }
}

@media (min-width: 1100px) {
  .proof-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .think-flow {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .think-flow span {
    font-size: 2.15rem;
  }

  .think-flow li::after {
    content: "→";
    position: absolute;
    top: 0.7rem;
    right: -0.55rem;
    color: var(--text-dim);
    font-size: 0.85rem;
  }

  .think-flow li:last-child::after {
    display: none;
  }

  .about-grid {
    grid-template-columns: 0.85fr 1fr 1.15fr;
  }

  .about-grid .section-heading {
    grid-column: auto;
  }

  .about-traits {
    grid-column: 1 / -1;
  }
}
