/* =====================================================================
   INNOVATIVE VALLEY — "Quiet luxury for the home screen"
   Warm paper · deep ink · jewel-teal + terracotta · bespoke line icons
   ===================================================================== */

/* ----------------------------------------------------------------- *
 * 1. TOKENS
 * ----------------------------------------------------------------- */
:root {
  --bg:          #F6F5F1;   /* warm paper-white                          */
  --bg-alt:      #ECEAE2;   /* one genuinely distinct stone band         */
  --surface:     #FFFFFF;   /* crisp card                                */
  --ink:         #0E1A17;   /* deep anchor — dark hero + one section     */
  --ink-2:       #14231E;   /* layered dark surface                      */
  --body:        #33403B;   /* forest-grey body                          */
  --muted:       #6E7872;   /* muted captions                            */

  --accent:      #0F6E66;   /* jewel-teal — load-bearing                 */
  --accent-deep: #0A4F49;
  --accent-soft: #DBE8E5;   /* light teal tint                           */
  --terracotta:  #C2693F;   /* the one structural warm                   */
  --terra-deep:  #A4542F;
  --terra-soft:  #F0E2D8;
  --brass:       #B0833F;   /* metal detail only                         */

  /* on dark (ink) sections */
  --on-dark:     #EDEBE3;
  --on-dark-mut: rgba(237,235,227,0.62);

  --line:        rgba(14,26,23,0.10);
  --line-strong: rgba(14,26,23,0.18);
  --line-dark:   rgba(237,235,227,0.14);

  /* ink-tinted shadows */
  --sh-sm: 0 1px 2px rgba(14,26,23,0.05);
  --sh-md: 0 12px 30px -10px rgba(14,26,23,0.13);
  --sh-lg: 0 30px 64px -18px rgba(14,26,23,0.22);

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --t-hero: clamp(2.9rem, 5.4vw + 1rem, 6rem);
  --t-h2:   clamp(2.1rem, 3vw + 0.7rem, 3.5rem);
  --t-h3:   clamp(1.45rem, 1.5vw + 0.6rem, 2.1rem);
  --t-h4:   clamp(1.12rem, 0.6vw + 0.7rem, 1.3rem);
  --t-lg:   clamp(1.12rem, 0.7vw + 0.85rem, 1.32rem);
  --t-body: clamp(1rem, 0.2vw + 0.95rem, 1.06rem);
  --t-sm:   0.9rem;
  --t-label:0.74rem;

  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px;
  --sp-6:32px; --sp-7:48px; --sp-8:72px; --sp-9:104px; --sp-10:140px;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --maxw: 1200px;
  --nav-h: 76px;

  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.5, 0.5, 1);
}

/* ----------------------------------------------------------------- *
 * 2. BASE
 * ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--ink); font-weight: 460;
  line-height: 1.04; letter-spacing: -0.025em;
  font-optical-sizing: auto; font-variation-settings: "opsz" 144;
}
h2 { font-size: var(--t-h2); } h3 { font-size: var(--t-h3); } h4 { font-size: var(--t-h4); font-weight: 520; letter-spacing: -0.015em; }
p { color: var(--body); }
strong { color: var(--ink); font-weight: 600; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
.wrap-wide { max-width: 1400px; }
section { position: relative; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* one canonical label */
.label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.label::before { content: ''; width: 24px; height: 1px; background: var(--terracotta); }
.label.plain::before { display: none; }
.on-ink .label { color: var(--brass); }

.serif-i { font-style: italic; font-weight: 420; }
.lead { font-size: var(--t-lg); color: var(--body); line-height: 1.55; }

