/* ==========================================================================
   lenadibrova.com — one-page site for Alena Dzibrova (SEO · Marketing · SMM)
   Design language: mint paper ground, forest ink, emerald accent, one deep green band.
   Tokens below are the whole look — change here, the page follows.
   ========================================================================== */

/* --- 0. Fonts (self-hosted, no third-party requests) --------------------- */
@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/bricolage-var.woff2') format('woff2-variations'),
       url('/assets/fonts/bricolage-var.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-var.woff2') format('woff2-variations'),
       url('/assets/fonts/outfit-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/assets/fonts/caveat.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- 1. Tokens — mint ground, forest ink, emerald accent (chosen 2 Oct 2026) --- */
:root {
  --paper:     #e3ebe3;
  --paper-hi:  #f1f6f0;
  --paper-lo:  #cfdccf;

  --ink:       #12201a;
  --ink-soft:  #3d5047;
  --ink-faint: #7a8c83;

  --accent:         #1fa06a;  /* fills, shapes, icons — never small text */
  --accent-text:    #146a45;  /* text under 24px: 5.4:1 on paper */
  --accent-display: #19875a;  /* text 24px and up: 3.7:1 on paper */
  --amber:     #f2b63b   /* second hard-shadow colour */;
  --band:      #0f4a39   /* the one deep band per page (contact) */;
  --band-hi:   #156651;

  --grad:      linear-gradient(96deg, #2dd4bf 0%, #a3e635 100%);

  --on-ink:        #eef5ee;
  --on-ink-soft:   rgba(238, 245, 238, .68);
  --on-ink-line:   rgba(238, 245, 238, .18);

  --display: 'Bricolage', 'Outfit', Georgia, sans-serif;
  --body:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --hand:    'Caveat', 'Bricolage', cursive;

  --fs-poster: clamp(3.25rem, 9vw, 7.5rem);
  --fs-h1:     clamp(2.75rem, 6.4vw, 5.5rem);
  --fs-h2:     clamp(2.125rem, 4.6vw, 3.75rem);
  --fs-h3:     clamp(1.4rem, 2.4vw, 2.125rem);
  --fs-lead:   clamp(1.125rem, 1.5vw, 1.4375rem);
  --fs-body:   1.0625rem;
  --fs-sm:     0.9375rem;
  --fs-xs:     0.8125rem;

  --gutter: 24px;
  --maxw: 1240px;
  --sect-y: clamp(64px, 8.5vw, 132px);
  --r-sm: 3px;
  --r:    6px;
  --r-lg: 8px;
  --r-pill: 8px;   /* "pill" is now a soft rectangle — the site is deliberately squarer */

  --ease: cubic-bezier(.2, .7, .3, 1);

  --zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12' viewBox='0 0 64 12'%3E%3Cpath d='M0 9 L8 3 L16 9 L24 3 L32 9 L40 3 L48 9 L56 3 L64 9' fill='none' stroke='%231fa06a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--accent); color: var(--paper-hi); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 3px; }
.section--ink :focus-visible, .section--band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-ink);
  padding: 12px 20px; border-radius: var(--r-pill);
  font-family: var(--display); font-weight: 600; font-size: var(--fs-sm);
  transition: top .18s var(--ease);
}
.skip-link:focus-visible { top: 12px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- 3. Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sect-y); }
.section--tight { padding-block: clamp(44px, 5.5vw, 80px); }

.section--paper { background: var(--paper); }
.section--hi    { background: var(--paper-hi); }
.section--ink   { background: var(--ink); color: var(--on-ink); }
.section--band  { background: var(--band); color: var(--on-ink); }

