/* ==========================================================================
   rhishikeshagashe.com — core stylesheet
   One file, no build step, no framework. Edit the tokens in section 1 to
   restyle the whole site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — dark is the default */
  --bg:            #0a0e14;
  --bg-elev:       #111721;
  --surface:       #151d29;
  --surface-2:     #1b2534;
  --line:          #243043;
  --line-soft:     #1a2331;

  --text:          #e8eef7;
  --text-muted:    #94a6bd;
  --text-dim:      #6b7d94;

  --accent:        #f0b429;   /* amber — engineering / signal */
  --accent-soft:   rgba(240, 180, 41, 0.12);
  --accent-2:      #38bdf8;   /* cyan  — sci-fi / data */
  --accent-2-soft: rgba(56, 189, 248, 0.12);
  --good:          #34d399;
  --warn:          #fb923c;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Rhythm */
  --wrap:        1140px;
  --wrap-narrow: 760px;
  --gap:         1.5rem;
  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   22px;

  --shadow:    0 1px 2px rgba(0,0,0,.35), 0 8px 30px rgba(0,0,0,.30);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 24px 60px rgba(0,0,0,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="light"] {
  --bg:            #f6f8fb;
  --bg-elev:       #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef2f8;
  --line:          #dde4ee;
  --line-soft:     #e8edf5;

  --text:          #0d1420;
  --text-muted:    #4c5c72;
  --text-dim:      #73839a;

  --accent:        #9a6a05;
  --accent-soft:   rgba(154, 106, 5, 0.10);
  --accent-2:      #0369a1;
  --accent-2-soft: rgba(3, 105, 161, 0.10);

  --shadow:    0 1px 2px rgba(16,32,60,.06), 0 8px 24px rgba(16,32,60,.07);
  --shadow-lg: 0 2px 6px rgba(16,32,60,.08), 0 24px 50px rgba(16,32,60,.12);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--accent-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.2em; }
li { margin-bottom: .45em; }

code, kbd {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: .12em .42em;
  word-break: break-word;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--accent); color: #0a0e14; }

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

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap        { width: min(100% - 2.5rem, var(--wrap));        margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.tight { padding: clamp(2.2rem, 5vw, 3.4rem) 0; }

.center { text-align: center; }
.muted  { color: var(--text-muted); }
.dim    { color: var(--text-dim); }
.small  { font-size: .9rem; }
.mb0    { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #0a0e14;
  padding: .7rem 1.2rem; z-index: 999; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 1rem; height: 68px; }

.brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--text); margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand .mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #0a0e14; font-weight: 700; font-size: .82rem; font-family: var(--font-display);
}
.brand .brand-sub {
  display: block; font-size: .7rem; font-weight: 400;
  color: var(--text-dim); letter-spacing: .05em; text-transform: uppercase;
  font-family: var(--font-body); margin-top: -3px;
}

.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--text-muted); font-size: .93rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--text-muted);
  cursor: pointer; transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }
.theme-icon-sun  { display: block; }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun  { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .32s var(--ease);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   5. Buttons & pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  cursor: pointer; text-align: center; transition: all .22s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: #0a0e14; border-color: var(--accent); }
.btn-primary:hover { color: #0a0e14; transform: translateY(-2px); box-shadow: 0 10px 24px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-2-soft); color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 26%, transparent);
}
.pill-accent { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 26%, transparent); }
.pill-quiet  { background: var(--surface-2); color: var(--text-muted); border-color: var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .75rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 55% at 18% 12%, var(--accent-soft), transparent 68%),
    radial-gradient(55% 50% at 86% 8%, var(--accent-2-soft), transparent 66%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .35em; }
.hero h1 .grad {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--text-muted); max-width: 56ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 2rem; }

