/* ── GEODECA design system ─────────────────────────────── */
:root {
  --ink: #17211C;
  --ink-2: #26332C;
  --paper: #F5F1E6;
  --paper-2: #ECE6D4;
  --sage: #A3C2B3;
  --orange: #A8501F;
  --orange-deep: #8A3F17;
  --line: rgba(23, 33, 28, .14);
  --muted: rgba(23, 33, 28, .55);
  --faint: rgba(23, 33, 28, .3);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Archivo", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

h1, h2 {
  font-weight: 550;
  font-stretch: 100%;
  line-height: 1.1;
  letter-spacing: -.018em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 16px; }
h1 em, h2 em { font-style: normal; color: inherit; }
h3 { font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }

/* reveal on scroll — only hides content once JS confirms it will un-hide it,
   so a blocked/broken script never leaves the page permanently blank */
.js-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
  .slide { transition: none !important; }
}

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  color: var(--paper);
  border-bottom: 1px solid rgba(245,241,230,.12);
}
.nav-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 600; font-stretch: 100%; font-size: 1.22rem; letter-spacing: .04em; }
.nav-brand .mark { width: 30px; height: 30px; align-self: center; }
.nav-brand small { font-family: var(--mono); font-weight: 400; font-size: .68rem; opacity: .7; letter-spacing: .06em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  opacity: .82; padding: 4px 0; border-bottom: 2px solid transparent; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; border-color: var(--sage); }
.nav-cta {
  font-family: var(--mono); font-weight: 500; font-size: .85rem; text-decoration: none;
  border: 1px solid rgba(245,241,230,.4); color: var(--paper); padding: 8px 16px; border-radius: 4px; transition: .2s;
}
.nav-cta:hover { background: var(--paper); color: var(--ink); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; }

/* ── hero ────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--paper); overflow: hidden; isolation: isolate; }
.slides { position: absolute; inset: 0; z-index: -3; background: #0f1612; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; will-change: opacity; }
.slide.on { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(15,22,18,.93) 22%, rgba(15,22,18,.62) 58%, rgba(15,22,18,.4)), linear-gradient(180deg, rgba(15,22,18,.15) 0%, rgba(15,22,18,.15) 55%, rgba(15,22,18,.85) 100%); }
.hero-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 140px 28px 120px; width: 100%; }
.kicker { font-size: .8rem; letter-spacing: .14em; color: var(--sage); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.blip { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(163,194,179,.5); animation: blip 2.6s infinite; }
@keyframes blip { 70% { box-shadow: 0 0 0 11px rgba(163,194,179,0); } 100% { box-shadow: 0 0 0 0 rgba(163,194,179,0); } }
.hero-sub { max-width: 560px; margin: 26px 0 34px; font-size: 1.12rem; color: rgba(245,241,230,.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; letter-spacing: .01em;
  padding: 14px 28px; border-radius: 4px; font-size: .98rem; transition: transform .18s, box-shadow .18s, background .18s;
  border: 0; cursor: pointer; font-family: var(--sans);
}
.btn-orange { background: var(--orange); color: #FBF7EC; box-shadow: 0 6px 18px rgba(23,33,28,.16); }
.btn-orange:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(245,241,230,.5); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 44px; margin-top: 58px; flex-wrap: wrap; }
.hero-stats div { display: flex; align-items: center; gap: 12px; }
.hero-stats strong { font-size: 2.2rem; font-weight: 500; font-stretch: 100%; color: var(--paper); line-height: 1; }
.hero-stats span { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(245,241,230,.75); line-height: 1.5; }
.slide-meta { position: absolute; z-index: 2; right: 28px; bottom: 46px; display: flex; align-items: center; gap: 16px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,241,230,.6); }
.slide-meta .cap { color: rgba(245,241,230,.85); }
.slide-meta .idx { color: rgba(245,241,230,.72); }
.slide-meta .ticks { display: flex; gap: 6px; }
.slide-meta .tick { width: 20px; height: 2px; background: rgba(245,241,230,.22); transition: background .3s ease; }
.slide-meta .tick.on { background: var(--sage); }
@media (max-width: 720px) { .slide-meta .cap { display: none; } }
.hero-ticker {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: rgba(15,22,18,.72); backdrop-filter: blur(6px); border-top: 1px solid rgba(245,241,230,.14);
  color: rgba(245,241,230,.7); overflow: hidden; font-size: .72rem; font-weight: 400; letter-spacing: .12em; padding: 10px 0;
}
.ticker-track { display: flex; white-space: nowrap; animation: tick 38s linear infinite; width: max-content; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── sections ────────────────────────────────────────── */
.section { padding: 110px 0; }
/* GEODECA's own plat drawing, lifted from their original header art, sits
   behind the light sections at low contrast so it reads as paper, not wallpaper */
