/* =========================================================================
   Esther Vale Photography — B4 (Professional+)
   Dark gallery portfolio. Single stylesheet, CSS custom properties.
   ========================================================================= */

:root {
  /* Palette — warm-dark monochrome + one burnt accent (KB §12d) */
  --bg:      #0d0d0d;
  --fg:      #fcfbfa;
  --muted:   #8a8682;
  --muted-2: #5c5854;
  --accent:  #bd3c1f;
  --surface: #161412;
  --surface-2: #1f1c19;
  --line:    rgba(252,251,250,.10);
  --line-2:  rgba(252,251,250,.06);

  /* One branded easing curve, reused everywhere (cosmos develop, verified) */
  --ease-brand: cubic-bezier(0.22, 1, 0.36, 1);

  /* Type */
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --mono:  "Space Mono", "SFMono-Regular", ui-monospace, "Menlo", monospace;

  /* Rhythm */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: var(--fg); }

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

/* ---------- Type scale ---------- */
.mono {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
}
.index { font-family: var(--mono); font-weight: 400; color: var(--muted); letter-spacing: .1em; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.04; letter-spacing: -0.02em; }

.display {
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: .92;
  letter-spacing: -0.035em;
}
.h-xl { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.5rem); color: var(--fg); line-height: 1.45; max-width: 46ch; }
.body { color: var(--muted); line-height: 1.7; max-width: 62ch; text-wrap: pretty; }
.body strong, .lede strong { color: var(--fg); font-weight: 400; }
em { font-style: italic; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vh, 160px); }
.section--tight { padding-block: clamp(48px, 8vh, 96px); }
.stack > * + * { margin-top: 1.1rem; }
.divider { height: 1px; background: var(--line); border: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* ============================ HEADER ============================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  padding-inline: var(--gutter);
  background: linear-gradient(to bottom, rgba(13,13,13,.85), rgba(13,13,13,0));
  transition: background .4s var(--ease-brand), backdrop-filter .4s var(--ease-brand);
}
.site-header.is-stuck {
  background: rgba(13,13,13,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.brand {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.05rem; letter-spacing: .26em; text-transform: uppercase;
  white-space: nowrap;
}
.brand b { font-weight: 400; }
.site-header .nav { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); }
/* Spotlight-dim hover (§21t): hovering the list dims all but the hovered item */
.nav-links a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg); position: relative; padding: 4px 0;
  transition: color .35s var(--ease-brand), opacity .35s var(--ease-brand);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-brand);
}
.nav-links:hover a { opacity: .42; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--fg); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .7em 1.15em; border: 1px solid var(--line); border-radius: 100px;
  color: var(--fg); background: transparent;
  transition: border-color .4s var(--ease-brand), background .4s var(--ease-brand), color .4s var(--ease-brand);
}
.btn:hover { border-color: var(--accent); background: var(--accent); color: var(--fg); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--fg); }
.btn--lg { padding: .95em 1.6em; font-size: .8rem; }
.btn .arr { transition: transform .4s var(--ease-brand); }
.btn:hover .arr { transform: translateX(4px); }

/* Mobile nav toggle */
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--fg); position: relative; transition: background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--fg); transition: transform .35s var(--ease-brand); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-header .nav { margin-left: auto; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 28px;
    background: rgba(13,13,13,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .4s var(--ease-brand), opacity .4s var(--ease-brand);
  }
  body.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 16px 0; font-size: .92rem; border-bottom: 1px solid var(--line-2); }
  .nav-links:hover a { opacity: 1; }
  .header-cta { display: none; }
}

/* ============================ PLACEHOLDER IMAGERY ============================ */
/* No stock / AI imagery — layered-gradient placeholders that read as moody photos.
   Each .ph gets a "look" class; grain overlay + optional EXIF caption. */
