/* ==========================================================================
   Ingrid's Atelier
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:         #F3F0EA;
  --ink:        #1C1A17;
  --accent:     #687050;
  --accent-lift:#A8AF92;
  --muted:      #736C5A;
  --body:       #57534C;

  --line:       #E2DDD3;
  --line-strong:#D5CFC3;
  --line-chip:  #DBD5CA;
  --line-soft:  #C9C3B7;

  --card:       #F7F5F0;
  --slot:       #E8E3D9;

  --dark:       #1C1A17;
  --dark-line:  #332F2A;
  --dark-line-2:#3E3A34;
  --dark-muted: #A29B90;
  --dark-soft:  #C3BDB2;

  --display: 'Marcellus', Georgia, serif;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Karla', system-ui, -apple-system, sans-serif;

  --ease:      cubic-bezier(.2, .8, .2, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-veil: cubic-bezier(.76, 0, .24, 1);

  --gutter: clamp(18px, 4vw, 54px);
  --wrap: 1480px;
  --header-h: 80px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Author `display` declarations outrank the UA stylesheet's `[hidden]` rule,
   so state the intent explicitly — the menu, veil and wizard steps all rely
   on the hidden attribute while also being flex/grid containers. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--ink); color: var(--bg); }

img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  transform: translateY(-200%);
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 100px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
/* The mid green drops to 3.5:1 on the ink sections — use the lift there. */
.dark-split .eyebrow--accent,
.site-footer .eyebrow--accent { color: var(--accent-lift); }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 44px);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.h2--xl {
  font-size: clamp(28px, 4.6vw, 72px);
  line-height: 1.08;
  letter-spacing: .04em;
}

.note {
  font-size: 10.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}

