/* ───────────────────────────────────────────────────────────────────────────
   stonefoldstudio.com — one light, warm theme. There is no dark theme on
   purpose (owner, 2026-11-14): he asked for a site that is not the dull,
   washed-out, dark thing every AI builds. Every number here is written down
   in CLAUDE.md with the reason; re-measure contrast before changing a colour.
   ─────────────────────────────────────────────────────────────────────────── */

/* First rule, so there is never a white flash before the paper arrives. */
html, body { background: #F7F4EF; }

:root {
  --paper: #F7F4EF;
  --paper-2: #FFFFFF;
  --sand: #EDE8E0;
  --ink: #14110D;
  --ink-2: #57514A;      /* 7.0:1 on paper */
  --line: #DDD6CA;
  --accent: #E8622C;     /* fills and rules only */
  --accent-ink: #BE4312; /* orange as text on paper: 4.8:1 (plain accent is 3.0:1 and fails) */
  --on-accent: #14110D;  /* ink on the orange band: 7.5:1 (white would be 3.3:1) */

  --shell: 1200px;
  --gutter: 24px;

  /* Spacing on 4. */
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px;
  --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;

  /* Concentric corners: pill, inner image, card. */
  --r-pill: 12px; --r-inner: 14px; --r-card: 20px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Fonts: both self-hosted. A Google Fonts link would hand every visitor's
   IP to Google (LG München I, 20.01.2022, 3 O 17493/20). ──────────────── */
@font-face {
  font-family: 'Inter var';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* Polish and Turkish letters in the owner's and the city's names live here. */
  font-family: 'Inter var';
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  /* Oswald, the brand face — the same file the YouTube avatar and banner use. Variable, SIL OFL 1.1. */
  font-family: 'Oswald var';
  src: url('/assets/fonts/oswald-var.ttf') format('truetype-variations');
  font-weight: 200 700; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Inter var', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: var(--s4); top: -64px; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding: var(--s2) var(--s4); border-radius: var(--r-pill);
  transition: top .2s var(--ease);
}
.skip:focus { top: var(--s2); text-decoration: none; }

/* ── Display type: Oswald, only here. ─────────────────────────────────── */
.display {
  font-family: 'Oswald var', 'Inter var', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .92;
  text-wrap: balance;
}
h1.display { font-size: clamp(44px, 8.2vw, 124px); }
h2.display { font-size: clamp(30px, 4.2vw, 58px); letter-spacing: -.008em; }

.eyebrow {
  font-size: 12px; font-weight: 650; line-height: 1;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent-ink);
  margin-bottom: var(--s4);
}

.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-2); }
.lead strong { color: var(--ink); font-weight: 600; }
.section-lead { max-width: 62ch; color: var(--ink-2); margin-top: var(--s4); }

/* ── The signature: one rule that folds. ──────────────────────────────────
   The middle segment is 68px wide and turned 10.6°, so its far end sits
   68 × sin(10.6°) = 12.5px lower — which is exactly the right segment's
   offset. Change one number and all three change together. ───────────── */
.fold { display: flex; align-items: flex-start; height: 15px; }
.fold span { display: block; height: 2px; background: var(--accent); }
.fold span:nth-child(1) { flex: 1; }
.fold span:nth-child(2) { width: 68px; transform: rotate(10.6deg); transform-origin: left center; }
.fold span:nth-child(3) { flex: 1; margin-top: 12.5px; }

/* ── Bar ──────────────────────────────────────────────────────────────── */
#bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
#bar.stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.bar-inner { display: flex; align-items: center; gap: var(--s5); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; flex: none; }
.brand-text {
  font-family: 'Oswald var', sans-serif; font-weight: 600; font-size: 19px;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1;
}
.brand-thin { font-weight: 300; margin-left: .4em; color: var(--ink-2); }
.bar-links { display: flex; gap: var(--s4); }
.bar-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.bar-links a:hover { color: var(--ink); text-decoration: none; }
nav[aria-label="Sections"] { margin-left: auto; }

/* ── Buttons: ink-filled primary. White on orange is 3.3:1, so the accent
   is never a type colour on a button. ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  transition: transform .12s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2A241C; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn-small { padding: 9px 16px; font-size: 14px; background: var(--ink); color: var(--paper); }
.btn-small:hover { background: #2A241C; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding-block: clamp(64px, 8vw, 118px); }
.band { background: var(--sand); }

#hero { padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(48px, 6vw, 84px); }
#hero .fold { margin-block: clamp(28px, 4vw, 48px); }
.hero-grid {
  display: grid; gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.hero-side { display: flex; flex-direction: column; gap: var(--s4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.proof {
  font-size: 14px; color: var(--ink-2);
  padding-left: var(--s3); border-left: 2px solid var(--accent);
}

/* ── Numbers band: the accent as a surface, ink as the type. ──────────── */
#numbers { background: var(--accent); color: var(--on-accent); padding-block: clamp(40px, 5vw, 64px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.num {
  font-family: 'Oswald var', sans-serif; font-weight: 600;
  font-size: clamp(40px, 5.6vw, 76px); line-height: .9;
  font-variant-numeric: tabular-nums;
}
.stat dt { font-size: 13.5px; font-weight: 500; opacity: .82; }

/* ── Work ─────────────────────────────────────────────────────────────── */
#work h2 { margin-bottom: clamp(32px, 4vw, 56px); }

