/* Layout: white, left-aligned editorial grid; hairline rules separate sections; one blue accent used only for links and the main action. Single light theme by choice. */
:root {
  --paper: #ffffff;
  --ink: #0b0d12;
  --ink-2: #4a4f5c;
  --ink-3: #8a8f9c;
  --rule: #e6e7eb;
  --wash: #f6f7f9;
  --blue: #1d4ed8;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

.label { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 5; margin-top: 14px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; max-width: 980px; padding-left: 20px; padding-right: 10px; border-radius: 999px; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(11,13,18,.04), 0 8px 24px rgba(11,13,18,.06); }
.nav .btn.small { border-radius: 999px; height: 40px; padding: 0 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo-mark { width: 36px; height: 36px; flex: none; display: block; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav ul a:hover { color: var(--ink); }
@media (max-width: 700px) { .nav ul li:not(:last-child) { display: none; } }
.nav-left { display: flex; align-items: center; gap: 22px; }
.nav-projects { text-decoration: none; font-size: 15px; color: var(--ink-2); padding-left: 22px; border-left: 1px solid var(--rule); line-height: 24px; }
.nav-projects:hover { color: var(--ink); }

/* Projects: one case study per client */
.project { border-top: 1px solid var(--ink); }
.project-head { display: grid; gap: 24px 40px; padding: 32px 0 40px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .project-head { grid-template-columns: 280px 1fr; } }
.client { display: flex; align-items: center; align-self: start; gap: 14px; }
.section[id] { scroll-margin-top: 72px; }
.client-mark { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #0b3b2e; color: #fff; display: grid; place-items: center; font: 600 15px var(--font); letter-spacing: .02em; }
.client b { display: block; font-weight: 500; font-size: 1.05rem; }
.client span { font-size: 14px; color: var(--ink-3); }
.project-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 26ch; }
.project-head p { color: var(--ink-2); max-width: 62ch; margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 28px 0 0; }
.facts div { border-left: 1px solid var(--rule); padding-left: 14px; }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 15px; }
.parts { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.part { padding: 32px 28px 32px 0; min-width: 0; }
@media (min-width: 900px) { .part + .part { padding-left: 28px; border-left: 1px solid var(--rule); } }
.part h4 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.015em; }
.part .who { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.part ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.part li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.part li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink-3); }
.project .tags { padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 8px; background: var(--ink); color: #fff !important; text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid var(--ink); transition: background .15s ease; }
.btn:hover { background: #262a33; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.line { background: transparent; color: var(--ink) !important; border-color: var(--rule); }
.btn.line:hover { border-color: var(--ink-3); background: transparent; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .arrow { transition: none; } }

/* Hero */
.hero .wrap { padding-block: 80px 80px; }
@media (min-width: 900px) { .hero .wrap { padding-block: 136px 104px; } }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); margin-bottom: 36px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.75rem); max-width: 16ch; }
.hero h1 span { color: var(--ink-3); }
.hero-foot { display: grid; gap: 32px; margin-top: 48px; align-items: end; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1fr auto; } }
.hero-foot p { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { border-top: 1px solid var(--rule); }
.section .wrap { padding-block: 88px; }
.sec-head { display: grid; gap: 16px; margin-bottom: 56px; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 280px 1fr; gap: 40px; } }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 20ch; }
.sec-head p { color: var(--ink-2); max-width: 58ch; margin-top: 16px; }

/* Expertises as rows */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; gap: 12px 40px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .row { grid-template-columns: 280px 1fr 300px; align-items: start; } }
.row h3 { font-size: 1.4rem; }
.row p { color: var(--ink-2); max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* Method */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 28px 28px 8px 0; min-width: 0; }
@media (min-width: 900px) { .steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); } }
.steps .label { display: block; margin-bottom: 40px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.steps .out { margin-top: 18px; font-size: 14px; color: var(--ink); }
.steps .out b { font-weight: 500; color: var(--ink-3); font-family: var(--mono); font-size: 12px; display: block; margin-bottom: 2px; }

/* Principles */
.principles { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.principle { background: var(--paper); padding: 32px 28px; }
.principle h3 { font-size: 1.1rem; margin-bottom: 10px; }
.principle p { color: var(--ink-2); font-size: 15px; }

/* Team: photo cards, name and role over the photo, details revealed on hover / focus */
.team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.person { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--wash); isolation: isolate; outline: none; box-shadow: 0 1px 2px rgba(11,13,18,.06); }
.person:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .7s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.person::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,12,24,.86) 0%, rgba(8,12,24,.45) 34%, rgba(8,12,24,0) 60%); transition: background-color .4s ease; }
.person figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; }
.person h3 { font-size: 1.35rem; color: #fff; }
.person .role { font-size: 14px; color: rgba(255,255,255,.78); margin-top: 2px; }
.person .detail { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease, margin-top .45s ease; }
.person .detail > p { overflow: hidden; min-height: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.92); }
.person:hover::after, .person:focus-within::after { background-color: rgba(8,12,24,.35); }
.person:hover img, .person:focus-within img { transform: scale(1.04); }
.person:hover .detail, .person:focus-within .detail { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
@media (hover: none) { .person .detail { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .person img, .person .detail, .person::after { transition: none; } }

/* Contact */
.contact .wrap { padding-block: 104px; }
.contact h2 { font-size: clamp(2.2rem, 5.6vw, 4rem); max-width: 18ch; }
.mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: -0.02em; color: var(--blue); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; overflow-wrap: anywhere; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 40px; color: var(--ink-2); font-size: 15px; align-items: center; }
.full { display: flex; gap: 12px; align-items: baseline; max-width: 62ch; color: var(--ink); }
.full i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #dc6b19; box-shadow: 0 0 0 4px #fdebd8; transform: translateY(-1px); }
.copy { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 12px; font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; }
.copy:hover { border-color: var(--ink-3); color: var(--ink); }

/* Motion: content is visible at rest; JS only hides blocks that start below the fold, then reveals them on scroll */
.nav .wrap { transition: box-shadow .3s ease, background-color .3s ease; }
.nav.scrolled .wrap { background: rgba(255,255,255,.94); box-shadow: 0 1px 2px rgba(11,13,18,.05), 0 12px 32px rgba(11,13,18,.10); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .hero .status { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .08s both; }
  .hero-foot { animation: rise .9s cubic-bezier(.2,.7,.2,1) .22s both; }
  .nav .wrap { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }

  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .reveal-ready [data-reveal].in { opacity: 1; transform: none; }
  .reveal-ready .row[data-reveal] { transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), padding-left .3s cubic-bezier(.2,.7,.2,1) 0ms; }

  .reveal-ready .line-draw { position: relative; border-top-color: transparent; }
  .reveal-ready .line-draw::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 1.1s cubic-bezier(.65,0,.35,1); }
  .reveal-ready .line-draw.in::before { transform: scaleX(1); }

  .row h3, .principle h3 { transition: color .2s ease; }
  .row { transition: padding-left .3s cubic-bezier(.2,.7,.2,1); }
  @media (hover: hover) and (min-width: 900px) { .row:hover { padding-left: 12px; } .row:hover h3 { color: var(--blue); } }
}

footer { border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px; font-size: 14px; color: var(--ink-3); }
body{margin:0}img{max-width:100%}

/* Inner pages */
.page-first { border-top: 0; }
.page-first .wrap { padding-block: 96px 88px; }
.sec-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 20ch; }
.nav-projects[aria-current="page"] { color: var(--ink); font-weight: 500; }
.project-photo { margin: 40px 0 8px; }
.project-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 1207; object-fit: cover; border-radius: 16px; background: var(--wash); }
.project-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
