:root {
  --ink: #000005;
  --paper: #f2f3f5;
  --dim: #85868f;
  --dimmer: #4a4b52;
  --accent: #4fd8ff;
  --rule: rgba(242, 243, 245, 0.16);
  --rule-soft: rgba(242, 243, 245, 0.08);

  --display: "Anton", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --text: "Inter", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Fine scanlines, sitting above everything at a near-invisible alpha —
   ties the type and the background into one surface. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.014) 0 1px,
    transparent 1px 3px
  );
}

/* ── ambience ───────────────────────────────────────────────
   Three oversized, soft-edged gradients drifting on long, mutually
   prime periods so the composite never visibly loops. Only transform
   and opacity animate, so this stays on the compositor — no repaints.
   Softness comes from the gradient falloff, not filter: blur(), which
   would be far more expensive to animate.                            */

.ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform, opacity;
}

.orb-1 {
  width: 78vmax;
  height: 78vmax;
  top: -26vmax;
  left: -18vmax;
  background: radial-gradient(
    circle at center,
    rgba(79, 216, 255, 0.115),
    rgba(79, 216, 255, 0) 62%
  );
  animation: drift-1 52s ease-in-out infinite alternate;
}

.orb-2 {
  width: 62vmax;
  height: 62vmax;
  top: 22vmax;
  right: -22vmax;
  background: radial-gradient(
    circle at center,
    rgba(58, 128, 255, 0.085),
    rgba(58, 128, 255, 0) 64%
  );
  animation: drift-2 67s ease-in-out infinite alternate;
}

.orb-3 {
  width: 54vmax;
  height: 54vmax;
  bottom: -24vmax;
  left: 28vmax;
  background: radial-gradient(
    circle at center,
    rgba(120, 235, 255, 0.058),
    rgba(120, 235, 255, 0) 66%
  );
  animation: drift-3 83s ease-in-out infinite alternate;
}

/* Modest travel plus a little scale. Perceptible if you watch the page
   for a few seconds, calm enough to ignore while reading. */
@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
  to   { transform: translate3d(7vw, 4vh, 0) scale(1.11); opacity: 1; }
}

@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.04); opacity: 1; }
  to   { transform: translate3d(-5.5vw, -4.5vh, 0) scale(1); opacity: 0.72; }
}

@keyframes drift-3 {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
  to   { transform: translate3d(4.5vw, -3vh, 0) scale(1.13); opacity: 1; }
}

/* Fine film grain, stepped so it flickers like emulsion rather than
   sliding. Tile repeats; only transform animates. */
.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.024;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 14s steps(4) infinite;
  will-change: transform;
}

@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-2%, 1.5%, 0); }
  50%  { transform: translate3d(1.5%, -2%, 0); }
  75%  { transform: translate3d(-1.5%, -1%, 0); }
  100% { transform: translate3d(2%, 1%, 0); }
}

/* Content sits above the ambience. The masthead keeps its own higher
   z-index (set above) so it stays over the page while sticky. */
main,
.colophon {
  position: relative;
  z-index: 1;
}

.shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── shared editorial furniture ─────────────────────────── */

.kicker,
.rubric,
.billing,
.masthead-nav a,
.colophon-inner,
.field span,
.submit,
.note {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
}

.rubric {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  color: var(--dim);
  margin: 0 0 clamp(28px, 4vw, 52px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.folio {
  color: var(--accent);
}

.statement {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 6.4vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(28px, 4vw, 48px);
  max-width: 20ch;
}

.statement-sm {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  margin-bottom: 20px;
}

/* ── masthead ───────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 5, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
}

.kicker {
  color: var(--paper);
}

.masthead-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
}

.masthead-nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.18s ease;
}

.masthead-nav a:hover {
  color: var(--accent);
}

/* on narrow phones keep Contact reachable, drop the rest */
@media (max-width: 460px) {
  .masthead-nav a:not(:last-child) { display: none; }
}

/* ── titlepiece ─────────────────────────────────────────── */

.titlepiece {
  padding: clamp(40px, 6vw, 84px) 0 clamp(20px, 2.5vw, 32px);
}

.wordmark-box {
  container-type: inline-size;
}

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.012em;
  margin: 0;
  white-space: nowrap;
  /* Measured: "INITIALIZE" in Anton is 3.384em wide at this tracking, so
     100/3.384 ≈ 29.5cqw fills the column. 29.2 leaves a sliver of slack.
     The vw value is the fallback where cqw is unsupported. */
  font-size: min(28vw, 22rem);
  font-size: 29.2cqw;
}

.billing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(20px, 3.4vw, 46px);
  margin-top: clamp(22px, 3.4vw, 40px);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--paper);
}

.billing-item {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  white-space: nowrap;
}

.billing-label {
  color: var(--dimmer);
}

.tba {
  color: var(--accent);
}

/* ── spreads ────────────────────────────────────────────── */

.spread {
  padding: clamp(44px, 6vw, 88px) 0;
}

.spread-rule {
  border-top: 1px solid var(--rule-soft);
}

/* ── editorial columns ──────────────────────────────────── */

.columns {
  columns: 2;
  column-gap: clamp(28px, 4vw, 60px);
  max-width: 74ch;
  color: #c9cad2;
  font-size: 1rem;
}

.columns p {
  margin: 0 0 1.1em;
  break-inside: avoid;
}

.columns p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .columns { columns: 1; }
}

.dropcap::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.5em;
  line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--paper);
}

/* ── contact ────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.maillink {
  font-family: var(--mono);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: 0.9rem;
  word-break: break-all;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  color: var(--dim);
}

.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1rem;
  padding: 10px 2px;
  border-radius: 0;
  resize: vertical;
  transition: border-color 0.18s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.submit {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 15px 42px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.submit:hover {
  background: var(--accent);
}

.note {
  color: var(--dim);
  margin: 0;
  min-height: 1.2em;
  letter-spacing: 0.12em;
}

/* ── colophon ───────────────────────────────────────────── */

.colophon {
  border-top: 1px solid var(--rule);
  padding: 26px 0;
}

.colophon-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dimmer);
}

@media (max-width: 520px) {
  .colophon-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Freeze all motion for anyone who asks for it — the aura stays as a
   static glow, which is the whole effect minus the drift. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