.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; }
.skip-link { position:fixed; top:-60px; left:12px; z-index:999; background:var(--accent); color:#fff; padding:10px 16px; border-radius:var(--r-sm); font-weight:600; transition:top .2s var(--ease); }
.skip-link:focus { top:12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }

/* ----------------------------------------------------------------- *
 * 3. BESPOKE LINE-ICON ENGINE
 *    24-grid · constant 1.75px stroke · teal primary + one terracotta accent
 * ----------------------------------------------------------------- */
.icon { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--accent); flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon svg * { vector-effect: non-scaling-stroke; }
.icon svg .t  { stroke: var(--terracotta); }     /* terracotta accent stroke */
.icon svg .tf { fill: var(--terracotta); stroke: none; }
.icon svg .af { fill: currentColor; stroke: none; }
.icon-sm { width: 26px; height: 26px; }
.icon-lg { width: 52px; height: 52px; }
.on-ink .icon { color: var(--accent); }
.on-ink .icon svg .t, .on-ink .icon svg .tf { stroke: var(--terracotta); }

/* ----------------------------------------------------------------- *
 * 4. BUTTONS  (with real press states)
 * ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 540; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn .icon, .btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px rgba(15,110,102,0.7); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(15,110,102,0.7); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }
.btn-ghost:active { transform: translateY(0) scale(.98); }
.on-ink .btn-ghost { color: var(--on-dark); border-color: var(--line-dark); }
.on-ink .btn-ghost:hover { border-color: var(--brass); color: #fff; }
.btn-light { background: var(--bg); color: var(--accent-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-light:active { transform: translateY(0) scale(.98); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ----------------------------------------------------------------- *
 * 5. NAV  (light text over the dark hero → dark when solid)
 * ----------------------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center;
  color: var(--on-dark); transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s, height .3s; border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; color: inherit; }
.brand .mark { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent), var(--accent-deep)); box-shadow: var(--sh-sm); }
.brand .mark svg { width: 21px; height: 21px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { padding: 9px 14px; border-radius: var(--r-pill); color: inherit; font-weight: 500; font-size: 0.97rem; opacity: 0.85; transition: opacity .2s, background .2s; }
.nav-links a:hover { opacity: 1; background: rgba(237,235,227,0.1); }
.nav-cta { margin-left: var(--sp-3); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: inherit; }

.nav.solid { background: rgba(246,245,241,0.85); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line); box-shadow: 0 2px 20px -14px rgba(14,26,23,0.4); color: var(--ink); }
.nav.solid .nav-links a:hover { background: var(--accent-soft); color: var(--accent-deep); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav.open { background: var(--ink); color: var(--on-dark); }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0; padding: var(--sp-4); background: var(--ink); border-bottom: 1px solid var(--line-dark); }
  .nav.open .nav-links a { padding: 14px 16px; font-size: 1.05rem; opacity: 1; }
  .nav.open .nav-cta { display: block; margin: var(--sp-2) 0 0; }
  .nav.open .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ----------------------------------------------------------------- *
 * 6. HERO  (full-bleed dark ink, interactive globe)
 * ----------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--on-dark); padding: calc(var(--nav-h) + var(--sp-8)) 0 var(--sp-9); overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 78% 28%, rgba(15,110,102,0.20), transparent 55%), radial-gradient(80% 70% at 12% 90%, rgba(194,105,63,0.12), transparent 60%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; }
.hero h1 { color: #fff; font-size: var(--t-hero); font-weight: 400; letter-spacing: -0.04em; font-variation-settings: "opsz" 144; margin: var(--sp-5) 0; }
.hero h1 .serif-i { color: var(--brass); }
.hero .lead { color: var(--on-dark-mut); max-width: 50ch; margin-bottom: var(--sp-6); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-trust { margin-top: var(--sp-7); display: flex; align-items: center; gap: var(--sp-4); color: var(--on-dark-mut); font-size: var(--t-sm); flex-wrap: wrap; }
.hero-trust b { color: var(--on-dark); font-weight: 600; }
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }

/* line-masked headline reveal */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform .9s var(--ease); }
.reveal-on .line-mask > span { transform: translateY(0); }
.reveal-on .line-mask:nth-child(2) > span { transition-delay: .09s; }
.reveal-on .line-mask:nth-child(3) > span { transition-delay: .18s; }

/* globe */
.globe-wrap { position: relative; width: min(96%, 500px); aspect-ratio: 1; margin-inline: auto; }
.globe-wrap::before { content: ''; position: absolute; inset: -8%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 48%, rgba(15,110,102,0.30), rgba(15,110,102,0.06) 52%, transparent 70%); filter: blur(8px); }
.globe-stage { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; cursor: grab; }
.globe-stage:active { cursor: grabbing; }
.globe-stage canvas { width: 100% !important; height: 100% !important; }
.globe-fallback { position: absolute; inset: 0; border-radius: 50%; background: var(--ink-2) url('../img/earth-texture.jpg') center/cover; box-shadow: inset -18px -14px 44px 6px rgba(0,0,0,0.5); }
.globe-stage.ready .globe-fallback { display: none; }
.globe-hint { position: absolute; bottom: -6%; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-mut); display: flex; align-items: center; gap: 7px; opacity: 0; transition: opacity .4s; }
.reveal-on .globe-hint { opacity: 0.7; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .globe-wrap { width: min(76vw, 320px); order: -1; }
}