.muted-link {
  font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

.link-underline {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: border-color .4s;
}
.link-underline:hover { border-color: var(--accent); }
.link-underline--dark { border-bottom-color: var(--dark-line-2); }

/* Masked line-rise heading */
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line__in { display: block; animation: iaRise 1.15s var(--d, 0s) var(--ease-out) both; }
.line__in--indent { padding-left: .14em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px;
  border: none; border-radius: 100px;
  font: inherit;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.btn span { font-size: 15px; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { transform: translateY(-3px); background: var(--accent); color: var(--bg); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { transform: translateY(-3px); background: var(--accent); color: var(--bg); }

/* Header CTA with wipe fill */
.btn-pill {
  position: relative; overflow: hidden;
  background: var(--accent); color: var(--bg);
  padding: 12px 24px; border-radius: 100px;
  letter-spacing: .2em;
  transition: transform .5s var(--ease);
}
.btn-pill:hover { transform: translateY(-2px); color: var(--bg); }
.btn-pill__fill {
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn-pill:hover .btn-pill__fill { transform: scaleY(1); }
.btn-pill__label { position: relative; }

/* --------------------------------------------------------------------------
   Image slots
   -------------------------------------------------------------------------- */
.slot {
  position: relative;
  width: 100%; height: 100%;
  background: var(--slot);
  overflow: hidden;
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 10px, rgba(28, 26, 23, .028) 10px 20px);
}
.slot.is-filled::after { content: none; }

/* Logo tiles: the mark sits whole and centred rather than being cropped, on a
   solid brand ground because these marks are drawn in white. */
.slot--brand { background: var(--accent); }
.slot--contain img {
  object-fit: contain;
  padding: clamp(18px, 11%, 56px);
}
/* A pale hairline around a saturated tile reads as a seam — match it. */
.card__media.is-brand { border-color: var(--accent); }

.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

/* --------------------------------------------------------------------------
   Scroll progress
   -------------------------------------------------------------------------- */
.progress-track {
  position: fixed; inset: 0 0 auto 0;
  height: 2px; z-index: 99; background: transparent;
}
.progress-bar {
  height: 100%; width: 0;
  background: var(--accent);
  transition: width .12s linear;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter);
  background: rgba(243, 240, 234, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: transform .55s var(--ease), padding .45s ease, background .45s ease, border-color .45s ease;
  animation: iaFade .8s both;
}
.site-header.is-stuck {
  padding: 11px var(--gutter);
  background: rgba(243, 240, 234, .92);
  border-bottom-color: #DCD6CA;
}
.site-header.is-hidden { transform: translateY(-104%); }

/* With the overlay menu open the bar itself gets out of the way — the menu
   already shows the mark full size — leaving only the close control. */
.site-header.is-menu-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header.is-menu-open .brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0;
  transition: opacity .35s ease, visibility .35s;
}
.brand:hover { color: inherit; }
.brand__mark {
  display: block; width: 44px; height: 44px;
  overflow: hidden; flex-shrink: 0;
}
.brand__mark img {
  width: 150%; height: 150%;
  margin: -25% 0 0 -25%;
  object-fit: contain;
}
.brand__word {
  font-family: var(--display);
  font-size: clamp(13px, 1.35vw, 16px);
  letter-spacing: .24em; text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}

.navbox {
  position: relative;
  display: flex; align-items: center; gap: clamp(4px, .6vw, 10px);
}
.navbox__pill {
  position: absolute; top: 50%; left: 0;
  width: 0; height: 34px;
  transform: translateY(-50%);
  border-radius: 100px;
  background: #E7E2D8;
  opacity: 0;
  transition: left .45s var(--ease), width .45s var(--ease), opacity .35s;
  pointer-events: none;
}
.navbox__link {
  position: relative;
  padding: 11px 16px;
  border-radius: 100px;
  opacity: .7;
  transition: opacity .35s;
}
.navbox__link:hover { color: inherit; opacity: 1; }
.navbox__link.is-active { opacity: 1; }
.navbox__dot {
  position: absolute; left: 16px; bottom: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  opacity: 0; transition: opacity .4s;
}
.navbox__link.is-active .navbox__dot { opacity: 1; }

.burger {
  position: relative; z-index: 88;
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color .4s, background .4s;
}
.burger:hover { border-color: var(--accent); }
.burger span {
  display: block; width: 16px; height: 1px;
  background: var(--ink);
  transition: transform .45s var(--ease), opacity .3s;
}
.burger.is-open span:first-child { transform: translateY(3px) rotate(45deg); }
.burger.is-open span:last-child  { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 939px) {
  .navbox, .site-header .btn-pill { display: none; }
  .burger { display: flex; }
}

/* --------------------------------------------------------------------------
   Side rail
   -------------------------------------------------------------------------- */
.rail {
  position: fixed; left: 16px; top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  pointer-events: none;
}
.rail__label {
  writing-mode: vertical-rl;
  font-size: 10px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--muted);
}
.rail__line {
  width: 1px; height: 70px;
  background: linear-gradient(var(--line-soft), transparent);
}
@media (max-width: 1199px) { .rail { display: none; } }

/* --------------------------------------------------------------------------
   Overlay menu
   -------------------------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 85;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 8vw, 70px);
  gap: 6px;
  overflow-y: auto;
  animation: iaFade .4s both;
}
.menu__mark {
  height: clamp(120px, 26vw, 160px); width: auto;
  align-self: center; margin-bottom: 24px;
  animation: iaFade .8s .1s both;
}
.menu__links { display: flex; flex-direction: column; }
.menu__row { display: block; overflow: hidden; }
.menu__row a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--display);
  font-size: clamp(26px, 7.4vw, 48px);
  letter-spacing: .02em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  transition: padding-left .5s var(--ease), color .35s;
  animation: iaRise .85s var(--d, 0s) var(--ease-out) both;
}
.menu__row a:hover { padding-left: 14px; color: var(--accent); }
.menu__row i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .2em; color: var(--muted);
}
.menu__contact {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; letter-spacing: .06em; color: #6E6A63;
}

/* --------------------------------------------------------------------------
   Page-transition veil
   -------------------------------------------------------------------------- */
.veil {
  position: fixed; inset: 0; z-index: 95;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  animation: iaVeil 1.1s var(--ease-veil) forwards;
}
.veil__mark {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: iaVeilMark 1.1s ease forwards;
}
.veil__mark img {
  height: clamp(96px, 13vw, 150px); width: auto;
  filter: invert(1) brightness(1.08);
}
.veil__mark span {
  font-family: var(--display);
  font-size: clamp(14px, 2vw, 21px);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Pages
   -------------------------------------------------------------------------- */
html:not(.js) .page[hidden] { display: block !important; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0 0 clamp(28px, 5vw, 64px);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__zoom {
  position: absolute; inset: -12% 0;
  animation: iaZoom 2.2s var(--ease-out) both;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(28, 26, 23, .62) 0%,
    rgba(28, 26, 23, .44) 34%,
    rgba(28, 26, 23, .72) 62%,
    rgba(28, 26, 23, .92) 100%);
}
.hero__inner {
  position: relative;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--bg);
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 7.4vw, 124px);
  line-height: 1.04;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: clamp(14px, 2.2vw, 26px) 0 0;
  max-width: 14ch;
}
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: lowercase;
  font-size: 1.3em;
  letter-spacing: 0;
  /* The brand green, same token as the header CTA — this was the one italic
     on the site not using the accent. */
  color: var(--accent);
}
.hero__actions {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 24px;
  margin-top: clamp(26px, 3.6vw, 48px);
}
.hero__ctas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  animation: iaFade 1s 1s both;
}
.hero__scroll {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  animation: iaDrift 3s 1.8s infinite;
}
.hero__scroll span { font-size: 14px; }

