/* =========================================================================
   Karczewski Studio — visual system
   Warm paper / ruled lines / terra cotta. Editorial, calm, privacy-first.
   ========================================================================= */

:root {
  /* Paper & ink */
  --paper:        #F3EADB;   /* warm cream base */
  --paper-deep:   #ECE0CC;   /* slightly deeper panel */
  --paper-card:   #F8F2E7;   /* raised card */
  --ink:          #2A231C;   /* warm near-black */
  --ink-soft:     #5C5044;   /* muted brown text */
  --ink-faint:    #8C7E6C;   /* captions */

  /* Accents */
  --terra:        #BD5B3A;   /* terra cotta */
  --terra-deep:   #9E4628;   /* pressed / hover */
  --brown:        #8A5A3B;   /* warm brown */
  --clay:         #C8845B;   /* soft clay highlight */

  /* Lines */
  --rule:         rgba(120, 92, 64, 0.16);
  --rule-strong:  rgba(120, 92, 64, 0.30);
  --hairline:     rgba(42, 35, 28, 0.10);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --grotesk: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --line-gap: 34px;          /* ruled-paper line spacing */
  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ruled-paper backdrop: faint horizontal lines + warm vignette ------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, transparent calc(var(--line-gap) - 1px), var(--rule) calc(var(--line-gap) - 1px), var(--rule) var(--line-gap));
  background-size: 100% var(--line-gap);
  -webkit-mask-image: radial-gradient(140% 110% at 50% 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(140% 110% at 50% 0%, #000 55%, transparent 100%);
  opacity: 0.85;
}
/* subtle paper grain via layered radial speckle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(200,132,91,0.10), transparent 60%),
    radial-gradient(100% 70% at 0% 110%, rgba(138,90,59,0.08), transparent 55%);
}

main, header, footer { position: relative; z-index: 1; }

/* Film grain — subtle paper tooth over the whole page ---------------------- */
.grain-layer {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("assets/grain.svg");
  background-size: 180px 180px;
}

/* Terracotta text selection ----------------------------------------------- */
::selection { background: rgba(189, 91, 58, 0.22); color: var(--ink); }
::-moz-selection { background: rgba(189, 91, 58, 0.22); color: var(--ink); }

/* View Transition crossfade on language swap ------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.42s;
    animation-timing-function: var(--ease);
  }
}

/* Layout helpers ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(72px, 11vh, 140px) 0; }

.eyebrow {
  font-family: var(--grotesk);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--terra);
  opacity: 0.7;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
}
.section-head h2 em { font-style: italic; color: var(--terra); }
.section-head p {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  margin: 20px 0 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* Two-level "stacked" name lockup (the Argument Coach motif) --------------- */
.stack { display: inline-flex; flex-direction: column; line-height: 1; }
.stack .stack-pre {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.62em;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-left: 0.12em;
}
.stack .stack-main {
  font-family: var(--grotesk);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  --bg: var(--terra);
  --fg: #FBF4E9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 1px 0 rgba(42,35,28,0.04);
}
.btn:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(158,70,40,0.7); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { --bg: rgba(189,91,58,0.07); border-color: var(--terra); color: var(--ink); box-shadow: none; }

.btn svg { width: 18px; height: 18px; }

/* Security badge ---------------------------------------------------------- */
.secbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--grotesk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  background: rgba(248,242,231,0.6);
  white-space: nowrap;
}
.secbadge svg { width: 14px; height: 14px; color: var(--terra); flex: none; }

/* Reveal-on-scroll (only hidden when JS is present) ----------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================== HEADER / NAV ================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(243,234,219,0.92), rgba(243,234,219,0.62));
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
/* Wordmark */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .monogram {
  width: 48px; height: 48px; flex: none;
  --hole: var(--paper);
  display: block; position: relative;
}
.brand .monogram svg { width: 100%; height: 100%; display: block; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark .l1 { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--ink-soft); margin-bottom: 2px; }
.brand .wordmark .l2 {
  font-family: var(--grotesk); font-weight: 800; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.18em;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--grotesk);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--terra);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Language toggle */
