/* ==========================================================================
   AKARA Technologies — stylesheet
   Direction: "the maker's desk" — paper, tape, thread, pressed keys.
   Palette (from brand board): indigo #1E293B · teal #14B8A6 · mint #E6F7F4
                               beige #F6F0E5 · white #FFFFFF
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --indigo: #1E293B;
  --indigo-deep: #141d2b;       /* shadows / pressed edges */
  --ink: #1E293B;
  --ink-soft: #46566e;          /* secondary text, AA on white & beige */
  --teal: #14B8A6;
  --teal-ink: #0b7d71;          /* teal dark enough for text on light bg */
  --teal-soft: #9ee8de;
  --mint: #E6F7F4;
  --beige: #F6F0E5;
  --beige-deep: #ece2d0;
  --white: #FFFFFF;
  --line: rgba(30, 41, 59, .12);

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;

  --container: 1160px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-paper: 0 1px 2px rgba(30,41,59,.07), 0 10px 28px -14px rgba(30,41,59,.30);
  --shadow-lift:  0 2px 4px rgba(30,41,59,.08), 0 22px 44px -18px rgba(30,41,59,.35);

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* z scale */
  --z-thread: 0;
  --z-content: 1;
  --z-nav: 50;
  --z-chat: 60;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--teal-soft); color: var(--indigo); }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* Paper grain — applied to beige/mint surfaces for tactility */
.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ---------- Skeuomorphic primitives ---------- */

