/* ==========================================================================
   Ranno Sootla — site.css
   Editorial system. Bone / ink / oxblood. Instrument Serif + Instrument Sans.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --paper:      #F6F3EC;
  --paper-2:    #EEE9DE;
  --paper-3:    #E4DED0;
  --ink:        #16150F;
  --ink-2:      #2E2C24;
  --muted:      #57544D;
  --muted-2:    #6E6B62;
  --rule:       rgba(22, 21, 15, .14);
  --rule-soft:  rgba(22, 21, 15, .08);
  --accent:     #6E2131;
  --accent-lit: #A63D50;
  --accent-soft: rgba(110, 33, 49, .09);

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans:  'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --gap: clamp(2rem, 4vw, 4rem);
  --maxw: 1280px;
  --measure: 34rem;

  --sec: clamp(5rem, 11vw, 10rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--paper); }

/* --- i18n --------------------------------------------------------------- */
html[lang="et"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="et"] { display: none !important; }

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: 1480px; }
.wrap--narrow { max-width: 60rem; }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.measure { max-width: var(--measure); }
.measure--wide { max-width: 44rem; }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2-off { grid-template-columns: 5fr 6fr; }
  .grid-side { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
}

/* --- Type --------------------------------------------------------------- */
.display,
h1.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; }

.d1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.75rem, 1.4rem + 6.2vw, 6rem);
  line-height: .96; letter-spacing: -.022em; text-wrap: balance;
}
.d2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  line-height: 1.02; letter-spacing: -.02em; text-wrap: balance;
}
.d3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.4rem);
  line-height: 1.12; letter-spacing: -.015em; text-wrap: balance;
}
.d4 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem);
  line-height: 1.2; letter-spacing: -.01em;
}
em, .ital { font-style: italic; }

.lead {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  line-height: 1.52; color: var(--ink-2); letter-spacing: -.005em;
}
.body-lg { font-size: clamp(1.05rem, 1rem + .3vw, 1.15rem); line-height: 1.72; }
.small { font-size: .875rem; line-height: 1.6; }
.muted { color: var(--muted); }

.eyebrow {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .2em; color: var(--accent);
}
.eyebrow--muted { color: var(--muted-2); }
.eyebrow-rule {
  display: flex; align-items: center; gap: 1rem;
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .2em; color: var(--muted-2);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.eyebrow-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.prose p + p { margin-top: 1.4em; }
.prose p { max-width: 38rem; }
.prose--flow p { max-width: none; }
.prose .d3, .prose .d4 { margin-top: 2.4em; margin-bottom: .7em; }
.prose .d3:first-child, .prose .d4:first-child { margin-top: 0; }
.lede-cap::first-letter {
  font-family: var(--serif); float: left; font-size: 4.1em; line-height: .78;
  padding: .06em .1em 0 0; color: var(--accent);
}

.link {
  color: inherit; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: .12em; transition: background-size .45s var(--ease), color .3s;
}
.link:hover { color: var(--accent); background-size: 0% 1px; background-position: 100% 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .55em; text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.link-arrow span:last-child { transition: transform .4s var(--ease); }
.link-arrow:hover span:last-child { transform: translateX(.35em); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.05em 1.9em; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--accent-lit); border-color: var(--accent-lit); color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(246,243,236,.4); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* --- Dark blocks -------------------------------------------------------- */
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: rgba(246,243,236,.74); }
.dark .lead { color: rgba(246,243,236,.92); }
.dark .small { color: rgba(246,243,236,.72); }
.dark .eyebrow { color: var(--accent-lit); }
.dark .eyebrow-rule { color: rgba(246,243,236,.5); }
.dark .eyebrow-rule::after { background: rgba(246,243,236,.2); }
.dark .rule { background: rgba(246,243,236,.16); }
.tint { background: var(--paper-2); }

.rule { height: 1px; background: var(--rule); border: 0; }

/* --- Photo treatment (duotone, unifies mixed source photography) --------- */
.ph { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.ph img,
.ph video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.07) brightness(1.03);
  transition: transform 1.6s var(--ease);
}
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(170deg, rgba(110,33,49,.30) 0%, rgba(22,21,15,.34) 100%);
  mix-blend-mode: multiply;
}
.ph--zoom:hover img { transform: scale(1.035); }
.ph--tall  { aspect-ratio: 3 / 4; }
.ph--port  { aspect-ratio: 4 / 5; }
.ph--vert  { aspect-ratio: 9 / 16; }
.ph--sq    { aspect-ratio: 1 / 1; }
.ph--land  { aspect-ratio: 3 / 2; }
.ph--wide  { aspect-ratio: 16 / 9; }
.figcap {
  margin-top: .9rem; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2);
}

