/* ============================================================
   RBY RENOVATIONS — Design System
   Luxury construction. Apple-glass aesthetic. Roboto.
   ============================================================ */

:root {
  /* — Warm architectural palette — */
  --paper:      #FFFFFF;   /* lightest surface            */
  --bone:       #F8F5F0;   /* page background             */
  --bone-2:     #F1ECE3;   /* deeper warm panel           */
  --sand:       #E6DDD0;   /* hairline-on-light, fills    */
  --ink:        #16120E;   /* near-black, warm espresso   */
  --ink-2:      #20191320; /* (reserved)                  */
  --night:      #1A1511;   /* dark section background     */
  --night-2:    #241C16;   /* dark section, raised        */

  --clay:       #B5532F;   /* brand terracotta            */
  --clay-deep:  #98431F;
  --clay-soft:  #CB7C5C;
  --clay-tint:  #EFE0D6;

  --stone-800:  #2C261F;
  --stone-700:  #463E35;
  --stone-600:  #5E554A;
  --stone-500:  #837868;
  --stone-400:  #A99E8E;
  --stone-300:  #C8BEAF;

  --line:        rgba(22, 18, 14, 0.12);
  --line-soft:   rgba(22, 18, 14, 0.07);
  --line-strong: rgba(22, 18, 14, 0.22);
  --line-light:  rgba(255, 255, 255, 0.14);
  --line-light-2:rgba(255, 255, 255, 0.08);

  /* — Glass — */
  --glass-light: rgba(251, 249, 245, 0.72);
  --glass-dark:  rgba(18, 14, 11, 0.55);
  --blur:        saturate(180%) blur(22px);

  /* — Type — */
  --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* — Metrics — */
  --container: 1320px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(5rem, 10vw, 9.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --radius-xl: 20px;

  /* — Motion — */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--clay); color: var(--paper); }

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

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 960px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.bg-bone   { background: var(--bone); }
.bg-paper  { background: var(--paper); }
.bg-bone-2 { background: var(--bone-2); }
.bg-night  { background: var(--night); color: var(--paper); }

.divider { height: 1px; background: var(--line); border: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--center { justify-content: center; }
.eyebrow--plain::before { display: none; }

.display {
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-size: clamp(2.9rem, 7vw, 6.4rem);
}
.h1 {
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
}
.h2 {
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
}
.h3 {
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--stone-700);
  letter-spacing: -0.005em;
}
.body-lg { font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.75; color: var(--stone-600); }
.muted { color: var(--stone-500); }
.on-dark .muted, .bg-night .muted { color: var(--stone-300); }
.strong-clay { color: var(--clay); }

em.accent { font-style: italic; color: var(--clay); }

/* Fine-tune weights when needed */
.w-medium { font-weight: 500; }
.w-regular { font-weight: 400; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bh: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  height: var(--bh);
  padding-inline: 1.9rem;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform .45s var(--ease), background-color .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn--solid {
  background: var(--clay);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 30px -12px rgba(152,67,31,0.6);
}
.btn--solid:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(152,67,31,0.7); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--stone-800); transform: translateY(-2px); }

.btn--glass {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--glass:hover { background: var(--paper); transform: translateY(-2px); border-color: var(--line-strong); }

.btn--outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.on-dark .btn--outline, .bg-night .btn--outline { border-color: var(--line-light); color: var(--paper); }
.on-dark .btn--outline:hover, .bg-night .btn--outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--ghost { padding-inline: 0; height: auto; gap: 0.5em; border-radius: 0; font-weight: 500; }
.btn--ghost .ln { position: relative; padding-bottom: 3px; }
.btn--ghost .ln::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.btn--ghost:hover .ln::after { transform: scaleX(1); }

.btn--sm { --bh: 46px; padding-inline: 1.4rem; font-size: 0.8rem; }
.btn--lg { --bh: 62px; padding-inline: 2.3rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============================================================
   HEADER / NAV  (Apple-glass)
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform .5s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
  margin-top: 18px;
  padding: 0 0.6rem 0 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease),
              box-shadow .5s var(--ease), backdrop-filter .5s var(--ease), height .4s var(--ease);
}
.site-header.is-stuck .nav {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-color: var(--line-soft);
  box-shadow: 0 14px 40px -22px rgba(22,18,14,0.45);
  height: 66px;
}
/* On dark heroes, nav text is light until stuck */
.site-header.on-hero .brand-name,
.site-header.on-hero .nav-links a,
.site-header.on-hero .nav-toggle { color: var(--paper); }
.site-header.on-hero.is-stuck .brand-name,
.site-header.on-hero.is-stuck .nav-links a,
.site-header.on-hero.is-stuck .nav-toggle { color: var(--ink); }