.lang {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  overflow: hidden;
  font-family: var(--grotesk);
  background: rgba(248,242,231,0.5);
}
.lang button {
  appearance: none; border: none; background: transparent;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  padding: 7px 14px;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang button.active { color: #FBF4E9; background: var(--terra); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.3s var(--ease); }

/* =============================== HERO ==================================== */
.hero { padding-top: clamp(56px, 9vh, 110px); padding-bottom: clamp(64px, 10vh, 130px); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 26px 0 0;
}
.hero h1 .lede-small {
  display: block;
  font-style: italic;
  font-size: 0.42em;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin-bottom: 0.18em;
}
.hero h1 .accent { color: var(--terra); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px;
  font-family: var(--grotesk);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brown);
}
.hero-tag .lock { width: 16px; height: 16px; color: var(--terra); }
.hero p.intro {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Hero visual: stamped seal / device-free emblem */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.seal {
  width: min(380px, 78vw); aspect-ratio: 1; border-radius: 50%;
  position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(248,242,231,0.9), rgba(236,224,204,0.5) 70%);
  border: 1px solid var(--rule-strong);
  box-shadow: inset 0 0 0 10px rgba(248,242,231,0.4), 0 24px 60px -36px rgba(120,92,64,0.5);
}
.seal::before, .seal::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--rule);
}
.seal::before { inset: 22px; }
.seal::after { inset: 40px; border-style: dashed; border-color: var(--rule-strong); opacity: 0.6; }
.seal-core { text-align: center; z-index: 2; }
.seal-core .shield { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--terra); }
.seal-core .seal-glyph { width: 100px; height: 100px; margin: 0 auto 14px; display: block; --hole: var(--paper-card); }
.seal-core .seal-pre { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-soft); }
.seal-core .seal-main {
  font-family: var(--grotesk); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 19px; margin-top: 3px; white-space: nowrap;
}
.seal-core .seal-sub { margin-top: 16px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
/* rotating ring text */
.seal-ring { position: absolute; inset: 0; animation: spin 38s linear infinite; }
@media (prefers-reduced-motion: reduce) { .seal-ring { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-ring text { font-family: var(--grotesk); font-size: 8.2px; font-weight: 700; letter-spacing: 0.34em; fill: var(--brown); text-transform: uppercase; }

/* trust strip under hero */
.trust {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
  margin-top: clamp(40px, 7vh, 76px);
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.trust .t-item { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.trust .t-item svg { width: 17px; height: 17px; color: var(--terra); flex: none; }
.trust .t-sep { width: 1px; height: 16px; background: var(--rule-strong); }

/* =============================== ABOUT ================================== */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 3px;
  background: linear-gradient(160deg, var(--paper-deep), var(--paper-card));
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(120,92,64,0.7);
}
.portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  display: block;
}
.portrait-stamp {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 11px;
  background: rgba(243,234,219,0.86);
  backdrop-filter: blur(4px);
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  font-family: var(--grotesk); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown);
}
.portrait-stamp svg { width: 14px; height: 14px; color: var(--terra); }
.about-body p { color: var(--ink-soft); margin: 0 0 20px; text-wrap: pretty; }
.about-body p.first { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.4; color: var(--ink); }
.about-body p.first::first-letter { /* nothing */ }
.sign-block { margin-top: 30px; display: flex; flex-direction: column; gap: 2px; }
.sign-name { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--ink); line-height: 1.2; }
.sign-name span { display: block; font-family: var(--grotesk); font-style: normal; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-top: 7px; }

.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.value { padding-top: 18px; border-top: 2px solid var(--ink); }
.value h4 { font-family: var(--grotesk); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; margin: 0 0 6px; }
.value p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ============================= PORTFOLIO ================================ */
#portfolio { background:
    linear-gradient(to bottom, transparent, rgba(236,224,204,0.45) 12%, rgba(236,224,204,0.45) 88%, transparent);
}
.apps { display: grid; gap: 24px; }
.app-card {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.app-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--terra)); transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(120,92,64,0.65); border-color: var(--accent, var(--terra)); }
.app-card:hover::before { transform: scaleY(1); }

/* App icon (iOS squircle placeholder) */
.app-icon {
  width: 116px; height: 116px; flex: none;
  border-radius: 26px;
  display: grid; place-items: center;
  position: relative;
  color: #FBF4E9;
  box-shadow: 0 12px 26px -14px rgba(42,35,28,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  background: linear-gradient(160deg, var(--ic1), var(--ic2));
}
.app-icon { overflow: hidden; }
.app-icon svg { width: 54px; height: 54px; }
.app-icon img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; z-index: 1;
  transform: scale(1.045);
}
.app-icon .glyph { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; }