.hero-visual {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  padding: 1.4rem; box-shadow: var(--shadow-lg);
}
.hero-visual canvas { width: 100%; height: 170px; border-radius: var(--radius-sm); }
.hv-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .8rem;
}
.hv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.1rem; }
.hv-stat {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: .7rem .5rem; text-align: center;
}
.hv-stat b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); line-height: 1.1; }
.hv-stat span { font-size: .66rem; color: var(--text-dim); letter-spacing: .05em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.grid   { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; position: relative; overflow: hidden;
  transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }

/* A whole card that is itself a link must not inherit link colouring. */
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }
a.card h3 { color: var(--text); }
a.card p  { color: var(--text-muted); }
a.card:hover h3 { color: var(--accent); }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; margin-top: .8rem; }
.card-link::after { content: "\2192"; transition: transform .2s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

.section-head { max-width: 64ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. Timeline / facts (About)
   -------------------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.2rem; margin-bottom: 1.8rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline h3 { margin-bottom: .2rem; }
.timeline .when {
  font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim);
  letter-spacing: .06em; display: block; margin-bottom: .4rem;
}

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.3rem 1.1rem; text-align: center; }
.fact b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--accent); margin-bottom: .35rem; }
.fact span { font-size: .83rem; color: var(--text-muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { font-size: .83rem; padding: .35rem .8rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   9. Books
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filter-btn {
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-muted); font-size: .87rem; font-weight: 600;
  font-family: var(--font-body); transition: all .2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--text-dim); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #0a0e14; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 1.8rem; }
.book {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.book:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.book-cover {
  aspect-ratio: 2 / 3; position: relative;
  background: linear-gradient(150deg, var(--surface-2), var(--bg-elev));
  display: grid; place-items: center; padding: 1.5rem; text-align: center;
  border-bottom: 1px solid var(--line);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.book-cover .placeholder { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-dim); }
.book-cover .placeholder small {
  display: block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; margin-top: .6rem; color: var(--text-dim);
}
.book-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.book-body .byline { font-size: .78rem; color: var(--text-dim); margin-bottom: .8rem; font-family: var(--font-mono); }
.book-body p { font-size: .92rem; color: var(--text-muted); }
.book-body .btn-row { margin-top: auto; padding-top: 1rem; }
.book.soon { border-style: dashed; opacity: .85; }
.book.soon:hover { opacity: 1; }
.book-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }

/* --------------------------------------------------------------------------
   10. Stocks page
   -------------------------------------------------------------------------- */
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; flex-wrap: wrap; }
.tab {
  padding: .8rem 1.3rem; cursor: pointer; background: none; border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--font-body); font-weight: 600; font-size: .94rem;
  color: var(--text-muted); transition: all .2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.frame-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.frame-bar {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--line);
  background: var(--surface-2); font-family: var(--font-mono); font-size: .74rem; color: var(--text-dim);
}
.frame-bar .dots { display: flex; gap: .3rem; }
.frame-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.frame-bar .spacer { margin-left: auto; }
.frame-shell iframe { width: 100%; height: 78vh; min-height: 520px; border: 0; display: block; background: #fff; }

.disclaimer {
  border-left: 3px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 9%, transparent);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem; color: var(--text-muted);
}
.disclaimer strong { color: var(--text); }

/* --------------------------------------------------------------------------
   11. Blog
   -------------------------------------------------------------------------- */
.post-list { display: grid; gap: 1.2rem; }
.post-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.post-thumb {
  border-radius: var(--radius-sm); aspect-ratio: 4/3;
  background: linear-gradient(140deg, var(--accent-soft), var(--accent-2-soft));
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim);
  letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: .5rem;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { margin-bottom: .4rem; font-size: 1.18rem; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-card .meta {
  font-family: var(--font-mono); font-size: .74rem; color: var(--text-dim);
  display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem;
}
.post-card p { font-size: .93rem; color: var(--text-muted); margin-bottom: .8rem; }
@media (max-width: 660px) { .post-card { grid-template-columns: 1fr; } .post-thumb { aspect-ratio: 16/7; } }

.article { max-width: 72ch; }
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.8rem; }
.article blockquote {
  margin: 1.8rem 0; padding: .3rem 0 .3rem 1.4rem;
  border-left: 3px solid var(--accent); color: var(--text-muted); font-style: italic;
}
.article img { border-radius: var(--radius); margin: 1.8rem 0; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-bottom: 2rem; }
.article-head .meta { font-family: var(--font-mono); font-size: .78rem; color: var(--text-dim); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 2rem 0; }
.toc strong { display: block; font-family: var(--font-display); margin-bottom: .6rem; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.toc li { font-size: .92rem; margin-bottom: .3rem; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.3rem; margin-bottom: .8rem; }
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-display);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { margin-bottom: .8rem; }
.faq p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .97rem;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.note {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem; font-size: .92rem; color: var(--text-muted);
}
.note.ok    { border-left-color: var(--good); }
.note.error { border-left-color: var(--warn); }
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. CTA band & footer
   -------------------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--surface), var(--surface-2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--text-muted); }

.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-elev); padding: 3rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.4rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); font-family: var(--font-mono); margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--text-dim); font-size: .84rem;
}
.social { display: flex; gap: .6rem; }
.social a {
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-muted);
  transition: all .2s var(--ease);
}
.social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   14. Motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
