/* =========================================================
   Owari Work Way (OWW) — site styles
   Palette: washi paper, sumi ink, shachihoko gold, vermilion
   ========================================================= */

:root {
  --paper: #f4efe5;
  --paper-2: #ebe3d4;
  --paper-light: #faf7f1;
  --ink: #15181f;
  --ink-2: #252a36;
  --ink-soft: #3a4150;
  --muted: #5d6370;
  --line: rgba(21, 24, 31, 0.12);
  --line-strong: rgba(21, 24, 31, 0.24);

  --indigo: #1e3458;
  --gold: #b8882c;
  --gold-2: #d9b565;
  --gold-text: #7d5a14;
  --shu: #c0432c;
  --shu-light: #e0644b;

  --night: #10131a;
  --night-2: #181c26;
  --on-night: #efe8da;
  --on-night-muted: #a8a69f;
  --night-line: rgba(239, 232, 218, 0.14);

  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

:focus-visible {
  outline: 2px solid var(--shu);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}

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

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 229, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-gear {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.8s var(--ease);
}

.brand:hover .brand-gear {
  transform: rotate(60deg);
}

.brand-dot {
  fill: var(--shu);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.005em;
}

.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(21, 24, 31, 0.06);
}

.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--shu);
}

.nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(21, 24, 31, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.12rem;
  }

  .nav-link:hover {
    background: transparent;
  }

  .nav-link.is-active::after {
    left: auto;
    right: 4px;
    top: 50%;
    bottom: auto;
    margin: -2.5px 0 0;
  }

  .nav .btn {
    margin: 24px 0 0;
    justify-content: center;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(21, 24, 31, 0.04);
}

.btn--gold {
  background: var(--gold-2);
  color: var(--ink);
}

.btn--gold:hover {
  background: #e6c77f;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.text-link .icon {
  width: 18px;
  height: 18px;
}

.text-link:hover {
  color: var(--shu);
  gap: 12px;
}

/* ---------- Typographic helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.lead {
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  color: var(--ink-soft);
}

.prose p {
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 1.1em;
}

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

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section--tint {
  background: var(--paper-2);
}

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

.section--night .eyebrow,
.section--night .mono-label {
  color: var(--gold-2);
}

.section--night p,
.section--night .lead {
  color: var(--on-night-muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.section-head > p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--muted);
}

.section--night .section-head > p:not(.eyebrow) {
  color: var(--on-night-muted);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 64px;
  align-items: end;
  max-width: none;
}

.section-head--split > p:not(.eyebrow) {
  margin: 0;
}

@media (max-width: 820px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

/* Thin vertical "warp threads", a nod to the Toyoda looms */
.threads::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(21, 24, 31, 0.05) 0 1px,
    transparent 1px 72px
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

.threads > * {
  position: relative;
  z-index: 1;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px) 0 clamp(24px, 3vw, 40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero h1 .line {
  display: block;
}

.hero h1 .sing {
  color: var(--shu);
}

.hero .lead {
  max-width: 560px;
  margin: 28px 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-tags li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dial-face {
  fill: var(--paper-light);
}

.dial-ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.dial-ticks {
  fill: none;
  stroke: var(--ink);
  opacity: 0.3;
}

.dial-ticks--major {
  opacity: 0.55;
}

.gear--gold { fill: var(--gold); }
.gear--indigo { fill: var(--indigo); }
.gear--shu { fill: var(--shu); }
.gear--ink { fill: var(--ink-2); }

.axle {
  fill: var(--paper-light);
}

.spin-cw,
.spin-ccw {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin var(--dur, 30s) linear infinite;
}

.spin-ccw {
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.callout-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.55;
}

.callout-dot {
  fill: var(--ink);
}

.callout-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: var(--ink);
}

.callout-text--sing {
  fill: var(--shu);
}

.seal rect {
  fill: var(--shu);
}

.seal text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  fill: var(--paper-light);
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: -8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: min(400px, 88%);
    order: -1;
  }

  .hero-caption {
    display: none;
  }
}

