

:root {
  --bg: #f7f7f7;
  --ink: #2e2e2e;
  --muted: #8a8a8a;
  --line: #dcdcdc;
  --dark: #222222;
  --pad: clamp(48px, calc(48px + (100vw - 1440px) * 0.0667), 100px);
  
  --fs-64: clamp(64px, calc(64px + (100vw - 1920px) * 0.042), 96px);
  --fs-48: clamp(48px, calc(48px + (100vw - 1920px) * 0.032), 72px);
  --fs-32: clamp(32px, calc(32px + (100vw - 1920px) * 0.02), 48px);
  --fs-18: clamp(18px, calc(18px + (100vw - 1920px) * 0.008), 24px);  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.4 var(--font); letter-spacing: 0.15px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }


.btn-row { display: flex; gap: 4px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; height: 54px; padding: 0 24px;
  font-weight: 500; font-size: 16px; white-space: nowrap; transition: background .25s, color .25s;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #fff; color: var(--dark); }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--dark); color: #fff; }


.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--pad); color: var(--ink); pointer-events: none;
}
.nav > * { pointer-events: auto; transition: color .3s; }
.nav > .on-dark { color: #fff; }
body.menu-open .nav-logo { color: #fff; }
.nav-logo { font-weight: 600; font-size: 19px; letter-spacing: 0.01em; }
.nav-burger { all: unset; pointer-events: auto; cursor: pointer; width: 34px; height: 24px; display: grid; align-content: center; gap: 7px; }
.nav-burger span { display: block; height: 3px; border-radius: 1px; background: currentColor; transition: transform .3s; }

.menu { position: fixed; inset: 0; z-index: 60; }
.menu[hidden] { display: none; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .45s ease; }
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: #fff; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 48px 48px; transform: translateX(100%); transition: transform .55s cubic-bezier(.2,.7,.2,1); overflow-y: auto;
}
.menu.is-open .menu-backdrop { opacity: 1; }
.menu.is-open .menu-panel { transform: none; }
.menu-close { all: unset; cursor: pointer; position: absolute; top: 28px; right: 32px; width: 28px; height: 28px; }
.menu-close span { position: absolute; left: 3px; right: 3px; top: 13px; height: 2px; background: currentColor; }
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }
.menu-close:focus-visible, .menu-sub-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.menu-links { display: grid; justify-items: start; gap: 8px; margin-top: 4px; }
.menu-links > a, .menu-sub-toggle { font: 400 32px/1.2 var(--font); letter-spacing: -0.3px; color: inherit; }
.menu-links > a:hover, .menu-sub-toggle:hover { color: var(--muted); }
.menu-sub-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; font: 400 32px/1.2 var(--font); letter-spacing: -0.3px; }
.menu-sub-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }
.menu-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-sub { display: grid; gap: 6px; padding: 4px 0 8px 2px; }
.menu-sub[hidden] { display: none; }
.menu-sub a { font-size: var(--fs-18); color: var(--muted); }
.menu-sub a:hover { color: var(--ink); }
.menu-foot p { font-size: 24px; margin-bottom: 24px; letter-spacing: -0.2px; }
.menu-foot .btn-dark:hover { background: #444; color: #fff; }


.hero { position: sticky; top: 0; height: 100vh; z-index: 0; overflow: hidden; color: #fff; }
.hero-media, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.hero-inner {
  position: absolute; inset: auto var(--pad) var(--pad) var(--pad); z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.hero-kicker { font-size: var(--fs-18); font-weight: 500; margin-bottom: 20px; }
.hero h1 { font-size: var(--fs-48); line-height: 1.2; letter-spacing: -0.5px; max-width: none; }
.hero .btn-row { margin-top: 32px; }

.hero-img { transition: opacity 1.2s ease; }
.hero-media.is-slides .hero-img:not(.is-on) { opacity: 0; }
.hero-img + .hero-img { animation: none; }
.hero-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; justify-items: start; animation: fade-up 1s .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-index a { display: flex; align-items: center; gap: 14px; font-size: 15px; color: rgba(255,255,255,.62); transition: color .3s; }
.hero-index b { font-weight: 500; }
.hero-index .hi-place { opacity: .7; }
.hero-index .is-active a, .hero-index a:hover, .hero-index a:focus-visible { color: #fff; }
.hero-index a:focus-visible { outline: 1px solid #fff; outline-offset: 6px; }
.hi-line { position: relative; flex: none; width: 32px; height: 1px; background: rgba(255,255,255,.3); }
.hi-line::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-index .is-active .hi-line::after { animation: hi-run var(--hi-dur, 6s) linear forwards; }
.hero-index.is-paused .is-active .hi-line::after { animation: none; transform: scaleX(1); }
@keyframes hi-run { to { transform: scaleX(1); } }

.main { position: relative; z-index: 1; background: var(--bg); }


.portfolio { padding: 160px 0 4px; }
.portfolio-head { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding: 0 var(--pad); margin-bottom: 72px; }
.portfolio-title { font-size: var(--fs-64); line-height: 1.1; letter-spacing: -1.5px; }
.portfolio-intro { max-width: 470px; text-wrap: balance; font-size: var(--fs-18); line-height: 1.45; color: #555; }
.grid { display: grid; gap: 4px; padding: 0 4px; }
.grid-row { display: grid; gap: 4px; }
.grid-row.r2 { grid-template-columns: repeat(2, 1fr); }
.grid-row.r3 { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; overflow: hidden; display: block; background: #ddd; }
.tile-img { display: block; width: 100%; height: 100%; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.05); }
.grid-row.fx { display: flex; gap: 4px; }
.grid-row.fx .tile { flex-basis: 0; aspect-ratio: var(--ar, 16 / 9); }
.tall .tile { aspect-ratio: 706 / 848; }
.wide .tile { aspect-ratio: 470 / 313; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.2) 22%, rgba(0,0,0,0) 45%); pointer-events: none; }
.tile-cap { position: absolute; z-index: 1; left: 24px; bottom: 24px; color: #fff; display: grid; gap: 2px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.tile-name { font-size: var(--fs-18); font-weight: 500; }
.tile-sub { font-size: 14px; opacity: .85; }



.services { height: 210vh; position: relative; overflow: clip; }
.services-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 7vh, 88px); padding-top: 64px; }
.services-title { text-align: center; font-size: var(--fs-48); line-height: 1.2; letter-spacing: -0.5px; max-width: 860px; margin: 0 auto; padding: 0 var(--pad); }
.carousel-stage { transform-origin: 50% 50%; will-change: transform; perspective: 1800px; height: var(--h0, 420px); position: relative; }
.carousel { position: absolute; left: 50%; top: 0; width: 0; height: 100%; transform-style: preserve-3d; }
.card {
  position: absolute; top: 0; width: var(--cw); height: var(--ch, calc(var(--cw) * 1.3)); margin-left: calc(var(--cw) / -2);
  overflow: hidden; display: block; background: #ccc; will-change: transform;
}
.carousel:not(.is-flat) .card { pointer-events: none; }
.carousel.is-flat .card { transition: box-shadow .5s; }
.carousel.is-flat .card:hover { box-shadow: 0 24px 48px rgba(0,0,0,.18); }
.card img { width: 100%; height: 100%; object-fit: cover; }

.card-bim { background: #d8d8d6; cursor: default; }
.card.card-bim img { object-fit: contain; padding: 10% 7% 40%; }
.card-bim::after { display: none; }
.card.card-bim h3 { color: #1f1f1f; }
.card.card-bim h3 small { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: #555; letter-spacing: 0; }
.carousel.is-flat .card-bim:hover { box-shadow: none; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45)); }
.card h3 { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; color: #fff; font-size: var(--fs-32); font-weight: 500; line-height: 1.2; }


.about { padding: 40px var(--pad) 200px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.about-text { font-size: var(--fs-48); line-height: 1.2; letter-spacing: -0.5px; max-width: 1060px; }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 520px; justify-self: end; width: 100%; }
.member { margin: 0; }
.member img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.member figcaption { display: grid; gap: 2px; margin-top: 12px; }
.member b { font-size: 16px; font-weight: 500; }
.member span { font-size: 14px; color: var(--muted); }
.member-bio { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: #555; }
.member-tools { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }


.why { height: 210vh; position: relative; }
.why-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.why-left { display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--pad) var(--pad); background: #fff; }
.why-left h2 { font-size: var(--fs-48); line-height: 1.2; letter-spacing: -0.5px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-item { border-top: 1px solid var(--line); padding: 20px 0; color: #6f6f6f; transition: color .4s; }
.why-item.is-active { color: var(--ink); }
.why-head { display: flex; align-items: center; }
.why-item h3 { font-size: 20px; letter-spacing: -0.2px; }
.why-item p { font-size: 14px; color: #555; max-width: 470px; margin: 0; max-height: 0; overflow: hidden; transition: max-height .5s, margin .5s; }
.why-item.is-active p { max-height: 120px; margin-top: 16px; }
.why-right { position: relative; overflow: hidden; background: #ccc; }
.why-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.why-right img.is-active { opacity: 1; }


.cta { height: 200vh; position: relative; }
.cta-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; }
.cta-media { position: absolute; inset: 0; clip-path: inset(var(--clip, 12%) var(--clip, 12%) var(--clip, 12%) var(--clip, 12%)); }
.cta-img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.cta-inner { position: absolute; left: 50%; bottom: 50%; transform: translate(-50%, 50%); z-index: 1; text-align: center; opacity: var(--cta-o, 0); transition: opacity .3s; }
.cta h2 { font-size: var(--fs-64); line-height: 1.1; letter-spacing: -1.5px; max-width: 760px; margin: 0 auto 40px; }
.cta .btn-row { justify-content: center; }


.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 160px var(--pad); }
.faq h2 { font-size: var(--fs-48); line-height: 1.2; letter-spacing: -0.5px; max-width: 360px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 400; transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { padding: 0 48px 24px 0; color: #555; }


.footer { background: var(--dark); color: #fff; padding: 64px var(--pad) 32px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-cta h2 { font-size: var(--fs-32); line-height: 1.2; max-width: 380px; margin-bottom: 32px; }
.footer-col { display: grid; align-content: start; gap: 10px; font-weight: 500; }
.footer-col p:not(.footer-label) { font-weight: 500; }
.footer-label { font-size: 13px; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.footer-col a:hover { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 96px; font-size: 13px; }


.p-hero { height: 100vh; position: sticky; top: 0; z-index: 0; }
.p-hero-img { width: 100%; height: 100%; object-fit: cover; }
.p-body { max-width: 1040px; margin: 0 auto; padding: 96px var(--pad) 120px; box-sizing: content-box; }
.p-title { font-size: var(--fs-48); line-height: 1.2; letter-spacing: -0.5px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 32px 0 40px; font-size: 16px; }
.p-meta div { display: grid; gap: 4px; }
.p-meta .p-meta-k { font-size: 13px; color: var(--muted); }
.p-story { max-width: 860px; display: grid; gap: 16px; font-size: var(--fs-18); line-height: 1.5; color: #555; }
.p-images { display: grid; gap: 80px; margin-top: 120px; }
.p-images img { width: 100%; height: auto; }
.p-next { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 4px 4px; }
.p-next a { position: relative; height: 100vh; max-height: 900px; overflow: hidden; display: block; }
.p-next img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.p-next a:hover img { transform: scale(1.05); }
.p-next span { position: absolute; left: 32px; bottom: 32px; color: #fff; font-size: var(--fs-32); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.p-next span { z-index: 1; }

.p-next a:only-child { grid-column: 1 / -1; }
.p-next a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .45)); pointer-events: none; }




body { animation: page-in .6s ease both; }
body.is-leaving { opacity: 0; transition: opacity .35s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }




html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }


.hero-img { animation: hero-zoom 2.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.line { display: block; overflow: hidden; }
.line > span { display: inline-block; animation: line-up 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .line:nth-child(1) > span { animation-delay: .25s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .38s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .51s; }

.hero h1 .line > span { white-space: nowrap; }
@media (max-width: 767px) { :root .hero h1 { font-size: min(34px, 7.1vw); } }
.hero-kicker.line > span { animation-delay: .1s; }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
.hero .btn-row { animation: fade-up 1s .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-shade { position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; z-index: 1; }



.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  font-size: 13px; font-weight: 500; transform: translate(-200px, -200px) scale(0);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.cursor.is-on { transform: translate(var(--cx), var(--cy)) scale(1); }
@media (hover: hover) and (pointer: fine) { .tile, .p-next a, .p-images img { cursor: none; } }
@media not all and (hover: hover) { .cursor { display: none; } }


.card img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }



.footer-mark {
  display: inline-block; margin-top: 96px; font-weight: 600; letter-spacing: -0.04em; line-height: .8;
  font-size: 14vw; white-space: nowrap; color: #2e2e2e; user-select: none;
}
.footer-bottom { margin-top: 32px; }


.p-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.p-back:hover { color: var(--ink); }
.p-images img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: #111; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .2s; -webkit-tap-highlight-color: transparent; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
.lightbox button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox .lb-close { top: 16px; right: 16px; }  
.lightbox .lb-prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox .lb-next { right: 16px; top: 50%; margin-top: -26px; }
@media (max-width: 767px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; margin-top: 0; } .lb-count { bottom: 38px; } }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #aaa; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  body, .hero-img, .line > span, .hero .btn-row, .hero-index { animation: none !important; }
  .hero-img { transition: none; }
  .hero-index .is-active .hi-line::after { animation: none; transform: scaleX(1); }
  .menu-panel, .menu-backdrop { transition: none; }
}


.s-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0) 50%); pointer-events: none; }
.s-hero-cap { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); bottom: clamp(32px, 6vh, 64px); color: #fff; text-shadow: 0 1px 16px rgba(0,0,0,.25); }
.s-kicker { display: flex; gap: 16px; font-size: var(--fs-18); font-weight: 500; margin-bottom: 12px; }
.s-title { font-size: var(--fs-64); line-height: 1.05; letter-spacing: -1px; }
.s-intro { padding: 160px var(--pad) 80px; }
.s-intro .about-text { font-size: var(--fs-32); line-height: 1.3; max-width: 980px; }
.s-more { margin-top: 40px; height: 72px; padding: 0 36px; font-size: 20px; }
@media (max-width: 767px) { .s-more { height: auto; min-height: 56px; padding: 14px 20px; font-size: 17px; white-space: normal; } }
.s-flow h2, .s-projects h2, .s-incl h2, .s-steps h2 { font-size: var(--fs-48); line-height: 1.2; letter-spacing: -0.5px; max-width: 900px; margin-bottom: 56px; }

.s-flow { height: 260vh; position: relative; }
.s-flow-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: center; padding: 0 var(--pad); --draw-ink: var(--ink); }
.s-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.s-flow-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); transition: color .4s; }
.s-flow-steps li.is-active { color: var(--ink); }
.s-flow-n { font-size: 14px; padding-top: 3px; }
.s-flow-steps h3 { font-size: var(--fs-18); font-weight: 500; }
.s-flow-steps p { grid-column: 2; font-size: 16px; line-height: 1.5; margin-top: 4px; max-width: 42ch; }
.s-draw { aspect-ratio: 3 / 2; max-height: 80vh; }  


.s-projects { padding: 40px var(--pad) 120px; }
.s-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.s-grid .tile { aspect-ratio: 3 / 2; }
.s-grid .tile-cap { z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; gap: 16px; text-shadow: none; }
.s-grid .tile-name, .s-grid .tile-sub { font-size: 14px; font-weight: 400; opacity: 1; }

.s-incl { padding: 120px var(--pad); background: #fff; }
.s-incl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.s-incl-grid > div { border-top: 2px solid var(--ink); padding-top: 24px; }
.s-incl h3 { font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -0.3px; margin-bottom: 14px; }
.s-incl p { font-size: 17px; line-height: 1.55; color: #555; max-width: 32ch; }

.s-steps { padding: 160px var(--pad) 40px; }
.s-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.s-steps li { position: relative; padding: 28px 24px 0 0; border-top: 2px solid var(--ink); }
.s-steps li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.s-step-n { font-size: 14px; color: var(--muted); }
.s-steps h3 { font-size: var(--fs-18); font-weight: 500; margin: 8px 0 10px; }
.s-steps p { font-size: 15px; line-height: 1.55; color: #666; }
.s-next small { display: block; font-size: 14px; margin-bottom: 6px; opacity: .85; }

.s-next a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 40%); pointer-events: none; }
.s-next span { z-index: 1; }

.s-arrow { position: absolute; top: 50%; z-index: 1; width: 64px; height: 64px; margin-top: -32px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .3s; }
.s-arrow svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-next .is-prev .s-arrow { left: 32px; }
.s-next .is-next .s-arrow { right: 32px; }
.s-next .is-prev:hover .s-arrow { transform: translateX(-6px); }
.s-next .is-next:hover .s-arrow { transform: translateX(6px); }
.s-next .is-next span { left: auto; right: 32px; text-align: right; }
@media (max-width: 767px) { .s-arrow { width: 48px; height: 48px; margin-top: -24px; } .s-next .is-prev .s-arrow { left: 20px; } .s-next .is-next .s-arrow { right: 20px; } }
@media (max-width: 991px) {
  .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-incl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-steps ol { grid-template-columns: 1fr; }
  .s-steps li { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 36px 28px; }
  .s-steps li:last-child { padding-bottom: 0; }
  .s-steps li::before { left: -7px; top: 2px; }
}
@media (max-width: 767px) {
  .s-intro { padding-top: 96px; }
  .s-title { font-size: 44px; line-height: 1.1; }
  .s-intro .about-text { font-size: 24px; }
  .s-grid { grid-template-columns: 1fr; gap: 16px; }
  .s-incl-grid { grid-template-columns: 1fr; gap: 28px; }
  .s-flow h2, .s-projects h2, .s-incl h2, .s-steps h2 { margin-bottom: 36px; }
  .s-flow { height: auto; padding: 64px 0; }
  .s-flow-sticky { position: static; height: auto; grid-template-columns: 1fr; gap: 24px; }
  .s-draw { order: -1; position: sticky; top: 64px; z-index: 2; background: var(--bg, #f7f7f7); box-shadow: 0 -64px 0 0 var(--bg, #f7f7f7); }
  .s-flow-steps { padding-bottom: 25vh; }
}


.legal { max-width: 720px; margin: 0 auto; padding: 160px var(--pad) 120px; box-sizing: content-box; }
.legal-kicker { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.legal h1 { font-size: var(--fs-48); line-height: 1.15; letter-spacing: -0.5px; }
.legal-lead { font-size: var(--fs-18); line-height: 1.5; color: #555; margin-top: 24px; }
.legal section { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; display: grid; gap: 14px; }
.legal h2 { font-size: 22px; font-weight: 500; line-height: 1.3; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: #444; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.legal a { text-decoration: underline; }
.legal a:hover { color: var(--muted); }
.legal strong { font-weight: 500; color: var(--ink); }

mark.gap { background: #fff1b8; color: var(--ink); padding: 0 4px; }
@media (max-width: 767px) { .legal { padding-top: 112px; } }


.contact { position: fixed; inset: 0; z-index: 65; }
.contact[hidden] { display: none; }
.contact-panel {
  position: absolute; inset: 0; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  clip-path: inset(100% 0 0 0); transition: clip-path .7s cubic-bezier(.7,0,.2,1);
}
.contact.is-open .contact-panel { clip-path: inset(0 0 0 0); }
.contact-left { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 96px clamp(32px, 5vw, 96px) 48px var(--pad); overflow-y: auto; }
.contact-kicker { font-size: var(--fs-18); font-weight: 500; margin-bottom: -16px; }
.contact-left h2 { font-size: var(--fs-32); line-height: 1.2; letter-spacing: -0.3px; max-width: 640px; }

.cform { max-width: 720px; }
.cform-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span, .chips legend { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 10px 0; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: #b4b4b4; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #b3261e; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.cform-trap { display: none; }
.cform-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.cform-note { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 340px; }
.cform-note a { text-decoration: underline; }
.cform .btn { border: 0; cursor: pointer; font-family: inherit; }
.cform .btn-dark:hover { background: #444; color: #fff; }
.cform .btn:disabled { opacity: .5; cursor: progress; }
.cform .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cform-status { font-size: 14px; margin-top: 12px; min-height: 20px; }
.cform-status.is-error { color: #b3261e; }
.cform-done h3 { font-size: var(--fs-32); line-height: 1.2; margin-bottom: 12px; }
.cform-done p { font-size: 18px; color: var(--muted); }

.contact-right { display: flex; flex-direction: column; background: #fff; overflow-y: auto; }
.contact-media { position: relative; flex: 0 0 38%; min-height: 200px; overflow: hidden; background: #ccc; }
.contact-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.contact.is-open .contact-img { transform: none; }
.contact-info { display: flex; flex-direction: column; gap: 28px; padding: 32px clamp(24px, 3vw, 48px) 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-grid a { display: block; font-size: 16px; line-height: 30px; }
.contact-grid .contact-mail { font-size: 20px; font-weight: 500; line-height: 1.3; }
.contact-right a:hover { color: var(--muted); }
.contact-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.contact-people { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.person { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.person img { display: block; width: 72px; aspect-ratio: 3 / 4; object-fit: cover; }
.person-name { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.person dl { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 0; font-size: 14px; line-height: 22px; }
.person dt { color: var(--muted); }
.person dd { margin: 0; overflow-wrap: anywhere; }
.contact-close { all: unset; cursor: pointer; position: absolute; top: 24px; right: var(--pad); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.contact-close span { position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: var(--ink); }
.contact-close span:first-child { transform: rotate(45deg); }
.contact-close span:last-child { transform: rotate(-45deg); }
.contact-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body.contact-open .nav { visibility: hidden; }
@media (max-width: 991px) {
  .contact-panel { display: block; overflow-y: auto; }
  .contact-left { padding: 88px var(--pad) 48px; justify-content: flex-start; overflow: visible; }
  .contact-right { overflow: visible; }
  .contact-media { height: 26vh; flex: none; }
  .contact-close { position: fixed; box-shadow: 0 0 0 1px var(--line); }
}
@media (max-width: 767px) {
  .cform-fields { grid-template-columns: 1fr; gap: 18px; }
  .cform-foot { flex-direction: column-reverse; align-items: stretch; }
  .cform .btn { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .person dl { grid-template-columns: 1fr; }
  .person dt { font-size: 12px; line-height: 18px; }
  .person dd + dt { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .contact-panel, .contact-img { transition: none; } }


@media (max-width: 991px) {
  :root { --pad: 24px; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero h1, .about-text, .services-title, .faq h2, .why-left h2, .p-title { font-size: 34px; }
  .portfolio-title { font-size: 44px; }
  .portfolio-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; }
  .hero-index { gap: 10px; }
  .hero-index a { font-size: 14px; }
  .portfolio { padding-top: 112px; }
  .cta h2 { font-size: 40px; }
  .cta-inner { width: calc(100% - 2 * var(--pad)); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .team { justify-self: start; max-width: none; }
  .faq { grid-template-columns: 1fr; padding: 112px var(--pad); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }
  .why { height: auto; }
  .why-sticky { position: static; height: auto; grid-template-columns: 1fr; }
  .why-right { height: 60vh; order: -1; }
  .why-item { opacity: 1; }
  .why-item p { max-height: none; margin-top: 12px; }
}
@media (max-width: 767px) {
  .grid-row.r2, .grid-row.r3 { grid-template-columns: 1fr; }
  .grid-row.fx { flex-direction: column; }
  .grid-row.fx .tile { flex-basis: auto; }
  .tall .tile, .wide .tile { aspect-ratio: 4 / 5; }
  
  .services { height: auto; padding: 112px 0; overflow: visible; }
  .services-sticky { position: static; height: auto; padding-top: 0; gap: 40px; }
  .carousel-stage { perspective: none; height: auto; padding: 0 var(--pad); }
  .carousel { position: static; width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { position: relative; width: auto; height: auto; aspect-ratio: 4 / 5; margin: 0; pointer-events: auto !important; }
  .card h3 { font-size: 18px; left: 14px; right: 14px; bottom: 14px; }
  .about { padding-bottom: 120px; }
  .p-next { grid-template-columns: 1fr; }
  .p-next a { height: 70vh; }
  .p-images { gap: 24px; margin-top: 64px; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile img, .p-next img { transition: none; }
}


@media (max-width: 767px) { img[style*="--pos"] { object-position: var(--pos); } }


@media (max-width: 767px) {
  .nav { padding-top: 16px; padding-bottom: 16px; transition: transform .35s ease, background-color .3s ease, box-shadow .3s ease; }
  .nav.is-bar { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
  .nav.is-bar > .on-dark { color: var(--ink); }
  .nav.is-hidden { transform: translateY(-100%); }
  .p-hero { position: relative; height: auto; aspect-ratio: 16 / 9; margin-top: 60px; }
  .p-body { padding-top: 40px; }
  .p-next { grid-template-columns: 1fr 1fr; gap: 4px; }
  .p-next a { height: auto; aspect-ratio: 4 / 3; }
  .p-next a:only-child { aspect-ratio: 16 / 9; }
  .p-next span { left: 12px; right: 12px; bottom: 10px; font-size: 15px; line-height: 1.2; }
}


@supports (height: 100svh) {
  @media (max-width: 767px) {
    .hero, .cta-sticky { height: 100svh; }
    .cta { height: 160svh; }
  }
}
