/* ===================================================================
   DAY & NIGHT CONCRETE
   1. Tokens          5. Hero
   2. Reset / base    6. Sections
   3. Primitives      7. Footer
   4. Chrome          8. Motion / responsive
   =================================================================== */

/* ── 1. TOKENS ────────────────────────────────────────────────── */
:root {
  /* Palette */
  --cream:     #F2EDE4;
  --warm:      #FAFAF7;
  --tint:      #F1EEE7;   /* second light tone, so sections can differ */
  --charcoal:  #1A1A18;
  --ink-deep:  #121211;   /* footer: separates from charcoal sections */
  --ink-soft:  #232320;
  --mid:       #7A7A72;
  --light:     #C8C8BF;
  --border:    #E0DDD6;

  /* Tones on dark */
  --on-dark-1: rgba(242, 237, 228, 0.92);
  --on-dark-2: rgba(242, 237, 228, 0.56);
  --on-dark-3: rgba(242, 237, 228, 0.34);
  --line-dark: rgba(242, 237, 228, 0.13);

  /* Type */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-display: clamp(3rem, 7.2vw, 6.4rem);
  --fs-h2:      clamp(2.15rem, 4.4vw, 3.8rem);
  --fs-h3:      clamp(1.3rem, 1.9vw, 1.7rem);
  --fs-quote:   clamp(1.35rem, 2.1vw, 1.9rem);
  --fs-lede:    clamp(1rem, 1.15vw, 1.16rem);
  --fs-body:    0.975rem;
  --fs-cap:     0.7rem;

  /* Space: one scale, used everywhere */
  --sp-1: 0.375rem;
  --sp-2: 0.625rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2.25rem;
  --sp-6: 3.25rem;
  --sp-7: 4.5rem;
  --sp-8: 6.5rem;

  /* Layout */
  --maxw:    1320px;
  --gutter:  clamp(1.5rem, 4.6vw, 4.5rem);
  --section: clamp(5.5rem, 11vw, 9.5rem);
  --gap:     clamp(0.75rem, 1.1vw, 1.15rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 2. RESET / BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--charcoal);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: fixed; top: 0; left: 0; z-index: 100000;
  background: var(--cream); color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-cap); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

#top { position: absolute; top: 0; }

/* ── 3. PRIMITIVES ────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.section-dark  { background: var(--charcoal); color: var(--on-dark-1); }
.section-tint  { background: var(--tint); }

/* Eyebrow: small caps label with a leading rule (the "barrier" motif, quiet) */
.eyebrow {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: var(--fs-cap);
  line-height: 1.7;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: var(--sp-4);
}
/* flex-start + offset keeps the rule on the first line when the label wraps */
.eyebrow::before {
  content: ''; flex: 0 0 34px; height: 1px;
  margin-top: 0.85em;
  background: currentColor; opacity: 0.5;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--on-dark-3); }

/* Headings */
.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.section-title em { font-style: italic; }
.section-dark .section-title { color: var(--cream); }

.section-intro {
  font-size: var(--fs-lede);
  line-height: 1.85;
  color: var(--mid);
  max-width: 46ch;
}
.section-dark .section-intro { color: var(--on-dark-2); }

.section-head { margin-bottom: var(--sp-7); }
.section-head .section-title + .section-intro { margin-top: var(--sp-4); }

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--sp-6);
  align-items: end;
}
.section-head--split .section-intro { margin-top: 0; padding-bottom: 0.4rem; }

/* Buttons */
.btn {
  --btn-fg: var(--charcoal);
  --btn-bg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 2.2rem;
  font-size: var(--fs-cap);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn > span { position: relative; z-index: 1; }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: var(--btn-fg);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--btn-bg); }

.btn-solid { --btn-fg: var(--charcoal); --btn-bg: var(--cream); }

.btn-ghost {
  --btn-fg: var(--cream); --btn-bg: transparent;
  border-color: rgba(242, 237, 228, 0.28);
}
.btn-ghost::after { background: var(--cream); }
.btn-ghost:hover { color: var(--charcoal); border-color: var(--cream); }

.btn-outline {
  --btn-fg: currentColor; --btn-bg: transparent;
  border-color: currentColor;
}
.btn-outline::after { background: currentColor; }

.btn-sm { padding: 0.7rem 1.35rem; font-size: 0.66rem; letter-spacing: 0.14em; }