/* ── Ticker ── */
.ticker {
  --tick-gap: clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  padding: clamp(16px, 2.2vw, 28px) 0;
  overflow: hidden; white-space: nowrap;
  background: var(--bg);
}
.ticker__viewport { display: inline-block; will-change: transform; }
.ticker__row {
  display: inline-flex; align-items: center;
  animation: iaMarquee 42s linear infinite;
}
.ticker__item {
  display: inline-flex; align-items: center;
  gap: var(--tick-gap);
  padding-right: var(--tick-gap);
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 52px);
  letter-spacing: .04em; text-transform: uppercase;
}
.ticker__item i { font-style: normal; color: var(--accent); font-size: .62em; }

/* ── Statement ── */
.statement { padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(30px, 4vw, 60px); }
.statement__grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(26px, 4vw, 70px);
  align-items: end;
}
.statement__lead {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 50px);
  line-height: 1.32;
  max-width: 22ch;
  text-wrap: pretty;
}
.statement__lead em { font-style: italic; color: var(--accent); }
.statement__body {
  display: flex; flex-direction: column; gap: 14px;
  font-size: 15px; line-height: 1.9; color: var(--body);
  max-width: 46ch;
}
.statement__body .link-underline { margin-top: 8px; }

/* ── Horizontal scroll section ── */
.hscroll { position: relative; padding: clamp(20px, 4vw, 60px) 0; }
.hscroll__inner {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hscroll__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(18px, 2.6vw, 34px);
}
.hscroll__track {
  display: flex; gap: clamp(14px, 2vw, 30px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.hscroll__hint {
  padding: clamp(18px, 2.6vw, 34px) var(--gutter) 0;
  font-size: 10.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.hscroll .card { flex: 0 0 clamp(230px, 26vw, 400px); scroll-snap-align: center; }

.hscroll--flat .hscroll__inner { position: static; height: auto; }
.hscroll--flat .hscroll__track {
  transform: none !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hscroll--flat .hscroll__track::-webkit-scrollbar { display: none; }

/* ── Cards ── */
.card { display: block; }
.card:hover { color: inherit; }
.card__media { overflow: hidden; background: var(--slot); border: 1px solid var(--line); }
.card__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.card__name {
  font-family: var(--display);
  font-size: 15px; letter-spacing: .13em; text-transform: uppercase;
}
.card__kind {
  font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}

/* ── Dark split ── */
.dark-split {
  background: var(--dark); color: var(--bg);
  padding: clamp(60px, 9vw, 140px) var(--gutter);
  position: relative; overflow: hidden;
}
.dark-split__grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.dark-split__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 56px);
  line-height: 1.14; letter-spacing: .04em; text-transform: uppercase;
  margin: 18px 0 0;
}
.dark-split__title em {
  font-family: var(--serif);
  font-style: italic; text-transform: none;
  font-size: 1.24em; letter-spacing: 0;
}
.dark-split__body {
  font-size: 15px; line-height: 1.9;
  color: var(--dark-muted);
  margin: 20px 0 0; max-width: 44ch;
}
.dark-split__media { overflow: hidden; background: #2A2723; }
.dark-split__parallax { position: relative; height: 118%; top: -9%; }
.dark-split .link-underline { margin-top: clamp(26px, 3.6vw, 44px); }

.creds { display: flex; flex-direction: column; gap: 20px; margin-top: clamp(26px, 3.6vw, 44px); }
.creds__row {
  border-top: 1px solid var(--dark-line);
  padding-top: 14px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
}
.creds__value {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(30px, 4.2vw, 58px); line-height: 1;
}
.creds__label {
  margin: 0;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dark-muted); text-align: right; max-width: 18ch;
}

/* ── Work flow accordion ── */
.flow { padding: clamp(60px, 9vw, 140px) var(--gutter); }
.flow__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: clamp(24px, 3.4vw, 48px);
}
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__heading { margin: 0; font: inherit; }
.accordion__trigger {
  width: 100%;
  background: none; border: none;
  font: inherit; text-align: left; color: inherit;
  cursor: pointer;
  display: flex; align-items: baseline; gap: clamp(14px, 2.4vw, 36px);
  padding: clamp(18px, 2.4vw, 30px) 0;
  transition: padding-left .5s var(--ease);
}
.accordion__trigger:hover { padding-left: 14px; }
.accordion__num {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.6vw, 36px);
  color: var(--muted);
  min-width: 2.2em;
  transition: color .4s;
}
.accordion__trigger[aria-expanded="true"] .accordion__num { color: var(--accent); }
.accordion__title {
  flex: 1;
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 38px);
  letter-spacing: .08em; text-transform: uppercase;
}
.accordion__sign {
  font-size: 18px; color: var(--muted);
  display: inline-block;
  transition: transform .5s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__sign { transform: rotate(45deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .7s var(--ease-out), opacity .5s;
}
.accordion__panel > p {
  min-height: 0; overflow: hidden;
  font-size: 15.5px; line-height: 1.9; color: var(--body);
  max-width: 64ch;
  padding-left: clamp(0px, 4vw, 60px);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; opacity: 1; }
.accordion__item.is-open .accordion__panel > p { padding-bottom: clamp(20px, 2.6vw, 32px); }

/* ── Page heads ── */
.page-head { padding: clamp(112px, 16vh, 180px) var(--gutter) clamp(30px, 4vw, 58px); }
.page-head .eyebrow { animation: iaFade .8s both; }
.page-head__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6.6vw, 108px);
  line-height: 1.1;
  letter-spacing: .03em; text-transform: uppercase;
  margin: 18px 0 0;
}
.page-head__title--about { font-size: clamp(28px, 5.4vw, 84px); letter-spacing: .02em; max-width: 18ch; }
.page-head__title--about em {
  font-family: var(--serif); font-style: italic;
  text-transform: lowercase; font-size: 1.26em; letter-spacing: 0; color: var(--accent);
}
.page-head__title--narrow { font-size: clamp(30px, 5.6vw, 92px); max-width: 20ch; }
.page-head__title--work { font-size: clamp(30px, 5.8vw, 96px); max-width: 16ch; }
.page-head__title--work em {
  font-family: var(--serif); font-style: italic;
  text-transform: lowercase; font-size: 1.22em; letter-spacing: 0; color: var(--accent);
}
.page-head__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(22px, 4vw, 60px);
  margin-top: clamp(26px, 3.6vw, 46px);
  border-top: 1px solid var(--line);
  padding-top: clamp(22px, 3vw, 38px);
}
.page-head__lead {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.45;
  animation: iaFade 1s .5s both;
}
.page-head__note {
  font-size: 15.5px; line-height: 1.9; color: var(--body);
  max-width: 46ch;
  animation: iaFade 1s .65s both;
}

