/* Carlswoods Consulting: black, brushed metal, right angles only. */

/* Self-hosted font (SIL Open Font License): no requests to third parties. */
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('fonts/mona-sans-latin-var.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --ink: #efece7;
  --ink-2: #a39f99;
  --ink-3: #807b75; /* 4.7:1 on the background, readable at small sizes */
  --line: rgba(239, 236, 231, 0.1);
  --line-strong: rgba(239, 236, 231, 0.2);
  --guide: rgba(239, 236, 231, 0.035);
  /* The only "colour" is the metal of the mark. */
  --accent: #b9b1a5;
  --accent-bright: #ddd7ce;
  /* The mark's own ramp minus its darkest stop, so metal type keeps 5:1+ contrast. */
  --metal-type: linear-gradient(225deg, #ddd7ce 0%, #b3ab9f 33%, #9d968b 66%, #8a8379 100%);
  --metal-text: var(--metal-type); /* used by the brand sheet */
  /* One type scale (about 1.5 between tiers), all Mona Sans. */
  --fs-xl: clamp(48px, 9vw, 136px);
  --fs-l: clamp(34px, 5vw, 80px);
  --fs-m: clamp(21px, 1.9vw, 28px);
  --fs-lead: clamp(18px, 1.45vw, 22px);
  --track-word: 0.24em;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 72px;
  --sans: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* Shared type roles. */
.nav,
.btn,
.f-nav,
.eyebrow,
.label {
  font-size: 12px;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.statement,
.contact-title,
.section-title,
.page-title,
.t-item,
.service h3,
.principles-list h3 {
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.metal-type {
  color: var(--accent);
  background: var(--metal-type);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Atmosphere ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Faint column lines; the layout snaps to them. */
.guides {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.guides .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.guides span { border-left: 1px solid var(--guide); transform-origin: top; }
.guides span:last-child { border-right: 1px solid var(--guide); }

main,
.site-footer { position: relative; z-index: 1; }

/* ---------- Buttons and links ---------- */

/* Square buttons whose fill rises from the floor, like the mark's steps. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-bright);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.42s var(--ease);
}
.btn:hover,
.btn:focus-visible { color: var(--bg); border-color: var(--accent-bright); }
.btn:hover::before,
.btn:focus-visible::before { clip-path: inset(0); }

.arr {
  width: 0.9em;
  height: 0.9em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .arr,
.email:hover .arr { transform: translate(2px, -2px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s;
}
/* The hero already shows the logo; the header brand only arrives once it scrolls away.
   Hidden from keyboard focus too, so the first Tab never lands on something invisible. */
.js .site-header:not(.scrolled) .brand {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
}

/* 28px = a whole 2px module, so the stair stays crisp. */
.brand-mark {
  display: block;
  flex: none;
  width: 28px;
  height: 28px;
}
.brand-mark svg,
.brand-mark img { display: block; width: 100%; height: 100%; }

.brand-word {
  font-size: 12px;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: var(--track-word);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  color: var(--ink-2);
}
.nav a:not(.btn) {
  position: relative;
  padding: 14px 0;
  transition: color 0.25s;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:not(.btn):hover,
.nav a.is-active { color: var(--ink); }
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */

.hero {
  /* The lockup is built on the mark's 14-module grid: --u is one module. Rounded to whole
     14px steps where supported so the module stays on the pixel grid. */
  --mk-raw: clamp(168px, min(32vh, 24vw), 360px);
  --mk: var(--mk-raw);
  --u: calc(var(--mk) / 14);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
@supports (height: 1svh) {
  .hero { --mk-raw: clamp(168px, min(32svh, 24vw), 360px); }
}
@supports (width: round(down, 100px, 14px)) {
  .hero { --mk: round(down, var(--mk-raw), 14px); }
}

/* A soft spotlight from above that leans toward the pointer (site.js sets --lx/--ly). */
.hero::before {
  content: '';
  position: absolute;
  inset: -4%;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 42% at 52% 38%, rgba(236, 229, 218, 0.085), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  /* Fade the vignette out before the ticker, so the hero flows into the next section. */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 88%);
  transform: translate(calc(var(--lx, 0) * 3vw), calc(var(--ly, 0) * 2vh));
  pointer-events: none;
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--u) * 2) var(--gutter) calc(var(--u) * 3);
}

.hero-figure {
  position: relative;
  width: var(--mk);
  aspect-ratio: 1;
}
.hero-mark { position: relative; display: block; width: 100%; height: 100%; }
.hero-mark svg,
.hero-mark img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* The outline layer sits on top of the metal as a faint lit edge, like a bevel. */
.m-line { color: #f3efe8; pointer-events: none; }
.m-line-path { stroke-opacity: 0.22; }
.m-spec { opacity: 0; transition: opacity 0.8s var(--ease-out); }
.hero-mark.lit .m-spec { opacity: 1; }

/* Wordmark: CARLSWOODS is two marks wide, the gap above it is one wall (4 modules). */
.wordmark {
  margin: calc(var(--u) * 4) 0 0;
  text-align: center;
  font-stretch: 125%;
  line-height: 1;
  text-transform: uppercase;
}
.wm-name,
.wm-sub {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
}
.wm-name > span,
.wm-sub > span { display: inline-block; }
.wm-name {
  padding-left: var(--track-word); /* tracking adds trailing space; this re-centres the word */
  font-size: calc(var(--mk) * 0.192);
  font-weight: 700;
  letter-spacing: var(--track-word);
}
.wm-name > span {
  color: var(--accent);
  background: var(--metal-type);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wm-sub {
  margin-top: calc(var(--u) * 0.6);
  padding-left: 0.42em;
  font-size: max(11px, calc(var(--mk) * 0.052));
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--ink-2);
}

/* ---------- Hero intro (first visit only; boot.js adds .intro) ---------- */

.intro .site-header { opacity: 0; animation: fade-in 0.7s var(--ease-out) 0.3s forwards; }
.intro .guides span { transform: scaleY(0); animation: guide-in 0.9s var(--ease) forwards; }
.intro .guides span:nth-child(2) { animation-delay: 60ms; }
.intro .guides span:nth-child(3) { animation-delay: 120ms; }
.intro .guides span:nth-child(4) { animation-delay: 180ms; }
.intro .hero::before { opacity: 0; animation: fade-in 2s var(--ease-out) 0.2s forwards; }

/* 1. The outline draws outward from the middle of the stair; its two ends meet top left. */
.intro .m-line-path {
  stroke-opacity: 1;
  stroke-width: 0.09;
  animation:
    draft 0.95s var(--ease) 0.15s both,
    edge 0.6s var(--ease-out) 1.5s forwards;
}
/* 2. The metal pours in diagonally, from the foot of the stair up to the top right. */
.intro .m-fill {
  -webkit-mask-image: linear-gradient(45deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(45deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 300%;
  mask-size: 300% 300%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0%;
  mask-position: 100% 0%;
  animation: pour 0.75s var(--ease-out) 0.95s forwards;
}
/* 3. One sweep of light. */
.intro .m-sheen { animation: sheen 1.1s var(--ease) 1.5s forwards; }
/* The name rises out of a mask while the metal pours. */
.intro .wm-name > span,
.intro .wm-sub > span {
  transform: translateY(105%);
  animation: rise-in 0.9s var(--ease-out) 0.75s forwards;
}
.intro .wm-sub > span { animation-delay: 0.9s; }
.intro .ticker { opacity: 0; animation: fade-in 1.2s var(--ease-out) 1.7s forwards; }

@keyframes draft {
  from { stroke-dasharray: 0 1; stroke-dashoffset: -0.5; }
  to { stroke-dasharray: 1 0; stroke-dashoffset: 0; }
}
@keyframes edge { to { stroke-opacity: 0.22; stroke-width: 0.06; } }
@keyframes pour {
  to { -webkit-mask-position: 0% 100%; mask-position: 0% 100%; }
}
@keyframes sheen { to { transform: translateX(30px); } }
@keyframes rise-in { to { transform: none; } }
@keyframes guide-in { to { transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* The hero lockup sinks back as the page scrolls (scroll-driven where supported). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-center {
      animation: hero-exit linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
    @keyframes hero-exit {
      to { transform: translateY(14vh) scale(0.94); opacity: 0.15; }
    }
  }
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 22px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
/* Four identical groups; moving one group's width loops seamlessly even at 2560px. */
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.ticker.is-paused .ticker-track,
.ticker.is-offscreen .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: clamp(17px, 2vw, 30px);
}
.t-item {
  padding: 0 0.7em;
  white-space: nowrap;
  line-height: 1.1;
  color: var(--ink-2);
}
/* A two-step stair in metal, the mark's own detail. */
.t-sep {
  flex-shrink: 0;
  width: 0.34em;
  height: 0.22em;
  background: var(--metal-type);
  clip-path: polygon(0 100%, 0 50%, 50% 50%, 50% 0, 100% 0, 100% 100%);
}

@keyframes marquee { to { transform: translate3d(-25%, 0, 0); } }

.ticker-toggle {
  display: none;
  place-items: center;
  position: absolute;
  top: 50%;
  right: var(--gutter);
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.js .ticker-toggle { display: grid; }
.ticker-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
/* Pause icon: two bars. Play icon (when paused): a triangle. */
.ticker-toggle span {
  width: 8px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.ticker-toggle[aria-pressed='true'] span {
  width: 9px;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Sections ---------- */

.section { padding-top: clamp(80px, 9vw, 136px); }
.about { padding-top: clamp(56px, 6vw, 92px); }

/* Display lines rise out of a mask when they enter the viewport. */
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.ln > span { display: inline-block; }
.js [data-reveal='lines'] .ln > span {
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-out);
}
.js [data-reveal='lines'] .ln + .ln > span { transition-delay: 90ms; }
.js [data-reveal='lines'].in .ln > span { transform: none; }

/* Once revealed, a band of light crosses the metal line once, echoing the hero mark. */
.js .in .metal-type {
  background-image:
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%),
    var(--metal-type);
  background-size: 300% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0, 0 0;
  animation: type-sheen 1.6s var(--ease) 0.7s forwards;
}
@keyframes type-sheen { to { background-position: 0% 0, 0 0; } }

.about .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: clamp(24px, 2.6vw, 40px);
}
.statement {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--fs-xl);
}
/* Running text sits on the same column as the principle paragraphs. */
.about-body {
  grid-column: 3 / -1;
  margin: 0;
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

.section-title {
  margin: 0;
  font-size: var(--fs-l);
}

/* Hairlines that draw in from the left. */
[data-rule] { position: relative; }
[data-rule]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.25s;
}
.js [data-rule]:not(.in)::before { transform: scaleX(0); }

/* ---------- Who we work with ---------- */

.clients-lead {
  max-width: 34ch;
  margin: clamp(20px, 2.2vw, 32px) 0 0;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.goals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 3vw, 48px);
  margin: clamp(32px, 3.6vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}
.goals li { padding-top: 24px; }
.goals h3 {
  margin: 0;
  font-size: var(--fs-m);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
/* A short metal rule under each goal: the first step of the stair. */
.goals h3::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 14px;
  background: var(--metal-type);
}
.goals p {
  margin: 14px 0 0;
  max-width: 36ch;
  color: var(--ink-2);
}
.js .goals li:nth-child(2) { transition-delay: 0.08s; }
.js .goals li:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}
.service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 30px;
  border-left: 1px solid var(--line);
}
.service:last-child { border-right: 1px solid var(--line); }
/* A faint light follows the pointer inside the card (site.js sets --mx/--my). */
.service::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(239, 236, 231, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) {
  .service:hover::after { opacity: 1; }
  .service:hover::before { transform: scaleX(1); }
}

/* Four steps; each service lights up its own level. */
.service-icon {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  margin-bottom: clamp(28px, 3vw, 44px);
  overflow: visible;
}
.service-icon .stair {
  fill: transparent;
  stroke: var(--ink-3);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  transition: fill 0.5s, stroke 0.5s;
}
.service-icon .lvl { fill: var(--accent); }
.service:hover .service-icon .stair { fill: rgba(239, 236, 231, 0.08); stroke: var(--ink-2); }

.service h3 {
  margin: 0;
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1;
}
.service-when {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
.service-list {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.service-when + .service-list { margin-top: 22px; border-top: 1px solid var(--line); }
.service-list li {
  display: flex;
  gap: 10px;
}
.service-list li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--accent);
  clip-path: polygon(0 100%, 0 50%, 50% 50%, 50% 0, 100% 0, 100% 100%);
}

.interlude {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  margin-top: clamp(32px, 4vw, 52px);
}
.interlude p {
  margin: 0;
  max-width: 56ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Principles ---------- */

.principles-list {
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}
.principles-list li {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: baseline;
  padding: 28px 0 30px;
}
.principles-list li::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.2s;
}
.js .principles-list li:not(.in)::after { transform: scaleX(0); }
.principles-list h3 {
  margin: 0;
  padding-right: 24px;
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1;
}
.principles-list p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-2);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(72px, 8vw, 120px);
}
/* The mark again, as its own blueprint: module lattice, outline, and the top step in metal. */
.contact-mark {
  position: absolute;
  top: clamp(80px, 9vw, 136px);
  right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  z-index: -1;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  pointer-events: none;
}
.contact-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cm-lattice path { stroke: var(--ink); stroke-opacity: 0.06; stroke-width: 0.02; fill: none; }
.cm-fill { fill: rgba(239, 236, 231, 0.025); }
.cm-line { fill: none; stroke: var(--accent-bright); stroke-opacity: 0.4; stroke-width: 0.035; }
.js .contact-mark .cm-line { stroke-dasharray: 0 1; stroke-dashoffset: -0.5; }
.js .contact-mark.in .cm-line { animation: draft 1.8s var(--ease) forwards; }
/* Once drawn, a plain stroke: no dash seam where the two ends meet. */
.js .contact-mark.drawn .cm-line { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.js .contact-mark .cm-step { opacity: 0; }
.js .contact-mark.in .cm-step { animation: fade-in 0.9s var(--ease-out) 1.4s forwards; }

.contact-title {
  margin: 0;
  font-size: var(--fs-xl);
}
.contact-lead {
  max-width: 34ch;
  margin: clamp(20px, 2.2vw, 32px) 0 0;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
}
.contact-row,
.steps { max-width: 720px; }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(32px, 3.6vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.email {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 4px 0;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.3s;
  overflow-wrap: anywhere;
}
.email .arr { width: 0.55em; height: 0.55em; stroke-width: 1.2; }
.email:hover { color: var(--accent-bright); background-size: 100% 2px; }

.copy { display: none; min-width: 104px; }
.js .copy { display: inline-flex; }
.copy.done { color: var(--bg); border-color: var(--accent-bright); }
.copy.done::before { clip-path: inset(0); }

.steps {
  margin: clamp(36px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 24px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
}
.steps h3 {
  margin: 0;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.steps p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 32px; }
.f-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.f-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: var(--track-word);
  text-transform: uppercase;
}
.f-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  color: var(--ink-2);
}
.f-nav a { padding: 10px 0; transition: color 0.2s; }
.f-nav a:hover { color: var(--ink); }
/* Legal block: registered address, copyright and trademark notice. */
.f-legal {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.f-legal address { font-style: normal; }
.f-legal p { margin: 0; }
.f-legal a { color: var(--ink-2); transition: color 0.2s; }
.f-legal a:hover { color: var(--ink); }

/* ---------- Simple pages (privacy, 404) and the brand sheet ---------- */

.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.page main { flex: 1; padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 clamp(80px, 10vw, 140px); }
.page .site-header .brand { opacity: 1; visibility: visible; transform: none; }
.page-title {
  margin: 28px 0 0;
  max-width: 14ch;
  font-size: clamp(48px, 7vw, 104px);
}
.prose { max-width: 62ch; margin-top: clamp(32px, 4vw, 56px); color: var(--ink-2); }
.prose h2 { margin: 40px 0 10px; font-size: 22px; font-weight: 750; font-stretch: 75%; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s; }
.prose a:hover { border-color: var(--ink); }
.page-cta { margin-top: 40px; }
.eyebrow { margin: 0; color: var(--ink-2); }
.label { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--ink-2); }
.label span { color: var(--accent-bright); }

/* ---------- Scroll reveal ---------- */

.js [data-reveal]:not([data-reveal='lines']) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js .service:nth-child(2) { transition-delay: 0.08s; }
.js .service:nth-child(3) { transition-delay: 0.16s; }
.js .service:nth-child(4) { transition-delay: 0.24s; }
.js .about-body,
.js .steps li:nth-child(2) { transition-delay: 0.12s; }
.js .steps li:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 1px solid var(--line); }
  .service:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about-body { grid-column: 2 / -1; }
  .contact-mark { width: min(36vw, 360px); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hero { --mk-raw: clamp(140px, 44vw, 238px); }
  .nav a:not(.btn) { display: none; }
  .guides .wrap { grid-template-columns: repeat(2, 1fr); }
  .guides span:nth-child(n + 3) { display: none; }
  .guides span:nth-child(2) { border-right: 1px solid var(--guide); }
  .ticker-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .about .wrap { grid-template-columns: 1fr; }
  .statement,
  .about-body { grid-column: 1; }
  .principles-list li { grid-template-columns: 1fr; row-gap: 12px; padding: 24px 0 26px; }
  .goals { grid-template-columns: 1fr; }
  .goals li + li { margin-top: 8px; border-top: 1px solid var(--line); }
  /* The blueprint would only push the footer down on phones. */
  .contact-mark { display: none; }
  .steps li { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 1px solid var(--line); }
  .service + .service { border-top: 1px solid var(--line); }
}

/* Keeps "MADE FOR THE WORLD." on one line on small phones. */
@media (max-width: 605px) {
  .statement,
  .contact-title { font-size: min(11.6vw, 46px); }
}

@media (max-width: 359px) {
  .brand-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .ticker-track { animation: none !important; width: auto; }
  .ticker-viewport { -webkit-mask-image: none; mask-image: none; }
  .ticker-group { flex-shrink: 1; flex-wrap: wrap; justify-content: center; row-gap: 8px; width: 100%; }
  .ticker-group + .ticker-group,
  .js .ticker-toggle { display: none; }
}

@media (forced-colors: active) {
  .guides,
  .grain { display: none; }
  .metal-type,
  .wm-name > span { background: none; -webkit-text-fill-color: currentColor; }
}

@media print {
  .grain,
  .guides,
  .site-header,
  .ticker,
  .contact-mark,
  .copy,
  .interlude .btn { display: none !important; }
  * { animation: none !important; transition: none !important; }
  [data-reveal],
  .ln > span,
  .wm-name > span,
  .wm-sub > span { opacity: 1 !important; transform: none !important; }
  body,
  html { background: #fff; color: #000; }
  .metal-type,
  .wm-name > span { background: none !important; -webkit-text-fill-color: currentColor; color: #000; }
  .hero { min-height: 0; padding: 24px 0; }
  .hero::before,
  .m-line,
  .m-spec { display: none !important; }
  .hero-mark .m-body { fill: #111; }
  /* Animations are off in print, so release the intro's starting mask. */
  .m-fill { -webkit-mask-image: none !important; mask-image: none !important; }
  .service-when,
  .goals p,
  .contact-lead,
  .about-body,
  .principles-list p,
  .steps p,
  .f-legal,
  .service-list { color: #222; }
}
