:root {
  color-scheme: light;
  --paper: #f2f1e9;
  --ink: #182720;
  --muted: #47574d;
  --line: #c8cdc2;
  --dark: #152821;
  --light: #f1f3e9;
  --lime: #d6f689;
  --accent: #3f6631;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.shell { width: min(100% - 7rem, 86rem); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; background: var(--lime); color: var(--ink); padding: .7rem; z-index: 2; translate: 0 -170%; }
.skip:focus { translate: 0; }
.masthead { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.brand, .masthead nav a, .header-action { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; white-space: nowrap; letter-spacing: -.035em; font-size: 1.14rem; width: fit-content; }
.brand-mark { width: 1.45rem; height: 1.45rem; display: inline-flex; align-items: end; gap: 2px; transform: skew(-19deg); padding: 2px; }
.brand-mark i { width: 4px; background: currentColor; height: 44%; }
.brand-mark i:nth-child(2) { height: 69%; }
.brand-mark i:nth-child(3) { height: 100%; }
.masthead nav { display: flex; gap: clamp(1rem, 3vw, 2.7rem); font-size: .91rem; }
.masthead nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-action { padding: .7rem 1rem; border: 1px solid #829085; border-radius: 4px; font-size: .91rem; font-weight: 700; white-space: nowrap; }
.header-action:hover { background: var(--lime); border-color: var(--ink); }
.hero { padding-block: clamp(2.8rem, 5.4vw, 6rem); min-height: 36rem; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(2rem, 6vw, 7rem); }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(4.2rem, 8.15vw, 9rem); line-height: .88; letter-spacing: -.09em; font-weight: 700; margin-bottom: 1.55rem; }
em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.095em; }
.hero h1 em { color: var(--accent); }
.hero-description { max-width: 30rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.53; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.15rem 1.5rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .72rem 1.05rem; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 700; line-height: 1.2; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.text-link { display: inline-block; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .3em; font-weight: 700; line-height: 1.5; text-align: left; }
.text-link:hover { color: var(--accent); }
.hero-portrait { position: relative; background: #c0baac; aspect-ratio: 1.06; border-radius: 5px; overflow: hidden; isolation: isolate; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 38%; }
.hero-portrait figcaption { position: absolute; left: .95rem; bottom: .95rem; background: var(--lime); padding: .75rem 1.05rem; border-radius: 3px; display: grid; gap: .18rem; color: var(--ink); }
.hero-portrait figcaption span { font-size: .9rem; }
.workbench { background: var(--dark); color: var(--light); padding-block: clamp(3.3rem, 6.6vw, 7rem); }
.demo-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.demo-intro em { color: var(--lime); }
h2 { font-size: clamp(2.8rem, 5.65vw, 6rem); line-height: .95; letter-spacing: -.073em; }
.demo-intro h2 { margin-bottom: 1.25rem; }
.demo-intro > p:last-of-type { color: #d1dbce; line-height: 1.6; max-width: 27rem; }
.scenario-list { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1.5rem; }
.scenario-list button { border: 1px solid #62796d; border-radius: 30px; min-height: 2.7rem; padding: .54rem .8rem; background: transparent; color: var(--light); font-size: .9rem; }
.scenario-list button[aria-pressed="true"], .scenario-list button:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.demo { background: #233a30; border: 1px solid #53685c; border-radius: 8px; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #53685c; }
.steps button { background: transparent; color: #e0ebdf; border: 0; border-bottom: 2px solid transparent; min-height: 3.2rem; padding: .65rem .25rem; font-weight: 700; }
.steps button + button { border-left: 1px solid #53685c; }
.steps button[aria-pressed="true"] { color: var(--lime); border-bottom-color: var(--lime); background: #304a3d; }
.steps button:hover { background: #304a3d; }
.steps button:focus-visible { outline-offset: -4px; }
.demo-stage { padding: clamp(.95rem, 3vw, 2rem); min-height: 19.4rem; display: grid; align-items: center; }
.stage-card { background: var(--paper); color: var(--ink); border-radius: 4px; padding: clamp(1rem, 3vw, 1.8rem); border-left: 4px solid var(--lime); }
.stage-card[data-kind="plan"] { background: #e7eddb; }
.stage-card[data-kind="prototype"] { background: #f4f7e9; border: 1px solid #aebb9d; box-shadow: 0 7px 0 #12251d; }
.stage-label { color: #435a43; font-size: .88rem; font-weight: 700; margin-bottom: .65rem; }
.stage-card h3 { font-size: clamp(1.35rem, 2.4vw, 2.15rem); letter-spacing: -.05em; margin-bottom: .65rem; }
.stage-card p:not(.stage-label), .stage-card ol { line-height: 1.48; }
.stage-card ol { margin: 0; padding-inline-start: 1.35rem; }
.stage-card label { display: grid; gap: .45rem; margin-top: .8rem; font-size: .92rem; font-weight: 700; }
.stage-card input { appearance: none; border: 1px solid #718571; border-radius: 3px; width: 100%; padding: .65rem .7rem; color: var(--ink); background: white; font: inherit; font-weight: 400; }
.demo-footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem clamp(.95rem, 3vw, 2rem); border-top: 1px solid #53685c; }
.demo-footer span { font-size: .87rem; color: #d1dbce; }
.step-next { border: 0; border-radius: 4px; background: var(--lime); color: var(--ink); font-weight: 700; min-height: 2.5rem; padding: .5rem .85rem; }
.step-next:hover { background: #ecffd0; }
.training { padding-block: clamp(3.7rem, 8vw, 8rem); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: end; margin-bottom: 2.3rem; }
.section-heading p, .training-grid article > p:not(.training-tool), .about-layout div > p, .project > div > p:last-child { color: var(--muted); line-height: 1.65; max-width: 36rem; }
.training-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.training-grid article { padding: 1.7rem clamp(1.25rem, 4vw, 3.75rem) 1.8rem 0; display: grid; justify-items: start; }
.training-grid article + article { border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 4vw, 3.75rem); }
.training-tool { font-size: .9rem; color: var(--accent); font-weight: 700; margin-bottom: .8rem; }
.training-grid h3 { font-size: clamp(1.35rem, 2.6vw, 2.35rem); letter-spacing: -.055em; margin-bottom: .7rem; }
.training-grid .text-link { margin-top: 1.3rem; }
.about { background: #e1e9d7; }
.about-layout { padding-block: clamp(3.1rem, 6vw, 6rem); }
.about h2 { font-size: clamp(2.65rem, 5vw, 5rem); }
.about-layout div > p { margin-top: 1.2rem; }
.project { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(1.65rem, 6vw, 7rem); padding-block: clamp(3.7rem, 8vw, 7rem); }
.project h2 { margin-bottom: 1.2rem; }
.form { display: grid; gap: .55rem; align-content: start; }
.form label { font-weight: 700; }
.form input, .form select, .form textarea { width: 100%; color: var(--ink); background: #fbfaf3; border: 1px solid #7a887b; border-radius: 4px; padding: .73rem; }
.form select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, #273f31 50%), linear-gradient(135deg, #273f31 50%, transparent 50%); background-position: calc(100% - 17px) center, calc(100% - 12px) center; background-size: 5px 5px; background-repeat: no-repeat; margin-bottom: .55rem; }
.form textarea { min-height: 6.5rem; resize: vertical; }
.form textarea::placeholder { color: #526057; }
.form .button { justify-self: start; margin-top: .4rem; }
.form-status { color: var(--accent); }
.contact { background: #e1e9d7; }
.contact-note { line-height: 1.45; color: var(--muted); font-size: .92rem; margin-top: .25rem; }
.contact-status[data-error] { color: #852b21; }
.contact-form .button:disabled { opacity: .7; cursor: wait; }
footer { border-top: 1px solid var(--line); }
.footer-layout { padding-block: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 1000px) {
  .shell { width: min(100% - 4rem, 86rem); }
  .hero { gap: 2.5rem; }
  h1 { font-size: clamp(3.65rem, 8.5vw, 6rem); }
  .demo-layout { gap: 2.3rem; }
}
@media (max-width: 850px) {
  .masthead { display: grid; grid-template-columns: 1fr auto; gap: .7rem 1rem; padding-block: .8rem; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; gap: 1.2rem; flex-wrap: wrap; padding-block: .25rem; }
}
@media (max-width: 730px) {
  .shell { width: calc(100% - 2.5rem); }
  .hero, .demo-layout, .section-heading, .project { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; gap: 1.9rem; }
  h1 { font-size: clamp(3.65rem, 13vw, 6rem); }
  .hero-portrait { width: 100%; max-height: 33rem; }
  .demo-stage { min-height: 17rem; }
  .training-grid { grid-template-columns: 1fr; }
  .training-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 1.75rem); }
  .header-action { padding-inline: .55rem; font-size: .82rem; }
  .brand { font-size: 1rem; }
  h1 { font-size: 3.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