/* ---------- Grids & cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

a.card {
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -28px rgba(21, 24, 31, 0.38);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--gold-2);
}

.card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.card p {
  color: var(--muted);
}

.card .card-label {
  display: block;
  margin-top: auto;
  padding-top: 28px;
}

.card .card-label + .tag-list {
  margin-top: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Home: intro / heritage ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.intro-grid h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.heritage {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.heritage li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.heritage-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-text);
}

.heritage h3 {
  margin: 4px 0 6px;
  font-size: 1.3rem;
}

.heritage p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Motto ---------- */

.motto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.motto-half {
  padding: clamp(32px, 5vw, 64px);
}

.motto-half + .motto-half {
  border-left: 1px solid var(--night-line);
  background: rgba(239, 232, 218, 0.03);
}

.motto-half h3 {
  margin: 20px 0 20px;
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 1.05;
  color: var(--on-night);
}

.motto-half--sing h3 {
  color: var(--shu-light);
}

.motto-half p {
  max-width: 420px;
  font-size: 1.08rem;
}

.verse {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--night-line);
}

.verse-jp {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.18em;
  color: var(--on-night);
}

.verse-jp span {
  display: block;
}

.verse-jp .sing {
  color: var(--shu-light);
}

.verse-en {
  max-width: 640px;
}

.verse-en .translation {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: var(--on-night);
}

@media (max-width: 760px) {
  .motto {
    grid-template-columns: 1fr;
  }

  .motto-half + .motto-half {
    border-left: 0;
    border-top: 1px solid var(--night-line);
  }
}

/* ---------- Audience scenarios ---------- */

.scenario {
  padding: 32px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scenario-icon {
  color: var(--gold-text);
  margin-bottom: 24px;
}

.scenario-icon .icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.4;
}

.scenario h3 {
  margin: 8px 0 10px;
  font-size: 1.4rem;
}

.scenario p {
  margin: 0;
  color: var(--muted);
}

.criteria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.criteria li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  font-weight: 500;
}

.criteria li + li {
  border-left: 1px solid var(--line);
}

.criteria .icon {
  color: var(--shu);
}

.criteria-intro {
  margin: 48px 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.criteria-intro + .criteria {
  margin-top: 16px;
}

@media (max-width: 820px) {
  .criteria {
    grid-template-columns: 1fr;
  }

  .criteria li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line-strong);
}

.step {
  position: relative;
  padding-top: 32px;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold-text);
}

.step::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--shu);
  box-shadow: 0 0 0 4px var(--paper);
}

.section--tint .step::after {
  box-shadow: 0 0 0 4px var(--paper-2);
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
}

.step p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 760px;
  margin-top: 56px;
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: var(--paper-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note p {
  margin: 0;
  color: var(--ink-soft);
}

.note .icon {
  color: var(--gold-text);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .steps {
    --cols: 2 !important;
    gap: 40px 32px;
    border-top: 0;
  }

  .step {
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 640px) {
  .steps {
    --cols: 1 !important;
    gap: 0;
    border-left: 1px solid var(--line-strong);
    margin-left: 4px;
  }

  .step {
    padding: 0 0 36px 28px;
    border-top: 0;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step::after {
    top: 3px;
    left: -5px;
  }
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  background: var(--ink);
  color: var(--on-night);
  border-radius: var(--radius-lg);
}

.cta h3 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.cta p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--on-night-muted);
  font-size: 1.08rem;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta-gear {
  position: absolute !important;
  z-index: 0 !important;
  right: -130px;
  bottom: -230px;
  width: 360px;
  height: 360px;
  pointer-events: none;
}

.cta-gear path {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 1.2;
  opacity: 0.32;
}

@media (max-width: 760px) {
  .cta {
    grid-template-columns: 1fr;
  }

  .cta-gear {
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -80px;
  }
}

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

.name-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.name-part {
  padding: 36px 32px 8px 0;
}

.name-part + .name-part {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.name-part .word {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
}

.name-part .word small {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-text);
}

.name-part p {
  color: var(--muted);
}

.abbr-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 48px;
  padding: 24px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.abbr-line .abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.abbr-line .abbr span {
  color: var(--shu);
}

.abbr-line p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .name-grid {
    grid-template-columns: 1fr;
  }

  .name-part,
  .name-part + .name-part {
    padding: 28px 0 20px;
    border-left: 0;
  }

  .name-part + .name-part {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Vision & mission ---------- */

.vm-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
}

.vm-card h3 {
  margin: 20px 0 20px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
}

.vm-card--vision {
  background: var(--ink);
  color: var(--on-night);
}

.vm-card--vision .mono-label {
  color: var(--gold-2);
}

.vm-card--vision p {
  color: var(--on-night-muted);
}

.vm-card--mission {
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.vm-card--mission p {
  color: var(--ink-soft);
}

/* ---------- Features (icon + text rows) ---------- */

.feature {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper-light);
  border: 1px solid var(--line);
  color: var(--gold-text);
}

.section--night .feature-icon {
  background: var(--night-2);
  border-color: var(--night-line);
  color: var(--gold-2);
}

.feature h3 {
  margin: 8px 0 8px;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.section--night .feature p {
  color: var(--on-night-muted);
}

/* ---------- Pull quote & values ---------- */

.pull {
  max-width: 820px;
  margin: 56px 0 0;
  padding-left: 24px;
  border-left: 3px solid var(--shu);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
}

.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}

.values-grid h3 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.value-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: val;
  border-top: 1px solid var(--line-strong);
}

.value-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: val;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
}