/* ── About ── */
.about { padding: 0 var(--gutter) clamp(56px, 8vw, 130px); }
.about__grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
}
.about__portrait { overflow: hidden; background: var(--slot); }

/* Two columns — and only then is the portrait sticky. In a single column a
   sticky (positioned) portrait paints over the body text as it scrolls past,
   hiding it behind the image. */
@media (min-width: 820px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__portrait { position: sticky; top: 110px; }
}
.about__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.4;
  text-wrap: pretty;
}
.about__body {
  display: flex; flex-direction: column; gap: 22px;
  margin-top: clamp(24px, 3.2vw, 42px);
  font-size: 15.5px; line-height: 1.95; color: var(--body);
  max-width: 60ch;
}
.creds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 4vw, 54px);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.creds-grid__value {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1;
}
.creds-grid__label {
  margin: 10px 0 0;
  font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}

/* ── Services ── */
.services { padding: 0 var(--gutter) clamp(56px, 8vw, 130px); }
.services__list {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-direction: column;
  gap: clamp(36px, 5.5vw, 90px);
}
/* Two named rows rather than two plain columns. Previously the number, title
   and image were one left-hand block, so the chips began level with the "01"
   and floated high above the image. Putting the heading in its own row lets
   the image and the chips share row two, and their tops line up whatever
   height the title wraps to. */
