/* ==========================================================================
   WITHIN — corporate site
   Ported from "Within Corporate Site.dc.html" (Claude Design project
   86941588-b910-4d6a-88c4-df082aeda316). Tokens below mirror that file.
   ========================================================================== */

:root {
  /* Colour */
  --ink:          #000000;
  --ink-hover:    #33312C;
  --ink-soft:     #33312C;   /* body copy on light, hairlines on dark */
  --ink-dim:      #55524B;   /* secondary copy, link hover on light */
  --muted:        #8A867C;   /* micro-labels */
  --muted-light:  #B8B4AA;   /* body copy on dark */
  --line:         #DDD9D0;   /* hairline on light */
  --line-dark:    #33312C;   /* hairline on dark */
  --surface:      #FFFFFF;
  --surface-tint: #F5F4F1;   /* card hover on light */
  --surface-dark-tint: #1C1B18; /* card hover on dark */

  /* Type */
  --font-display: 'Archivo', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-logo:    'Orbitron', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'DM Sans', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --shell-max: 1360px;
  /* The env() floor keeps copy clear of the notch/curved edge in landscape;
     both insets are 0 in portrait, so the clamp is the value everywhere else. */
  --gutter: max(clamp(24px, 4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  --section-y: clamp(72px, 9vw, 128px);
  --radius-btn: 16px;
  --radius-media: 18px;
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: var(--ink); text-decoration: none; transition: color .18s ease, background-color .18s ease; }

::selection { background: var(--ink); color: var(--surface); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--surface);
  padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: var(--surface); }

/* ------------------------------------------------------ shared bits ----- */

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

.section { padding-block: var(--section-y); }

.section--dark {
  background: var(--ink);
  color: var(--surface);
  padding-block: var(--section-y);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .45em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow--muted { color: var(--muted-light); }
.eyebrow--dim   { color: var(--ink-dim); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -.02em;
  line-height: 1.02;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
.h2--spaced { margin-bottom: clamp(40px, 6vw, 72px); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 17px;
  padding: 18px 32px;
  border-radius: var(--radius-btn);
}
.btn--sm { padding: 14px 26px; font-size: 16px; border-radius: 14px; gap: 12px; }
.btn--dark  { background: var(--ink); color: var(--surface); }
.btn--dark:hover, .btn--dark:focus-visible  { background: var(--ink-hover); color: var(--surface); }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { background: var(--line); color: var(--ink); }
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-underline {
  font-size: 17px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}
.link-underline:hover { color: var(--ink-dim); border-color: var(--ink-dim); }
.link-underline--light { color: var(--surface); border-bottom-color: var(--surface); }
.link-underline--light:hover { color: var(--muted-light); border-bottom-color: var(--muted-light); }

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .28em;
}
.wordmark__mark {
  width: auto;
  height: 54px;
  display: block;
}
.wordmark__text {
  font-family: var(--font-logo);
  font-weight: 700;
}
.wordmark--sm { font-size: 16px; gap: 12px; }
.wordmark--sm .wordmark__mark { height: 26px; }

.wordmark--light { color: var(--surface); }
.wordmark--light .wordmark__mark { filter: invert(1); }
.wordmark--light:hover { color: var(--surface); }

/* ---------------------------------------------------------------- nav --- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 28px var(--gutter);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 16px;
}
.nav__links > a:not(.btn) { opacity: .85; }
.nav__links > a:not(.btn):hover { opacity: 1; color: var(--ink-dim); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before { content: ''; position: absolute; top: -6px; }
.nav__toggle-bars::after  { content: ''; position: absolute; top: 6px; }

.nav[data-open] .nav__toggle-bars { background: transparent; }
.nav[data-open] .nav__toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav[data-open] .nav__toggle-bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; position: relative; z-index: 20; background: var(--surface); padding-block: 18px; }
  /* 54px of logo makes a 110px bar that eats a seventh of a phone screen. */
  .wordmark__mark { height: 40px; }
  .wordmark { font-size: 19px; gap: 12px; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .nav[data-open] .nav__links { display: flex; }
  .nav__links > a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__links > a.btn { justify-content: center; border-bottom: 0; margin-top: 16px; }
}

/* -------------------------------------------------------- lang switch --- */

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang[hidden] { display: none; }

.lang__btn {
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--font-display);
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
  cursor: default;
}

@media (max-width: 900px) {
  /* Full-width row in the mobile panel, matching the link rhythm above it. */
  .lang { align-self: flex-start; margin: 16px 0 4px; }
}

/* A 25px-tall pill is a miss waiting to happen on a thumb. Grow the hit area
   wherever the pointer is coarse, without changing the mark's size. */
@media (pointer: coarse) {
  .lang__btn { padding: 12px 18px; }
  .nav__links > a:not(.btn) { min-height: 48px; display: flex; align-items: center; }
}

/* -------------------------------------------------- japanese typography -- */

/* .case__title is absent from every rule below on purpose: the product names
   are Latin in both languages, so they keep the display face's own tracking. */

/* Japanese sets denser than Latin. Drop the negative tracking the display
   face carries, open the leading on body copy, and keep kinsoku shori
   (line-break: strict) so small kana never start a line. */
:lang(ja) .hero__title,
:lang(ja) .h2,
:lang(ja) .footer__title,
:lang(ja) .cell__title,
:lang(ja) .post__title {
  letter-spacing: 0;
  line-height: 1.28;
  line-break: strict;
  /* Japanese breaks between any two characters, so an unbalanced heading can
     strand a single glyph on the last line. */
  text-wrap: balance;
}

/* The display size is tuned for six-letter English words; the same clamp on
   full-width kanji overruns the copy column. */
:lang(ja) .hero__title { font-size: clamp(48px, 6.4vw, 96px); }
/* Kana and kanji fill their em box, so they read a size larger than the
   Latin display faces at the same value. Pull the headings back to ~78%,
   matching the hero. */
:lang(ja) .h2 { font-size: clamp(28px, 3.5vw, 50px); }
:lang(ja) .h2--sm { font-size: clamp(26px, 2.9vw, 42px); }

/* Katakana loanwords are single units: never break inside one. `anywhere` is
   the escape hatch for a run genuinely wider than its column. */
:lang(ja) .cell__title,
:lang(ja) .case__tag,
:lang(ja) .post__meta {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* A full Japanese sentence can break between any two characters, so at phone
   width a display heading splits mid-word — "プロジェクト" across two lines
   reads as a typo. `auto-phrase` breaks on phrase boundaries instead; where it
   is unsupported the declaration is dropped and kinsoku shori still applies. */
:lang(ja) .h2,
:lang(ja) .hero__title,
:lang(ja) .footer__title {
  word-break: auto-phrase;
}

/* `text-transform: uppercase` is set for Latin micro-labels; on a Japanese tag
   it only mangles the Latin fragments inside it ("iOS" → "IOS"). */
:lang(ja) .case__tag,
:lang(ja) .post__meta { text-transform: none; }

:lang(ja) .hero__lede,
:lang(ja) .about__lede,
:lang(ja) .cell__desc,
:lang(ja) .case__desc {
  line-height: 1.85;
  line-break: strict;
  /* Body copy needs phrase-aware breaking as much as the headings do: without
     it a lede splits mid-compound ("の会 / 社です"), which reads as an error
     rather than a wrap. Unsupported values are dropped, leaving kinsoku shori. */
  word-break: auto-phrase;
  /* Keeps the last line from stranding one or two characters. */
  text-wrap: pretty;
}

/* Hand-placed breaks in the Japanese copy (`<br class="wrap-br">`) set the
   rhythm at desktop width. Below the copy column's own measure they would only
   add a second, ragged wrap on top of the automatic one, so drop them. */
@media (max-width: 760px) {
  .wrap-br { display: none; }
}

/* The 520px Latin measure holds ~24 full-width characters; the longest
   hand-broken segment is 28, so each one wrapped again and the paragraph came
   out in six ragged lines. Measure the column in `em` instead: it now tracks
   the clamped font size, so a segment that fits at one width fits at them all. */
:lang(ja) .hero__lede { max-width: 29em; }

/* .45em / .3em tracking is set for uppercase Latin micro-labels; kana and
   kanji are already full-width and read as scattered at that spacing. */
:lang(ja) .eyebrow { letter-spacing: .12em; }
:lang(ja) .post__meta,
:lang(ja) .case__tag { letter-spacing: .08em; }

/* The vertical hero labels are a Latin design device; .35em tracking reads as
   broken-apart text in kana, so pull it in. */
:lang(ja) .hero__side-labels { letter-spacing: .25em; }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(64px, 8vw, 120px);
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero__scenery {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  /* Bleed past the 1360px shell to the viewport's right edge on wide screens. */
  right: min(0px, calc(50% - 50vw));
  pointer-events: none;
}

/* Drop the real photo at assets/img/hero.jpg — the gradient below is the
   fallback and stays visible behind any transparency in the image. */
.hero__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 62%;
  background-color: #B9C8DC;
  background-image:
    linear-gradient(170deg, rgba(20,20,18,.10) 0%, rgba(20,20,18,0) 45%),
    url('../img/fuji.png'),
    linear-gradient(200deg, #C9D6E6 0%, #E3D9CC 52%, #8F9AA6 100%);
  background-size: cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
          mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}

.hero__shard {
  position: absolute;
  transform: skewX(-10deg);
}
.hero__shard--wide {
  top: 4%; right: 24%;
  width: 22%; height: 88%;
  background: rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border-left: 1px solid rgba(255, 255, 255, .6);
  border-right: 1px solid rgba(255, 255, 255, .6);
}
.hero__shard--narrow {
  top: 14%; right: 14%;
  width: 9%; height: 56%;
  background: rgba(255, 255, 255, .35);
}

.hero__side-labels {
  position: absolute;
  top: 18%;
  right: clamp(24px, 3vw, 48px);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .35em;
  line-height: 2.1;
  text-align: left;
}
.hero__side-rule {
  display: block;
  width: calc(100% - .35em); height: 2px;
  background: var(--ink);
  margin-top: 16px;
}

.hero__copy { position: relative; max-width: 640px; }
.hero__copy .eyebrow { margin-bottom: 28px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8.5vw, 124px);
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 32px;
}

.hero__lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 40px;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

/* Below the nav breakpoint the side-by-side composition has no room: the photo
   used to sit behind the copy at .32 opacity, which cost the headline its
   contrast and the photograph its presence. Stack instead — copy on white,
   then the image full-bleed at full strength, with the glass shards kept as
   the same device they are on desktop. */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: clamp(24px, 6vw, 48px) 0 0;
  }

  .hero__copy {
    order: 1;
    max-width: none;
    padding-inline: var(--gutter);
  }

  .hero__scenery {
    order: 2;
    position: relative;
    inset: auto;
    /* The hero drops its own gutter above, so 100% is already edge to edge —
       and unlike 100vw it stays honest when a classic scrollbar is present. */
    width: 100%;
    /* Width-driven, but never taller than two thirds of a landscape screen. */
    height: min(clamp(240px, 56vw, 420px), 64vh);
    margin-top: clamp(40px, 9vw, 72px);
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 1;
    background-position: center 42%;
    /* The horizontal fade was a left-edge blend into the copy column; stacked,
       the seam that matters is the top one. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  }

  .hero__side-labels { display: none; }
  .hero__shard--wide { top: 0; right: 14%; height: 100%; width: 26%; }
  .hero__shard--narrow { top: 0; right: 4%; height: 72%; width: 11%; }

  .hero__actions { gap: 24px; }
  .hero__lede { margin-bottom: 36px; }
}

/* One-handed reach: below the tablet band the primary action spans the column
   so it is a thumb-sized target wherever the thumb lands. */
@media (max-width: 560px) {
  .hero__actions { align-items: stretch; gap: 20px; }
  .hero__actions .btn { justify-content: center; }
  .hero__actions .link-underline { align-self: flex-start; }
}

/* -------------------------------------------- bordered cell grids ------- */

/* Column counts are explicit rather than auto-fit: four cells into three
   columns leaves one stranded on a half-empty row, and the bordered grid makes
   that gap read as a mistake. 1 / 2 / 4 always divides evenly. */
.grid-cells {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px)  { .grid-cells--dark { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .grid-cells--dark { grid-template-columns: repeat(4, 1fr); } }
/* The insights grid holds three posts, so it steps 1 → 3. */
@media (min-width: 860px)  { .grid-cells:not(.grid-cells--dark) { grid-template-columns: repeat(3, 1fr); } }
.grid-cells--dark { border-color: var(--line-dark); }

.grid-cells > li { display: flex; }

.cell, .post {
  flex: 1;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 28px 44px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink);
  min-height: 240px;
  transition: background-color .18s ease;
}
.cell:hover { background: var(--surface-dark-tint); }

/* Stacked, the 240px floor and the deep bottom padding leave a dead band under
   every card and stretch four services over three screens. Let each cell be as
   tall as its copy. */
@media (max-width: 699px) {
  .cell {
    min-height: 0;
    gap: 12px;
    padding: 26px 22px 30px;
  }
  .cell__num { font-size: 12px; }
}

.cell__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--muted);
}
.cell__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  /* Every title holds one line at the same size: 24px wherever the longest one
     fits, stepping down with the column instead of wrapping. */
  font-size: min(24px, 8.2cqi);
  white-space: nowrap;
  overflow-wrap: normal;
}
.cell__desc { color: var(--muted-light); line-height: 1.6; font-size: 15.5px; }

