/* ==========================================================================
   Kennedy Daimler — Landing Page
   Design system: "Atelier Noir"
   ========================================================================== */

:root {
  --ink: #0B0B0C;
  --ink-2: #131315;
  --ink-3: #1C1C1F;
  --paper: #F5F2EC;
  --paper-2: #EDE8DF;
  --white: #FFFFFF;
  --gold: #B8935A;
  --gold-light: #D9BC8A;
  --gold-dark: #8E6E3E;
  --text-dark: #1A1A1C;
  --muted-dark: #5E5A54;
  --text-light: #EDEAE4;
  --muted-light: #9C978F;
  --line-dark: rgba(255, 255, 255, .1);
  --line-light: rgba(11, 11, 12, .12);
  --error: #E07A6A;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

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

/* ---------- Typography helpers ---------- */
.eyebrow,
.section-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.section-label span {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .1em;
  font-style: italic;
}
.section-label::after {
  content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6;
}
.section-label.center { justify-content: center; }
.section-label.center::before {
  content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6; order: -1;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 28px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold::before { background: var(--paper); }
.btn-gold:hover { box-shadow: 0 14px 40px -12px rgba(184, 147, 90, .6); }

.btn-ghost { border: 1px solid rgba(255, 255, 255, .28); color: var(--text-light); }
.btn-ghost::before { background: var(--paper); }
.btn-ghost:hover { color: var(--ink); border-color: var(--paper); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  --header-h: 68px;
  background: rgba(11, 11, 12, .94);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand img {
  height: 50px; width: auto;
  filter: invert(1);
  transition: height .5s var(--ease), opacity .3s;
}
.site-header.scrolled .brand img { height: 42px; }
.brand:hover img { opacity: .8; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav ul a {
  position: relative;
  font-size: 12.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-light);
  padding: 6px 0;
  transition: color .3s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--gold-light); }
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { min-height: 44px; padding: 0 22px; font-size: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text-light);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink);
  color: var(--text-light);
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
}
.hero-glow {
  position: absolute; width: 900px; height: 900px; right: -200px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(184,147,90,.16) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
}
.hero .eyebrow { margin-bottom: 28px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-lead {
  max-width: 540px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--muted-light);
  margin-bottom: 44px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-tags li {
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light);
  display: flex; align-items: center; gap: 10px;
}
.hero-tags li::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* entrance animation */
.hero-anim {
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1.2s var(--ease) forwards;
  animation-delay: calc(var(--d) * .14s + .2s);
}
.hero-title .hero-anim { transform: translateY(105%); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* hero visual */
.hero-visual { position: relative; }
.visual-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px; margin-left: auto;
  border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0) 60%);
  padding: 30px 24px 50px;
  transition: transform .2s linear;
}
.frame-corner { position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid; border-width: 0; }
.frame-corner.tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.frame-corner.tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.frame-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.frame-corner.br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.frame-meta {
  position: absolute; left: 24px; right: 24px; bottom: 16px;
  display: flex; justify-content: space-between;
  font-size: 10.5px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted-light);
}
.frame-meta b { color: var(--gold-light); font-weight: 500; font-variant-numeric: tabular-nums; }

.print-svg { width: 100%; height: 100%; overflow: visible; }
.print-svg .bed-ring { fill: none; stroke: rgba(184,147,90,.45); stroke-width: 1; }
.print-svg .bed-ring.faint { stroke: rgba(184,147,90,.2); stroke-dasharray: 3 5; }
.print-svg .wire { fill: none; stroke: rgba(237,234,228,.35); stroke-width: 1; stroke-dasharray: 4 4; }
.print-svg .wire.faint { stroke: rgba(237,234,228,.12); }
.print-svg .wire-contours ellipse { fill: none; stroke: rgba(237,234,228,.14); stroke-width: 1; }