.service {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "head" "media" "groups";
  gap: clamp(20px, 3vw, 30px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(22px, 3vw, 38px);
}
.service__head   { grid-area: head; }
.service__media  { grid-area: media; overflow: hidden; background: var(--slot); }
.service__groups { grid-area: groups; display: flex; flex-direction: column; gap: 26px; }

@media (min-width: 860px) {
  .service {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head  ."
      "media groups";
    column-gap: clamp(22px, 4vw, 64px);
    row-gap: 22px;
  }
  /* The heading has scrolled off by the time the chips are long, so pin the
     image rather than the whole block. */
  .service__media { position: sticky; top: 110px; }
}
.service__num { font-size: 10.5px; letter-spacing: .24em; color: var(--accent); }
.service__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 52px);
  letter-spacing: .05em; text-transform: uppercase;
  margin: 12px 0 0;
}
.group__name {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 12px; font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-chip);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 13px; color: var(--body);
  transition: background .35s, border-color .35s, color .35s;
}
.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ── Portfolio ──
   Every piece here is a square logo on a brand tile, so the grid is uniform:
   equal cells in even rows. The old mixed-ratio grid left ragged gaps that
   read as broken rather than editorial. auto-fill (not auto-fit) keeps the
   cell width stable when a row is short, so five items don't stretch into
   three fat columns. */
.portfolio { padding: 0 var(--gutter) clamp(48px, 6vw, 96px); }
/* Explicit column counts rather than auto-fill: the count is small, so an
   auto-fit track resolved to 4 columns on a 1440 screen and left 5 projects
   sitting 4 + 1 with a dead row. Fixed 1 / 2 / 3 puts them 3 + 2, gives each
   mark a bigger tile, and fills perfectly as the list grows in threes. */
.portfolio__grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.8vw, 44px) clamp(16px, 2.4vw, 36px);
  list-style: none;
}
@media (min-width: 560px)  { .portfolio__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .portfolio__grid { grid-template-columns: repeat(3, 1fr); } }

