/* =====================================================================
   INNOVATIVE VALLEY — Warm Sunrise
   A light, warm, premium consumer-app-studio website.
   Easy to read · positive · crafted.  innovativevalley.tech
   ===================================================================== */

/* ----------------------------------------------------------------- *
 * 1. TOKENS
 * ----------------------------------------------------------------- */
:root {
  /* Earth — premium natural palette */
  --bg:          #FBFBF9;   /* clean near-white canvas                   */
  --bg-peach:    #F1F3EE;   /* light sage-stone band (alternating)       */
  --bg-amber:    #EFF0EA;   /* warm stone wash                           */
  --surface:     #FFFFFF;   /* crisp white cards                         */
  --ink:         #16201B;   /* deep forest-charcoal — headings           */
  --body:        #3F4A45;   /* muted forest-grey — body copy             */
  --muted:       #79827C;   /* stone grey — captions / secondary         */

  --accent:      #1C5B57;   /* deep ocean-teal / evergreen — brand + CTAs*/
  --accent-deep: #134541;   /* hover                                     */
  --accent-press:#134541;   /* dark teal for small text / links (AA)     */
  --amber:       #B26A45;   /* terracotta / ochre — warm accent (sparing)*/
  --amber-deep:  #8F5230;
  --soft:        #DCEAE6;   /* light teal tint — chip / icon background   */
  --soft-amber:  #ECE7DB;   /* light sand tint                           */
  --gold:        #B0833F;   /* aged brass / ochre                        */

  --line:        rgba(22,32,27,0.10);
  --line-strong: rgba(22,32,27,0.17);

  /* soft earthy shadows */
  --sh-sm: 0 1px 2px rgba(20,45,40,0.06);
  --sh-md: 0 10px 30px -8px rgba(20,45,40,0.13);
  --sh-lg: 0 26px 60px -16px rgba(20,45,40,0.19);
  --sh-glow: 0 16px 40px -12px rgba(28,91,87,0.28);

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

  --t-hero: clamp(2.6rem, 4.6vw + 1rem, 4.9rem);
  --t-h2:   clamp(2rem, 2.6vw + 0.7rem, 3.1rem);
  --t-h3:   clamp(1.45rem, 1.4vw + 0.6rem, 2rem);
  --t-h4:   clamp(1.15rem, 0.7vw + 0.6rem, 1.35rem);
  --t-lg:   clamp(1.1rem, 0.6vw + 0.8rem, 1.3rem);
  --t-body: clamp(1rem, 0.25vw + 0.92rem, 1.08rem);
  --t-sm:   0.9rem;
  --t-eyebrow: 0.78rem;

  /* spacing (4px base) */
  --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:112px;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --nav-h: 74px;
  --maxw: 1180px;

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

/* ----------------------------------------------------------------- *
 * 2. RESET / 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.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { 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: 600; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-weight: 600; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); font-weight: 600; }
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); }
section { position: relative; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-press);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.eyebrow.center::before { display: none; }

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

.accent { color: var(--accent); }
.serif-i { font-style: italic; font-weight: 500; }

/* accessibility */
.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: 6px; }

/* ----------------------------------------------------------------- *
 * 3. BUTTONS
 * ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, color .2s, border-color .2s;
  will-change: transform;
}
.btn i { font-size: 1.25rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 22px 48px -10px rgba(28,91,87,0.4); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--sh-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-press); box-shadow: var(--sh-md); }
.btn-light { background: #fff; color: var(--accent-press); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-lg { padding: 16px 32px; font-size: 1.06rem; }

/* ----------------------------------------------------------------- *
 * 4. NAV
 * ----------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, height .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(255,248,242,0.82);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px -12px rgba(120,72,40,0.3);
}
.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: 600; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.02em; }
.brand .mark { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, #1C5B57, #123F3B); box-shadow: var(--sh-sm); }
.brand .mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 9px 15px; border-radius: var(--r-pill); color: var(--ink); font-weight: 500; font-size: 0.97rem; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--soft); color: var(--accent-press); }
.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: var(--ink); font-size: 1.5rem; }
.nav-toggle:hover { background: var(--soft); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0; padding: var(--sp-4);
    background: rgba(255,248,242,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); box-shadow: var(--sh-md);
  }
  .nav.open .nav-links a { padding: 14px 16px; font-size: 1.06rem; }
  .nav.open .nav-cta { display: block; margin: var(--sp-2) 0 0; }
  .nav.open .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ----------------------------------------------------------------- *
 * 5. HERO
 * ----------------------------------------------------------------- */
