/* ==========================================================================
   Hard Launch Goods
   Design system. Every value used anywhere on the site is defined here first.

   Ink is the default ground: the brand's native register, and the reason the
   site doesn't read as a supplier's brochure. Paper and signal are the two
   other grounds; a section declares one and every component inside it inherits
   the right colours through --bg / --fg / --rule / --muted.
   ========================================================================== */

:root {
  /* ---- Palette -------------------------------------------------------- */
  --paper: #f2f0eb;
  --paper-sunk: #e4e0d7;
  --ink: #0e0d0c;
  --ink-sunk: #191715;

  /* The accent is the cream. No chromatic accent. The site runs on two tones
     and lets type, scale and ground do the work.

     `--accent` is the ground-aware alias every component points at: `--signal`
     on ink, `--signal-deep` on paper, ink on the signal panel. The pair below
     is the only place a brand colour would ever be introduced; set them to a
     hue and its dark partner and the whole site follows. */
  --signal: var(--paper);
  --signal-deep: var(--ink);
  /* Reserved. Validation is monochrome. The error text appearing and the
     underline thickening carry the state, so nothing depends on colour. Point
     .field__error and [aria-invalid] at this if a red is ever wanted. */
  --danger: #d93c26;

  /* ---- Contextual ground: ink is the default -------------------------- */
  --bg: var(--ink);
  --fg: var(--paper);
  --sunk: var(--ink-sunk);
  --muted: #8d8780;
  --accent: var(--signal);
  --rule: rgba(242, 240, 235, 0.18);
  --rule-soft: rgba(242, 240, 235, 0.1);
  --hatch: rgba(242, 240, 235, 0.07);

  /* ---- Type ----------------------------------------------------------- */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(3.4rem, 12.2vw, 11.5rem);
  --fs-h1: clamp(2.9rem, 8.4vw, 7.5rem);
  --fs-h2: clamp(2.35rem, 6vw, 5rem);
  --fs-h3: clamp(1.65rem, 3vw, 2.85rem);
  --fs-h4: clamp(1.2rem, 1.7vw, 1.55rem);
  --fs-lede: clamp(1.15rem, 1.65vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.6875rem;

  /* ---- Space ---------------------------------------------------------- */
  /* Header height. Everything that has to clear the sticky header reads this,
     so the three places stay in step. */
  --header-h: clamp(92px, 8.5vw, 124px);
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --section: clamp(5.5rem, 12vw, 11rem);
  --section-sm: clamp(3.5rem, 7vw, 6rem);
  --max: 1620px;

  /* ---- Motion --------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 200ms;
  --slow: 760ms;
}

.ground-paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --sunk: var(--paper-sunk);
  --accent: var(--signal-deep);
  --muted: #6c6862;
  --rule: rgba(14, 13, 12, 0.18);
  --rule-soft: rgba(14, 13, 12, 0.1);
  --hatch: rgba(14, 13, 12, 0.075);
}

.ground-signal {
  --bg: var(--signal);
  --fg: var(--ink);
  --sunk: rgba(14, 13, 12, 0.07);
  --accent: var(--ink);
  --muted: rgba(14, 13, 12, 0.72);
  --rule: rgba(14, 13, 12, 0.28);
  --rule-soft: rgba(14, 13, 12, 0.16);
  --hatch: rgba(14, 13, 12, 0.1);
}

body,
.ground-ink,
.ground-paper,
.ground-signal {
  background: var(--bg);
  color: var(--fg);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Print grain. Keeps flat grounds from reading as flat screens. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

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

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 500;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; font-size: var(--fs-small);
  transition: transform var(--fast) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ==========================================================================
   Typography primitives
   ========================================================================== */

.u-display {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.u-label {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.u-lede { font-size: var(--fs-lede); line-height: 1.4; max-width: 44ch; }
.u-muted { color: var(--muted); }

.u-index {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  letter-spacing: 0.06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section { padding-block: var(--section); }
.section--sm { padding-block: var(--section-sm); }
.section--tight-top { padding-top: clamp(2.25rem, 3.5vw, 3.25rem); }
.section--tight-bottom { padding-bottom: clamp(2.25rem, 3.5vw, 3.25rem); }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 5.5vw, 5rem); }
.section-head__title { font-size: var(--fs-h2); max-width: 17ch; }
.section-head__note { color: var(--muted); max-width: 40ch; font-size: var(--fs-small); }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr minmax(0, 28ch);
    align-items: end;
    gap: 4rem;
  }
  .section-head__note { justify-self: end; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease), transform 0.35s var(--ease);
  color: var(--paper);
}
.header[data-hidden='true'] { transform: translateY(-100%); }
.header[data-scrolled='true'] { border-bottom-color: rgba(242, 240, 235, 0.16); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}
.header__logo { display: block; flex: none; }
.header__logo img { width: clamp(108px, 10.5vw, 142px); height: auto; }

.header__nav { display: none; align-items: center; gap: clamp(1.5rem, 2.8vw, 2.5rem); }

.nav-link {
  position: relative;
  color: var(--paper);
  text-decoration: none;
  font-size: var(--fs-small);
  padding-block: 0.35rem;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--fast) var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after { transform: scaleX(1); }

@media (min-width: 880px) { .header__nav { display: flex; } }

.header__toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: none; border: 0; padding: 0.5rem 0; cursor: pointer;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.header__toggle-bars { display: grid; gap: 4px; width: 20px; }
.header__toggle-bars span {
  height: 1.5px; background: currentColor;
  transition: transform var(--fast) var(--ease);
}
.header__toggle[aria-expanded='true'] .header__toggle-bars span:first-child { transform: translateY(5.5px) rotate(45deg); }
.header__toggle[aria-expanded='true'] .header__toggle-bars span:last-child { transform: translateY(-5.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0;
  background: var(--ink); color: var(--paper);
  padding: var(--gutter);
  display: grid; align-content: start; gap: 0.25rem;
  z-index: 99;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.menu[data-open='true'] { opacity: 1; transform: none; pointer-events: auto; }
.menu a:not(.btn):not(.link-underline) {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110;
  font-weight: 800;
  font-size: clamp(2.4rem, 12vw, 3.75rem);
  letter-spacing: -0.04em; line-height: 1.15;
  color: var(--paper); text-decoration: none;
  border-bottom: 1px solid rgba(242, 240, 235, 0.12);
  padding-block: 0.5rem;
  transition: opacity var(--fast) var(--ease);
}
.menu a:not(.btn):not(.link-underline):hover { opacity: 0.6; }
.menu__cta { margin-top: 2.5rem; justify-self: start; }
.menu__mail { margin-top: 1.75rem; font-size: var(--fs-small); color: var(--muted); }
.menu__mail a { color: var(--paper); }
@media (min-width: 880px) {
  .menu { display: none; }
  .header__toggle { display: none; }
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1.05rem 1.7rem;
  background: var(--fg); color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 9px;
  text-decoration: none; cursor: pointer;
  font-size: var(--fs-small);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn__arrow { transition: transform var(--fast) var(--ease); }
.btn:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.8rem; gap: 0.5rem; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }


.header .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.header .btn:hover { background: transparent; color: var(--fg); border-color: var(--fg); }

.link-underline {
  color: inherit; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 2px;
  transition: color var(--fast) var(--ease);
}
.link-underline:hover { opacity: 0.6; }

/* ==========================================================================
   Motion
   ========================================================================== */

[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: 0; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hero__eyebrow::before {
  content: ''; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%; flex: none;
}

.hero__title {
  font-size: clamp(2.85rem, 7vw, 6.75rem);
  max-width: 12ch;
  margin-left: -0.04em;           /* optical: pull the cap stem to the gutter */
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.hero__title .dot { color: var(--accent); }

.hero__foot { display: grid; gap: 2.25rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-content: start; }

@media (min-width: 900px) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4rem; }
}

/* Two-column hero: copy on the left, portrait video on the right. */
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero__lead { min-width: 0; }

.hero__video {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: clamp(16px, 1.6vw, 26px);
  overflow: hidden;
  background: var(--sunk);
  /* Cap the height so a tall portrait clip never pushes the CTAs off-screen. */
  max-height: 78vh;
  justify-self: center;
  width: 100%;
}
.hero__video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5.5rem);
  }
  /* In the narrower column the lede and actions stack rather than sitting
     side by side. */
  .hero__foot { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
  .hero__video { max-width: 480px; justify-self: end; }
}

/* On smaller screens keep the video from getting overly tall. */
@media (max-width: 979px) {
  .hero__video { max-width: 420px; margin-inline: auto; }
}

/* Step band under the hero: the four-step process, condensed. A bordered strip
   of numbered steps with the commitment that each one carries. */
.stepband {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stepband li {
  position: relative;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: clamp(1.6rem, 2.6vw, 2.4rem) clamp(1rem, 1.6vw, 1.75rem);
  border-bottom: 1px solid var(--rule-soft);
  overflow: hidden;
}
.stepband li:nth-child(even) { border-left: 1px solid var(--rule-soft); }
/* Accent bar wipes across on hover. */
.stepband li::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 520ms var(--ease);
}
.stepband li:hover::before { width: 100%; }

.stepband__num {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stepband__title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stepband__commitment {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.stepband__body {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
  max-width: 34ch;
  margin-top: 0.15rem;
}

@media (min-width: 820px) {
  .stepband { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stepband li { border-bottom: 0; }
  .stepband li:nth-child(even) { border-left: 0; }
  .stepband li + li { border-left: 1px solid var(--rule-soft); }
}

/* ==========================================================================
   Ticker: the one moving thing on the site
   ========================================================================== */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(4.5rem, 8vw, 7rem);
  user-select: none;
}
.ticker__track {
  display: flex; width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 108;
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1;
  padding-inline: clamp(1rem, 2.2vw, 2rem);
  white-space: nowrap;
}
/* Every other word drops to an outline, so the band reads as texture. */
.ticker__item--outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--fg);
}
.ticker__sep { color: var(--accent); align-self: center; font-size: clamp(1.5rem, 3vw, 2.5rem); }

@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Scope: photo left (always on), service accordion right
   ========================================================================== */

.scope { display: grid; gap: clamp(2rem, 4vw, 3.25rem); align-items: start; }

/* Section title spans the top, above the photo and the accordion. */
.scope__head {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.35rem);
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
}
.scope__eyebrow { color: var(--muted); }
.scope__title { font-size: var(--fs-h2); max-width: 20ch; }

