/* UsmanConnects — warm paper, ink, one red-orange accent; editorial serif headings over a Swiss grid */

:root {
  --paper: #F3F1EC;
  --paper-2: #EAE7E0;
  --ink: #151515;
  --ink-2: #4A4843;
  --ink-3: #75726B;
  --rule: #D3CFC6;
  --accent: #D9431E;
  --accent-ink: #B5340F; /* accent for text on paper, AA contrast */

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Progress + bar ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }

.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.bar.is-scrolled { border-bottom-color: var(--rule); }
.bar__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand__mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a, .foot__nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: color .2s, background-size .3s var(--ease); }
.nav a:hover, .foot__nav a:hover { color: var(--ink); background-size: 100% 1px; }
.bar__mail { font-size: 14px; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid var(--ink); transition: color .2s, border-color .2s; }
.bar__mail:hover { color: var(--accent-ink); border-color: var(--accent); }
.bar__mail--short { display: none; }

.textlink {
  display: inline-flex; gap: 6px; align-items: baseline;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--ink);
  transition: color .2s, border-color .2s;
}
.textlink span { transition: transform .25s var(--ease); }
.textlink:hover { color: var(--accent-ink); border-color: var(--accent); }
.textlink:hover span { transform: translateX(3px); }

.num, .eyebrow {
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.eyebrow { margin-bottom: 26px; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 7.6vw, 112px);
  line-height: .98; letter-spacing: -.02em;
  max-width: 20ch;
}
.hero__foot {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 48px; align-items: end;
}
.hero__lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: flex-end; }

.figures {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.figure { padding: 22px 24px 4px 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--rule); }
.figure dt b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.figure:first-child dt b { color: var(--accent-ink); }
.figure dd { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 24ch; }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0; border-top: 1px solid var(--rule); }
.grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 5vw, 80px); }
.section__head { align-self: start; position: sticky; top: 104px; }
.section__head .num, .work__head .num, .founder__text .num { margin-bottom: 18px; }
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.015em;
}
.section__head h2 { max-width: 11ch; }
.section__note { font-size: 15px; color: var(--ink-2); max-width: 30em; }

/* Two sides */
.sides__body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.side { border-top: 1px solid var(--ink); padding-top: 18px; }
.side__k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.side h3, .step h3 { font-size: 21px; letter-spacing: -.015em; font-weight: 700; margin-bottom: 8px; }
.side p, .step p { color: var(--ink-2); }
.focus { grid-column: 1 / -1; margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.focus__k { display: inline-block; margin-right: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

.link {
  grid-column: 1 / -1; margin-bottom: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 4.5vw, 56px) 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 0 clamp(16px, 2.4vw, 32px);
}
.link__node { display: grid; grid-template-columns: 16px auto; gap: 4px 14px; align-items: center; }
.link__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); grid-row: 1; }
.link__node--end .link__dot { background: var(--accent); }
.link__label { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.link__sub { grid-column: 2; font-size: 14px; color: var(--ink-2); }
.link__line { position: relative; height: 16px; margin-top: 6px; }
.link__rule { position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: var(--ink); transform-origin: left; }
.link__tag {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  background: var(--paper); padding: 3px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink);
}