.app-meta .stack { margin-bottom: 14px; gap: 5px; }
.app-meta .stack .stack-pre { font-size: 15px; white-space: nowrap; line-height: 1.1; }
.app-meta .stack .stack-main { font-size: clamp(24px, 3vw, 33px); color: var(--ink); line-height: 1.05; }
.app-meta p { margin: 0 0 16px; color: var(--ink-soft); max-width: 50ch; text-wrap: pretty; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.app-tags .tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 4px 11px; border-radius: 100px;
  border: 1px solid var(--rule-strong);
  background: rgba(243,234,219,0.5);
}

.app-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
.app-side .secbadge { background: rgba(243,234,219,0.7); }
/* App Store button */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 10px;
  background: var(--ink); color: #F3EADB; text-decoration: none;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.appstore:hover { transform: translateY(-2px); background: #3A3028; }
.appstore svg { width: 22px; height: 22px; flex: none; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .as-txt small { font-size: 9.5px; letter-spacing: 0.04em; opacity: 0.85; }
.appstore .as-txt b { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Coming-soon variant — muted, non-interactive */
.appstore--soon {
  background: rgba(243,234,219,0.55);
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  cursor: default;
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
          backdrop-filter: blur(6px) saturate(1.1);
}
.appstore--soon:hover { transform: none; background: rgba(243,234,219,0.55); }
.appstore--soon svg { width: 18px; height: 18px; color: var(--terra); }
.appstore--soon .as-txt small { opacity: 1; color: var(--ink-faint); }
.appstore--soon .as-txt b { color: var(--ink); }

/* =============================== B2B ==================================== */
.b2b { position: relative; }
.b2b-panel {
  background: var(--ink);
  color: #EFE3D2;
  border-radius: 6px;
  padding: clamp(40px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}
.b2b-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to bottom, transparent calc(var(--line-gap) - 1px), rgba(243,234,219,0.06) calc(var(--line-gap) - 1px), rgba(243,234,219,0.06) var(--line-gap));
  background-size: 100% var(--line-gap);
}
.b2b-panel > * { position: relative; z-index: 1; }
.b2b-panel .eyebrow { color: var(--clay); }
.b2b-panel .eyebrow::before { background: var(--clay); }
.b2b-panel h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06;
  letter-spacing: -0.01em; margin: 18px 0 0; max-width: 18ch;
}
.b2b-panel h2 em { font-style: italic; color: var(--clay); }
.b2b-panel .b2b-lead { color: rgba(239,227,210,0.78); margin-top: 22px; max-width: 52ch; font-size: clamp(17px,1.6vw,20px); text-wrap: pretty; }
.b2b-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step .num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--clay); }
.step h4 { font-family: var(--grotesk); font-size: 16px; font-weight: 700; margin: 8px 0 6px; padding-top: 14px; border-top: 1px solid rgba(239,227,210,0.22); }
.step p { font-size: 13.5px; color: rgba(239,227,210,0.66); margin: 0; }
.b2b-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Two app types */
.b2b-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.type-card {
  border: 1px solid rgba(239,227,210,0.18); border-radius: 6px;
  padding: 26px 26px 24px; background: rgba(239,227,210,0.04);
}
.type-card .type-kicker {
  display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay);
}
.type-card .type-kicker .tk-num { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; }
.type-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.5vw, 28px);
  color: #F3E9D9; margin: 13px 0 11px; line-height: 1.1;
}
.type-card h3 em { font-style: italic; color: var(--clay); }
.type-card > p { color: rgba(239,227,210,0.76); font-size: 15px; line-height: 1.6; margin: 0 0 18px; text-wrap: pretty; }
.type-card ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid rgba(239,227,210,0.16); display: flex; flex-direction: column; gap: 12px; }
.type-card li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: rgba(239,227,210,0.84); line-height: 1.45; }
.type-card .tick { color: var(--clay); flex: none; margin-top: 1px; }
.type-card .tick svg { width: 15px; height: 15px; display: block; }