.section-paper {
  background:
    linear-gradient(rgba(245,241,230,.88), rgba(236,230,212,.92)),
    url("/img/plat.jpg") center top / 1400px auto repeat;
}
.section-dark {
  background:
    linear-gradient(rgba(20,28,23,.93), rgba(20,28,23,.965)),
    url("/img/okmap_web.jpg") center / cover;
  color: var(--paper); position: relative; overflow: hidden;
}
.section-dark .wrap { position: relative; z-index: 2; }
.dark-topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.station { font-size: .72rem; letter-spacing: .18em; color: var(--muted); margin-bottom: 14px; }
.section-dark .station { color: rgba(163,194,179,.8); }
.lede { max-width: 620px; font-size: 1.15rem; color: color-mix(in srgb, currentColor 78%, transparent); margin-bottom: 54px; }

/* ── services ────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.svc {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 26px 24px; transition: transform .22s, box-shadow .22s;
}
.svc::before, .svc::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--faint);
  transition: .22s; opacity: 0;
}
.svc::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.svc::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(23,33,28,.12); }
.svc:hover::before, .svc:hover::after { opacity: 1; }
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.svc-head svg { width: 44px; height: 44px; color: var(--ink); flex: 0 0 auto; }
.svc ul { list-style: none; }
.svc li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.svc li:last-child { border-bottom: 0; }
.svc li::before { content: "·"; position: absolute; left: 6px; color: var(--faint); font-size: 1.1rem; line-height: 1.35; }
.svc-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }

/* ── company ─────────────────────────────────────────── */
.company-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: start; }
.company-copy p { margin-bottom: 18px; color: rgba(245,241,230,.85); max-width: 540px; }
.mission { border-left: 2px solid rgba(163,194,179,.55); padding: 14px 0 14px 22px; margin-top: 30px; font-size: 1.05rem; color: var(--paper); }
.mission span { display: block; margin-top: 8px; font-size: .74rem; color: var(--sage); letter-spacing: .08em; }
.polaroid { background: var(--paper); padding: 12px 12px 10px; border-radius: 4px; transform: rotate(1.6deg); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.polaroid img { border-radius: 2px; aspect-ratio: 4/3; object-fit: cover; }
.polaroid figcaption { color: var(--ink); font-size: .68rem; letter-spacing: .14em; padding-top: 9px; text-align: center; }
.affils { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.affils-label { font-size: .7rem; letter-spacing: .16em; color: var(--sage); margin-bottom: 4px; }
.affils a {
  font-size: .88rem; text-decoration: none; padding: 11px 16px; border: 1px solid rgba(245,241,230,.22);
  border-radius: 5px; transition: .2s; color: rgba(245,241,230,.85);
}
.affils a:hover { border-color: rgba(163,194,179,.6); color: var(--paper); transform: translateX(4px); }

/* ── team ────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.badge-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column;
}
.badge-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 20px 44px rgba(23,33,28,.14); }
.badge-top {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--sage); font-size: .68rem; letter-spacing: .14em; padding: 10px 18px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.badge-body { display: flex; gap: 18px; padding: 24px 22px 6px; }
.badge-body img {
  width: 108px; height: 148px; object-fit: cover; border-radius: 4px;
  border: 3px solid var(--paper-2); outline: 1px solid var(--line); flex: 0 0 auto;
  filter: saturate(.92); background: var(--paper-2);
}
.crew-icon { width: 108px; height: 148px; flex: 0 0 auto; display: grid; place-items: center; background: var(--paper-2); border-radius: 4px; }
.crew-icon svg { width: 60px; height: 60px; color: var(--ink); }
.role { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 14px; }
.spec div { margin-bottom: 9px; }
.spec dt { font-size: .62rem; letter-spacing: .12em; color: rgba(23,33,28,.5); }
.spec dd { font-size: .8rem; font-weight: 500; }
.badge-bio { padding: 16px 22px 26px; font-size: .95rem; color: rgba(23,33,28,.82); }

/* ── projects ────────────────────────────────────────── */
.proj-list { display: flex; flex-direction: column; }
.proj {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 10px; border-bottom: 1px dashed rgba(23,33,28,.25); transition: background .2s, padding .2s;
}
.proj:first-child { border-top: 1px dashed rgba(23,33,28,.25); }
.proj:hover { background: rgba(23,33,28,.04); padding-left: 20px; }
.proj-no { font-size: 1.4rem; font-weight: 500; color: var(--faint); }
.proj h3 { margin-bottom: 4px; }
.proj p { font-size: .95rem; color: rgba(23,33,28,.75); max-width: 620px; }
.proj-tag { font-size: .66rem; letter-spacing: .12em; color: rgba(23,33,28,.55); text-align: right; }

/* ── fan mail ────────────────────────────────────────── */
.mail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 50px; }
.letter {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 6px;
  padding: 40px 34px 30px; box-shadow: 0 24px 50px rgba(0,0,0,.35); transition: transform .22s;
}
.letter:nth-child(1) { transform: rotate(-.7deg); }
.letter:nth-child(2) { transform: rotate(.7deg); }
.letter:hover { transform: rotate(0) translateY(-6px); }
.letter blockquote { font-size: 1.06rem; line-height: 1.65; }
.letter mark { background: transparent; box-shadow: inset 0 -.55em 0 rgba(163,194,179,.4); padding: 0 2px; }
.letter figcaption { margin-top: 22px; font-size: .7rem; letter-spacing: .1em; color: rgba(23,33,28,.65); line-height: 1.7; }
.stamp { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; color: rgba(23,33,28,.4); transform: rotate(8deg); }
.mail-ps { margin-top: 38px; font-size: .8rem; letter-spacing: .08em; color: var(--sage); }

/* ── contact ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: stretch; }
.map-frame { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); min-height: 460px; box-shadow: 0 18px 40px rgba(23,33,28,.12); }
.map-frame iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.map-pin {
  position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: var(--paper);
  font-size: .72rem; letter-spacing: .1em; padding: 8px 14px; border-radius: 4px;
}
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px 32px; display: flex; flex-direction: column; gap: 8px; }
.contact-rows div { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.contact-rows dt { font-size: .68rem; letter-spacing: .14em; color: var(--muted); }
.contact-rows dd { font-size: .98rem; }
.contact-rows a { text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--faint); transition: .2s; }
.contact-rows a:hover { border-color: var(--ink); }
.quick-form { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.quick-form label { font-size: .66rem; letter-spacing: .14em; color: rgba(23,33,28,.6); margin-top: 8px; }
.quick-form input, .quick-form textarea {
  font-family: var(--sans); font-size: .95rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 5px; background: var(--paper); transition: border .2s; resize: vertical; width: 100%;
}
.quick-form input:focus, .quick-form textarea:focus { outline: none; border-color: var(--ink); }
.quick-form input:user-invalid, .quick-form textarea:user-invalid { border-color: #c0392b; }
.quick-form .btn { margin-top: 14px; }
.quick-form .btn:disabled { opacity: .65; cursor: default; transform: none; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qf-field { display: flex; flex-direction: column; }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; border: 0; padding: 0; }
.form-note { font-size: .66rem; letter-spacing: .06em; color: rgba(23,33,28,.55); text-align: center; }
.form-ok {
  display: none; align-items: flex-start; gap: 10px; margin-top: 4px;
  background: rgba(163,194,179,.16); border: 1px solid rgba(163,194,179,.55); border-radius: 5px;
  padding: 12px 14px; font-size: .85rem; color: var(--ink);
}
.form-ok.show { display: flex; }
.form-ok.is-error { background: rgba(192,57,43,.08); border-color: rgba(192,57,43,.4); }
.form-ok svg { flex: none; color: var(--orange-deep); margin-top: 2px; }
.form-ok.is-error svg { color: #c0392b; }
@media (max-width: 480px) { .qf-row { grid-template-columns: 1fr; } }

/* ── footer ──────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--paper); padding: 44px 0; border-top: 1px solid rgba(245,241,230,.14); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-nav a { text-decoration: none; color: rgba(245,241,230,.62); transition: .2s; }
.footer-nav a:hover { color: var(--paper); }
.footer-brand { font-weight: 600; font-stretch: 100%; font-size: 1.15rem; letter-spacing: .04em; }
.footer-brand span { font-family: var(--mono); font-weight: 400; font-size: .68rem; opacity: .7; margin-left: 8px; letter-spacing: .08em; }
.footer-fine { font-size: .68rem; letter-spacing: .1em; color: var(--sage); margin-top: 6px; }
.footer-joke { font-size: .7rem; letter-spacing: .06em; color: rgba(245,241,230,.5); }
.footer-copy { font-size: .7rem; letter-spacing: .08em; color: rgba(245,241,230,.6); }

/* ── radar intro ─────────────────────────────────────── */
@property --sw { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* hidden until JS confirms it can also take it away again — a broken script
   must never leave the site sitting behind a permanent cover */
.intro { display: none; }
.intro.ready {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; align-content: center;
  gap: 0; cursor: pointer;
  background:
    radial-gradient(120% 90% at 50% 42%, #EFE6D2 0%, #DCCFB2 46%, #C3B291 78%, #A99878 100%);
  transition: opacity .7s ease, visibility .7s;
}
.intro::after {                                   /* grain, so the field is not flat */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: 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='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
.intro.done { opacity: 0; visibility: hidden; }

.rdr { position: relative; width: min(46vmin, 340px); aspect-ratio: 1; display: grid; place-items: center; }
.rdr-rings, .rdr-rings::before, .rdr-rings::after {
  position: absolute; border-radius: 50%; border: 1px solid rgba(90,70,45,.16);
}
.rdr-rings { inset: 0; opacity: 0; animation: introFade .6s ease .35s forwards; }
.rdr-rings::before { content: ""; inset: 17%; }
.rdr-rings::after { content: ""; inset: 34%; }

.rdr-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
  opacity: 0; transform: scale(.2); animation: dotIn .5s cubic-bezier(.2,.9,.3,1.3) .3s forwards;
}
.rdr-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--orange);
  opacity: .5; animation: ping 2.4s ease-out .9s infinite;
}

.rdr-sweep {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: conic-gradient(from -90deg,
    rgba(168,80,31,.30) 0deg, rgba(168,80,31,.12) 30deg, rgba(168,80,31,0) 70deg, transparent 360deg);
  animation: introFade .3s ease .45s forwards, spin 1.3s linear .45s 2, introOut .4s ease 3.35s forwards;
}
.rdr-sweep::before {                              /* the leading beam itself */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(to top, rgba(168,80,31,0), rgba(168,80,31,.85));
  box-shadow: 0 0 12px rgba(168,80,31,.55);
}

/* a veil between the beam and the artwork, so pass one only ever hints */
.rdr-veil {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(233,223,201,.72) 0%, rgba(226,214,188,.55) 70%, rgba(219,205,175,.35) 100%);
  animation: introOut .35s ease 1.75s forwards;
}

