/* ==========================================================================
   J&R LAM CONSTRUCTION — Design System
   Aesthetic: Premium Industrial · Charcoal + Gold + Bone
   Type: Bebas Neue (display) / Hanken Grotesk (body)
   Hand-authored CSS — no build step, instant paint, fully responsive.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Charcoal scale */
  --ink-900: #0c0c0d;
  --ink-850: #121214;
  --ink-800: #17171a;
  --ink-700: #1f1f23;
  --ink-600: #2a2a2f;
  --ink-500: #3a3a41;

  /* Gold */
  --gold-300: #f6d888;
  --gold-400: #ecc25c;
  --gold-500: #d6a23b;
  --gold-600: #b07e22;
  --gold-grad: linear-gradient(135deg, #f8df96 0%, #e6bd55 38%, #d09a32 68%, #a9791c 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(248,223,150,0.16), rgba(208,154,50,0.16));

  /* Light / neutrals */
  --bone: #f6f3ec;
  --bone-200: #ece6da;
  --bone-300: #ddd5c5;
  --paper: #ffffff;

  /* Text */
  --t-on-dark: #f4f2ec;
  --t-on-dark-mut: #a7a299;
  --t-on-dark-faint: #6f6b63;
  --t-on-light: #1a1a1a;
  --t-on-light-mut: #58534b;

  /* Lines */
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-dark-strong: rgba(255, 255, 255, 0.16);
  --line-light: rgba(20, 20, 20, 0.10);

  /* Type */
  --f-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Spacing / layout */
  --container: 1240px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Radius & shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 18px 50px -24px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 18px 50px -22px rgba(214, 162, 59, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--f-body);
  background: var(--ink-900);
  color: var(--t-on-dark);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 0.92; letter-spacing: 0.01em; }
.display {
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 1.5rem + 9vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: 0.005em;
}
.h-section {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5.25rem);
  line-height: 0.9;
}
.h-card { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); line-height: 0.95; }
.lead { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); color: var(--t-on-dark-mut); line-height: 1.6; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold-grad);
}
.eyebrow.center::after {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold-grad);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); position: relative; }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

.section--light { background: var(--bone); color: var(--t-on-light); }
.section--light .lead { color: var(--t-on-light-mut); }
.section--paper { background: var(--paper); color: var(--t-on-light); }
.section--ink { background: var(--ink-850); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Decorative backgrounds ---------- */
.blueprint {
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 46px 46px;
}
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow--gold { background: radial-gradient(circle, rgba(214,162,59,0.28), transparent 70%); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: var(--pad-y) 1.6rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold-grad); color: #1a1300; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-ghost { border: 1px solid var(--line-dark-strong); color: var(--t-on-dark); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-400); transform: translateY(-3px); }
.btn-ghost-dark { border: 1px solid var(--line-light); color: var(--t-on-light); }
.btn-ghost-dark:hover { border-color: var(--gold-600); color: var(--gold-600); transform: translateY(-3px); }
.btn-lg { --pad-y: 1.15rem; padding-inline: 2rem; font-size: 0.86rem; }
.btn-block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-500);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- Top scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gold-grad); z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 12, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.nav__inner { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font-family: var(--f-display); font-size: 1.5rem; line-height: 0.85; letter-spacing: 0.02em; }
.brand__name small { display: block; font-family: var(--f-body); font-weight: 700; font-size: 0.56rem; letter-spacing: 0.42em; color: var(--gold-500); }
.nav__menu { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--t-on-dark-mut);
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
  height: 2px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--t-on-dark); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 0.5rem; }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav__toggle span { width: 24px; height: 2px; background: var(--t-on-dark); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12, 12, 13, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .nav.open .nav__menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 1rem 0.5rem; font-size: 1rem; border-bottom: 1px solid var(--line-dark); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1.25rem 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding-top: calc(var(--nav-h) + 1.25rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 22s ease-in-out infinite alternate; }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,12,13,0.78) 0%, rgba(12,12,13,0.35) 38%, rgba(12,12,13,0.72) 78%, var(--ink-900) 100%),
    linear-gradient(90deg, rgba(12,12,13,0.85), transparent 60%);
}
.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__eyebrow { margin-bottom: 1.4rem; }
.hero__title { max-width: 16ch; }
.hero__title .ln { display: block; overflow: hidden; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.hero__stat .num { font-family: var(--f-display); font-size: clamp(2.2rem, 1.5rem + 2vw, 3.4rem); line-height: 1; }
.hero__stat .lbl { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-on-dark-mut); margin-top: 0.3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 6vw, 5rem); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; color: var(--t-on-dark-mut); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero__scroll i { display: block; width: 1px; height: 56px; background: linear-gradient(var(--gold-500), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--gold-400); animation: scrolldot 2.2s var(--ease) infinite; }
@media (max-width: 760px) { .hero__scroll { display: none; } }