/* Text link with a rule that extends on hover */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-cap); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}
.link-arrow::after {
  content: ''; width: 34px; height: 1px;
  background: currentColor; opacity: 0.45;
  transition: width 0.4s var(--ease), opacity 0.4s var(--ease);
}
.link-arrow:hover::after { width: 58px; opacity: 1; }

/* ── 4. CHROME: loader, nav ───────────────────────────────────── */

#loading-screen {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--charcoal);
  display: grid; place-items: center;
  color: var(--cream);
}
.loader-content { width: min(320px, 62vw); }
.loader-mark {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 400; letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: var(--sp-4);
}
.loader-mark span { font-style: italic; color: var(--mid); }
.loader-track { height: 1px; background: var(--line-dark); overflow: hidden; }
.loader-bar {
  height: 100%; width: 0%;
  background: var(--cream);
  transition: width 0.4s var(--ease);
}
.loader-meta {
  display: flex; justify-content: space-between;
  margin-top: var(--sp-2);
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--on-dark-3);
}

#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: var(--sp-5);
  padding: 1.5rem var(--gutter);
  color: var(--cream);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-block: 0.95rem;
  color: var(--charcoal);
}
/* Over a dark section the bar inverts instead of flashing cream */
#navbar.scrolled.over-dark {
  background: rgba(18, 18, 17, 0.82);
  border-bottom-color: var(--line-dark);
  color: var(--cream);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem; letter-spacing: 0.045em; font-weight: 400;
  text-decoration: none;
  margin-right: auto;
}
.nav-logo span { font-style: italic; opacity: 0.6; }

.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: var(--fs-cap); letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-end { display: flex; align-items: center; gap: var(--sp-4); }
.nav-phone {
  font-size: var(--fs-cap); letter-spacing: 0.1em;
  text-decoration: none; opacity: 0.72;
  transition: opacity 0.25s var(--ease);
}
.nav-phone:hover { opacity: 1; }

/* Hamburger: two rules that cross (the barrier motif again) */
.menu-toggle {
  display: none;
  width: 30px; height: 18px;
  position: relative; z-index: 101;
  margin-left: auto;
}
.menu-toggle .bar {
  position: absolute; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}
.menu-toggle .bar:nth-child(1) { top: 5px; }
.menu-toggle .bar:nth-child(2) { top: 12px; width: 66%; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

#navbar.menu-open {
  background: transparent !important;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent !important;
  color: var(--cream) !important;
}

#mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(18, 18, 17, 0.985);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
#mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav-links li:first-child { border-top: 1px solid var(--line-dark); }
.mobile-nav-links a {
  display: block; padding: 1.15rem 0;
  color: var(--cream); text-decoration: none;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 300;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.mobile-nav-links a:hover { opacity: 1; transform: translateX(8px); }

.mobile-nav-foot {
  margin-top: var(--sp-6);
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--on-dark-2);
}
.mobile-nav-foot a { text-decoration: none; }

/* ── 5. HERO ──────────────────────────────────────────────────── */

#hero-background {
  position: fixed; inset: 0;
  width: 100%; height: 100svh;
  background: var(--charcoal);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
#hero-background > * { pointer-events: none; }
.hero-inner a, .hero-meta a { pointer-events: auto; }

/* Where the 3D ring sits. The 3D camera frames exactly 100vh of world
   height, so these vh values track the WebGL ring across any viewport.
   See `buildRing()` in js/main.js, which uses the same fractions. */
.hero {
  --ring-x: 74%;      /* frame.w * 0.24 right of centre */
  --ring-y: 52%;      /* frame.h * -0.02 */
  --ring-d: 58vh;     /* radius frame.h * 0.29, doubled */
}

/* Soft light pooled behind the ring so it separates from the background */
.hero-veil {
  position: absolute; left: var(--ring-x); top: var(--ring-y);
  width: calc(var(--ring-d) * 2.4); height: calc(var(--ring-d) * 2.4);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
    rgba(242, 237, 228, 0.1) 0%,
    rgba(242, 237, 228, 0.04) 34%,
    transparent 62%);
}

/* A faint concentric guide the block ring turns inside */
.hero-orbit {
  position: absolute; left: var(--ring-x); top: var(--ring-y);
  width: calc(var(--ring-d) * 1.44); height: calc(var(--ring-d) * 1.44);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(242, 237, 228, 0.075);
  border-radius: 50%;
}
.hero-orbit::before {
  content: ''; position: absolute; inset: 21%;
  border: 1px solid rgba(242, 237, 228, 0.045);
  border-radius: 50%;
}