.tile { display: flex; flex-direction: column; }
.tile__media { overflow: hidden; background: var(--slot); }
.tile__media .slot img { transition: transform .9s var(--ease); }
.tile:hover .slot img { transform: scale(1.05); }
.tile__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.tile__index {
  font-family: var(--serif); font-style: italic;
  font-size: 19px; line-height: 1; color: var(--muted);
}
.tile__name {
  font-family: var(--display);
  font-size: 15px; letter-spacing: .13em; text-transform: uppercase;
}
.tile__kind {
  font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  text-align: right;
}
/* Below ~380px the three columns crowd; drop the discipline to its own line. */
@media (max-width: 420px) {
  .tile__meta { grid-template-columns: auto 1fr; }
  .tile__kind { grid-column: 2; text-align: left; }
}

/* ── Closing call to action ── */
.closer { padding: 0 var(--gutter) clamp(56px, 8vw, 130px); }
.closer__inner {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: clamp(26px, 3.6vw, 48px);
}
.closer__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.1; letter-spacing: .04em; text-transform: uppercase;
  margin: 14px 0 0;
}
.closer__title em {
  font-family: var(--serif); font-style: italic;
  text-transform: lowercase; font-size: 1.22em;
  letter-spacing: 0; color: var(--accent);
}

/* ── Resources ── */
.resources { padding: 0 var(--gutter) clamp(56px, 8vw, 130px); }
.resource {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3.4vw, 44px);
}
.resource__media { overflow: hidden; background: var(--slot); }
.resource__num {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(36px, 5vw, 68px); line-height: 1; color: var(--accent);
}
.resource__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 2.8vw, 36px);
  letter-spacing: .06em; text-transform: uppercase;
  margin: 16px 0 0;
}
.resource__body {
  font-size: 15.5px; line-height: 1.9; color: var(--body);
  margin: 16px 0 0; max-width: 48ch;
}
.resource .btn { margin-top: 26px; }

/* --------------------------------------------------------------------------
   Inquiry / wizard
   -------------------------------------------------------------------------- */
.inquiry { padding: 0 var(--gutter) clamp(56px, 8vw, 130px); }
.inquiry__grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.wizard {
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(22px, 3vw, 44px);
}
.wizard__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.wizard__track {
  height: 1px; background: var(--line);
  margin: 14px 0 clamp(22px, 3vw, 36px);
  position: relative;
}
.wizard__fill {
  position: absolute; inset: 0 auto 0 0;
  height: 1px; background: var(--accent);
  width: 33%;
  transition: width .6s var(--ease);
}
.wizard__step { border: none; padding: 0; margin: 0; min-inline-size: 0; animation: iaFade .55s both; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.field-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 32px); }
.stack--tight { gap: clamp(18px, 2.4vw, 28px); }

/* space-between keeps every input on a row baseline-aligned even when one
   label wraps to two lines */
.field { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.field__label {
  display: block;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  background: transparent;
  border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font: inherit; font-size: 16.5px;
  padding: 11px 0;
  outline: none;
  transition: border-color .35s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--line-soft); }
