/* Kogasa Studio — sumi ink on grey washi.
   Layout: an ink-wash landscape header with the studio name written vertically over it,
   then the stamp book (one page and seal per app), the eight principles and contact. */

:root {
  --paper: #ECEBE6;
  --page: #F6F5F0;
  --ink: #1B1B1A;
  --ink-2: #3F3D39;
  --ink-3: #4A4843;
  --muted: #5D5B55;
  --faint: #9C998F;
  --line: #CFCDC5;
  --seal: #B8322A;
  --gold: #A9792A;

  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-brush: "Yuji Boku", "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --rail: 132px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* set by main.js while scrolling the header (px, 0 … header height) */
  --scroll: 0;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--seal); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 6px;
}
.skip:focus { top: 16px; }

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Seal (hanko) */
.seal {
  display: grid; place-items: center;
  background: var(--seal); color: var(--paper);
  font-family: var(--font-display); font-weight: 900; line-height: 1.05;
  writing-mode: vertical-rl;
  border-radius: 6px;
}
.seal--lg { width: 52px; height: 52px; font-size: 18px; box-shadow: 0 10px 24px -14px rgba(27, 27, 26, .6); }
.seal--md { width: 44px; height: 44px; font-size: 15px; border-radius: 5px; }
.seal--sm { width: 30px; height: 30px; font-size: 11px; border-radius: 4px; }
.seal--tilt { transform: rotate(-3deg); }

/* ───────────── Header ───────────── */

.hero {
  position: relative;
  overflow: clip;
  min-height: 780px;
  padding-bottom: 240px;
}

/* The painted layers (built by landscape.js): each is its own canvas, moved by the GPU
   for parallax. Mist drifts by CSS animation; rain and the walker live on the top canvas. */
.landscape { position: absolute; inset: 0; }
.landscape__layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-out;
  will-change: transform;
}
.landscape__layer canvas,
.landscape__live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.landscape__layer--fog canvas {
  left: -20%; width: 140%;
  animation: fog-drift 72s ease-in-out infinite alternate;
  will-change: transform;
}
.landscape__layer--fog:nth-child(4) canvas { animation-duration: 54s; animation-delay: -27s; }
/* each pine has its own canvas, bent from its base by the wind (landscape.js) */
.landscape__layer .landscape__tree { position: absolute; transform-origin: 50% 100%; will-change: transform; }
@keyframes fog-drift { from { transform: translateX(-8.5%); } to { transform: translateX(8.5%); } }
.landscape.is-ready .landscape__layer { opacity: 1; }

.hero__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-size: 384px 384px;
}
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  will-change: opacity;
  background: var(--paper);
  opacity: 0;
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(236, 235, 230, 0) 0%, var(--paper) 100%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

.tate {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding-top: 44px;
  will-change: transform, opacity;
}
.tate__text {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.25em;
}
.tate__text span { display: inline-block; }

.hero__content {
  min-width: 0;
  padding: 40px var(--gutter);
  display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px);
  will-change: transform, opacity;
}

/* Header scroll effects: the landscape layers drift at different speeds (--p), mist rolls in,
   and the text lifts away. Driven straight by the scroll position where the browser
   supports it, so they stay in step with scrolling; elsewhere main.js feeds --scroll. */
@keyframes parallax  { to { transform: translate3d(0, calc(1000px * var(--p, 0)), 0); } }
@keyframes mist-in   { from { opacity: 0; } to { opacity: .92; } }
@keyframes lift-tate { to { opacity: 0; transform: translateY(-41px); } }
@keyframes lift-copy { to { opacity: 0; transform: translateY(-88px); } }

@supports (animation-timeline: scroll()) {
  .landscape__layer { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0px 1000px; }
  .hero__veil       { animation: mist-in linear both;  animation-timeline: scroll(root); animation-range: 80px 760px; }
  .tate             { animation: lift-tate linear both; animation-timeline: scroll(root); animation-range: 0px 680px; }
  .hero__content    { animation: lift-copy linear both; animation-timeline: scroll(root); animation-range: 0px 520px; }
}
@supports not (animation-timeline: scroll()) {
  .landscape__layer { transform: translate3d(0, calc(var(--scroll) * var(--p, 0) * 1px), 0); }
  .hero__veil       { opacity: clamp(0, calc((var(--scroll) - 80) / 680 * 0.92), 0.92); }
  .tate             { opacity: clamp(0, calc(1 - var(--scroll) / 680), 1); transform: translateY(calc(var(--scroll) * -0.06px)); }
  .hero__content    { opacity: clamp(0, calc(1 - var(--scroll) / 520), 1); transform: translateY(calc(var(--scroll) * -0.17px)); }
}

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .01em;
  text-decoration: none;
}
.wordmark .seal { display: none; }
.brand { display: flex; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; min-width: 0; }
.brand__tagline {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-shadow: 0 0 6px rgba(236, 235, 230, .95), 0 0 14px rgba(236, 235, 230, .8);
}