/* Page hero (interior pages) */
.pagehero { position: relative; padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,12,13,0.88), rgba(12,12,13,0.7) 60%, var(--ink-900)); }
.pagehero__inner { position: relative; z-index: 2; }
.crumbs { display: flex; gap: 0.5rem; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--t-on-dark-mut); margin-top: 1.2rem; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs span { color: var(--gold-500); }

/* ---------- Cards ---------- */
.card { background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: clamp(1.5rem, 3vw, 2.2rem); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease); position: relative; overflow: hidden; }
.card:hover { transform: translateY(-6px); border-color: var(--gold-600); }
.card .num-badge { font-family: var(--f-display); font-size: 1rem; color: var(--gold-500); letter-spacing: 0.08em; }
.card .icon-wrap { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-grad-soft); border: 1px solid var(--line-dark-strong); margin-bottom: 1.4rem; }
.card .icon-wrap svg { width: 28px; height: 28px; stroke: var(--gold-400); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--t-on-dark-mut); font-size: 0.98rem; }
.card__accent { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold-grad); transition: width 0.5s var(--ease); }
.card:hover .card__accent { width: 100%; }

/* Service list rows */
.srow { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem,3vw,2.5rem); align-items: center; padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line-dark); transition: padding-left 0.4s var(--ease); }
.srow:hover { padding-left: 0.6rem; }
.srow:last-child { border-bottom: 1px solid var(--line-dark); }
.srow__no { font-family: var(--f-display); font-size: clamp(1.6rem,3vw,2.4rem); color: var(--t-on-dark-faint); transition: color 0.4s var(--ease); }
.srow:hover .srow__no { color: var(--gold-500); }
.srow__body h3 { margin-bottom: 0.35rem; }
.srow__body p { color: var(--t-on-dark-mut); max-width: 60ch; }
.srow__cta svg { width: 38px; height: 38px; stroke: var(--t-on-dark-faint); transition: stroke 0.4s var(--ease), transform 0.4s var(--ease); }
.srow:hover .srow__cta svg { stroke: var(--gold-400); transform: translateX(6px); }
@media (max-width: 700px) { .srow { grid-template-columns: auto 1fr; } .srow__cta { display: none; } }

/* Stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--r-md); overflow: hidden; }
.statband .cell { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.5rem); text-align: center; }
.section--ink .statband { background: var(--line-dark); border-color: var(--line-dark); }
.section--ink .statband .cell { background: var(--ink-800); }
.statband .num { font-family: var(--f-display); font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1; }
.statband .lbl { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-on-light-mut); margin-top: 0.5rem; }
.section--ink .statband .lbl { color: var(--t-on-dark-mut); }
@media (max-width: 720px) { .statband { grid-template-columns: repeat(2, 1fr); } }

/* Project / portfolio cards */
.work { display: block; position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ink-800); }
.work__img { aspect-ratio: 4 / 3; overflow: hidden; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work:hover .work__img img { transform: scale(1.07); }
.work__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.2rem, 2.5vw, 1.8rem);
  background: linear-gradient(0deg, rgba(12,12,13,0.92) 0%, rgba(12,12,13,0.25) 55%, transparent 100%);
  opacity: 1; }
