/* ==========================================================================
   DCC GEFEST — site styles
   ========================================================================== */

:root {
  --bg: #0d0e11;
  --bg-2: #14161a;
  --bg-3: #1b1d22;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #ececee;
  --muted: #a1a1a5;          /* brand grey (logo) */
  --accent: #b50937;         /* brand crimson (logo rule) */
  --accent-hi: #e8416a;      /* crimson for small text on dark */
  --paper: #f2f1ee;
  --paper-2: #e8e6e1;
  --ink: #121317;
  --ink-muted: #5d5e65;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.display {
  font-stretch: 125%;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: .98;
}
.h-xl { font-size: clamp(44px, 8.4vw, 132px); }
.h-lg { font-size: clamp(36px, 5.6vw, 84px); }
.h-md { font-size: clamp(28px, 3.6vw, 52px); }
.h-sm { font-size: clamp(22px, 2.2vw, 30px); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}
.eyebrow--plain::before { display: none; }
.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; color: var(--text); font-weight: 300; }
.muted { color: var(--muted); }
.accent { color: var(--accent-hi); }
.mono { font-family: var(--mono); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .muted, .section--paper .eyebrow { color: var(--ink-muted); }
.section--paper .lead { color: var(--ink); }
.section--alt { background: var(--bg-2); }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .eyebrow { margin-bottom: 20px; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
}

/* ---------- Buttons / links ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 28px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn:hover { border-color: var(--accent); color: #fff; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid::before { background: #fff; }
.btn--solid:hover { color: var(--ink); border-color: #fff; }
.section--paper .btn { border-color: rgba(0, 0, 0, .2); }
.section--paper .btn:hover { color: #fff; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .arrow { transition: transform .4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), height .4s var(--ease), transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(13, 14, 17, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  --header-h: 68px;
}
.header.is-hidden { transform: translateY(-100%); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { width: 180px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  position: relative;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 10px 18px;
  transition: border-color .3s, background .3s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { border-color: var(--accent); background: var(--accent); }

.burger {
  display: none;
  width: 48px; height: 48px;
  position: relative; z-index: 120;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text);
  transition: transform .5s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 28px; right: 20px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); right: 12px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu a.mm-link {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(36px, 10vw, 64px); font-stretch: 125%; font-weight: 300;
  line-height: 1.15;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.mobile-menu a.mm-link small { font-family: var(--mono); font-size: 12px; color: var(--accent-hi); font-stretch: 100%; }
.mobile-menu a.mm-link[aria-current="page"] { color: var(--accent-hi); }
.menu-open .mobile-menu a.mm-link { opacity: 1; transform: none; }
.mobile-menu .mm-foot { margin-top: 40px; font-family: var(--mono); font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .brand img { width: 150px; }
}
.menu-open { overflow: hidden; }

/* ---------- Loader / intro ---------- */
.loader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  pointer-events: none;
}
.loader__shutters { position: absolute; inset: 0; display: flex; }
.loader__shutters span {
  flex: 1; background: var(--bg);
  border-right: 1px solid rgba(255, 255, 255, .04);
  transform-origin: top;
  transition: transform 1s var(--ease-in-out);
}
.loader__inner { position: relative; text-align: center; transition: opacity .5s, transform .9s var(--ease-in-out); }
.loader__logo {
  width: min(300px, 70vw); margin: 0 auto;
  clip-path: inset(0 100% 0 0);
  animation: logo-reveal 1.3s .2s var(--ease-in-out) forwards;
}
.loader__bar {
  width: min(300px, 70vw); height: 2px; margin: 22px auto 0;
  background: var(--line-strong); position: relative; overflow: hidden;
}
.loader__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.loader__count { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.loader.is-done .loader__inner { opacity: 0; transform: translateY(-30px); }
.loader.is-done .loader__shutters span { transform: scaleY(0); }
.loader.is-gone { display: none; }
@keyframes logo-reveal { to { clip-path: inset(0 0 0 0); } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2.2s var(--ease);
}
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14);
  transition: transform 9s linear;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { transform: scale(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 14, 17, .88) 0%, rgba(13, 14, 17, .55) 45%, rgba(13, 14, 17, .15) 100%),
    linear-gradient(0deg, rgba(13, 14, 17, .9) 0%, transparent 35%),
    linear-gradient(180deg, rgba(13, 14, 17, .7) 0%, transparent 22%);
}
.hero .grid-lines { z-index: 1; }
.hero__blueprint {
  position: absolute; z-index: 2;
  right: max(var(--gutter), 4vw); bottom: 8vh;
  height: min(78vh, 760px); width: auto;
  pointer-events: none;
  transition: opacity 2s var(--ease);
}
.hero__blueprint .bp {
  fill: none; stroke: rgba(236, 236, 238, .75); stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.hero__blueprint .bp--faint { stroke: rgba(236, 236, 238, .3); }
.hero__blueprint .bp--accent { stroke: var(--accent-hi); }
.hero__blueprint .bp--dash { stroke-dasharray: 4 6; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s 1.8s; }
.hero__blueprint text {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  fill: rgba(236, 236, 238, .7); opacity: 0;
  transition: opacity 1s 2s;
}
.hero.is-drawn .hero__blueprint .bp { animation: draw 2.2s var(--ease-in-out) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.hero.is-drawn .hero__blueprint .bp--dash { animation: none; opacity: 1; }
.hero.is-drawn .hero__blueprint text { opacity: 1; }
.hero.has-photo .hero__blueprint { opacity: .14; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__content {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(110px, 16vh, 170px);
}
.hero__title { max-width: 12ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.hero__title em { font-style: normal; color: var(--accent-hi); }
.hero.is-in .hero__title .line > span { transform: none; }
.hero.is-in .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero.is-in .hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.hero__sub {
  max-width: 520px; margin-top: 32px;
  color: rgba(236, 236, 238, .82);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s .5s, transform 1.2s .5s var(--ease);
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; opacity: 0; transform: translateY(20px); transition: opacity 1s .7s, transform 1.2s .7s var(--ease); }
.hero.is-in .hero__sub, .hero.is-in .hero__actions { opacity: 1; transform: none; }
.hero .eyebrow { margin-bottom: 28px; opacity: 0; transition: opacity 1s .2s; }
.hero.is-in .eyebrow { opacity: 1; }

.hero__meta {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 32px;
}
.hero__meta .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__caption { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-height: 2.6em; }
.hero__caption b { display: block; color: var(--text); font-weight: 500; }
.hero__caption a:hover b { color: var(--accent-hi); }
.hero__progress { display: flex; gap: 8px; align-items: center; }
.hero__progress button { width: 44px; height: 24px; position: relative; }
.hero__progress button::before, .hero__progress button i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, .22);
}
.hero__progress button i { background: var(--accent-hi); transform: scaleX(0); transform-origin: left; }
.hero__progress button.is-active i { animation: progress var(--slide-ms, 6500ms) linear forwards; }
.hero__progress button.is-past i { transform: scaleX(1); }
.hero__count { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 10px; min-width: 52px; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 56px; background: var(--line-strong); overflow: hidden;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--accent-hi);
  animation: scrollcue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollcue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 900px) {
  .hero__blueprint { right: -10%; bottom: 18vh; height: 62vh; opacity: .5; }
  .hero.has-photo .hero__blueprint { opacity: .1; }
  .hero__scroll { display: none; }
  .hero__caption { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 0;
  user-select: none;
}
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 48px; padding-right: 48px;
  font-size: clamp(34px, 5vw, 72px); font-stretch: 125%; font-weight: 300;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 236, 238, .45);
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.marquee__item:hover { color: var(--text); -webkit-text-stroke-color: transparent; }
.marquee__item::after { content: ""; width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.split__media { position: relative; }
.media-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); }
.media-frame img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-tag {
  position: absolute; left: -1px; bottom: -1px;
  background: var(--bg); color: var(--text);
  padding: 18px 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.section--paper .media-tag { background: var(--paper); color: var(--ink); }
.media-tag b { display: block; font-family: var(--font); font-size: 34px; font-stretch: 125%; font-weight: 300; letter-spacing: 0; color: var(--accent); line-height: 1.1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 28px 8px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(40px, 5vw, 76px); font-stretch: 125%; font-weight: 300; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.stat__num small { font-size: .42em; color: var(--accent-hi); margin-left: 4px; letter-spacing: 0; }
.stat__label { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 24ch; }
.section--paper .stats, .section--paper .stat { border-color: rgba(0, 0, 0, .12); }
.section--paper .stat__num small { color: var(--accent); }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 16px 24px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px !important; }
}

