/* ------------------------------------------------------------------
   Tokens. Palette v2: linen, sage stone, deep olive, clay. One accent role, two modes.
------------------------------------------------------------------- */
:root {
  --bg: #F1ECE0;                 /* linen */
  --bg-tint: #DAD8C6;            /* sage stone */
  --bg-alt: #F8F5EC;             /* ivory */
  --surface: #FBF9F3;
  --ink: #262822;
  --ink-soft: #43463B;
  --heading: #343A25;            /* deep olive */
  --line: rgba(52, 58, 37, .22);
  --accent: #B4572F;             /* clay */
  --accent-ink: #FFFFFF;
  --accent-text: #9A4524;
  --glass: rgba(241, 236, 224, .74);
  --focus: #B4572F;

  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --chamfer: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
}
:root[data-theme="dark"] {
  --bg: #1E2218;
  --bg-tint: #181B13;
  --bg-alt: #272C1F;
  --surface: #2F3526;
  --ink: #E8E3D2;
  --ink-soft: #B9BCA8;
  --heading: #EFE9D6;
  --line: rgba(232, 227, 210, .2);
  --accent: #E9A77E;
  --accent-ink: #1E2218;
  --accent-text: #E9A77E;
  --glass: rgba(30, 34, 24, .74);
  --focus: #E9A77E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.04;
  color: var(--heading);
}
.h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.h3 { color: var(--ink); font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; font-weight: 400; }
.display em { font-style: normal; color: var(--accent-text); }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }

/* Buttons: pill for every interactive control */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 500 .95rem/1 var(--font-body); letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--heading); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn i { font-size: 1.1rem; transition: transform .35s var(--ease); }
.btn:hover i { transform: translate(2px, -2px); }

/* Signature: the konam (angle). One cut corner on every photograph. */
.cut { clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer))); }
.photo { position: relative; overflow: hidden; background: var(--bg-tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.photo:hover img { transform: scale(1.035); }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  padding: 0 var(--gutter); pointer-events: none;
}
.nav-bar {
  pointer-events: auto; max-width: var(--maxw); margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 10px 0 14px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 40px rgba(60, 44, 30, .08);
  transition: box-shadow .3s;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; display: grid; place-items: center; }
.brand-mark img { width: 124%; height: 124%; max-width: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 400 1.05rem/1.1 var(--font-display); letter-spacing: .02em; color: var(--heading); white-space: nowrap; }
.brand-sub { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 10px 14px; border-radius: 999px; font-size: .92rem; color: var(--ink-soft); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--heading); background: var(--bg-tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; color: var(--heading); cursor: pointer; font-size: 1.25rem;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--bg-tint); }
.menu-btn { display: none; }
.nav .btn { min-height: 44px; padding: 0 22px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: inline; }
:root[data-theme="dark"] .theme-moon { display: none; }

/* ---------------- Hero ---------------- */
/* Full-screen "room" hero. The photograph opens like a doorway, two receding
   frames give one-point depth, and the view shifts with the pointer. */