/* Connector motion: a pulse leaves your company, lights the introduction, and lands at the buyer */
.link__dot { position: relative; }
.link__dot::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0; pointer-events: none;
}
.link__node .link__dot { color: var(--ink); }
.link__node--end .link__dot { color: var(--accent); }
.link__pulse {
  position: absolute; z-index: 1; top: 3px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(217, 67, 30, .14), 0 0 14px 2px rgba(217, 67, 30, .45);
  opacity: 0; pointer-events: none;
}
.link__pulse::before {
  content: ""; position: absolute; right: 5px; top: 3.5px; width: 64px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(217, 67, 30, 0), rgba(217, 67, 30, .55));
}
@keyframes travel {
  0%, 4%   { left: 0; opacity: 0; }
  7%       { opacity: 1; }
  40%      { left: calc(50% - 5px); opacity: 1; }
  44%, 56% { left: calc(50% - 5px); opacity: 0; }
  60%      { left: calc(50% - 5px); opacity: 1; }
  88%      { left: calc(100% - 10px); opacity: 1; }
  92%, 100% { left: calc(100% - 10px); opacity: 0; }
}
@keyframes tagLit {
  0%, 40%, 62%, 100% { background: var(--paper); color: var(--accent-ink); }
  45%, 56% { background: var(--accent); color: var(--paper); }
}
@keyframes rippleStart {
  0% { opacity: .7; transform: scale(1); }
  14%, 100% { opacity: 0; transform: scale(2.8); }
}
@keyframes rippleEnd {
  0%, 87% { opacity: 0; transform: scale(1); }
  88% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(3); }
}
.js .link.is-in .link__pulse { animation: travel 5s cubic-bezier(.45, 0, .25, 1) 1.3s infinite; }
.js .link.is-in .link__tag { animation: tagLit 5s ease 1.3s infinite; }
.js .link.is-in .link__node .link__dot::after { animation: rippleStart 5s ease-out 1.3s infinite; }
.js .link.is-in .link__node--end .link__dot::after { animation: rippleEnd 5s ease-out 1.3s infinite; }

/* How */
.steps { display: grid; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 4px 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__n { grid-row: span 2; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent-ink); }

/* Work */
.work__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.work__aside { display: flex; flex-direction: column; gap: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--ink-3); border-radius: 999px;
  padding: 13px 20px; cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .35s var(--ease);
}
.filters button:hover { border-color: var(--accent); color: var(--accent-ink); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.filters__n { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; opacity: .65; }

.stones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
.stone-cell { display: flex; }
.stone-cell.is-hidden { display: none; }
.stone {
  --i: 0;
  position: relative; flex: 1; display: flex; flex-direction: column; min-height: 320px;
  padding: 26px 26px 28px; background: var(--paper); color: inherit; text-decoration: none;
  box-shadow: 0 0 0 1px var(--rule); transition: background .2s, box-shadow .5s, transform .5s var(--ease);
}
.stone:focus-visible { outline-offset: -2px; }
.stone::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) calc(var(--i) * 60ms);
}
.stone > :not(.fx) { transition: opacity .6s ease calc(var(--i) * 60ms + 150ms), transform .6s var(--ease) calc(var(--i) * 60ms + 150ms); }
.js .stone > :not(.fx) { opacity: 0; transform: translateY(10px); }
.js .stone.is-in > :not(.fx) { opacity: 1; transform: none; }
.stone.is-in::before { transform: scaleX(1); }
.stone:hover { background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px rgba(20, 18, 14, .35); z-index: 2; }
.stone.tilt { transition: background .2s, box-shadow .5s; }

.stone__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 36px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stone__top span:first-child { white-space: nowrap; }
.stone__top .kind { text-align: right; color: var(--accent-ink); }
.stone__top .kind--sys { color: var(--ink-3); }
.stone__headline { font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -.015em; margin-bottom: 16px; max-width: 16ch; transition: color .25s, transform .5s var(--ease); }
.stone__figure { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.4vw, 60px); line-height: 1; letter-spacing: -.01em; margin-bottom: 8px; transition: color .25s, transform .5s var(--ease); }
.stone__measure { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.stone__context { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; margin-bottom: 24px; }
.stone__fig { margin-top: auto; margin-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.stone__fig b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); margin-right: 4px; }
.stone__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.stone__fig + .stone__foot { margin-top: 0; }
.stone__foot .client { font-weight: 600; }
.stone__foot .client span { font-weight: 400; color: var(--ink-3); }
.stone__foot .client span::before { content: " · "; }
.stone__foot .read { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .2s, letter-spacing .35s; }
.stone:hover .read { color: var(--accent-ink); letter-spacing: .22em; }
.stone:hover .stone__headline, .stone:hover .stone__figure { color: var(--accent-ink); transform: translateZ(24px); }
.stone--cta { background: var(--paper-2); }
.stone--cta .stone__figure { font-style: italic; }