.hero-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
  padding: 7rem var(--gutter) clamp(11rem, 26vh, 17rem);
}
.hero-copy { max-width: 44rem; }

.hero .eyebrow { color: var(--on-dark-3); margin-bottom: var(--sp-4); }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.hero-line { display: block; }
.hero-line em { font-style: italic; }
/* Second line steps in: a fracture offset, not a centred stack */
.hero-title .hero-line:nth-child(2) { padding-left: 0.14em; }

.hero-lede {
  margin-top: var(--sp-4);
  max-width: 34ch;
  font-size: var(--fs-lede);
  line-height: 1.8;
  color: var(--on-dark-2);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  margin-top: var(--sp-5);
}

.hero-meta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 60;                      /* above the canvas, below the nav */
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
  pointer-events: none;
  padding: var(--sp-4) var(--gutter) var(--sp-5);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5);
}
/* Keeps the strip legible where the ring passes behind it */
.hero-meta::after {
  content: ''; position: absolute;
  top: calc(var(--scrim-h, 9rem) * -1); bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(to bottom,
    rgba(26, 26, 24, 0) 0%,
    rgba(26, 26, 24, 0.2) 45%,
    rgba(26, 26, 24, 0.6) 75%,
    rgba(26, 26, 24, 0.86) 100%);
  z-index: -1;
}
.hero-meta::before {
  content: ''; position: absolute;
  left: var(--gutter); right: var(--gutter); top: 0;
  height: 1px;
  background: linear-gradient(to right,
    var(--line-dark) 0 calc(50% - 18px),
    transparent calc(50% - 18px) calc(50% + 18px),
    var(--line-dark) calc(50% + 18px) 100%);
}

.hero-facts { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); }
.fact dt {
  font-family: var(--font-serif);
  font-size: 1.65rem; font-weight: 300; line-height: 1;
  color: var(--cream);
}
.fact dd {
  margin-top: 0.3rem;
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-3);
}

.hero-scroll {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-dark-3);
  padding-bottom: 0.35rem;
}
.scroll-line {
  display: block; width: 42px; height: 1px;
  background: rgba(242, 237, 228, 0.3);
  transform-origin: left;
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleX(0.35); opacity: 0.35; }
  50%      { transform: scaleX(1);    opacity: 0.9; }
}

#hero-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100svh;
  z-index: 50;
  pointer-events: none;
}

#hero-scroll-trigger {
  height: 150vh; width: 100%;
  pointer-events: none;
}

.content-wrapper {
  position: relative; z-index: 10;
  background: var(--warm);
}

/* ── 6. SECTIONS ──────────────────────────────────────────────── */

/* Services: an editorial list, hairlines only */
.service-list { border-top: 1px solid var(--border); }
.service {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--sp-5);
  align-items: baseline;
  padding-block: clamp(1.6rem, 2.6vw, 2.4rem);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}
.service:hover { background: rgba(26, 26, 24, 0.025); }
.service-num {
  font-family: var(--font-serif);
  font-size: 0.95rem; letter-spacing: 0.08em;
  color: var(--light);
}
.service-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 300; line-height: 1.25;
  transition: transform 0.4s var(--ease);
}
.service:hover .service-name { transform: translateX(6px); }
.service-desc { color: var(--mid); line-height: 1.85; }

/* Portfolio: masonry columns. Images keep their own proportions and are
   never cropped; the browser balances the column heights. */
.work-grid {
  column-count: 3;
  column-gap: var(--gap);
}

.work-item {
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: var(--gap);
  overflow: hidden;
  background: var(--ink-soft);
}
.work-item img {
  width: 100%; height: auto;
  display: block;
  filter: grayscale(12%) contrast(103%);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.work-item:hover img { transform: scale(1.04); filter: grayscale(0%) brightness(0.82); }

/* Home-page teaser: four cropped tiles that link through to the full set */
.work-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.work-strip .work-item {
  aspect-ratio: 4 / 5;
  margin-bottom: 0;
  display: block;
  text-decoration: none;
}
.work-strip .work-item img { height: 100%; object-fit: cover; }

.work-label {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 2.5rem 1.4rem 1.25rem;
  background: linear-gradient(transparent, rgba(18, 18, 17, 0.88));
  color: var(--cream);
  font-size: var(--fs-cap); letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.work-label span:last-child { color: var(--on-dark-2); }
.work-item:hover .work-label,
.work-item:focus-within .work-label { opacity: 1; transform: translateY(0); }

.work-foot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-cap); letter-spacing: 0.14em;
  color: var(--on-dark-3);
}
.work-foot .link-arrow { color: var(--cream); }

