:root {
  --paper: #f7f2e7;
  --paper-deep: #eee5d4;
  --ink: #292b27;
  --ink-soft: #65675f;
  --root: #2e4632;
  --root-deep: #203426;
  --sprout: #7d9b4e;
  --moon: #c29a45;
  --moon-ink: #715614;
  --moon-pale: #e7d5a8;
  --night: #1d2a33;
  --night-soft: #2b3c44;
  --line: rgba(46, 70, 50, 0.16);
  --white: #fffdf7;
  --font-display: "Shippori Mincho B1", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --shell: 1120px;
  --shadow: 0 24px 64px rgba(35, 44, 35, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(46, 70, 50, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 70, 50, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-bottom: 30px;
  font-size: clamp(38px, 6.5vw, 78px);
  line-height: 1.38;
  letter-spacing: 0.035em;
}

h2 {
  margin-bottom: 26px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.5;
  letter-spacing: 0.035em;
}

h3 {
  font-size: 20px;
  line-height: 1.6;
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--night);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--moon);
  outline-offset: 4px;
}

.anchor-alias {
  position: relative;
  top: -80px;
  display: block;
  visibility: hidden;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4eddd;
  background: rgba(29, 42, 51, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 0.12em;
}

.brand img {
  width: 34px;
  height: 34px;
}

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

.site-header nav a {
  color: rgba(244, 237, 221, 0.78);
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-header nav a:hover {
  color: var(--moon-pale);
}

.mobile-portfolio-link {
  display: none;
  color: var(--moon-pale);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(840px, calc(100vh - 98px));
  color: #f4eddd;
  background:
    radial-gradient(circle at 84% 18%, rgba(194, 154, 69, 0.2), transparent 26%),
    radial-gradient(circle at 9% 82%, rgba(125, 155, 78, 0.14), transparent 32%),
    linear-gradient(145deg, var(--night) 0%, var(--night-soft) 58%, var(--root-deep) 100%);
}

.hero::after {
  position: absolute;
  right: -160px;
  bottom: -300px;
  width: 660px;
  height: 660px;
  border: 1px solid rgba(231, 213, 168, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-orbit {
  position: absolute;
  top: 85px;
  right: 8vw;
  width: clamp(180px, 29vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(231, 213, 168, 0.26);
  border-radius: 50%;
}

.hero-orbit::before {
  position: absolute;
  inset: 16%;
  border: 1px dashed rgba(231, 213, 168, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-orbit::after {
  position: absolute;
  top: 8%;
  right: 13%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background: var(--moon-pale);
  box-shadow: 0 0 36px rgba(231, 213, 168, 0.66);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(92px, 12vw, 150px);
  padding-bottom: clamp(96px, 12vw, 150px);
}

.hero-cue {
  margin-bottom: 34px;
  color: var(--moon-pale);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.16em;
}

.hero-role {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 14px;
  border: 1px solid rgba(231, 213, 168, 0.38);
  border-radius: 3px 15px 3px 15px;
  color: var(--moon-pale);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-descriptor {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--moon-pale);
  font-size: 15px;
  font-weight: 700;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 38px;
  color: rgba(244, 237, 221, 0.8);
  font-size: 17px;
  line-height: 2.1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--moon-pale);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 6px;
}

.text-link:hover {
  text-decoration: underline;
}

.section {
  padding: clamp(82px, 10vw, 132px) 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--moon);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.situation .eyebrow,
.care-board .eyebrow,
.role-delivery .eyebrow {
  color: var(--moon-ink);
}

.situation {
  background: var(--paper);
}

.situation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.situation-card {
  min-height: 230px;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--root);
  border-radius: 4px 24px 4px 24px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(35, 44, 35, 0.055);
}

.situation-card:nth-child(2) {
  border-top-color: var(--moon);
}

.situation-card:nth-child(3) {
  border-top-color: var(--sprout);
}

.situation-card h3 {
  margin-bottom: 16px;
  color: var(--root);
}

.situation-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.reframe {
  max-width: 850px;
  margin: 42px 0 0;
  padding: 24px 28px;
  border-left: 3px solid var(--moon);
  color: var(--root);
  background: rgba(194, 154, 69, 0.08);
  font-family: var(--font-display);
  font-size: 17px;
}

.approach {
  color: #f4eddd;
  background:
    radial-gradient(circle at 90% 10%, rgba(194, 154, 69, 0.12), transparent 30%),
    var(--root-deep);
}

.section-heading {
  max-width: 760px;
}

.section-heading > p:last-child {
  color: rgba(244, 237, 221, 0.72);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 46px;
}

.steps li {
  position: relative;
  min-height: 290px;
  padding: 30px 24px;
  overflow: hidden;
  border: 1px solid rgba(231, 213, 168, 0.22);
  border-radius: 3px 21px 3px 21px;
  background: rgba(255, 255, 255, 0.035);
}

.steps li::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(231, 213, 168, 0.09);
  border-radius: 50%;
  content: "";
}

.step-number {
  display: block;
  margin-bottom: 26px;
  color: var(--moon);
  font-family: var(--font-display);
  font-size: 34px;
}

.steps h3 {
  margin-bottom: 14px;
  color: var(--moon-pale);
}

.steps p {
  margin-bottom: 0;
  color: rgba(244, 237, 221, 0.72);
  font-size: 14px;
}

.boundary-note {
  max-width: 900px;
  margin: 34px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(231, 213, 168, 0.18);
  color: rgba(244, 237, 221, 0.78);
}

.care-board {
  background: var(--paper-deep);
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 70px;
  align-items: center;
}

.board-copy > p:not(.eyebrow, .board-close) {
  color: var(--ink-soft);
}

.board-close {
  margin-top: 32px;
  color: var(--root);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.board-sheet {
  position: relative;
  padding: 48px 44px 42px;
  border: 1px solid rgba(46, 70, 50, 0.18);
  border-radius: 4px 32px 4px 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.board-sheet::before {
  position: absolute;
  top: 18px;
  left: 44px;
  width: 58px;
  height: 3px;
  content: "";
  background: var(--moon);
}

.board-sheet-label {
  margin-bottom: 26px;
  color: var(--root);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.board-sheet li {
  position: relative;
  padding: 15px 0 15px 28px;
  border-bottom: 1px solid rgba(46, 70, 50, 0.1);
  color: var(--ink-soft);
  font-size: 14px;
}

.board-sheet li:last-child {
  border-bottom: 0;
}

.board-sheet li::before {
  position: absolute;
  top: 25px;
  left: 2px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--sprout);
  border-left: 2px solid var(--sprout);
  content: "";
  transform: rotate(-45deg);
}

.role-delivery {
  background: var(--paper);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}

.split-grid article {
  padding: 36px 0 8px;
  border-top: 1px solid var(--line);
}

.split-grid h2 {
  font-size: clamp(27px, 3.4vw, 41px);
}

.split-grid article > p:last-child {
  color: var(--ink-soft);
}

.fit {
  padding-top: 0;
  background: var(--paper);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fit-card {
  padding: 38px 34px;
  border-radius: 4px 24px 4px 24px;
}

.fit-card h2 {
  margin-bottom: 24px;
  font-size: 25px;
}

.fit-card li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 25px;
  font-size: 14px;
}

.fit-card li::before {
  position: absolute;
  top: 12px;
  left: 3px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.fit-good {
  border: 1px solid rgba(125, 155, 78, 0.35);
  color: var(--root);
  background: rgba(125, 155, 78, 0.11);
}

.fit-not {
  border: 1px solid rgba(101, 103, 95, 0.22);
  color: var(--ink-soft);
  background: rgba(101, 103, 95, 0.065);
}

.provider {
  color: #f4eddd;
  background:
    radial-gradient(circle at 18% 18%, rgba(125, 155, 78, 0.14), transparent 32%),
    var(--night);
}

.provider-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  align-items: start;
}

.provider-card {
  padding: 40px 42px;
  border: 1px solid rgba(231, 213, 168, 0.28);
  border-radius: 3px 26px 3px 26px;
  background: rgba(255, 255, 255, 0.035);
}

.provider-name {
  margin-bottom: 4px;
  color: var(--moon-pale);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.provider-business {
  margin-bottom: 18px;
  color: rgba(244, 237, 221, 0.66);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.provider-role {
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 700;
}

.provider-note {
  margin-bottom: 0;
  color: rgba(244, 237, 221, 0.62);
  font-size: 12px;
}

footer {
  padding: 40px 0;
  color: rgba(244, 237, 221, 0.68);
  background: #142029;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  font-size: 12px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner p:last-child {
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-inner a {
  color: var(--moon-pale);
  text-underline-offset: 5px;
}

@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }

  .mobile-portfolio-link {
    display: inline-flex;
  }

  .situation-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .board-layout,
  .provider-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .board-sheet {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    min-height: 60px;
  }

  .hero {
    min-height: auto;
  }

  .hero-orbit {
    top: 76px;
    right: -90px;
    width: 250px;
    opacity: 0.65;
  }

  .hero-inner {
    padding-top: 76px;
    padding-bottom: 88px;
  }

  .hero-cue {
    margin-bottom: 26px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.45;
  }

  h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .section {
    padding: 74px 0;
  }

  .situation-grid,
  .steps,
  .split-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .situation-card,
  .steps li {
    min-height: 0;
  }

  .steps {
    gap: 12px;
  }

  .steps li {
    padding: 26px 24px;
  }

  .step-number {
    margin-bottom: 14px;
  }

  .board-sheet {
    padding: 42px 26px 32px;
  }

  .board-sheet::before {
    left: 26px;
  }

  .fit {
    padding-top: 0;
  }

  .provider-card {
    padding: 32px 26px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-inner p:last-child {
    text-align: left;
  }
}

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

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