/* insights cards sit on the light surface */
.post {
  gap: 16px;
  padding: 32px 28px 40px;
  min-height: 0;
  background: var(--surface);
  border-right-color: var(--line);
  border-bottom-color: var(--line);
}
.post:hover { background: var(--surface-tint); }
.post__meta {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.post__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.post__read {
  margin-top: auto;
  align-self: flex-start;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
}

/* --------------------------------------------------------------- work --- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

/* Three tiles never divide into two columns. In the tablet band the third one
   takes the full width as a wide banner instead of sitting alone at half. */
@media (min-width: 640px) and (max-width: 1023px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid > li:last-child { grid-column: 1 / -1; }
  .work-grid > li:last-child .case__media { aspect-ratio: 21 / 9; }
  .work-grid > li:last-child .case__desc { max-width: 62ch; }
}
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

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

/* Product tiles. The photo for each case is the background-image on the
   matching [data-slot] rule below. 3/2 matches the source screenshots. */
.case__media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-media);
  background-color: var(--surface-tint);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.case__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
}
.case__media[data-slot="work-1"] { background-image: url('../img/products/mybeautycare.png'); }
.case__media[data-slot="work-2"] { background-image: url('../img/products/next_train.png'); }
.case__media[data-slot="work-3"] { background-image: url('../img/products/sensei.png'); }