/* Hover light: spotlight under the cursor, one sheen sweep, ripple on press (added by JS on mouse devices) */
.stone .fx { position: absolute; inset: 0; pointer-events: none; }
.stone .spot { opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 62%); mix-blend-mode: soft-light; }
.stone:hover .spot { opacity: 1; }
.stone .sheen { background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, .65) 50%, transparent 68%); transform: translateX(-130%); opacity: 0; }
.stone:hover .sheen { animation: sheen 1.1s var(--ease) forwards; }
@keyframes sheen { 0% { transform: translateX(-130%); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(130%); opacity: 0; } }
.stone .ripple {
  inset: auto; left: var(--rx); top: var(--ry); width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(217, 67, 30, .22), rgba(217, 67, 30, .08) 45%, rgba(217, 67, 30, 0) 70%);
  animation: ripple .75s var(--ease) forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(40); opacity: 0; } }

/* Story dialog: grows out of the tile that opened it */
.story {
  border: 0; padding: 0; background: var(--paper); color: var(--ink); max-width: 700px; width: calc(100% - 32px);
  max-height: calc(100% - 48px); margin: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(20, 18, 14, .28);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}
.story::backdrop { background: rgba(20, 18, 14, .45); backdrop-filter: blur(2px); }
.story[open] { animation: dlgIn .55s cubic-bezier(.2, .75, .15, 1); }
.story[open]::backdrop { animation: bdIn .5s ease; }
.story.closing { animation: dlgOut .3s cubic-bezier(.4, 0, .6, 1) forwards; }
.story.closing::backdrop { animation: bdOut .3s ease forwards; }
@keyframes dlgIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes dlgOut { to { opacity: 0; transform: scale(.6); } }
@keyframes bdIn { from { opacity: 0; } }
@keyframes bdOut { to { opacity: 0; } }
.story__in { padding: clamp(24px, 4vw, 44px); }
.story__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.story__head .num { color: var(--accent-ink); }
.story .close { font: 500 13px/1 var(--sans); color: var(--ink-2); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.story .close:hover { color: var(--ink); border-color: var(--ink-3); }
.story h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.01em; }
.story h3 span { color: var(--ink-3); }
.story h3 span::before { content: " · "; }
.story .figline { margin: 18px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(44px, 6vw, 64px); line-height: 1; }
.story .figline small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); }
.story section + section { margin-top: 20px; }
.story h4 { margin: 0 0 6px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.story section p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.story__cta { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-2); }
.story__cta .textlink { margin-left: 6px; color: var(--ink); }
.founder__photo figcaption .founder__in { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; align-self: center; }
.founder__in:hover { text-decoration: underline; }
.contact__promise { margin-top: 6px; color: var(--ink); }

