/* ==========================================================================
   JINJIWORKS — site styles
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #1d1d1f;
  --grey: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --night: #0b0b0c;
  --on-dark: #f5f5f7;
  --on-dark-2: rgba(245, 245, 247, 0.72);
  --on-dark-line: rgba(245, 245, 247, 0.16);

  /* Palette: black × yellow */
  --accent: #0b0b0c;          /* large accent text, stat numbers, check marks */
  --accent-on-dark: #ffd400;  /* accent text on black */
  --eyebrow: #0b0b0c;         /* small labels on white */
  --link: #0b0b0c;            /* text links and focus rings */
  --logo-accent: #0b0b0c;
  --btn-bg: #0b0b0c;
  --btn-ink: #ffffff;
  --btn-hover: #3a3a3c;
  --feature: #ffd400;         /* Method band and Attraction row */
  --feature-ink: #0b0b0c;
  --feature-muted: rgba(11, 11, 12, 0.78);
  --feature-tile: rgba(11, 11, 12, 0.08);
  --feature-eyebrow: #0b0b0c;
  --mark: #ffd400;            /* highlighted words on black */
  --match: #ffd400;           /* matched rows in the table graphic */
  --contact-bg: #ffd400;
  --contact-ink: #0b0b0c;
  --contact-muted: rgba(11, 11, 12, 0.76);
  --contact-error: #b00020;

  /* Illustration: a contrasting pair kept separate from the brand palette */
  --pair-sel: #1a6dff;        /* Selection (cool): what the company wants / what candidates have */
  --pair-att: #ef3b2c;        /* Attraction (warm): what candidates want / what the company has */
  --pair-sel-ink: #1160f0;    /* the same hues, deep enough for text on white */
  --pair-att-ink: #d92b1d;

  --font: "Geist", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Accent words get a highlighter mark instead of a colour */