/* Slot for footage/photography not yet shot */
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; text-align: center; padding: 2rem;
  border: 1px dashed rgba(246,243,236,.3); background: rgba(246,243,236,.04);
  color: rgba(246,243,236,.62);
}
/* An empty frame should read as empty — no duotone wash over it. */
.ph.slot { background: rgba(246,243,236,.04); }
.ph.slot::after { content: none; }
.slot__k { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.slot__t { font-family: var(--serif); font-size: 1.35rem; color: rgba(246,243,236,.9); }
.slot--paper { border-color: var(--rule); background: rgba(22,21,15,.02); color: var(--muted-2); }
.slot--paper .slot__t { color: var(--ink-2); }

/* --- Header ------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background .5s var(--ease), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1rem, 2vw, 1.5rem) var(--pad);
  max-width: 1480px; margin-inline: auto;
}
.hdr.is-stuck {
  background: rgba(246,243,236,.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--rule);
}
.hdr--over { color: var(--paper); }
.hdr--over.is-stuck { color: var(--ink); }

.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; }
.brand__n { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; }
.brand__d {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .55;
}
@media (max-width: 560px) { .brand__d { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.nav a {
  text-decoration: none; font-size: .8rem; font-weight: 500;
  letter-spacing: .05em; opacity: .78; transition: opacity .3s, color .3s;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.hdr--over .nav a:hover, .hdr--over .nav a[aria-current="page"] { color: #fff; opacity: 1; }
.hdr--over.is-stuck .nav a:hover { color: var(--accent); }
@media (max-width: 900px) { .nav { display: none; } }

.hdr__right { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); }

.lang {
  display: inline-flex; align-items: center; gap: .1rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
}
.lang button {
  background: none; border: 0; padding: .35rem .45rem; cursor: pointer;
  opacity: .45; letter-spacing: inherit; font-weight: inherit; font-size: inherit;
  transition: opacity .3s, color .3s;
}
.lang button:hover { opacity: .8; }
.lang button[aria-pressed="true"] { opacity: 1; color: var(--accent); }
.hdr--over .lang button[aria-pressed="true"] { color: #fff; }
.hdr--over.is-stuck .lang button[aria-pressed="true"] { color: var(--accent); }
.lang__sep { opacity: .28; }

.hdr .btn { padding: .8em 1.35em; font-size: .72rem; }
.hdr--over .btn--ghost { border-color: rgba(246,243,236,.42); color: var(--paper); }
.hdr--over .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hdr--over.is-stuck .btn--ghost { border-color: var(--ink); color: var(--ink); }
.hdr--over.is-stuck .btn--ghost:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 700px) { .hdr .btn { display: none; } }

.burger {
  display: none; width: 2.25rem; height: 2.25rem; background: none; border: 0;
  cursor: pointer; padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 50%; width: 1.25rem; height: 1px; background: currentColor;
  transform: translateX(-50%); transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: .85rem; }
.burger span:nth-child(2) { top: 1.35rem; }
@media (max-width: 900px) { .burger { display: block; } }
body.menu-open .burger span:nth-child(1) { top: 1.1rem; transform: translateX(-50%) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 1.1rem; transform: translateX(-50%) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; align-items: flex-start; }
.menu a {
  display: block; width: fit-content;
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.35;
  text-decoration: none; opacity: .85; transition: opacity .3s, color .3s;
}
.menu a:hover { color: var(--accent-lit); }
.menu__foot { margin-top: 2.5rem; font-size: .8rem; color: rgba(246,243,236,.5); }

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__grid { display: grid; min-height: 100svh; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 12vh, 8.5rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
  max-width: 46rem; margin-left: auto; width: 100%;
}
@media (min-width: 940px) {
  .hero__copy { padding-left: max(var(--pad), calc((100vw - 1480px) / 2 + var(--pad))); padding-right: clamp(2rem, 4vw, 4rem); }
}
.hero__h1 { font-size: clamp(2.4rem, 1.1rem + 4.6vw, 4rem); }
.hero__meta {
  display: flex; align-items: center; gap: .75rem; margin-bottom: clamp(1.25rem, 3vw, 1.9rem);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246,243,236,.72);
}
.hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent-lit); }
.hero__sub { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); max-width: 33rem; }
.hero__sub .lead { font-size: clamp(1.05rem, 1rem + .38vw, 1.2rem); }
.hero__cta { margin-top: clamp(1.75rem, 3vw, 2.25rem); }

.hero__ph { position: relative; min-height: 58svh; }
.hero__ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.1) brightness(1.02);
}
.hero__ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--ink) 0%, rgba(22,21,15,.55) 32%, rgba(22,21,15,0) 70%),
    linear-gradient(0deg, rgba(22,21,15,.75) 0%, rgba(110,33,49,.22) 60%, rgba(110,33,49,.28) 100%);
}
@media (max-width: 939px) {
  .hero__ph { min-height: 62svh; order: -1; }
  .hero__ph::after {
    background:
      linear-gradient(180deg, rgba(22,21,15,.55) 0%, rgba(22,21,15,.1) 35%, var(--ink) 96%),
      linear-gradient(0deg, rgba(110,33,49,.26), rgba(110,33,49,.26));
  }
  .hero__grid { min-height: 0; }
  .hero__copy { padding-top: clamp(2rem, 5vw, 3rem); }
}

.scroll-hint {
  position: absolute; bottom: 1.75rem; right: clamp(1.25rem, 3vw, 2.5rem);
  font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(246,243,236,.5); display: flex; flex-direction: column; align-items: center; gap: .6rem;
  z-index: 3;
}
.scroll-hint i { display: block; width: 1px; height: 2.5rem; background: linear-gradient(rgba(246,243,236,.55), transparent); }
@media (max-width: 939px), (max-height: 700px) { .scroll-hint { display: none; } }

/* --- Page head (inner pages) -------------------------------------------- */
.pagehead {
  padding-top: clamp(7.5rem, 15vh, 10.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.pagehead--dark { background: var(--ink); color: var(--paper); border-bottom-color: rgba(246,243,236,.14); }
.pagehead__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) {
  .pagehead__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
}

/* --- Ledger / stat strip ------------------------------------------------ */
.ledger { border-bottom: 1px solid var(--rule); }
.ledger__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .ledger__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2vw, 1.75rem);
  border-top: 1px solid var(--rule); border-right: 1px solid var(--rule);
}
.ledger__grid .stat:nth-child(2n) { border-right: 0; }
@media (min-width: 800px) {
  .ledger__grid .stat:nth-child(2n) { border-right: 1px solid var(--rule); }
  .ledger__grid .stat:last-child { border-right: 0; }
}
.stat__n {
  font-family: var(--serif); font-size: clamp(1.9rem, 1.1rem + 2.3vw, 3rem);
  line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stat__l {
  margin-top: .75rem; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); line-height: 1.5;
}
.ledger__foot {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--rule);
  font-size: .74rem; letter-spacing: .06em; color: var(--muted);
}