.hero { padding: calc(var(--nav-h) + var(--sp-8)) 0 var(--sp-9); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; }
.hero h1 { font-size: var(--t-hero); margin: var(--sp-5) 0; letter-spacing: -0.03em; }
.hero h1 .serif-i { color: var(--accent); }
.hero .lede { font-size: var(--t-lg); color: var(--body); max-width: 52ch; margin-bottom: var(--sp-6); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-trust { margin-top: var(--sp-6); display: flex; align-items: center; gap: var(--sp-4); color: var(--muted); font-size: var(--t-sm); }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.hero-trust b { color: var(--ink); font-weight: 600; }

/* bespoke sunrise visual */
.sunrise { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.sunrise .sky {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 62%, #FFD9A8 0%, #FFC07A 22%, #FF9E62 40%, transparent 66%),
    radial-gradient(circle at 50% 62%, rgba(244,98,46,0.16), transparent 60%);
  filter: blur(2px);
}
.sunrise .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(244,98,46,0.16); }
.sunrise .ring.r1 { inset: 6%; } .sunrise .ring.r2 { inset: 18%; } .sunrise .ring.r3 { inset: 30%; }
.sunrise .sun {
  position: relative; width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(160deg, #FFD27A, var(--accent));
  box-shadow: 0 30px 70px -20px rgba(244,98,46,0.6), inset 0 -8px 30px rgba(218,78,30,0.35), inset 0 8px 20px rgba(255,255,255,0.5);
  animation: floaty 7s var(--ease) infinite;
}
.sunrise .float-card {
  position: absolute; background: var(--surface); border-radius: var(--r-md); padding: 13px 16px;
  display: flex; align-items: center; gap: 11px; box-shadow: var(--sh-lg); border: 1px solid var(--line);
  animation: floaty 6s var(--ease) infinite;
}
.sunrise .float-card .fc-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.sunrise .float-card .fc-ico i { font-size: 1.3rem; }
.sunrise .float-card b { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--ink); line-height: 1.1; }
.sunrise .float-card span { font-size: 0.74rem; color: var(--muted); }
.sunrise .fc-1 { top: 12%; left: -6%; animation-delay: -1s; }
.sunrise .fc-2 { bottom: 16%; right: -8%; animation-delay: -3s; }
.sunrise .fc-3 { bottom: 4%; left: 6%; animation-delay: -2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 880px) {
  .hero { padding-top: calc(var(--nav-h) + var(--sp-6)); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .sunrise { width: min(72vw, 300px); max-width: none; margin: var(--sp-4) auto var(--sp-6); order: -1; }
  .sunrise .float-card { display: none; }   /* keep mobile hero clean; apps live in the workshop section */
}

/* ----------------------------------------------------------------- *
 * 6. MARQUEE / TRUST STRIP
 * ----------------------------------------------------------------- */
.strip { background: var(--ink); color: #fff; padding: var(--sp-4) 0; overflow: hidden; }
.strip .track { display: inline-flex; gap: var(--sp-6); white-space: nowrap; animation: scroll 30s 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.15rem; color: rgba(255,255,255,0.92); }
.strip .track i { color: var(--amber); font-size: 1.1rem; }
.strip:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- *
 * 7. SECTIONS / CARDS
 * ----------------------------------------------------------------- */
.section { padding: var(--sp-9) 0; }
.section.peach { background: var(--bg-peach); }
.section.amber { background: var(--bg-amber); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--sh-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--soft); }
.card .ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: var(--soft); color: var(--accent);
}
.card .ico i { font-size: 1.8rem; }
.card.amber-ico .ico { background: var(--soft-amber); color: var(--amber-deep); }
.card h4 { margin-bottom: var(--sp-2); }
.card p { font-size: 0.98rem; color: var(--body); }

/* ----------------------------------------------------------------- *
 * 8. APP SHOWCASE
 * ----------------------------------------------------------------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.app-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.app-top { height: 168px; display: grid; place-items: center; position: relative; }
.app-top .glow { position: absolute; inset: 0; opacity: 0.9; }
.app-icon { position: relative; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; color: #fff; box-shadow: var(--sh-md); }
.app-icon i { font-size: 2.4rem; }
.app-body { padding: var(--sp-5); }
.app-body .row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: 6px; }
.app-body h4 { font-size: 1.2rem; }
.app-body .cat { font-size: var(--t-sm); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pill.soon { background: var(--soft-amber); color: var(--amber-deep); }
.pill.live { background: #E4F7EC; color: #1B9E5F; }
.pill.live::before { content:''; width:6px; height:6px; border-radius:50%; background:#22B36B; }

/* store buttons */
.stores { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); justify-content: center; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 14px; background: var(--ink); color: #fff; transition: transform .25s var(--ease), box-shadow .3s; box-shadow: var(--sh-sm); }
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.store-btn i { font-size: 1.7rem; color: #fff; }
.store-btn .sx { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .sx small { font-size: 0.62rem; opacity: 0.8; letter-spacing: 0.04em; }
.store-btn .sx b { font-size: 0.96rem; font-family: var(--font-display); font-weight: 600; }
.store-btn.soon { opacity: 0.85; }

/* ----------------------------------------------------------------- *
 * 9. PROCESS STEPS
 * ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: s; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--sp-5); }
.step .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--accent); line-height: 1; opacity: 0.9; }
.step h4 { margin: var(--sp-3) 0 6px; }
.step p { font-size: 0.96rem; color: var(--body); }
.step::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--amber)); }

/* ----------------------------------------------------------------- *
 * 10. ABOUT / VALUES / SPLIT
 * ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--sp-6); } }
.split .prose p { margin-bottom: var(--sp-3); font-size: var(--t-lg); color: var(--body); }
.values { display: grid; gap: var(--sp-4); }
.value { display: flex; gap: var(--sp-4); align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.value:hover { transform: translateX(4px); box-shadow: var(--sh-md); }
.value .ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.value .ico i { font-size: 1.6rem; }
.value h4 { margin-bottom: 3px; }
.value p { font-size: 0.95rem; }

/* ----------------------------------------------------------------- *
 * 11. CTA BAND
 * ----------------------------------------------------------------- */
.cta-band { padding: var(--sp-9) 0; }
.cta-inner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1C5B57, #123F3B);
  border-radius: var(--r-lg); padding: clamp(var(--sp-7), 6vw, var(--sp-9)) var(--sp-6);
  text-align: center; color: #fff; box-shadow: var(--sh-lg);
}
.cta-inner::before, .cta-inner::after { content:''; position:absolute; border-radius:50%; background: rgba(255,255,255,0.14); }
.cta-inner::before { width: 280px; height: 280px; top: -120px; right: -60px; }
.cta-inner::after { width: 200px; height: 200px; bottom: -110px; left: -40px; }
.cta-inner h2 { color: #fff; position: relative; margin-bottom: var(--sp-4); }
.cta-inner p { color: rgba(255,255,255,0.92); position: relative; max-width: 50ch; margin: 0 auto var(--sp-6); font-size: var(--t-lg); }
.cta-inner .btn { position: relative; }

/* ----------------------------------------------------------------- *
 * 12. CONTACT
 * ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.contact-cards { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.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); transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--soft); }
.contact-card .ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.contact-card .ico i { font-size: 1.5rem; }
.contact-card small { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.contact-card b { font-weight: 500; color: var(--ink); font-size: 1.02rem; }

.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: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); 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(28,91,87,0.14); }
.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-press); 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: #E4F7EC; color: #1B9E5F; border: 1px solid #B7E6CC; }
.form-status.err { background: #FDE6E0; color: #C03A1C; border: 1px solid #F4C3B6; }

/* ----------------------------------------------------------------- *
 * 13. FOOTER
 * ----------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: var(--sp-8) 0 var(--sp-6); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 820px) { .footer .wrap { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
@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: 32ch; color: rgba(255,255,255,0.7); }
.footer h5 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); margin-bottom: var(--sp-4); font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { color: rgba(255,255,255,0.78); transition: color .2s; font-size: 0.96rem; }
.footer a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); 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.88rem; color: rgba(255,255,255,0.55); }

/* ----------------------------------------------------------------- *
 * 14. 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-press); font-weight: 600; font-size: 0.92rem; margin-bottom: var(--sp-5); }
.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); }
.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-press); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--accent-deep); }
.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: 0.76rem; 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(--soft-amber); border: 1px solid #F4D9A8; border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; font-size: 0.95rem; color: #6B4A1E; }
.notice b { color: var(--amber-deep); }

/* ----------------------------------------------------------------- *
 * 15. REVEAL + MOTION
 * ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s; } .reveal[data-d="2"]{ transition-delay:.16s; }
.reveal[data-d="3"]{ transition-delay:.24s; } .reveal[data-d="4"]{ transition-delay:.32s; } .reveal[data-d="5"]{ transition-delay:.4s; }

@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 { opacity:1; transform:none; }
}

/* ----------------------------------------------------------------- *
 * 17. REALISTIC 3D IMAGERY  (Recraft renders replace flat icons)
 * ----------------------------------------------------------------- */
.hero-art {
  width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 1;
  object-fit: contain; animation: floaty 8s var(--ease) infinite;
  filter: drop-shadow(0 26px 46px rgba(120,72,40,0.22));
}
@media (max-width: 880px) { .hero-art { max-width: 300px; order: -1; margin-bottom: var(--sp-5); } }

/* service / feature card icons */
.card-ico { width: 88px; height: 88px; object-fit: contain; margin: -10px 0 var(--sp-2) -8px; }

/* app showcase icons */
.app-top { background: #fff; }
.app-ico-img { width: 120px; height: 120px; object-fit: contain; }

/* studio value icons */
.value .val-ico { width: 66px; height: 66px; flex-shrink: 0; object-fit: contain; margin: -8px 0 0 -8px; }

/* contact icons → earthy tone instead of flat coral */
.contact-card .ico { background: #EFE9E0; color: #2F6E7A; }

/* ---- WebGL 3D globe (hero) ---- */
.globe-wrap {
  width: min(94%, 480px); aspect-ratio: 1; margin-inline: auto; position: relative;
  animation: floaty 9s var(--ease) infinite;
}
.globe-wrap::before {                 /* soft atmosphere halo */
  content: ''; position: absolute; inset: -4%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 48%, rgba(28,91,87,0.18), rgba(28,91,87,0.06) 56%, transparent 72%);
  filter: blur(6px);
}
.globe-stage { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; }
.globe-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.globe-fallback {                     /* shown only if WebGL is unavailable */
  position: absolute; inset: 0; border-radius: 50%;
  background: #0c2233 url('../img/earth-texture.jpg') center/cover;
  box-shadow: inset -20px -16px 48px 6px rgba(0,10,20,0.55), 0 0 0 1px rgba(22,32,27,0.06);
}
.globe-stage.ready .globe-fallback { display: none; }
@media (max-width: 880px) { .globe-wrap { width: min(74vw, 300px); order: -1; margin-bottom: var(--sp-5); } }

/* ---- animated infinity (end-to-end value) ---- */
.val-infinity { width: 66px; height: 42px; flex-shrink: 0; margin: -2px 0 0 -6px; overflow: visible; }
.val-infinity .ip-base { fill: none; stroke: rgba(47,110,122,0.30); stroke-width: 7; stroke-linecap: round; }
.val-infinity .ip-flow { fill: none; stroke: url(#infgrad); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 36 184; animation: ipflow 2.8s linear infinite; }
@keyframes ipflow { to { stroke-dashoffset: -220; } }