/* ---------- Horizontal project scroller ---------- */
.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; }
.hscroll__head { margin-bottom: clamp(28px, 4vh, 56px); }
.hscroll__track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hcard { position: relative; width: clamp(240px, min(32vw, 42vh), 520px); flex: none; }
.hcard__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); }
.hcard:nth-child(even) .hcard__img { aspect-ratio: 4 / 4.2; margin-top: 5vh; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.85); }
.hcard:hover .hcard__img img { transform: scale(1); filter: none; }
.hcard__num { position: absolute; top: 18px; left: 20px; font-family: var(--mono); font-size: 12px; color: #fff; letter-spacing: .14em; mix-blend-mode: difference; }
.hcard__body { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid transparent; }
.hcard__title { font-size: 22px; font-stretch: 112%; line-height: 1.2; transition: color .3s; }
.hcard:hover .hcard__title { color: var(--accent-hi); }
.hcard__loc { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hcard__year { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hcard--end { display: flex; align-items: center; justify-content: center; width: clamp(220px, min(22vw, 38vh), 340px); margin-right: 8vw; }
.hcard--end a {
  width: 100%; aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-size: 22px; font-stretch: 115%;
  transition: background .5s var(--ease), border-color .5s;
}
.hcard--end a:hover { background: var(--accent); border-color: var(--accent); }
.hcard--end a span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; color: var(--muted); }
.hcard--end a:hover span { color: #fff; }
.hscroll__bar { margin: clamp(28px, 4vh, 48px) var(--gutter) 0; height: 1px; background: var(--line); position: relative; max-width: calc(var(--maxw) - 2 * var(--gutter)); }
.hscroll__bar i { position: absolute; inset: 0; background: var(--accent-hi); transform: scaleX(0); transform-origin: left; }
.hscroll.is-native .hscroll__sticky { position: relative; height: auto; padding: clamp(80px, 11vw, 160px) 0; }
.hscroll.is-native .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
.hscroll.is-native .hscroll__track::-webkit-scrollbar { display: none; }
.hscroll.is-native .hcard { scroll-snap-align: start; width: 78vw; max-width: 420px; }
.hscroll.is-native .hcard:nth-child(even) .hcard__img { margin-top: 0; aspect-ratio: 4 / 5; }
.hscroll.is-native .hscroll__bar { display: none; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 340px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: background .5s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover { background: var(--bg-2); }
.service:hover::before { transform: scaleX(1); }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.service__num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.service__icon { width: 56px; height: 56px; color: var(--muted); transition: color .4s, transform .6s var(--ease); }
.service:hover .service__icon { color: var(--accent-hi); transform: rotate(-6deg) scale(1.05); }
.service h3 { font-size: 24px; font-stretch: 115%; margin: 48px 0 14px; }
.service p { color: var(--muted); font-size: 15.5px; margin: 0; }
.section--paper .services, .section--paper .service { border-color: rgba(0, 0, 0, .12); }
.section--paper .service:hover { background: #fff; }
.section--paper .service p, .section--paper .service__num, .section--paper .service__icon { color: var(--ink-muted); }
.section--paper .service:hover .service__icon { color: var(--accent); }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } .service h3 { margin-top: 28px; } }

/* ---------- Leader teaser ---------- */
.leader { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.leader__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--accent); }
.leader blockquote { margin: 28px 0 32px; font-size: clamp(24px, 2.6vw, 38px); font-stretch: 112%; font-weight: 300; line-height: 1.25; }
.leader__team { display: flex; gap: 14px; margin-top: 40px; align-items: center; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--paper-2); border: 2px solid var(--paper); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .leader { grid-template-columns: 1fr; } .leader__photo { max-width: 420px; } }

/* ---------- Awards teaser ---------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.doc { display: block; }
.doc__img {
  aspect-ratio: 4 / 3; overflow: hidden; background: #fff; padding: 18px;
  border: 1px solid var(--line);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.doc__img img { width: 100%; height: 100%; object-fit: contain; }
.doc:hover .doc__img { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.doc h3 { font-size: 19px; font-stretch: 108%; line-height: 1.3; margin-top: 22px; }
.doc .mono { font-size: 12px; color: var(--accent-hi); letter-spacing: .14em; display: block; margin-top: 18px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; text-align: left; }
.cta__title { max-width: 14ch; }
.cta__title a { color: var(--accent-hi); background: linear-gradient(currentColor, currentColor) 0 95% / 100% 2px no-repeat; transition: background-size .6s var(--ease); }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 110px) 0 32px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 220px; }
.footer__brand p { color: var(--muted); max-width: 34ch; margin-top: 24px; font-size: 15px; }
.footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--accent-hi); }
.footer address { font-style: normal; color: var(--text); font-size: 15px; line-height: 1.6; }
.footer address + address { margin-top: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.footer__giant {
  font-size: clamp(80px, 21vw, 340px); font-stretch: 125%; font-weight: 200; line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  margin-top: clamp(40px, 6vw, 80px); white-space: nowrap; user-select: none;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(70px, 10vw, 150px)) 0 clamp(56px, 7vw, 100px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero__title .line > span { display: block; transform: translateY(110%); animation: rise 1.2s .1s var(--ease) forwards; }
.page-hero__title .line:nth-child(2) > span { animation-delay: .22s; }
.page-hero__lead { max-width: 640px; margin-top: 32px; color: var(--muted); opacity: 0; animation: fade 1s .5s forwards; }
.page-hero--compact { padding-top: calc(var(--header-h) + clamp(48px, 6vw, 96px)); padding-bottom: clamp(40px, 5vw, 72px); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--accent-hi); }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Projects index ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 18px; border: 1px solid var(--line-strong); color: var(--muted);
  transition: all .3s;
}
.filter sup { color: var(--accent-hi); margin-left: 4px; }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter.is-active sup { color: var(--accent); }

.pgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3.4vw, 56px); row-gap: clamp(48px, 6vw, 96px); }
.pcard { display: block; position: relative; transition: opacity .5s, transform .8s var(--ease); }
.pcard.is-offset { transform: translateY(clamp(60px, 10vw, 160px)); }
.pcard.is-hidden { display: none; }
.pcard__img { position: relative; overflow: hidden; aspect-ratio: 5 / 4; background: var(--bg-3); }
.pcard:nth-child(4n+2) .pcard__img, .pcard:nth-child(4n+3) .pcard__img { aspect-ratio: 4 / 5; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1); }
.pcard__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13, 14, 17, .55), transparent 40%);
  opacity: .8; transition: opacity .5s;
}
.pcard__tag { position: absolute; z-index: 1; left: 20px; top: 20px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; background: rgba(13, 14, 17, .7); backdrop-filter: blur(6px); padding: 7px 11px; }
.pcard__body { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; padding-top: 22px; }
.pcard__num { font-family: var(--mono); font-size: 12px; color: var(--accent-hi); }
.pcard__title { font-size: clamp(22px, 2.1vw, 30px); font-stretch: 112%; line-height: 1.18; }
.pcard__loc { color: var(--muted); font-size: 15px; margin-top: 6px; }
.pcard__year { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard.is-offset { transform: none; }
  .pcard .pcard__img { aspect-ratio: 4 / 3 !important; }
}

/* cursor label for image links */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform .35s var(--ease);
}
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Project detail ---------- */
.p-hero { position: relative; height: 92vh; height: 92svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.p-hero__bg { position: absolute; inset: 0; }
.p-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); animation: settle 2.4s var(--ease) forwards; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 14, 17, .95) 0%, rgba(13, 14, 17, .3) 50%, rgba(13, 14, 17, .3) 80%, rgba(13, 14, 17, .75) 100%); }
.p-hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 7vw, 96px); }
.p-hero__title { max-width: 18ch; }
.p-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.p-hero__title .line > span { display: block; transform: translateY(110%); animation: rise 1.3s .25s var(--ease) forwards; }
.p-hero__title .native { display: block; font-size: .38em; color: var(--muted); margin-top: .5em; font-stretch: 100%; letter-spacing: 0; }
.p-hero .eyebrow { margin-bottom: 26px; opacity: 0; animation: fade 1s .1s forwards; }
@keyframes settle { to { transform: scale(1); } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 28px 24px 28px 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 24px; }
.fact dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fact dd { margin: 0; font-size: 17px; line-height: 1.4; }
.fact dd.big { font-size: 28px; font-stretch: 120%; font-weight: 300; }
@media (max-width: 700px) { .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.p-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.p-intro p { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.35; font-weight: 300; margin: 0; max-width: 30ch; }
@media (max-width: 800px) { .p-intro { grid-template-columns: 1fr; } }

.gallery { columns: 3 320px; column-gap: 16px; }
.gallery__item { display: block; margin-bottom: 16px; break-inside: avoid; position: relative; overflow: hidden; background: var(--bg-3); }
.gallery__item img { width: 100%; transition: transform 1.2s var(--ease), opacity .8s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after { content: attr(data-index); position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: #fff; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.gallery__item:hover::after { opacity: 1; transform: none; }
.gallery-feature { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.gallery-feature .gallery__item { margin: 0; height: 100%; }
.gallery-feature .gallery__item img { height: 100%; object-fit: cover; }
.gallery-feature .gallery__stack { display: grid; gap: 16px; }
@media (max-width: 760px) { .gallery-feature { grid-template-columns: 1fr; } .gallery { columns: 2 160px; column-gap: 10px; } .gallery__item { margin-bottom: 10px; } }

.next-project { position: relative; display: block; overflow: hidden; height: clamp(360px, 60vh, 640px); border-top: 1px solid var(--line); }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); filter: brightness(.45) saturate(.8); }
.next-project:hover img { transform: scale(1.02); filter: brightness(.55) saturate(1); }
.next-project .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.next-project .h-lg { max-width: 16ch; margin-top: 24px; transition: transform .8s var(--ease); }
.next-project:hover .h-lg { transform: translateX(18px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(8, 9, 11, .97);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); gap: 20px; }
.lb__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__count b { color: var(--text); font-weight: 400; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; }
.lb__stage img {
  max-width: 100%; max-height: calc(100vh - 210px); max-height: calc(100svh - 210px); object-fit: contain;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  transition: opacity .35s, transform .5s var(--ease);
}
.lb__stage img.is-loading { opacity: 0; transform: scale(.98); }
.lb__btn {
  width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  transition: background .3s, border-color .3s;
}
.lb__btn:hover { background: var(--accent); border-color: var(--accent); }
.lb__btn svg { width: 18px; height: 18px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(13, 14, 17, .5); }
.lb__prev { left: clamp(8px, 2vw, 28px); }
.lb__next { right: clamp(8px, 2vw, 28px); }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter) 20px; scrollbar-width: none; justify-content: safe center; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: none; width: 76px; height: 52px; opacity: .4; transition: opacity .3s; outline-offset: 2px; position: relative; }
.lb__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumbs button.is-active { opacity: 1; }
.lb__thumbs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent-hi); }
@media (max-width: 700px) { .lb__prev, .lb__next { display: none; } .lb__thumbs button { width: 56px; height: 40px; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.member { display: block; position: relative; }
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
a.member:hover .member__photo img { filter: none; transform: scale(1); }
.member__photo .cv-chip {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 9px 13px;
  transform: translateY(12px); opacity: 0; transition: all .5s var(--ease);
}
a.member:hover .cv-chip, a.member:focus-visible .cv-chip { transform: none; opacity: 1; }
.monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--line) 49.6%, var(--line) 50.4%, transparent 50.4%),
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg-2);
}
.monogram span { font-size: clamp(64px, 8vw, 120px); font-stretch: 125%; font-weight: 200; color: var(--muted); letter-spacing: -.02em; }
.monogram span::after { content: ""; display: block; height: 3px; width: 60%; margin: 6px auto 0; background: var(--accent); }
.member__name { font-size: 24px; font-stretch: 112%; margin-top: 22px; line-height: 1.2; transition: color .3s; }
a.member:hover .member__name { color: var(--accent-hi); }
.member__role { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- CV ---------- */
.cv { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.cv__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.cv__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); position: relative; }
.cv__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cv__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--accent); }
.cv__meta { margin: 28px 0 0; display: grid; gap: 0; }
.cv__meta div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cv__meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cv__meta dd { margin: 0; }
.timeline { position: relative; margin-top: 56px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 44px 40px; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: 7px; width: 11px; height: 11px; border: 1px solid var(--accent-hi); background: var(--bg); transform: rotate(45deg); transition: background .4s; }
.tl-item:hover::before { background: var(--accent-hi); }
.tl-item__when { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--accent-hi); }
.tl-item h3 { font-size: 21px; font-stretch: 108%; line-height: 1.3; margin: 8px 0 12px; }
.tl-item ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15.5px; }
.tl-item li { padding-left: 18px; position: relative; }
.tl-item li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--muted); }
.cv-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cv-nav a { padding: 40px var(--gutter); display: grid; gap: 8px; transition: background .4s; }
.cv-nav a + a { border-left: 1px solid var(--line); text-align: right; }
.cv-nav a:hover { background: var(--bg-2); }
.cv-nav b { font-weight: 300; font-size: clamp(22px, 2.6vw, 36px); font-stretch: 120%; }
@media (max-width: 860px) { .cv { grid-template-columns: 1fr; } .cv__aside { position: static; } .cv__photo { max-width: 360px; } }