.field.is-invalid input { border-color: #A65A4B; }

.choices { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.choice {
  border: 1px solid var(--line-chip);
  background: transparent;
  color: var(--body);
  border-radius: 100px;
  padding: 10px 18px;
  font: inherit; font-size: 13px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.choice:hover { border-color: var(--muted); }
.choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; line-height: 1.7; color: var(--body);
}
.consent__box {
  flex: 0 0 auto;
  width: 18px; height: 18px; margin-top: 2px;
  border: 1px solid var(--line-soft);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  color: var(--bg);
  font-size: 11px; line-height: 16px;
  transition: background .3s, border-color .3s;
}
.consent__box[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.consent__box[aria-pressed="true"]::after { content: "\2713"; }

.wizard__error {
  margin-top: 18px;
  font-size: 13px; line-height: 1.6; color: #A65A4B;
}
.wizard__nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 42px);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.wizard__back {
  background: none; border: none;
  font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  cursor: pointer; padding: 0;
  transition: opacity .3s, color .3s;
}
.wizard__back:hover { color: var(--ink); }
.wizard__back:disabled { opacity: .25; cursor: default; }
.wizard__nav .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.wizard__done { padding: clamp(20px, 4vw, 60px) 0; text-align: center; animation: iaFade .7s both; }
.wizard__star { font-size: 34px; color: var(--accent); }
.wizard__thanks {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: .05em; text-transform: uppercase;
  margin: 18px 0 0;
}
.wizard__note {
  font-size: 15.5px; line-height: 1.9; color: var(--body);
  margin: 14px auto 0; max-width: 44ch;
}

.inquiry__aside { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); }
.inquiry__media { overflow: hidden; background: var(--slot); }
.next-steps { margin-top: 14px; }
.next-steps li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex; gap: 14px; align-items: baseline;
  font-size: 14.5px; line-height: 1.7; color: var(--body);
}
.next-steps__num {
  font-family: var(--serif); font-style: italic;
  font-size: 20px; color: var(--muted);
}
.contacts { display: flex; flex-direction: column; }
.contacts__row {
  border-top: 1px solid var(--line);
  padding-top: 13px; margin-top: 13px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.contacts__row dt {
  font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.contacts__row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 24px);
  text-align: right;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark); color: var(--bg);
  padding: clamp(52px, 7.5vw, 110px) var(--gutter) 30px;
}
.site-footer__top {
  display: flex; flex-wrap: wrap;
  gap: clamp(24px, 4vw, 60px);
  justify-content: space-between; align-items: flex-start;
}
.site-footer__email {
  display: block;
  font-family: var(--display);
  font-size: clamp(20px, 3.6vw, 54px);
  letter-spacing: .02em;
  margin-top: 16px;
  transition: color .4s;
  overflow-wrap: anywhere;
}
.site-footer__email:hover { color: var(--accent-lift); }
.site-footer__phone {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.6vw, 34px);
  margin-top: 8px;
  color: var(--dark-soft);
}
.site-footer__side {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.site-footer__mark {
  height: 120px; width: auto; margin-bottom: 10px;
  filter: invert(1) brightness(1.1);
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: clamp(40px, 5.5vw, 80px);
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: #8A857C;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes iaFade    { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: translateY(0) } }
@keyframes iaRise    { from { opacity: 0; transform: translateY(108%) } to { opacity: 1; transform: translateY(0) } }
@keyframes iaRule    { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes iaMarquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes iaVeil    { 0% { clip-path: inset(0 0 100% 0) } 44%, 56% { clip-path: inset(0 0 0 0) } 100% { clip-path: inset(100% 0 0 0) } }
@keyframes iaVeilMark{ 0% { opacity: 0; transform: rotate(-90deg) } 26%, 54% { opacity: 1; transform: rotate(0) } 68%, 100% { opacity: 0; transform: rotate(90deg) } }
@keyframes iaDrift   { 0%, 100% { transform: translateY(0); opacity: .4 } 50% { transform: translateY(10px); opacity: 1 } }
@keyframes iaZoom    { from { transform: scale(1.16) } to { transform: scale(1) } }

/* Reduced-motion counterparts of the page wipe: same panel, same mark, same
   timing — cross-faded instead of swept, and with no rotation. */
@keyframes iaVeilSoft     { 0% { opacity: 0 } 20%, 62% { opacity: 1 } 100% { opacity: 0 } }
@keyframes iaVeilMarkSoft { 0% { opacity: 0 } 26%, 54% { opacity: 1 } 100% { opacity: 0 } }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__zoom, [data-parallax], [data-marquee] { transform: none !important; }
  .hscroll__inner { position: static; height: auto; }
  .hscroll__track { transform: none !important; overflow-x: auto; }
  .hero__scroll { opacity: 1; }

  /* A page change still needs to be announced, so the veil is exempt from the
     blanket rule above. A cross-fade carries no vestibular motion, unlike the
     full-screen sweep and rotating mark it replaces. */
  .veil       { animation: iaVeilSoft 1.1s ease forwards !important; }
  .veil__mark { animation: iaVeilMarkSoft 1.1s ease forwards !important; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .rail, .menu, .veil, .progress-track, .ticker, .skip-link { display: none !important; }
  .page[hidden] { display: block !important; }
  body::after { display: none; }
  body { background: #fff; }
}
