/* Sakusen: sakusenai.com. Palette War Room, see brand/BRAND.md. One red accent per view. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #111315;
  --ink-2: #181b1e;
  --bone: #ece8e1;
  --red: #e5372b;
  --steel: #6b7076;
  --muted: #a9adb3;
  --line: rgba(107, 112, 118, 0.45);
  --line-soft: rgba(107, 112, 118, 0.22);
  --grid: rgba(107, 112, 118, 0.13);

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --wrap: 1200px;
  --section: 88px;
  color-scheme: dark;
}
@media (min-width: 720px) {
  :root { --gutter: 40px; --section: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
::selection { background: var(--bone); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--bone); color: var(--ink); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 19, 21, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: block; flex: none; }
.brand img { height: 32px; width: auto; }
@media (min-width: 960px) {
  .site-head .wrap { height: 80px; }
  .brand img { height: 42px; }
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--bone); }
.nav .sections { display: none; gap: 28px; }
@media (min-width: 960px) { .nav .sections { display: flex; } }
.lang { display: flex; gap: 2px; font-family: var(--display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; }
.lang a, .lang span { padding: 6px 8px; border: 1px solid transparent; }
.lang [aria-current] { color: var(--bone); border-color: var(--line); }
.nav .contact-link { color: var(--bone); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.005em;
  text-decoration: none; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-bone { background: var(--bone); color: var(--ink); }
.btn-bone:hover { background: #fff; }
/* The page's red button: Ink text at 19px bold passes AA large text (4.36:1). */
.btn-red { background: var(--red); color: var(--ink); }
.btn-red:hover { background: #f0493d; }
.btn-ghost { color: var(--bone); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--bone); }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero .wrap { position: relative; display: grid; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
}
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 5.75rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 11ch; }
.hero .lede { margin-top: 28px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; max-width: 34ch; }
.hero .lede-2 { margin-top: 14px; max-width: 46ch; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Operations map (hero SVG) */
.opmap { width: 100%; max-width: 560px; justify-self: center; }
.opmap svg { width: 100%; height: auto; overflow: visible; }
.opmap .gridline { stroke: var(--steel); stroke-opacity: .35; stroke-width: 1; }
.opmap .coord { fill: var(--muted); font-family: var(--display); font-size: 13px; font-weight: 500; }
.opmap .route { fill: none; stroke: var(--bone); stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; }
.opmap .wp rect { fill: var(--ink); stroke: var(--bone); stroke-width: 2.5; }
.opmap .wp text.n { fill: var(--bone); font-family: var(--display); font-weight: 700; font-size: 14px; text-anchor: middle; }
.opmap .lbl { fill: var(--bone); font-family: var(--display); font-weight: 700; font-size: 18px; }
.opmap .sub { fill: var(--muted); font-family: var(--body); font-size: 13px; }
.opmap .start { fill: var(--bone); }
.opmap .objective { fill: var(--red); }
.opmap .ring { fill: none; stroke: var(--bone); stroke-width: 1.5; stroke-dasharray: 4 5; }
@media (max-width: 599px) {
  .opmap .lbl { font-size: 22px; }
  .opmap .sub { font-size: 17px; }
  .opmap .coord { font-size: 15px; }
}
.opmap figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .opmap .route { stroke-dasharray: 640; stroke-dashoffset: 640; animation: draw 1.8s cubic-bezier(.65, 0, .35, 1) .25s forwards; }
  .opmap .wp, .opmap .lblg, .opmap .goal { opacity: 0; animation: appear .35s ease-out forwards; }
  .opmap .d1 { animation-delay: .45s; } .opmap .d2 { animation-delay: .8s; }
  .opmap .d3 { animation-delay: 1.15s; } .opmap .d4 { animation-delay: 1.5s; }
  .opmap .goal { animation-delay: 1.95s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; border-bottom: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; }
@media (min-width: 960px) { .section-head { grid-template-columns: 5fr 6fr; gap: 56px; align-items: end; } }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 52ch; }