/* ---------- Awards ---------- */
.award { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 100px); align-items: center; padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.award:nth-child(even) > :first-child { order: 2; }
.award__img { display: block; background: #fff; padding: clamp(14px, 2vw, 28px); transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.award__img:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.award__img img { width: 100%; max-height: 70vh; object-fit: contain; }
.award__num { font-size: clamp(64px, 8vw, 120px); font-stretch: 125%; font-weight: 200; color: transparent; -webkit-text-stroke: 1px var(--muted); line-height: 1; }
.award h2 { font-size: clamp(26px, 2.6vw, 38px); font-stretch: 112%; line-height: 1.2; margin: 18px 0; }
@media (max-width: 860px) { .award { grid-template-columns: 1fr; } .award:nth-child(even) > :first-child { order: 0; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__big { display: grid; gap: 14px; margin: 0 0 clamp(48px, 6vw, 80px); }
.contact__big a {
  font-size: clamp(26px, 3.8vw, 56px); font-stretch: 120%; font-weight: 300; line-height: 1.15; letter-spacing: -.01em;
  width: fit-content; max-width: 100%; overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.contact__big a:hover { background-size: 100% 2px; }
.contact__big .eyebrow { margin-bottom: 4px; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.office { padding: 32px 28px 32px 0; }
.office + .office { border-left: 1px solid var(--line); padding-left: 28px; }
.office h3 { font-size: 30px; font-stretch: 120%; font-weight: 300; margin: 12px 0 14px; }
.office address { font-style: normal; color: var(--muted); line-height: 1.7; }
@media (max-width: 600px) { .offices { grid-template-columns: 1fr; } .office + .office { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.qr-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--paper); color: var(--ink);
  padding: clamp(24px, 3vw, 40px);
}
.qr-card__code { position: relative; background: #fff; padding: 10px; }
.qr-card__code img { width: 100%; aspect-ratio: 1; }
.qr-card__code::before, .qr-card__code::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent);
}
.qr-card__code::before { left: -8px; top: -8px; border-right: 0; border-bottom: 0; }
.qr-card__code::after { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }
.qr-card h2 { font-size: 26px; font-stretch: 115%; margin: 28px 0 10px; line-height: 1.2; }
.qr-card p { color: var(--ink-muted); font-size: 15px; }
.qr-card .btn { width: 100%; justify-content: center; margin-top: 10px; border-color: rgba(0, 0, 0, .2); }
.qr-card .btn:hover { color: #fff; }
.qr-card .btn--solid { border-color: var(--accent); }
.qr-card .btn--solid:hover { color: var(--ink); border-color: var(--ink); }
.qr-card .btn--solid::before { background: var(--paper-2); }
.qr-scan-line {
  position: absolute; left: 10px; right: 10px; top: 10px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px 2px rgba(181, 9, 55, .5);
  animation: scan 3.2s var(--ease-in-out) infinite alternate;
  opacity: .7;
}
@keyframes scan { to { top: calc(100% - 12px); } }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .qr-card { position: static; max-width: 460px; } }

/* ---------- Values list ---------- */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(0, 0, 0, .12); }
.value { padding: 36px 32px 36px 0; border-bottom: 1px solid rgba(0, 0, 0, .12); display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.value:nth-child(odd) { border-right: 1px solid rgba(0, 0, 0, .12); }
.value:nth-child(even) { padding-left: 32px; }
.value .mono { font-size: 12px; color: var(--accent); padding-top: 6px; }
.value h3 { font-size: 24px; font-stretch: 112%; margin-bottom: 10px; }
.value p { color: var(--ink-muted); margin: 0; font-size: 16px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } .value { border-right: 0 !important; padding-left: 0 !important; } }

/* service rows (services page) */
.srows { border-top: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr) 64px; gap: 32px; align-items: start; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); position: relative; }
.srow::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.srow:hover::after { transform: scaleX(1); }
.srow .mono { color: var(--accent-hi); font-size: 13px; padding-top: 10px; }
.srow h2 { font-size: clamp(28px, 3.2vw, 46px); font-stretch: 118%; font-weight: 300; line-height: 1.1; }
.srow p { color: var(--muted); margin: 0; font-size: 17px; }
.srow .service__icon { width: 56px; height: 56px; justify-self: end; }
.srow:hover .service__icon { color: var(--accent-hi); }
@media (max-width: 860px) { .srow { grid-template-columns: 50px 1fr; } .srow p { grid-column: 2; } .srow .service__icon { display: none; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--rd, 0) * 1ms); }
/* "clip": a curtain in the section colour wipes upward (IntersectionObserver ignores fully clipped targets,
   so the element itself stays unclipped). */
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"]::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--curtain, var(--bg));
  transform-origin: top;
  transition: transform 1.4s var(--ease-in-out);
}
[data-reveal="clip"] img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="clip"].is-visible::before { transform: scaleY(0); }
[data-reveal="clip"].is-visible img:not([data-parallax]) { transform: none; }
.section--paper { --curtain: var(--paper); }
.section--alt { --curtain: var(--bg-2); }
.no-js [data-reveal] { opacity: 1; transform: none; }
.no-js [data-reveal="clip"]::before { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal="clip"]::before { display: none; }
  .marquee__track { animation: none; }
  .hero__slide img { transform: none !important; }
  .loader { display: none; }
}
@media (max-height: 760px) and (min-width: 900px) { .hscroll__head .eyebrow { display: none; } }
@media (hover: none) { .member__photo img { filter: none; transform: none; } .member__photo .cv-chip { opacity: 1; transform: none; } }
.menu-open .header { z-index: 115; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