/* Pressed-key buttons: a real bottom edge, sinks on press */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background-color .2s;
}
.btn-primary {
  color: var(--white);
  background: linear-gradient(180deg, #2b3a52 0%, var(--indigo) 55%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 4px 0 var(--indigo-deep),
    0 10px 22px -10px rgba(20,29,43,.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #33445f 0%, #233149 55%); color: var(--white); }
.btn-primary:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 var(--indigo-deep),
    0 3px 8px -4px rgba(20,29,43,.5);
}
.btn-teal {
  color: var(--indigo);
  background: linear-gradient(180deg, #2fd1bf 0%, var(--teal) 55%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 4px 0 #0d8a7c,
    0 10px 22px -10px rgba(13,138,124,.55);
}
.btn-teal:hover { background: linear-gradient(180deg, #3fdccb 0%, #19c4b1 55%); color: var(--indigo); }
.btn-teal:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 #0d8a7c, 0 3px 8px -4px rgba(13,138,124,.5);
}
.btn-ghost {
  color: var(--indigo);
  background: var(--white);
  box-shadow:
    inset 0 0 0 1.5px var(--line),
    0 4px 0 rgba(30,41,59,.14),
    0 10px 20px -12px rgba(30,41,59,.35);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(30,41,59,.3), 0 4px 0 rgba(30,41,59,.18), 0 10px 20px -12px rgba(30,41,59,.4); }
.btn-ghost:active { transform: translateY(4px); box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 rgba(30,41,59,.2); }
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* Paper card */
.paper {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
}
.paper.beige { background: var(--beige); }
.paper.mint  { background: var(--mint); }

/* Masking tape — the human touch */
.tape {
  position: absolute;
  width: 92px;
  height: 26px;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(180deg, rgba(246,240,229,.92), rgba(236,226,208,.88));
  border-left: 1px dashed rgba(30,41,59,.18);
  border-right: 1px dashed rgba(30,41,59,.18);
  box-shadow: 0 2px 4px rgba(30,41,59,.12);
  opacity: .95;
  pointer-events: none;
}
.tape.tilt-r { transform: translateX(-50%) rotate(2.5deg); }
.tape.corner { left: auto; right: -22px; top: 14px; transform: rotate(40deg); width: 76px; }

/* Handwritten margin notes */
.hand {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--teal-ink);
  letter-spacing: 0;
}
.hand.ink { color: var(--ink-soft); }

/* Sticky note */
.sticky {
  position: relative;
  background: linear-gradient(180deg, #fdf8ec, var(--beige));
  border-radius: 4px;
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 1px 2px rgba(30,41,59,.08), 0 14px 22px -14px rgba(30,41,59,.4);
  transform: rotate(-1.6deg);
}
.sticky::after {            /* lifted corner */
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  border-style: solid;
  border-width: 0 0 22px 22px;
  border-color: transparent transparent rgba(30,41,59,.10) transparent;
  border-radius: 0 0 4px 0;
}

/* Eyebrow label — stamped, not printed */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ---------- Thread motif (signature) ---------- */
.thread-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: var(--z-thread); }
.thread path {
  fill: none;
  stroke-linecap: round;
}
.js .thread path {
  stroke-dasharray: var(--len, 1600);
  stroke-dashoffset: var(--len, 1600);
}
.js .in-view .thread path {
  animation: draw 2.4s var(--ease-out) forwards;
}
.js .in-view .thread path:nth-child(2) { animation-delay: .25s; }
.js .in-view .thread path:nth-child(3) { animation-delay: .5s; }
.js .in-view .thread path:nth-child(4) { animation-delay: .75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Reveal on scroll (JS adds .in, content visible without JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Navigation ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--indigo); color: var(--white);
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--indigo);
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .04em;
}
.brand-name small {
  display: block;
  font-weight: 600;
  font-size: .56rem;
  letter-spacing: .42em;
  color: var(--ink-soft);
}
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: .55rem .85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--indigo);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .18s;
}
.nav-links a:hover { background: var(--mint); }
.nav-links a[aria-current="page"] { color: var(--teal-ink); }
.nav-cta { margin-left: .5rem; padding: .6rem 1.05rem; font-size: .92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(30,41,59,.12);
}
.nav-toggle:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(30,41,59,.12); }
.nav-toggle span { height: 2.5px; background: var(--indigo); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .9rem 1.25rem 1.2rem;
    box-shadow: 0 24px 36px -24px rgba(30,41,59,.4);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .9rem; font-size: 1.05rem; }
  .nav-cta { margin: .5rem 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--beige);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.2rem, 7vh, 5.5rem) 0 clamp(3.5rem, 8vh, 6rem);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.3vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.hero h1 .underlined {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underlined svg {
  position: absolute;
  left: 0; right: 0; bottom: -.16em;
  width: 100%; height: .32em;
  overflow: visible;
}
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-hand { margin-top: 1.4rem; display: inline-block; transform: rotate(-2deg); }

/* Hero desk collage */
.desk { position: relative; min-height: 420px; }
.desk-card {
  position: absolute;
  border-radius: var(--radius);
  will-change: transform;
}
.desk-card .screen { border-radius: 10px; overflow: hidden; }
.desk-main {
  width: min(380px, 86%);
  right: 4%;
  top: 8%;
  padding: 14px 14px 18px;
  transform: rotate(2deg);
  z-index: 3;
}
.desk-side {
  width: min(250px, 62%);
  left: 0;
  bottom: 4%;
  padding: 12px 12px 14px;
  transform: rotate(-4deg);
  z-index: 4;
}
.desk-note {
  width: 185px;
  right: 0;
  bottom: 12%;
  z-index: 5;
  font-size: 1.35rem;
}
.desk-swatch {
  position: absolute;
  top: 0;
  left: 10%;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  transform: rotate(-7deg);
  box-shadow: var(--shadow-paper);
}
.desk-swatch i {
  width: 26px; height: 64px;
  border-radius: 6px;
  border: 1px solid rgba(30,41,59,.08);
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .desk { min-height: 380px; max-width: 540px; }
}
@media (max-width: 480px) {
  .desk { min-height: 330px; }
  .desk-note { width: 150px; font-size: 1.15rem; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.section-head .lede { font-size: 1.13rem; color: var(--ink-soft); }
.bg-mint  { background: var(--mint); }
.bg-beige { background: var(--beige); }
.bg-white { background: var(--white); }

/* Who we are */
.who-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.who-aside { position: relative; padding-top: 1.2rem; }
.who-aside .sticky { max-width: 320px; }
.who-aside .sticky + .sticky { margin-top: 1.6rem; transform: rotate(1.8deg); margin-left: 2.2rem; }
.who-figure { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--indigo); line-height: 1; }
.who-figure small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .92rem; color: var(--ink-soft); margin-top: .35rem; }
@media (max-width: 860px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-aside { display: flex; flex-wrap: wrap; gap: 1.4rem; padding-top: 0; }
  .who-aside .sticky + .sticky { margin: 0; }
}

/* What we do — workbench grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.3rem;
}
.service-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--indigo);
  padding: 1.5rem 1.4rem 1.45rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.service-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-lift); color: var(--indigo); }
.service-card:nth-child(even):hover { transform: translateY(-5px) rotate(.4deg); }
.service-card h3 { font-size: 1.22rem; margin: 0 0 .35rem; }
.service-card p { font-size: .98rem; color: var(--ink-soft); margin: 0 0 1rem; }
.service-card .go {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: .4rem;
}
.service-card:hover .go .arrow { transform: translateX(3px); }
.service-card .go .arrow { transition: transform .2s var(--ease-out); }
.service-icon {
  width: 46px; height: 46px;
  margin-bottom: .9rem;
  display: grid; place-items: center;
  background: var(--mint);
  border: 1px solid rgba(20,184,166,.3);
  border-radius: 12px;
  box-shadow: inset 0 -3px 0 rgba(20,184,166,.25), 0 2px 3px rgba(30,41,59,.08);
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--teal-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Project cards (pinned photos) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem 1.6rem;
}
.project-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--indigo);
  padding: 13px 13px 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--tilt, -.7deg));
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.project-card:nth-child(even) { --tilt: .8deg; }
.project-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-lift); color: var(--indigo); }
.project-card .shot { border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.project-card .shot svg { width: 100%; height: auto; }
.project-card .meta { padding: .95rem .35rem 0; }
.project-card h3 { font-size: 1.25rem; margin: 0 0 .2rem; }
.project-card .tagline { font-size: .96rem; color: var(--ink-soft); margin: 0 0 .65rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.chip {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .28rem .6rem;
  border-radius: 99px;
  background: var(--mint);
  color: var(--teal-ink);
  border: 1px solid rgba(20,184,166,.32);
}
.chip.plain { background: var(--beige); color: var(--ink-soft); border-color: var(--line); }

/* tilt (JS 3D) */
.js .tiltable { transform-style: preserve-3d; }
.js .tiltable .shot { transform: translateZ(18px); }

/* ---------- Dark CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--indigo);
  color: var(--white);
  overflow: hidden;
}
.cta-band .container {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  padding-top: clamp(3.6rem, 9vh, 6rem);
  padding-bottom: clamp(3.6rem, 9vh, 6rem);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); }
.cta-band p { margin: 0 auto 2rem; color: #c4d0e0; font-size: 1.13rem; }
.cta-band .hand { color: var(--teal-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--indigo-deep); color: #aebaca; font-size: .95rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 0;
}
.footer a { color: #d7e0ec; text-decoration: none; }
.footer a:hover { color: var(--teal-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--beige); overflow: hidden; }
.page-hero .container { position: relative; z-index: var(--z-content); padding-top: clamp(2.8rem, 6vh, 4.5rem); padding-bottom: clamp(2.6rem, 6vh, 4rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 18ch; }
.page-hero .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; }
.crumb { font-family: var(--font-display); font-size: .9rem; font-weight: 600; margin-bottom: 1.1rem; }
.crumb a { text-decoration: none; }
.crumb span { color: var(--ink-soft); }

/* ---------- Service page ---------- */
.svc-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.svc-side { position: sticky; top: 96px; }
.svc-side .paper { padding: 1.5rem 1.4rem; }
.svc-side h3 { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.svc-side ul { margin: 0 0 1.4rem; padding-left: 1.15rem; }
.svc-side li { margin-bottom: .45rem; }
@media (max-width: 860px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; }
}

/* ---------- Project page ---------- */
.proj-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .proj-hero-grid { grid-template-columns: 1fr; } }
.proj-frame { padding: 14px 14px 16px; transform: rotate(1.4deg); }
.proj-frame .shot { border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.fact-list li { display: flex; gap: .6rem; align-items: baseline; }
.fact-list .k { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); min-width: 92px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; max-width: 640px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 4rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.1rem; top: 1.05rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--teal-ink);
}
.quote-card {
  max-width: 560px;
  padding: 1.8rem 1.9rem 1.6rem;
  transform: rotate(-1deg);
}
.quote-card blockquote {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}
.quote-card cite { font-style: normal; color: var(--ink-soft); font-size: .95rem; }
.media-slot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--indigo);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #c4d0e0;
  font-family: var(--font-display);
  font-weight: 600;
}
.media-slot .play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.4);
  display: grid; place-items: center;
  margin-bottom: .8rem;
}