.accent {
  background: url("../img/brush.svg") no-repeat 50% 96% / 102% 52%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Temporary logo: the brush runs under WORKS */
.logo span {
  background: url("../img/brush.svg") no-repeat 50% 92% / 106% 62%;
}

.site-header.is-open .logo span,


.site-footer .logo span {
  background: none;
}

.link-more {
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}


/* Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[lang="en"] body {
  line-height: 1.6;
  letter-spacing: -0.005em;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

html[lang="en"] :is(h1, h2, h3) {
  line-height: 1.04;
  letter-spacing: -0.04em;
}

html[lang="ja"] :is(h1, h2, h3, h4, .lede, .method-quote, .touch-list li, .stat-label, .project-client) {
  word-break: auto-phrase;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Keeps a Japanese phrase on one line */
.nb {
  display: inline-block;
}

/* Pull a line-opening 「 back so its built-in space doesn't read as an indent */
.hang {
  margin-inline-start: -0.5em;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Type scale
   -------------------------------------------------------------------------- */

.display {
  font-size: clamp(2.75rem, 0.8rem + 8.4vw, 9rem);
}

html[lang="en"] .display {
  font-size: clamp(2.75rem, 0.8rem + 6.6vw, 7.5rem);
}

.headline {
  font-size: clamp(2.25rem, 0.9rem + 5.4vw, 6rem);
}

.title {
  font-size: clamp(2rem, 1rem + 3.2vw, 3.75rem);
}

.eyebrow {
  display: block;
  margin-bottom: clamp(16px, 2vw, 24px);
  color: var(--eyebrow);
  font-size: clamp(15px, 0.85rem + 0.3vw, 19px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero-note {
  max-width: 40em;
  margin: 20px auto 0;
  color: var(--grey);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.8;
}

.lede {
  color: var(--ink-2);
  font-size: clamp(1.25rem, 0.95rem + 1.2vw, 1.875rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

html[lang="en"] .lede {
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.body-l {
  color: var(--grey);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.85;
}

html[lang="en"] .body-l {
  line-height: 1.6;
}

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

.hl {
  color: var(--mark);
}

/* Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: progress;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-black {
  background: var(--ink);
  color: #fff;
}

.btn-black:hover {
  background: #3a3a3c;
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--link);
  font-size: clamp(17px, 0.95rem + 0.25vw, 19px);
  font-weight: 600;
  text-decoration: none;
}

.link-more::after {
  content: "›";
  font-size: 1.3em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.2s var(--ease);
}

.link-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-more:hover::after {
  transform: translate(3px, -1px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--logo-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav ul {
  display: flex;
  gap: 30px;
}

.site-nav ul a {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.site-nav ul a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch:hover {
  color: var(--link);
}

.nav-toggle {
  display: none;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease);
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 12px var(--gutter) 32px;
    overflow-y: auto;
    background: #fff;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    opacity: 1;
  }

  .nav-actions {
    justify-content: space-between;
    padding-top: 28px;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-nav {
    position: static;
    display: flex;
    height: auto;
    padding: 0;
    background: none;
  }

  html:not(.js) .site-nav ul {
    display: none;
  }

  html:not(.js) .nav-actions {
    padding: 0;
  }
}

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

.section {
  padding: clamp(96px, 12vw, 176px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--night);
  color: var(--on-dark);
}

.section-dark :is(h2, h3) {
  color: #fff;
}

.section-dark .eyebrow {
  color: var(--mark);
}

.section-dark .body-l {
  color: var(--on-dark-2);
}

.section-feature {
  background: var(--feature);
  color: var(--feature-ink);
}

.section-feature :is(h2, h3) {
  color: var(--feature-ink);
}

.section-feature .eyebrow {
  color: var(--feature-eyebrow);
}

.section-feature .body-l {
  color: var(--feature-muted);
}

.center {
  text-align: center;
}

.section-head {
  max-width: 920px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.section-head.center {
  margin-inline: auto;
}

.section-head .body-l {
  max-width: 36em;
  margin-top: clamp(20px, 2.4vw, 32px);
}

.section-head.center .body-l {
  margin-inline: auto;
}

.sub-label {
  margin-bottom: 20px;
  color: var(--grey);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

html[lang="en"] .sub-label {
  line-height: 1.5;
  letter-spacing: 0;
}

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

.hero {
  padding: clamp(80px, 13vw, 184px) 0 clamp(96px, 12vw, 168px);
  text-align: center;
}

.hero h1 {
  max-width: 11em;
  margin-inline: auto;
}

html[lang="en"] .hero h1 {
  max-width: 13em;
}

.hero .lede {
  max-width: 30em;
  margin: clamp(28px, 3.4vw, 44px) auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: clamp(36px, 4.4vw, 56px);
}

/* Statement
   -------------------------------------------------------------------------- */

.statement h2 {
  max-width: 11em;
  margin-inline: auto;
}

/* The first half of a headline sentence, set smaller on its own line */
.headline-pre {
  display: block;
  margin-bottom: 0.4em;
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem);
  letter-spacing: 0;
}

.statement-lead {
  max-width: 34em;
  margin: 0 auto clamp(20px, 2.4vw, 32px);
  color: var(--on-dark-2);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.8;
}

.statement .body-l {
  max-width: 34em;
  margin: clamp(32px, 4vw, 52px) auto 0;
}

/* Selection & Attraction illustration
   -------------------------------------------------------------------------- */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 0 clamp(24px, 8vw, 150px);
}

.pair-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* The figure takes 52% of the stage; the rest is room for the "have" label beside the ball */
.pair-stage {
  position: relative;
  margin-top: clamp(14px, 2vw, 24px);
}

.pair-figure {
  display: block;
  width: 52%;
  height: auto;
}

.is-we .pair-figure {
  margin-left: auto;
}

.is-they .pair-figure {
  margin-right: auto;
}

.fig-outline,
.fig-bubble {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 12;
  stroke-linejoin: round;
}

/* Hand-drawn scribbles: the background shows through, so they read as ideas, not objects */
.scribble {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scribble.is-sel {
  stroke: var(--pair-sel);
}

.scribble.is-att {
  stroke: var(--pair-att);
}

.pair-tag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  line-height: 1.15;
}

.pair-tag.is-end {
  align-items: flex-end;
  text-align: right;
}

/* The label itself carries the colour of its scribble */
.pair-tag.is-sel b,
.key.is-sel b {
  color: var(--pair-sel-ink);
}

.pair-tag.is-att b,
.key.is-att b {
  color: var(--pair-att-ink);
}

.pair-tag b {
  font-size: clamp(11px, 0.45rem + 1.05vw, 20px);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pair-tag small {
  color: var(--grey);
  font-size: clamp(10px, 0.5rem + 0.5vw, 14px);
  font-weight: 600;
  line-height: 1.4;
}

/* "Have" sits right beside the idea the person hugs (its centre: 68% down) */
.pair-tag.is-have {
  position: absolute;
  top: 68%;
  max-width: calc(49% - 14px);
  transform: translateY(-50%);
}

/* Clear of the elbow, which reaches a little past the scribble */
.is-we .pair-tag.is-have {
  right: calc(51% + 14px);
}

.is-they .pair-tag.is-have {
  left: calc(51% + 14px);
}

.pair-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px clamp(24px, 4vw, 56px);
  max-width: 880px;
  margin: clamp(56px, 7vw, 96px) auto 0;
}

.key {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--bg-alt);
  color: var(--ink);
  line-height: 1.5;
}

.key b {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.key small {
  margin-left: 8px;
  color: var(--grey);
  font-size: 13px;
  font-weight: 600;
}

.key-text {
  color: var(--ink-2);
  font-size: 15px;
}

@media (max-width: 640px) {
  /* Side by side the figures get too small on phones, so stack the two people */
  .pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .pair-tag b {
    font-size: 16px;
  }

  .pair-tag small {
    font-size: 13px;
  }

  .pair-key {
    grid-template-columns: minmax(0, 1fr);
  }
}

.equal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(40px, 6vw, 96px);
  margin-top: clamp(72px, 9vw, 120px);
}

.equal h3 {
  font-size: clamp(2rem, 1rem + 3.2vw, 3.75rem);
}

.equal .body-l + .body-l {
  margin-top: 20px;
}

.equal .strong {
  color: var(--ink);
  font-weight: 700;
}

.equal .link-more {
  margin-top: 24px;
}

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

/* Method: Attraction Table
   -------------------------------------------------------------------------- */

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
}

.method-quote {
  margin-top: clamp(28px, 3.4vw, 44px);
  color: var(--feature-ink);
  font-size: clamp(1.5rem, 0.95rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

html[lang="en"] .method-quote {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.method-copy .body-l {
  margin-top: clamp(20px, 2.4vw, 28px);
}

.table-visual {
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 48px 96px -48px rgba(0, 0, 0, 0.45);
}

.tv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.tv-dots {
  display: flex;
  gap: 6px;
}

.tv-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.tv-cols,
.tv-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}

.tv-cols {
  padding: 18px 0 12px;
}

.tv-cols span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(11px, 0.6rem + 0.4vw, 13px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.tv-cols em {
  color: var(--grey);
  font-style: normal;
}

.tv-cols small {
  color: var(--grey);
  font-size: clamp(11px, 0.6rem + 0.3vw, 13px);
  font-weight: 600;
  letter-spacing: 0;
}

.tv-cols .is-benefit {
  color: var(--link);
}

.tv-row {
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--bg-alt);
}

.tv-row i {
  display: block;
  width: var(--w, 80%);
  height: 10px;
  margin-top: 4px;
  border-radius: 5px;
  background: #e8e8ed;
}

.tv-row i.is-benefit {
  background: var(--match);
}

.tv-row.is-example {
  color: var(--ink-2);
  font-size: clamp(12px, 0.65rem + 0.35vw, 14px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

html[lang="en"] .tv-row.is-example {
  line-height: 1.35;
}

.tv-row.is-example .is-benefit {
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 8px;
  background: #fff4c2;
  background: color-mix(in srgb, var(--match) 22%, #fff);
  color: var(--ink);
  font-weight: 800;
}

.tv-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-list li {
  position: relative;
  padding-left: 10px;
}

.tv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.tv-note {
  margin-top: 8px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.tbl-title {
  max-width: 16em;
  margin-top: clamp(80px, 10vw, 136px);
  font-size: clamp(2rem, 1rem + 3.2vw, 3.75rem);
}

.tbl-lead {
  max-width: 40em;
  margin-top: clamp(20px, 2.4vw, 28px);
}

.tbl-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
}

.tbl-part {
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 2px solid currentColor;
}

.tbl-num {
  color: var(--feature-eyebrow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tbl-en {
  margin-top: 10px;
  color: var(--feature-ink);
  font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.tbl-ja {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 10px;
  color: var(--feature-ink);
  font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.4;
}

html[lang="en"] .tbl-ja {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tbl-flag {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--feature-ink);
  color: var(--feature);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
}

.tbl-part .body-l {
  margin-top: 14px;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
}

.touch {
  margin-top: clamp(80px, 10vw, 136px);
}

.touch h3 {
  max-width: 16em;
  font-size: clamp(2rem, 1rem + 3.2vw, 3.75rem);
}

.touch .body-l {
  max-width: 40em;
  margin-top: clamp(20px, 2.4vw, 28px);
}

.touch-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
}

.touch-list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--feature-tile);
  font-size: clamp(16px, 0.9rem + 0.3vw, 19px);
  font-weight: 700;
  line-height: 1.45;
}

html[lang="en"] .touch-list li {
  line-height: 1.3;
}

.touch-list .num {
  color: var(--feature-eyebrow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .method-grid,
  .tbl-parts {
    grid-template-columns: minmax(0, 1fr);
  }

  .touch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .table-visual {
    padding: 16px;
  }

  .tv-cols,
  .tv-row {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 8px;
  }

  .touch-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .touch-list li {
    flex-direction: row;
    align-items: baseline;
    padding: 16px 18px;
  }
}

/* Results
   -------------------------------------------------------------------------- */

.cases {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  gap: 28px clamp(32px, 4vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 2px solid var(--ink);
}

.case-num {
  color: var(--eyebrow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.case-client {
  margin-top: 10px;
  font-size: clamp(1.375rem, 1rem + 1.1vw, 2rem);
  line-height: 1.35;
}

html[lang="en"] .case-client {
  line-height: 1.1;
}

.case-desc {
  margin-top: 12px;
  color: var(--grey);
  font-size: 16px;
  line-height: 1.7;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.case-meta span + span::before {
  content: "／";
  margin-right: 16px;
  color: var(--line);
}

html[lang="en"] .case-meta span + span::before {
  content: "/";
}

.case-stats.case-stats-text {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.case-outcome {
  max-width: 34em;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.8;
}

.case-stats {
  display: grid;
  grid-template-columns: minmax(0, 30em);
  gap: clamp(24px, 3vw, 40px);
}

.stat-num {
  display: block;
  color: var(--accent);
  font-size: clamp(3.5rem, 1.5rem + 4.4vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stat-num small {
  margin-left: 0.04em;
  font-size: 0.5em;
  letter-spacing: -0.02em;
}


.stat-label {
  margin-top: 20px;
  color: var(--ink);
  font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.4;
}

.stat-label small {
  display: block;
  margin-top: 4px;
  color: var(--grey);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.stat-note {
  margin-top: 8px;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.7;
}

.clients {
  margin-top: clamp(80px, 10vw, 136px);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.project-list.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-list.is-stack {
  grid-template-columns: minmax(0, 1fr);
}

.project-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.project-client {
  color: var(--ink);
  font-size: clamp(1.25rem, 0.95rem + 0.7vw, 1.625rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.project-text {
  margin-top: 10px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.8;
}

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

@media (max-width: 860px) {
  .project-list,
  .project-list.is-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .case-stats {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 16px;
  }

  .stat-num {
    font-size: 2.5rem;
  }

  .stat-label {
    margin-top: 12px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .stat-note {
    font-size: 13px;
  }

}

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

.commit-list {
  margin-bottom: clamp(80px, 10vw, 128px);
  border-bottom: 1px solid var(--line);
}

.commit {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}

.commit::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.commit h3 {
  font-size: clamp(1.5rem, 0.9rem + 2vw, 2.75rem);
}

.commit p {
  color: var(--grey);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  background: #fff;
}

.service h3 {
  font-size: clamp(1.25rem, 1rem + 0.6vw, 1.625rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

html[lang="en"] .service h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service p {
  margin-top: 14px;
  color: var(--grey);
  font-size: 16px;
  line-height: 1.75;
}

html[lang="en"] .service p {
  line-height: 1.55;
}

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

  .commit p {
    grid-column: 2;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Expertise
   -------------------------------------------------------------------------- */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 96px);
}

.expertise .kicker {
  margin-bottom: 14px;
  color: var(--eyebrow);
  font-size: clamp(15px, 0.85rem + 0.3vw, 18px);
  font-weight: 700;
  line-height: 1.4;
}

.expertise h3 {
  font-size: clamp(2.5rem, 1rem + 4.6vw, 5.5rem);
}

.expertise p:last-child {
  max-width: 26em;
  margin-top: 24px;
}

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

/* About: the name
   -------------------------------------------------------------------------- */

.about h2 {
  max-width: 11em;
  margin-inline: auto;
}

.about .body-l {
  max-width: 34em;
  margin: clamp(32px, 4vw, 52px) auto 0;
}

.about .body-l + .body-l {
  margin-top: 20px;
}

/* Company
   -------------------------------------------------------------------------- */

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  gap: clamp(32px, 4vw, 64px);
}

.company-table {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.company-table .row {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.company-table dt {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.company-table dd {
  margin: 0;
  color: var(--ink-2);
}

.company-table .note {
  display: block;
  color: var(--grey);
  font-size: 14px;
}

.map {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e8ed;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

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

  .map {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .company-table .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 16px 0;
  }
}

/* Careers
   -------------------------------------------------------------------------- */

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

.careers-role {
  padding: clamp(24px, 3vw, 40px);
  border: 2px solid var(--ink);
  border-radius: 20px;
}

.careers-role h3 {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 18px 0 20px;
}

.role-meta div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.role-meta dt {
  color: var(--grey);
  font-size: 13px;
  font-weight: 700;
}

.role-meta dd {
  font-size: 16px;
  font-weight: 800;
}

.careers-role p {
  color: var(--grey);
  line-height: 1.8;
}

.careers-role .btn {
  margin-top: 24px;
}

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

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

.contact {
  background: var(--contact-bg);
  color: var(--contact-ink);
}

.contact :focus-visible {
  outline-color: var(--contact-ink);
}

.contact .eyebrow {
  color: var(--contact-ink);
}

.contact .body-l {
  color: var(--contact-muted);
}

.contact h2 {
  color: var(--contact-ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(48px, 6vw, 104px);
}

.contact-copy .body-l {
  margin-top: clamp(20px, 2.4vw, 32px);
}

.contact-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  color: var(--contact-muted);
  font-size: 15px;
  line-height: 1.8;
}

.form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--contact-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.req {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.6;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  appearance: none;
}

.input::placeholder {
  color: #8e8e93;
}

.input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 11, 12, 0.12);
}

textarea.input {
  min-height: 180px;
  resize: vertical;
}

select.input {
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%230b0b0c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.consent a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}

.form-status {
  color: var(--contact-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.form-status[data-state="error"] {
  color: var(--contact-error);
}

/* Spam trap, hidden from people */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

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

/* Legal pages
   -------------------------------------------------------------------------- */

.legal {
  padding: clamp(64px, 9vw, 128px) 0 clamp(96px, 11vw, 152px);
}

.legal-inner {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.legal .updated {
  margin-top: 20px;
  color: var(--grey);
  font-size: 15px;
}

.legal h2 {
  margin-top: 44px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.legal {
  font-size: 16px;
}

html[lang="en"] .legal :is(h1, h2) {
  line-height: 1.35;
  letter-spacing: 0;
}

.legal p,
.legal ul {
  margin-top: 16px;
}

.legal ul {
  padding-left: 1.3em;
  list-style: disc;
}

.legal li + li {
  margin-top: 8px;
}

.legal .lead {
  margin-top: 32px;
  color: var(--ink-2);
}

.legal .contact-box {
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--bg-alt);
}

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

.site-footer {
  padding: 72px 0 36px;
  background: var(--night);
  color: var(--on-dark-2);
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--on-dark-line);
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo span {
  color: var(--accent-on-dark);
}

.footer-brand address {
  margin-top: 18px;
  font-style: normal;
  line-height: 1.8;
}

/* Read down each column, in page order */
.footer-nav ul {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 12px 48px;
}

.footer-nav a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.footer-bottom p span + span::before {
  content: "/";
  margin: 0 10px;
  opacity: 0.5;
}

@media (max-width: 640px) {
  .footer-nav ul {
    grid-template-rows: repeat(6, auto);
  }
}

/* Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 1s var(--ease) both;
    animation-delay: calc(var(--d, 0) * 120ms);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Palette preview switcher (temporary, remove before launch)
   -------------------------------------------------------------------------- */


/* 404
   -------------------------------------------------------------------------- */

.page-404 main {
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: 100svh;
  padding: 80px 0;
}

.page-404 .btn {
  margin-right: 16px;
}