.print-fill {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: printFill 9s linear infinite;
}
.print-head { animation: printHead 9s linear infinite; }
.print-head .laser { stroke: var(--gold-light); stroke-width: 1; opacity: .55; stroke-dasharray: 2 6; }
.print-head .nozzle rect, .print-head .nozzle path { fill: #2A2A2E; stroke: rgba(237,234,228,.5); stroke-width: 1; }
.print-head .hot { fill: var(--gold-light); filter: drop-shadow(0 0 6px var(--gold)); animation: pulse 1s ease-in-out infinite; }

@keyframes printFill {
  0% { transform: scaleY(0); opacity: 1; }
  80% { transform: scaleY(1); opacity: 1; }
  92% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@keyframes printHead {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(-408px); opacity: 1; }
  88% { transform: translateY(-408px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes pulse { 50% { opacity: .45; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted-light);
}
.scroll-cue i { width: 1px; height: 44px; background: var(--line-dark); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--gold);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section.dark { background: var(--ink); color: var(--text-light); }
.section.light { background: var(--paper); color: var(--text-dark); }
.section.light.alt { background: var(--paper-2); }
.section.dark p { color: var(--muted-light); }
.section.light p { color: var(--muted-dark); }
.section.light .section-label { color: var(--gold-dark); }
.section.light .section-title em { color: var(--gold-dark); }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy { border-top: 1px solid var(--line-dark); overflow: hidden; }
.philosophy::before {
  content: "KD";
  position: absolute; right: -2vw; bottom: -6vw;
  font-family: var(--serif); font-weight: 300; font-size: clamp(14rem, 32vw, 30rem); line-height: 1;
  color: rgba(255,255,255,.025);
  pointer-events: none;
}
.quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  line-height: 1.15;
  color: var(--text-light) !important;
  max-width: 1100px;
  margin-bottom: 64px;
}
.split-words .w {
  display: inline-block;
  opacity: .12;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), color .9s;
}
.split-words.in .w { opacity: 1; transform: none; filter: none; }
.split-words .w.gold { color: var(--gold); }

.philosophy-body {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start;
}
.philosophy-body .rule { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin-top: 16px; }
.philosophy-body p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.8; max-width: 640px; }

/* ==========================================================================
   Mission
   ========================================================================== */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.mission-head p { font-size: 1.1rem; max-width: 500px; }
.mission-head { position: sticky; top: 120px; }

.pillars { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.pillar {
  position: relative;
  display: grid; grid-template-columns: 70px 1fr; column-gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding .5s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold-dark); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.pillar:hover { padding-left: 14px; }
.pillar:hover::before { transform: scaleX(1); }
.pillar-num {
  grid-row: span 2;
  font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--gold-dark);
}
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.2; margin-bottom: 8px; }
.pillar p { font-size: .98rem; }

/* ==========================================================================
   Studio / Who We Are
   ========================================================================== */
.studio-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); margin-bottom: 80px; align-items: end; }
.studio-text p { font-size: 1.05rem; margin-bottom: 20px; }
.studio-text strong { color: var(--text-dark); font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1200px; }
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-light);
  padding: 40px 30px 44px;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s, background .5s, opacity 1s var(--ease);
  overflow: hidden;
}
.card.reveal.in { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s, background .5s, opacity 1s var(--ease); }
.card:hover {
  border-color: rgba(142,110,62,.45);
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(11,11,12,.25);
}
.card-icon {
  width: 56px; height: 56px; margin-bottom: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-light); border-radius: 50%;
  transition: background .5s var(--ease), border-color .5s;
}
.card-icon svg {
  width: 28px; height: 28px; fill: none; stroke: var(--text-dark); stroke-width: 1.4;
  stroke-linejoin: round; stroke-linecap: round;
  transition: stroke .5s, transform .6s var(--ease);
}
.card:hover .card-icon { background: var(--ink); border-color: var(--ink); }
.card:hover .card-icon svg { stroke: var(--gold-light); transform: rotate(-8deg) scale(1.05); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.2; margin-bottom: 12px; color: var(--text-dark); }
.card p { font-size: .95rem; }
.card-line {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.card:hover .card-line { transform: scaleX(1); }

/* ==========================================================================
   Process
   ========================================================================== */
.process-head { margin-bottom: 80px; }
.timeline { position: relative; }
.timeline-track {
  position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-dark);
}
.timeline-progress {
  height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
}
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.step { position: relative; padding-top: 44px; }
.step-dot {
  position: absolute; top: 0; left: 0; width: 15px; height: 15px;
  border: 1px solid var(--gold); background: var(--ink); transform: rotate(45deg);
  transition: background .5s var(--ease), box-shadow .5s;
}
.step.lit .step-dot { background: var(--gold); box-shadow: 0 0 18px rgba(184,147,90,.6); }
.step-num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); margin-bottom: 8px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--text-light); margin-bottom: 10px; line-height: 1.1; }
.step p { font-size: .94rem; }