/* ── PORTFOLIO PAGE (portfolio.html) ──────────────────────────── */

/* No fixed hero here, so the page itself carries the dark ground */
body.page-dark { color: var(--on-dark-1); background: var(--charcoal); }

.page-header {
  padding-top: clamp(9rem, 20vh, 14rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-header .eyebrow { color: var(--on-dark-3); }
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--cream);
}
.page-title em { font-style: italic; }
.page-intro {
  margin-top: var(--sp-4);
  max-width: 54ch;
  font-size: var(--fs-lede);
  line-height: 1.85;
  color: var(--on-dark-2);
}
.page-header-link {
  margin-top: var(--sp-5);
  color: var(--cream);
}

.section-gallery { padding-bottom: var(--section); }

.cta-band {
  padding-block: var(--section);
  border-top: 1px solid var(--line-dark);
}
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--sp-6);
}
.cta-band .eyebrow { color: var(--on-dark-3); }
.cta-band .section-title { color: var(--cream); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-visual { position: relative; padding-bottom: 2rem; padding-right: 2rem; }
.about-img-wrap {
  aspect-ratio: 4 / 5;
  background: #E8E4DC;
  overflow: hidden;
}
.about-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(18%) contrast(104%);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.about-visual:hover .about-img { transform: scale(1.04); filter: grayscale(0%); }

.about-badge {
  position: absolute; right: 0; bottom: 0;
  width: clamp(96px, 11vw, 128px); aspect-ratio: 1;
  background: var(--charcoal); color: var(--cream);
  display: grid; place-content: center; justify-items: center;
  text-align: center;
}
.badge-num {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 300; line-height: 1;
}
.badge-text {
  margin-top: 0.35rem;
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-dark-3);
}

.about-text .section-title { margin-bottom: var(--sp-4); }
.about-text p { color: var(--mid); line-height: 1.9; max-width: 52ch; }
.about-text p + p { margin-top: var(--sp-3); }

.about-stats {
  display: flex; flex-wrap: wrap; gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.about-stats dt {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.6vw, 2.3rem); font-weight: 300; line-height: 1;
}
.about-stats dd {
  margin-top: 0.4rem;
  font-size: var(--fs-cap); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mid);
}

/* Reviews */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-6);
}
/* Column layout + auto margin keeps both attribution rules on one line,
   whatever the quotes weigh. */
.quote { position: relative; display: flex; flex-direction: column; }
.quote blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-quote);
  font-weight: 300; font-style: italic;
  line-height: 1.42;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.quote blockquote::before { content: '“'; }
.quote blockquote::after  { content: '”'; }
.quote figcaption {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.quote-name { font-size: 0.86rem; letter-spacing: 0.06em; }
.quote-role {
  font-size: var(--fs-cap); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mid);
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact-left .section-title { margin-bottom: var(--sp-4); }
.contact-lede {
  color: var(--on-dark-2);
  line-height: 1.9;
  max-width: 38ch;
}

.contact-details {
  margin-top: var(--sp-6);
  border-top: 1px solid var(--line-dark);
}
.contact-item {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line-dark);
}
.contact-icon {
  flex: 0 0 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  color: var(--light);
}
.contact-icon svg { width: 15px; height: 15px; stroke-linecap: round; stroke-linejoin: round; }
.contact-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.contact-label {
  font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: 0.25rem;
}
.contact-value {
  font-size: 0.9rem;
  color: var(--on-dark-1);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
a.contact-value:hover { border-bottom-color: currentColor; }
.contact-value--plain { color: var(--on-dark-2); line-height: 1.65; }

.contact-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label {
  font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-dark-3);
}
.form-input, .form-textarea {
  width: 100%;
  background: rgba(242, 237, 228, 0.04);
  border: 1px solid var(--line-dark);
  padding: 0.95rem 1.1rem;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 300;
  outline: none; resize: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(242, 237, 228, 0.25); }
.form-input:hover, .form-textarea:hover { border-color: rgba(242, 237, 228, 0.22); }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(242, 237, 228, 0.45);
  background: rgba(242, 237, 228, 0.06);
}
.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] {
  border-color: rgba(214, 138, 110, 0.75);
}
.form-textarea { min-height: 11rem; }