.feature {
  display: grid; gap: clamp(24px, 3.5vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 48px);
}
.feature-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); align-items: end; }
.feature-shots img {
  border-radius: var(--r-inner);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 17, 13, .05), 0 12px 28px -12px rgba(20, 17, 13, .18);
}
/* The middle screen stands a little taller — the one deliberate asymmetry. */
.feature-shots img:nth-child(2) { margin-bottom: 18px; }

.feature-text h3, .card h3 {
  font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.01em; line-height: 1.1;
  margin-top: var(--s2);
}
.sub { color: var(--ink-2); font-size: 15px; margin-bottom: var(--s4) !important; }
.feature-text > p:not(.sub):not(.status) { color: var(--ink-2); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--accent-ink); }
.status-soon { color: var(--ink-2); }
.status-dev { color: var(--ink-2); }

.meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s4); }
.meta li { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.meta li::before { content: ''; width: 10px; height: 2px; background: var(--accent); flex: none; }

.row-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(24px, 2.6vw, 40px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -22px rgba(20, 17, 13, .3); }
.card > p:not(.sub):not(.status) { color: var(--ink-2); }

/* ── Channels ─────────────────────────────────────────────────────────── */
#channels h2 { margin-bottom: var(--s2); }
.channels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s4); margin-top: clamp(32px, 4vw, 56px);
}
.chan {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s5) var(--s4) var(--s4);
  display: flex; flex-direction: column; gap: var(--s1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chan:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -22px rgba(20, 17, 13, .3); }
.chan h3 { font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.chan .handle { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.chan > p:not(.handle) { font-size: 14.5px; color: var(--ink-2); }
.link-arrow { margin-top: auto; padding-top: var(--s4); font-size: 14px; font-weight: 600; }
.link-arrow::after { content: ' →'; }

/* ── Studio ───────────────────────────────────────────────────────────── */
.studio-grid {
  display: grid; gap: clamp(32px, 4vw, 72px);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
}
#studio h2 { margin-bottom: var(--s4); }
#studio .lead { margin-bottom: var(--s4); }
#studio p:not(.lead):not(.eyebrow) { color: var(--ink-2); }
.facts {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(24px, 2.6vw, 36px);
}
.facts h3 {
  font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-ink); margin-bottom: var(--s4);
}
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); font-size: 14.5px; }
.facts dt { color: var(--ink-2); }
.facts dd { font-weight: 500; }

/* ── Elsewhere: type, not a row of other companies' logos. ───────────── */
.elsewhere { display: grid; margin-top: clamp(28px, 3.5vw, 48px); border-top: 1px solid var(--line); }
.elsewhere li { border-bottom: 1px solid var(--line); }
.elsewhere a {
  display: flex; align-items: baseline; gap: var(--s4);
  padding: var(--s4) var(--s1);
  color: var(--ink);
  transition: padding-left .2s var(--ease), background-color .2s var(--ease);
}
.elsewhere a:hover { text-decoration: none; padding-left: var(--s4); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.where {
  font-family: 'Oswald var', sans-serif; font-weight: 500; text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .01em; min-width: 42%;
}
.who { color: var(--ink-2); font-size: 14.5px; }
.elsewhere a::after { content: '→'; margin-left: auto; color: var(--accent-ink); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-inner h2 { margin-bottom: var(--s4); }
.big-mail {
  display: inline-block;
  font-family: 'Oswald var', sans-serif; font-weight: 500;
  font-size: clamp(22px, 3.4vw, 46px); letter-spacing: -.005em;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.big-mail:hover { text-decoration: none; color: var(--accent-ink); }
.contact-list {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4);
  margin-top: clamp(28px, 3.5vw, 48px); font-size: 14.5px; max-width: 520px;
}
.contact-list dt { color: var(--ink-2); }
#contact .fold { margin-top: clamp(40px, 5vw, 72px); }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { background: var(--ink); color: var(--paper); padding-block: var(--s7); }
.footer-inner { display: grid; gap: var(--s4); }
.credit {
  font-family: 'Oswald var', sans-serif; font-weight: 500; text-transform: uppercase;
  font-size: 18px; letter-spacing: .04em;
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.footer-links a { color: #E9E3D9; font-size: 14px; }
.note { color: #A8A096; font-size: 13.5px; max-width: 68ch; }

/* ── Entrance. The rest state is visible without JS: only an element the
   script has marked gets hidden, so a failed script leaves a readable
   page rather than an empty one. ─────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .34s var(--ease), transform .34s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
  .card:hover, .chan:hover { transform: none; }
  .skip { transition: none; }
}

/* ── Narrower screens ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid, .studio-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-shots { max-width: 480px; }
  .duo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s5); }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .bar-links { display: none; }
  .bar-inner { gap: var(--s3); }
  nav[aria-label="Sections"] { margin-left: auto; }
  .where { min-width: 0; }
  .elsewhere a { gap: var(--s3); flex-wrap: wrap; }

  /* Three phones side by side on a 375px screen are 100px wide and unreadable (measured in the pane).
     On narrow screens they become one swipeable row instead, each screen 68% of the viewport. */
  .feature-shots {
    display: flex; gap: var(--s2);
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .feature-shots::-webkit-scrollbar { display: none; }
  .feature-shots img { flex: 0 0 68%; scroll-snap-align: center; }
  .feature-shots img:nth-child(2) { margin-bottom: 0; }
  .facts dl, .contact-list { grid-template-columns: 1fr; gap: 2px var(--s4); }
  .facts dd, .contact-list dd { margin-bottom: var(--s2); }
}