/* --- Doors -------------------------------------------------------------- */
.doors { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  background: var(--paper); padding: clamp(2.25rem, 4.5vw, 3.75rem);
  display: flex; flex-direction: column; gap: 1.25rem;
  text-decoration: none; position: relative; overflow: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
.door::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.door:hover { background: var(--ink); color: var(--paper); }
.door:hover::before { transform: scaleX(1); }
/* On work.html the doors are descriptive panels, not links — don't imply a click. */
div.door:hover { background: var(--paper); color: inherit; }
div.door:hover::before { transform: scaleX(0); }
div.door:hover .door__k { color: var(--accent); }
div.door:hover .door__b { color: var(--muted); }
.door:hover .door__k, .door:hover .door__b { color: rgba(246,243,236,.7); }
.door__k { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); transition: color .5s; }
.door__t { font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; }
.door__b { color: var(--muted); max-width: 30rem; transition: color .5s; }
.door__go { margin-top: auto; padding-top: 1.5rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: .6rem; }
.door__go i { display: block; width: 1.5rem; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.door:hover .door__go i { width: 2.75rem; }

/* --- Pillars ------------------------------------------------------------ */
.pillars { border-top: 1px solid var(--rule); }
.pillar {
  display: grid; gap: .5rem 2rem; align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 800px) {
  .pillar { grid-template-columns: 4rem minmax(0, 17rem) minmax(0, 1fr); }
}
.pillar__n {
  font-family: var(--serif); font-size: 1.05rem; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pillar__t { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; letter-spacing: -.015em; }
.pillar__b { color: var(--muted); }
.pillar--linky { transition: background .4s; }

.pillar-deep { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--rule); }
.pillar-deep:last-child { border-bottom: 0; }
.pillar-deep__head { display: flex; align-items: baseline; gap: 1.25rem; margin-bottom: 1.5rem; }
.pillar-deep__n { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block; padding: .4em .85em; border: 1px solid var(--rule);
  border-radius: 999px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.tag--accent { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent); }

/* --- Quote -------------------------------------------------------------- */
.pull {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3.1rem);
  line-height: 1.14; letter-spacing: -.018em; text-wrap: balance;
}
.pull--sm { font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.22; }
.pull__cite { margin-top: 1.5rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

/* --- Cards / notes ------------------------------------------------------ */
.cards { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--paper); padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: .9rem; text-decoration: none;
  transition: background .45s var(--ease);
}
.card:hover { background: var(--paper-2); }
.card__k { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.card__t { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.2; letter-spacing: -.012em; }
.card__b { color: var(--muted); font-size: .95rem; }
.card__go { margin-top: auto; padding-top: 1.25rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* --- Accordion (notes / faq) -------------------------------------------- */
.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0; color: inherit;
}
.acc__meta {
  display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: .55rem;
}
.acc__t {
  display: block; font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + .85vw, 1.8rem);
  line-height: 1.15; letter-spacing: -.015em; transition: color .3s;
}
.acc__sign { flex: none; width: 1.5rem; height: 1.5rem; position: relative; margin-top: .35rem; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .45s var(--ease), opacity .3s;
}
.acc__sign::before { width: .95rem; height: 1px; }
.acc__sign::after { width: 1px; height: .95rem; }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc__btn[aria-expanded="true"] .acc__t { color: var(--accent); }
.acc__panel { overflow: hidden; height: 0; transition: height .55s var(--ease); }
.acc__inner { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); max-width: 40rem; color: var(--ink-2); }
.acc__inner p + p { margin-top: 1.25em; }