.brand { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-name { display: flex; flex-direction: column; gap: 2px; line-height: 1.08; }
.brand-name b { font-weight: 700; letter-spacing: 0.14em; font-size: 0.92rem; }
.brand-name span { font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.72; font-weight: 400; line-height: 1.3; max-width: 235px; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  position: relative;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: color .3s, background-color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0.3rem; width: 4px; height: 4px;
  border-radius: 50%; background: var(--clay); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--clay); }
.nav-links a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav-links a[aria-current="page"] { color: var(--clay); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-toggle { display: none; color: var(--ink); }
.nav-toggle .bars { position: relative; display: block; width: 24px; height: 14px; }
.nav-toggle .bars i { position: absolute; left: 0; width: 100%; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.nav-toggle .bars i:nth-child(1) { top: 1px; }
.nav-toggle .bars i:nth-child(2) { bottom: 1px; }
.nav-toggle.is-active .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-active .bars i:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  padding: 120px var(--pad) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a.m-link {
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 300; letter-spacing: -0.02em;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a.m-link span { font-size: 0.8rem; color: var(--clay); letter-spacing: 0.1em; }
.m-foot { font-size: 0.85rem; color: var(--stone-600); display: grid; gap: 0.3rem; }
.m-foot a { color: var(--ink); }
body.menu-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,13,9,0.44) 0%, rgba(18,13,9,0.12) 14%, rgba(18,13,9,0.12) 42%, rgba(18,13,9,0.22) 62%, rgba(18,13,9,0.78) 100%),
    linear-gradient(90deg, rgba(18,13,9,0.58) 0%, rgba(18,13,9,0.14) 44%, rgba(18,13,9,0) 66%);
}
.hero-inner { width: 100%; padding-block: clamp(3rem, 8vh, 7rem); }
.hero .eyebrow { color: #EBAA86; text-shadow: 0 1px 14px rgba(0,0,0,0.55); }
.hero .display { max-width: 16ch; margin-top: 1.4rem; text-shadow: 0 2px 40px rgba(8,5,3,0.5); }
.hero-sub { max-width: 50ch; margin-top: 1.8rem; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 300; line-height: 1.6; color: #fff; text-shadow: 0 1px 2px rgba(8,5,3,0.55), 0 2px 26px rgba(8,5,3,0.5); }
.hero .btn-row { margin-top: 2.6rem; }
.hero-meta {
  margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem);
}
.hero-meta .stat b { display: block; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; }
.hero-meta .stat span { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.62); }

.scroll-cue {
  position: absolute; right: var(--pad); bottom: 2.4rem; z-index: 2;
  display: flex; align-items: center; gap: 0.7rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.scroll-cue .dotline { width: 1px; height: 46px; background: linear-gradient(var(--clay-soft), transparent); position: relative; overflow: hidden; }
.scroll-cue .dotline::after { content:""; position:absolute; top:-50%; left:0; width:1px; height:50%; background: var(--paper); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(300%)} }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.page-hero .display, .page-hero .h1 { max-width: 18ch; margin-top: 1.3rem; }
.page-hero .lede { max-width: 56ch; margin-top: 1.6rem; }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement .big {
  font-weight: 300; letter-spacing: -0.025em; line-height: 1.18;
  font-size: clamp(1.6rem, 3.6vw, 3rem); max-width: 22ch;
}
.statement .big .dim { color: var(--stone-400); }

