* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #141611;
  --muted: #53594e;
  --line: #daddd3;
  --paper: #fff;
  --lime: #c4ed38;
  --wash: #f4f6ef;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #33732b; outline-offset: 5px; }
.shell { width: min(100% - 5rem, 78rem); margin-inline: auto; }
.masthead, .footer { display: flex; min-height: 4.4rem; align-items: center; justify-content: space-between; gap: .8rem; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.12rem; font-weight: 780; letter-spacing: -.05em; text-decoration: none; }
nav { display: flex; gap: 1.6rem; font-weight: 650; font-size: .91rem; }
nav a, .footer a { text-decoration: none; }
nav a:hover, nav a[aria-current="page"], .footer a:hover { text-decoration: underline; text-decoration-thickness: .15em; text-underline-offset: .32em; }
.hero { min-height: clamp(28rem, 46vw, 41rem); display: grid; grid-template-columns: 1.03fr 1fr; gap: 2rem; align-items: center; padding-block: clamp(2.7rem, 6vw, 5.2rem); }
.hero h1, .article h1 { margin: 0; font-weight: 850; font-size: clamp(3.8rem, 9vw, 8.45rem); line-height: .83; letter-spacing: -.082em; }
.hero h1 span, .article h1 span { color: #6b8f00; }
.role { margin: 1.45rem 0 1.85rem; font-size: clamp(1.4rem, 3vw, 2.5rem); line-height: 1; font-weight: 670; letter-spacing: -.045em; }
.action { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.35rem; min-height: 2.9rem; padding: .42rem .82rem; background: var(--lime); border: 1px solid var(--ink); text-decoration: none; font-weight: 770; }
.action:hover { background: var(--ink); color: var(--lime); }
.hero-art { position: relative; min-width: 0; isolation: isolate; padding: 0 1.25rem 1.25rem 0; }
.hero-art::before { content: ""; position: absolute; z-index: -1; inset: 11% 0 0 11%; background: var(--lime); }
.hero-art img { display: block; width: 100%; height: clamp(19rem, 35vw, 32rem); object-fit: cover; object-position: center 53%; background: #20221c; }
.work-bar { padding-block: clamp(.85rem, 2vw, 1.45rem); background: var(--lime); border-block: 1px solid var(--ink); }
.work-bar h2 { font-size: clamp(1.85rem, 5vw, 4rem); font-weight: 810; letter-spacing: -.067em; line-height: 1.05; }
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); align-items: center; gap: clamp(1.2rem, 4.75vw, 4rem); padding-block: clamp(2rem, 5vw, 4.6rem); }
.feature h3, .project-parts h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 3.2rem); font-weight: 790; letter-spacing: -.055em; line-height: 1.05; }
.feature-copy p, .article p { max-width: 42ch; color: var(--muted); line-height: 1.62; }
.arrow-link { display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .12rem; border-bottom: 3px solid var(--lime); text-decoration: none; font-weight: 740; }
.arrow-link:hover { border-color: var(--ink); }
.project-visual { display: grid; place-items: center; min-height: 16rem; padding: clamp(1.15rem, 4vw, 2.5rem); background: var(--wash); text-decoration: none; border: 1px solid var(--line); }
.project-visual:hover .preview-window { border-color: #628315; }
.preview-window { width: 100%; background: white; border: 1px solid #aeb8a7; }
.preview-bar { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; background: var(--ink); color: white; font-size: .72rem; font-weight: 700; }
.preview-bar span:last-child { color: var(--lime); }
.preview-content { padding: .65rem .72rem; }
.preview-content strong { font-size: clamp(.8rem, 2vw, 1.2rem); letter-spacing: -.035em; }
.preview-chart { position: relative; height: 6rem; margin: .55rem 0; border: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), #e4e9dc calc(25% - 1px) 25%); }
.preview-chart::before, .preview-chart::after { content: ""; position: absolute; inset: 0; background: #2c6a2d; clip-path: polygon(0 79%, 8% 73%, 14% 77%, 21% 57%, 28% 64%, 37% 61%, 44% 43%, 49% 52%, 56% 42%, 65% 50%, 73% 29%, 82% 33%, 88% 17%, 95% 30%, 100% 21%, 100% 24%, 95% 33%, 88% 20%, 82% 36%, 73% 32%, 65% 53%, 56% 45%, 49% 55%, 44% 46%, 37% 64%, 28% 67%, 21% 60%, 14% 80%, 8% 76%, 0 82%); }
.preview-chart::after { background: #657267; transform: scaleY(.62) translateY(44%); }
.preview-legend { display: flex; gap: .65rem; color: var(--muted); font: .63rem ui-monospace, monospace; }
.preview-legend span::before { content: "●"; margin-right: .25rem; color: #2c6a2d; }
.preview-legend span + span::before { color: #657267; }
.article { min-height: 68vh; padding-block: clamp(2.75rem, 9vw, 7rem); }
.article h1 { margin-block: .18em .35em; font-size: clamp(3rem, 8vw, 7.2rem); }
.article .lede { margin: 0; color: var(--ink); font-size: clamp(1.22rem, 3vw, 2rem); font-weight: 680; letter-spacing: -.045em; line-height: 1.18; }
.project-parts { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.7rem; }
.project-parts section { border-top: 6px solid var(--lime); padding-block: .85rem; }
.footer { min-height: 4rem; border-top: 1px solid var(--line); border-bottom: 0; font-size: .83rem; color: var(--muted); }
@media (max-width: 54rem) { .shell { width: calc(100% - 2.7rem); } }
@media (max-width: 37rem) {
  .shell { width: calc(100% - 1.75rem); }
  .masthead { min-height: 3.65rem; }
  nav { gap: .8rem; font-size: .79rem; }
  .hero, .feature, .project-parts { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.3rem; padding-block: 2.5rem 1.4rem; min-height: 0; }
  .hero h1 { font-size: clamp(3.25rem, 14vw, 5.3rem); }
  .role { margin-block: .85rem 1rem; }
  .hero-art { padding: 0 .65rem .65rem 0; }
  .hero-art img { height: clamp(11rem, 54vw, 18rem); object-position: center 45%; }
  .project-visual { min-height: 12rem; }
}

.site-switcher { position: sticky; top: 0; z-index: 8; color: var(--ink); background: var(--wash); border-bottom: 1px solid var(--line); }
.site-switcher-inner { width: min(100% - 1.75rem, 78rem); min-height: 2.45rem; margin-inline: auto; display: flex; gap: .32rem; align-items: center; justify-content: flex-end; }
.site-switcher a { display: inline-flex; min-height: 1.92rem; align-items: center; padding: .16rem .65rem; border: 1px solid transparent; color: inherit; font-size: .78rem; font-weight: 650; text-decoration: none; }
.site-switcher a:hover { border-color: currentColor; }
.site-switcher a[aria-current="true"] { background: var(--lime); }

#work { scroll-margin-top: 2.6rem; }