.ph {
  position: relative; overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  --g1: #3a3330; --g2: #14110f; --g3: #6b4a36; --ang: 150deg;
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(115% 115% at 50% 45%, transparent 58%, rgba(0,0,0,.4) 100%),
    radial-gradient(70% 85% at 14% 96%, var(--g1) 0%, transparent 55%),
    radial-gradient(85% 70% at 72% 20%, var(--g3) 0%, transparent 64%),
    linear-gradient(var(--ang), var(--g1) 0%, var(--g2) 118%);
}
/* film grain */
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .12; 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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Looks — warm-dark, desaturated, moody but with visible tonal range */
.look-golden { --g1:#a06a38; --g2:#1c1206; --g3:#f0c184; --ang:155deg; }
.look-dusk   { --g1:#46596f; --g2:#0d1218; --g3:#92aed0; --ang:165deg; }
.look-rose   { --g1:#9a6168; --g2:#1a1012; --g3:#dca09d; --ang:145deg; }
.look-forest { --g1:#42584a; --g2:#0c120e; --g3:#84ad8b; --ang:160deg; }
.look-mono   { --g1:#524c46; --g2:#100f0d; --g3:#b0a99f; --ang:150deg; }
.look-sand   { --g1:#97855d; --g2:#19140d; --g3:#e6cda4; --ang:140deg; }
.look-plum   { --g1:#5e4866; --g2:#140e16; --g3:#a98cb3; --ang:158deg; }
.look-slate  { --g1:#494f54; --g2:#0e1011; --g3:#9ca4a8; --ang:152deg; }

/* Real photographs sit above the gradient — the gradient becomes the load state */
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ph > img.develop { opacity: 0; transition: opacity 1s var(--ease-brand); }
.ph > img.develop.is-in { opacity: 1; }
.ph:has(img.develop)::after { opacity: .05; }          /* ease grain over real photos */
.ph:has(img) { background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .ph > img.develop { opacity: 1 !important; transition: none !important; } }

/* EXIF-style caption overlay (mono, reveals + turns accent on hover) */
.ph .cap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg); background: rgba(13,13,13,.0);
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease-brand), transform .5s var(--ease-brand), color .5s var(--ease-brand);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.ph:hover .cap { opacity: 1; transform: none; color: var(--accent); }
.ph .cap--static { opacity: .75; transform: none; }
.ph:hover .cap--static { opacity: 1; }

/* Film-develop lazyload + cosmos blur-develop reveal.
   Default (no JS / reduced motion): images already crisp. JS adds .reveal-img. */
.reveal-img { filter: blur(20px); transform: scale(1.04); opacity: 0; }
.reveal-img.is-in {
  filter: blur(0); transform: none; opacity: 1;
  transition: filter 1.1s var(--ease-brand), transform 1.1s var(--ease-brand), opacity 1s var(--ease-brand);
}

/* Generic scroll reveal (fade-up) */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-brand), transform .9s var(--ease-brand);
}
.reveal[data-delay="1"].is-in { transition-delay: .08s; }
.reveal[data-delay="2"].is-in { transition-delay: .16s; }
.reveal[data-delay="3"].is-in { transition-delay: .24s; }
.reveal[data-delay="4"].is-in { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1 !important; transform: none !important; filter: none !important; }
  .reveal-img { transition: none !important; }
}
/* Frozen-transition environments (some capture harnesses): snap to end-state. */
.no-anim .reveal, .no-anim .reveal-img { transition: none !important; }
.no-anim .ph > img.develop { opacity: 1 !important; transition: none !important; }
.no-anim .reveal.is-in, .no-anim .reveal-img.is-in { opacity: 1 !important; transform: none !important; filter: none !important; }
.no-anim .clip-card .layer { transition: none !important; }

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(40px, 8vh, 88px); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .ph { width: 100%; height: 100%; }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(13,13,13,.82) 0%, rgba(13,13,13,.25) 45%, rgba(13,13,13,.5) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-top: 26px; color: var(--muted); }
.hero__meta .mono { color: var(--muted); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(40px,8vh,88px); z-index: 2;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px; }
.scroll-cue .line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--accent); animation: cue 2.4s var(--ease-brand) infinite; }
@keyframes cue { 0%{ transform: translateY(-100%);} 60%,100%{ transform: translateY(300%);} }
@media (prefers-reduced-motion: reduce){ .scroll-cue .line::after{ animation:none; } }

