@font-face {
  font-family: "HK Grotesk";
  src: url("assets/fonts/HKGrotesk-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("assets/fonts/HKGrotesk-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("assets/fonts/HKGrotesk-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("assets/fonts/HKGrotesk-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 145px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition:
    background-color var(--theme-fade),
    color var(--theme-fade);
  font-family: "HK Grotesk", "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #d5ef78;
  color: #121413;
}
:root {
  --lime: #d5ef78;
  --display: "HK Grotesk", "Trebuchet MS", sans-serif;
}
/* Screens keep the dark palette in both themes: the office monitor mirrors
   the page inside the scene, and the project art draws terminals and racks. */
:root,
.monitor-viewport,
.project-visual {
  /* Site theme. Dark is the office at night; light (below) takes its colours
     from the daytime render: wall-cream paper, sage controls, forest ink. The
     office scene, the project art and the retro browsers keep their own
     palettes in both themes. */
  --bg: #111713;
  --header-bg: #111713f2;
  --text: #eeeee6;
  --text-soft: #e6e9de;
  --body: #cdd4c5;
  --quiet: #98a390;
  --muted: #a6aaa0;
  --line: #343730;
  --rule: #2f372e;
  --outlet-line: #394539;
  /* Lime is a fill; --accent is lime used as text, which must darken on paper. */
  --accent: var(--lime);
  --label: #b4c887;
  --caption: #b0be9f;
  --nav-text: #87927e;
  --nav-label: #86967d;
  --nav-dot: #526047;
  --nav-line: #34432e;
  --control-bg: #202d24;
  --control-hover: #30432f;
  --control-border: #4b5945;
  --control-icon: #e3edb3;
  --button-bg: #253522;
  --button-hover: #364b2d;
  --button-border: #536346;
  --lang-border: #49523e;
  --lang-text: #adb7a0;
  --console-text: #c6e68b;
  --console-step: #a0b691;
  --console-line: #40513e;
  --stage-shadow: 0 28px 70px #0004;
  --theme-fade: 1.1s ease;
}
:root[data-theme="light"] {
  --bg: #efe9dc;
  --header-bg: #efe9dcf2;
  --text: #1c251b;
  --text-soft: #2a3428;
  --body: #3a4536;
  --quiet: #5b6654;
  --muted: #5f6458;
  --line: #d3cbb8;
  --rule: #d6cfbd;
  --outlet-line: #cfc7b3;
  --accent: #46611a;
  --label: #46611a;
  --caption: #56634a;
  --nav-text: #5b6553;
  --nav-label: #5b6553;
  --nav-dot: #b3bba3;
  --nav-line: #d3cbb8;
  --control-bg: #dde3d3;
  --control-hover: #cfd8c2;
  --control-border: #b9c2a8;
  --control-icon: #7f540c;
  --button-bg: #dde3d3;
  --button-hover: #cfd8c2;
  --button-border: #b9c2a8;
  --lang-border: #b9c2a8;
  --lang-text: #56604c;
  --console-text: #46611a;
  --console-step: #5b6654;
  --console-line: #d3cbb8;
  --stage-shadow: 0 28px 70px #5a482a38, 0 6px 18px #5a482a1f;
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --theme-fade: 0s;
  }
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
}
a:hover {
  color: var(--accent);
}
button[hidden] {
  display: none;
}
p {
  line-height: 1.8;
  color: var(--muted);
}
.wrap {
  width: min(1280px, calc(100% - 112px));
  margin: auto;
}
.draft {
  padding: 8px 30px;
  background: #20251c;
  color: #c6d6af;
  text-align: center;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.draft span {
  margin-left: 30px;
  color: #a6aaa0;
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  box-shadow: 0 0 0 100vmax var(--header-bg);
  clip-path: inset(0 -100vmax);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 102px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 51px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -8px;
  padding-right: 12px;
}
.wordmark-dot {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 36px;
  font-size: 12px;
}
.nav-cta {
  font-size: 12px;
  border-bottom: 1px solid #626859;
  padding: 10px 0;
}
.nav-cta span {
  margin-left: 25px;
}
.hero {
  position: relative;
  min-height: 780px;
}
.hero-top {
  padding-top: 35px;
  display: flex;
  justify-content: space-between;
}
.eyebrow,
.section-label,
.hero-index {
  font:
    10px ui-monospace,
    "Courier New",
    monospace;
  letter-spacing: 1.4px;
}
.eyebrow i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 10px;
}
.hero-index {
  color: var(--muted);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 57px;
  width: 60%;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}
h1 {
  font-size: clamp(65px, 7.6vw, 110px);
  font-weight: 500;
  letter-spacing: -6px;
  line-height: 1.02;
  margin: 0;
}
h1 .serif {
  font: italic 1.04em var(--display);
  letter-spacing: -5px;
  color: var(--accent);
}
.hero-copy p {
  font-size: 14px;
  max-width: 355px;
  margin: 28px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  border-radius: 3px;
  background: var(--lime);
  color: #192012;
  padding: 16px 22px;
  font-size: 12px;
}
.button:hover {
  background: #e3ffa0;
  color: #121413;
}
.sculpture {
  position: absolute;
  right: -35px;
  top: 92px;
  width: 60%;
  height: 580px;
  isolation: isolate;
}
.orb-halo {
  position: absolute;
  inset: 10%;
  background: radial-gradient(ellipse, #8494441a, transparent 65%);
  z-index: -1;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.cross {
  position: absolute;
  color: #747b63;
  font: 21px monospace;
}
.cross-a {
  top: 40px;
  right: 20px;
}
.cross-b {
  bottom: 50px;
  left: 30px;
}
.art-caption {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 9px;
  left: 70px;
  right: 35px;
  font: 8px monospace;
  letter-spacing: 1px;
  color: #9b9f8c;
}
.art-caption span:last-child {
  color: #6c7262;
}
.hero-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px monospace;
  letter-spacing: 0.5px;
  color: #a6aaa0;
}
.hero-bottom > a {
  font-size: 9px;
}
.hero-bottom a span {
  margin-left: 20px;
}
.motion-button {
  background: none;
  border: 1px solid #434839;
  border-radius: 30px;
  padding: 8px 13px;
  font: 10px monospace;
}
.motion-button span {
  margin-left: 9px;
}
.ticker {
  background: var(--lime);
  color: #1b2516;
  overflow: hidden;
  padding: 20px 0;
  transform: rotate(-1.3deg);
  margin: 20px 0 10px;
}
.ticker > div {
  display: flex;
  gap: 44px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
}
.ticker span {
  font-size: 31px;
  font-weight: 400;
}
.section {
  padding-top: 110px;
  padding-bottom: 110px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  border-bottom: 1px solid var(--line);
}
.section-label {
  color: var(--muted);
}
.tiny-cross {
  display: block;
  font-size: 53px;
  color: var(--accent);
  padding-top: 48px;
}
h2 {
  font-size: clamp(35px, 4vw, 55px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -2px;
  margin: 0 0 30px;
}
h2 em {
  font-family: var(--display);
  font-weight: 400;
  color: #d3d5ca;
}
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.about p {
  font-size: 13px;
  margin: 0;
}
.signature {
  font: italic 21px var(--display);
  margin-top: 32px;
}
.signature span {
  margin-left: 30px;
  color: var(--accent);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 58px;
}
.section-heading h2 {
  margin: 25px 0 0;
}
.section-heading > p {
  font-size: 12px;
  margin: 0 0 5px;
}
.project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  margin: 0 0 72px;
}
.project:last-child {
  margin-bottom: 0;
}
.project-reverse .project-visual {
  order: 2;
}
.project-visual {
  height: 360px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.system-art {
  background: #232b26;
  display: grid;
  place-items: center;
}
.system-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#65775f1b 1px, transparent 1px),
    linear-gradient(90deg, #65775f1b 1px, transparent 1px);
  background-size: 32px 32px;
  transform: perspective(500px) rotateX(20deg) scale(1.1);
}
.server-node {
  z-index: 1;
  width: 70%;
  padding: 25px;
  background: #171e19;
  box-shadow: 18px 25px 0 #10151150;
  border: 1px solid #626f50;
  transform: rotate(-5deg);
  transition: transform 0.5s;
}
.project:hover .server-node {
  transform: rotate(0);
}
.server-node > span,
.node-footer {
  font: 8px monospace;
  letter-spacing: 1px;
  color: #9aa68b;
}
.server-node strong {
  display: block;
  font: 38px monospace;
  letter-spacing: -2px;
  margin: 20px 0;
}
.server-node strong span {
  color: var(--lime);
}
.server-slots {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.server-slots i {
  display: block;
  background: #475b39;
  border: 1px solid #749252;
  width: 25%;
  height: 30px;
}
.server-slots i:first-child {
  background: var(--lime);
}
.node-footer {
  font-size: 7px;
}
.node-footer b {
  color: var(--lime);
  margin-right: 8px;
}
.visual-code {
  position: absolute;
  bottom: 18px;
  left: 22px;
  font: 9px monospace;
  color: #a6b09f;
}
.project-copy h3 {
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.13;
  margin: 20px 0;
}
.project-copy p {
  font-size: 13px;
  max-width: 390px;
}
.tags {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.tags li {
  font: 9px monospace;
  padding: 7px 10px;
  border: 1px solid #42473b;
  border-radius: 3px;
  color: #d0d8bd;
}
details {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
summary {
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font-size: 20px;
  color: var(--accent);
}
details[open] summary span {
  transform: rotate(45deg);
}
.automation-art {
  background: #d5d6c5;
  color: #293426;
  display: grid;
  place-items: center;
}
.orbit {
  border: 1px solid #596a4050;
  border-radius: 50%;
  position: absolute;
  width: 260px;
  height: 260px;
}
.orbit-two {
  width: 360px;
  height: 175px;
  transform: rotate(-35deg);
}
.home-symbol {
  font: 100px var(--display);
  background: #c0c6ad;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  text-align: center;
  line-height: 112px;
  box-shadow: 0 0 65px #67744320;
}
.satellite {
  position: absolute;
  background: #263522;
  color: #e0e5d2;
  padding: 10px 15px;
  font: 9px monospace;
  letter-spacing: 1px;
  border: 5px solid #d5d6c5;
}
.sat-one {
  left: 13%;
  top: 22%;
}
.sat-two {
  right: 10%;
  top: 47%;
}
.sat-three {
  left: 30%;
  bottom: 14%;
}
.automation-art .visual-code {
  color: #53634a;
}
.automation-caption {
  position: absolute;
  right: 20px;
  top: 20px;
  font: 8px monospace;
  color: #53634a;
}
.skills-section {
  background: #1b1e19;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #404637;
}
.skill-grid > div {
  padding: 30px 32px 10px 0;
  position: relative;
}
.skill-grid > div + div {
  border-left: 1px solid #404637;
  padding-left: 32px;
}
.skill-num {
  font: 10px monospace;
  color: #9ea78d;
}
.skill-grid h3 {
  font-size: 21px;
  font-weight: 400;
  margin: 25px 0 12px;
}
.skill-grid p {
  font-size: 12px;
}
.skill-glyph {
  position: absolute;
  top: 28px;
  right: 26px;
  color: var(--accent);
  font-size: 30px;
}
.experience {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  border-bottom: 1px solid var(--line);
}
.experience h2 {
  margin-top: 26px;
}
.text-button {
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #777e6d;
  font-size: 11px;
}
.text-button span {
  margin-left: 40px;
}
.timeline-entry {
  border-top: 1px solid var(--line);
  padding: 27px 0;
}
.timeline h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
}
.timeline p {
  font-size: 13px;
}
.timeline .eyebrow {
  color: var(--accent);
}
.contact h2 {
  font-size: clamp(40px, 5.3vw, 75px);
  position: relative;
  margin-top: 28px;
  max-width: 1000px;
}
.contact h2 em {
  color: var(--accent);
}
.contact-star {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-size: 100px;
}
.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  gap: 20px;
}
.contact-bottom p {
  font-size: 12px;
}
#contact-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.back-top {
  font: 10px monospace;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font: 9px monospace;
}
.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 10;
  padding: 15px;
  background: var(--lime);
  color: #121413;
}
.skip:focus {
  top: 10px;
}
.revealed {
  animation: arrive 0.8s both;
}
@keyframes arrive {
  from {
    opacity: 0.3;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1500px) {
  .hero-copy {
    padding-top: 65px;
  }
  .sculpture {
    right: 0;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero {
    min-height: 730px;
  }
  .hero-copy {
    width: 65%;
  }
  h1 {
    font-size: 85px;
  }
  .sculpture {
    right: -20px;
    width: 60%;
    top: 120px;
    height: 490px;
  }
  .art-caption {
    left: 30px;
    font-size: 7px;
  }
  .art-caption span:last-child {
    display: none;
  }
  .project {
    gap: 40px;
  }
  .project-visual {
    height: 320px;
  }
  .contact-star {
    right: -20px;
  }
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .draft {
    font-size: 8px;
  }
  .draft span {
    display: none;
  }
  .header {
    height: 80px;
  }
  nav {
    gap: 16px;
    font-size: 10px;
  }
  .nav-cta {
    display: none;
  }
  .wordmark {
    font-size: 41px;
  }
  .hero {
    min-height: 900px;
  }
  .hero-top {
    padding-top: 25px;
  }
  .eyebrow,
  .section-label {
    font-size: 9px;
  }
  .hero-index {
    font-size: 8px;
  }
  .hero-copy {
    padding-top: 40px;
    width: 100%;
  }
  h1 {
    font-size: clamp(64px, 13vw, 89px);
    letter-spacing: -4px;
  }
  h1 .serif {
    letter-spacing: -3px;
  }
  .hero-copy p {
    font-size: 12px;
    max-width: 280px;
    margin: 24px 0;
  }
  .button {
    font-size: 11px;
    padding: 14px 19px;
  }
  .sculpture {
    top: 465px;
    width: 100%;
    right: 0;
    height: 350px;
  }
  .art-caption {
    left: 20px;
    right: 20px;
    bottom: -8px;
  }
  .art-caption span:last-child {
    display: block;
  }
  .cross-a {
    top: 20px;
    right: 5px;
  }
  .cross-b {
    left: 5px;
    bottom: 20px;
  }
  .hero-bottom {
    bottom: 22px;
    font-size: 8px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero-bottom > span {
    width: 100%;
  }
  .ticker {
    padding: 13px 0;
    margin-top: 0;
  }
  .ticker > div {
    font-size: 13px;
    gap: 25px;
  }
  .ticker span {
    font-size: 24px;
  }
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tiny-cross {
    display: none;
  }
  h2 {
    font-size: 36px;
    letter-spacing: -1.3px;
  }
  .about-columns {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .about p {
    font-size: 12px;
  }
  .signature {
    font-size: 19px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading > p {
    margin-top: 24px;
  }
  .project {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-bottom: 55px;
  }
  .project-reverse .project-visual {
    order: 0;
  }
  .project-visual {
    height: 300px;
  }
  .project-copy h3 {
    font-size: 30px;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .skill-grid > div + div {
    border-left: none;
    border-top: 1px solid #404637;
    padding-left: 0;
  }
  .skill-grid > div {
    padding-bottom: 15px;
  }
  .skill-grid h3 {
    margin-top: 18px;
  }
  .experience {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact h2 {
    font-size: 38px;
  }
  .contact-star {
    position: static;
    font-size: 40px;
    margin-left: 15px;
  }
  .contact-bottom {
    flex-wrap: wrap;
    align-items: start;
    margin-top: 25px;
  }
  .contact-bottom p {
    max-width: 220px;
    margin: 0;
  }
  .back-top {
    margin-left: auto;
  }
  footer {
    flex-wrap: wrap;
    font-size: 8px;
    gap: 14px;
  }
  footer span:last-child {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
html.motion-paused {
  scroll-behavior: auto;
}
.motion-paused * {
  animation: none !important;
  transition: none !important;
}
@media print {
  body {
    background: white;
    color: #111;
    font-size: 11pt;
  }
  .draft,
  .header,
  .sculpture,
  .ticker,
  .hero-bottom,
  .button,
  .project-visual,
  .skill-glyph,
  .contact-star,
  .text-button,
  .back-top,
  .skip {
    display: none !important;
  }
  .wrap {
    width: 100%;
  }
  .section {
    padding: 24px 0;
  }
  .hero {
    min-height: 0;
  }
  .hero-top {
    padding: 0;
  }
  .hero-copy {
    padding: 25px 0;
    width: 100%;
  }
  h1 {
    font-size: 42pt;
    letter-spacing: -2px;
  }
  h1 br {
    display: none;
  }
  h1 br:after {
    content: " ";
  }
  .hero-copy p {
    max-width: none;
  }
  h1 .serif,
  h2 em,
  .timeline .eyebrow {
    color: #333;
  }
  p,
  .section-label {
    color: #444;
  }
  .about,
  .experience {
    display: block;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .project {
    display: block;
    margin-bottom: 20px;
    break-inside: avoid;
  }
  .skills-section {
    background: white;
  }
  .contact h2 {
    font-size: 28pt;
  }
  .contact-bottom {
    margin-top: 20px;
  }
  h2 {
    font-size: 25pt;
  }
  .skill-grid > div {
    padding: 15px;
  }
  details {
    display: none;
  }
  footer {
    font-size: 8pt;
  }
  .revealed {
    animation: none;
  }
}
/* Clip the slanted strip without creating horizontal scrolling. */
body {
  overflow-x: clip;
}

.ticker-clip {
  overflow: hidden;
  padding: 15px 0;
}
.ticker {
  margin: 0;
}
@media print {
  .ticker-clip {
    display: none;
  }
}
.deploy-art {
  background: #272822;
  display: grid;
  place-items: center;
}
.deploy-terminal {
  width: 82%;
  border: 1px solid #666953;
  background: #171b15;
  padding: 20px;
  transform: rotate(-3deg);
  box-shadow: 12px 16px 0 #11140f70;
  transition: transform 0.4s;
}
.project:hover .deploy-terminal {
  transform: rotate(0);
}
.terminal-top {
  display: flex;
  align-items: center;
  gap: 5px;
}
.terminal-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #626b50;
}
.terminal-top span {
  margin-left: auto;
  font: 7px monospace;
  color: #a6b09f;
}
.deploy-terminal p {
  font: 12px monospace;
  margin: 28px 0 20px;
}
.deploy-terminal p span {
  color: var(--lime);
}
.deploy-terminal ol {
  list-style: none;
  padding: 0;
  font: 10px monospace;
  color: #b7bdab;
}
.deploy-terminal li {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #343b2c;
  padding: 11px 0;
}
.deploy-terminal b {
  color: var(--lime);
}
.deploy-terminal strong {
  font: italic 18px var(--display);
  display: block;
  margin-top: 17px;
}
.project-link {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 11px;
}
.project-link span {
  color: var(--accent);
}
@media (min-width: 701px) {
  .experience > div:first-child {
    position: sticky;
    top: 35px;
    align-self: start;
  }
}
@media (max-width: 700px) {
  .hero-top {
    gap: 10px;
  }
  .hero-top > .eyebrow {
    max-width: 225px;
    line-height: 1.6;
  }
  .hero-index {
    white-space: nowrap;
    font-size: 7px;
  }
  .hero-top {
    align-items: start;
  }
  .terminal-top span {
    font-size: 6px;
  }
  .deploy-terminal p {
    font-size: 10px;
  }
  .deploy-terminal strong {
    font-size: 16px;
  }
}
@media print {
  .experience > div:first-child {
    position: static;
  }
  .timeline-entry {
    break-inside: avoid;
  }
}
/* After hours: an interactive, architectural illustration of a connected home. */
.home-lab {
  background: #172a23;
  border-top: 1px solid #425642;
  border-bottom: 1px solid #425642;
  --scene-glow: #f6cf84;
  --room-opacity: 0.12;
  --lamp-opacity: 0.2;
  --window-opacity: 0.18;
  --screen-opacity: 0.45;
}
.home-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
}
.home-intro h2 {
  margin: 24px 0 0;
}
.home-intro h2 em {
  color: #d5efad;
}
.home-lab .section-label {
  color: #adc1a3;
}
.home-badge {
  font: 8px/1.8 monospace;
  letter-spacing: 1px;
  color: #adc1a3;
  position: relative;
  padding: 22px 24px;
  border: 1px solid #52684d;
  border-radius: 50%;
  transform: rotate(9deg);
  text-align: center;
}
.home-badge > span {
  display: block;
  font: 38px var(--display);
  margin-bottom: 8px;
  color: #d5efad;
}
.home-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 70px;
  align-items: center;
}
.home-copy > .eyebrow {
  font-size: 9px;
  color: #bbcca9;
}
.home-copy h3 {
  font: 400 39px/1.12 var(--display);
  letter-spacing: -1px;
  margin: 25px 0;
}
.home-copy > p {
  font-size: 13px;
  color: #bdc9b7;
}
.home-principles {
  border-top: 1px solid #4b6047;
  margin: 32px 0;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font: 9px monospace;
  color: #a9c286;
}
.home-principles strong {
  font:
    11px Portfolio,
    "Trebuchet MS",
    sans-serif;
  margin-left: 16px;
  font-weight: 400;
  color: #e1e8d6;
}
.home-stack > span {
  font: 8px monospace;
  letter-spacing: 1.5px;
  color: #a9c286;
}
.home-stack > p {
  font-size: 10px;
  line-height: 1.7;
  color: #bdc9b7;
  margin-bottom: 0;
}
.home-playground {
  min-width: 0;
  position: relative;
  border: 1px solid #526849;
  background:
    radial-gradient(ellipse at 50% 38%, #32493444, transparent 65%), #1b3027;
  border-radius: 5px;
  padding: 23px 25px 18px;
  box-shadow: 0 25px 75px #09150c30;
}
.scene-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.scene-top .eyebrow {
  font-size: 7px;
  color: #adc1a3;
  line-height: 1.7;
}
.scene-weather {
  font: 30px var(--display);
  color: #d5efad;
  width: 32px;
  text-align: center;
}
.house-illustration {
  margin: 0 -25px -25px;
  aspect-ratio: 680/480;
}
.house-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.room-glow {
  fill: var(--scene-glow);
  opacity: var(--room-opacity);
  transition:
    fill 1s,
    opacity 1s;
}
.window-light {
  fill: #e9e9ae;
  opacity: var(--window-opacity);
  transition: opacity 1s;
}
.lamp-pool {
  opacity: var(--lamp-opacity);
  transition: opacity 1s;
}
.lamp-shade {
  fill: var(--scene-glow);
  transition: fill 1s;
}
.window-blind {
  opacity: 0.8;
  transition: opacity 1s;
}
.screen-light {
  opacity: var(--screen-opacity);
  transition: opacity 1s;
}
.sunbeam {
  transition: opacity 1s;
}
.home-lab[data-scene="morning"] {
  --scene-glow: #e1e8ac;
  --room-opacity: 0.19;
  --lamp-opacity: 0;
  --window-opacity: 0.8;
  --screen-opacity: 0.7;
}
.home-lab[data-scene="morning"] .window-blind {
  opacity: 0;
}
.home-lab[data-scene="morning"] .sunbeam {
  opacity: 0.2;
}
.home-lab[data-scene="away"] {
  --scene-glow: #6f9180;
  --room-opacity: 0.04;
  --lamp-opacity: 0;
  --window-opacity: 0.08;
  --screen-opacity: 0;
}
.home-lab[data-scene="away"] .window-blind {
  opacity: 1;
}
.house-floating {
  animation: house-breathe 8s ease-in-out infinite;
  animation-play-state: paused;
}
.signal-paths {
  stroke-dasharray: 3 8;
  animation: signal-flow 3s linear infinite;
  animation-play-state: paused;
}
.hub-ring {
  transform-origin: 411px 330px;
  animation: hub-ping 4s ease-out infinite;
  animation-play-state: paused;
}
.home-lab.in-view .house-floating,
.home-lab.in-view .signal-paths,
.home-lab.in-view .hub-ring {
  animation-play-state: running;
}
.scene-controls {
  display: flex;
  gap: 6px;
  background: #11251e;
  border: 1px solid #3e573f;
  padding: 5px;
  border-radius: 40px;
  position: relative;
  max-width: 345px;
  margin: 0 auto 26px;
}
.scene-controls[hidden] {
  display: none;
}
.scene-controls button {
  flex: 1;
  border: 0;
  background: none;
  font-size: 10px;
  color: #bdcbb4;
  padding: 12px 9px;
  border-radius: 30px;
  transition:
    background 0.25s,
    color 0.25s;
}
.scene-controls button span {
  margin-right: 7px;
  font-size: 13px;
}
.scene-controls button[aria-pressed="true"] {
  background: #d5efad;
  color: #1b3027;
}
.scene-controls button:hover {
  background: #3e5438;
  color: #fff;
}
.scene-controls button[aria-pressed="true"]:hover {
  background: #e5ffc0;
  color: #1b3027;
}
.scene-description {
  min-height: 132px;
  text-align: center;
  max-width: 390px;
  margin: auto;
}
.scene-kicker {
  font: 7px monospace;
  letter-spacing: 1.5px;
  color: #a9c286;
}
.scene-description h4 {
  font: italic 27px var(--display);
  margin: 12px 0 10px;
  letter-spacing: -0.5px;
}
.scene-description p {
  font-size: 11px;
  line-height: 1.75;
  color: #bdc9b7;
  margin: 0;
}
.scene-foot {
  border-top: 1px solid #425c42;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 15px;
  margin-top: 20px;
}
.scene-foot > span {
  font: 6px/1.7 monospace;
  letter-spacing: 0.9px;
  color: #a9bb9d;
  max-width: 220px;
}
.scene-foot .motion-button {
  font-size: 8px;
  white-space: nowrap;
  border-color: #536c48;
  padding: 8px 10px;
}
@keyframes house-breathe {
  50% {
    transform: translateY(-5px);
  }
}
@keyframes signal-flow {
  to {
    stroke-dashoffset: -44;
  }
}
@keyframes hub-ping {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  90%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@media (max-width: 1100px) {
  .home-layout {
    gap: 35px;
    grid-template-columns: 1fr 1.45fr;
  }
  .home-copy h3 {
    font-size: 34px;
  }
  .home-copy > p {
    font-size: 12px;
  }
  .home-playground {
    padding: 20px;
  }
  .house-illustration {
    margin: 0 -20px -12px;
  }
  .drawing-labels {
    font-size: 8px;
  }
  .scene-description h4 {
    font-size: 24px;
  }
}
@media (max-width: 800px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .home-intro {
    margin-bottom: 35px;
    gap: 15px;
  }
  .home-badge {
    display: none;
  }
  .home-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }
  .home-copy > .eyebrow,
  .home-copy h3 {
    grid-column: 1/-1;
  }
  .home-copy h3 {
    margin: 18px 0;
  }
  .home-principles {
    margin: 20px 0 0;
  }
  .home-stack {
    border-top: 1px solid #4b6047;
    margin-top: 20px;
    padding-top: 22px;
  }
  .home-playground {
    max-width: 650px;
    width: 100%;
    margin: auto;
  }
  .scene-description {
    min-height: 125px;
  }
}
@media (max-width: 700px) {
  nav {
    gap: 12px;
    font-size: 9px;
  }
  .home-copy {
    display: block;
  }
  .home-copy h3 {
    font-size: 33px;
  }
  .home-copy > p {
    font-size: 12px;
  }
  .home-stack {
    border: 0;
    padding-top: 0;
    margin-top: 26px;
  }
  .home-playground {
    padding: 17px 15px;
  }
  .house-illustration {
    margin: 8px -15px 5px;
  }
  .scene-controls {
    gap: 2px;
    margin-bottom: 23px;
  }
  .scene-controls button {
    font-size: 9px;
    padding: 10px 7px;
  }
  .scene-controls button span {
    margin-right: 3px;
  }
  .scene-description {
    min-height: 145px;
  }
  .scene-description h4 {
    font-size: 23px;
  }
  .scene-description p {
    font-size: 10px;
  }
  .scene-foot > span {
    font-size: 6px;
    max-width: 130px;
  }
  .scene-top .eyebrow {
    max-width: 200px;
    font-size: 6px;
    letter-spacing: 1px;
  }
  .scene-weather {
    font-size: 25px;
  }
  .home-intro h2 {
    font-size: 34px;
  }
  .drawing-labels {
    display: none;
  }
}
@media print {
  .home-lab {
    background: white;
    color: #111;
    border-color: #aaa;
  }
  .home-playground,
  .home-badge,
  .home-principles,
  .home-stack {
    display: none;
  }
  .home-layout,
  .home-copy {
    display: block;
  }
  .home-intro {
    margin-bottom: 15px;
  }
  .home-copy h3 {
    font-size: 20pt;
  }
  .home-lab .section-label,
  .home-copy > .eyebrow,
  .home-lab p,
  .home-intro h2 em {
    color: #444;
  }
  .home-copy > p {
    font-size: 10pt;
  }
  .home-intro h2 {
    font-size: 25pt;
  }
}
.home-builds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 65px;
  border-top: 1px solid #4b6047;
  padding-top: 35px;
}
.home-builds article {
  position: relative;
  padding-right: 20px;
}
.home-builds .eyebrow {
  font-size: 8px;
  color: #abc39b;
}
.home-builds h3 {
  font: 400 23px var(--display);
  margin: 20px 0 10px;
}
.home-builds p {
  font-size: 11px;
  color: #bdc9b7;
  line-height: 1.9;
}
.home-build-icon {
  display: block;
  font-size: 29px;
  color: #d5efad;
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .home-builds {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 38px;
    padding-top: 28px;
  }
  .home-builds article {
    padding-left: 45px;
    padding-right: 0;
  }
  .home-build-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 25px;
  }
  .home-builds h3 {
    margin-top: 12px;
    font-size: 23px;
  }
  .home-builds p {
    font-size: 11px;
  }
  .home-builds .eyebrow {
    font-size: 7px;
  }
}
@media print {
  .home-builds {
    display: none;
  }
}
.scene-controls button {
  min-height: 44px;
}
/* Generated office artwork with accurately positioned interactive layers. */
#sculpture {
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
#sculpture.is-dragging {
  cursor: grabbing;
}
.office-playground {
  padding: 20px;
  --print-cut: 100%;
}
.office-stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  margin: 18px -4px 20px;
  isolation: isolate;
}
.office-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.office-night {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.office-playground[data-time="night"] .office-night {
  opacity: 1;
}
.office-print {
  position: absolute;
  left: 64.1%;
  top: 45.3%;
  width: 6.6%;
  height: 6.6%;
  clip-path: inset(var(--print-cut) 0 0);
  z-index: 2;
  filter: drop-shadow(1px 2px 1px #39240f77);
  display: none;
}
.office-playground[data-print-model="ducky"] .office-print[data-model="ducky"],
.office-playground[data-print-model="benchy"] .office-print[data-model="benchy"],
.office-playground[data-print-model="tile"] .office-print[data-model="tile"],
.office-playground[data-print-model="rocket"] .office-print[data-model="rocket"] {
  display: block;
}
.office-playground[data-time="night"] .office-print {
  filter: brightness(0.83) saturate(1.15) drop-shadow(1px 2px 1px #1118);
}
.office-effects {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.office-scene-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font: 8px monospace;
  letter-spacing: 1.4px;
  padding: 8px 10px;
  color: #e9f5d5;
  background: #13251ec9;
  border-radius: 2px;
  z-index: 4;
}
.office-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.office-controls[hidden] {
  display: none;
}
.time-switch {
  display: flex;
  padding: 4px;
  background: #12251e;
  border: 1px solid #486141;
  border-radius: 30px;
  flex: 1.3;
}
.time-switch button {
  border: 0;
  background: none;
  min-height: 40px;
  border-radius: 25px;
  color: #bfcfb3;
  font-size: 11px;
  flex: 1;
  padding: 0 14px;
  white-space: nowrap;
}
.time-switch [aria-pressed="true"] {
  background: #d5efad;
  color: #1b3027;
}
.office-action {
  border: 1px solid #657b50;
  border-radius: 6px;
  padding: 12px;
  background: #263e2a;
  color: #e6efdb;
  font-size: 10px;
  flex: 1;
  white-space: nowrap;
  min-height: 48px;
  transition: background 0.2s;
}
.office-action:hover {
  background: #3b552e;
}
.office-action > span:first-child {
  color: #d5efad;
  margin-right: 5px;
}
.office-action:disabled {
  cursor: wait;
  opacity: 0.7;
}
.office-readout {
  position: relative;
  margin-top: 21px;
  padding: 18px 0 0;
  border-top: 1px solid #425c42;
}
.office-job {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
}
.office-job > span:first-child {
  font: italic 22px var(--display);
  color: #e6efdb;
}
.office-job > span:last-child {
  font-size: 10px;
  line-height: 1.7;
  color: #b7c9af;
}
.office-readout progress {
  width: 100%;
  height: 4px;
  border: 0;
  display: block;
  margin-top: 12px;
  border-radius: 4px;
  accent-color: #d5efad;
}
.office-readout progress[hidden] {
  display: none;
}
progress::-webkit-progress-bar {
  background: #364f35;
}
progress::-webkit-progress-value {
  background: #d5efad;
}
.office-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}
.rack-leds circle {
  animation: rack-blink 2.7s steps(1, end) infinite;
  animation-play-state: paused;
  filter: drop-shadow(0 0 3px #a4ff30);
}
.rack-leds circle:nth-child(3n) {
  animation-delay: -0.7s;
}
.rack-leds circle:nth-child(3n + 1) {
  animation-delay: -1.3s;
}
.rack-leds circle:nth-child(2n) {
  animation-duration: 3.1s;
}
.in-view .rack-leds circle {
  animation-play-state: running;
}
[data-build="building"] .rack-leds circle,
[data-build="complete"] .rack-leds circle {
  animation: none;
}
.rack-light-row {
  filter: drop-shadow(0 0 5px #a4ff70);
}
/* The moving head fades in over the painted one, which a patch paints out
   for as long as the print runs. */
.printer-working,
.printer-front-patch {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0s 0.22s;
}
[data-print="printing"] .printer-working,
[data-print="printing"] .printer-front-patch {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease;
}
.printer-patch {
  position: absolute;
  left: 61.882%;
  top: 41.308%;
  width: 7.337%;
  height: 7.496%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
[data-print="printing"] .printer-patch {
  opacity: 1;
}
[data-print="printing"][data-time="day"] .printer-patch-night,
[data-time="night"] .printer-patch:not(.printer-patch-night) {
  opacity: 0;
}
#print-trace {
  opacity: 0.9;
  filter: drop-shadow(0 0 1.5px #fff3);
}
.tab-hidden .rack-leds circle {
  animation-play-state: paused !important;
}
/* The robot's plug-in: red and orange alarm, then a slow return to green. */
[data-rack="alarm"] .rack-leds circle,
[data-rack="alarm"] .rack-leds circle:nth-child(2n),
[data-rack="alarm"] .rack-leds circle:nth-child(3n),
[data-rack="alarm"] .rack-leds circle:nth-child(3n + 1) {
  fill: #ff4a2a;
  filter: drop-shadow(0 0 4px #ff6a30);
  animation: rack-alarm-blink 0.36s steps(1, end) infinite;
}
[data-rack="alarm"] .rack-leds circle:nth-child(2n) {
  fill: #ffa12b;
  filter: drop-shadow(0 0 4px #ffb347);
  animation-delay: -0.18s;
}
[data-rack="alarm"] .rack-light-row {
  opacity: 1 !important;
  filter: drop-shadow(0 0 5px #ff7a3a);
  animation: rack-alarm-rows 0.72s ease-in-out infinite alternate;
}
[data-rack="alarm"] .rack-light-row path,
[data-rack="alarm"] .rack-light-row rect,
[data-rack="alarm"] .rack-light-row circle {
  fill: #ff7038;
}
[data-rack="alarm"] .rack-light-row:nth-child(2n) path,
[data-rack="alarm"] .rack-light-row:nth-child(2n) rect,
[data-rack="alarm"] .rack-light-row:nth-child(2n) circle {
  fill: #ffa53a;
}
[data-rack="alarm"] .rack-ambient {
  fill: #ff5a2e;
  opacity: 0.5 !important;
  animation: rack-alarm-glow 0.72s ease-in-out infinite alternate;
}
[data-rack="recover"] .rack-ambient,
[data-rack="recover"] .rack-light-row {
  transition:
    opacity 1.3s ease-out,
    fill 1.3s ease-out;
}
[data-rack="recover"] .rack-leds circle {
  transition: fill 1.3s ease-out;
}
.motion-paused [data-rack] .rack-leds circle,
.motion-paused [data-rack] .rack-light-row,
.motion-paused [data-rack] .rack-ambient,
.tab-hidden [data-rack] .rack-leds circle,
.tab-hidden [data-rack] .rack-light-row,
.tab-hidden [data-rack] .rack-ambient {
  animation-play-state: paused !important;
}
@keyframes rack-alarm-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
@keyframes rack-alarm-rows {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@keyframes rack-alarm-glow {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 0.62;
  }
}
/* The plug-in spark: a quick burst at the contact point when the alarm starts. */
.rack-spark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
[data-rack="alarm"] .rack-spark {
  animation: rack-spark-burst 0.62s ease-out both;
}
[data-rack="alarm"] .rack-spark-rays {
  animation: rack-spark-rays 0.62s ease-out both;
  transform-box: fill-box;
  transform-origin: center;
}
[data-rack="alarm"] .rack-spark-bits {
  animation: rack-spark-bits 0.62s ease-out both;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes rack-spark-burst {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  12% {
    opacity: 1;
    transform: scale(1.15);
  }
  30% {
    opacity: 0.9;
    transform: scale(0.85);
  }
  45% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}
@keyframes rack-spark-rays {
  from {
    transform: scale(0.4) rotate(-20deg);
  }
  to {
    transform: scale(1.5) rotate(25deg);
  }
}
@keyframes rack-spark-bits {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(2.1) translate(2px, 5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-rack="alarm"] .rack-spark,
  [data-rack="alarm"] .rack-spark-rays,
  [data-rack="alarm"] .rack-spark-bits {
    animation: none;
  }
}
.reaction-scold-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
[data-avatar="scold"] .reaction-scold-layer {
  opacity: 1;
}
[data-avatar="scold"] .avatar-coffee-layer {
  display: none;
}
.scold-night {
  opacity: 0;
  transition: opacity 1.1s ease;
}
[data-time="night"] .scold-night {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  [data-rack="alarm"] .rack-leds circle,
  [data-rack="alarm"] .rack-light-row,
  [data-rack="alarm"] .rack-ambient {
    animation: none;
  }
}
@keyframes rack-blink {
  0%,
  65%,
  100% {
    opacity: 1;
  }
  35%,
  80% {
    opacity: 0.15;
  }
}
@media (max-width: 1100px) {
  .office-controls {
    gap: 6px;
  }
  .time-switch {
    flex-basis: 100%;
    flex-grow: 1;
  }
  .office-action {
    min-height: 44px;
  }
  .office-job > span:first-child {
    font-size: 20px;
  }
}
@media (max-width: 700px) {
  .office-playground {
    padding: 14px;
  }
  .office-stage {
    margin: 12px -7px 15px;
  }
  .office-controls {
    gap: 7px;
  }
  .office-action {
    font-size: 10px;
  }
  .time-switch button {
    min-height: 36px;
  }
  .office-scene-label {
    font-size: 6px;
    bottom: 8px;
    left: 8px;
    padding: 6px;
  }
  .office-job {
    min-height: 100px;
  }
  .office-job > span:first-child {
    font-size: 21px;
  }
  .office-stage .office-print {
    image-rendering: auto;
  }
}
.header {
  gap: 24px;
}
.header nav {
  margin-left: auto;
}
.language-switch {
  display: flex;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--lang-border);
  border-radius: 30px;
  padding: 4px;
  flex-shrink: 0;
}
.language-switch button {
  background: none;
  border: 0;
  position: relative;
  z-index: 1;
  border-radius: 25px;
  width: 38px;
  height: 32px;
  font: 10px monospace;
  letter-spacing: 1px;
  color: var(--lang-text);
}
.language-switch button[aria-pressed="true"] {
  color: #192315;
}
.language-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 38px;
  height: 32px;
  border-radius: 25px;
  background: var(--lime);
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
html[lang="nl"] .language-thumb {
  transform: translateX(38px);
}
html[lang="nl"] h1 .serif {
  font-size: 0.88em;
}
html[lang="nl"] .home-intro h2 {
  font-size: clamp(32px, 3.6vw, 51px);
}
@media (max-width: 1000px) {
  .header {
    gap: 16px;
  }
  nav {
    gap: 20px;
  }
  .nav-cta span {
    margin-left: 12px;
  }
}
@media (max-width: 700px) {
  .header {
    height: 122px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px 15px;
    padding: 15px 0 10px;
  }
  .header nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    font-size: 10px;
    gap: 8px;
  }
  .header .language-switch {
    grid-column: 3;
    grid-row: 1;
  }
  .header .wordmark {
    grid-column: 1;
    grid-row: 1;
  }
  .hero {
    min-height: 920px;
  }
  .office-controls .office-action {
    white-space: normal;
  }
  .office-job {
    min-height: 110px;
  }
  html[lang="nl"] .hero-copy p {
    max-width: 300px;
  }
  html[lang="nl"] .contact h2 {
    font-size: 34px;
  }
}
@media print {
  .language-switch {
    display: none;
  }
}

/* Independently masked scene poses preserve simultaneous robot/avatar actions. */
.office-reaction {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
  z-index: 1;
}
.robot-drive-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.reaction-avatar {
  clip-path: inset(38% 44.7% 47% 43.3%);
}
.reaction-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.reaction-night {
  opacity: 0;
  transition: opacity 1.1s ease;
}
[data-time="night"] .reaction-night {
  opacity: 1;
}
[data-avatar="busy"] .reaction-avatar {
  opacity: 1;
}
.office-hotspot {
  position: absolute;
  z-index: 5;
  background: transparent;
  border: 0;
  border-radius: 18px;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}
.office-hotspot span {
  opacity: 0;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #162a21d9;
  color: #e3f6aa;
  font-size: 15px;
  line-height: 24px;
  transition: opacity 0.2s;
}
.office-hotspot:hover span,
.office-hotspot:focus-visible span {
  opacity: 1;
}
.office-hotspot:focus-visible {
  outline-offset: 0;
}
.robot-hotspot {
  left: 18%;
  top: 52%;
  width: 12%;
  height: 14%;
}
.avatar-hotspot {
  left: 34%;
  top: 33%;
  width: 23%;
  height: 34%;
  /* Include the chair and legs; leave the cookie jar its own click target. */
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%, 0 45%, 12% 45%);
}
.avatar-reply {
  position: absolute;
  z-index: 6;
  left: 44%;
  top: 32%;
  padding: 8px 12px;
  background: #e2edbd;
  color: #162a21;
  border-radius: 12px 12px 12px 2px;
  font: 11px monospace;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
[data-avatar="busy"] .avatar-reply {
  opacity: 1;
  transform: translateY(0);
}
.office-hint {
  margin: 12px 0 0;
  font-size: 11px;
  color: #b4c5ab;
}
.terminal-effects {
  opacity: 0;
  transition: opacity 0.4s;
}
[data-build="building"] .terminal-effects,
[data-build="complete"] .terminal-effects {
  opacity: 1;
}
.build-success {
  opacity: 0;
}
[data-build="complete"] .build-success {
  opacity: 1;
}
.terminal-cursor {
  animation: rack-blink 1s steps(1, end) infinite;
}
[data-build="complete"] .terminal-cursor {
  display: none;
}
[data-build="idle"] .rack-light-row,
[data-build="idle"] .rack-ambient {
  transition: opacity 0.8s ease-out;
}
.printer-working {
  filter: drop-shadow(1px 2px 1px #15191299);
}
.tab-hidden .terminal-cursor {
  animation-play-state: paused;
}
@media print {
  .header {
    position: static;
    box-shadow: none;
  }
}