/* ----------------------------------------------------------------- *
 * 7. SECTIONS / RHYTHM (varied, not metronome)
 * ----------------------------------------------------------------- */
.section { padding: var(--sp-9) 0; }
.section-sm { padding: var(--sp-8) 0; }
.section-lg { padding: var(--sp-10) 0; }
.section.stone { background: var(--bg-alt); }
.section.ink { background: var(--ink); color: var(--on-dark); }
.section.ink h2, .section.ink h3, .section.ink h4 { color: #fff; }
.section.ink p { color: var(--on-dark-mut); }

.head { max-width: 680px; margin-bottom: var(--sp-7); }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { margin: var(--sp-3) 0; }
.head p { font-size: var(--t-lg); color: var(--muted); }
.section.ink .head p { color: var(--on-dark-mut); }

/* ----------------------------------------------------------------- *
 * 8. SERVICES — editorial list, not a centred card grid
 * ----------------------------------------------------------------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.svc-item { background: var(--surface); padding: var(--sp-6); transition: background .3s var(--ease); }
.svc-item:hover { background: #fff; }
.svc-item .icon { margin-bottom: var(--sp-5); }
.svc-item h4 { margin-bottom: 8px; }
.svc-item p { font-size: 0.98rem; color: var(--body); }
@media (max-width: 820px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .svc { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- *
 * 9. WORKSHOP — bento on a dark stage (honest, no fake products)
 * ----------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: minmax(150px, auto); gap: var(--sp-4); margin-top: var(--sp-7); }
.tile { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: var(--sp-6); position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(176,131,63,0.4); }
.tile .icon { margin-bottom: var(--sp-4); }
.tile h4 { color: #fff; margin-bottom: 6px; }
.tile p { color: var(--on-dark-mut); font-size: 0.96rem; }
.tile.feature { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(155deg, #163029, var(--ink-2)); }
.tile.feature .icon { width: 56px; height: 56px; }
.tile.feature h3 { color: #fff; }
.tile .pill { position: absolute; top: var(--sp-5); right: var(--sp-5); }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } .tile.feature { grid-row: auto; } }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--r-pill); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-deep); }
.pill.on-ink { background: rgba(176,131,63,0.16); color: var(--brass); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ----------------------------------------------------------------- *
 * 10. PROCESS — oversized display numerals
 * ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); margin-top: var(--sp-7); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--sp-6); border-top: 1px solid var(--line-strong); }
.step .num { position: absolute; top: -0.36em; right: 0; font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 400; color: var(--terra-soft); letter-spacing: -0.04em; font-variation-settings: "opsz" 144; z-index: 0; }
.step .k { position: relative; z-index: 1; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta); }
.step h4 { position: relative; z-index: 1; margin: var(--sp-3) 0 6px; }
.step p { font-size: 0.96rem; }

/* ----------------------------------------------------------------- *
 * 11. ABOUT / VALUES
 * ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--sp-6); } }
.split .prose p { margin-bottom: var(--sp-4); font-size: var(--t-lg); color: var(--body); line-height: 1.6; }
.values { display: grid; gap: var(--sp-2); }
.value { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.value:last-child { border-bottom: none; }
.value .icon { width: 34px; height: 34px; margin-top: 2px; }
.value h4 { margin-bottom: 4px; }
.value p { font-size: 0.96rem; color: var(--muted); }

/* ----------------------------------------------------------------- *
 * 12. CTA
 * ----------------------------------------------------------------- */
.cta-band { padding: var(--sp-9) 0; }
.cta-inner { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: var(--r-lg);
  padding: clamp(var(--sp-8), 7vw, var(--sp-10)) var(--sp-6); text-align: center; box-shadow: var(--sh-lg); }
.cta-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 120% at 85% 110%, var(--terracotta), transparent 55%); opacity: 0.55; }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-inner p { color: rgba(255,255,255,0.86); max-width: 48ch; margin: 0 auto var(--sp-6); font-size: var(--t-lg); }