/* ============================================================
   PILLARS  (Why RBY)
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar {
  padding: 2.6rem 1.8rem 2.6rem 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar:not(:first-child) { padding-left: 1.8rem; }
.pillar .num { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--clay); font-weight: 500; }
.pillar h3 { margin-top: 2.4rem; font-size: 1.22rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.pillar p { margin-top: 0.9rem; font-size: 0.95rem; color: var(--stone-600); line-height: 1.65; }
.pillar .pi { width: 30px; height: 30px; color: var(--ink); margin-top: 1.6rem; opacity: 0.85; }

/* ============================================================
   FEATURE ROW (image + text, alternating)
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.feature--flip .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4/3.2; background: var(--sand); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-media .tag {
  position: absolute; left: 1.1rem; bottom: 1.1rem; padding: 0.5rem 0.95rem; border-radius: 100px;
  background: var(--glass-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--line-soft);
}
.feature-body h2 { margin-top: 1.2rem; }
.feature-body .body-lg { margin-top: 1.3rem; }
.feature-list { margin-top: 1.8rem; display: grid; gap: 0; }
.feature-list li {
  display: flex; align-items: center; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--line-soft);
  font-size: 0.98rem; color: var(--stone-700);
}
.feature-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }
.feature-body .btn-row { margin-top: 2rem; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.stat-block b { display: block; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 200; letter-spacing: -0.03em; line-height: 1; }
.stat-block .lab { margin-top: 0.9rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-400); }
.bg-night .stat-block .lab { color: var(--stone-300); }
.stat-block .ds { color: var(--clay); }

/* ============================================================
   PROJECT GRID
   ============================================================ */
