/* ============================================================================
   AmandaLK — Portfolio design system (charcoal / editorial / cinematic)
   Mobile-first. Shared across index-portfolio.html, products.html, about.html.
   Brand: charcoal base so client work pops, champagne-gold accent, cream type.
   ========================================================================== */

:root {
  /* --- surfaces (charcoal stack, darkest -> card) --- */
  --void:        #0B0B0C;   /* page base — deepest charcoal */
  --void-2:      #0F0F11;   /* section alt */
  --char:        #141416;   /* raised surface */
  --char-2:      #1B1B1E;   /* card */
  --char-3:      #232327;   /* card hover / inset */

  /* --- ink (cream stack) --- */
  --cream:       #F5F1E8;   /* primary text */
  --cream-soft:  #D8D3C7;   /* secondary text */
  --muted:       #9A968C;   /* tertiary / captions */
  --faint:       #66635D;   /* hairline labels */

  /* --- accent (champagne-gold) --- */
  --gold:        #9C8063;   /* the brand accent */
  --gold-lt:     #C2A988;   /* hover / highlight */
  --gold-glow:   rgba(156,128,99,0.35);

  /* --- lines --- */
  --line:        rgba(245,241,232,0.10);
  --line-soft:   rgba(245,241,232,0.06);
  --line-gold:   rgba(156,128,99,0.30);

  /* --- type --- */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* --- layout --- */
  --edge: 22px;             /* mobile gutter */
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--void);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--void); }

/* film-grain + vignette overlay (cinematic texture, fixed, non-interactive) */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; 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)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, transparent 55%, rgba(0,0,0,0.45) 100%);
}

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--edge); }
.section { position: relative; z-index: 3; padding: 88px 0; }
.section--tight { padding: 56px 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* eyebrow / kicker label */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.6;
}
.kicker--plain::before { display: none; }

/* type scale (fluid) */
.display {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2.9rem, 11vw, 7rem);
  margin: 0;
}
.h1 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-size: clamp(2.1rem, 6.5vw, 3.8rem);
  margin: 0;
}
.h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0;
}
.h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.6vw, 1.7rem);
  line-height: 1.15;
  margin: 0;
}
em, .it { font-style: italic; color: var(--gold-lt); }
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--cream-soft);
  font-weight: 400;
}
.body { color: var(--cream-soft); font-size: 1rem; line-height: 1.72; }
.cap { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ----------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--edge);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(11,11,12,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
  padding: 13px var(--edge);
}
.nav__brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.01em; color: var(--cream);
}
.nav__brand b { color: var(--gold-lt); font-weight: 700; }
.nav__links { display: none; gap: 30px; align-items: center; }
.nav__links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cream-soft);
  transition: color 0.25s var(--ease); position: relative;
}
.nav__links a:hover { color: var(--gold-lt); }
.nav__links a.is-cta {
  color: var(--void); background: var(--cream); padding: 9px 16px; border-radius: 9px;
}
.nav__links a.is-cta:hover { background: var(--gold-lt); color: var(--void); }
.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px;
}
.nav__toggle span { width: 24px; height: 1.5px; background: var(--cream); transition: 0.3s var(--ease); }

/* mobile menu sheet */
.menu {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(11,11,12,0.96);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 var(--edge);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); font-weight: 700;
  color: var(--cream); padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: baseline; gap: 14px;
}
.menu a span { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.1em; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--cream); color: var(--void); }
.btn--solid:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--void); }
.btn--gold:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); transform: translateY(-2px); }

/* scope / tag pills */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-soft); padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(245,241,232,0.02);
}

/* ----------------------------------------------------------------- media wells
   Drop-in pattern: the wrapper carries a labeled placeholder background.
   The real <img>/<video> sits on top. If the file 404s, onerror hides it and
   the placeholder label shows through. So the page is complete before assets exist. */
.media {
  position: relative; overflow: hidden; border-radius: 14px;
  background: linear-gradient(135deg, var(--char-2), var(--void-2));
  border: 1px solid var(--line);
}
.media::after { /* placeholder label (hidden once media covers it) */
  content: attr(data-label);
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); padding: 18px; line-height: 1.8;
}
.media > img, .media > video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.media__overlay { /* subtle gradient + sheen for cinematic feel */
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(11,11,12,0.5) 0%, transparent 38%);
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-4x3  { aspect-ratio: 4 / 3; }