/* Two angles: + revenue / - cost */
.angles { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .angles { grid-template-columns: 1fr 1fr; } }
.angle { padding: 36px 0 8px; }
@media (min-width: 800px) {
  .angle { padding: 44px 48px 12px 0; }
  .angle + .angle { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 799px) { .angle + .angle { border-top: 1px solid var(--line); margin-top: 32px; } }
.angle .sign { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 9vw, 7rem); line-height: .8; letter-spacing: -0.04em; display: block; margin-bottom: 20px; }
.angle h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.angle > p { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.angle ul { list-style: none; padding: 0; margin: 28px 0 0; }
.angle li { padding: 16px 0; border-top: 1px solid var(--line-soft); max-width: 52ch; }
.angle li strong { font-weight: 600; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; gap: 20px; padding: 40px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .service { grid-template-columns: 4fr 7fr; gap: 56px; padding: 52px 0; } }
.service h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.service .tag { display: inline-block; margin-top: 14px; font-size: 0.9375rem; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; }
.service .body > p + p, .service .body > p + dl, .service .body > dl + p { margin-top: 16px; }
.service .body > p { max-width: 62ch; }
.service dl { margin: 20px 0 0; display: grid; gap: 4px 20px; }
@media (min-width: 600px) { .service dl { grid-template-columns: max-content 1fr; } }
.service dt { color: var(--muted); }
.service dd { margin: 0 0 8px; }

/* The payback formula: the assessment's deliverable, shown as worked arithmetic */
.formula { margin-top: 28px; border: 1px solid var(--line); background: var(--ink-2); }
.formula .eq { padding: 20px 22px; font-family: var(--display); font-weight: 700; font-size: clamp(1.0625rem, 2vw, 1.375rem); line-height: 1.35; letter-spacing: -0.01em; border-bottom: 1px solid var(--line-soft); text-wrap: balance; }
.formula .eq .op { color: var(--muted); font-weight: 500; padding: 0 .2em; }
.formula .ex { padding: 16px 22px 18px; font-size: 0.9375rem; color: var(--muted); }
.formula .ex b { color: var(--bone); font-weight: 600; }
.cols { padding: 14px 22px 16px; border-bottom: 1px solid var(--line-soft); font-size: 0.875rem; color: var(--muted); }

/* Method: 4 steps on one track, the first three inside 48 h */
.track { position: relative; display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
@media (min-width: 960px) { .track { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 0 0 40px 44px; }
.step::before { /* vertical track on mobile */
  content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step .node {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; border: 2.5px solid var(--bone); background: var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 0.8125rem; line-height: 1;
}
.step h3 { font-size: 1.625rem; }
.step .when { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.step p { margin-top: 14px; max-width: 34ch; }
@media (min-width: 960px) {
  .step { padding: 52px 32px 0 0; }
  .step::before { left: 22px; right: 0; top: 10px; bottom: auto; width: auto; height: 2px; }
  .step:last-child::before { display: block; right: 40%; }
}
.spans { display: none; }
@media (min-width: 960px) {
  .spans { display: grid; grid-template-columns: 3fr 1fr; margin-bottom: 18px; font-family: var(--display); font-weight: 700; font-size: 0.9375rem; }
  .spans span { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 8px 0 0 10px; color: var(--muted); }
  .spans span + span { margin-left: 0; }
}
.after { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--muted); max-width: 70ch; }
.after strong { color: var(--bone); font-weight: 600; }

/* Selected work */
.work { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .work { grid-template-columns: 1fr 1fr; } }
.case { padding: 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) {
  .case { padding: 44px 44px 44px 0; }
  .case:nth-child(even) { padding-left: 44px; padding-right: 0; border-left: 1px solid var(--line); }
}
.case .fig { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.case .fig-label { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.case h3 { margin-top: 28px; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; }
.case p { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.note { margin-top: 28px; font-size: 0.9375rem; color: var(--muted); max-width: 72ch; }

.lessons { margin-top: 56px; display: grid; gap: 24px; }
@media (min-width: 960px) { .lessons { grid-template-columns: 4fr 7fr; gap: 56px; } }
.lessons h3 { font-size: 1.625rem; }
.lessons ul { list-style: none; margin: 0; padding: 0; }
.lessons li { padding: 18px 0; border-top: 1px solid var(--line-soft); max-width: 66ch; }
.lessons li:first-child { border-top: 0; padding-top: 0; }
.lessons li strong { display: block; font-weight: 600; margin-bottom: 4px; }
.lessons li span { color: var(--muted); }

/* In progress slot: dashed outline = sector not yet taken */
.pending { margin-top: 64px; border: 1.5px dashed var(--steel); padding: 32px 24px; display: grid; gap: 18px; }
@media (min-width: 960px) { .pending { grid-template-columns: 4fr 7fr; gap: 56px; padding: 44px 48px; } }
.pending .status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 0.9375rem; color: var(--muted); }
.pending .status::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--muted); }
.pending h3 { margin-top: 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pending p { max-width: 60ch; }
.pending p + p { margin-top: 12px; color: var(--muted); }

/* About */
.about .wrap { display: grid; gap: 24px; }
@media (min-width: 960px) { .about .wrap { grid-template-columns: 5fr 6fr; gap: 56px; } }
.about h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 12ch; }
.about p { max-width: 58ch; }
.about p + p { margin-top: 16px; color: var(--muted); }

/* Contact */
.contact { position: relative; overflow: hidden; padding: var(--section) 0; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  mask-image: linear-gradient(to top, #000 40%, transparent);
}
.contact .wrap { position: relative; }
.contact h2 { font-size: clamp(2.25rem, 5.6vw, 4.5rem); max-width: 16ch; letter-spacing: -0.03em; }
.contact .lede { margin-top: 20px; max-width: 48ch; color: var(--muted); font-size: 1.125rem; }
.contact .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-red { overflow-wrap: anywhere; }
.social { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); }
.social a { color: var(--bone); }

/* Footer */
.site-foot { border-top: 1px solid var(--line-soft); padding: 32px 0 40px; font-size: 0.9375rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-foot .left { display: flex; align-items: center; gap: 14px; }
.site-foot img { width: 28px; height: 28px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--bone); }

/* 404 */
.lost { min-height: calc(100vh - 65px); display: grid; align-content: center; padding: 64px 0; }
.lost h1 { font-size: clamp(2.5rem, 7vw, 5rem); max-width: 14ch; }
.lost p { margin-top: 20px; max-width: 48ch; color: var(--muted); }
.lost .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