/* Honest message + tagline */
.b2b-note { margin-top: 36px; border-left: 2px solid var(--clay); padding: 4px 0 4px 24px; }
.b2b-note--pwa { margin-top: 20px; }
.b2b-note .note-tag { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.5vw, 28px); color: #F4EADA; margin: 0; line-height: 1.25; }
.b2b-note .note-body { color: rgba(239,227,210,0.74); font-size: 16px; line-height: 1.6; margin: 13px 0 0; max-width: 62ch; text-wrap: pretty; }
.b2b-cta .btn--ghost { --fg: #EFE3D2; border-color: rgba(239,227,210,0.3); }
.b2b-cta .btn--ghost:hover { --bg: rgba(239,227,210,0.08); border-color: var(--clay); color: #fff; }

/* ============================= CONTACT ================================= */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-left h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; margin: 18px 0 0;
}
.contact-left .lede { color: var(--ink-soft); margin-top: 20px; max-width: 38ch; text-wrap: pretty; }
.contact-channels { margin-top: 36px; display: grid; gap: 2px; }
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px; text-decoration: none; color: var(--ink);
  border-top: 1px solid var(--hairline);
  transition: padding-left 0.4s var(--ease), color 0.3s var(--ease);
}
.channel:last-child { border-bottom: 1px solid var(--hairline); }
.channel:hover { padding-left: 12px; color: var(--terra); }
.channel .ic { width: 40px; height: 40px; flex: none; border: 1px solid var(--rule-strong); border-radius: 50%; display: grid; place-items: center; }
.channel .ic svg { width: 18px; height: 18px; color: var(--terra); }
.channel .c-txt { display: flex; flex-direction: column; line-height: 1.3; }
.channel .c-txt small { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.channel .c-txt b { font-size: 17px; font-weight: 600; }
.channel .arrow { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: 0.4s var(--ease); color: var(--terra); }
.channel:hover .arrow { opacity: 1; transform: none; }
/* button rendered as a channel (click-to-reveal phone) */
button.channel--btn { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; }
button.channel--btn.revealed .arrow { opacity: 1; transform: none; }

/* Form */
.contact-form { background: var(--paper-card); border: 1px solid var(--rule-strong); border-radius: 5px; padding: clamp(26px, 3.5vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: var(--grotesk); font-size: 16px; color: var(--ink);
  background: rgba(243,234,219,0.5);
  border: 1px solid var(--rule-strong); border-radius: 3px;
  padding: 13px 14px; resize: vertical;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--terra); background: #fff;
  box-shadow: 0 0 0 3px rgba(189,91,58,0.12);
}
.field textarea { min-height: 120px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .priv { font-size: 12.5px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; max-width: 34ch; }
.form-foot .priv svg { width: 15px; height: 15px; color: var(--terra); flex: none; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--brown); display: none; }
.form-note.show { display: block; }

/* ============================== FOOTER ================================= */
.site-footer { padding: clamp(48px, 7vh, 88px) 0 40px; border-top: 1px solid var(--hairline); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-mark { display: flex; align-items: flex-start; gap: 16px; }
.footer-mark .fmark { width: 54px; height: 54px; flex: none; --hole: var(--paper); display: block; }
.footer-mark .fmark svg, .footer-mark .fmark { display: block; }
.footer-mark .l1 { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-soft); }
.footer-mark .l2 { font-family: var(--grotesk); font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; font-size: 22px; margin-top: 2px; }
.footer-mark .tag { margin-top: 14px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--terra); font-weight: 700; }
.footer-nav { display: flex; gap: 56px; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; position: relative; color: var(--ink-soft); text-decoration: none; font-size: 14px; margin-bottom: 9px; transition: color 0.2s var(--ease); width: fit-content; }
.footer-col a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--terra);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.footer-col a:hover { color: var(--terra); }
.footer-col a:hover::after { transform: scaleX(1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-faint); }

