/* anvilds.com
   Black field, one orange, one grotesk set very large. Fine technical rules,
   corner brackets, and a single slow-moving watermark of the Anvil mark do
   the atmosphere; there is no photography on this site by rule. Fonts are
   self-hosted so the Content-Security-Policy can stay self-only. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #050505;
  --ink: #0a0a0a;
  --panel: #0f0f0f;
  --panel-2: #141414;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --white: #f3f1ec;
  --muted: #a3a09b;
  --dim: #6e6b67;
  --orange: #e8641f;
  --orange-hot: #ff7a2f;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--black); }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--orange); color: var(--black); }

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

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .n { color: var(--orange); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 10.5vw, 9.6rem); }
h2 { font-size: clamp(2.5rem, 6.6vw, 6rem); }
h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.025em; }
p { max-width: 60ch; }
.statement {
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 28ch;
}
.lead { font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--muted); max-width: 58ch; }

/* ---------- buttons: plain rectangles, a fill that sweeps on hover ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: var(--black);
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover { border-color: var(--white); }
.btn.ghost { color: var(--white); background: transparent; border-color: var(--line); }
.btn.ghost::before { background: var(--white); }
.btn.ghost:hover, .btn.ghost:focus-visible { color: var(--black); border-color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:disabled::before { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav.scrolled { background: rgba(5, 5, 5, 0.82); border-bottom-color: var(--line-soft); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex: 0 0 auto; }
.logo img { width: auto; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-links .btn { padding: 13px 18px; font-size: 11px; }
@media (max-width: 900px) { .nav-links a:not(.btn) { display: none; } }
@media (max-width: 560px) { .nav-links .btn { display: none; } .logo img { height: 28px; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
  overflow: hidden;
  isolation: isolate;
}
.hero .grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}
.hero .mark {
  position: absolute;
  z-index: -1;
  right: -6vw;
  top: 8vh;
  width: min(64vw, 980px);
  opacity: 0.085;
  pointer-events: none;
  animation: drift 26s var(--ease) infinite alternate;
}
.hero .glow {
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(closest-side, rgba(232, 100, 31, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-body { min-width: 0; width: 100%; padding-bottom: clamp(56px, 8vh, 110px); }
.hero-body > * { animation: rise 0.9s var(--ease) both; }
.hero-body > :nth-child(1) { animation-delay: 0.05s; }
.hero-body > :nth-child(2) { animation-delay: 0.15s; }
.hero-body > :nth-child(3) { animation-delay: 0.3s; }
.hero-body > :nth-child(4) { animation-delay: 0.42s; }
.hero-body > :nth-child(5) { animation-delay: 0.55s; }
.hero-body .eyebrow { margin-bottom: 28px; }
.hero-body h1 { margin-bottom: 30px; max-width: 12ch; }
.hero-body h1 .accent { color: var(--orange); }
.hero-body .statement { margin-bottom: 26px; }
.hero-body .lead { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-strip { border-top: 1px solid var(--line); }
.hero-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.readout { display: flex; flex-wrap: wrap; gap: 10px 36px; max-width: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.readout b { font-weight: 400; color: var(--white); }
.cue { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; flex: 0 0 auto; }
.cue::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: cue 2.4s var(--ease) infinite; }
@media (max-width: 560px) { .cue { display: none; } }

/* ---------- lines of business ---------- */
.units { border-top: 1px solid var(--line); }
.unit {
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: background 0.6s var(--ease);
}
.unit:hover { background: var(--ink); }
.unit .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 120px);
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.unit .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--orange); margin-bottom: 26px; }
.unit h2 { transition: transform 0.6s var(--ease); }
.unit:hover h2 { transform: translateX(10px); }
.unit .copy { display: flex; flex-direction: column; justify-content: flex-end; }
.unit .copy p { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--muted); margin-bottom: 36px; }
.unit .btn { align-self: flex-start; }
@media (max-width: 820px) {
  .unit .wrap { grid-template-columns: 1fr; gap: 28px; }
  .unit:hover h2 { transform: none; }
}

/* ---------- manifesto ---------- */
.manifesto { position: relative; padding: clamp(96px, 16vh, 200px) 0; overflow: hidden; }
.manifesto .wrap { display: grid; grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 120px); }
.manifesto .eyebrow { padding-top: 10px; }
.manifesto .text {
  font-size: clamp(1.55rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.manifesto .text span { display: inline; color: var(--dim); transition: color 1.1s var(--ease); }
.manifesto .text span.in { color: var(--white); }
.manifesto .text span.final.in { color: var(--orange); }
.manifesto .text span:nth-child(2) { transition-delay: 0.25s; }
.manifesto .text span:nth-child(3) { transition-delay: 0.5s; }
.manifesto .text span:nth-child(4) { transition-delay: 0.85s; }
@media (max-width: 820px) { .manifesto .wrap { grid-template-columns: 1fr; } }

/* ---------- closing call ---------- */
.call { border-top: 1px solid var(--line); background: var(--ink); }
.call .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.call h2 { max-width: 14ch; }
@media (max-width: 820px) { .call .wrap { grid-template-columns: 1fr; align-items: start; } }

/* ---------- page hero (components) ---------- */
.page-hero { min-height: 78svh; }
.spec { border-top: 1px solid var(--line); background: var(--ink); }
.spec .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec .cell { padding: 26px var(--gutter) 26px 0; border-right: 1px solid var(--line-soft); }
.spec .cell:last-child { border-right: 0; }
.spec .cell + .cell { padding-left: var(--gutter); }
.spec .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--orange); margin-bottom: 8px; }
.spec .v { font-size: 15px; color: var(--white); }
@media (max-width: 820px) {
  .spec .wrap { grid-template-columns: 1fr; }
  .spec .cell { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
  .spec .cell + .cell { padding-left: 0; }
  .spec .cell:last-child { border-bottom: 0; }
}

/* ---------- intake form ---------- */
.intake { padding: clamp(72px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.intake .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px clamp(32px, 6vw, 120px); }
.intake aside { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.intake aside h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); margin-bottom: 24px; }
.intake aside .intro { color: var(--muted); margin-bottom: 28px; }
.intake aside .note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; line-height: 1.7; color: var(--white); padding: 18px 20px; border: 1px solid var(--line); max-width: 36ch; }
.intake aside .note::before { content: "// "; color: var(--orange); }
@media (max-width: 900px) { .intake .wrap { grid-template-columns: 1fr; } .intake aside { position: static; } }

form { max-width: 820px; }
.row { display: grid; gap: 22px; margin-bottom: 22px; }
.row.two { grid-template-columns: 1fr 1fr; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .row.two, .row.three { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; min-width: 0; }
.row .field { margin-bottom: 0; }
fieldset.field { border: 0; }
label, legend {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.req { color: var(--orange); }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  background: var(--panel);
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.3s, background 0.3s;
}
textarea { resize: vertical; min-height: 110px; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select:invalid { color: var(--muted); }
::placeholder { color: var(--dim); opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: rgba(255, 255, 255, 0.3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); background: var(--panel-2); }
input[aria-invalid="true"] { border-color: var(--orange); }
.choices { display: flex; flex-wrap: wrap; gap: 12px 30px; padding-top: 4px; }
.choice { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--white); margin: 0; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; }
.error { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--orange-hot); margin-top: 8px; }
.error:empty { display: none; }
.actions { margin-top: 8px; }
.status { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; color: var(--white); margin-top: 8px; max-width: 40ch; }
.status:empty { display: none; }
.status:focus { outline: none; }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(48px, 7vw, 96px) 0 40px; }
.site-footer .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.site-footer .top img { width: 320px; max-width: 70vw; height: auto; }
.site-footer .links { display: flex; gap: 32px; }
.site-footer .links a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.site-footer .links a:hover { color: var(--white); }
.site-footer .line {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 2;
  color: var(--muted);
  max-width: none;
}
.site-footer .line span { white-space: nowrap; }
.site-footer .line a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .line a:hover { color: var(--orange); }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="stagger"] { opacity: 1; transform: none; }
[data-reveal="stagger"] > * { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal="stagger"].in > * { opacity: 1; transform: none; }
[data-reveal="stagger"].in > :nth-child(2) { transition-delay: 0.1s; }
[data-reveal="stagger"].in > :nth-child(3) { transition-delay: 0.2s; }
[data-reveal="stagger"].in > :nth-child(4) { transition-delay: 0.3s; }
[data-reveal="stagger"].in > :nth-child(5) { transition-delay: 0.4s; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0.001deg); } to { transform: translate3d(-3%, 2.5%, 0) rotate(0.001deg); } }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* No JavaScript: show everything. */
.no-js [data-reveal], .no-js [data-reveal="stagger"] > * { opacity: 1; transform: none; }
.no-js .manifesto .text span { color: var(--white); }
.no-js .manifesto .text span.final { color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .hero .mark { animation: none; }
  [data-reveal], [data-reveal="stagger"] > * { opacity: 1; transform: none; }
  .manifesto .text span { color: var(--white); }
  .manifesto .text span.final { color: var(--orange); }
}
