/* Kantan Solutions Group Ltd. — site styles */

:root {
  color-scheme: light dark;

  --ground:  #edf1e4;
  --surface: #fbfcf8;
  --band:    #2e3a22;
  --brand:   #465a31;
  --accent:  #6f9048;
  --ink:     #171c13;
  --ink-2:   #4e5747;
  --ink-3:   #838d79;
  --line:    #d6dfc8;
  --hair:    #e4eada;

  --slab-deep: linear-gradient(150deg, #6c8149 0%, #45592c 46%, #26331a 100%);
  --slab-lav:  linear-gradient(150deg, #eaf4dc 0%, #bcd6a0 52%, #8fb46c 100%);
  --slab-peri: linear-gradient(150deg, #e6eede 0%, #b4c9a4 55%, #86a476 100%);
  --slab-mid:  linear-gradient(150deg, #a6c281 0%, #6b8a45 55%, #43592a 100%);

  --edge-deep: #1b2412;
  --edge-lav:  #7d9f5c;
  --edge-peri: #76916a;
  --edge-mid:  #35471f;

  --shadow: 20, 30, 12;
  --leaf-aspect: 1;        /* 1 = corner leaf (square), .4375 = lanceolate blade */
  --slab-scale: 1.15;      /* shrinks shapes on narrow screens without flattening their ratios */
  --ground-rgb: 237, 241, 228;
  --band-top: #3a4a2c;

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --shell: 1140px;
  --text: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:  #10140c;
    --surface: #181e12;
    --band:    #1d2715;
    --brand:   #a9c988;
    --accent:  #bcd79d;
    --ink:     #eaf0e2;
    --ink-2:   #a6b29a;
    --ink-3:   #7b8772;
    --line:    #2a3421;
    --hair:    #222b1a;

    --slab-deep: linear-gradient(150deg, #46592c 0%, #2b3a1a 46%, #18220f 100%);
    --slab-lav:  linear-gradient(150deg, #7e9c5c 0%, #55703a 52%, #35471f 100%);
    --slab-peri: linear-gradient(150deg, #6f8567 0%, #4c5f45 55%, #313f2c 100%);
    --slab-mid:  linear-gradient(150deg, #6d8a48 0%, #47602c 55%, #2b3a1a 100%);

    --edge-deep: #0e1408;
    --edge-lav:  #43592a;
    --edge-peri: #3b4a33;
    --edge-mid:  #233013;

    --ground-rgb: 16, 20, 12;
    --band-top: #26321b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: -.005em;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 600px) { .shell { padding: 0 1.35rem; } }

a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p a:hover, .prose a:hover { color: var(--ink); }

.skip { position: absolute; left: -9999px; background: var(--surface); color: var(--ink); padding: .7rem 1rem; border-radius: 8px; z-index: 60; }
.skip:focus { left: 1.5rem; top: 1.5rem; }

/* ---------- motion ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .09s; }
.js [data-reveal][data-delay="2"] { transition-delay: .18s; }
.js [data-reveal][data-delay="3"] { transition-delay: .27s; }
.js [data-reveal][data-delay="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .slab-wrap { transform: none !important; }
  .scroll-cue span::after { animation: none; }
}

/* ---------- geometric slabs ---------- */

.slabs {
  position: absolute; top: 50%; left: 50%;
  width: 1280px; height: 800px; margin: -400px 0 0 -640px;
  overflow: visible; pointer-events: none; z-index: 0;
}
.slab-wrap {
  position: absolute; left: var(--l); top: var(--t);
  width: calc(var(--s) * var(--leaf-aspect) * var(--slab-scale));
  height: calc(var(--s) * var(--slab-scale)); will-change: transform;
}
.slab {
  display: block; width: 100%; height: 100%; overflow: visible;
  transform: perspective(1000px) rotateX(var(--rx, 28deg)) rotateZ(var(--rz, 0deg));
  filter: drop-shadow(0 26px 32px rgba(var(--shadow), .34)) blur(var(--b, 0px));
  opacity: var(--o, 1);
}
.slab-lav  use { fill: url(#g-pastel); }
.slab-peri use { fill: url(#g-sage); }
.slab-deep use { fill: url(#g-olive); }
.slab-mid  use { fill: url(#g-moss); }

@media (prefers-color-scheme: dark) {
  .slab-lav  use { fill: url(#g-pastel-d); }
  .slab-peri use { fill: url(#g-sage-d); }
  .slab-deep use { fill: url(#g-olive-d); }
  .slab-mid  use { fill: url(#g-moss-d); }
}

.shape-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 1000px) {
  .slabs { top: 0; left: 0; width: 100%; height: 100%; margin: 0; }
  :root { --slab-scale: .83; }
}
/* On phones the text fills the middle, so keep only two shapes and push them
   into opposite corners rather than letting them sit behind the paragraph. */
@media (max-width: 700px) {
  :root { --slab-scale: .67; }
  .hero .slab-wrap { display: none; }
  .hero .slab-wrap:nth-child(1) { display: block; --l: 66% !important; --t: -15% !important; }
  .hero .slab-wrap:nth-child(2) { display: block; --l: -22% !important; --t: 82% !important; }
  .sequence .slab-wrap { opacity: .5; }
  /* inner pages: keep the right-hand leaf in the corner, clear of the lead text */
  .page-head .slab-wrap:nth-child(1) { --t: -55% !important; }
}

/* ---------- shared type ---------- */

.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--brand); margin: 0 0 1.75rem; font-weight: 700; }

.display { color: var(--ink); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; margin: 0; }
h1.display { font-size: clamp(2.5rem, 6.6vw, 4.75rem); max-width: 20ch; }
h2.display { font-size: clamp(1.75rem, 3.6vw, 2.6rem); max-width: 22ch; margin-bottom: 1.5rem; letter-spacing: -.03em; line-height: 1.12; }

.lead { font-size: clamp(1.05rem, 1.9vw, 1.18rem); color: var(--ink-2); max-width: var(--text); margin: 1.9rem 0 0; letter-spacing: -.01em; }

p { max-width: var(--text); margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

/* ---------- header ---------- */

.site-head { position: sticky; top: 0; z-index: 50; background: transparent; transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.site-head.is-stuck { background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 1.3rem; padding-bottom: 1.3rem; transition: padding .35s cubic-bezier(.22,.61,.36,1); }
.site-head.is-stuck .shell { padding-top: .8rem; padding-bottom: .8rem; }

.wordmark { display: inline-flex; align-items: baseline; gap: .55rem; }
.wordmark b { font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -.04em; }
.wordmark span { font-size: .64rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-3); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.9rem; flex-wrap: wrap; }
.nav a { font-size: .84rem; color: var(--ink-2); font-weight: 500; letter-spacing: -.01em; }
.nav a:hover { color: var(--brand); }
.nav a.is-current { color: var(--brand); font-weight: 700; }
.nav a.nav-cta { color: var(--ink); }

/* ---------- hero ---------- */

.hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 6rem 0 7rem; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero .eyebrow { max-width: none; }
.hero h1.display { max-width: 17ch; margin: 0 auto; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }
@media (max-width: 700px) { .hero { min-height: 0; padding: 3.5rem 0 4.5rem; } }

.actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface); color: var(--ink);
  padding: .95rem 1.8rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 10px 30px -14px rgba(var(--shadow), .5);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(var(--shadow), .55); background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn:hover { color: #12101f; } }
.btn-solid { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-solid { color: #12101f; } }
.btn-solid:hover { background: var(--accent); color: #fff; }

.btn-quiet { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.btn-quiet:hover { color: var(--brand); }

.scroll-cue { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 1; font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.scroll-cue:hover { color: var(--brand); }
.scroll-cue span { display: block; position: relative; width: 1px; height: 34px; background: var(--line); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: translateY(-100%); animation: cue 2.1s cubic-bezier(.6,.1,.3,1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ---------- sections ---------- */

section { position: relative; padding: 7rem 0; overflow: hidden; }
@media (max-width: 700px) { section { padding: 4.25rem 0; } }

.on-surface { background: var(--surface); }

/* A slab sliced flat by a section boundary reads as a mistake. Fade the ground
   back in over the last of the section so shapes dissolve into the seam. */
.hero::after,
#how-we-work::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 210px;
  background: linear-gradient(to bottom, rgba(var(--ground-rgb), 0), rgb(var(--ground-rgb)) 86%);
  z-index: 1; pointer-events: none;
}
.hero .hero-inner, .hero .scroll-cue, #how-we-work .shell { z-index: 2; }

.band { background: var(--band); }
.band .eyebrow { color: rgba(255,255,255,.62); }
.band .statement { font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; color: #fff; max-width: 22ch; margin: 0; }
.band .glyph { display: block; font-size: clamp(2.6rem, 6vw, 3.8rem); color: rgba(255,255,255,.32); line-height: 1; letter-spacing: .1em; margin-bottom: 1.75rem; }
.band .attrib { color: rgba(255,255,255,.72); font-size: 1.02rem; margin: 1.75rem 0 0; max-width: 34rem; }
.band .shell { position: relative; z-index: 1; }

/* card columns */
.cols { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-top: 3.25rem; position: relative; z-index: 1; }
.col { background: var(--surface); border-radius: 16px; padding: 2rem 1.85rem; transition: transform .25s ease, box-shadow .25s ease; }
.on-surface .col { background: var(--ground); }
.col:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(var(--shadow), .45); }
.col h3 { font-size: 1.16rem; font-weight: 700; color: var(--ink); margin: 0 0 .7rem; letter-spacing: -.025em; }
.col p { font-size: .95rem; margin: 0; max-width: none; }
.col .num { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--brand); }

/* a second, unfilled block inside a section -- separated by a rule, not a card */
.subsection { position: relative; z-index: 1; margin-top: 5.5rem; padding-top: 4.5rem; }
.subsection .lead { margin-top: 0; }
.pair { display: grid; gap: 2.5rem 4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 3rem; }
.pair h3 { font-size: 1.16rem; font-weight: 700; color: var(--ink); letter-spacing: -.025em; margin: 0 0 .7rem; }
.pair p { font-size: .98rem; margin: 0; max-width: none; }
@media (max-width: 700px) { .subsection { margin-top: 3.5rem; padding-top: 3rem; } }

/* stacked rows */
.rows { margin-top: 3rem; position: relative; z-index: 1; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1rem 3.5rem; padding: 2rem 0; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -.025em; }
.row p { font-size: .95rem; margin: 0; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: .4rem; padding: 1.6rem 0; } }

/* ---------- prose pages ---------- */

.page-head { position: relative; padding: 5.5rem 0 2.5rem; overflow: hidden; }
.page-head .shell { position: relative; z-index: 2; }
.page-head h1.display { font-size: clamp(2.2rem, 5.2vw, 3.4rem); max-width: 20ch; }
@media (max-width: 700px) { .page-head { padding: 3.5rem 0 1.75rem; } }

.prose { padding-bottom: 6rem; }
.prose h2 { font-size: 1.32rem; font-weight: 700; color: var(--ink); letter-spacing: -.028em; line-height: 1.25; margin: 3rem 0 1rem; max-width: 26ch; }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: var(--text); padding-left: 1.1rem; margin: 0 0 1.15rem; }
.prose li { margin-bottom: .6rem; }
.prose li::marker { color: var(--brand); }
.updated { font-size: .78rem; color: var(--ink-3); margin-top: 1.75rem; font-weight: 500; }

.detail-box { background: var(--surface); border-radius: 16px; padding: 1.9rem; max-width: var(--text); margin-top: 1.75rem; }
.detail-box dl { margin: 0; display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: .9rem 1.75rem; font-size: .95rem; }
.detail-box dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); font-weight: 700; padding-top: .3rem; }
.detail-box dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .detail-box dl { grid-template-columns: 1fr; gap: .2rem; } .detail-box dd { margin-bottom: 1rem; } }

address { font-style: normal; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); padding: 4rem 0 3.5rem; font-size: .92rem; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); font-weight: 700; margin: 0 0 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-grid a:hover { color: var(--brand); }
.legal-name { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: .55rem; letter-spacing: -.025em; }
.foot-base { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--hair); font-size: .82rem; color: var(--ink-3); }


/* ---------- scroll sequence ---------- */

.sequence { background: linear-gradient(to bottom, var(--band-top) 0, var(--band) 340px); padding: 0; overflow: visible; }
.sequence-stage { padding: 5rem 0; }
.sequence .panel { padding: 2.5rem 0; }
.sequence .panel + .panel { border-top: 1px solid rgba(255,255,255,.12); }
.sequence .eyebrow { color: rgba(255,255,255,.6); }
.sequence .statement { font-size: clamp(1.75rem, 4vw, 2.9rem); line-height: 1.14; letter-spacing: -.035em; font-weight: 600; color: #fff; max-width: 20ch; margin: 0; }
.sequence .attrib { color: rgba(255,255,255,.7); font-size: 1.02rem; margin: 1.5rem 0 0; max-width: 32rem; }
.sequence .glyph { display: block; font-size: clamp(2.4rem, 5.5vw, 3.6rem); color: rgba(255,255,255,.34); line-height: 1; letter-spacing: .1em; margin-bottom: 1.5rem; }
.sequence-dots { display: none; }

/* sticky, scroll-driven mode — only with script, only with motion allowed */
.js .sequence { height: 300vh; }
.js .sequence-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 0; }
.js .sequence-stage > .shell { position: relative; width: 100%; }
.js .sequence .panel { position: absolute; left: 2rem; right: 2rem; top: 50%; padding: 0; opacity: 0; will-change: opacity, transform; }
.js .sequence .panel + .panel { border-top: 0; }
.js .sequence-dots { display: flex; position: absolute; left: 50%; bottom: 3rem; transform: translateX(-50%); gap: .55rem; z-index: 2; }
.js .sequence-dots i { position: relative; display: block; width: 30px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.22); }
.js .sequence-dots i::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.9); transform: scaleX(var(--fill, 0)); transform-origin: left; }
@media (max-width: 600px) { .js .sequence .panel { left: 1.35rem; right: 1.35rem; } }

@media (prefers-reduced-motion: reduce) {
  .js .sequence { height: auto; }
  .js .sequence-stage { position: static; height: auto; display: block; padding: 5rem 0; }
  .js .sequence .panel { position: static; opacity: 1 !important; transform: none !important; padding: 2.5rem 0; left: auto; right: auto; }
  .js .sequence .panel + .panel { border-top: 1px solid rgba(255,255,255,.12); }
  .js .sequence-dots { display: none; }
}


/* If JS detects the sticky stage isn't actually pinning, fall back to plain
   stacked panels so no statement is ever left invisible. */
.js .sequence.no-sticky { height: auto; }
.js .sequence.no-sticky .sequence-stage { position: static; height: auto; display: block; padding: 5rem 0; overflow: visible; }
.js .sequence.no-sticky .panel { position: static; opacity: 1 !important; transform: none !important; visibility: visible !important; padding: 2.5rem 0; left: auto; right: auto; }
.js .sequence.no-sticky .panel + .panel { border-top: 1px solid rgba(255,255,255,.12); }
.js .sequence.no-sticky .sequence-dots { display: none; }



/* =====================================================================
   Polish pass: micro-interactions and small refinements.
   Everything here is progressive: without JS or with reduced motion the
   page is complete and static.
   ===================================================================== */

:root { --ease-out: cubic-bezier(.22,.61,.36,1); --ease-draw: cubic-bezier(.65,0,.35,1); --ease-rise: cubic-bezier(.19,1,.22,1); }

::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.display, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
section[id] { scroll-margin-top: 4.5rem; }

/* page-to-page: the header holds still while the content cross-fades */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-head { view-transition-name: site-head; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: var(--ease-out); }

/* ---------- header ---------- */

.nav { gap: 1.7rem; }
.nav a { position: relative; padding: .15rem 0; transition: color .2s ease; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a.nav-cta::after { transform: scaleX(1); }
.nav a.nav-cta:hover::after { animation: redraw .7s var(--ease-draw); }
@keyframes redraw {
  0%   { transform: scaleX(1); transform-origin: right; }
  45%  { transform: scaleX(0); transform-origin: right; }
  46%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
@media (max-width: 520px) {
  .wordmark span { display: none; }
  .nav { gap: 1.3rem; }
  .site-head .shell { gap: 1rem; }
}

/* ---------- buttons ---------- */

.arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }

/* ---------- hero: lines rise out of a mask ---------- */

.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; }
/* The observer watches the mask, not the text: text sitting fully below its own
   clipping mask counts as off-screen, so it would never be told to reveal. */
.js .hero-title .line[data-reveal] { opacity: 1; transform: none; }
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1.1s var(--ease-rise); }
.js .hero-title .line[data-delay="1"] > span { transition-delay: .12s; }
.js .hero-title .line[data-delay="2"] > span { transition-delay: .26s; }
.js .hero-title .line.is-in > span { transform: none; }

/* ---------- leaves: settle in on load, then breathe ---------- */

@keyframes leaf-in    { from { opacity: 0; scale: .86; rotate: -7deg; } }
@keyframes leaf-drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 1.6deg; } }
@keyframes leaf-fall  {
  0%   { opacity: 0; translate: 40px -260px; rotate: -38deg; }
  30%  { opacity: 1; }
  55%  { translate: -18px -70px; rotate: 10deg; }
  78%  { translate: 8px -14px; rotate: -4deg; }
  100% { translate: 0 0; rotate: 0deg; }
}

.slab { animation: leaf-drift var(--drift, 12s) ease-in-out var(--drift-delay, 0s) infinite; }
.hero .slab, .page-head .slab {
  animation:
    leaf-in 1.6s var(--ease-out) var(--in-delay, .1s) backwards,
    leaf-drift var(--drift, 12s) ease-in-out calc(1.8s + var(--drift-delay, 0s)) infinite;
}
.page-head .slab.leaf-fall {
  animation:
    leaf-fall 2.6s var(--ease-out) .2s backwards,
    leaf-drift 11s ease-in-out 2.9s infinite;
}
.slab-wrap:nth-child(1) { --drift: 13s;   --in-delay: .10s; --drift-delay: 0s; }
.slab-wrap:nth-child(2) { --drift: 11s;   --in-delay: .25s; --drift-delay: .6s; }
.slab-wrap:nth-child(3) { --drift: 14.5s; --in-delay: .40s; --drift-delay: 1.1s; }
.slab-wrap:nth-child(4) { --drift: 12s;   --in-delay: .20s; --drift-delay: .3s; }
.slab-wrap:nth-child(5) { --drift: 15s;   --in-delay: .55s; --drift-delay: 1.4s; }
.slab-wrap:nth-child(6) { --drift: 10.5s; --in-delay: .35s; --drift-delay: .9s; }

/* ---------- inner pages: shapes dissolve into the seam, as on the home page ---------- */

.page-head::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(to bottom, rgba(var(--ground-rgb), 0), rgb(var(--ground-rgb)) 88%);
  z-index: 1; pointer-events: none;
}

/* ---------- what we make: icons draw themselves in ---------- */

.col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.icon {
  width: 30px; height: 30px; flex: none;
  fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease-out);
}
.js .col[data-reveal] .icon path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-draw) .45s; }
.js .col[data-reveal].is-in .icon path { stroke-dashoffset: 0; }
.col:hover .icon { transform: translateY(-3px) rotate(-5deg); }
.col { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }

/* ---------- rules draw across as their section arrives ---------- */

.row::before, .subsection::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line); transform-origin: left;
}
.js .row[data-reveal]::before, .js .subsection::before { transform: scaleX(0); transition: transform 1.2s var(--ease-draw); }
.js .row[data-reveal].is-in::before, .js .subsection:has(> h2.is-in)::before { transform: scaleX(1); }
@supports not selector(:has(*)) { .js .subsection::before { transform: none; } }

/* ---------- footer links ---------- */

.foot-grid a, .foot-base a {
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1px; text-underline-offset: .25em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.foot-grid a:hover, .foot-base a:hover { color: var(--brand); text-decoration-color: currentColor; }

/* ---------- contact: copy the address ---------- */

.copy {
  margin-left: .65rem; vertical-align: .1em;
  font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  color: var(--brand); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: .15rem .75rem;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.copy:hover { border-color: var(--accent); }
.copy:active { transform: scale(.95); }
.copy.is-copied { background: var(--brand); border-color: var(--brand); color: var(--surface); animation: pop .35s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------- reduced motion: everything above rests ---------- */

@media (prefers-reduced-motion: reduce) {
  .slab, .hero .slab, .page-head .slab, .page-head .slab.leaf-fall { animation: none; }
  .js .hero-title .line > span { transform: none; transition: none; }
  .js .col[data-reveal] .icon path { stroke-dashoffset: 0; transition: none; }
  .js .row[data-reveal]::before, .js .subsection::before { transform: none; transition: none; }
  .nav a::after, .arrow, .icon, .site-head .shell { transition: none; }
  .nav a.nav-cta:hover::after, .copy.is-copied { animation: none; }
}


/* =====================================================================
   Apps section: app index, app overview, support and privacy pages.
   ===================================================================== */

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.more { margin: 2rem 0 0; position: relative; z-index: 1; }

/* breadcrumb + app tabs */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--ink-3); margin: 0 0 1.6rem; }
.crumbs a { transition: color .2s ease; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-hidden] { opacity: .55; }
.crumbs [aria-current] { color: var(--ink-2); }

.app-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.2rem; }
.app-nav a {
  font-size: .85rem; font-weight: 600; padding: .45rem 1.05rem; border-radius: 999px;
  color: var(--ink-2); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.app-nav a:hover { border-color: var(--accent); color: var(--brand); }
.app-nav a:active { transform: scale(.97); }
.app-nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--surface); }

/* app identity */
.app-hero { display: flex; align-items: center; gap: 1.5rem; }
.app-hero h1.display { margin: 0; }
.app-icon { display: block; flex: none; width: 104px; height: 104px; border-radius: 23%; overflow: hidden;
  box-shadow: 0 18px 36px -18px rgba(var(--shadow), .6), 0 0 0 1px rgba(var(--shadow), .08);
  transition: transform .45s var(--ease-out); }
.app-icon img { display: block; width: 100%; height: 100%; }
.app-tag { margin: .35rem 0 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
@media (max-width: 560px) { .app-hero { gap: 1.1rem; } .app-icon { width: 76px; height: 76px; } }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 600; padding: .32rem .85rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.pill-soon { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.pill-soon i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: soon 2.4s ease-out infinite; }
@keyframes soon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* apps index */
.app-cards { display: grid; gap: 1.25rem; }
.app-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.75rem; align-items: start;
  background: var(--surface); border-radius: 18px; padding: 2.1rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(var(--shadow), .5); }
.app-card:hover .app-icon { transform: rotate(-4deg) scale(1.03); }
.app-card h2 { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.app-card h2 a:hover { color: var(--brand); }
.app-card p { max-width: 40rem; }
.app-card .app-tag { margin-bottom: .9rem; }
.app-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.5rem; }
@media (max-width: 560px) { .app-card { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.6rem; } }

/* page sections for app pages */
.doc-section { padding: 5rem 0; overflow: visible; }
.doc-section.doc-first { padding-top: 1rem; }
@media (max-width: 700px) { .doc-section { padding: 3.5rem 0; } }
a.col { display: block; color: inherit; }
a.col:hover h3 { color: var(--brand); }
.quick { margin-top: 0; }
.quick .col-head { margin-bottom: .9rem; }

/* pricing */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 3rem; max-width: 60rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.9rem; }
.plan-pro { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-name { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.plan-name span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }

.ticks { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; font-size: .96rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .42em; width: .7rem; height: .38rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.privacy-callout { max-width: 40rem; }
.privacy-callout .display { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin: 0 0 1.2rem; }
.privacy-callout p { margin-bottom: 1.4rem; }
.summary-box { background: var(--surface); border-radius: 16px; padding: 1.6rem 1.9rem .9rem; max-width: var(--text); margin-bottom: 1rem; }
.summary-box .ticks { margin-top: 0; }

/* how-to guides and FAQ */
.accs { margin-top: 2.5rem; max-width: 48rem; position: relative; z-index: 1; }
.acc { border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.2rem 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
  transition: color .2s ease;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--brand); }
.chev { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .35s var(--ease-out); }
.chev::before, .chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; border-radius: 1px; }
.chev::after { transform: rotate(90deg); transition: transform .35s var(--ease-out); }
.acc summary:hover .chev { border-color: var(--accent); }
.acc[open] .chev { background: var(--brand); border-color: var(--brand); color: var(--surface); transform: rotate(180deg); }
.acc[open] .chev::after { transform: rotate(0deg); }
.acc-body { padding: 0 0 1.5rem; }
.acc-body p { font-size: .97rem; }
.acc:target summary { color: var(--brand); }

/* smooth open and close where the browser supports animating <details> */
@supports selector(::details-content) {
  .accs { interpolate-size: allow-keywords; }
  .acc::details-content { block-size: 0; overflow: clip; transition: block-size .42s var(--ease-out), content-visibility .42s allow-discrete; }
  .acc[open]::details-content { block-size: auto; }
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: 40rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: .9rem; font-size: .97rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .08rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .74rem; font-weight: 700; color: var(--brand); border: 1px solid var(--line); background: var(--surface); }
.on-surface .steps li::before { background: var(--ground); }
.tip { font-size: .9rem; color: var(--ink-3); margin: .3rem 0 0 2.5rem; }
.ui { font-weight: 700; color: var(--ink); }
.path { font-weight: 600; color: var(--ink); white-space: nowrap; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; padding: .08em .35em; border-radius: 5px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pill-soon i { animation: none; }
  .app-card, .app-icon, .chev, .chev::after { transition: none; }
  .acc::details-content { transition: none; }
}

/* narrow phones: four menu items still fit on one line */
@media (max-width: 400px) {
  .nav { gap: 1.05rem; }
  .nav a { font-size: .8rem; }
}

/* arrow links and card titles are navigation, not inline text links */
a.link-arrow { color: var(--brand); text-decoration: none; }
a.link-arrow:hover { color: var(--ink); }
.app-card h2 a { color: var(--ink); text-decoration: none; }
.doc-body { padding: 1rem 0 6rem; }

/* The page header ends on a fractional pixel, and the leaves' soft shadows show
   through that sliver as a hairline. The block below overlaps it by 2px in the
   page colour, so the seam is covered on every inner page. */
.page-head + .prose, .page-head + .doc-body, .page-head + .doc-section { position: relative; z-index: 1; margin-top: -2px; }
.page-head + .prose, .page-head + .doc-body, .page-head + .doc-section:not(.on-surface) { background: var(--ground); }

/* ---------- app overview: promo video beside the header ---------- */

.app-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem 4.5rem; }
.promo { margin: 0; width: 300px; justify-self: end; }
.promo-frame { position: relative; border-radius: 34px; overflow: hidden; background: #140d08;
  box-shadow: 0 44px 80px -38px rgba(var(--shadow), .75), 0 0 0 1px rgba(var(--shadow), .14); }
.promo-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; cursor: pointer; }
.promo figcaption { margin-top: .9rem; text-align: center; font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.promo-ctl { position: absolute; right: .75rem; bottom: .75rem; display: flex; gap: .45rem; }
.promo-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(20, 13, 8, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background .2s ease, transform .15s ease; }
.promo-btn:hover { background: rgba(20, 13, 8, .8); }
.promo-btn:active { transform: scale(.92); }
.promo-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promo-btn .i-play path:first-child, .promo-btn .i-muted path:first-child, .promo-btn .i-sound path:first-child { fill: currentColor; stroke-width: 1.2; }
.promo .i-pause, .promo.is-playing .i-play, .promo .i-sound, .promo.has-sound .i-muted { display: none; }
.promo.is-playing .i-pause, .promo.has-sound .i-sound { display: block; }
@media (max-width: 900px) {
  .app-head { grid-template-columns: minmax(0, 1fr); }
  .promo { justify-self: center; width: min(300px, 78vw); }
}

.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; }

/* ---------- app overview: screenshot strip ---------- */

.shots { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 1000px) and (min-width: 761px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 36rem; } }
.shots li { margin: 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 28px; background: #140d08;
  box-shadow: 0 32px 60px -36px rgba(var(--shadow), .7), 0 0 0 1px rgba(var(--shadow), .12);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.shots li:hover img { transform: translateY(-6px); box-shadow: 0 42px 70px -36px rgba(var(--shadow), .75), 0 0 0 1px rgba(var(--shadow), .12); }
.shots figcaption { margin-top: 1.15rem; font-size: .93rem; line-height: 1.55; color: var(--ink-2); }
.shots figcaption b { display: block; margin-bottom: .2rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 760px) {
  .shots { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 2.25rem -1.35rem 0; padding: .25rem 1.35rem 1.25rem; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { flex: 0 0 70%; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { .shots img { transition: none; } .shots li:hover img { transform: none; } }

/* ---------- app overview: iPhone + iPad pairing ---------- */

.duo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 3rem 4.5rem; margin-top: 6rem; position: relative; z-index: 1; }
.duo-title { font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 1.2rem; max-width: 18ch; }
.duo-text p { margin-bottom: 1.5rem; }
.duo-art { position: relative; padding: 0 9% 12% 0; }
.duo-ipad { display: block; width: 100%; height: auto; border-radius: 22px 22px 0 0; background: #140d08;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(var(--shadow), .12); }
.duo-iphone { position: absolute; right: 0; bottom: 0; width: 31%; height: auto; border-radius: 22px; background: #140d08;
  box-shadow: 0 34px 60px -30px rgba(var(--shadow), .8), 0 0 0 1px rgba(var(--shadow), .15), 0 0 0 7px var(--surface);
  transition: transform .5s var(--ease-out); }
.duo-art:hover .duo-iphone { transform: translateY(-8px) rotate(-1.5deg); }
@media (max-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr); margin-top: 4rem; }
  .duo-art { padding-right: 7%; }
}
@media (prefers-reduced-motion: reduce) { .duo-iphone { transition: none; } .duo-art:hover .duo-iphone { transform: none; } }

/* Small print (data attributions) */
.fine { margin-top: 2.5rem; max-width: 38rem; font-size: .82rem; line-height: 1.55; color: var(--ink-3); }
.fine a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.fine a:hover { color: var(--brand); }