/* ---------- Stories page ---------- */
.seats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}
.seat { padding: 1.5rem 1.4rem; }
.seat .chair {
  width: 52px; height: 52px;
  border-radius: 14px;
  margin-bottom: 1rem;
  display: grid; place-items: center;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--white);
  background: linear-gradient(180deg, #2b3a52, var(--indigo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 0 var(--indigo-deep);
}
.seat.founder .chair { background: linear-gradient(180deg, #2fd1bf, var(--teal)); color: var(--indigo); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 0 #0d8a7c; }
.seat h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.seat p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 620px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 15px);
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 1.7rem 2.3rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 3px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
  box-shadow: 0 1px 2px rgba(30,41,59,.25);
}
.timeline .when { font-family: var(--font-hand); font-size: 1.35rem; color: var(--teal-ink); }
.timeline h3 { font-size: 1.12rem; margin: .1rem 0 .3rem; }
.timeline p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---------- Insights ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; align-items: start; }
.post { padding: 1.6rem 1.5rem 1.4rem; }
.post .date { font-family: var(--font-hand); font-size: 1.3rem; color: var(--teal-ink); }
.post h3 { font-size: 1.3rem; margin: .25rem 0 .5rem; }
.post p { font-size: .99rem; color: var(--ink-soft); }
.post details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--teal-ink);
  list-style: none;
}
.post details summary::-webkit-details-marker { display: none; }
.post details summary::after { content: " ↓"; }
.post details[open] summary::after { content: " ↑"; }
.post details[open] summary { margin-bottom: .6rem; }