.nav { display: flex; gap: 32px; flex-wrap: wrap; font-size: 15px; }
.nav a {
  text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease, color .2s;
}
.nav a:hover { background-size: 100% 1px; }

/* The copy sits in a patch of mist: a paper-coloured glow that quiets the mountains
   and rain behind it, plus a faint halo on the letters themselves. */
.hero__copy {
  position: relative;
  isolation: isolate;
  max-width: 560px;
  text-shadow: 0 0 1px rgba(236, 235, 230, 1), 0 0 8px rgba(236, 235, 230, .95), 0 0 18px rgba(236, 235, 230, .85), 0 0 32px rgba(236, 235, 230, .6);
}
.hero__copy::before {
  content: "";
  position: absolute;
  inset: -90px -140px -80px -110px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(236, 235, 230, .96) 0%, rgba(236, 235, 230, .88) 60%, rgba(236, 235, 230, 0) 100%);
  filter: blur(14px);
  pointer-events: none;
}
.hero h1 {
  margin: 0 0 22px;
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.lede { margin: 0 0 32px; font-size: 19px; font-weight: 500; line-height: 1.7; color: var(--ink); max-width: 36ch; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: rgba(236, 235, 230, .85);
  text-decoration: none; font-weight: 500;
  text-shadow: none;
  transition: background-color .25s, color .25s;
}
.button:hover { background: var(--ink); color: var(--paper); }

/* ───────────── Content ───────────── */

.content {
  padding: 0 var(--gutter) 72px calc(var(--rail) + var(--gutter));
}

.section-head {
  display: flex; flex-wrap: wrap; gap: 16px 56px; align-items: flex-end;
  margin-bottom: 44px;
}
.section-head > div { flex: 1 1 320px; }
.section-head h2 { margin: 10px 0 0; font-weight: 900; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; }
.section-head__text { flex: 1 1 320px; margin: 0; color: var(--ink-3); max-width: 46ch; }

/* After the rain: the colour painting behind the stamp book.
   main.js sets --colour from 0 (grey, as it enters) to 1 (full colour). */
.colour {
  --colour: 1;
  position: relative;
  margin-left: calc(-1 * (var(--rail) + var(--gutter)));
  margin-right: calc(-1 * var(--gutter));
  padding: 140px var(--gutter) 120px calc(var(--rail) + var(--gutter));
  scroll-margin-top: 0;
}
/* Two copies of the painting: a grey one underneath, and the colour one fading in over it.
   Only opacity changes while scrolling, which the GPU handles cheaply. */
.colour__grey,
.colour__paint {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  opacity: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 140px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 140px), transparent 100%);
}
.colour__paint { will-change: opacity; }
.colour__grey.is-ready { opacity: .5; }
.colour__paint.is-ready { opacity: var(--colour); }
.colour__inner { position: relative; }