.stage {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100dvh;
  display: flex; align-items: flex-end; color: #F4EFE2; background: #1E2218;
  --px: 0; --py: 0;
}
.stage-media { position: absolute; inset: 0; z-index: -3; clip-path: inset(20% 26% 20% 26%); animation: open 1.7s .15s var(--ease) forwards; }
.stage-zoom, .stage-pan { position: absolute; inset: 0; }
.stage-pan { inset: -4%; transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -10px), 0); transition: transform .9s var(--ease); }
.stage-pan img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; animation: drift 28s ease-in-out infinite alternate; }
.stage::before { /* warm scrim keeps type readable on any photo */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(24, 28, 18, .78) 0%, rgba(24, 28, 18, .38) 48%, rgba(24, 28, 18, .05) 100%),
    linear-gradient(0deg, rgba(24, 28, 18, .62) 0%, rgba(24, 28, 18, 0) 45%);
}
.frames { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.frames i {
  position: absolute; border: 1px solid rgba(246, 240, 226, .32);
  opacity: 0; animation: fade 1.2s 1.2s var(--ease) forwards;
  transform: translate3d(calc(var(--px) * var(--k) * 1px), calc(var(--py) * var(--k) * 1px), 0);
  transition: transform .9s var(--ease);
}
.frames i:nth-child(1) { inset: 7% 5% 9% 5%; --k: 10; }
.frames i:nth-child(2) { inset: 15% 12% 19% 12%; --k: 22; border-color: rgba(246, 240, 226, .18); }
.stage-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 132px var(--gutter) clamp(36px, 6vw, 72px);
  display: grid; gap: 36px; align-items: end;
}
.stage h1 {
  font-family: var(--font-display); font-weight: 200; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(2.8rem, 7vw, 7.4rem); color: #F8F3E6; margin: 0;
}
.stage h1 span { display: block; overflow: hidden; padding-bottom: .08em; }
.stage h1 span > b { display: block; font-weight: inherit; transform: translateY(105%); animation: line 1.2s var(--ease) forwards; }
.stage h1 span:nth-child(1) > b { animation-delay: .75s; }
.stage h1 span:nth-child(2) > b { animation-delay: .9s; color: #E9A77E; }
.stage-card {
  max-width: 430px; padding: 30px 32px 32px 30px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
  background: rgba(30, 34, 24, .42); border: 1px solid rgba(246, 240, 226, .22);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  opacity: 0; transform: translateY(24px); animation: rise 1.1s 1.25s var(--ease) forwards;
}
.stage-card p { color: #EFE7D6; font-size: 1.02rem; line-height: 1.6; }
.stage-card .btn-primary { background: #E9A77E; color: #1E2218; }
@keyframes open { to { clip-path: inset(0 0 0 0); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes fade { to { opacity: 1; } }
@keyframes line { to { transform: none; } }
@supports (animation-timeline: scroll()) {
  .stage-zoom { animation: recede linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes recede { to { transform: scale(1.14); opacity: .45; } }
}

/* ---------------- Approach ---------------- */
.section { padding: clamp(80px, 12vw, 176px) 0; }
.approach-grid { display: grid; gap: 56px; align-items: center; }
.approach-copy { display: flex; flex-direction: column; gap: 28px; }
.approach-copy .body { display: flex; flex-direction: column; gap: 18px; color: var(--ink-soft); max-width: 54ch; }
.approach-photo { aspect-ratio: 4 / 5; }

/* ---------------- Services ---------------- */
.services { background: var(--bg-tint); }
.services-grid { display: grid; gap: 48px; }
.services-head { display: flex; flex-direction: column; gap: 20px; }
.services-list { display: grid; grid-template-columns: 1fr; gap: 0 56px; }
.svc { padding: 34px 0 38px; border-top: 1px solid var(--line); display: grid; gap: 14px; transition: padding-left .45s var(--ease); }
.svc i { font-size: 1.9rem; color: var(--accent-text); }
.svc p { color: var(--ink-soft); max-width: 40ch; font-size: .98rem; }
.svc:hover { padding-left: 10px; }

/* ---------------- Scroll image sequence ---------------- */
.seq { position: relative; background: #1E2218; color: #F4EFE2; }
.seq-track { height: calc(var(--n) * 90vh + 100vh); position: relative; }
.seq-sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.seq canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seq-scrim { position: absolute; inset: 0; background:
  linear-gradient(0deg, rgba(24,28,18,.82) 0%, rgba(24,28,18,.35) 38%, rgba(24,28,18,0) 62%),
  linear-gradient(90deg, rgba(24,28,18,.45) 0%, rgba(24,28,18,0) 55%); }
.seq-ui { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(36px, 6vw, 64px); display: grid; gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.seq-copy { max-width: 620px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.seq-copy.swap { opacity: 0; transform: translateY(10px); }
.seq-title { font-family: var(--font-display); font-weight: 200; letter-spacing: -.04em; line-height: 1.02; font-size: clamp(2.2rem, 5.4vw, 4.6rem); color: #F8F3E6; margin-bottom: 18px; }
.seq-text { color: #EADFC9; font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 46ch; }
.seq-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seq-steps button {
  font: 500 .85rem/1 var(--font-body); min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; color: #EFE7D6;
  background: rgba(30, 34, 24, .38); border: 1px solid rgba(246,240,226,.26);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.seq-steps button:hover { border-color: #E9A77E; }
.seq-steps button[aria-current="step"] { background: #E9A77E; color: #1E2218; border-color: #E9A77E; }
.seq-steps button:active { transform: scale(.97); }
.seq-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(246,240,226,.14); }
.seq-bar i { display: block; height: 100%; background: #E9A77E; transform-origin: 0 50%; transform: scaleX(0); }
.seq.static .seq-track { height: 100dvh; }

/* ---------------- Material board ---------------- */
.mat-head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.mat-grid { display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
.mat { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.mat .photo { aspect-ratio: 4 / 3; }
.mat .photo img { transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 50%); }
.mat .photo:hover img { transform: scale(calc(var(--z, 1) * 1.04)); }
.mat figcaption p { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.chip { display: flex; flex-direction: column; gap: 12px; }
.chip span { display: block; aspect-ratio: 1.15; background: var(--c); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); transition: transform .5s var(--ease); }
.chip:hover span { transform: translateY(-6px); }
.chip b { font-weight: 500; font-size: .9rem; color: var(--heading); }

/* ---------------- Frames that resize on scroll ---------------- */
.frs { background: #1E2218; color: #F4EFE2; }
.fr-track { height: 420vh; position: relative; }
.fr-sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.fr-layer { position: absolute; inset: 0; will-change: clip-path; }
.fr-layer img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.fr-layer:not(:first-child) { clip-path: polygon(0 0, 0 0, 0 0, 0 0, 0 0); }
.fr-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fr-outline polygon { fill: none; stroke: #E9A77E; stroke-width: 1.5; opacity: 0; }
.fr-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(24,28,18,.78) 0%, rgba(24,28,18,.25) 34%, rgba(24,28,18,0) 58%); }
.fr-ui { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: var(--maxw); padding-bottom: clamp(36px, 6vw, 64px); pointer-events: none; }
.fr-copy { max-width: 560px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.fr-copy.swap { opacity: 0; transform: translateY(10px); }
.fr-title { font-family: var(--font-display); font-weight: 200; letter-spacing: -.04em; line-height: 1.02; font-size: clamp(2.2rem, 5.4vw, 4.6rem); color: #F8F3E6; margin-bottom: 16px; }
.fr-text { color: #E9E0C8; font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 44ch; }
@media (prefers-reduced-motion: reduce) {
  .fr-track { height: auto; }
  .fr-sticky { position: static; height: auto; overflow: visible; }
  .fr-layer, .fr-layer:not(:first-child) { position: relative; height: 70dvh; clip-path: none; }
  .fr-outline, .fr-scrim, .fr-ui { display: none; }
}

/* Photographs grow from a small frame as they enter (progressive enhancement) */
@supports (animation-timeline: view()) {
  .grow { animation: grow linear both; animation-timeline: view(); animation-range: entry 4% cover 36%; }
  @keyframes grow {
    from { clip-path: polygon(16% 16%, calc(84% - 20px) 16%, 84% calc(16% + 20px), 84% 84%, 16% 84%); }
    to { clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }
  }
  @media (prefers-reduced-motion: reduce) { .grow { animation: none; } }
}

/* ---------------- Founder's message ---------------- */
.message { text-align: left; }
.message-inner { max-width: 1040px; display: flex; flex-direction: column; gap: 40px; }
.message-text {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -.02em;
  font-size: clamp(1.5rem, 3.1vw, 2.55rem); line-height: 1.28; color: var(--heading);
}
.message-by { display: flex; align-items: center; gap: 16px; color: var(--ink-soft); font-size: .95rem; }
.message-by::before { content: ""; width: 56px; height: 1px; background: var(--accent-text); }
.message-by strong { color: var(--heading); font-weight: 600; }

/* ---------------- People ---------------- */
.people { background: var(--bg-alt); }
.people-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.people-grid { display: grid; gap: 64px 40px; }
.person { display: flex; flex-direction: column; gap: 28px; }
.person-photo { aspect-ratio: 4 / 5; }
.person-photo img { filter: grayscale(1) contrast(1.02); object-position: 50% 22%; }
.person-role { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.person h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.03em; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; color: var(--heading); margin: 6px 0 14px; }
.person p { color: var(--ink-soft); max-width: 50ch; }

/* ---------------- Projects ---------------- */
.projects-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 460px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 24px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.proj { display: flex; flex-direction: column; gap: 18px; }
.proj .photo { aspect-ratio: 4 / 5; }
.proj-meta { display: flex; flex-direction: column; gap: 4px; }
.proj-meta small { color: var(--ink-soft); font-size: .85rem; }
.rail-controls { display: flex; gap: 10px; }
.rail-controls .icon-btn { border-color: var(--line); }
.projects-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------------- Contact ---------------- */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; gap: 64px; }
.contact-intro { display: flex; flex-direction: column; gap: 22px; }
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--heading); letter-spacing: .02em; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 15px 18px; min-height: 52px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: .85; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-text) 28%, transparent); }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.field .err { font-size: .82rem; color: #A63A2B; min-height: 1.2em; }
:root[data-theme="dark"] .field .err { color: #F0A090; }
.form-status { font-size: .95rem; color: var(--accent-text); min-height: 1.4em; }
.details { display: grid; gap: 40px; align-content: start; }
.detail h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; letter-spacing: -.02em; color: var(--heading); margin-bottom: 14px; }
.detail address { font-style: normal; color: var(--ink-soft); margin-bottom: 18px; }
.detail ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.detail a.link { border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
.detail a.link:hover { color: var(--accent-text); border-color: var(--accent-text); }
.detail .note { color: var(--ink-soft); font-size: .92rem; }
.map-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 500; }
.map-link i { transition: transform .35s var(--ease); }
.map-link:hover i { transform: translate(2px, -2px); }

/* ---------------- Footer ---------------- */
.footer { padding: 72px 0 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer-brand .big { font: 300 clamp(2rem, 4vw, 3rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--heading); }
.footer-brand p { color: var(--ink-soft); font-size: .95rem; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-links a { color: var(--ink-soft); transition: color .2s; }
.footer-links a:hover { color: var(--accent-text); }
.footer-links h4 { margin: 0 0 14px; font: 600 .75rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--heading); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }

/* Floating quick contact (like the reference) */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 10px; }
.fab a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--glass); border: 1px solid var(--line); color: var(--heading);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 28px rgba(60, 44, 30, .14); transition: transform .35s var(--ease), background-color .2s;
}
.fab a:hover { transform: translateY(-3px); background: var(--accent); color: var(--accent-ink); }

/* Logo handling: logo art is black on white */
.logo-img { mix-blend-mode: multiply; }

/* Reveal motion: communicates reading order as content enters */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero-in > * { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hero-in > *:nth-child(1) { animation-delay: .1s; }
.hero-in > *:nth-child(2) { animation-delay: .25s; }
.hero-in > *:nth-child(3) { animation-delay: .4s; }
.hero-photo-in { opacity: 0; clip-path: polygon(0 0, 0 0, 0 var(--chamfer), 0 100%, 0 100%); animation: unveil 1.3s .2s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { to { opacity: 1; clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stage-card, .frames i { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .stage-media { clip-path: none; animation: none; }
  .stage-zoom, .stage-pan, .stage-pan img { animation: none !important; transform: none !important; transition: none !important; }
  .stage h1 span > b { transform: none; animation: none; }
  .photo img, .svc, .btn, .fab a { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-bar, .fab a { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------------- Breakpoints ---------------- */
@media (min-width: 768px) {
  .services-list { grid-template-columns: 1fr 1fr; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .people-grid .person:nth-child(2) { margin-top: 96px; }
}
@media (min-width: 960px) {
  .seq-ui { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .seq-steps { justify-content: flex-end; padding-right: 72px; }
  .mat-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mat-a .photo, .mat-b .photo, .mat-c .photo { aspect-ratio: 4 / 5; }
  .palette { grid-column: 1 / -1; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 24px; }
  .stage-card { justify-self: end; }
  .stage h1 span { display: inline-block; margin-right: .22em; }
  .approach-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .approach-photo { margin-top: 64px; }
  .services-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .services-head { position: sticky; top: 120px; align-self: start; }
  .contact-grid { grid-template-columns: 7fr 5fr; gap: 96px; }
}
@media (max-width: 1099px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav .btn { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: var(--gutter); right: var(--gutter); top: 74px;
    padding: 12px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(60,44,30,.2); pointer-events: auto;
  }
  .nav.open .nav-links a { padding: 16px 18px; font-size: 1.05rem; }
}
@media (max-width: 959px) {
  :root { --chamfer: 40px; }
  .stage-card { max-width: none; width: 100%; }
  .stage-pan img { object-position: 64% 50%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-sub { font-size: .6rem; letter-spacing: .1em; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .fab { right: 12px; bottom: 12px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .fab.on { opacity: 1; pointer-events: auto; }
  .fab a { width: 48px; height: 48px; }
}

/* ================= Multi-page additions ================= */
.nav-links a[aria-current="page"] { color: var(--heading); background: var(--bg-tint); }
.pagehero { padding: 156px 0 clamp(48px, 7vw, 96px); }
.pagehero .wrap { display: flex; flex-direction: column; gap: 26px; }
.crumbs { font-size: .85rem; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--accent-text); }
.pagehero h1 { font-family: var(--font-display); font-weight: 200; letter-spacing: -.045em; line-height: 1; font-size: clamp(2.8rem, 7vw, 6.2rem); color: var(--heading); max-width: 16ch; }
.pagehero h1 em { font-style: normal; color: var(--accent-text); }
.banner { aspect-ratio: 21 / 9; }
.banner img { object-position: 50% 45%; }
.section.tight { padding: clamp(56px, 8vw, 112px) 0; }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 32px 20px 32px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.fact b { font: 200 clamp(2.4rem, 5vw, 4.2rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--heading); }
.fact span { color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } .fact { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 28px; } .fact:first-child { padding-left: 0; } .fact:last-child { border-right: 0; } }

/* Values */
.values { display: grid; gap: 20px; grid-template-columns: 1fr; }
.value { padding: 30px 28px 34px; background: var(--bg-alt); display: grid; gap: 12px; clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); }
.value i { font-size: 1.8rem; color: var(--accent-text); }
.value p { color: var(--ink-soft); font-size: .98rem; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .values { grid-template-columns: repeat(3, 1fr); } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; gap: 10px 32px; padding: 30px 0; border-top: 1px solid var(--line); grid-template-columns: 1fr; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font: 200 2.4rem/1 var(--font-display); color: var(--accent-text); letter-spacing: -.03em; }
.step h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; letter-spacing: -.02em; color: var(--heading); }
.step p { color: var(--ink-soft); max-width: 52ch; }
@media (min-width: 860px) { .step { grid-template-columns: 110px 1fr 1.4fr; align-items: baseline; } }

/* Service details */
.sd { display: grid; gap: 28px 64px; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.sd-head { display: flex; flex-direction: column; gap: 14px; }
.sd-head i { font-size: 2.2rem; color: var(--accent-text); }
.sd-head p { color: var(--ink-soft); max-width: 44ch; }
.sd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sd li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.sd li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); transform: translateY(1px); }
@media (min-width: 900px) { .sd { grid-template-columns: 5fr 6fr; } .sd-head { position: sticky; top: 110px; align-self: start; } }

/* Index chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips a { padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; transition: background-color .2s, border-color .2s; }
.chips a:hover { border-color: var(--accent-text); background: var(--bg-tint); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font: 300 clamp(1.2rem, 2vw, 1.6rem)/1.25 var(--font-display); letter-spacing: -.02em; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 1.4rem; flex: none; transition: transform .4s var(--ease); color: var(--accent-text); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .ans { padding: 0 0 26px; color: var(--ink-soft); max-width: 62ch; }

/* CTA band: the accent colour, used once per page for emphasis */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: clamp(64px, 9vw, 120px) 0; }
.cta-band .wrap { display: grid; gap: 32px; align-items: end; }
.cta-band h2 { font: 200 clamp(2.2rem, 5vw, 4.4rem)/1.04 var(--font-display); letter-spacing: -.04em; max-width: 18ch; color: inherit; }
.cta-band .btn { background: var(--accent-ink); color: var(--accent); }
:root[data-theme="dark"] .cta-band .btn { background: var(--accent-ink); color: var(--accent); }
@media (min-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* Projects */
.pgrid { display: grid; gap: 56px 28px; grid-template-columns: 1fr; }
.pcard { display: flex; flex-direction: column; gap: 18px; }
.pcard .photo { aspect-ratio: 16 / 11; }
.pcard h3 { transition: color .2s; }
.pcard:hover h3 { color: var(--accent-text); }
.pcard small { color: var(--ink-soft); }
.pcard .go { display: inline-flex; gap: 8px; align-items: center; color: var(--accent-text); font-weight: 500; font-size: .95rem; }
@media (min-width: 760px) { .pgrid { grid-template-columns: repeat(2, 1fr); } .pgrid .pcard:nth-child(2) { margin-top: 72px; } }
.pfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.pfacts div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.pfacts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.pfacts dd { margin: 0; font: 300 1.3rem/1.2 var(--font-display); color: var(--heading); }
@media (min-width: 860px) { .pfacts { grid-template-columns: repeat(4, 1fr); } }
.prose { display: grid; gap: 40px 72px; }
.prose h2 { margin-bottom: 4px; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-soft); }
@media (min-width: 900px) { .prose { grid-template-columns: 5fr 6fr; } }
.gal { display: grid; gap: 20px; grid-template-columns: 1fr; }
.gal .photo { aspect-ratio: 4 / 3; }
@media (min-width: 800px) { .gal { grid-template-columns: 1.4fr 1fr; } .gal .big { grid-row: span 2; aspect-ratio: auto; min-height: 560px; } }
.note { color: var(--ink-soft); font-size: .9rem; margin-top: 20px; }
.pnav { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 32px; }
.pnav a { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.pnav small { color: var(--ink-soft); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.pnav span { font: 300 1.7rem/1.1 var(--font-display); color: var(--heading); transition: color .2s; }
.pnav a:hover span { color: var(--accent-text); }
@media (min-width: 700px) { .pnav { grid-template-columns: 1fr 1fr; } .pnav a:last-child { text-align: right; } }

/* Map */
.map { aspect-ratio: 16 / 10; width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.7) contrast(1.02); }
.contact-page { display: grid; gap: 64px; }
@media (min-width: 960px) { .contact-page { grid-template-columns: 7fr 5fr; gap: 96px; } }
.link-row { display: inline-flex; gap: 8px; align-items: center; color: var(--accent-text); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-row i { transition: transform .35s var(--ease); }
.link-row:hover i { transform: translate(2px, -2px); }
.more { margin-top: 40px; }

/* Project gallery: mosaic. Row unit = column width * .535, so landscape tiles keep 16:9. */
.pgw { container-type: inline-size; }
.pg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gi { position: relative; display: block; overflow: hidden; background: var(--bg-tint); cursor: zoom-in;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.gi img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 1.2s var(--ease); }
.gi:hover img { transform: scale(1.04); }
.gi.t-wide, .gi.t-half, .gi.t-full, .gi.t-sm { grid-column: span 2; aspect-ratio: 16 / 9; }
.gi.t-port, .gi.t-half-p, .gi.t-single-p { grid-column: span 1; aspect-ratio: 3 / 4; }
.gi.t-single-p { grid-column: 1 / -1; aspect-ratio: 4 / 5; max-width: 420px; justify-self: center; }
@container (min-width: 760px) {
  .pg { --g: 16px; grid-template-columns: repeat(6, 1fr); gap: var(--g); grid-auto-rows: calc((100cqw - 5 * var(--g)) / 6 * .535); grid-auto-flow: row dense; }
  .gi { aspect-ratio: auto !important; max-width: none !important; justify-self: stretch !important; }
  .gi.t-wide { grid-column: span 4; grid-row: span 4; }
  .gi.t-sm { grid-column: span 2; grid-row: span 2; }
  .gi.t-port { grid-column: span 2; grid-row: span 4; }
  .gi.t-half { grid-column: span 3; grid-row: span 3; }
  .gi.t-half-p { grid-column: span 3; grid-row: span 7; }
  .gi.t-full { grid-column: 1 / -1; grid-row: span 6; }
  .gi.t-single-p { grid-column: 2 / span 3; grid-row: span 7; }
  /* placement: keep each block's tiles in their intended columns */
  .gi.t-wide.r2 { grid-column: 3 / span 4; }
  .gi.t-sm.r1, .gi.t-sm.r3 { grid-column: 5 / span 2; }
  .gi.t-sm.l1, .gi.t-sm.l3 { grid-column: 1 / span 2; }
  .gi.t-port.r2 { grid-column: 5 / span 2; }
}
.lb { position: fixed; inset: 0; z-index: 250; background: rgba(24, 28, 18, .95); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; gap: 12px; justify-items: center; min-width: 0; }
.lb img { max-width: 100%; max-height: 82dvh; object-fit: contain; }
.lb figcaption { color: #E8E3D2; font-size: .9rem; }
.lb button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244, 239, 226, .3); background: rgba(244, 239, 226, .08); color: #F4EFE2; font-size: 1.4rem; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.lb button:hover { background: rgba(244, 239, 226, .2); }
.lb .lb-x { position: absolute; top: 16px; right: 16px; z-index: 2; }
@media (max-width: 600px) { .lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .lb .lb-p, .lb .lb-n { position: absolute; bottom: 20px; } .lb .lb-p { left: 20px; } .lb .lb-n { right: 20px; } }
.person p + p { margin-top: 14px; }

/* Clean logo mark (transparent PNG) in the nav */
.brand-mark { background: transparent; border-radius: 0; width: 38px; height: 44px; }
.brand-mark img { width: 100%; height: 100%; max-width: none; object-fit: contain; mix-blend-mode: normal; }
:root[data-theme="dark"] .brand-mark img { filter: invert(1) brightness(1.05); }

/* ================= Page transition panel ================= */
html::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none;
  background: url("../img/logo-light-v2.png") center / auto clamp(150px, 26vh, 260px) no-repeat, #1E2218;
  clip-path: polygon(0 12vh, 100% 0, 100% 100%, 0 100%);
  transform: translateY(105%); visibility: hidden;
}
html.pt-leave::after { visibility: visible; transform: translateY(0); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: transform .6s cubic-bezier(.76, 0, .24, 1), clip-path .6s cubic-bezier(.76, 0, .24, 1); }
html.pt-cover::after { visibility: visible; transform: translateY(0); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
html.pt-reveal::after { visibility: visible; transform: translateY(-105%); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88vh); transition: transform .8s cubic-bezier(.76, 0, .24, 1), clip-path .8s cubic-bezier(.76, 0, .24, 1); }
html.pt-leave, html.pt-cover { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html::after { display: none; } }