.work__tag { align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #1a1300; background: var(--gold-grad); padding: 0.3rem 0.7rem; border-radius: 100px; margin-bottom: 0.8rem; }
.work__title { font-family: var(--f-display); font-size: clamp(1.4rem,2.5vw,1.9rem); line-height: 0.95; }
.work__meta { color: var(--t-on-dark-mut); font-size: 0.85rem; margin-top: 0.25rem; transform: translateY(8px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
.work:hover .work__meta { transform: translateY(0); opacity: 1; }
.work.big { grid-row: span 2; }
.work.big .work__img { aspect-ratio: 4 / 5; height: 100%; }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { padding: 0.6rem 1.2rem; border-radius: 100px; border: 1px solid var(--line-dark-strong); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.05em; color: var(--t-on-dark-mut); transition: all 0.25s var(--ease); }
.chip:hover { color: var(--t-on-dark); border-color: var(--gold-600); }
.chip.active { background: var(--gold-grad); color: #1a1300; border-color: transparent; }

/* Process steps */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); padding: clamp(1.5rem,3vw,2.2rem) 0; border-top: 1px solid var(--line-light); }
.step:first-child { border-top: 0; }
.step__no { font-family: var(--f-display); font-size: clamp(2.6rem,5vw,4.5rem); line-height: 0.8; color: var(--bone-300); }
.section--ink .step { border-color: var(--line-dark); }
.section--ink .step__no { color: var(--ink-600); }
.step__body h3 { margin-bottom: 0.4rem; }
.step__body p { color: var(--t-on-light-mut); max-width: 58ch; }
.section--ink .step__body p { color: var(--t-on-dark-mut); }

/* Testimonials */
.quote { background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; }
.quote__mark { font-family: var(--f-display); font-size: 4rem; line-height: 0.6; color: var(--gold-600); opacity: 0.5; }
.quote p { font-size: 1.05rem; line-height: 1.6; margin: 0.5rem 0 1.5rem; }
.quote__who { display: flex; align-items: center; gap: 0.9rem; }
.quote__avatar { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: #fff; padding: 6px; flex: none; border: 1px solid var(--line-dark-strong); }
.quote__who strong { display: block; font-size: 0.95rem; }
.quote__who span { font-size: 0.82rem; color: var(--t-on-dark-mut); }
.stars { display: flex; gap: 2px; color: var(--gold-400); margin-bottom: 0.6rem; }
.stars svg { width: 16px; height: 16px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.rev { direction: rtl; }
.split.rev > * { direction: ltr; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; direction: ltr; } }
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.media-frame.tall img { aspect-ratio: 4/5; }
.media-badge { position: absolute; bottom: 1.2rem; left: 1.2rem; background: rgba(12,12,13,0.78); backdrop-filter: blur(6px); border: 1px solid var(--line-dark-strong); border-radius: var(--r-md); padding: 0.9rem 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.media-badge .n { font-family: var(--f-display); font-size: 1.9rem; line-height: 0.9; color: var(--gold-400); }
.media-badge .t { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-on-dark-mut); }

/* Ticker / marquee */
.ticker { border-block: 1px solid var(--line-dark); padding-block: 1.4rem; overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 3.5rem; animation: marquee 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font-family: var(--f-display); font-size: clamp(1.3rem,2.2vw,1.9rem); letter-spacing: 0.04em; color: var(--t-on-dark-faint); display: inline-flex; align-items: center; gap: 3.5rem; }
.ticker span::after { content: "◆"; color: var(--gold-600); font-size: 0.7em; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(2.5rem, 6vw, 5rem); background: var(--ink-800); border: 1px solid var(--line-dark); }
.cta-band .grain::after { opacity: 0.4; }

/* Team */
.member__img { aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1rem; }
.member__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: grayscale(0.2); }
.member:hover .member__img img { transform: scale(1.05); filter: grayscale(0); }
.member h3 { font-size: 1.5rem; }
.member span { color: var(--gold-500); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-on-dark-mut); }
.field input, .field select, .field textarea {
  background: var(--ink-850); border: 1px solid var(--line-dark-strong); border-radius: var(--r-sm);
  padding: 0.95rem 1.1rem; color: var(--t-on-dark); transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--t-on-dark-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--ink-800); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--t-on-dark-faint); }