/* --- Timeline ----------------------------------------------------------- */
.tl { border-top: 1px solid var(--rule); }
.tl__row {
  display: grid; gap: .35rem 2rem; padding: clamp(1.25rem, 2.4vw, 1.85rem) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) { .tl__row { grid-template-columns: 8rem minmax(0, 1fr) auto; align-items: baseline; } }
.tl__y { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl__t { font-weight: 500; }
.tl__v { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* --- Source panels (proof) ---------------------------------------------- */
.src {
  border: 1px solid var(--rule); padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1.1rem; background: var(--paper);
}
.src__h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.src__n { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.015em; }
.src__list { display: grid; gap: .7rem; }
.src__li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--rule-soft); font-size: .92rem; }
.src__li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.src__li span { color: var(--muted); }

/* --- Testimonial placeholders ------------------------------------------- */
.tmt {
  border: 1px dashed var(--rule); padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1rem; background: rgba(22,21,15,.015);
}
.tmt__q { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: var(--muted); }
.tmt__c { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.tmt__flag { align-self: flex-start; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); padding: .35em .7em; border-radius: 999px; }

/* --- Form --------------------------------------------------------------- */
.form { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.field { display: grid; gap: .6rem; }
.field label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: .85rem 0; font-size: 1.02rem; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .35s;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) center, calc(100% - 7px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem;
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); opacity: .65; }
.field__hint { font-size: .8rem; color: var(--muted-2); }
@media (min-width: 720px) { .form__two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.25rem); } }