/* image trail thumbs (home hero, nice-to-have) */
.trail { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.trail-thumb { position: absolute; width: 120px; height: 150px; border-radius: 8px; opacity: 0;
  transform: translate(-50%,-50%) scale(.7); will-change: transform, opacity; }

/* ============================ CLIP CARDS (signature §3a) ============================ */
.clip-grid {
  display: grid; gap: clamp(56px, 9vw, 120px);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px){ .clip-grid { grid-template-columns: 1fr; gap: 72px; } }

.clip-card { position: relative; display: block; aspect-ratio: 4 / 5; }
.clip-card .layer { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.clip-card .layer.back  { transform: rotate(7deg)  scale(.9); transition: transform 1s var(--ease-brand); }
.clip-card .layer.front { transform: rotate(-5deg) scale(.96); transition: transform 1s var(--ease-brand); }
.clip-card.is-in .layer.back  { transform: rotate(9deg)  scale(.97); }
.clip-card.is-in .layer.front { transform: rotate(-5deg) scale(1); }
.clip-card:hover .layer.back  { transform: rotate(12deg) scale(.99); }
.clip-card:hover .layer.front { transform: rotate(-7deg) scale(1.02); }
.clip-card .ph { width: 100%; height: 100%; }
.clip-card__label {
  position: absolute; left: 0; right: 0; bottom: -2.6em; z-index: 3;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.clip-card__label .name { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 300; }
.clip-card__label .meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.clip-card:hover .clip-card__label .name { color: var(--accent); transition: color .4s var(--ease-brand); }

@media (prefers-reduced-motion: reduce){
  .clip-card .layer.back  { transform: rotate(6deg)  scale(.95); }
  .clip-card .layer.front { transform: rotate(-4deg) scale(1); }
  .clip-card .layer { transition: none; }
}

/* ============================ NAMED-GRID GALLERY (§19c) ============================ */
.gallery {
  display: grid; gap: clamp(14px, 2vw, 26px);
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
}
.gallery .cell { position: relative; min-height: 0; }
.gallery .cell .ph { width: 100%; height: 100%; }
.cell--full   { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.cell--wide   { grid-column: span 8; aspect-ratio: 16 / 10; }
.cell--narrow { grid-column: span 4; aspect-ratio: 4 / 5; }
.cell--half   { grid-column: span 6; aspect-ratio: 4 / 3; }
.cell--tall   { grid-column: span 5; aspect-ratio: 3 / 4; }
.cell--push   { grid-column: span 7; aspect-ratio: 3 / 2; }
@media (max-width: 760px){
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cell--full { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .cell--wide, .cell--push, .cell--half { grid-column: 1 / -1; aspect-ratio: 16/11; }
  .cell--narrow, .cell--tall { grid-column: span 1; aspect-ratio: 3/4; }
}

/* ============================ TEASER STRIP ============================ */
.teaser { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px,2vw,24px); align-items: end; }
.teaser .t-1 { grid-column: 1 / 6; aspect-ratio: 3/4; }
.teaser .t-2 { grid-column: 6 / 9; aspect-ratio: 3/4; transform: translateY(-8%); }
.teaser .t-3 { grid-column: 9 / 13; aspect-ratio: 3/4; transform: translateY(6%); }
.teaser .ph { width: 100%; height: 100%; }
@media (max-width: 760px){ .teaser { grid-template-columns: 1fr 1fr; } .teaser .t-1{ grid-column: 1/3; } .teaser .t-2,.teaser .t-3{ grid-column: span 1; transform:none; } }

/* ============================ WORK INDEX (list) ============================ */
.work-index { border-top: 1px solid var(--line); }
.work-index a {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(16px,3vw,40px);
  padding: clamp(20px, 3vw, 34px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease-brand), color .4s var(--ease-brand);
  position: relative;
}
.work-index a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--surface);
  z-index: -1; transition: width .5s var(--ease-brand);
}
.work-index a:hover { padding-left: clamp(14px, 2vw, 28px); }
.work-index .wi-num { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.work-index .wi-name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3.4vw, 2.6rem); }
.work-index a:hover .wi-name { color: var(--accent); }
.work-index .wi-meta { font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.work-index .wi-arr { color: var(--muted); transition: transform .4s var(--ease-brand), color .4s var(--ease-brand); }
.work-index a:hover .wi-arr { color: var(--accent); transform: translateX(6px); }
@media (max-width: 640px){
  .work-index a { grid-template-columns: auto 1fr auto; }
  .work-index .wi-meta { display: none; }
}

/* ============================ FEATURE / SPLIT ============================ */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.split__media { grid-column: span 7; }
.split__body  { grid-column: span 5; }
.split--rev .split__media { order: 2; }
.split__media .ph { aspect-ratio: 4/5; width: 100%; }
@media (max-width: 860px){
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media, .split__body { grid-column: 1 / -1; }
  .split--rev .split__media { order: 0; }
}

/* ============================ PRICING ============================ */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 900px){ .packages { grid-template-columns: 1fr; } }
.pkg {
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px, 3vw, 40px);
  background: var(--surface); display: flex; flex-direction: column; gap: 18px;
  transition: border-color .5s var(--ease-brand), transform .5s var(--ease-brand), background .5s var(--ease-brand);
}
.pkg:hover { border-color: var(--line); transform: translateY(-6px); background: var(--surface-2); }
.pkg--featured { border-color: rgba(189,60,31,.5); }
.pkg__tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pkg__name { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 300; }
.pkg__price { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; }
.pkg__price small { font-family: var(--mono); font-size: .66rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.pkg__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.pkg__list li { display: flex; gap: 12px; align-items: baseline; font-size: .96rem; }
.pkg__list li::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: none; transform: translateY(6px); }
.pkg .btn { margin-top: auto; }