.value-list li::before {
  content: counter(val, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold-text);
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

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

.booking {
  overflow: hidden;
}

/* Without JavaScript the calendar can't load; the link below it remains. */
html:not(.js) .booking {
  display: none;
}

/* On wide screens Calendly adds space above its card; pull it closer to the heading. */
@media (min-width: 1200px) {
  .booking {
    margin-top: -40px;
  }
}

/* Starting heights match what Calendly needs; main.js adjusts them as visitors move through the steps. */
.calendly-embed {
  position: relative;
  min-width: 280px;
  height: 670px;
}

.calendly-embed iframe {
  position: relative;
  z-index: 1;
  display: block;
}

/* Calendly's own spinner needs its stylesheet; the status text below replaces it. */
.calendly-embed .calendly-spinner {
  display: none;
}

.calendly-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.calendly-embed.is-loaded .calendly-status {
  display: none;
}

.booking-alt {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.booking-alt a {
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 3px;
}

.booking-alt a:hover {
  color: var(--shu);
}

.booking-alt .icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
}

.contact-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}

.aside-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.aside-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
}

.aside-card--night {
  background: var(--ink);
  color: var(--on-night);
}

.aside-card--night .mono-label {
  color: var(--gold-2);
}

.aside-card h3 {
  margin: 14px 0 20px;
  font-size: 1.5rem;
}

.next-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.next-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  color: var(--on-night-muted);
  counter-increment: next;
}

.next-steps li::before {
  content: counter(next);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-2);
}

.aside-card--plain {
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.aside-card--plain > .mono-label {
  display: block;
  margin-bottom: 20px;
}

.contact-detail {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-detail:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-detail:first-of-type {
  padding-top: 0;
}

.contact-detail .icon {
  color: var(--gold-text);
  margin-top: 2px;
}

.contact-detail span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-detail a,
.contact-detail strong {
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  color: var(--shu);
}

@media (max-width: 1024px) {
  .contact-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-more > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .contact-more {
    grid-template-columns: 1fr;
  }

  .calendly-embed {
    height: 840px;
  }
}

/* ---------- Section seal & sub-blocks ---------- */

.seal-tag {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: none;
  color: var(--shu);
}

.block {
  margin-top: clamp(64px, 8vw, 104px);
}

.block-head {
  margin-bottom: 32px;
}

.block-head h3 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.values-grid .mono-label {
  display: block;
  margin-bottom: 16px;
}

/* ---------- Check list ---------- */

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

.check-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-soft);
}

.check-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--shu);
  stroke-width: 2;
}

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

.site-footer {
  padding: clamp(64px, 8vw, 96px) 0 32px;
  background: var(--night);
  color: var(--on-night-muted);
}

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

.site-footer .brand {
  color: var(--on-night);
}

.site-footer .brand-sub {
  color: var(--on-night-muted);
}

.footer-about {
  max-width: 380px;
  margin-top: 24px;
  font-size: 0.95rem;
}

.footer-motto {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--on-night);
}

.footer-motto span {
  color: var(--shu-light);
}

.footer-col h2 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

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

.footer-col a:hover {
  color: var(--on-night);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 0.85rem;
}

.footer-bottom .jp {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Full width so the email address fits on one line */
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

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

  .spin-cw,
  .spin-ccw {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
