:root {
  --ink: #18241f;
  --muted: #5e7067;
  --paper: #eef2ef;
  --blue: #dceef3;
  --blue-strong: #4d98ad;
  --green: #e1eddd;
  --green-strong: #71956a;
  --line: #c8d5cd;
  --black: #141916;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 14%, rgb(255 255 255 / .9), transparent 24rem),
    repeating-radial-gradient(ellipse at 78% 23%, transparent 0 42px, rgb(83 121 99 / .06) 43px 44px),
    var(--paper);
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
}

button, a { color: inherit; font: inherit; }
a { text-decoration: none; }

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

.intro {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-height) + 92px) clamp(30px, 7vw, 98px) 92px;
  background:
    linear-gradient(110deg, rgb(239 245 242 / .97) 0 54%, rgb(220 238 243 / .86) 54%),
    repeating-linear-gradient(22deg, transparent 0 34px, rgb(77 152 173 / .08) 35px 36px);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 44px 44px;
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  border: 2px solid rgb(77 152 173 / .2);
  border-radius: 48% 52% 60% 40%;
  transform: rotate(-12deg);
}

.intro::before {
  width: 450px;
  height: 260px;
  right: -35px;
  top: 135px;
  box-shadow: 0 0 0 28px rgb(77 152 173 / .08), 0 0 0 58px rgb(113 149 106 / .07);
}

.intro::after {
  width: 330px;
  height: 180px;
  right: 65px;
  top: 175px;
}

.intro-copy { position: relative; z-index: 2; max-width: 850px; }

.intro-label,
.map-coordinate {
  margin: 0;
  color: var(--blue-strong);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.map-coordinate {
  position: absolute;
  top: calc(var(--header-height) + 30px);
  right: clamp(30px, 7vw, 98px);
  color: var(--muted);
}

.intro h1 {
  max-width: 850px;
  margin: 18px 0 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.intro-subtitle {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 760;
}

.intro-lead { max-width: 730px; margin: 0; color: var(--muted); font-size: 1.08rem; }

.route-mark {
  position: absolute;
  z-index: 2;
  right: clamp(30px, 7vw, 98px);
  bottom: 64px;
  display: flex;
  align-items: center;
}

.route-mark span {
  display: block;
  width: 12px;
  height: 12px;
  border: 3px solid var(--green-strong);
  border-radius: 50%;
}

.route-mark span + span {
  width: 72px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: var(--green-strong);
}

.article-layout {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 62px);
  padding-block: 90px 120px;
}

.contents {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 10px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.contents-title {
  margin-bottom: 8px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  writing-mode: vertical-rl;
}

.contents a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
  border-radius: 50%;
  transition: color .2s, background .2s;
}

.contents a:hover,
.contents a:focus-visible { color: #fff; background: var(--blue-strong); }

.article { display: grid; gap: 26px; }

.content-section {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 58px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgb(70 98 81 / .13);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgb(42 69 54 / .07);
}

.green-section { background: rgb(225 237 221 / .82); }
.blue-section { background: rgb(220 238 243 / .84); }
.neutral-section { background: rgb(250 251 249 / .88); }

.section-number {
  align-self: start;
  margin: 5px 0 0;
  color: var(--green-strong);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.blue-section .section-number { color: var(--blue-strong); }
.section-content { max-width: 790px; }

.section-content h2 {
  margin: 0 0 30px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.section-content p { margin: 0 0 1.25em; }
.section-content p:last-child { margin-bottom: 0; }

.section-content ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.section-content li { position: relative; padding-left: 30px; }

.section-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 14px;
  height: 3px;
  background: var(--blue-strong);
}

.signal-path {
  overflow-x: auto;
  margin-bottom: 30px !important;
  padding: 18px 20px;
  color: #fff;
  background: var(--ink);
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem;
  white-space: nowrap;
}

.project-image { margin: 34px 0 38px; }

.thumbnail-button {
  position: relative;
  display: block;
  width: min(100%, 430px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 36px rgb(35 64 49 / .18);
  cursor: zoom-in;
}

.thumbnail-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .25s;
}

.thumbnail-button:hover img,
.thumbnail-button:focus-visible img { transform: scale(1.025); }

.thumbnail-button span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgb(20 25 22 / .9);
  border-radius: 50%;
  font-weight: 800;
}

.lightbox {
  width: min(94vw, 1400px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.lightbox::backdrop { background: rgb(10 15 12 / .9); backdrop-filter: blur(8px); }

.lightbox img {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 20px;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(20 25 22 / .9);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px clamp(24px, 7vw, 120px);
  color: #dce6df;
  background: var(--black);
}

.site-footer strong { color: #fff; font-size: 1.1rem; letter-spacing: .12em; }
.site-footer > div { display: flex; flex-direction: column; }

.site-footer a {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section-shell { width: min(100% - 28px, 720px); }

  .intro {
    min-height: 590px;
    align-items: end;
    padding: calc(var(--header-height) + 78px) 18px 50px;
    border-radius: 0 0 28px 28px;
  }

  .intro-copy,
  .intro-lead { width: 100%; max-width: none; }

  .intro::before { width: 300px; height: 180px; right: -80px; top: 120px; }
  .intro::after { width: 210px; height: 120px; right: -10px; top: 150px; }

  .map-coordinate { top: calc(var(--header-height) + 20px); right: 22px; }

  .intro h1 {
    margin-top: 14px;
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .route-mark, .contents { display: none; }
  .article-layout { display: block; padding-block: 38px 70px; }
  .article { gap: 16px; }

  .content-section {
    display: block;
    padding: 28px 22px 32px;
    border-radius: 24px;
  }

  .section-number { margin-bottom: 12px; }

  .section-content h2 {
    margin-bottom: 24px;
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .signal-path { margin-inline: -8px; font-size: .76rem; }
  .thumbnail-button { width: 100%; }

  .site-footer {
    min-height: 160px;
    align-items: flex-start;
    flex-direction: column;
    padding: 42px 24px;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .intro {
    min-height: 0;
    padding-top: calc(var(--header-height) + 42px);
    padding-bottom: 38px;
  }

  .intro h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 8.5vw, 3.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