/* play affordance for showreels */
.play {
  position: absolute; z-index: 3; inset: 0; margin: auto; width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(245,241,232,0.10); border: 1px solid var(--cream);
  backdrop-filter: blur(6px); transition: 0.35s var(--ease); pointer-events: none;
}
.play::before { content: ""; border-left: 16px solid var(--cream); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.media:hover .play { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.media:hover .play::before { border-left-color: var(--void); }
.media--reel { cursor: pointer; }

/* device mock — wraps a website screenshot in a browser chrome frame */
.browser {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: var(--char-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--char); border-bottom: 1px solid var(--line-soft);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; display: block; }
.browser__url {
  margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser .media { border-radius: 0; border: 0; }

/* phone mock — vertical reels */
.phone {
  position: relative; border-radius: 26px; padding: 8px; background: var(--char);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.85);
}
.phone .media { border-radius: 18px; }

/* social grid (3x3 by default) */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: 12px; overflow: hidden; }
.sgrid .media { border-radius: 0; border: 0; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--char-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.card:hover { border-color: var(--line-gold); background: var(--char-3); transform: translateY(-4px); }

/* number index for sections */
.index {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--gold);
}

/* ----------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--char); border: 1px solid var(--line); border-radius: 10px;
  color: var(--cream); font-family: var(--sans); font-size: 1rem; padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); background: var(--char-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
select.fld { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; min-height: 18px; }
.form-status.ok { color: var(--gold-lt); }
.form-status.err { color: #d98c7a; }

/* ----------------------------------------------------------------- footer */
.footer { position: relative; z-index: 3; border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer__grid { display: flex; flex-direction: column; gap: 36px; }
.footer__brand { font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.footer a { color: var(--cream-soft); transition: color 0.25s; }
.footer a:hover { color: var(--gold-lt); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer__col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.footer__col a { display: block; padding: 5px 0; font-size: 0.95rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--muted); font-size: 0.82rem; padding-top: 28px; border-top: 1px solid var(--line-soft); }

/* ----------------------------------------------------------------- reveal anim */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); will-change: transform, opacity; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* clip reveal for media */
[data-clip] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
[data-clip].in { clip-path: inset(0 0 0 0); }

/* line-by-line headline reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.reveal-line.in > span { transform: none; }
.reveal-line[data-delay="1"] > span { transition-delay: 0.1s; }
.reveal-line[data-delay="2"] > span { transition-delay: 0.2s; }
.reveal-line[data-delay="3"] > span { transition-delay: 0.3s; }

/* marquee strip */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: inline-flex; gap: 48px; animation: marq 28s linear infinite; will-change: transform; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--cream-soft); }
.marquee__track span b { color: var(--gold); font-style: normal; -webkit-text-stroke: 1px var(--gold); color: transparent; font-weight: 900; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(48px, 12vh, 120px); }
.hero__name { color: var(--cream); }
.hero__name .ln2 { color: var(--gold-lt); font-style: italic; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; align-items: center; }
.hero__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-soft); }
.hero__scroll { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: scrolldrop 2.2s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ----------------------------------------------------------------- client showcase */
.client { position: relative; padding: 72px 0; }
.client__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.client__title { display: flex; flex-direction: column; gap: 8px; }
.client__name { color: var(--cream); }
.client__sub { color: var(--gold-lt); font-style: italic; font-family: var(--serif); font-size: clamp(1rem, 3vw, 1.25rem); }
.client__reel { margin: 0 0 14px; }
.client__body { display: grid; gap: 28px; margin-top: 36px; }
.client__col { display: flex; flex-direction: column; gap: 16px; }
.client__sub-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.reels-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px; }
.stat .n { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--cream); line-height: 1; }
.stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ----------------------------------------------------------------- services list */
.svc { border-top: 1px solid var(--line); }
.svc__item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease); }
.svc__item:hover { padding-left: 10px; }
.svc__num { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.svc__name { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 4.5vw, 2rem); color: var(--cream); }
.svc__desc { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

/* products grid */
.pgrid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pcard { display: flex; flex-direction: column; gap: 16px; }
.pcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pcard__price { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--gold-lt); white-space: nowrap; }
.pcard__badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--void); background: var(--gold); padding: 4px 9px; border-radius: 999px; }
.pcard__badge--soon { background: transparent; color: var(--gold); border: 1px solid var(--line-gold); }

/* ----------------------------------------------------------------- responsive */
@media (min-width: 760px) {
  :root { --edge: 40px; }
  .section { padding: 120px 0; }
  .client__body { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .client__body--rev .client__col:first-child { order: 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer__cols { grid-template-columns: repeat(3, auto); gap: 64px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}

@media (min-width: 1024px) {
  :root { --edge: 56px; }
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .client__body { grid-template-columns: 1.5fr 1fr; gap: 40px; }
}

/* reduced motion — kill parallax/marquee, keep content visible */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-reveal], [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-line > span { transform: none !important; }
  .marquee__track { animation: none; }
  .hero__scroll i { animation: none; }
}
