/* Bureau of Spherical Integrity — facility presentation layer.
   Ambient conditions have been calibrated. Do not adjust. */

:root {
  --paper:    #e9e2d0;
  --paper-2:  #f1ecdd;
  --paper-3:  #ded5c0;

  --ink:      #1b1d19;
  --ink-2:    #4a4f46;
  --ink-3:    #767b70;

  --sage-d:   #6f9280;
  --rust:     #8a5433;
  --rust-d:   #5e3620;

  --line:     rgba(27, 29, 25, .20);
  --line-2:   rgba(27, 29, 25, .40);

  --shell:    1180px;

  --sans:  "IBM Plex Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --decay: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.62;
  overflow-x: hidden;
  position: relative;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; z-index: 999;
  font-family: var(--mono); font-size: .8rem;
}
.skip:focus { left: 1rem; top: 1rem; }

:where(a, button):focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ── The building settles. This is normal and non-reportable. ───────────── */

.grain {
  position: fixed; inset: 0; z-index: 1; 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='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

.rust {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: multiply;
  opacity: var(--decay);
  background:
    radial-gradient(115% 75% at 88% 104%, rgba(120, 62, 30, .92) 0%, rgba(120, 62, 30, 0) 58%),
    radial-gradient(95% 62% at 4% 96%,   rgba(78, 40, 22, .78)  0%, rgba(78, 40, 22, 0)  56%),
    radial-gradient(140% 96% at 50% 118%, rgba(46, 32, 22, .72) 0%, rgba(46, 32, 22, 0) 62%),
    linear-gradient(180deg, rgba(233,226,208,0) 26%, rgba(126, 82, 52, .62) 78%, rgba(58, 38, 26, .78) 100%);
  transition: opacity .28s linear;
}

/* Hairline damage. Reported. No action taken at this time. */
.fracture {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  mix-blend-mode: multiply;
  opacity: calc((var(--decay) - .34) * 1.75);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23241a12' stroke-linecap='round' stroke-width='.9' opacity='.42'%3E%3Cpath d='M1200 58 L1136 126 L1170 186 L1096 246 L1130 312 L1058 374 L1090 446 L1020 512 L1052 588 L992 660 L1020 740 L964 800'/%3E%3Cpath d='M0 378 L76 436 L40 494 L114 552 L78 618 L152 676 L116 742 L184 800'/%3E%3C/g%3E%3Cg fill='none' stroke='%23241a12' stroke-linecap='round' stroke-width='.55' opacity='.3'%3E%3Cpath d='M1136 126 L1190 158 M1096 246 L1162 270 M1058 374 L1124 400 M1020 512 L1086 534 M992 660 L1056 690'/%3E%3Cpath d='M76 436 L14 470 M114 552 L48 588 M152 676 L94 712'/%3E%3Cpath d='M302 800 L338 726 L288 668 M528 800 L556 742 M772 800 L810 730 L764 678'/%3E%3Cpath d='M1200 424 L1150 466 L1180 510 M0 214 L54 258 L22 302'/%3E%3C/g%3E%3C/svg%3E");
  transition: opacity .28s linear;
}

.masthead, main, .footer { position: relative; z-index: 4; }

/* ── Type ──────────────────────────────────────────────────────────────── */

.eyebrow, .section-mark, .loop__n, .footer__stamp, .facts dt, .soon {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sep { opacity: .45; padding-inline: .35em; }

.section-mark {
  display: flex; align-items: center; gap: .9rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--ink-2);
}
.section-mark span:first-child { color: var(--rust); font-weight: 500; flex: none; }
.section-mark::after { content: ""; flex: 1 1 auto; }

.h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.95rem, 1.2rem + 3vw, 3.4rem);
  line-height: .96; letter-spacing: -.018em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.12rem, 1rem + .55vw, 1.35rem);
  line-height: 1.48;
  margin-bottom: 1.15rem;
  text-wrap: pretty;
}
.lede--after { color: var(--ink-2); }

.body {
  margin-bottom: 1.05rem;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ── Masthead ──────────────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 40;
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.1rem;
}

.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }

.wordmark__num {
  position: relative;
  font-family: var(--sans); font-weight: 700;
  font-size: .95rem; line-height: 1;
  width: 1.55rem; height: 1.55rem;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  flex: none;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .22s, color .22s;
}
/* The pane is sound. Any movement is settling. */
.wordmark__num::after {
  content: "";
  position: absolute; inset: -3px;
  opacity: 0;
  transition: opacity .22s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%238a5433' stroke-linecap='round'%3E%3Cpath d='M31 0 L23 13 L28 20 L15 29 L19 40' stroke-width='1'/%3E%3Cpath d='M23 13 L33 17' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.wordmark:hover .wordmark__num,
.wordmark:focus-visible .wordmark__num {
  transform: skewX(-8deg) rotate(-3deg);
  border-color: var(--rust);
  color: var(--rust);
}
.wordmark:hover .wordmark__num::after,
.wordmark:focus-visible .wordmark__num::after { opacity: 1; }

.wordmark__text {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.02rem; letter-spacing: .07em; text-transform: uppercase;
  transition: letter-spacing .22s;
}
.wordmark:hover .wordmark__text { letter-spacing: .085em; }

.nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); }
.nav a {
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rust); }
@media (max-width: 560px) { .nav a:nth-child(2) { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem); }

.eyebrow { margin-bottom: 1.7rem; }

.hero__title { margin-bottom: 1.2rem; }
.hero__the {
  display: block;
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(1rem, .85rem + .7vw, 1.4rem);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .4rem;
}
.hero__big {
  display: block;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(3.4rem, .9rem + 11.2vw, 9.5rem);
  line-height: .82; letter-spacing: -.035em;
  text-transform: uppercase;
}

.hero__tag {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.08rem, .95rem + .6vw, 1.45rem);
  color: var(--rust);
  padding: 1.4rem 0 1.8rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.hero__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 780px) { .hero__cols { grid-template-columns: 1fr; gap: 0; } }

.hero__cols .body:last-child { margin-bottom: 0; color: var(--ink-3); font-style: italic; }

/* ── § 01 ──────────────────────────────────────────────────────────────── */

.work { padding-block: clamp(2.75rem, 6vw, 5rem); border-top: 1px solid var(--line); }

.loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}
@media (max-width: 820px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 470px) { .loop { grid-template-columns: 1fr; } }

/* Gutters sit on both sides of every divider; the outer edges stay flush
   with the shell so the rules line up with everything above and below. */
.loop li {
  padding: 1.6rem clamp(1.2rem, 2.2vw, 2.1rem) 1.8rem;
  border-right: 1px solid var(--line);
}
.loop li:nth-child(4n+1) { padding-left: 0; }
.loop li:nth-child(4n)   { padding-right: 0; border-right: 0; }

@media (max-width: 820px) {
  .loop li { padding-inline: clamp(1.2rem, 3vw, 2.1rem); border-right: 1px solid var(--line); }
  .loop li:nth-child(odd)  { padding-left: 0; }
  .loop li:nth-child(even) { padding-right: 0; border-right: 0; }
  .loop li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 470px) {
  .loop li { padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .loop li:last-child { border-bottom: 0; }
}

.loop__n { display: block; color: var(--rust); margin-bottom: .85rem; }
.loop__label {
  display: block;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.3rem, 1.05rem + .9vw, 1.8rem);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.loop__desc { display: block; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }

.work__note {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
}

/* ── § 02 ──────────────────────────────────────────────────────────────── */

.onboarding { padding-block: clamp(2.75rem, 6vw, 5rem); border-top: 1px solid var(--line); }

.onboarding__grid,
.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .onboarding__grid, .studio__grid { grid-template-columns: 1fr; }
}

.ask {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1; text-transform: uppercase; letter-spacing: -.01em;
  margin-top: 2.25rem;
}
.ask__sub {
  font-family: var(--serif); font-style: italic;
  font-size: 1.02rem;
  color: var(--rust);
  margin-top: .7rem;
}
.soon {
  margin-top: 2.5rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

/* ── § 03 ──────────────────────────────────────────────────────────────── */

.studio { padding-block: clamp(2.75rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }

.facts { margin-top: 2.4rem; border-top: 1.5px solid var(--ink); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 10rem) 1fr;
  gap: 1rem;
  padding: .82rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { padding-top: .15rem; }
.facts dd { font-size: .95rem; color: var(--ink-2); }
.facts a { color: var(--rust); text-underline-offset: 3px; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 70%, var(--rust) 6%);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__inner { display: grid; gap: 1.4rem; }
.footer__mark { display: inline-flex; align-items: center; gap: .6rem; }

.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer__links a {
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: .15rem;
}
.footer__links a:hover { color: var(--rust); border-bottom-color: var(--rust); }

.footer__legal { font-size: .82rem; color: var(--ink-3); max-width: 58ch; }
.footer__stamp { padding-top: .5rem; border-top: 1px solid var(--line); }
