@font-face {
  font-family: "IBM Plex Sans";
  src: url("media/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("media/fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #15352d;
  --body: #253b33;
  --muted: #50665c;
  --green: #2f7655;
  --seed: #c8e17c;
  --blue: #397c91;
  --clay: #a65e36;
  --paper: #f7f7f1;
  --pale: #ecf2e9;
  --line: #d7e1d8;
  --white: #fff;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-data: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 1rem/1.55 var(--font-body); }
button, a { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, .slides:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--seed); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; }
strong, b { font-weight: 600; }
.wrap { width: min(1256px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow, .mono { font-family: var(--font-data); font-size: .75rem; line-height: 1.4; letter-spacing: .055em; text-transform: uppercase; }
.eyebrow { color: var(--green); font-size: .875rem; }
.mono { color: var(--muted); }

.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-size: 1.7rem; font-weight: 600; line-height: 1; letter-spacing: -.025em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links > a:not(.button) { color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; text-underline-offset: 5px; }
.nav-links > a:not(.button):hover { color: var(--ink); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 9px; background: var(--ink); color: var(--white); font-size: 1rem; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color .2s, transform .2s, border-color .2s; }
.button:hover { background: #285346; transform: translateY(-2px); }
.button.alt { background: transparent; color: var(--ink); }
.button.alt:hover { background: var(--pale); }
.button.seed { border-color: var(--seed); background: var(--seed); color: var(--ink); }
.button.seed:hover { background: #d9ed9d; border-color: #d9ed9d; }
.nav .button { min-width: 204px; min-height: 48px; font-size: .95rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); align-items: center; gap: 48px; padding-block: 58px 72px; }
.hero h1 { max-width: 570px; margin: 24px 0 25px; color: var(--ink); font-size: clamp(3.1rem, 4.05vw, 3.625rem); line-height: 1.12; letter-spacing: -.035em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero p { max-width: 52ch; color: var(--muted); font-size: 1.125rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions .button:first-child { min-width: 273px; }
.hero-actions .button.alt { min-width: 181px; }
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 590px; height: 430px; overflow: hidden; border-radius: 22px; background: var(--ink); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, #15352d55 0%, transparent 30%, transparent 55%, #15352dc9 100%); content: ""; pointer-events: none; }
.video-play { position: absolute; z-index: 2; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1px solid #ffffffb0; border-radius: 8px; background: #15352de8; color: var(--white); font-size: .95rem; font-weight: 600; cursor: pointer; transform: translate(-50%, -50%); }
.video-play[hidden] { display: none; }
.video-play:hover { background: var(--ink); }
.visual-top, .visual-bottom { position: absolute; z-index: 1; left: 25px; right: 25px; color: var(--white); }
.visual-top { top: 24px; }
.visual-bottom { bottom: 25px; }
.visual-bottom strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.visual-bottom span { font-size: .9rem; }
.visual-pill { display: inline-block; padding: 9px 12px; border: 1px solid #ffffffb0; border-radius: 6px; background: #15352dd9; color: var(--white); }

.section-head { margin-bottom: 30px; }
.section-head h2, .install h2, .research-grid h2 { margin: 11px 0 0; color: var(--ink); font-size: clamp(2.25rem, 3.05vw, 2.75rem); line-height: 1.13; letter-spacing: -.03em; }
.section-head p { max-width: 70ch; margin: 15px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.section { padding-block: 35px 62px; }
main > section:not(.hero):not(.citation) { position: relative; }
main > section:not(.hero):not(.citation)::before { position: absolute; top: 0; width: clamp(112px, 11vw, 160px); height: 1px; background: var(--green); content: ""; }
main > section.wrap::before { left: 0; }
main > section:not(.wrap)::before { left: max(24px, calc((100% - 1256px) / 2)); }
main > .install::before { background: var(--seed); }

.process-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.process-flow li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 67px; padding: 12px 20px 12px 0; color: var(--ink); font-size: .95rem; font-weight: 600; white-space: nowrap; }
.process-flow li::after { position: absolute; right: 22px; color: var(--green); content: "→"; font-size: 1.4rem; font-weight: 400; }
.process-flow li:last-child::after { display: none; }
.flow-number { color: var(--green); font: 400 .8rem/1 var(--font-data); }

.stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stage { --stage-accent: var(--clay); position: relative; display: flex; flex-direction: column; min-height: 420px; overflow: hidden; padding: 25px 22px 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.stage::before { position: absolute; inset: 0 0 auto; height: 4px; border-radius: 14px 14px 0 0; background: var(--stage-accent); content: ""; }
.stage:nth-child(2) { --stage-accent: var(--green); }
.stage:nth-child(3) { --stage-accent: var(--blue); }
.stage:nth-child(4) { --stage-accent: var(--ink); }
.stage-number { color: var(--stage-accent); }
.stage-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 24px 0 18px; border-radius: 12px; background: var(--pale); color: var(--stage-accent); }
.stage-icon svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-width: 2; }
.stage h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.5rem; line-height: 1.2; }
.stage p { margin: 0 0 21px; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.stage-mods { margin: auto 0 0; padding: 17px 0 0; border-top: 1px solid var(--line); list-style: none; }
.stage-mods li { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; color: var(--ink); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.mod-num { flex: none; min-width: 2.3em; font-size: .75rem; }
.stage-mods .mod-note, .stage-mods .mod-or { display: block; color: var(--muted); font: 400 .75rem/1.4 var(--font-data); text-transform: uppercase; }
.stage-mods .mod-or { padding-left: 2.3em; }
.stage-note { margin: 17px 0 0; color: var(--muted); font-size: .875rem; }

.tools { padding-block: 25px 40px; }
.slides { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #a9c1ad transparent; -webkit-overflow-scrolling: touch; }
.tool { flex: 0 0 calc(50% - 9px); min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); scroll-snap-align: start; }
.tool-bar { display: flex; align-items: center; gap: 7px; min-height: 43px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--pale); }
.tool-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c2d3c4; }
.tool-bar span { margin-left: 13px; }
.tool-shot { display: flex; align-items: center; justify-content: center; height: 300px; overflow: hidden; padding: 16px; background: var(--white); }
.tool-shot img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.tool figcaption { min-height: 116px; padding: 17px 20px 21px; border-top: 1px solid var(--line); }
.tool figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.tool figcaption span { display: block; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.slider-ctl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; }
.slider-status { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .875rem; }
.slider-count { color: var(--green); white-space: nowrap; }
.slider-dots { display: flex; gap: 1px; }
.slider-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.slider-dots button[hidden] { display: none; }
.slider-dots button::after { width: 10px; height: 10px; border-radius: 50%; background: #b8cdbb; content: ""; }
.slider-dots button[aria-current="true"]::after { background: var(--green); transform: scale(1.2); }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.25rem; cursor: pointer; }
.slider-arrows button:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.slider-arrows button:disabled { opacity: .4; cursor: default; }

.walkthrough { padding-block: 45px 70px; background: var(--paper); }
.walkthrough-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.walkthrough-copy h2 { max-width: 15ch; margin: 11px 0 18px; color: var(--ink); font-size: clamp(2.25rem, 3.05vw, 2.75rem); line-height: 1.13; letter-spacing: -.03em; }
.walkthrough-copy p { max-width: 37ch; margin: 0 0 22px; color: var(--muted); font-size: 1.0625rem; line-height: 1.5; }
.walkthrough-duration { color: var(--green); font: .8125rem/1.4 var(--font-data); }
.walkthrough-player { position: relative; overflow: hidden; border-radius: 15px; background: var(--ink); }
.walkthrough-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); color: var(--white); object-fit: contain; }
.walkthrough-play { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 13px 20px; border: 1px solid #ffffffb0; border-radius: 10px; background: #15352de8; color: var(--white); font-weight: 600; cursor: pointer; transform: translate(-50%, -50%); white-space: nowrap; }
.walkthrough-play[hidden] { display: none; }
.walkthrough-play:hover { background: var(--ink); }

.install { padding-block: 68px 76px; background: var(--ink); color: var(--white); }
.install .eyebrow { color: var(--seed); }
.install-head { margin-bottom: 27px; }
.install h2 { max-width: 800px; color: var(--white); }
.install-head p { max-width: 70ch; margin: 17px 0 0; color: #d5e5d9; font-size: 1rem; line-height: 1.5; }
.download-row { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin-bottom: 24px; }
.download-row span, .local-note { color: #d5e5d9; font-size: .95rem; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.platform { padding: 22px 25px; border-radius: 12px; background: var(--white); color: var(--body); }
.platform h3 { margin: 0 0 11px; color: var(--ink); font-size: 1.4rem; }
.platform ol { margin: 0; padding-left: 22px; }
.platform li { margin: 6px 0; padding-left: 3px; color: var(--muted); font-size: 1rem; }
.platform li::marker { color: var(--green); font-weight: 600; }
.platform code { padding: 2px 5px; border-radius: 4px; background: var(--pale); color: var(--ink); font: .875em var(--font-data); overflow-wrap: anywhere; }
.mac-help { margin-top: 22px; border-block: 1px solid #527667; }
.mac-help summary { padding: 15px 4px; color: var(--seed); font-weight: 600; cursor: pointer; }
.mac-help summary:focus-visible { outline: 3px solid var(--seed); outline-offset: 3px; }
.mac-help-content { max-width: 75ch; padding: 0 4px 20px 20px; }
.mac-help p { margin: 0 0 11px; color: #d5e5d9; font-size: .95rem; line-height: 1.5; }
.mac-help p:last-child { margin-bottom: 0; }
.mac-help ol { margin: 0 0 12px; padding-left: 22px; }
.mac-help li { margin: 6px 0; padding-left: 3px; color: #d5e5d9; font-size: .95rem; }
.mac-help li::marker { color: var(--seed); font-weight: 600; }
.mac-help code { padding: 2px 5px; border-radius: 4px; background: #e2ebe0; color: var(--ink); font: .875em var(--font-data); overflow-wrap: anywhere; }
.mac-help strong { color: var(--white); }
.mac-help a { color: var(--seed); font-weight: 600; text-underline-offset: 3px; }
.local-note { margin: 18px 0 0; }
.local-note strong { color: var(--seed); }

.citation { padding-block: 70px; }
.research-grid { display: grid; grid-template-columns: 225px minmax(0, 1fr); align-items: center; gap: 48px; }
.project-logo { display: grid; place-items: center; width: 225px; height: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--pale); }
.project-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.research-grid h2 { margin-block: 10px 16px; }
.research-grid p { max-width: 75ch; margin-bottom: 18px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.research-links { display: flex; flex-wrap: wrap; gap: 20px; }
.research-links a { color: var(--green); font-size: 1rem; font-weight: 600; text-underline-offset: 3px; }
.site-footer { padding-block: 34px; border-top: 1px solid var(--line); background: #e7eee5; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 9px 0 0; color: var(--muted); font-size: .875rem; }
.footer-links a { color: var(--ink); font-size: .9rem; font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .hero { gap: 30px; }
  .hero h1 { font-size: clamp(2.8rem, 5vw, 3.5rem); }
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { min-height: 360px; }
  .process-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-flow li:nth-child(2)::after { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; height: 400px; }
  .walkthrough-grid { grid-template-columns: 1fr; gap: 28px; }
  .walkthrough-copy h2, .walkthrough-copy p { max-width: 60ch; }
}

@media (max-width: 760px) {
  .wrap { width: min(600px, calc(100% - 44px)); }
  main > section:not(.wrap)::before { left: max(22px, calc((100% - 600px) / 2)); }
  .nav { min-height: 66px; }
  .brand { font-size: 1.45rem; }
  .nav-links > a:not(.button) { display: none; }
  .nav .button { min-width: 0; min-height: 42px; padding-inline: 15px; font-size: .875rem; }
  .hero { gap: 34px; padding-block: 42px 65px; }
  .hero h1 { margin-block: 26px 20px; font-size: clamp(2.25rem, 10.4vw, 2.8125rem); line-height: 1.13; }
  .hero p { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .hero-actions .button:first-child, .hero-actions .button.alt { min-width: 0; }
  .hero-visual { height: min(78vw, 340px); min-height: 260px; border-radius: 17px; }
  .visual-top, .visual-bottom { left: 17px; right: 17px; }
  .visual-top { top: 17px; }
  .visual-bottom { bottom: 18px; }
  .visual-bottom strong { font-size: 1.1rem; }
  .visual-bottom span { font-size: .75rem; }
  .visual-pill { font-size: .7rem; }
  .section { padding-block: 35px 62px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .install h2, .research-grid h2 { font-size: 2.125rem; }
  .process-flow { position: relative; display: block; margin: 27px 0 29px; padding-block: 3px; border: 0; }
  .process-flow::before { position: absolute; top: 18px; bottom: 18px; left: 13px; width: 2px; background: var(--line); content: ""; }
  .process-flow li { min-height: 50px; gap: 16px; padding: 4px 0; font-size: 1rem; }
  .process-flow li::after { display: none; }
  .process-flow .flow-number { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 50%; background: var(--clay); color: var(--white); font-size: .78rem; letter-spacing: 0; }
  .process-flow li:nth-child(2) .flow-number { background: var(--green); }
  .process-flow li:nth-child(3) .flow-number { background: var(--blue); }
  .process-flow li:nth-child(4) .flow-number { background: var(--ink); }
  .stage-grid { grid-template-columns: 1fr; gap: 12px; }
  .stage { min-height: 0; padding: 19px; }
  .stage-icon { display: none; }
  .stage h3 { margin-top: 17px; font-size: 1.4375rem; }
  .stage p { margin-bottom: 14px; }
  .stage-mods { margin-top: 0; padding-top: 12px; }
  .tools { padding-block: 18px 35px; }
  .tool { flex-basis: 100%; }
  .tool-shot { height: min(60vw, 270px); }
  .tool figcaption { min-height: 0; }
  .slider-ctl { flex-wrap: wrap; }
  .slider-status { flex-basis: 100%; }
  .walkthrough { padding-block: 38px 64px; }
  .walkthrough-copy h2 { max-width: 14ch; font-size: 2.125rem; }
  .install { padding-block: 60px 68px; }
  .install-head { margin-bottom: 27px; }
  .platforms { grid-template-columns: 1fr; gap: 13px; }
  .citation { padding-block: 60px; }
  .research-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-logo { width: 170px; height: 175px; }
  .footer-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 30px); }
  .hero h1 { font-size: 2.25rem; }
  .nav .button { font-size: .8rem; }
  .visual-bottom strong { font-size: 1rem; }
  .platform { padding: 20px; }
  .platform code { white-space: normal; overflow-wrap: anywhere; }
}

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