/* ============================ JOURNAL CARDS ============================ */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 900px){ .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .journal-grid { grid-template-columns: 1fr; } }
.jcard { display: flex; flex-direction: column; gap: 16px; }
.jcard__media { aspect-ratio: 4/3; }
.jcard__media .ph { width: 100%; height: 100%; }
.jcard__meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 14px; }
.jcard__title { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.15; }
.jcard:hover .jcard__title { color: var(--accent); transition: color .4s var(--ease-brand); }
.jcard__media .ph::before { transition: transform 1.2s var(--ease-brand); }
.jcard:hover .jcard__media .ph::before { transform: scale(1.06); }

/* ============================ FORM ============================ */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--serif); font-weight: 300; font-size: 1.05rem; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  transition: border-color .4s var(--ease-brand), background .4s var(--ease-brand);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8682' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
@media (max-width: 640px){ .form { grid-template-columns: 1fr; } }
.form__success {
  grid-column: 1 / -1; display: none; align-items: center; gap: 14px;
  border: 1px solid rgba(189,60,31,.4); border-radius: 12px; padding: 18px 20px; background: var(--surface);
}
.form.is-sent .form__success { display: flex; }
.form.is-sent .form__row { display: none; }
.form__success .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* ============================ FOOTER ============================ */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 9vh, 110px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-cta { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; max-width: 16ch; }
.footer-cta a:hover { color: var(--accent); }
.footer-col h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg); transition: color .3s var(--ease-brand); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; margin-top: clamp(48px, 8vh, 88px); padding-top: 24px; border-top: 1px solid var(--line-2); color: var(--muted); }
.footer-bottom .mono { color: var(--muted); }

/* ---------- utilities ---------- */
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: clamp(2.5rem,5vw,4.5rem); }
.maxw-sm { max-width: 640px; } .maxw-md { max-width: 820px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); }
@media (max-width: 760px){ .grid-2 { grid-template-columns: 1fr; } }
.pt-header { padding-top: var(--header-h); }
.flex { display: flex; }
.gap-s { gap: 12px; } .gap-m { gap: 20px; }
.wrap-btns { display: flex; flex-wrap: wrap; gap: 14px; }