/* Editorial gallery: image + small caption below, calm hover lift (bright, no dark overlays) */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.6rem, 2.4vw, 2.6rem) clamp(1rem, 1.6vw, 1.7rem); }
.proj { position: relative; display: flex; flex-direction: column; grid-column: span 4; }
.proj > img {
  display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--sand); overflow: hidden;
  box-shadow: 0 1px 0 var(--line-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.proj--wide { grid-column: span 8; }
.proj--wide > img { aspect-ratio: 16/10; }
.proj--tall { grid-column: span 4; }
.proj--tall > img { aspect-ratio: 3/4; }
.proj--half { grid-column: span 6; }
.proj--half > img { aspect-ratio: 3/2; }
.proj:hover > img { transform: translateY(-5px); box-shadow: 0 28px 52px -28px rgba(22,18,14,0.5); }
.proj-cap { padding-top: 1.05rem; }
.proj-cap .t { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); font-weight: 500; }
.proj-cap h3 { margin-top: 0.45rem; font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.proj-cap .loc { font-size: 0.85rem; color: var(--stone-500); margin-top: 0.22rem; }
.proj .arrow {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line-soft); color: var(--ink);
  opacity: 0; transform: scale(0.82); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.proj:hover .arrow { opacity: 1; transform: scale(1); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.step { position: relative; padding-top: 2.2rem; border-top: 2px solid var(--ink); }
.step .n { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--clay); font-weight: 500; }
.step h3 { margin-top: 1.6rem; font-size: 1.35rem; font-weight: 400; letter-spacing: -0.01em; }
.step p { margin-top: 0.8rem; color: var(--stone-600); font-size: 0.97rem; line-height: 1.65; }
.bg-night .step { border-top-color: var(--clay); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote-mark { font-size: 5rem; line-height: 0.6; color: var(--clay); font-weight: 700; height: 2.2rem; }
.quote-text { font-weight: 300; letter-spacing: -0.015em; line-height: 1.4; font-size: clamp(1.4rem, 2.8vw, 2.3rem); max-width: 24ch; }
.quote-by { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; }
.quote-by .av { width: 50px; height: 50px; border-radius: 50%; background: var(--clay); color: var(--paper); display: grid; place-items: center; font-weight: 500; letter-spacing: 0.05em; flex-shrink: 0; }
.quote-by b { font-weight: 500; display: block; }
.quote-by span { color: var(--stone-500); font-size: 0.9rem; }
.bg-night .quote-by span { color: var(--stone-300); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(3rem, 7vw, 6rem); background: var(--bone-2); border: 1px solid var(--line-soft); color: var(--ink); }
.cta-band .cbg { display: none; }
.cta-band::after { content:""; position:absolute; right:0; top:0; bottom:0; width:46%; z-index:0; background: radial-gradient(115% 95% at 100% 0%, var(--clay-tint), transparent 68%); pointer-events:none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .h1 { max-width: 18ch; }
.cta-band .lede { color: var(--stone-600); max-width: 46ch; margin-top: 1.3rem; }
.cta-band .btn-row { margin-top: 2.4rem; }

/* ============================================================
   MARQUEE (markets)
   ============================================================ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.6rem; }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marq 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 3.5rem; font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 300; letter-spacing: -0.01em; color: var(--stone-600); }
.marquee-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
   FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-600); font-weight: 500; }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%; height: 58px; padding: 0 1.1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s, background-color .3s;
  font-size: 1rem;
}
.field textarea { height: auto; padding: 1rem 1.1rem; resize: vertical; min-height: 140px; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E554A' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.6rem; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(181,83,47,0.12); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--stone-400); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bone-2); color: var(--ink); padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: 2.5rem; border-top: 1px solid var(--line-soft); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 4rem; border-bottom: 1px solid var(--line); }
.footer-brand .brand-mark { width: 54px; height: 54px; }
.footer-brand p { margin-top: 1.4rem; color: var(--stone-600); max-width: 30ch; line-height: 1.7; font-weight: 300; }
.f-col h4 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-500); font-weight: 500; margin-bottom: 1.3rem; }
.f-col ul { display: grid; gap: 0.85rem; }
.f-col a, .f-col li { color: var(--stone-700); font-size: 0.95rem; font-weight: 400; transition: color .3s; }
.f-col a:hover { color: var(--clay); }
.f-col .office { color: var(--stone-600); font-size: 0.88rem; line-height: 1.55; margin-bottom: 1.1rem; }
.f-col .office b { color: var(--ink); font-weight: 500; display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem; }
.socials { display: flex; gap: 0.7rem; margin-top: 0.4rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; transition: all .35s var(--ease); }
.socials a:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2.2rem; font-size: 0.82rem; color: var(--stone-500); }
.footer-bottom a { color: var(--stone-600); }
.footer-bottom a:hover { color: var(--clay); }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
[data-reveal][data-d="4"] { transition-delay: .32s; }
[data-reveal][data-d="5"] { transition-delay: .40s; }

/* ============================================================
   HELPERS
   ============================================================ */
.stack-sm > * + * { margin-top: 0.8rem; }
.section-head { max-width: 640px; }
.section-head .h2 { margin-top: 1.1rem; }
.section-head .lede { margin-top: 1.2rem; }
.head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.mt-gap { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.center { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { border-bottom: 1px solid var(--line); }
  .pillar:nth-child(2n) { border-right: 0; }
  .pillar:nth-child(2n) { padding-left: 1.8rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 80px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
  .nav { padding-right: 0.4rem; }
  .hero { min-height: auto; padding-top: 6rem; }
  .hero-inner { padding-top: 2.5rem; padding-bottom: 3rem; }

  .feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature--flip .feature-media { order: 0; }
  .feature-media { aspect-ratio: 16/11; }

  .stats-band { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 2rem; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 2px solid var(--ink); }

  .proj, .proj--wide, .proj--tall, .proj--half { grid-column: span 12; }
  .proj > img, .proj--wide > img, .proj--tall > img, .proj--half > img { aspect-ratio: 16/11; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; padding-left: 0 !important; padding-block: 2rem; }
}

@media (max-width: 560px) {
  :root { --section-y: clamp(3.5rem, 14vw, 5rem); }
  .form-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
}

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

/* ============================================================
   COMPONENT ADDITIONS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.grid-2-asym { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.3rem, 2.2vw, 2rem); }

/* Expertise cards */
.xcard { display: flex; flex-direction: column; height: 100%; }
.xcard .media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/4.6; background: var(--sand); }
.xcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.xcard:hover .media img { transform: scale(1.06); }
.xcard .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,11,8,0) 45%, rgba(15,11,8,0.55)); }
.xcard .xnum { position: absolute; top: 1.1rem; left: 1.2rem; z-index: 2; color: var(--paper); font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 500; }
.xcard .xtitle { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 2; color: var(--paper); font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 400; letter-spacing: -0.01em; }
.xcard .xbody { padding-top: 1.4rem; }
.xcard .xbody p { color: var(--stone-600); font-size: 0.96rem; line-height: 1.65; }
.xcard .xbody .btn { margin-top: 1.2rem; }

/* Inline list with checks */
.checklist { display: grid; gap: 0; margin-top: 0.5rem; }
.checklist li { display: flex; gap: 0.85rem; padding: 0.7rem 0; border-top: 1px solid var(--line-soft); color: var(--stone-700); font-size: 0.97rem; align-items: baseline; }
.checklist li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); flex-shrink: 0; transform: translateY(-2px); }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }

/* Section number eyebrow */
.idx-tag { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--clay); font-weight: 500; }

/* Card panel */
.panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); }
.panel--dark { background: var(--night-2); border-color: var(--line-light-2); color: var(--paper); }

/* Big lead image */
.lead-media { border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--sand); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-media--tall { aspect-ratio: 4/3; }

/* About facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.facts .fact { background: var(--bone); padding: 1.8rem 1.5rem; }
.facts .fact b { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 200; letter-spacing: -0.02em; }
.facts .fact span { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); margin-top: 0.4rem; display: block; }

/* Form layout helpers */
.form-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--stone-500); }
.form-success { display: none; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--clay-tint); border: 1px solid var(--clay-soft); color: var(--clay-deep); font-size: 0.95rem; margin-bottom: 1.6rem; }
.form-success.show { display: block; }

/* Contact info rail */
.contact-rail { display: grid; gap: 1.8rem; }
.contact-rail .ci h4 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); font-weight: 500; margin-bottom: 0.6rem; }
.contact-rail .ci p, .contact-rail .ci a { color: var(--stone-700); font-size: 1rem; line-height: 1.6; }
.contact-rail .ci a:hover { color: var(--clay); }

/* Tall feature media variants */
.feature-media--tall { aspect-ratio: 3/3.6; }

/* Projects intro filter row */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.chip { padding: 0.6rem 1.2rem; border-radius: 100px; border: 1px solid var(--line); font-size: 0.85rem; color: var(--stone-600); transition: all .3s var(--ease); cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Eyebrow on dark */
.bg-night .eyebrow, .on-dark .eyebrow { color: var(--clay-soft); }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
  .checklist.cols-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .xcard .media { aspect-ratio: 16/12; }
}

/* Logo image */
img.brand-mark { object-fit: contain; }

/* Footer slogan tagline */
.f-tagline { color: var(--clay-soft); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 500; margin-top: 1.3rem; }
.footer-brand .f-tagline + p { margin-top: 0.7rem; }

/* Testimonials grid */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2vw, 1.8rem); }
.tcard { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(1.7rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: 1.15rem; height: 100%; }
.tcard .stars { color: var(--clay); letter-spacing: 3px; font-size: 0.86rem; }
.tcard .q { margin: 0; font-size: 1.02rem; line-height: 1.62; color: var(--stone-700); font-weight: 300; font-style: normal; flex: 1; }
.tcard .by { display: flex; align-items: center; gap: 0.85rem; }
.tcard .by .av { width: 46px; height: 46px; border-radius: 50%; background: var(--clay); color: var(--paper); display: grid; place-items: center; font-weight: 500; font-size: 0.85rem; flex-shrink: 0; letter-spacing: 0.03em; }
.tcard .by b { font-weight: 500; display: block; }
.tcard .by cite { font-style: normal; color: var(--stone-500); font-size: 0.86rem; }
@media (max-width: 980px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }
