:root {
  --ink: #102d2a;
  --muted: #526761;
  --paper: #f5f4ef;
  --lime: #d6f36a;
  --line: #d9ded7;
  --mist: #e9eee7;
  --white: #fff;
  --dark-copy: #cfddd4;
  --dark-line: #527166;
  --font: 'DM Sans', system-ui, sans-serif;
  --nav-height: 82px;
  --gutter: max(clamp(20px, 6vw, 96px), calc((100% - 1260px) / 2));
  --section-space: clamp(48px, 7vw, 100px);
  --column-gap: clamp(24px, 4vw, 60px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.65vw, 66px); letter-spacing: -.052em; }
h2 { font-size: clamp(29px, 3.4vw, 48px); letter-spacing: -.04em; }
h3 { font-size: clamp(18px, 1.65vw, 23px); letter-spacing: -.025em; }
h4 { font-size: 18px; letter-spacing: -.02em; }

.skip-link {
  position: fixed;
  z-index: 60;
  inset: 8px auto auto 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.top, .site-footer, .section, .hero { padding-inline: var(--gutter); }
.top {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: 21px;
  font-weight: 750;
  line-height: 1;
}
.brand-kanji {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border: 1px solid #aebfae;
  background: var(--mist);
  color: #31594a;
  font-size: .65em;
  line-height: 1;
}
.brand-descriptor {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .09em;
}
.top nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.top nav a, .nav-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font: 600 14px/1.2 var(--font);
  text-decoration: none;
}
.top nav a:hover, .top nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.top nav .nav-cta { padding-inline: 16px; border: 1px solid var(--ink); }
.top nav .nav-cta:hover, .top nav .nav-cta[aria-current] {
  color: var(--paper);
  background: var(--ink);
}
.nav-toggle[hidden] { display: none; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer .brand { color: var(--ink); }

.section { padding-block: var(--section-space); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--column-gap);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.section p, .section li { max-width: 68ch; }
.section-head p, .lead { font-size: clamp(16px, 1.4vw, 19px); }
.section-head p, .lead, .section p { color: var(--muted); }
.dark-panel, .hero, .demos {
  background: var(--ink);
  color: var(--paper);
}
.dark-panel p, .hero .lead, .demos p { color: var(--dark-copy); }

.button, .text-link, .back-link, .hero-example, .demo-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 650;
}
.button {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--lime);
  line-height: 1.35;
  text-decoration: none;
}
.button:hover { background: #234e43; }
.hero .button { background: var(--lime); color: var(--ink); }
.hero .button:hover { background: #e5fa9b; }
.hero a:focus-visible, .dark-panel a:focus-visible, .demos a:focus-visible {
  outline-color: var(--lime);
}
.dark-panel a:hover, .demos a:hover, .hero-example:hover {
  text-decoration-thickness: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: var(--column-gap);
  padding-block: var(--section-space);
}
.hero-copy h1 { margin-block: 14px 20px; }
.eyebrow { font-size: 14px; font-weight: 650; }
.hero .eyebrow, .dark-panel .eyebrow { color: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; }
.hero-art {
  position: relative;
  min-height: 365px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  background: radial-gradient(ellipse at 55% 42%, #1b493e, #14382f 50%, var(--ink));
}

.business-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  gap: var(--column-gap);
  border-bottom: 1px solid var(--line);
}
.business-outcomes h2 { max-width: 13ch; }
.business-outcomes-list { border-top: 1px solid var(--line); }
.business-outcomes-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 12px 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.practice-grid, .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.practice, .steps article {
  padding-top: 20px;
  border-top: 1px solid #aebfae;
}
.practice p, .steps p { margin-top: 10px; }
.practice ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.practice li + li { margin-top: 4px; }
.practice li::marker { color: #52763b; }
.method { background: var(--mist); }
.steps article > span {
  display: block;
  margin-bottom: 12px;
  color: #46682b;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hosting-options {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  gap: 20px var(--column-gap);
  margin-top: clamp(32px, 5vw, 60px);
  padding: clamp(20px, 3vw, 36px);
  background: var(--mist);
  border: 1px solid var(--line);
}
.hosting-intro p, .hosting-cards p { margin-top: 8px; }
.hosting-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hosting-cards article { padding: 18px; background: var(--white); border: 1px solid var(--line); }
.hosting-note { grid-column: 2; font-size: 14px; }

.demo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 32px);
  background: #1c3c35;
  border: 1px solid var(--dark-line);
}
.demo-card :is(h2, h3) { font-size: clamp(19px, 1.8vw, 25px); letter-spacing: -.025em; }
.demo-card a { align-self: start; margin-top: auto; color: var(--lime); }
.demos > .text-link { margin-top: 14px; }

.firm, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: center;
}
.firm p, .contact p { margin-top: 14px; }
.firm-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #45672b;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 750;
}
.firm-mark .brand-kanji { font-size: .5em; }
.contact { background: var(--lime); }
.contact p { color: #324b1c; }
.contact-box .button { font-size: 16px; overflow-wrap: anywhere; }

.back-to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vh, 30px);
  z-index: 20;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  box-shadow: 0 5px 18px #102d2a24;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.back-to-top:hover { background: #234e43; }
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 42rem; }
  .practice-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  :root { --nav-height: 0px; }
  .has-mobile-menu { --nav-height: 66px; }
  .top {
    position: relative;
    flex-wrap: wrap;
    min-height: var(--nav-height);
    padding-block: 10px;
    gap: 10px;
  }
  .top nav { flex-wrap: wrap; }
  .has-mobile-menu .top { position: sticky; }
  .nav-toggle:not([hidden]) {
    gap: 10px;
    justify-content: center;
    padding-inline: 12px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle-icon {
    width: 14px;
    height: 10px;
    border-block: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  }
  .has-mobile-menu .top nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    max-height: calc(100dvh - var(--nav-height));
    overflow: auto;
    gap: 0;
    padding: 4px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 16px #102d2a1a;
  }
  .nav-toggle[aria-expanded="false"]:not([hidden]) + nav { display: none; }
  .has-mobile-menu .top nav a {
    min-height: 48px;
    padding-inline: 8px;
    border-bottom: 1px solid var(--line);
  }
  .has-mobile-menu .top nav .nav-cta {
    margin-top: 10px;
    justify-content: center;
    border-color: var(--ink);
  }
  .section-head, .business-outcomes, .hosting-options, .firm, .contact {
    grid-template-columns: 1fr;
  }
  .business-outcomes h2 { max-width: none; }
  .hosting-note { grid-column: auto; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(34px, 9.5vw, 48px); }
  .business-outcomes-list article, .practice-grid, .steps, .hosting-cards, .demo-cards {
    grid-template-columns: 1fr;
  }
  .firm div:nth-child(2) { grid-row: 1; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-to-top { transition: none; }
}

/* Shirube palette: analogous blue and teal, with light surfaces. */
:root {
  --ink: #183c50;
  --muted: #536c73;
  --paper: #fafbf9;
  --lime: #24747a;
  --line: #dee6e3;
  --mist: #eaf1ef;
  --white: #fff;
  --dark-copy: #536c73;
  --dark-line: #c6d8d6;
}
.brand-kanji {
  border-color: var(--line);
  background: var(--mist);
  color: var(--lime);
}
.dark-panel, .hero, .demos {
  background: var(--paper);
  color: var(--ink);
}
.dark-panel p, .hero .lead, .demos p { color: var(--muted); }
.hero .eyebrow, .dark-panel .eyebrow { color: var(--lime); }
.hero .button, .button {
  background: var(--lime);
  color: #fff;
}
.hero .button:hover, .button:hover, .back-to-top:hover { background: #1d6268; }
.hero-art {
  border-color: var(--line);
  background: #fff;
}
.practice, .steps article { border-color: var(--line); }
.practice li::marker, .steps article > span, .firm-mark { color: var(--lime); }
.demo-card {
  background: #fff;
  border-color: var(--line);
}
.demo-card p { color: var(--muted); }
.demo-card a { color: var(--lime); text-underline-offset: .2em; }
.contact { background: #e3efed; }
.contact p { color: var(--muted); }
/* Hero: a portfolio of business outcomes, shown as illustrative applications. */
.hero-copy h1 { max-width: 13ch; }
.hero-art {
  min-height: 410px;
  padding: 26px 28px 20px;
  border: 0;
  background:
    radial-gradient(ellipse at 84% 18%, #235363 0, transparent 38%),
    #123548;
  color: #f7faf8;
}
.impact-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.impact-heading > div { display: grid; gap: 5px; }
.impact-kicker, .impact-tag, .impact-domain, .impact-input, .impact-footer {
  font: 600 9px/1.3 'DM Mono', ui-monospace, monospace;
  letter-spacing: .11em;
}
.impact-kicker { color: #b7cbc9; }
.impact-heading h2 { color: #fff; font: 600 clamp(17px, 1.7vw, 21px)/1.2 var(--font); letter-spacing: -.025em; }
.impact-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #6d9396; color: #d4e3e0; white-space: nowrap; font-size: 8px; }
.impact-tag i { width: 6px; height: 6px; border-radius: 50%; background: #c7df7b; }
.impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 24px; }
.impact-case { min-width: 0; padding-top: 10px; border-top: 1px solid #66848c; }
.impact-visual { display: grid; place-items: center; height: 89px; margin-bottom: 10px; background: linear-gradient(135deg, #1a4354, #153b4c); }
.impact-visual svg { width: 100%; height: 100%; overflow: visible; }
.impact-domain { display: block; margin-bottom: 7px; color: #c7df7b; font-size: 8px; }
.impact-case h3 { min-height: 40px; color: #fff; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.17; letter-spacing: -.025em; }
.impact-case p { min-height: 40px; margin-top: 5px; color: #d0dedf; font-size: 11px; line-height: 1.4; }
.impact-input { display: inline-block; margin-top: 8px; color: #a8c1c5; font-size: 7px; }
.impact-footer { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: #d5e2e0; font-size: 8px; white-space: nowrap; }
.impact-footer i { height: 1px; flex: 1; background: linear-gradient(90deg, #70979a, #c7df7b); }
.impact-growth .orbit { fill: none; stroke: #6faaa9; stroke-width: 1; stroke-dasharray: 3 4; }
.impact-growth .orbit-b { stroke: #9ac4ae; }
.impact-growth .orbit-c { fill: #c7df7b; stroke: #c7df7b; }
.impact-growth .person { fill: #a6d0c2; }
.impact-growth .p1 { fill: #123548; stroke: #c7df7b; stroke-width: 2; }
.impact-growth .p3 { fill: #eab77d; }
.impact-growth .signal { fill: none; stroke: #c7df7b; stroke-width: 1.5; }
.impact-anticipate .chart-grid { fill: none; stroke: #557985; stroke-width: 1; stroke-dasharray: 2 4; }
.impact-anticipate .chart-past, .impact-anticipate .chart-future { fill: none; stroke: #73c3bd; stroke-width: 2.5; stroke-linecap: round; }
.impact-anticipate .chart-future { stroke: #c7df7b; stroke-dasharray: 4 4; }
.impact-anticipate .chart-dot { fill: #c7df7b; }
.impact-anticipate .chart-arrow { fill: none; stroke: #c7df7b; stroke-width: 1.5; }
.impact-automation .doc { fill: #204c5a; stroke: #83aeb0; stroke-width: 1.2; }
.impact-automation .doc-back { opacity: .65; }
.impact-automation .doc-front { fill: #e7f0e8; stroke: #e7f0e8; }
.impact-automation .doc-line { fill: none; stroke: #3f7880; stroke-width: 1.5; }
.impact-automation .route-line { stroke: #c7df7b; stroke-width: 1.5; stroke-dasharray: 3 3; }
.impact-automation .route-node { fill: #c7df7b; }
.impact-automation .check-box { fill: #c7df7b; }
.impact-automation .check { fill: none; stroke: #123548; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .hero-copy h1 { max-width: 12ch; }
  .hero-art { min-height: auto; padding: 20px 18px; }
  .impact-heading { flex-direction: column; }
  .impact-grid { grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
  .impact-case { display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 12px; padding-block: 12px; border-top-color: #557985; }
  .impact-visual { grid-column: 1; grid-row: 1 / span 4; height: 100%; min-height: 96px; margin: 0; }
  .impact-domain, .impact-case h3, .impact-case p, .impact-input { grid-column: 2; }
  .impact-case h3, .impact-case p { min-height: 0; }
  .impact-domain { margin-bottom: 4px; }
  .impact-case p { margin-top: 4px; }
  .impact-input { margin-top: 6px; }
  .impact-footer { gap: 5px; margin-top: 12px; font-size: 7px; letter-spacing: .06em; }
}