/* ==========================================================================
   Partners — marquee
   ========================================================================== */
.partners { padding-bottom: clamp(90px, 10vw, 140px); overflow: hidden; }
.partners-head { margin-bottom: 64px; }
.partners-head .section-title { margin-bottom: 0; }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-plate {
  flex: 0 0 auto;
  width: 203px; height: 128px;
  margin-right: 21px;
  display: grid; place-items: center;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  box-shadow: 0 10px 30px -18px rgba(11,11,12,.25);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.logo-plate img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .6s var(--ease);
}
.logo-plate:hover {
  transform: translateY(-8px);
  border-color: rgba(142,110,62,.5);
  box-shadow: 0 26px 50px -22px rgba(11,11,12,.35);
}
.logo-plate:hover img { transform: scale(1.08); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { border-top: 1px solid var(--line-dark); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 800px; height: 800px; left: -300px; bottom: -400px;
  background: radial-gradient(circle, rgba(184,147,90,.12), transparent 60%); pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 100px); align-items: start; }
.contact-info > p { font-size: 1.08rem; max-width: 460px; margin-bottom: 48px; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line-dark);
}
.ci-label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.contact-list a, .contact-list span:not(.ci-label) {
  font-family: var(--serif); font-size: 1.35rem; color: var(--text-light); transition: color .3s;
  word-break: break-word;
}
.contact-list a:hover { color: var(--gold-light); }

.form-wrap {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  padding: clamp(28px, 4.5vw, 56px);
}
.form-wrap::before, .form-wrap::after {
  content: ""; position: absolute; width: 24px; height: 24px; border: 0 solid var(--gold);
}
.form-wrap::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.form-wrap::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; margin-bottom: 40px; }
.full { grid-column: 1 / -1; }

.field { position: relative; }
.field input,
.field select,
.field textarea {
  display: block; width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  padding: 26px 0 10px;
  font-size: 1rem; font-weight: 300; color: var(--text-light);
  outline: none;
  transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select { cursor: pointer; padding-right: 28px; }
.field select option { background: var(--ink-3); color: var(--text-light); }
.field label {
  position: absolute; left: 0; top: 26px;
  font-size: 1rem; color: var(--muted-light); pointer-events: none;
  transform-origin: left top;
  transition: transform .4s var(--ease), color .4s, letter-spacing .4s;
}
/* animated gold underline (drawn on the control itself) */
.field input,
.field textarea {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: border-color .4s, background-size .6s var(--ease);
}
.field select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8935A' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat, no-repeat;
  background-position: right 2px bottom 12px, left bottom;
  background-size: 16px, 0% 1px;
  transition: border-color .4s, background-size .6s var(--ease);
}
.field input:focus, .field textarea:focus { background-size: 100% 1px; }
.field select:focus { background-size: 16px, 100% 1px; }
.field:focus-within label,
.field.filled label {
  transform: translateY(-24px) scale(.72);
  color: var(--gold-light);
  letter-spacing: .08em;
}
.field .error,
.field-check .error {
  display: block;
  font-size: 12px; letter-spacing: .02em; color: var(--error);
  min-height: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s var(--ease), opacity .4s, margin .4s;
}
.field.invalid .error, .field-check.invalid .error { max-height: 40px; opacity: 1; margin-top: 8px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: var(--error); }
.field.invalid label { color: var(--error); }
.shake { animation: shake .45s var(--ease); }
@keyframes shake {
  20% { transform: translateX(-6px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(2px); }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: .92rem; color: var(--muted-light); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 2px;
  position: relative; transition: background .3s, border-color .3s;
}
.check .box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.check input:checked + .box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 3px; }
.field-check.invalid .box { border-color: var(--error); }

.field-captcha .g-recaptcha { min-height: 78px; }
.field-captcha.invalid .g-recaptcha iframe { outline: 1px solid var(--error); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 400px) {
  /* the widget is a fixed 304px wide — scale it down on very narrow phones */
  .field-captcha .g-recaptcha { transform: scale(.88); transform-origin: left top; min-height: 69px; }
}

