:root {
  color-scheme: dark;
  --paper: #111513;
  --paper-shade: #1b211e;
  --ink: #e9eee9;
  --forest: #83d9ad;
  --forest-deep: #326b4f;
  --slate: #9bb9c2;
  --muted: #a2aba5;
  --line: #323c36;
  --line-dark: #58665d;
  --on-forest: #102018;
  --ambient-green: rgba(131, 217, 173, .085);
  --ambient-blue: rgba(155, 185, 194, .045);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --page-width: 1190px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f5f4ef;
  --paper-shade: #ebeae3;
  --ink: #1e2723;
  --forest: #1f483d;
  --forest-deep: #183a32;
  --slate: #527887;
  --muted: #67706a;
  --line: #c8cbc2;
  --line-dark: #8d9790;
  --on-forest: #f5f4ef;
  --ambient-green: rgba(31, 72, 61, .055);
  --ambient-blue: rgba(82, 120, 135, .035);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  top: -22vmin;
  left: 42vw;
  width: min(76vmin, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 48% 48%, var(--ambient-green) 0, var(--ambient-blue) 34%, transparent 70%);
  content: "";
  pointer-events: none;
  will-change: transform;
  animation: background-drift 38s ease-in-out infinite alternate;
}

@keyframes background-drift {
  0% { transform: translate3d(-5vw, 0, 0) scale(.94); }
  55% { transform: translate3d(9vw, 8vh, 0) scale(1.04); }
  100% { transform: translate3d(-2vw, 13vh, 0) scale(.98); }
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  color: #f5f7f5;
  background: var(--forest-deep);
  transform: translateY(-160%);
}

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

.section-wrap,
.header-inner {
  width: min(var(--page-width), calc(100% - 104px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: -.08em;
}

.wordmark-copy { display: grid; line-height: 1.2; }
.wordmark-copy strong { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.wordmark-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .025em; text-transform: none; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 39px); }

.site-nav a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav a:hover { color: var(--slate); }
.menu-toggle { display: none; }

.hero {
  display: grid;
  min-height: 690px;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(44px, 7vw, 112px);
  padding-block: 77px 48px;
}

.hero-copy { padding-block: 5px 12px; }

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

.hero h1 {
  margin: 33px 0 24px -6px;
  font-size: clamp(86px, 11vw, 148px);
  font-weight: 500;
  letter-spacing: -.095em;
  line-height: .76;
}

.hero h1 em,
h2 em {
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.075em;
}

.hero h1 em { padding-left: 5px; }
.title-stop { color: var(--slate); font-family: var(--serif); font-weight: 400; }

.hero-statement {
  margin-bottom: 12px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.18;
}

.hero-statement span { color: var(--forest); font-family: var(--serif); font-size: 1.1em; font-weight: 400; font-style: italic; }

.hero-intro {
  max-width: 480px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.technology-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 22px max(52px, calc((100vw - var(--page-width)) / 2));
  border-block: 1px solid var(--line);
}

.technology-carousel-window { min-width: 0; overflow: hidden; }

.technology-carousel-track {
  display: flex;
  width: max-content;
  animation: technology-carousel-scroll 42s linear infinite;
}

.technology-carousel-window:hover .technology-carousel-track,
.technology-carousel-window:focus .technology-carousel-track,
.technology-carousel.is-paused .technology-carousel-track { animation-play-state: paused; }

.technology-carousel-copy {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 20px;
  padding-right: 20px;
}

.technology-group { flex: 0 0 auto; min-width: 0; }

.technology-group-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.technology-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technology-list li {
  display: grid;
  min-width: 74px;
  min-height: 76px;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-shade);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.technology-list img { display: block; width: 42px; height: 42px; object-fit: contain; }

.technology-carousel-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-shade);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.technology-carousel-toggle:hover { border-color: var(--forest); color: var(--ink); }
.technology-carousel-toggle:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.technology-carousel-window:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

