/* ============================================================
   CARBON CREATIVE V2 — styles.css
   Kinetic Creative Agency Aesthetic
   Fonts: Syne 700/800 · Space Grotesk 300/400/500 · IBM Plex Mono
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: #000; }

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Colors */
  --bg:        #080808;
  --bg-alt:    #0D0D0D;
  --text:      #E5E1DC;
  --gold:      #C9A84C;
  --gold-dim:  rgba(201, 168, 76, 0.1);
  --muted:     #b4b4b4;
  --border:    #1C1C1C;
  --white:     #FFFFFF;

  /* Type */
  --f-display: 'CC-Display', system-ui, sans-serif;
  --f-sans:    'CC-Sans', system-ui, sans-serif;
  --f-mono:    'CC-Mono', 'Courier New', monospace;

  /* Easing */
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);

  /* Layout */
  --nav-h:       64px;
  --gutter:      clamp(1.5rem, 4vw, 3.5rem);
  --section-pad: clamp(6rem, 10vw, 11rem);
}

/* ── Utilities ───────────────────────────────────────────── */
.mono {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
.bg-alt  { background: var(--bg-alt); }

.s-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.s-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--white);
}
.s-title em {
  color: var(--gold);
  font-style: italic;
  text-transform: none;
  letter-spacing: -0.02em;
}
.s-intro {
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 38ch;
  font-weight: 300;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border: 1px solid transparent;
  transition:
    background 0.22s var(--ease),
    color      0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform  0.2s  var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.btn-primary:hover  { background: #d9b858; border-color: #d9b858; transform: translateY(-2px); }
.btn-ghost          { color: var(--text); border-color: rgba(255,255,255,0.14); }
.btn-ghost:hover    { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-outline        { color: var(--text); border-color: var(--border); }
.btn-outline:hover  { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── Grain ───────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -100%;
  width: 300%; height: 300%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 1000;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10%     { transform: translate(-2%,-3%); }
  20%     { transform: translate(3%,1%); }
  30%     { transform: translate(-1%,2%); }
  40%     { transform: translate(2%,-1%); }
  50%     { transform: translate(-3%,3%); }
  60%     { transform: translate(1%,-2%); }
  70%     { transform: translate(-2%,1%); }
  80%     { transform: translate(3%,-3%); }
  90%     { transform: translate(-1%,2%); }
}

/* ── Cursor ──────────────────────────────────────────────── */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.25s;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-ring.is-hover  { width: 60px; height: 60px; }
.cursor-ring.is-hidden { opacity: 0; }
body:not(.has-cursor) .cursor-ring,
body:not(.has-cursor) .cursor-dot { display: none; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  max-width: 1380px;
  margin-inline: auto;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 2.75rem);
}
.nav-link {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.5rem 1.1rem;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: var(--gold-dim); border-color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 34px; height: 34px;
  padding: 4px;
  flex-shrink: 0;
}
.h-line {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
  transform-origin: center;
}
.hamburger.is-open .h-line:first-child { transform: translateY(4px) rotate(45deg); }
.hamburger.is-open .h-line:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ── Mobile Menu ─────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu.is-open { pointer-events: auto; opacity: 1; transform: none; }
.mobile-inner { text-align: center; padding: 2rem; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.m-link {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.06;
  transition: color 0.2s;
}
.m-link:hover { color: var(--gold); }
.m-cta { color: var(--gold); }
.mobile-meta { color: var(--muted); margin-top: 3.5rem; }
#mobileClose { display: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  padding-bottom: clamp(5vh, 8vh, 10vh);
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 75% 35%, rgba(201,168,76,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(201,168,76,0.04) 0%, transparent 60%),
    linear-gradient(rgba(8,8,8,0.62), rgba(8,8,8,0.62));
  pointer-events: none;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-eyebrow {
  display: block;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}
.hero-hed {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hl { display: block; }
.hl--pre {
  font-family: var(--f-display);
  font-size: clamp(0.85rem, 2vw, 1.75rem);
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.hl--mega {
  font-size: clamp(2.4rem, 7.1vw, 6.4rem);
  letter-spacing: 0;
  color: var(--white);
  line-height: 0.88;
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.hero-sub {
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.7;
  font-weight: 300;
}
.hero-cta-wrap {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.hero-scroll {
  position: absolute;
  bottom: clamp(2rem, 4vh, 3rem);
  right: var(--gutter);
  color: var(--muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.22em;
  font-size: 0.5rem;
  opacity: 0;
  z-index: 2;
}

/* ── Philosophy ──────────────────────────────────────────── */
.philosophy { border-top: 1px solid var(--border); }
.phil-quote {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 18ch;
  margin-block: clamp(2.5rem, 5vw, 5rem);
  quotes: none;
}
.phil-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  border-top: 1px solid var(--border);
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.phil-col p {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
}
.phil-col p + p { margin-top: 1.25rem; }
.phil-col em { color: var(--text); font-style: normal; font-weight: 500; }
.phil-closer { color: var(--text) !important; font-weight: 500 !important; }

/* ── Services / Accordion ────────────────────────────────── */
.services { border-top: 1px solid var(--border); }
.s-head {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}
.s-head-inner { display: flex; flex-direction: column; gap: 1.5rem; }

.accordion { border-top: 1px solid var(--border); }
.ac-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ac-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(1.25rem, 2.5vw, 1.875rem);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.ac-row:hover { background: rgba(255,255,255,0.018); }

/* Override .mono on ac-num */
.ac-num {
  font-family: var(--f-display) !important;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  letter-spacing: -0.03em !important;
  text-transform: none !important;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  transition: color 0.35s var(--ease);
  min-width: 3.5rem;
}
.ac-row:hover .ac-num,
.ac-item.is-open .ac-num { color: var(--gold); }

.ac-titles { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.ac-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.ac-row:hover .ac-name,
.ac-item.is-open .ac-name { color: var(--white); }
.ac-sub { color: var(--muted); }
.ac-icon { display: none; }
.ac-plus {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.2s;
  line-height: 1;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}
.ac-item.is-open .ac-plus { transform: rotate(45deg); color: var(--gold); }

.ac-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s var(--ease),
    opacity    0.4s var(--ease);
  padding-left: calc(clamp(2rem, 4vw, 3.5rem) + clamp(1.5rem, 3vw, 3rem));
}
.ac-body.is-open { max-height: 220px; opacity: 1; }
.ac-body p {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  line-height: 1.75;
  color: var(--muted);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 64ch;
  font-weight: 300;
}

/* ── Process ─────────────────────────────────────────────── */
.process { border-top: 1px solid var(--border); }
.process-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}
.process-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
}
.p-step {
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.p-step:last-child { border-right: none; }
.p-step:hover { background: rgba(201,168,76,0.025); }

/* Override .mono on p-num */
.p-num {
  font-family: var(--f-display) !important;
  font-weight: 800;
  font-size: clamp(3.5rem, 7.5vw, 8rem) !important;
  letter-spacing: -0.05em !important;
  text-transform: none !important;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.09);
  display: block;
  margin-bottom: 1.75rem;
  transition: -webkit-text-stroke-color 0.3s;
}
.p-step:hover .p-num { -webkit-text-stroke-color: rgba(201,168,76,0.25); }

.p-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.875rem;
}
.p-copy {
  font-size: clamp(0.78rem, 1.1vw, 0.875rem);
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}

/* ── Portfolio ───────────────────────────────────────────── */
.portfolio { border-top: 1px solid var(--border); }
.port-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.port-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}
/* Asymmetric editorial layout */
.pg-item:nth-child(1) { grid-column: span 7; }
.pg-item:nth-child(2) { grid-column: span 5; }
.pg-item:nth-child(3) { grid-column: span 4; }
.pg-item:nth-child(4) { grid-column: span 4; }
.pg-item:nth-child(5) { grid-column: span 4; }
.pg-item:nth-child(6) { grid-column: span 12; }

.pg-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}
.pg-item:nth-child(1),
.pg-item:nth-child(2),
.pg-item:nth-child(3),
.pg-item:nth-child(4),
.pg-item:nth-child(5) { min-height: clamp(18rem, 28vw, 36rem); }
.pg-item:nth-child(6) { min-height: clamp(10rem, 14vw, 16rem); }

.pg-fill {
  position: absolute;
  inset: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.pg-fill-1 { background: linear-gradient(140deg, #1C1510 0%, #2A1E0C 100%); }
.pg-fill-2 { background: linear-gradient(140deg, #0C1219 0%, #0E1A28 100%); }
.pg-fill-3 { background: linear-gradient(140deg, #13100D 0%, #201611 100%); }
.pg-fill-4 { background: linear-gradient(140deg, #0E1514 0%, #0C1D1D 100%); }
.pg-fill-5 { background: linear-gradient(140deg, #1B1210 0%, #28190B 100%); }
.pg-fill-6 { background: linear-gradient(90deg, #0E0B08 0%, #1A1510 50%, #0E0B08 100%); }

/* Noise texture on tiles */
.pg-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.pg-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 60%, transparent 100%);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.pg-item:hover .pg-info { opacity: 1; transform: none; }
.pg-cat { color: var(--gold); }
.pg-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 0.35rem;
  line-height: 1.1;
}
.pg-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
  font-weight: 300;
}
.port-cta { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ── Stats ───────────────────────────────────────────────── */
.stats { border-top: 1px solid var(--border); }
.stats-list {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
}
.st-row {
  display: grid;
  grid-template-columns: minmax(auto, 15rem) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  border-top: 1px solid var(--border);
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  position: relative;
  transition: background 0.25s;
}
.st-row:last-child { border-bottom: 1px solid var(--border); }
.st-row:hover { background: rgba(201,168,76,0.02); }
.st-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 9vw, 10rem);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.st-label {
  font-family: var(--f-sans);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
}
/* Featured 7.5M */
.st-hero .st-num {
  font-size: clamp(6rem, 13vw, 14rem);
  color: var(--white);
}
.st-hero .st-label {
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  color: var(--text);
  font-weight: 400;
}

/* ── About ───────────────────────────────────────────────── */
.about { border-top: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}
.about-left { position: sticky; top: calc(var(--nav-h) + 3rem); }
.about-hed {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2.5rem;
}
.about-hed em {
  color: var(--gold);
  font-style: italic;
  text-transform: none;
  letter-spacing: -0.02em;
}
.about-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%);
}
.about-img-label { color: var(--muted); position: relative; z-index: 1; }
.about-copy p {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact { border-top: 1px solid var(--border); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}
.contact-left { position: sticky; top: calc(var(--nav-h) + 3rem); }
.contact .s-title {
  font-size: clamp(2.25rem, 4.5vw, 5.25rem);
  margin-bottom: 1.75rem;
}
.contact .s-intro { max-width: 32ch; }

/* Form */
.cform { display: flex; flex-direction: column; gap: 1.75rem; }
.cf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cf-group { display: flex; flex-direction: column; gap: 0.5rem; }
.cf-label { color: var(--muted); font-size: 0.58rem; }
.cf-req { color: var(--gold); }
.cf-input {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.cf-input::placeholder { color: var(--muted); opacity: 0.5; }
.cf-input:focus { border-color: rgba(201,168,76,0.45); }
.cf-input.is-error { border-color: #b04848; }
.cf-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.cf-select { cursor: pointer; }
.cf-select option { background: #111; }
.cf-err {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #b04848;
  min-height: 1em;
}
.cf-submit { align-self: flex-start; margin-top: 0.25rem; }
.cf-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 2.5rem 1rem;
}
.cf-success.is-shown { display: flex; }
.cf-check {
  font-family: var(--f-display) !important;
  font-size: 2rem !important;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.cf-success p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 44ch;
  font-weight: 300;
}
.cf-note { color: var(--muted); margin-top: 2rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.foot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.foot-logo-img { height: 16px; width: auto; opacity: 0.65; transition: opacity 0.2s; }
.foot-logo:hover .foot-logo-img { opacity: 1; }
.foot-tag { color: var(--muted); line-height: 1.65; }
.foot-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
  margin-bottom: 1.5rem;
}
.foot-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); flex-wrap: wrap; }
.foot-link {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.foot-link:hover { color: var(--text); }
.foot-social { display: flex; gap: 1.25rem; }
.foot-soc { color: var(--muted); transition: color 0.2s; }
.foot-soc:hover { color: var(--text); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-copy,
.foot-privacy { color: var(--muted); transition: color 0.2s; }
.foot-privacy:hover { color: var(--text); }

/* ── Reveal Animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   0.85s var(--ease),
    transform 0.85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-eyebrow,
  .hl,
  .hero-sub,
  .hero-cta-wrap,
  .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .grain { animation: none; }
}

/* ── Responsive 1100px ───────────────────────────────────── */
@media (max-width: 1100px) {
  .s-head       { grid-template-columns: 1fr; }
  .process-head { grid-template-columns: 1fr; }
  .port-head    { grid-template-columns: 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .about-left   { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-left { position: static; }

  .process-cols { grid-template-columns: repeat(3, 1fr); }
  .p-step:nth-child(3) { border-right: none; }
  .p-step:nth-child(4) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .p-step:nth-child(5) { border-top: 1px solid var(--border); border-right: none; }

  .pg-item:nth-child(1) { grid-column: span 7; }
  .pg-item:nth-child(2) { grid-column: span 5; }
  .pg-item:nth-child(3),
  .pg-item:nth-child(4),
  .pg-item:nth-child(5) { grid-column: span 4; }
  .pg-item:nth-child(6) { grid-column: span 12; }
}

/* ── Responsive 768px ────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: clamp(4rem, 9vw, 6rem); }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo-img { height: 26px; }

  .hl--mega { font-size: clamp(3.5rem, 16vw, 6rem); }
  .hl--pre  { font-size: clamp(0.75rem, 3.8vw, 1.1rem); }

  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-cta-wrap { margin-left: 0; width: 100%; }
  .hero-cta-wrap .btn { flex: 1; text-align: center; justify-content: center; }

  .phil-body { grid-template-columns: 1fr; }

  .process-cols { grid-template-columns: 1fr 1fr; }
  .p-step { border-top: 1px solid var(--border); border-right: none !important; }
  .p-step:nth-child(odd) { border-right: 1px solid var(--border) !important; }

  .pg-item:nth-child(1),
  .pg-item:nth-child(2),
  .pg-item:nth-child(3),
  .pg-item:nth-child(4),
  .pg-item:nth-child(5),
  .pg-item:nth-child(6) { grid-column: span 12; min-height: 60vw; }
  .pg-item:nth-child(6) { min-height: 30vw; }
  .pg-info { opacity: 1; transform: none; }

  .st-row { grid-template-columns: auto 1fr; }
  .st-num { font-size: clamp(3.5rem, 12vw, 6rem); }
  .st-hero .st-num { font-size: clamp(4.5rem, 14vw, 7.5rem); }

  .ac-row { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .ac-name { font-size: clamp(0.9rem, 4vw, 1.2rem); }
  .ac-num { font-size: clamp(1.5rem, 5vw, 2.5rem) !important; min-width: 2.5rem; }

  .cf-row2 { grid-template-columns: 1fr; }

  .foot-mid    { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .foot-bottom { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

/* ── Responsive 480px ────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --gutter: 1.25rem; }

  .nav-logo-img { height: 22px; }

  .hl--mega { font-size: clamp(2.8rem, 13.5vw, 4.5rem); line-height: 0.92; }
  .hl--pre  { font-size: clamp(0.7rem, 3.5vw, 0.95rem); }

  .process-cols { grid-template-columns: 1fr; }
  .p-step { border-right: none !important; }

  .s-title { font-size: clamp(2rem, 10vw, 3.5rem); }

  .btn { padding: 0.85rem 1.25rem; font-size: 0.62rem; }

  /* Prevent iOS auto-zoom on form focus */
  .cf-input, .cf-textarea, select { font-size: 1rem !important; }
}