/* The left frame is always a photo of the open service. Two stacked layers
   crossfade when the selection changes. Same size and corners as the hero video. */
.scope__media {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  border-radius: clamp(16px, 1.6vw, 26px);
  overflow: hidden;
  background: var(--sunk);
  justify-self: center;
}
.scope__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 480ms var(--ease);
}
.scope__media-img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .scope__media-img { transition: none; }
}

.crafts { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-content: start; }
.crafts__eyebrow { color: var(--muted); }
.crafts__list { display: grid; }

/* Each capability is an expandable row. */
.craft { border-top: 1px solid var(--rule); }
.craft:last-of-type { border-bottom: 1px solid var(--rule); }

.craft__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: clamp(0.5rem, 1.1vw, 0.85rem);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.craft__name {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  transition: opacity var(--fast) var(--ease);
}
.craft__head:hover .craft__name { opacity: 0.6; }

/* Plus mark that becomes a minus when the row is open. */
.craft__toggle {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
}
.craft__toggle::before,
.craft__toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 2px;
  background: var(--fg);
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.craft__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.craft[data-open] .craft__toggle::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

/* Panel collapses via max-height for broad browser support. */
.craft__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 360ms var(--ease);
}
.craft[data-open] .craft__panel { max-height: 24rem; }
.craft__panel-inner { padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.craft__blurb {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
  max-width: 48ch;
}

/* Compact, names-only method line under each craft blurb. */
.craft-tags {
  margin-top: clamp(0.85rem, 1.6vw, 1.2rem);
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.craft-tags__sep { color: var(--rule); margin: 0 0.15em; }


@media (min-width: 960px) {
  .scope {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6.5rem);
  }
  .scope__media { justify-self: start; }
  .crafts { padding-top: 0.35rem; }
}

/* ==========================================================================
   Edges: the three commitments
   ========================================================================== */

.edges { display: grid; border-top: 1px solid var(--rule); }
.edge {
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
  display: grid; gap: 1.1rem; align-content: start;
}
.edge__num {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
}
.edge__title { font-size: var(--fs-h3); }
.edge__body { color: var(--muted); max-width: 40ch; }

@media (min-width: 900px) {
  .edges { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }
  .edge { border-bottom: 0; }
}

/* ==========================================================================
   Featured work: colored, free-scrolling job blocks (home page)
   ------------------------------------------------------------------
   Color lives only in this section. Swap --feat / --feat-ink to recolor.
   ========================================================================== */

.jcards {
  --feat: var(--paper);   /* cream card */
  --feat-ink: var(--ink);  /* ink type on cream */
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  /* Bleed to shell edges so the next block peeks and invites a scroll. */
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  padding-bottom: 1.1rem;
}
.jcards::-webkit-scrollbar { height: 4px; }
.jcards::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
.jcards { cursor: grab; }
.jcards.is-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }

.jcard {
  flex: 0 0 clamp(280px, 82%, 620px);
  min-height: clamp(320px, 40vw, 430px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-radius: clamp(14px, 1.4vw, 22px);
  background: var(--feat);
  color: var(--feat-ink);
}

.jcard__top { display: flex; align-items: center; }
.jcard__tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(14, 13, 12, 0.22);
  border-radius: 999px;
}

.jcard__n {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variation-settings: 'wdth' 116;
}
.jcard__item {
  font-size: var(--fs-h4);
  font-variation-settings: 'wdth' 104;
  margin-top: clamp(0.9rem, 1.8vw, 1.4rem);
}
.jcard__detail {
  margin-top: 0.75rem;
  max-width: 36ch;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.5;
  color: rgba(14, 13, 12, 0.72);
}

.jcard__turn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--feat-ink);
  color: var(--feat);
}

/* ==========================================================================
   Page masthead
   ========================================================================== */

.masthead { padding-top: clamp(3rem, 7vw, 6.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.masthead__eyebrow { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); display: block; }
.masthead__title { font-size: var(--fs-h1); max-width: 15ch; margin-left: -0.05em; }
.masthead__lede { margin-top: clamp(1.5rem, 3vw, 2.25rem); color: var(--muted); }

/* Masthead with a portrait brand video alongside the text (contact page). */
.masthead__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.masthead__lead { min-width: 0; }
.masthead__video {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: clamp(16px, 1.6vw, 26px);
  overflow: hidden;
  background: var(--sunk);
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  max-height: 70vh;
}
.masthead__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 980px) {
  .masthead__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(3rem, 5vw, 5.5rem);
  }
  .masthead__video { justify-self: end; max-width: 440px; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta { padding-block: clamp(3rem, 6vw, 5rem); text-align: center; }
.cta__title { font-size: clamp(1.9rem, 5vw, 4rem); white-space: nowrap; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.cta__row { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); justify-items: center; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cta__aside { display: grid; gap: 0.6rem; align-content: start; justify-items: center; }
.cta__aside > * { justify-self: center; }
.cta__mail {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 106; font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); letter-spacing: -0.03em;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__top { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo img { width: 150px; height: auto; }
/* One column on narrow screens. Two cramped the contact address off the edge. */
.footer__cols { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer__col { display: grid; gap: 0.7rem; align-content: start; }
.footer__col a, .footer__col p { font-size: var(--fs-small); color: var(--muted); text-decoration: none; }
.footer__col a { justify-self: start; }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem; border-top: 1px solid var(--rule-soft);
  font-size: var(--fs-small); color: var(--muted);
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Form
   ========================================================================== */

/* Single-column intake: just the form, held at a comfortable reading width. */
.intake { display: grid; }
.intake .form { width: 100%; max-width: 760px; margin-inline: auto; }

.form { display: grid; gap: clamp(2.25rem, 4vw, 3.25rem); }
.form__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55; max-width: 54ch; color: var(--fg);
}
.form-group { display: grid; gap: 1.6rem; }
.form-group__head {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding-top: clamp(1.1rem, 2.4vw, 1.6rem);
  border-top: 1px solid var(--rule);
}
.form-group__num {
  font-size: 1rem; letter-spacing: 0.12em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.form-group__title { font-size: var(--fs-h4); font-variation-settings: 'wdth' 104; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.field { display: grid; gap: 0.5rem; }
.field__label {
  font-family: var(--font-display);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.field__req { color: var(--accent); }
.field__hint { font-size: var(--fs-small); color: var(--muted); }

.input {
  width: 100%; background: transparent;
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem; font-size: 1.05rem; letter-spacing: -0.01em;
  border-radius: 11px; color: var(--fg);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:hover { border-color: color-mix(in srgb, var(--fg) 45%, var(--rule)); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--fg); }
textarea.input { resize: vertical; min-height: 8rem; line-height: 1.5; }
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% + 1px), calc(100% - 7px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2rem; cursor: pointer;
}
select.input option { background: var(--ink); color: var(--paper); }
.ground-paper select.input option { background: var(--paper); color: var(--ink); }
.input[type='date']::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.5; cursor: pointer; }
.ground-paper .input[type='date']::-webkit-calendar-picker-indicator { filter: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: 0.6rem 1.1rem;
  border: 1px solid var(--rule); border-radius: 9px; font-size: var(--fs-small);
  user-select: none;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip:hover span { border-color: var(--fg); }

/* Honeypot: off-screen, never shown to real users. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.form__legal { font-size: var(--fs-small); color: var(--muted); max-width: 32ch; }

.form__status { padding: 1.1rem 1.25rem; border-left: 2px solid var(--accent); background: var(--sunk); font-size: var(--fs-small); }
.form__status[hidden] { display: none; }

.field__error { font-size: var(--fs-small); color: var(--fg); font-weight: 500; }
.field__error:empty { display: none; }
.input[aria-invalid='true'] { border-color: var(--fg); }

/* ==========================================================================
   404
   ========================================================================== */

.notfound { min-height: 68vh; display: grid; align-content: center; gap: 1.5rem; padding-block: var(--section); }