@keyframes technology-carousel-scroll {
  to { transform: translateX(var(--technology-carousel-distance, -50%)); }
}

.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.button-primary { color: var(--on-forest); background: var(--forest); transition: background .2s ease; }
.button-primary:hover { background: var(--forest-deep); }
.button-primary span { font-size: 15px; font-weight: 400; }

.text-link { font-size: 13px; text-decoration: none; }
.text-link span { margin-left: 7px; color: var(--slate); }

.process-figure { position: relative; margin: 0; padding: 0; }

.process-figure::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid var(--line);
  content: "";
  pointer-events: none;
}

.process-map { display: block; width: 100%; height: auto; padding: 12px 5px 0; overflow: visible; }
.map-line { fill: none; stroke: var(--line-dark); stroke-width: 1.2; }
.map-line-secondary { stroke-dasharray: 3 6; }
.map-node { fill: var(--paper); stroke: var(--forest); stroke-width: 1.5; }
.map-node-filled { fill: var(--forest); }
.map-index { fill: var(--slate); font: 10px var(--sans); letter-spacing: .08em; }
.map-label { fill: var(--ink); font: 600 10px var(--sans); letter-spacing: .12em; }
.map-note { fill: var(--muted); font: 11px var(--serif); font-style: italic; }
.map-label-small { font-size: 9px; }
.map-tick { fill: none; stroke: var(--forest); stroke-width: 1.5; }

.projects { padding-block: 94px 110px; }
.section-heading { margin-bottom: 51px; }
.section-heading-main { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; margin-top: 0; }