.form-success { display: none; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--gold-grad-soft); border: 1px solid var(--gold-600); color: var(--gold-300); font-weight: 600; }
.form-success.show { display: block; }
.form-success.is-error { background: rgba(216,72,56,0.12); border-color: #c0463a; color: #f0b4ac; }

/* Contact info tiles */
.info-tile { display: flex; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line-dark); border-radius: var(--r-md); background: var(--ink-800); transition: border-color 0.3s var(--ease); }
.info-tile:hover { border-color: var(--gold-600); }
.info-tile svg { width: 24px; height: 24px; stroke: var(--gold-400); flex: none; margin-top: 2px; }
.info-tile h4 { font-family: var(--f-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-on-dark-mut); font-weight: 700; margin-bottom: 0.3rem; }
.info-tile p, .info-tile a { font-size: 1.02rem; }
.info-tile a:hover { color: var(--gold-400); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-850); border-top: 1px solid var(--line-dark); padding-top: clamp(3.5rem, 6vw, 5.5rem); position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h5 { font-family: var(--f-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 1.2rem; }
.footer a { color: var(--t-on-dark-mut); font-size: 0.95rem; display: inline-block; padding: 0.28rem 0; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--gold-400); }
.footer__bottom { margin-top: clamp(2.5rem,5vw,4rem); padding: 1.6rem 0; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--t-on-dark-faint); }
.footer__social { display: flex; gap: 0.5rem; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark-strong); border-radius: 50%; padding: 0; }
.footer__social a:hover { border-color: var(--gold-500); background: var(--gold-grad-soft); }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(7px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }
[data-reveal][data-reveal="left"] { transform: translateX(-34px); }
[data-reveal][data-reveal="right"] { transform: translateX(34px); }
[data-reveal][data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].in { transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(26px); filter: blur(7px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; filter: blur(0); }

/* Hero load reveal */
.hero [data-hero] { opacity: 0; transform: translateY(30px); animation: heroIn 1s var(--ease) forwards; }
.hero [data-hero="1"] { animation-delay: 0.15s; }
.hero [data-hero="2"] { animation-delay: 0.3s; }
.hero [data-hero="3"] { animation-delay: 0.45s; }
.hero [data-hero="4"] { animation-delay: 0.6s; }
.hero [data-hero="5"] { animation-delay: 0.75s; }

/* ---------- Keyframes ---------- */
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.05) translate(0,0); } to { transform: scale(1.16) translate(-1.5%, -1.5%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrolldot { 0% { transform: translateY(-100%); } 100% { transform: translateY(280%); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floaty { animation: floaty 6s ease-in-out infinite; }

/* ---------- Utilities ---------- */
.relative { position: relative; }
.z1 { position: relative; z-index: 1; }
.mt-sm { margin-top: 1rem; } .mt-md { margin-top: 2rem; } .mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; } .mb-md { margin-bottom: 2rem; } .mb-lg { margin-bottom: 3rem; }
.muted { color: var(--t-on-dark-mut); }
.muted-light { color: var(--t-on-light-mut); }
.flex { display: flex; } .items-center { align-items: center; } .gap-sm { gap: 0.75rem; } .gap-md { gap: 1.25rem; }
.wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line-dark); border: 0; margin-block: clamp(2.5rem,5vw,4rem); }
.section--light .divider { background: var(--line-light); }
.tag-line { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-on-dark-mut); }
.tag-line b { color: var(--gold-400); }
.pill { display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid var(--line-dark-strong); border-radius: 100px; font-size: 0.76rem; letter-spacing: 0.08em; color: var(--t-on-dark-mut); }
.section--light .pill { border-color: var(--line-light); color: var(--t-on-light-mut); }

/* ---------- Scroll-to-expand hero (homepage) ---------- */
.xhero { position: relative; background: var(--ink-900); }
.xhero__stage {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; place-items: center; overflow: hidden;
}
.xhero__bg { position: absolute; inset: 0; z-index: 0; will-change: opacity; }
.xhero__bg img { width: 100%; height: 100%; object-fit: cover; }
.xhero__bg-scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(12,12,13,0.6) 0%, rgba(12,12,13,0.35) 45%, rgba(12,12,13,0.88) 100%),
  linear-gradient(90deg, rgba(12,12,13,0.8), transparent 55%); }
.xhero__media {
  position: relative; z-index: 1;
  width: 300px; height: 400px; max-width: 95vw; max-height: 85vh;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 120px -28px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06);
  will-change: width, height;
}
.xhero__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.xhero__media-scrim { position: absolute; inset: 0; background: rgba(12,12,13,0.5); pointer-events: none; }
.xhero__title {
  position: absolute; z-index: 2; inset: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05em;
  pointer-events: none; text-align: center;
  filter: drop-shadow(0 6px 26px rgba(0,0,0,0.6));
}
.xhero__word { font-family: var(--f-display); font-weight: 400; line-height: 0.86;
  font-size: clamp(3rem, 11vw, 9rem); letter-spacing: 0.01em; color: #fff; will-change: transform, opacity; }
.xhero__hint {
  position: absolute; z-index: 3; bottom: clamp(1.5rem, 4vw, 3rem); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: 0.5rem 1rem;
  color: var(--t-on-dark-mut); font-family: var(--f-body); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer;
}
.xhero__hint:hover { color: var(--gold-400); }
.xhero__hint i { width: 1px; height: 46px; background: linear-gradient(var(--gold-500), transparent); position: relative; overflow: hidden; display: block; }
.xhero__hint i::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--gold-400); animation: scrolldot 2.2s var(--ease) infinite; }
.xhero.is-expanded .xhero__hint { pointer-events: none; }
.xhero__reveal { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 6rem); }
.xhero__reveal .hero__meta { border: 0; padding-top: 0; }

/* ==========================================================================
   v2 POLISH — depth, texture & handcrafted micro-interactions
   ========================================================================== */