/* Formspree honeypot: has to stay in the layout for bots but out of sight
   and out of the tab order for people. */
.form-honey {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  margin-top: var(--sp-2);
}
.form-note {
  font-size: var(--fs-cap); letter-spacing: 0.12em;
  color: var(--on-dark-3);
}
.form-note.is-error { color: #D68A6E; }
.form-note.is-sent  { color: var(--cream); }

/* ── 7. FOOTER ────────────────────────────────────────────────── */

footer {
  background: var(--ink-deep);
  color: var(--on-dark-1);
  padding-top: clamp(4rem, 8vw, 6.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 400; letter-spacing: 0.04em;
  color: var(--cream);
}
.footer-logo span { font-style: italic; opacity: 0.6; }
.footer-brand p {
  margin-block: var(--sp-3) var(--sp-4);
  max-width: 32ch;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--on-dark-2);
}
.footer-brand .link-arrow { color: var(--cream); }

.footer-heading {
  font-size: 0.63rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 400;
  color: var(--on-dark-3);
  margin-bottom: var(--sp-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--cream); }
.footer-plain li { font-size: 0.88rem; color: var(--on-dark-2); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-3);
  padding-block: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-cap); letter-spacing: 0.1em;
  color: var(--on-dark-3);
}
.to-top {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.16em;
  transition: color 0.25s var(--ease);
}
.to-top::after {
  content: ''; width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease);
}
.to-top:hover { color: var(--cream); }
.to-top:hover::after { transform: rotate(45deg) translate(2px, 2px); }

/* ── 8. MOTION ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.service.reveal { transition-delay: var(--d, 0s); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav-links { gap: 1.6rem; }
  .nav-phone { display: none; }
  .service { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); }
}

@media (max-width: 900px) {
  .nav-links, .nav-end { display: none; }
  .menu-toggle { display: block; }

  .section-head--split { grid-template-columns: 1fr; align-items: start; gap: var(--sp-4); }
  .section-head--split .section-intro { padding-bottom: 0; }

  .service {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.35rem var(--sp-4);
    align-items: start;
  }
  .service-num { grid-row: 1 / 3; }
  .service-desc { grid-column: 2; }

  .work-grid { column-count: 2; }
  .work-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-label { opacity: 1; transform: none; }
  .cta-inner { align-items: flex-start; }

  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 30rem; }
  .quote-grid { grid-template-columns: 1fr; gap: var(--sp-6); }

  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  /* Ring drops to the bottom of the frame, heading rides up above it */
  .hero {
    --ring-x: 50%;
    --ring-y: 93.3%;   /* frame.h * -0.433 */
    --ring-d: 34vh;    /* radius frame.h * 0.17, doubled */
  }
  /* max() so the lockup always clears the fixed nav, however short the screen */
  .hero-inner { align-items: flex-start; padding: max(12vh, 6.75rem) var(--gutter) 40vh; }
  .hero-scroll { display: none; }
  .hero-meta { --scrim-h: 15rem; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.6rem); line-height: 1.0; }
  /* Tighter tracking keeps the eyebrow on one line at 360px */
  .hero .eyebrow { font-size: 0.66rem; letter-spacing: 0.15em; gap: 0.65rem; }
  .hero .eyebrow::before { flex-basis: 26px; }
  .hero-lede { font-size: 0.95rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { gap: 1.25rem; }
  .fact dt { font-size: 1.25rem; }
  .fact dd { font-size: 0.56rem; letter-spacing: 0.12em; }

  /* Two columns stay: twelve full-width photos would be an endless scroll.
     Stack the caption so it fits the narrower tile. */
  .work-label {
    flex-direction: column; gap: 0.1rem;
    font-size: 0.58rem; letter-spacing: 0.12em;
    padding: 1.8rem 0.75rem 0.7rem;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .quote blockquote { font-size: 1.25rem; }
}

/* Short phones: tighten the lockup so it clears the ring rising below it.
   Must sit after the width queries above to win on 360x640-class screens. */
@media (max-width: 900px) and (max-height: 720px) {
  .hero-inner { padding-top: max(8vh, 6.25rem); }
  .hero-title { font-size: clamp(2rem, 10vw, 2.7rem); }
  .hero-lede { margin-top: var(--sp-3); }
  .hero-actions { margin-top: var(--sp-4); gap: 0.6rem; }
  .hero-actions .btn { padding-block: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