h2 {
  margin-bottom: 0;
  font-size: clamp(39px, 5.2vw, 66px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .98;
}

.section-heading-main > p {
  max-width: 370px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.project-list { border-top: 1px solid var(--line-dark); }

.project-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 195px;
  gap: 31px;
  align-items: center;
  min-height: 154px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.project-number {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-self: stretch;
  justify-content: center;
  color: var(--slate);
  font-family: var(--serif);
  font-size: 20px;
}

.project-number span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
}

.project-title-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-main h3 { margin: 0; font-size: clamp(22px, 2.25vw, 28px); font-weight: 500; letter-spacing: -.04em; }
.project-main p { max-width: 700px; margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: 13px;
}

.project-meta span { color: var(--forest); font-weight: 600; }
.project-meta small { color: var(--muted); font-size: 12px; }

.manifesto { padding-block: clamp(58px, 8vw, 104px); border-block: 1px solid var(--line); }
.manifesto-label { margin: 0 0 20px; color: var(--forest); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.manifesto blockquote { margin: 0; font-size: clamp(42px, 7vw, 86px); font-weight: 500; letter-spacing: -.065em; line-height: 1.06; }
.manifesto blockquote em { color: var(--forest); font-family: var(--serif); font-weight: 400; }
.manifesto-copy { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.profile {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
  gap: clamp(58px, 10vw, 145px);
  padding-block: 105px 112px;
}

.profile-aside { display: block; }
.profile-resources { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-resources-label { grid-column: 1 / -1; margin: 0 0 4px; color: var(--forest); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.profile-resource { display: grid; min-height: 112px; align-content: space-between; gap: 9px; padding: 13px; border: 1px solid var(--line); background: var(--paper-shade); }
.profile-resource > span { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.profile-resource strong { font-size: 14px; font-weight: 500; line-height: 1.3; }
.profile-resource small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.profile-copy h2 { margin-bottom: 25px; font-size: clamp(37px, 4.5vw, 57px); }
.profile-copy > p { max-width: 700px; margin-bottom: 15px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.profile-signature { display: flex; align-items: center; gap: 13px; margin-top: 30px; color: var(--forest); font-family: var(--serif); font-size: 20px; font-style: italic; }
.signature-line { width: 34px; height: 1px; background: var(--slate); }

.captures { padding-block: 6px 100px; }
.captures-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; align-items: end; margin-bottom: 33px; }
.captures-heading h2 { margin-top: 0; }
.captures-heading > p { max-width: 460px; margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.capture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.capture-figure { min-width: 0; margin: 0; }
.capture-image-frame { overflow: hidden; border: 1px solid var(--line); background: #e7e8e2; }
.capture-image-frame img { display: block; width: 100%; height: auto; }
.capture-caption { display: grid; gap: 5px; padding: 14px 0 0; }
.capture-caption strong { font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.capture-caption small { color: var(--muted); font-size: 14px; line-height: 1.6; }

.site-footer {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a span { margin-left: 6px; color: var(--slate); }
.footer-button { padding: 0; border: 0; color: var(--ink); background: transparent; font: inherit; font-size: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.cookie-banner {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 20px max(28px, calc((100vw - var(--page-width)) / 2));
  border-top: 1px solid var(--line-dark);
  color: #f5f7f5;
  background: #0b0e0c;
}

.cookie-banner[hidden],
[hidden] { display: none !important; }
.cookie-copy h2 { margin: 0 0 4px; color: #f5f7f5; font-size: 17px; letter-spacing: -.02em; }
.cookie-copy p { max-width: 700px; margin: 0 0 5px; color: #d0d4ce; font-size: 13px; line-height: 1.55; }
.cookie-copy a { color: #d8e3dc; font-size: 12px; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-button { min-height: 44px; padding: 0 17px; border: 1px solid #94a39a; color: #f5f7f5; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.cookie-button-accept { border-color: var(--forest); color: var(--on-forest); background: var(--forest); }
.cookie-button:hover { border-color: #f5f7f5; }

.policy-main { max-width: 840px; padding-block: 82px 105px; }
.policy-main h1 { margin: 0 0 18px; font-size: clamp(46px, 7vw, 78px); font-weight: 500; letter-spacing: -.075em; line-height: .98; }
.policy-main h1 em { color: var(--forest); font-family: var(--serif); font-weight: 400; letter-spacing: -.075em; }
.policy-back { display: inline-block; margin-bottom: 25px; color: var(--forest); font-size: 14px; text-decoration: none; }
.policy-lead { max-width: 700px; margin-bottom: 45px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.policy-section { padding-block: 22px; border-top: 1px solid var(--line); }
.policy-section h2 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.04em; }
.policy-section p, .policy-section li { max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul { padding-left: 19px; }
.policy-section a { color: var(--forest); text-underline-offset: 3px; }
.policy-contact { font-weight: 600; }

@media (max-width: 900px) {
  .section-wrap, .header-inner { width: min(var(--page-width), calc(100% - 64px)); }
  .technology-carousel { padding-inline: 32px; }
  .hero { min-height: 630px; grid-template-columns: 1fr .9fr; gap: 35px; }
  .hero h1 { font-size: clamp(80px, 12vw, 115px); }
  .map-label { font-size: 9px; }
  .map-note { font-size: 10px; }
  .project-row { grid-template-columns: 82px minmax(0, 1fr) 165px; gap: 20px; }
  .profile { gap: 65px; }
  .capture-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 680px) {
  .header-inner { gap: 10px; }
  .section-wrap, .header-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 70px; }
  .wordmark-mark { width: 36px; height: 36px; }
  .wordmark-copy strong { font-size: 13px; }
  .wordmark-copy small { font-size: 10px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0 10px 10px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 13px;
  }
  .menu-toggle-lines { display: grid; gap: 5px; }
  .menu-toggle-lines i { display: block; width: 18px; height: 1px; background: var(--forest); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 17px;
    border: 1px solid var(--line);
    background: var(--paper);
  }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .policy-nav { position: static; display: flex; flex-direction: row; gap: 14px; padding: 0; border: 0; background: transparent; }
  .policy-nav a { padding: 8px 0; border: 0; font-size: 12px; }
  .policy-nav a[href^="mailto:"] { display: none; }

  .hero { min-height: 0; grid-template-columns: 1fr; gap: 52px; padding-block: 68px 58px; }
  .hero h1 { margin-top: 28px; font-size: clamp(72px, 23vw, 118px); }
  .hero-statement { font-size: clamp(30px, 8vw, 36px); }
  .hero-intro { max-width: 440px; }
  .technology-list { gap: 8px; }
  .technology-carousel { padding: 18px 20px; }
  .hero-actions { margin-top: 28px; }
  .process-figure { width: 100%; max-width: 520px; justify-self: center; margin-top: 0; }
  .process-figure::before { bottom: 0; }
  .map-label { font-size: 10px; }
  .map-note { font-size: 11px; }
  .projects { padding-block: 71px 78px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading-main { grid-template-columns: 1fr; gap: 19px; margin-top: 0; }
  .section-heading-main h2 { font-size: clamp(42px, 12vw, 60px); }
  .section-heading-main > p { max-width: 440px; }
  .project-row { position: relative; grid-template-columns: 1fr auto; gap: 8px 18px; min-height: 0; padding: 21px 0 22px; }
  .project-number { grid-column: 1; grid-row: 1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; font-size: 16px; }
  .project-number span { font-size: 11px; }
  .project-main { grid-column: 1 / -1; grid-row: 2; }
  .project-title-line { justify-content: flex-start; }
  .project-main h3 { font-size: 24px; }
  .project-main p { margin-top: 8px; font-size: 15px; }
  .project-meta { grid-column: 1 / -1; grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 13px; padding: 0; border: 0; }
  .project-meta span { font-size: 12px; }
  .project-meta small { font-size: 12px; }
  .captures { padding-block: 0 70px; }
  .captures-heading { grid-template-columns: 1fr; gap: 17px; margin-bottom: 26px; }
  .captures-heading h2 { font-size: clamp(42px, 12vw, 60px); }
  .capture-grid { grid-template-columns: 1fr; gap: 29px; }
  .capture-caption { padding-top: 11px; }

  .manifesto { padding-block: 56px; }
  .manifesto-label { margin-bottom: 16px; }
  .manifesto blockquote { font-size: clamp(38px, 10vw, 62px); }
  .manifesto-copy { margin-top: 20px; font-size: 15px; }

  .profile { grid-template-columns: 1fr; gap: 26px; padding-block: 72px; }
  .profile-resources { grid-template-columns: 1fr 1fr; }
  .profile-copy h2 { font-size: clamp(38px, 11vw, 53px); }
  .site-footer { display: grid; min-height: 0; grid-template-columns: 1fr 1fr; justify-content: initial; gap: 11px 15px; padding-block: 18px; }
  .site-footer > span:first-child { grid-column: 1 / -1; }
  .site-footer > a:last-child { justify-self: end; }
  .cookie-banner { grid-template-columns: 1fr; gap: 14px; padding: 18px 20px max(18px, env(safe-area-inset-bottom)); }
  .cookie-actions { justify-content: flex-end; }
  .cookie-button { flex: 1; }
  .policy-main { padding-block: 58px 75px; }
  .policy-lead { margin-bottom: 30px; font-size: 16px; }
  .policy-section { padding-block: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  body::before { animation: none !important; transform: none !important; will-change: auto; }
  .technology-carousel-window { overflow-x: auto; scrollbar-width: thin; }
  .technology-carousel-track { animation: none !important; transform: none !important; }
  .technology-carousel-copy[aria-hidden="true"], .technology-carousel-toggle { display: none; }
}

/* The header keeps a compact theme control beside the mobile menu. */
.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper-shade);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.theme-toggle:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.theme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

/* Seincom-inspired assembly story, drawn as vector parts for the portfolio. */
.assembly-diagram {
  overflow: visible;
}

.assembly-guides {
  fill: none;
  pointer-events: none;
}

.assembly-orbit {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  transform-origin: 280px 203px;
  animation: assembly-orbit-turn 40s linear infinite;
}

.assembly-orbit-inner {
  opacity: .48;
  stroke-dasharray: 1 11;
  animation-direction: reverse;
  animation-duration: 32s;
}

.assembly-arc {
  stroke: var(--forest);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1 500;
  animation: assembly-arc-draw 12s ease-in-out infinite;
}

.assembly-point { fill: var(--forest); }
.assembly-point-a { animation: assembly-point-pulse 4s ease-in-out infinite; }
.assembly-point-b { animation: assembly-point-pulse 4s ease-in-out 1.2s infinite; }

.assembly-object {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.laptop-composition {
  animation: laptop-visibility 18s linear infinite;
}

.laptop-screen-piece,
.laptop-hinge-piece,
.laptop-keyboard-piece,
.laptop-trackpad-piece,
.laptop-base-highlight,
.python-blue-piece,
.python-yellow-piece,
.excel-upper-piece,
.excel-lower-piece {
  transform-box: fill-box;
  transform-origin: center;
}

.laptop-screen-piece { animation: laptop-screen-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }
.laptop-hinge-piece { animation: laptop-hinge-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }
.laptop-keyboard-piece { animation: laptop-deck-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }
.laptop-trackpad-piece { animation: laptop-trackpad-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }
.laptop-base-highlight { animation: laptop-highlight-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }

.laptop-frame {
  fill: url(#laptop-shell-gradient);
  stroke: #93a397;
  stroke-width: 1.2;
}

.laptop-display { fill: #111714; stroke: #63746a; stroke-width: .8; }
.laptop-camera-dot { fill: #83d9ad; }
.code-line { fill: none; stroke: #728379; stroke-width: 2; stroke-linecap: round; }
.code-line-long { stroke: #83d9ad; opacity: .72; }
.code-prompt { fill: none; stroke: #9bb9c2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.screen-code-label { fill: #bac7bf; font: 7px ui-monospace, Consolas, monospace; letter-spacing: .3px; }
.laptop-hinge { fill: #98a69e; }
.laptop-deck { fill: url(#laptop-shell-gradient); stroke: #93a397; stroke-width: 1.2; }
.keyboard-bed { fill: #17201b; stroke: #68766e; stroke-width: .7; }
.keyboard-keys { fill: none; stroke: #92a198; stroke-width: 1.2; stroke-linecap: round; }
.laptop-trackpad { fill: #27352d; stroke: #839288; stroke-width: .8; }
.laptop-base-highlight { fill: none; stroke: #bdc8c0; stroke-width: 1; opacity: .7; }

.python-composition {
  opacity: 0;
  transform: scale(1.18);
  animation: python-visibility 18s linear infinite;
}

.python-blue-piece { animation: python-blue-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }
.python-yellow-piece { animation: python-yellow-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }
.python-blue { fill: url(#python-blue-gradient); }
.python-yellow { fill: url(#python-yellow-gradient); }

.excel-composition { opacity: 0; animation: excel-visibility 18s linear infinite; }
.excel-upper-piece { animation: excel-upper-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }
.excel-lower-piece { animation: excel-lower-assembly 18s cubic-bezier(.2,.72,.24,1) infinite; }

@keyframes assembly-orbit-turn {
  to { transform: rotate(360deg); }
}

@keyframes assembly-arc-draw {
  0%, 20% { stroke-dasharray: 1 500; stroke-dashoffset: 0; opacity: .2; }
  42%, 76% { stroke-dasharray: 250 500; stroke-dashoffset: -80; opacity: .8; }
  100% { stroke-dasharray: 1 500; stroke-dashoffset: -330; opacity: .2; }
}

@keyframes assembly-point-pulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.45); }
}

@keyframes laptop-visibility {
  0%, 15%, 80%, 100% { opacity: 1; }
  26%, 69% { opacity: 0; }
}

@keyframes laptop-screen-assembly {
  0%, 15%, 80%, 100% { transform: translate(0, 0) rotate(0) skewX(0) scale(1); }
  26%, 69% { transform: translate(-34px, -44px) rotate(-8deg) skewX(-5deg) scale(.92, .84); }
}

@keyframes laptop-hinge-assembly {
  0%, 15%, 80%, 100% { transform: translate(0, 0) rotate(0) scaleX(1); }
  26%, 69% { transform: translate(-49px, 6px) rotate(-10deg) scaleX(.72); }
}

@keyframes laptop-deck-assembly {
  0%, 15%, 80%, 100% { transform: translate(0, 0) rotate(0) skewX(0) scale(1); }
  26%, 69% { transform: translate(31px, 31px) rotate(6deg) skewX(5deg) scale(.9, .8); }
}

@keyframes laptop-trackpad-assembly {
  0%, 15%, 80%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
  26%, 69% { transform: translate(0, 48px) rotate(-4deg) scale(.72, .65); }
}

@keyframes laptop-highlight-assembly {
  0%, 15%, 80%, 100% { transform: translate(0, 0); opacity: .7; }
  26%, 69% { transform: translate(36px, 44px); opacity: 0; }
}

@keyframes python-visibility {
  0%, 22%, 47%, 100% { opacity: 0; }
  29%, 40% { opacity: 1; }
}

@keyframes python-blue-assembly {
  0%, 22%, 48%, 100% { transform: translate(-16px, -13px) rotate(-8deg) skewY(-2deg) scale(.92, 1.06); }
  30%, 40% { transform: translate(0, 0) rotate(0) skewY(0) scale(1); }
}

@keyframes python-yellow-assembly {
  0%, 22%, 48%, 100% { transform: translate(16px, 13px) rotate(8deg) skewY(2deg) scale(.92, 1.06); }
  30%, 40% { transform: translate(0, 0) rotate(0) skewY(0) scale(1); }
}

@keyframes excel-visibility {
  0%, 49%, 77%, 100% { opacity: 0; }
  56%, 69% { opacity: 1; }
}

@keyframes excel-upper-assembly {
  0%, 48%, 78%, 100% { transform: translate(-16px, -13px) rotate(-8deg) skewY(-2deg) scale(.92, 1.06); }
  57%, 69% { transform: translate(0, 0) rotate(0) skewY(0) scale(1); }
}

@keyframes excel-lower-assembly {
  0%, 48%, 78%, 100% { transform: translate(16px, 13px) rotate(8deg) skewY(2deg) scale(.92, 1.06); }
  57%, 69% { transform: translate(0, 0) rotate(0) skewY(0) scale(1); }
}

@media (max-width: 680px) {
  .header-actions { gap: 8px; }
  .theme-toggle { width: 38px; padding: 0; }
  .theme-toggle-label { display: none; }
}

@media (max-width: 380px) {
  .policy-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .assembly-orbit,
  .assembly-arc,
  .assembly-point,
  .laptop-composition,
  .laptop-screen-piece,
  .laptop-hinge-piece,
  .laptop-keyboard-piece,
  .laptop-trackpad-piece,
  .laptop-base-highlight,
  .excel-composition,
  .excel-upper-piece,
  .excel-lower-piece,
  .python-composition,
  .python-blue-piece,
  .python-yellow-piece {
    animation: none !important;
    will-change: auto;
  }

  .laptop-composition {
    opacity: 1 !important;
    transform: translateX(-164px) scale(.42);
  }

  .python-composition {
    opacity: 1 !important;
    transform: scale(.47);
  }

  .excel-composition {
    opacity: 1 !important;
    transform: translateX(156px) scale(.45);
  }

  .laptop-screen-piece,
  .laptop-hinge-piece,
  .laptop-keyboard-piece,
  .laptop-trackpad-piece,
  .laptop-base-highlight {
    transform: none !important;
  }

  .python-blue-piece,
  .python-yellow-piece,
  .excel-upper-piece,
  .excel-lower-piece { transform: none !important; }
}