.manifesto { max-width: 660px; margin-bottom: 104px; }
.manifesto .eyebrow { color: var(--ink-3); }
.manifesto h2 {
  margin: 14px 0 22px;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.manifesto p:last-child { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 44ch; }

.book { padding-block: 0 24px; }

/* The stamp book: loose sheets laid on the table, each slightly askew.
   A sheet straightens and lifts when you point at it. */
.sheet { margin: 0; }
.sheet .page {
  transform: rotate(var(--tilt, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.sheet:hover .page {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 2px 0 #CFCCC2, 0 36px 56px -30px rgba(27, 27, 26, .5);
}

/* Chapters: each page of the stamp book gets its own card, with the stamped sheet on the
   left. App chapters add what the app does, how to get it, and a few screens. */
.chapters { display: grid; gap: 40px; }
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: clamp(170px, 17vw, 220px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: rgba(246, 245, 240, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  border: 1px solid #D3D0C6;
  border-radius: 4px;
  box-shadow: 0 1px 0 #CFCCC2, 0 30px 60px -36px rgba(27, 27, 26, .45);
}
.chapter--app { grid-template-columns: clamp(170px, 17vw, 220px) minmax(0, 1fr) minmax(0, 1fr); }
/* sheets sit narrower inside a chapter card, so their brushwork and seals scale down */
.chapter .page { padding: 20px 16px; }
.chapter .page__title { font-size: clamp(28px, 2.6vw, 36px); }
.chapter .page__title--long { font-size: clamp(19px, 1.75vw, 24px); }
.chapter .page__date { font-size: 13px; }
.chapter .stamp { --size: clamp(60px, 6vw, 78px); }
.chapter .stamp--mark { --size: clamp(30px, 2.8vw, 36px); }
.chapter .stamp-outline { width: 70px; height: 70px; font-size: 34px; }
.chapter--next { background: rgba(243, 242, 236, .75); box-shadow: none; border-style: dashed; }
.chapter .eyebrow { color: var(--accent, var(--seal)); font-weight: 500; display: flex; align-items: baseline; gap: 10px; }
.chapter--next .eyebrow { color: var(--muted); }
.chapter__num { font-family: var(--font-brush); font-size: 20px; letter-spacing: 0; text-transform: none; line-height: 1; }
.chapter__title { margin: 12px 0 14px; font-weight: 900; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.chapter--next .chapter__title { color: var(--ink-3); }
.chapter__name { display: flex; align-items: center; gap: 16px; margin: 14px 0 18px; }
.chapter__name img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 22px -12px rgba(27, 27, 26, .55); }
.chapter__name h3 { margin: 0; font-weight: 900; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
.chapter__kind { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.chapter__pitch { margin: 0 0 20px; font-size: 18px; color: var(--ink-2); max-width: 44ch; }
.chapter__features { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.chapter__features li { position: relative; padding-left: 26px; color: var(--ink-3); max-width: 48ch; }
.chapter__features li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--gold); transform: rotate(45deg); opacity: .85;
}
.chapter__features strong { color: var(--ink); font-weight: 700; }
.chapter__platforms { margin: 0 0 24px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chapter__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 12px;
  background: var(--ink); color: var(--paper);
  opacity: .55;
  cursor: default;
}
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 17px; }
.store-badge small { font-weight: 400; font-size: 11px; letter-spacing: .02em; }
.chapter__link { font-weight: 500; text-decoration: none; }
.chapter__link:hover { text-decoration: underline; }

.chapter__phones {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding-block: 12px;
}
.phone {
  margin: 0;
  width: 38%;
  max-width: 230px;
  border-radius: clamp(22px, 3vw, 36px);
  padding: clamp(4px, .5vw, 7px);
  background: #141413;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 26px 46px -24px rgba(27, 27, 26, .6);
}
.phone img { width: 100%; height: auto; border-radius: clamp(18px, 2.5vw, 30px); }
.phone--left  { transform: translateX(18%) rotate(-6deg) scale(.88); z-index: 1; }
.phone--center { position: relative; z-index: 2; }
.phone--right { transform: translateX(-18%) rotate(6deg) scale(.88); z-index: 1; }

/* Pages */
.page {
  position: relative;
  overflow: hidden;
  aspect-ratio: 11 / 16;
  display: flex; flex-direction: row-reverse; justify-content: space-between;
  padding: 28px 22px;
  background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  border: 1px solid #D3D0C6;
  box-shadow: 0 1px 0 #CFCCC2, 0 22px 44px -26px rgba(27, 27, 26, .4);
}
.page::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 40%, rgba(27, 27, 26, 0) 70%, rgba(27, 27, 26, .05) 100%);
}

.page__wash { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--hue, transparent); opacity: .2; mix-blend-mode: multiply; }
.page__leafgold { position: absolute; inset: 0; width: 100%; height: 100%; fill: #C9A24B; opacity: .85; }
.page__title { position: relative; writing-mode: vertical-rl; font-family: var(--font-brush); font-size: 44px; line-height: 1; }
.page__title--long { font-size: 33px; }
.page__date { position: relative; writing-mode: vertical-rl; font-family: var(--font-display); font-size: 15px; color: var(--ink-3); }
.page__date--top { align-self: flex-start; }
.page__date--bottom { align-self: flex-end; }

/* Seals: real impressions, inked through the #hanko filter in index.html */
.stamp {
  position: absolute; left: var(--left, 50%); top: var(--top, 50%);
  width: var(--size, 96px); height: var(--size, 96px);
  color: var(--stamp, var(--seal));
  opacity: .92;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
}
.seal-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seal-svg text { font-family: var(--font-display); font-weight: 900; }
.stamp--mark { --stamp: var(--seal); opacity: .85; }

.page--blank { display: grid; place-items: center; background: #F3F2EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); box-shadow: none; }
.stamp-outline {
  width: 92px; height: 92px;
  display: grid; place-items: center;
  border: 2px dashed #B3B0A6; color: var(--faint);
  font-family: var(--font-display); font-size: 44px; line-height: 1;
}


.principles { margin-top: 88px; border-top: 1px solid var(--line); padding-block: 64px 72px; scroll-margin-top: 24px; }
.principles .section-head h2 { color: var(--ink); }

/* Each tenet: the saying written vertically in brush, its reading and meaning, then what we do. */
.tenets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.tenet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.tenet__saying {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-brush);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--hue, var(--ink));
}
.tenet__saying--long { font-size: 27px; }
.tenet__reading { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.tenet__reading span { font-style: italic; color: var(--hue, var(--ink)); font-weight: 500; }
.tenet h3 { margin: 0 0 8px; font-weight: 700; font-size: 23px; line-height: 1.35; }
.tenet__body > p:last-child { margin: 0; color: var(--ink-3); max-width: 46ch; }

.footer {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer__contact { display: flex; align-items: center; gap: 18px; }
.email { margin: 2px 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.email span { user-select: all; }
.copy {
  font: 500 13px var(--font-body);
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-3);
  cursor: pointer;
}
.copy:hover { border-color: var(--ink); color: var(--ink); }
.footer__meta { margin: 0; font-size: 14px; color: var(--muted); }

/* ───────────── Motion ───────────── */

@keyframes rise   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ink    { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes press {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(1.7) rotate(var(--r, 0deg)); }
  70%  { opacity: .92; transform: translate(-50%, -50%) scale(.96) rotate(var(--r, 0deg)); }
  100% { opacity: .88; transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); }
}

.rise   { animation: rise 1.3s var(--ease) both; }
.ink    { animation: ink 1.5s ease-out both; }
.d0 { animation-delay: 0s; } .d1 { animation-delay: .25s; } .d2 { animation-delay: .5s; }
.d3 { animation-delay: .75s; } .d4 { animation-delay: 1s; } .d5 { animation-delay: 1.25s; }


/* stamps wait for main.js to press them in as they scroll into view */
.js .stamp:not(.is-pressed) { opacity: 0; }
.js .stamp.is-pressed { animation: press .8s var(--ease) both; animation-delay: var(--delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  .rise, .ink, .js .stamp.is-pressed { animation: none; }
  .landscape__layer, .landscape__live { transition: none !important; }
  .landscape__layer, .hero__veil, .tate, .hero__content { animation: none !important; }
  .landscape__layer--fog canvas { animation: none; }
  .js .stamp:not(.is-pressed) { opacity: .92; }
  .tate, .hero__content { transform: none; }
  .tate, .hero__content { opacity: 1; }
  .hero__veil { opacity: 0; }
  .sheet .page, .sheet:hover .page { transform: none; transition: none; }
}

/* ───────────── Small screens ───────────── */

@media (max-width: 1180px) {
  .chapter--app { grid-template-columns: clamp(170px, 20vw, 220px) minmax(0, 1fr); }
  .chapter--app .chapter__phones { grid-column: 1 / -1; max-width: 640px; justify-self: center; width: 100%; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .tate { display: none; }
  .wordmark .seal { display: grid; }
  .content { padding-left: var(--gutter); }
  .colour { margin-left: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-top: 112px; }
  .manifesto { margin-bottom: 72px; }
  .chapter, .chapter--app { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chapter .sheet { width: min(220px, 62%); }
  .tenets { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 480px) {
  .hero { min-height: 700px; padding-bottom: 200px; }
  .hero__copy::before { inset: -56px -48px -56px -48px; }
  .nav { gap: 20px; }
  .email { font-size: 20px; }
}