.rdr-hint, .rdr-logo { position: absolute; inset: 4%; display: grid; place-items: center; }
.rdr-hint img, .rdr-logo img { width: 100%; height: auto; }

/* The reveal edge is a soft band rather than a hard cut. A hard stop makes the
   browser rasterise the conic mask in coarse steps, which reads as the logo
   appearing in quarters instead of being painted by the beam. */
.rdr-hint, .rdr-logo {
  -webkit-mask-image: conic-gradient(from -90deg, #000 0deg, #000 calc(var(--sw) - 22deg), rgba(0,0,0,.45) calc(var(--sw) - 9deg), transparent var(--sw), transparent 360deg);
  mask-image: conic-gradient(from -90deg, #000 0deg, #000 calc(var(--sw) - 22deg), rgba(0,0,0,.45) calc(var(--sw) - 9deg), transparent var(--sw), transparent 360deg);
}
.rdr-hint { opacity: .55; animation: reveal 1.3s linear .45s forwards, introOut .3s ease 1.75s forwards; }
/* maskOff runs the sweep angle past 360° once the paint-on finishes, otherwise
   the soft trailing edge of the mask leaves a permanently faded wedge at 9 o'clock */
.rdr-logo {
  opacity: 0;
  animation: introFade .01s linear 2.05s forwards, reveal 1.3s linear 2.05s forwards,
             maskOff .01s linear 3.4s forwards;
}

.no-houdini .rdr-hint { -webkit-mask-image: none; mask-image: none; animation: introFadeSoft .8s ease .45s forwards, introOut .3s ease 1.75s forwards; }
.no-houdini .rdr-logo { -webkit-mask-image: none; mask-image: none; animation: introFadeSoft .8s ease 2.05s forwards; }

/* type on: each line is a left-aligned box that widens in character steps,
   inside a max-content wrapper so the finished lockup still sits centred */
.rdr-word { margin-top: 36px; width: max-content; margin-left: auto; margin-right: auto; }
.rdr-word b, .rdr-word i {
  display: block; overflow: hidden; white-space: nowrap; width: 0;
  font-style: normal; color: #2A2117;
}
.rdr-word b {
  font-weight: 550; font-size: clamp(1.5rem, 5vw, 2.3rem); letter-spacing: .14em;
  border-right: 2px solid transparent;
  animation: type .55s steps(8) 4.75s forwards, caretDark .01s linear 4.75s forwards, caretOff .01s linear 6.05s forwards;
}
.rdr-word i {
  font-family: var(--mono); font-size: clamp(.58rem, 1.7vw, .76rem); letter-spacing: .3em;
  margin-top: 10px; color: #5A4B36; border-right: 2px solid transparent;
  animation: type .75s steps(22) 5.3s forwards, caretOn .01s linear 5.3s forwards, caretOff .01s linear 6.05s forwards;
}
.rdr-tag {
  margin-top: 22px; font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; color: #6B5B44;
  opacity: 0; animation: introFadeSoft .5s ease 6.15s forwards;
}

@keyframes reveal { to { --sw: 360deg; } }
@keyframes maskOff { to { --sw: 420deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introFadeSoft { from { opacity: 0; } to { opacity: 1; } }
@keyframes introOut { to { opacity: 0; } }
@keyframes dotIn { to { opacity: 1; transform: scale(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes type { to { width: 100%; } }
@keyframes caretOn { to { border-right-color: rgba(90,75,54,.7); } }
@keyframes caretDark { to { border-right-color: rgba(42,33,23,.7); } }
@keyframes caretOff { to { border-right-color: transparent; } }

/* the page itself fades up as the intro lifts, rather than being revealed
   fully formed underneath it. Applied by JS only, so no-JS is unaffected. */
.intro-active .nav, .intro-active .hero, .intro-active .section, .intro-active .footer { opacity: 0; }
.nav, .hero, .section, .footer { transition: opacity .9s ease; }

@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ── subpage header ──────────────────────────────────── */
.page-head { padding: 150px 0 54px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 16ch; }
.page-head .lede { margin: 18px 0 0; }
.crumb { font-size: .72rem; letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--faint); }
.crumb a:hover { border-color: var(--ink); }

/* ── home summaries ──────────────────────────────────── */
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sum {
  background: var(--paper); padding: 34px 30px 30px; display: flex; flex-direction: column;
  text-decoration: none; transition: background .2s;
}
.sum:hover { background: #fff; }
.sum h3 { margin-bottom: 10px; }
.sum p { font-size: .96rem; color: var(--muted); margin-bottom: 20px; }
.sum-go { margin-top: auto; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sum-go::after { content: "→"; transition: transform .2s; }
.sum:hover .sum-go::after { transform: translateX(4px); }
.sum-n { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--faint); margin-bottom: 12px; }

/* ── pager ───────────────────────────────────────────── */
.pager { border-top: 1px solid var(--line); margin-top: 70px; padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; max-width: 46%; }
.pager .lbl { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--muted); }
.pager .ttl { font-size: 1.1rem; font-weight: 550; }
.pager a:hover .ttl { text-decoration: underline; text-underline-offset: 4px; }
.pager .next { text-align: right; margin-left: auto; align-items: flex-end; }

/* ── person profile ──────────────────────────────────── */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.profile-photo { border-radius: 6px; border: 1px solid var(--line); background: var(--paper-2); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 20px; margin-top: 18px; }
.profile-card dl div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.profile-card dl div:last-child { border-bottom: 0; }
.profile-card dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; color: var(--muted); }
.profile-card dd { font-size: .92rem; }
.profile-card dd a { text-decoration: none; border-bottom: 1px solid var(--faint); }
.profile-card dd a:hover { border-color: var(--ink); }
.profile-card .btn { width: 100%; text-align: center; margin-top: 16px; }
.vcf-note { font-size: .72rem; color: var(--muted); margin-top: 10px; text-align: center; }
.cred { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; list-style: none; }
.cred li { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 3px; padding: 6px 11px; color: var(--muted); }
.profile-body p { margin-bottom: 16px; max-width: 62ch; }
.profile-body h2 { margin-top: 38px; }
.does { list-style: none; columns: 2; column-gap: 34px; max-width: 62ch; }
.does li { padding: 7px 0 7px 18px; position: relative; font-size: .95rem; break-inside: avoid; border-bottom: 1px dashed var(--line); }
.does li::before { content: "·"; position: absolute; left: 4px; color: var(--faint); font-size: 1.1rem; line-height: 1.3; }

/* ── project record ──────────────────────────────────── */
.client { margin-bottom: 44px; }
.client h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.client-meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.client ul { list-style: none; }
.client li { padding: 10px 0 10px 20px; position: relative; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.client li:last-child { border-bottom: 0; }
.client li::before { content: "·"; position: absolute; left: 5px; color: var(--faint); font-size: 1.1rem; line-height: 1.4; }
.client li b { font-weight: 600; }
.client li span { color: var(--muted); }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
  .company-grid, .mail-grid, .contact-grid, .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 300px; }
  .does { columns: 1; }
  .page-head { padding: 128px 0 44px; }
  .company-side { max-width: 460px; }
  .proj { grid-template-columns: 48px 1fr; }
  .proj-tag { grid-column: 2; text-align: left; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 62px; right: 0; left: 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(245,241,230,.12);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 15px 28px; border-bottom: 1px solid rgba(245,241,230,.08); }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-brand small { display: none; }
  .section { padding: 80px 0; }
  .hero-inner { padding: 120px 28px 110px; }
  .hero-stats { gap: 26px; }
}