/* The application form sits on an ink panel — the ink-on-paper rules and the
   dark select arrow are invisible there, so restate them for light-on-dark. */
.dark .field label { color: rgba(246,243,236,.62); }
.dark .field label .req { color: var(--accent-lit); }
.dark .field__hint { color: rgba(246,243,236,.48); }
.dark .field input,
.dark .field textarea,
.dark .field select {
  color: var(--paper); border-bottom-color: rgba(246,243,236,.28);
}
.dark .field select option { color: var(--ink); background: var(--paper); }
.dark .field select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(246,243,236,.7) 50%),
                    linear-gradient(135deg, rgba(246,243,236,.7) 50%, transparent 50%);
}
.dark .field input:focus,
.dark .field textarea:focus,
.dark .field select:focus { border-bottom-color: var(--accent-lit); }
.dark .field input::placeholder,
.dark .field textarea::placeholder { color: rgba(246,243,236,.4); }

.form__done {
  display: none; border: 1px solid var(--accent-soft); background: var(--accent-soft);
  padding: clamp(1.5rem, 3vw, 2.25rem); gap: .75rem; flex-direction: column;
}
.dark .form__done { border-color: rgba(246,243,236,.28); background: rgba(246,243,236,.06); }
.form__done.is-on { display: flex; }
.form.is-off { display: none; }

/* --- CTA band ----------------------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta__in { position: relative; z-index: 2; text-align: center; display: grid; gap: 1.5rem; justify-items: center; }

/* --- Footer ------------------------------------------------------------- */
.ftr { background: var(--ink); color: rgba(246,243,236,.7); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.ftr a { text-decoration: none; }
.ftr__grid { display: grid; gap: 2.5rem; }
@media (min-width: 780px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr__h { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,243,236,.42); margin-bottom: 1.1rem; }
.ftr__list { display: grid; gap: .6rem; font-size: .92rem; }
.ftr__list a:hover { color: var(--paper); }
.ftr__bar {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(246,243,236,.14);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  font-size: .74rem; color: rgba(246,243,236,.45);
}
.ftr .brand__n { color: var(--paper); }

/* --- Reveal ------------------------------------------------------------- */
[data-rv] { opacity: 0; transform: translateY(14px); }
.rv-on [data-rv] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-rv].is-in { opacity: 1; transform: none; }
[data-rv-d="1"] { transition-delay: .08s; }
[data-rv-d="2"] { transition-delay: .16s; }
[data-rv-d="3"] { transition-delay: .24s; }
[data-rv-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-rv] { opacity: 1; transform: none; }
}

/* --- Utilities ---------------------------------------------------------- */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack-sm { display: grid; gap: .75rem; }
.stack { display: grid; gap: 1.25rem; }
.stack-lg { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: clamp(2rem,4vw,3rem); }
.bleed-t { margin-top: clamp(2rem, 5vw, 4rem); }
.center { text-align: center; }
.pad-top-hdr { padding-top: clamp(7rem, 14vh, 10rem); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