.section--ink, .section--band { position: relative; isolation: isolate; overflow: hidden; }
.section--ink::before, .section--band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 6%, rgba(31,160,106,.10), transparent 34%),
    radial-gradient(circle at 94% 96%, rgba(31,160,106,.07), transparent 32%);
}
.section--band::before {
  background-image:
    radial-gradient(circle at 10% 8%, rgba(31,160,106,.16), transparent 34%),
    radial-gradient(circle at 92% 94%, rgba(255,255,255,.07), transparent 32%);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.split > .split__body { padding-top: .4em; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.center { text-align: center; }
.mt-xl { margin-top: clamp(40px, 6vw, 84px); }
.mt-l  { margin-top: clamp(24px, 3.4vw, 44px); }
.stack > * + * { margin-top: 20px; }
.measure { max-width: 62ch; }

.zig {
  height: 12px; border: 0; margin: 0;
  background: var(--zig) repeat-x center / 64px 12px;
  opacity: .85;
}

/* --- 4. Type ------------------------------------------------------------- */
h1, .h1 {
  font-family: var(--display);
  font-size: var(--fs-h1); font-weight: 700; line-height: .98;
  letter-spacing: -.028em; text-wrap: balance;
}
h2, .h2 {
  font-family: var(--display);
  font-size: var(--fs-h2); font-weight: 700; line-height: 1.02;
  letter-spacing: -.024em; text-wrap: balance;
}
h3, .h3 {
  font-family: var(--display);
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.12;
  letter-spacing: -.014em; text-wrap: balance;
}
h4, .h4 { font-family: var(--display); font-size: var(--fs-lead); font-weight: 600; line-height: 1.25; }

.lead  { font-size: var(--fs-lead); line-height: 1.5; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }
.xs    { font-size: var(--fs-xs); }
.section--ink .muted, .section--band .muted { color: var(--on-ink-soft); }

.verm { color: var(--accent-display); }
.section--ink .verm, .section--band .verm { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent-text);
}
.section--ink .eyebrow { color: var(--accent); }
.section--band .eyebrow { color: var(--on-ink); }
.eyebrow + h1, .eyebrow + h2, .eyebrow + .lockup { margin-top: 18px; }
.spark { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

.note {
  font-family: var(--hand);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.15;
  color: var(--accent-text);
  transform: rotate(-2.5deg);
  display: inline-block;
}
.section--ink .note { color: var(--accent); }
.section--band .note { color: var(--on-ink); }

/* --- 5. Buttons & links -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 7px 7px 26px;
  border-radius: var(--r-pill);
  background: var(--grad); color: var(--ink);
  font-family: var(--display); font-size: var(--fs-body); font-weight: 600;
  line-height: 1; position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn__icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--paper); display: grid; place-items: center;
  transition: transform .3s var(--ease);
  color: var(--ink);
}
.btn__icon svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(31,160,106,.85); }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink .btn__icon { background: var(--accent); color: #fff; }

.btn--outline {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); padding-left: 24px;
}
.btn--outline .btn__icon { background: transparent; border: 2px solid currentColor; color: inherit; }
.btn--outline:hover { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.section--ink .btn--outline, .section--band .btn--outline { color: var(--on-ink); border-color: var(--on-ink); }
.section--ink .btn--outline:hover, .section--band .btn--outline:hover { background: var(--on-ink); color: var(--ink); }

.btn--sm { padding: 5px 5px 5px 18px; font-size: var(--fs-sm); gap: 9px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn--sm .btn__icon svg { width: 15px; height: 15px; }

.link-u { position: relative; color: var(--accent-text); }
.section--ink .link-u { color: var(--accent); }
.section--band .link-u, .site-footer .link-u { color: var(--on-ink); }
.link-u::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); }

/* --- 6. Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 2px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-color: var(--ink); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--ink); }
.brand__word { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.022em; }
.brand__sub {
  font-family: var(--body); font-weight: 500; font-size: 9.4px;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 6px;
}
@media (max-width: 560px) {
  .brand__name { font-size: 20px; }
  .brand__sub { font-size: 8.1px; margin-top: 5px; }
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin-block: -10px; }
.nav > a {
  font-family: var(--display); font-weight: 600; font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: .07em; padding-block: 10px;
}
.nav > a:not(.btn) { position: relative; }
.nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding-block: 5px; }

.burger { display: none; width: 44px; height: 44px; place-items: center; margin-right: -8px; color: var(--ink); }
.burger svg { width: 26px; }

.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.drawer.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease), visibility 0s; }
.drawer__bg { position: absolute; inset: 0; background: rgba(18,32,26,.45); }
.drawer__panel {
  position: absolute; inset: 0 0 auto auto; height: 100%; width: min(430px, 90vw);
  background: var(--paper); padding: 24px 26px 44px; overflow-y: auto;
  border-left: 2px solid var(--ink);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 24px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { align-self: flex-end; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.drawer__close svg { width: 22px; }
.drawer__group h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .16em; color: var(--accent-text); margin-bottom: 10px; }
.drawer__group a {
  display: block; padding: 9px 0;
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em;
}
@media (max-width: 900px) { .nav { display: none; } .burger { display: grid; } }

/* --- 7. Hero ------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(44px, 6vw, 92px) clamp(56px, 7vw, 104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.lockup { display: grid; gap: 0; position: relative; }
.lockup__line { display: flex; align-items: baseline; gap: clamp(12px, 2.2vw, 30px); flex-wrap: wrap; }
.lockup__line--b { padding-left: clamp(0px, 4vw, 56px); }
.lockup__line--c { padding-left: clamp(0px, 8vw, 112px); }
.lockup__word {
  font-family: var(--display); font-size: clamp(2.75rem, 6.6vw, 6rem); font-weight: 800;
  line-height: .86; letter-spacing: -.04em; text-transform: uppercase;
}
.lockup__word--verm { color: var(--accent-display); }
.lockup__small {
  font-family: var(--display); font-size: clamp(.95rem, 1.3vw, 1.25rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft);
}
.hero .lead { margin-top: clamp(22px, 2.8vw, 36px); max-width: 56ch; }
.hero__cta { margin-top: clamp(26px, 3.6vw, 46px); display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; }
.hero__cta + .note { margin-top: 22px; }

/* hero art: three tilted service cards on a tilted blue ellipse — pure CSS,
   no illustration. Percentages are of .art, a 1:1 box. */
.art { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 1; }
.art__oval {
  position: absolute; left: 6%; top: 10%; width: 88%; height: 80%;
  border-radius: 22px; background: var(--band); transform: rotate(-9deg);
}
.art__card {
  position: absolute;
  background: var(--paper-hi); border: 2px solid var(--ink); border-radius: var(--r);
  padding: clamp(14px, 1.8vw, 22px) clamp(16px, 2vw, 24px);
  box-shadow: 8px 8px 0 var(--accent);
  display: grid; gap: 4px; width: 54%;
  transition: transform .4s var(--ease);
}
.art__card b { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.art__card span { font-size: var(--fs-sm); color: var(--ink-soft); }
.art__card--1 { left: 2%;  top: 8%;  transform: rotate(-7deg); }
.art__card--2 { left: 42%; top: 36%; transform: rotate(4deg); box-shadow: 8px 8px 0 var(--amber); }
.art__card--3 { left: 8%;  top: 64%; transform: rotate(-3deg); box-shadow: 8px 8px 0 var(--on-ink); }
.art:hover .art__card--1 { transform: rotate(-9deg) translateY(-6px); }
.art:hover .art__card--2 { transform: rotate(6deg) translateY(-6px); }
.art:hover .art__card--3 { transform: rotate(-1deg) translateY(-6px); }
.art__star { position: absolute; width: 11%; color: var(--accent); }
.art__star--a { left: 78%; top: 6%; }
.art__star--b { left: 4%; top: 48%; width: 7%; color: var(--paper); }
.art__star--c { left: 84%; top: 78%; width: 8%; color: var(--paper); }
@media (max-width: 900px) { .art { max-width: 420px; } }

@media (min-width: 901px) and (max-height: 900px) {
  .hero { padding-block: clamp(28px, 3.4vw, 52px) clamp(36px, 4vw, 64px); }
  .lockup__word { font-size: clamp(2.5rem, 6vw, 5.5rem); }
  .hero .lead { margin-top: clamp(16px, 2vw, 26px); }
  .hero__cta { margin-top: clamp(18px, 2.2vw, 28px); }
  .art { max-width: 460px; }
}

/* --- 8. Ticker ----------------------------------------------------------- */
.ticker { padding-block: 18px; border-block: 2px solid var(--on-ink-line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); width: max-content; animation: marquee 40s linear infinite; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  font-family: var(--display); font-weight: 600; font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; color: var(--on-ink);
}
.marquee__item svg { width: 14px; height: 14px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- 9. Service list (editorial, numbered) ------------------------------- */
.services { border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 68px 1.1fr 1fr;
  gap: clamp(14px, 2.4vw, 36px); align-items: start;
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 2px solid var(--ink);
  transition: padding-left .3s var(--ease), background .3s var(--ease);
}
.service:hover { padding-left: 18px; background: var(--paper); }
.service__idx {
  font-family: var(--display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--accent-text); font-variant-numeric: tabular-nums; letter-spacing: .08em;
  padding-top: .5em;
}
.service__title { font-family: var(--display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
.service__sub { color: var(--ink-soft); margin-top: 10px; max-width: 48ch; }
.service__what h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin-bottom: 12px; font-weight: 600; }
@media (max-width: 760px) {
  .service { grid-template-columns: 40px 1fr; }
  .service__what { grid-column: 2; }
}

.pills { display: flex; flex-wrap: wrap; gap: 9px 10px; padding: 0; margin: 0; list-style: none; }
.pills li {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--paper-hi); border: 2px solid var(--ink); font-size: var(--fs-sm);
  font-family: var(--display); font-weight: 500;
}
.section--hi .pills li { background: var(--paper); }

/* --- 10. Steps ----------------------------------------------------------- */
.steps { display: grid; gap: clamp(22px, 3vw, 40px); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { padding-top: 16px; border-top: 2px solid var(--ink); }
.step__num { font-family: var(--display); font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--accent-display); letter-spacing: -.04em; }
.step__title { font-family: var(--display); font-size: var(--fs-lead); font-weight: 700; margin-top: 10px; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: var(--fs-sm); }
@media (max-width: 980px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps--4 { grid-template-columns: 1fr; } }

/* --- 11. Checks, cards --------------------------------------------------- */
.checks { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: var(--fs-lead); }
.checks svg { width: 26px; height: 26px; margin-top: .1em; color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.card {
  background: var(--paper-hi);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: clamp(20px, 2.3vw, 30px);
  display: grid; gap: 10px; align-content: start;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); }
.card__title { font-family: var(--display); font-size: var(--fs-lead); font-weight: 700; letter-spacing: -.015em; }
.card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.section--ink .card { background: rgba(238,245,238,.05); border-color: var(--on-ink-line); }
.section--ink .card p { color: var(--on-ink-soft); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* --- 12. FAQ ------------------------------------------------------------- */
.faq { display: grid; border-top: 2px solid var(--ink); max-width: 860px; }
.faq__item { border-bottom: 2px solid var(--ink); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2.2vw, 26px) 0; text-align: left;
  font-family: var(--display); font-size: var(--fs-lead); font-weight: 600;
}
.faq__q svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--accent); transition: transform .3s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--ink-soft); padding-bottom: clamp(18px, 2.2vw, 26px); max-width: 72ch; }

/* --- 13. Contact form ---------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(30px, 5vw, 84px); align-items: center; }
@media (max-width: 940px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__lines { display: grid; gap: 10px; margin-top: clamp(22px, 3vw, 36px); font-size: var(--fs-lead); }
.contact__lines a { width: fit-content; }
.form-card {
  background: var(--paper-hi); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: clamp(24px, 3.2vw, 44px);
  box-shadow: 10px 10px 0 var(--accent);
}
.field + .field { margin-top: 14px; }
.field label {
  display: block; margin-bottom: 6px;
  font-family: var(--display); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink);
}
.field label span { color: var(--accent-text); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: var(--fs-body); color: var(--ink);
  padding: 15px 18px;
  border: 2px solid var(--ink); border-radius: var(--r-sm);
  background: var(--paper);
  transition: box-shadow .18s, border-color .18s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2312201a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--row .field { margin-top: 0; }
.field--row + .field { margin-top: 14px; }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }
.form-card .btn { margin-top: 20px; }
.form-note { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 14px; }
/* the card is a light panel inside the blue band — on-dark colours must not reach in */
.section--band .form-card .muted { color: var(--ink-soft); }
.section--band .form-card .eyebrow { color: var(--accent-text); }
.form-status { margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: var(--fs-sm); }
.form-status--err { color: var(--accent-text); }
.form-done { display: grid; gap: 12px; }
.form-done h3 { font-size: var(--fs-h3); }
.form-done .note { margin-top: 6px; }

/* --- 14. Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding-block: clamp(56px, 7vw, 100px) 36px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.footer-col h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-family: var(--display); font-weight: 600; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: var(--fs-body); color: var(--on-ink); padding-block: 5px; }
.footer-col .muted { color: var(--on-ink-soft); }
.footer-col a { position: relative; width: fit-content; }
.footer-col a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.footer-col a:hover::after { transform: scaleX(1); }
.footer-col address { font-style: normal; }
.footer-col .brand { display: inline-flex; padding: 0; }
.footer-col .brand::after { display: none; }
.footer-brand .brand { color: var(--on-ink); }
.footer-brand .brand__sub { color: var(--on-ink-soft); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 64px); padding-top: 24px;
  border-top: 2px solid var(--on-ink-line);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: var(--fs-sm); color: var(--on-ink-soft);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { padding-block: 6px; }
.footer-legal a:hover { color: var(--on-ink); }

/* --- 15. Legal modals (Privacy Policy, Terms) ---------------------------- */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
/* visibility flips at once on open (so focus() can land inside) and only after the fade on close */
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease), visibility 0s; }
.modal__bg { position: absolute; inset: 0; background: rgba(18,32,26,.62); }
.modal__panel {
  position: relative; width: min(820px, 100%); max-height: calc(100dvh - 2 * clamp(12px, 3vw, 40px));
  display: flex; flex-direction: column;
  background: var(--paper-hi); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: 10px 10px 0 var(--accent);
  transform: translateY(14px); transition: transform .35s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 3vw, 40px); border-bottom: 2px solid var(--ink); }
.modal__head h2 { font-size: var(--fs-h3); }
.modal__close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: var(--r-sm); border: 2px solid var(--ink); flex: 0 0 auto; transition: background .2s, color .2s; }
.modal__close:hover { background: var(--ink); color: var(--on-ink); }
.modal__close svg { width: 18px; }
.modal__body { overflow-y: auto; padding: clamp(20px, 3vw, 40px); overscroll-behavior: contain; }
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; }
.modal__body::-webkit-scrollbar-track { background: var(--paper-lo); border-radius: 99px; }

.doc h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-top: 1.8em; }
.doc h4 { font-size: var(--fs-body); margin-top: 1.3em; }
.doc p, .doc ul { margin-top: 1em; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: .45em; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.doc__meta { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 0; }
.doc__box { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(16px, 2vw, 24px); margin-top: 1.2em; }
.doc__box p { margin: 0; }
.doc > :first-child { margin-top: 0; }

/* --- 16. Scroll reveal & motion ------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .note { transform: none; }
  .marquee__track { animation: none; }
  .art__card, .btn, .card, .modal, .modal__panel { transition: none; }
}