.case__body { display: block; }
.case__tag {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.case__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.case__desc { display: block; color: var(--ink-dim); line-height: 1.55; font-size: 15.5px; }

/* -------------------------------------------------------------- about --- */

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__inner {
  padding-block: clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__lede {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 17px;
  max-width: 480px;
  margin-top: 24px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}
.stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 3.5vw, 52px);
  letter-spacing: -.02em;
}
.stat__label { margin: 6px 0 0; color: var(--ink-dim); font-size: 15px; }

/* ------------------------------------------------------------- footer --- */

.footer { background: var(--ink); color: var(--surface); }

.footer__inner { padding: clamp(80px, 10vw, 140px) var(--gutter) 48px; }
.footer__inner .eyebrow { margin-bottom: 24px; }

.footer__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 96px);
  letter-spacing: -.03em;
  line-height: .98;
  margin-bottom: 40px;
  /* No max-width: the explicit <br> sets the two lines, and "what's next —
     together." must stay whole on the second one. */
  text-wrap: nowrap;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: var(--muted);
}
.footer__social { display: flex; gap: 28px; }
.footer__social a { color: var(--muted); }
.footer__social a:hover { color: var(--surface); }
.footer__copy { margin: 0; }

/* Below this the display clamp bottoms out at 44px, so the second line no
   longer fits the viewport — let it wrap instead of overflowing. */
@media (max-width: 620px) {
  .footer__title {
    text-wrap: balance;
  }
}