/* --- Canvas depth: subtle radial instead of flat black --- */
body {
  background:
    radial-gradient(125% 90% at 50% -12%, #17171b 0%, #0d0d0e 52%, #090909 100%) fixed;
}

/* --- Whole-page film grain (one fixed layer, very subtle) --- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* --- Dark feature bands get a touch of dimensional glow --- */
.section--ink { background: radial-gradient(115% 130% at 50% 0%, #17171b 0%, var(--ink-850) 68%); }

/* --- Light sections: warm gradient + faint blueprint texture + soft seam --- */
.section--light {
  background: linear-gradient(178deg, #f8f5ef 0%, #efe9dc 100%);
  position: relative; isolation: isolate;
}
.section--light::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(176,126,34,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,126,34,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(75% 60% at 100% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(75% 60% at 100% 0%, #000 0%, transparent 68%);
}
.section--light::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,12,13,0.45), transparent);
}

/* --- Curtain reveal on project cards: gold panel wipes away --- */
.work::before {
  content: ""; position: absolute; inset: 12px; z-index: 6; pointer-events: none;
  border: 1px solid rgba(246,216,136,0); transition: border-color 0.45s var(--ease);
}
.work:hover::before { border-color: rgba(246,216,136,0.55); }
.work::after {
  content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: linear-gradient(135deg, #f8df96 0%, #d09a32 60%, #a9791c 100%);
  transform: scaleY(1); transform-origin: top; transition: transform 0.9s var(--ease);
}
.work.curtain-in::after { transform: scaleY(0); }

/* --- Button: gold gloss sweep on hover --- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -130%; width: 55%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); transition: left 0.75s var(--ease);
}
.btn-primary:hover::after { left: 140%; }

/* --- Cards: warm spotlight follows the cursor --- */
.card { isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(214,162,59,0.16), transparent 46%);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* --- Link arrow: gold trail on hover --- */
.link-arrow { position: relative; }
.link-arrow::before {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--gold-grad); transition: width 0.4s var(--ease);
}
.link-arrow:hover::before { width: 100%; }

/* ---------- Reduced motion ---------- */
@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; }
  .hero__bg img { animation: none; transform: scale(1.05); }
  [data-reveal], [data-stagger] > *, .hero [data-hero] { opacity: 1 !important; transform: none !important; }
  /* Scroll-expand hero: present a static, fully-expanded video — no scroll-jacking */
  .xhero__media { width: min(95vw, 1400px) !important; height: min(80vh, 760px) !important; }
  .xhero__title { opacity: 0 !important; }
  .xhero__hint { display: none !important; }
  .xhero__bg { opacity: 0 !important; }
  /* v2 polish: no curtains / sweeps / spotlights */
  .work::after { display: none !important; }
  .btn-primary::after, .card::before { display: none !important; }
}

/* ==========================================================================
   Mobile — designed for the phone, not the desktop shrunk
   ========================================================================== */
.xhero__cta-m { display: none; }

@media (max-width: 767px) {
  /* HERO: full-bleed video + overlaid headline & CTA, no scroll-jacking */
  .xhero--mobile .xhero__bg { display: none; }
  .xhero--mobile .xhero__media {
    position: absolute; inset: 0;
    width: 100% !important; height: 100% !important;
    max-width: none; max-height: none; border-radius: 0; box-shadow: none;
  }
  .xhero--mobile .xhero__media-scrim {
    background: linear-gradient(180deg, rgba(12,12,13,0.45) 0%, rgba(12,12,13,0.18) 34%, rgba(12,12,13,0.92) 100%);
  }
  .xhero--mobile .xhero__title {
    inset: auto 0 0 0; height: auto; align-items: flex-start; justify-content: flex-end;
    padding: 0 1.4rem 9.5rem; text-align: left; gap: 0;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,0.7));
  }
  .xhero--mobile .xhero__word { font-size: clamp(3.2rem, 17vw, 5.5rem); }
  .xhero--mobile .xhero__hint { display: none; }
  .xhero--mobile .xhero__cta-m {
    display: inline-flex; position: absolute; z-index: 4; left: 1.4rem; bottom: 4.5rem;
  }

  /* RAILS: horizontal swipe instead of a tall stack */
  .rail-mobile {
    display: flex; grid-template-columns: none; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 0.5rem var(--gutter) 1.25rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .rail-mobile::-webkit-scrollbar { display: none; }
  .rail-mobile > * { flex: 0 0 82%; scroll-snap-align: start; }
  .rail-mobile .work.big { grid-row: auto; }
  .rail-mobile .work.big .work__img { aspect-ratio: 4 / 3; }
}