/* ---------- Form (start page) ---------- */
.form-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { padding: clamp(1.5rem, 3vw, 2.3rem); }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .4rem;
}
.field .help { font-size: .87rem; color: var(--ink-soft); margin: .3rem 0 0; }
.field .error-msg { display: none; font-size: .87rem; color: #b03030; margin: .3rem 0 0; font-weight: 600; }
.field.invalid .error-msg { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b03030; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(30,41,59,.28);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  box-shadow: inset 0 2px 3px rgba(30,41,59,.07);
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: inset 0 2px 3px rgba(30,41,59,.07), 0 0 0 3px rgba(20,184,166,.28);
}
textarea { min-height: 150px; resize: vertical; }
.form-status { display: none; margin-top: 1.1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.ok { display: block; background: var(--mint); color: var(--teal-ink); border: 1px solid rgba(20,184,166,.4); }
.form-status.fail { display: block; background: #fdecec; color: #b03030; border: 1px solid #e5b9b9; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: var(--z-chat);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.3rem;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--indigo);
  background: linear-gradient(180deg, #2fd1bf 0%, var(--teal) 55%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 #0d8a7c, 0 14px 28px -10px rgba(13,138,124,.6);
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out);
}
.chat-fab:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 #0d8a7c; }
.chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 5.4rem;
  z-index: var(--z-chat);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(540px, 72vh);
  display: none;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .9rem 1.1rem;
  background: var(--indigo);
  color: var(--white);
}
.chat-head strong { font-family: var(--font-display); }
.chat-head small { display: block; color: #aebaca; font-size: .8rem; }
.chat-close { background: none; border: 0; color: var(--white); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: .3rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--mint); }
.msg { max-width: 85%; padding: .6rem .85rem; border-radius: 13px; font-size: .95rem; line-height: 1.45; }
.msg.bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 2px 4px rgba(30,41,59,.06); }
.msg.user { background: var(--indigo); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--teal-ink); font-weight: 700; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .45rem; padding: .7rem 1rem; background: var(--mint); }
.chat-quick button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--teal-ink);
  background: var(--white);
  border: 1px solid rgba(20,184,166,.4);
  border-radius: 99px;
  padding: .42rem .85rem;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(13,138,124,.25);
  transition: transform .1s, box-shadow .1s;
}
.chat-quick button:active { transform: translateY(2px); box-shadow: none; }
.chat-quick:empty { display: none; }

/* ---------- Mock screens (SVG inside) ---------- */
.shot { background: var(--mint); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.flow > * + * { margin-top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .thread path { stroke-dasharray: none; stroke-dashoffset: 0; }
}