/* ============================ RESPONSIVE ============================== */
@media (max-width: 1080px) {
  .b2b-types { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; min-height: 280px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; }
  .b2b-steps { grid-template-columns: repeat(2, 1fr); }
  .b2b-types { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .app-card { grid-template-columns: 84px 1fr; }
  .app-icon { width: 84px; height: 84px; border-radius: 19px; }
  .app-icon svg { width: 40px; height: 40px; }
  .app-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; border-top: 1px solid var(--hairline); padding-top: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .b2b-steps { grid-template-columns: 1fr; }
  .footer-nav { gap: 32px; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: none; flex-direction: column;
  padding: 90px var(--pad) 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--serif); font-size: 30px; color: var(--ink); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.mobile-menu .close { position: absolute; top: 24px; right: var(--pad); background: none; border: none; font-size: 30px; cursor: pointer; color: var(--ink); }

/* =========================================================================
   HERO VARIANTS  (driven by body[data-hero])  +  app index visual
   ========================================================================= */

/* App-index alternate visual (hidden by default; shown in "index" variant) */
.hero-index { display: none; flex-direction: column; width: 100%; max-width: 420px; }
.hi-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.hi-label { font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terra); white-space: nowrap; }
.hi-rule { flex: 1; height: 1px; background: var(--rule-strong); }
.hi-list { list-style: none; margin: 0; padding: 0; }
.hi-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.4s var(--ease);
}
.hi-list li:hover { padding-left: 10px; }
.hi-num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-faint); }
.hi-name { font-family: var(--grotesk); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(18px, 2vw, 23px); }
.hi-cat { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.02em; }
.hi-foot { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--brown); }
.hi-foot svg { width: 15px; height: 15px; color: var(--terra); }

/* Decorative oversized backdrop wordmark (editorial variant) */
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }

/* ---- Variant: SEAL (default) — already styled by base rules ------------- */

/* ---- Variant: INDEX ---------------------------------------------------- */
body[data-hero="index"] .hero-visual { display: none; }
body[data-hero="index"] .hero-index { display: flex; }
body[data-hero="index"] .hero-grid { align-items: center; }

/* ---- Variant: EDITORIAL ------------------------------------------------ */
body[data-hero="editorial"] .hero-grid { grid-template-columns: 1fr; }
body[data-hero="editorial"] .hero-visual,
body[data-hero="editorial"] .hero-index { display: none; }
body[data-hero="editorial"] .hero { padding-top: clamp(40px, 7vh, 90px); }
body[data-hero="editorial"] .hero h1 {
  font-size: clamp(52px, 11vw, 150px);
  line-height: 0.92;
  max-width: 15ch;
}
body[data-hero="editorial"] .hero h1 .lede-small { font-size: 0.3em; max-width: none; }
body[data-hero="editorial"] .hero .intro { max-width: 60ch; font-size: clamp(18px, 1.7vw, 22px); }
body[data-hero="editorial"] .hero-text { display: grid; grid-template-columns: 1fr; }
/* place tagline + intro in a two-column band under the giant headline */
@media (min-width: 860px) {
  body[data-hero="editorial"] .hero-text { grid-template-columns: 1.6fr 1fr; column-gap: 64px; align-items: start; }
  body[data-hero="editorial"] .eyebrow { grid-column: 1 / -1; }
  body[data-hero="editorial"] .hero h1 { grid-column: 1 / -1; }
  body[data-hero="editorial"] .hero-tag { grid-column: 1; align-self: center; }
  body[data-hero="editorial"] .hero .intro { grid-row: 3; grid-column: 2; margin-top: 0; }
  body[data-hero="editorial"] .hero-cta { grid-column: 1 / -1; }
}

/* ---- Variant: CENTERED ------------------------------------------------- */
body[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
body[data-hero="centered"] .hero-visual,
body[data-hero="centered"] .hero-index { display: none; }
body[data-hero="centered"] .hero-text { max-width: 880px; display: flex; flex-direction: column; align-items: center; }
body[data-hero="centered"] .hero h1 { font-size: clamp(46px, 8vw, 96px); }
body[data-hero="centered"] .hero h1 .lede-small { margin-bottom: 0.24em; }
body[data-hero="centered"] .hero .intro { margin-left: auto; margin-right: auto; }
body[data-hero="centered"] .hero-cta { justify-content: center; }
body[data-hero="centered"] .trust { justify-content: center; }

/* ---- Ruled-lines toggle ------------------------------------------------ */
body.no-lines::before { background-image: none; }

/* =========================================================================
   LIQUID GLASS  — warm frosted material, specular edges, motion sheen
   ========================================================================= */

/* Header: warmer frosted glass + specular hairline */
.site-header {
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
          backdrop-filter: blur(16px) saturate(1.6);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.site-header.scrolled::after { opacity: 1; }

/* Language toggle + security badges: frosted */
.lang { -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.secbadge { -webkit-backdrop-filter: blur(7px) saturate(1.15); backdrop-filter: blur(7px) saturate(1.15); }

/* App cards: translucent glass over the ruled paper + cursor-tracking sheen */
.app-card {
  background: rgba(248,242,231,0.74);
  -webkit-backdrop-filter: blur(9px) saturate(1.18);
          backdrop-filter: blur(9px) saturate(1.18);
}
.app-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%),
              rgba(255,255,255,0.55), rgba(255,255,255,0) 60%);
  opacity: 0; transition: opacity 0.5s var(--ease); z-index: 3;
}
.app-card:hover::after { opacity: 0.9; }