.form-status {
  margin: -16px 0 24px;
  padding: 14px 18px;
  border: 1px solid rgba(224, 122, 106, .4);
  border-left: 3px solid var(--error);
  background: rgba(224, 122, 106, .08);
  color: var(--text-light) !important;
  font-size: .92rem; line-height: 1.5;
  animation: heroIn .5s var(--ease) both;
}
.form-status[hidden] { display: none; }

.btn-submit { width: 100%; min-height: 60px; }
.btn-submit .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(11,11,12,.25); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
.btn-submit.loading { pointer-events: none; }
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 40px 0; animation: heroIn .9s var(--ease) both; }
.form-success[hidden] { display: none; }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; color: var(--text-light); margin: 24px 0 12px; }
.form-success p { max-width: 380px; margin: 0 auto 32px; }
.success-mark { width: 84px; height: 84px; margin: 0 auto; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.success-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .9s var(--ease) forwards; }
.success-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #070708; color: var(--muted-light); padding: 90px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 84px; width: auto; filter: invert(1); margin-bottom: 24px; }
.footer-brand p { font-size: .95rem; max-width: 340px; }
.footer-col h4 { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: .95rem; transition: color .3s; }
.footer-col a:hover { color: var(--text-light); }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
  width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.socials svg { width: 18px; height: 18px; fill: none; stroke: var(--text-light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: var(--text-light); }
.socials a:hover { border-color: var(--gold); background: var(--gold); transform: translateY(-3px); }
.socials a:hover svg { stroke: var(--ink); }
.socials a:hover svg .fill { fill: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-size: 13px; flex-wrap: wrap; }
.credit { color: #6f6b65; font-size: 12px; }
.credit a { color: inherit; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.credit a:hover { color: var(--gold-light); border-bottom-color: currentColor; }
.to-top { letter-spacing: .15em; text-transform: uppercase; font-size: 11.5px; transition: color .3s; }
.to-top:hover { color: var(--gold-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .main-nav { gap: 28px; }
  .main-nav ul { gap: 22px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 48px;
    background: rgba(11,11,12,.97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .main-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .main-nav ul a {
    font-family: var(--serif); font-size: 2rem; letter-spacing: .02em; text-transform: none; font-weight: 300;
    display: inline-block; opacity: 0; transform: translateY(20px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open .main-nav ul a { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(1) a { transition-delay: .08s; }
  .nav-open .main-nav li:nth-child(2) a { transition-delay: .13s; }
  .nav-open .main-nav li:nth-child(3) a { transition-delay: .18s; }
  .nav-open .main-nav li:nth-child(4) a { transition-delay: .23s; }
  .nav-open .main-nav li:nth-child(5) a { transition-delay: .28s; }
  .nav-open .main-nav li:nth-child(6) a { transition-delay: .33s; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-bottom-color: transparent; }

  .hero-inner { grid-template-columns: 1fr; gap: 56px; text-align: left; }
  .visual-frame { margin: 0 auto; max-width: 400px; }
  .hero { padding-bottom: 120px; }

  .philosophy-body { grid-template-columns: 1fr; gap: 28px; }
  .philosophy-body .rule { width: 120px; }

  .mission-grid { grid-template-columns: 1fr; }
  .mission-head { position: static; }

  .studio-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 56px; }

  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .timeline-track { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline-progress { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--gold-dark), var(--gold-light)); }
  .step { padding: 0 0 48px; }
  .step:last-child { padding-bottom: 0; }
  .step-dot { left: -40px; top: 6px; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .logo-plate { width: 158px; height: 99px; margin-right: 14px; padding: 11px 15px; }
  .marquee-track { animation-duration: 26s; }
  .pillar { grid-template-columns: 52px 1fr; padding: 32px 0; }
  .pillar h3 { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
  .brand img { height: 42px; }
  .hero-actions .btn { width: 100%; }
  .hero-tags { gap: 10px 18px; }
  .visual-frame { padding: 20px 14px 44px; }
  .logo-plate { width: 128px; height: 81px; margin-right: 11px; padding: 9px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-anim, .reveal, .split-words .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: 100%; }
  .print-fill { transform: none; }
}