/* Companion ring around the cursor (mouse devices only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%;
    border: 1.5px solid var(--accent); pointer-events: none; z-index: 1000; opacity: 0;
    transition: width .28s var(--ease), height .28s var(--ease), background .28s, opacity .3s, border-color .28s;
  }
  body.cursor-on .cursor { opacity: 1; }
  .cursor.is-hover { width: 46px; height: 46px; background: rgba(217, 67, 30, .07); border-color: rgba(217, 67, 30, .45); }
  .cursor.is-down { width: 30px; height: 30px; background: rgba(217, 67, 30, .16); }
}

/* Founder */
.founder { background: var(--paper-2); }
.founder__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 112px); align-items: center; }
.founder__photo { position: relative; }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.founder__photo:hover img { filter: grayscale(1) contrast(1.12); }
.founder__photo figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 15px; }
.founder__photo figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); align-self: center; }
.founder__text h2 { max-width: 14ch; margin-bottom: 28px; }
.founder__text p { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.founder__text p + p { margin-top: 16px; }
.founder__text .textlink { margin-top: 30px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), background-color .2s;
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq summary:hover::after, .faq summary:hover::before { background: var(--accent); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 40em; }

/* Contact */
.contact { padding: var(--sec) 0; border-top: 1px solid var(--rule); text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .num { margin-bottom: 26px; }
.contact__mail {
  font-family: var(--serif); font-size: clamp(34px, 6.4vw, 88px); line-height: 1.05; letter-spacing: -.02em;
  text-decoration: none; color: var(--ink); overflow-wrap: anywhere;
  padding-bottom: 6px;
  background: linear-gradient(var(--ink), var(--ink)) left 100% / 100% 1.5px no-repeat;
  transition: color .25s, background-size .45s var(--ease);
}
.contact__mail:hover { color: var(--accent-ink); background-image: linear-gradient(var(--accent), var(--accent)); }
.contact__note { margin-top: 24px; color: var(--ink-2); max-width: 30em; }

/* Footer */
.foot { padding: 26px 0; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--rule); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.foot__brand { display: inline-flex; align-items: center; gap: 8px; }
.foot__nav { display: flex; gap: 22px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; }
.js .hero .eyebrow { animation-delay: .05s; }
.js .hero .hero__title { animation-delay: .12s; }
.js .hero .hero__foot { animation-delay: .35s; }
.js .hero .figures { animation-delay: .55s; }
.js .link.is-in .link__rule { animation: draw 1.1s var(--ease) .2s both; }
.js .link .link__rule { transform: scaleX(0); }
.js .link.is-in .link__rule { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .link .link__rule, .js .link__line::before {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
  .js .link .link__pulse, .js .link .link__tag, .js .link .link__dot::after { animation: none !important; }
  .link__pulse { display: none; }
  .stone::before, .stone > :not(.fx), .textlink span, .contact__mail, .founder__photo img { transition: none; }
  .stone::before { transform: scaleX(1); }
  .js .stone > :not(.fx) { opacity: 1; transform: none; }
  .story[open], .story.closing, .story[open]::backdrop, .story.closing::backdrop { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .bar__mail { display: none; }
  .bar__mail--short { display: inline-block; }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .section__head { position: static; }
  .section__head h2 { max-width: 16ch; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__cta { justify-content: flex-start; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 18px; }
  .work__head { grid-template-columns: 1fr; }
  .stones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

@media (max-width: 720px) {
  .filters { flex-wrap: nowrap; gap: 6px; }
  .filters button { flex: 1 1 auto; justify-content: center; gap: 5px; padding: 11px 10px; font-size: 13px; white-space: nowrap; }
  .nav { display: none; }
  .bar__inner { justify-content: space-between; }
  .figure dt b { font-size: 40px; }
  .sides__body { grid-template-columns: 1fr; gap: 32px; }
  .focus { margin-top: 8px; }
  .link { grid-template-columns: 1fr; gap: 0; margin-bottom: 8px; }
  .link__line { height: 48px; width: 16px; margin-top: 0; }
  .link__rule { display: none; }
  .link__line::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1.5px; background: var(--ink); transform-origin: top; }
  .js .link.is-in .link__line::before { animation: grow .9s var(--ease) .2s both; }
  .link__line { height: 72px; }
  .link__tag { left: 28px; transform: translateY(-50%); white-space: nowrap; }
  .link__pulse { left: 3px; top: 0; }
  .link__pulse::before { right: 3.5px; top: auto; bottom: 5px; width: 3px; height: 40px; background: linear-gradient(180deg, rgba(217, 67, 30, 0), rgba(217, 67, 30, .55)); }
  @keyframes travelDown {
    0%, 4%   { top: 0; opacity: 0; }
    7%       { opacity: 1; }
    40%      { top: calc(50% - 5px); opacity: 1; }
    44%, 56% { top: calc(50% - 5px); opacity: 0; }
    60%      { top: calc(50% - 5px); opacity: 1; }
    88%      { top: calc(100% - 10px); opacity: 1; }
    92%, 100% { top: calc(100% - 10px); opacity: 0; }
  }
  .js .link.is-in .link__pulse { animation-name: travelDown; }
  .step { grid-template-columns: 48px 1fr; gap: 4px 16px; }
  .step__n { font-size: 34px; }
  .stones { grid-template-columns: 1fr; }
  .stone { min-height: 0; padding: 22px 20px 24px; }
  .stone__top { margin-bottom: 26px; }
  .founder__grid { grid-template-columns: 1fr; }
  .founder__photo { max-width: 340px; }
  .faq summary { font-size: 17px; }
  .foot__nav { display: none; }
  .contact__mail { font-size: 8vw; overflow-wrap: normal; }
}