/* App icons: Apple-style top gloss + crisp specular rim */
.app-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.12) 32%, rgba(255,255,255,0) 56%);
  z-index: 2;
}
.app-icon { isolation: isolate; }

/* Hero seal: faint backdrop refraction */
.seal { -webkit-backdrop-filter: blur(2px) saturate(1.1); backdrop-filter: blur(2px) saturate(1.1); }

/* Contact form: frosted panel */
.contact-form {
  background: rgba(248,242,231,0.7);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
          backdrop-filter: blur(10px) saturate(1.15);
}

/* Buttons: liquid sheen sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-18deg); pointer-events: none; opacity: 0;
}
.btn:hover::after { opacity: 1; animation: btnSheen 0.85s var(--ease); }
@keyframes btnSheen { from { left: -70%; } to { left: 130%; } }

/* B2B dark glass panel: specular top edge + soft inner glow */
.b2b-panel::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,238,220,0.35), transparent);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::after { animation: none; }
}

/* =========================================================================
   POLISH PASS — seal life, drawn monogram, section index, count-up,
   focus rings, back-to-top.  All within the warm-paper system.
   ========================================================================= */

/* ---- 1 · Seal: gentle breathing float + pause-on-hover ----------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .seal { animation: sealFloat 9s var(--ease) infinite; }
  .hero-visual:hover .seal-ring { animation-play-state: paused; }
}
@keyframes sealFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-0.4deg); }
}

/* ---- 2 · Monogram "signs itself" on first paint ------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .seal-glyph.predraw line:not([stroke-dasharray]) { stroke-dashoffset: 1; }
  .seal-glyph.predraw line[stroke-dasharray] { opacity: 0; }
  .seal-glyph.predraw circle { opacity: 0; }
  .seal-glyph.drawn line:not([stroke-dasharray]) {
    transition: stroke-dashoffset 0.62s var(--ease);
    stroke-dashoffset: 0;
  }
  .seal-glyph.drawn line:not([stroke-dasharray]):nth-of-type(2) { transition-delay: 0.28s; }
  .seal-glyph.drawn line:not([stroke-dasharray]):nth-of-type(3) { transition-delay: 0.42s; }
  .seal-glyph.drawn line[stroke-dasharray] { transition: opacity 0.5s ease 0.7s; opacity: 0.75; }
  .seal-glyph.drawn circle { transition: opacity 0.45s ease 0.78s, transform 0.45s var(--ease) 0.78s; opacity: 1; }
  .seal-glyph.predraw circle { transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
}

/* ---- 3 · Section index in the left margin ------------------------------ */
.section-index {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: none; flex-direction: column; gap: 18px;
  font-family: var(--grotesk);
}
.section-index a {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--ink-faint); transition: color 0.3s var(--ease);
}
.section-index .si-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums; width: 18px;
}
.section-index .si-tick {
  width: 22px; height: 1px; background: var(--rule-strong);
  transition: width 0.32s var(--ease), background 0.32s var(--ease);
}
.section-index .si-label {
  font-size: 12px; letter-spacing: 0.04em; font-weight: 600;
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.section-index a:hover { color: var(--ink-soft); }
.section-index a:hover .si-label { opacity: 1; transform: translateX(0); }
.section-index a.active { color: var(--terra); }
.section-index a.active .si-tick { width: 34px; background: var(--terra); }
.section-index a.active .si-num { color: var(--terra); }
.section-index a.active .si-label { opacity: 1; transform: translateX(0); }
@media (min-width: 1320px) { .section-index { display: flex; } }

/* ---- 4 · Count-up stat ------------------------------------------------- */
.t-item .count {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--terra);
}