/* ----------------------------------------------------------------- *
 * 13. CONTACT
 * ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.contact-rows { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.contact-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { color: var(--accent-deep); }
.contact-row .icon { width: 30px; height: 30px; }
.contact-row small { display: block; font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-row b { font-weight: 500; color: var(--ink); font-size: 1.04rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-sm); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(15,110,102,0.13); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: var(--t-sm); color: var(--muted); margin-top: var(--sp-3); }
.form-note a, a.link { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: var(--sp-4); padding: 12px 16px; border-radius: var(--r-sm); font-size: 0.95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid rgba(15,110,102,0.25); }
.form-status.err { background: var(--terra-soft); color: var(--terra-deep); border: 1px solid rgba(194,105,63,0.3); }

/* ----------------------------------------------------------------- *
 * 14. FOOTER
 * ----------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark-mut); padding: var(--sp-8) 0 var(--sp-6); }
.footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 820px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .wrap { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: var(--sp-3); }
.footer .f-about { font-size: 0.95rem; max-width: 34ch; }
.footer h5 { font-family: var(--font-body); font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.14em; color: var(--brass); margin-bottom: var(--sp-4); font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { color: var(--on-dark-mut); transition: color .2s; font-size: 0.96rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); font-size: 0.86rem; }

/* ----------------------------------------------------------------- *
 * 15. DOCUMENT (legal) PAGES
 * ----------------------------------------------------------------- */
.doc-page { padding: calc(var(--nav-h) + var(--sp-8)) 0 var(--sp-9); }
.doc { max-width: 800px; margin: 0 auto; }
.doc .back { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-deep); font-weight: 600; font-size: 0.92rem; margin-bottom: var(--sp-5); }
.doc .back .icon { width: 16px; height: 16px; }
.doc .back:hover { gap: 11px; }
.doc h1 { font-size: var(--t-h2); margin-bottom: var(--sp-3); }
.doc .meta { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--sp-6); }
.doc h2 { font-size: var(--t-h3); margin: var(--sp-7) 0 var(--sp-3); }
.doc h3 { font-size: var(--t-h4); margin: var(--sp-5) 0 var(--sp-2); }
.doc p, .doc li { color: var(--body); margin-bottom: var(--sp-3); line-height: 1.6; }
.doc ul, .doc ol { padding-left: var(--sp-5); margin-bottom: var(--sp-3); }
.doc li { margin-bottom: var(--sp-2); }
.doc a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); margin: var(--sp-6) 0; box-shadow: var(--sh-sm); }
.toc b { display: block; font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: var(--sp-3); font-weight: 600; }
.toc ol { columns: 2; column-gap: var(--sp-6); margin: 0; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc a { text-decoration: none; }
.notice { background: var(--terra-soft); border: 1px solid rgba(194,105,63,0.28); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; font-size: 0.95rem; color: var(--terra-deep); }
.notice b { color: var(--terra-deep); }
.contact-card { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-sm); margin-bottom: var(--sp-3); transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.contact-card .icon { width: 28px; height: 28px; }
.contact-card small { display: block; font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-card b { font-weight: 500; color: var(--ink); }

/* ----------------------------------------------------------------- *
 * 16. MARQUEE STRIP
 * ----------------------------------------------------------------- */
.strip { background: var(--ink); color: var(--on-dark); padding: var(--sp-4) 0; overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.strip .track { display: inline-flex; gap: var(--sp-6); white-space: nowrap; animation: scroll 36s linear infinite; align-items: center; }
.strip .track span { display: inline-flex; align-items: center; gap: var(--sp-6); font-family: var(--font-display); font-size: 1.1rem; color: var(--on-dark); font-weight: 400; }
.strip .track i { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.strip:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- *
 * 17. MOTION — reveal + stagger
 * ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2){ transition-delay:.07s; } .stagger.in > *:nth-child(3){ transition-delay:.14s; }
.stagger.in > *:nth-child(4){ transition-delay:.21s; } .stagger.in > *:nth-child(5){ transition-delay:.28s; } .stagger.in > *:nth-child(6){ transition-delay:.35s; }
.reveal[data-d="1"]{ transition-delay:.08s; } .reveal[data-d="2"]{ transition-delay:.16s; } .reveal[data-d="3"]{ transition-delay:.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .reveal, .stagger > * { opacity:1; transform:none; }
  .line-mask > span { transform: none; }
}