/* ---- 5a · Terracotta focus rings --------------------------------------- */
:focus-visible {
  outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 3px;
}
.btn:focus-visible, .appstore:focus-visible { outline-offset: 4px; }

/* ---- 5b · Back-to-top wax button --------------------------------------- */
.to-top {
  position: fixed; right: clamp(18px, 3vw, 34px); bottom: clamp(18px, 3vw, 34px);
  z-index: 70; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--paper-card);
  color: var(--terra); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 14px 30px -16px rgba(120,92,64,0.55);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0.35s, border-color 0.25s, color 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { color: var(--terra-deep); border-color: var(--terra); transform: translateY(-2px) scale(1); }
.to-top svg { width: 18px; height: 18px; }

/* ---- 6 · Expandable app gallery (HALT Coach) --------------------------- */
.app-card[data-gallery] { cursor: pointer; }
.app-card[data-gallery] .app-gallery,
.app-card[data-gallery] a,
.app-card[data-gallery] .appstore { cursor: auto; }

/* "See the screens" affordance — replaces the dead hover feel with intent */
.preview-toggle {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 13px; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--accent, var(--terra));
  background: color-mix(in srgb, var(--accent, var(--terra)) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--terra)) 32%, transparent);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.preview-toggle:hover { background: color-mix(in srgb, var(--accent, var(--terra)) 16%, transparent); transform: translateY(-1px); }
.preview-toggle .pt-ic { width: 15px; height: 15px; flex: none; }
.preview-toggle .pt-chev { width: 15px; height: 15px; flex: none; transition: transform 0.4s var(--ease); }
.app-card.is-open .preview-toggle .pt-chev { transform: rotate(180deg); }
.app-card.is-open .preview-toggle .pt-label { content: none; }

/* The expanding panel — animates height via grid-template-rows 0fr -> 1fr */
.app-gallery {
  grid-column: 1 / -1;
  display: grid; grid-template-rows: 0fr;
  opacity: 0; margin-top: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.4s var(--ease), margin-top 0.55s var(--ease);
}
.app-card.is-open .app-gallery { grid-template-rows: 1fr; opacity: 1; margin-top: 24px; }
.app-gallery > .gallery-inner { overflow: hidden; min-height: 0; }
.gallery-inner {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding-top: 26px; border-top: 1px solid var(--hairline, rgba(120,92,64,0.18));
}

/* iPhone bezel */
.phone {
  width: 214px; flex: none; padding: 8px; border-radius: 44px;
  background: linear-gradient(155deg, #34343a 0%, #0c0c0e 42%, #131316 70%, #2a2a30 100%);
  box-shadow: 0 34px 64px -30px rgba(20,34,28,0.7),
              0 6px 16px -8px rgba(20,34,28,0.45),
              inset 0 0 0 1px rgba(255,255,255,0.07);
}
.phone-screen {
  position: relative; border-radius: 37px; overflow: hidden;
  aspect-ratio: 680 / 1477; background: #0c2520;
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.5);
}
.phone-shot { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s var(--ease); }

/* Caption side */
.gallery-side { max-width: 42ch; }
.gallery-kicker {
  display: inline-block; font-family: var(--grotesk); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent, var(--terra));
  margin-bottom: 10px; white-space: nowrap;
}
.gallery-side h4 { font-family: var(--grotesk); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); margin: 0 0 10px; line-height: 1.12; letter-spacing: -0.01em; }
.gallery-side p { color: var(--ink-soft); margin: 0 0 18px; text-wrap: pretty; }

.thumbs { display: flex; gap: 10px; }
.thumb {
  width: 48px; flex: none; aspect-ratio: 680 / 1477; padding: 0;
  border-radius: 11px; overflow: hidden; cursor: pointer;
  border: 1.5px solid var(--hairline, rgba(120,92,64,0.22)); background: #0c2520;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { transform: translateY(-2px); }
.thumb.is-active {
  border-color: var(--accent, var(--terra));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--terra)) 22%, transparent);
}
.gallery-note {
  display: block; margin-top: 14px; font-size: 12.5px; color: var(--ink-faint);
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .gallery-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .gallery-side { text-align: center; }
  .thumbs { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .app-gallery { transition: opacity 0.2s linear; }
}

