:root {
  color-scheme: light dark;
  --paper: #f4f1e9;
  --paper-deep: #eae6da;
  --ink: #242a25;
  --muted: #686d64;
  --rule: #d7d3c7;
  --terracotta: #b74c35;
  --primary: #7c7cff;
  --primary-soft: #efefff;
  --gold: #e6b85b;
  --green: #637357;
  --card: #fffdf7;
  --display: "Newsreader", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --mono: "DM Mono", monospace;
  --wrap: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #222722;
    --paper-deep: #2b312b;
    --ink: #ece9dd;
    --muted: #b5b7aa;
    --rule: #474e45;
    --terracotta: #e18267;
    --gold: #e6be72;
    --green: #98a58c;
    --card: #303730;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #222722;
  --paper-deep: #2b312b;
  --ink: #ece9dd;
  --muted: #b5b7aa;
  --rule: #474e45;
  --terracotta: #e18267;
  --gold: #e6be72;
  --green: #354438;
  --card: #303730;
}

:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; transition: background-color .25s, color .25s; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 2px; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -60px; left: 16px; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 16px; }
.masthead { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.07em; }
.brand img { object-fit: contain; }
.brand-dot { color: var(--terracotta); }
.nav { display: flex; gap: 36px; margin-left: 56px; }
.nav a, .language { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .18s ease; }
.nav a:hover, .language:hover { color: var(--terracotta); }
.language { font-family: var(--mono); letter-spacing: .08em; }
.language span { color: var(--terracotta); }
.hero { min-height: 642px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 52px; align-items: center; padding-block: 52px 78px; }
.eyebrow, .small-label { margin: 0; color: var(--muted); font: 500 10px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.hero-copy { padding: 8px 0 0 4.5%; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #748b64; box-shadow: 0 0 0 3px color-mix(in srgb, #748b64 18%, transparent); }
h1, h2, h3, p { margin-top: 0; }
h1, .section-heading h2, .stack-content h2, .closing h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
h1 { margin: 26px 0 22px; font-size: clamp(64px, 7vw, 91px); line-height: .92; }
h1 em, h2 em { color: var(--terracotta); font-weight: 400; }
.hero-lede { max-width: 465px; margin-bottom: 27px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 48px; padding: 0 19px; text-decoration: none; font-size: 12px; font-weight: 600; transition: transform .2s, background-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--terracotta); }
.button span { color: var(--gold); font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration-color: var(--terracotta); text-underline-offset: 5px; }
.text-link:hover { color: var(--terracotta); }
.hero-note { display: flex; align-items: center; gap: 11px; margin: 36px 0 0; color: var(--muted); font-size: 10px; }
.note-line { width: 28px; border-top: 1px solid var(--terracotta); }
.hero-art { position: relative; min-height: 505px; display: grid; place-items: center; isolation: isolate; }
.orbit { position: absolute; z-index: -1; border: 1px solid var(--rule); border-radius: 50%; transform: rotate(-19deg); }
.orbit-one { width: 490px; height: 330px; }
.orbit-two { width: 565px; height: 405px; transform: rotate(28deg); }
.sun-disc { position: absolute; top: 37px; right: 67px; z-index: -1; width: 103px; height: 103px; border-radius: 50%; background: var(--gold); opacity: .76; }
.pet-card { position: relative; width: min(346px, 76%); padding: 18px 22px 21px; background: var(--card); box-shadow: 0 23px 60px color-mix(in srgb, var(--ink) 12%, transparent); transform: rotate(2deg); }
.card-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--rule); color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.card-cross { color: var(--terracotta); font-size: 20px; }
.dog-art { height: 235px; display: grid; place-items: center; margin-inline: -4px; background: radial-gradient(ellipse at 49% 61%, color-mix(in srgb, var(--green) 35%, transparent) 0 42%, transparent 43%); }
.dog-art svg { width: 230px; max-height: 232px; }
.dog-body { fill: #ca8e5c; }
.dog-ear { fill: #a96e4f; }
.dog-muzzle { fill: #e8c9a0; }
.dog-eye, .dog-nose { fill: #2a302b; }
.dog-shadow { fill: color-mix(in srgb, var(--ink) 12%, transparent); }
.pet-info { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 3px 14px; }
.small-label { font-size: 8px; }
.pet-info h2 { margin: 3px 0 0; font: 500 31px/.95 var(--display); }
.pet-age { color: var(--muted); font-size: 10px; line-height: 1.45; text-align: right; }
.record-row { display: flex; align-items: center; gap: 11px; padding: 13px 10px; border-top: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.record-icon { color: var(--terracotta); font-size: 18px; }
.record-row b, .record-row small { display: block; }
.record-row b { font-size: 10px; }
.record-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.record-arrow { margin-left: auto; color: var(--terracotta); }
.art-caption { position: absolute; right: 9%; bottom: -6px; left: 9%; display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.ticker { overflow: hidden; background: var(--terracotta); color: #fff9ec; }
.ticker-track { min-width: max-content; display: flex; align-items: center; justify-content: space-around; gap: 31px; padding: 15px 0 14px; animation: marquee 48s linear infinite; font: 10px var(--mono); letter-spacing: .14em; }
.ticker-track b { color: var(--gold); font-size: 15px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.section-pad { padding-block: 118px; }
.approach { display: grid; grid-template-columns: 1fr 1fr; column-gap: 90px; row-gap: 64px; }
.section-heading h2, .stack-content h2, .closing h2 { margin: 17px 0 0; font-size: clamp(44px, 5vw, 61px); line-height: 1.03; }
.approach-copy { max-width: 495px; padding-top: 23px; }
.approach-copy p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.approach-copy .text-link { margin-top: 7px; }
.principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.principles article { min-height: 160px; padding: 24px 28px 0 0; }
.principles article + article { padding-left: 29px; border-left: 1px solid var(--rule); }
.principle-num { color: var(--terracotta); font: 10px var(--mono); }
.principles h3, .architecture-notes h3, .notes-list h3 { margin: 17px 0 8px; font-size: 14px; font-weight: 600; }
.principles p, .architecture-notes p, .notes-list p { max-width: 330px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.architecture { background: var(--paper-deep); }
.architecture .section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 54px; }
.architecture .section-heading .eyebrow { grid-column: 1 / -1; }
.architecture .section-heading h2 { grid-column: 1; }
.section-intro { max-width: 350px; margin: 0 0 7px auto; color: var(--muted); font-size: 13px; line-height: 1.8; }
.arch-frame { padding: 0 20px 17px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.arch-label { display: flex; justify-content: space-between; padding: 17px 5px; color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.arch-label span { color: var(--terracotta); }
.architecture-svg { display: block; width: 100%; height: auto; min-height: 360px; overflow: visible; }
.arch-node, .lambda { fill: var(--card); stroke: var(--rule); stroke-width: 1; }
.gateway { fill: color-mix(in srgb, var(--gold) 17%, var(--card)); }
.lambda { fill: color-mix(in srgb, var(--green) 14%, var(--card)); }
.domain-zone { fill: color-mix(in srgb, var(--primary-soft) 45%, transparent); stroke: color-mix(in srgb, var(--primary) 55%, var(--rule)); stroke-dasharray: 4 5; }
.domain-chip rect { fill: var(--card); stroke: var(--rule); }
.domain-chip text { fill: var(--ink); font: 12px var(--mono); }
.arch-mono { fill: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.arch-title { fill: var(--ink); font: 600 13px var(--sans); }
.arch-sub, .service-sub { fill: var(--muted); font: 9px var(--sans); }
.arch-line { fill: none; stroke: #827f73; stroke-width: 1; }
.service { fill: var(--card); stroke: var(--rule); }
.service-title { fill: var(--terracotta); font: 600 11px var(--mono); }
.arch-note { fill: var(--ink); font: 500 11px var(--mono); }
.arch-legend { display: flex; justify-content: space-between; gap: 20px; padding: 7px 5px 3px; color: var(--muted); font-size: 9px; }
.arch-legend i { display: inline-block; width: 17px; margin-right: 5px; border-top: 1px solid var(--terracotta); vertical-align: middle; }
.arch-legend span:nth-child(2) i { border-top-style: dashed; }
.arch-mobile { display: none; }
.architecture-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; padding-top: 33px; }
.architecture-notes article { display: flex; gap: 16px; }
.note-mark { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid var(--terracotta); border-radius: 50%; color: var(--terracotta); font: 12px var(--mono); }
.architecture-notes h3 { margin: 2px 0 8px; }
.architecture-notes a { display: inline-block; margin-top: 12px; color: var(--terracotta); font-size: 10px; font-weight: 600; text-decoration: none; }
.architecture-notes a:hover { text-decoration: underline; }
.field-notes { display: grid; grid-template-columns: .85fr 1.15fr; gap: 55px; }
.notes-list article { display: grid; grid-template-columns: 36px 1fr 24px; gap: 10px; align-items: start; padding: 23px 0; border-top: 1px solid var(--rule); }
.notes-list article > span { padding-top: 3px; color: var(--terracotta); font: 10px var(--mono); }
.notes-list h3 { margin: 0 0 7px; }
.notes-list article > a { color: var(--terracotta); text-align: right; text-decoration: none; }
.notes-list article > a:hover { transform: translate(2px,-2px); }
.stack-band { padding: 75px 0; background: var(--green); color: #fcf9f0; }
.stack-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.stack-content .eyebrow { color: #e6e8dc; }
.stack-content h2 { margin-top: 15px; font-size: 47px; }
.stack-content h2 em { color: #f2cb7d; }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stack-grid span { padding: 12px 10px; border-bottom: 1px solid rgb(255 255 255 / 26%); font-size: 12px; }
.stack-grid span:nth-child(odd) { margin-right: 18px; }
.closing { padding-block: 106px 114px; text-align: center; }
.closing h2 { margin: 19px 0; }
.closing > p:not(.eyebrow) { max-width: 455px; margin: 0 auto 26px; color: var(--muted); font-size: 13px; }
.closing .button { margin: auto; }
.footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer .brand { font-size: 18px; }
.footer-inner > span, .footer-inner > a:last-child { color: var(--muted); font-size: 10px; text-decoration: none; }
.footer-inner > a:last-child:hover { color: var(--terracotta); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 15px; min-height: 570px; }
  .hero-copy { padding-left: 0; }
  .hero-art { transform: scale(.9); }
  .approach { column-gap: 45px; }
  .architecture-svg { min-width: 870px; transform-origin: left top; }
  .arch-frame { overflow-x: auto; }
  .arch-legend { min-width: 830px; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 38px, var(--wrap)); }
  .masthead { height: 69px; }
  .brand { font-size: 19px; }
  .nav { display: none; }
  .language { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 7px; padding-block: 61px 44px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 9px; }
  h1 { margin: 21px 0 17px; font-size: clamp(62px, 17vw, 81px); }
  .hero-lede { max-width: 510px; font-size: 14px; }
  .hero-actions { gap: 18px; }
  .button { min-height: 46px; padding-inline: 14px; font-size: 11px; }
  .text-link { font-size: 11px; }
  .hero-note { margin-top: 24px; font-size: 9px; }
  .hero-art { min-height: 420px; margin-top: 9px; transform: none; }
  .orbit-one { width: 85vw; height: 285px; }
  .orbit-two { width: 96vw; height: 347px; }
  .sun-disc { top: 29px; right: 11%; width: 78px; height: 78px; }
  .pet-card { width: min(325px, 81%); }
  .dog-art { height: 206px; }
  .dog-art svg { width: 209px; height: 210px; }
  .art-caption { right: 3%; left: 3%; bottom: 0; font-size: 7px; }
  .ticker-track { padding-block: 13px; font-size: 9px; }
  .section-pad { padding-block: 76px; }
  .approach { grid-template-columns: 1fr; row-gap: 27px; }
  .section-heading h2, .stack-content h2, .closing h2 { font-size: 47px; }
  .approach-copy { padding: 0; }
  .approach-copy p { font-size: 13px; }
  .principles { grid-column: auto; grid-template-columns: 1fr; margin-top: 12px; }
  .principles article { min-height: 0; padding: 18px 0 20px; }
  .principles article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .principles h3 { margin: 9px 0 4px; }
  .principles p { max-width: 410px; }
  .architecture .section-heading { display: block; margin-bottom: 30px; }
  .architecture .section-heading h2 { margin-bottom: 14px; }
  .section-intro { max-width: 430px; margin: 0; font-size: 12px; }
  .arch-frame { padding: 0 12px 13px; overflow: visible; }
  .arch-label { padding: 13px 1px; font-size: 7px; }
  .architecture-svg { display: none; }
  .arch-mobile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 19px 8px; text-align: center; }
  .arch-mobile span { width: min(100%, 290px); padding: 12px 10px; border: 1px solid var(--rule); background: var(--card); font-size: 11px; }
  .arch-mobile span:nth-of-type(3) { border-color: var(--terracotta); background: color-mix(in srgb, var(--terracotta) 5%, var(--card)); font-size: 10px; line-height: 1.8; }
  .arch-mobile b { color: var(--terracotta); font-size: 13px; line-height: 1; }
  .arch-legend { min-width: 0; flex-wrap: wrap; gap: 5px 13px; padding: 8px 2px 2px; font-size: 8px; }
  .arch-legend span:last-child { width: 100%; }
  .architecture-notes { grid-template-columns: 1fr; gap: 27px; padding-top: 27px; }
  .architecture-notes p { font-size: 11px; }
  .field-notes { grid-template-columns: 1fr; gap: 31px; }
  .notes-list article { grid-template-columns: 26px 1fr 20px; padding: 19px 0; }
  .notes-list p { font-size: 11px; }
  .stack-band { padding: 61px 0; }
  .stack-content { grid-template-columns: 1fr; gap: 31px; }
  .stack-content h2 { font-size: 45px; }
  .stack-grid span:nth-child(odd) { margin-right: 13px; }
  .stack-grid span { padding: 10px 4px; font-size: 11px; }
  .closing { padding-block: 73px 80px; }
  .closing h2 { font-size: 45px; }
  .closing > p:not(.eyebrow) { max-width: 350px; font-size: 12px; }
  .footer-inner { min-height: 105px; flex-wrap: wrap; justify-content: space-between; padding-block: 15px; }
  .footer-inner > span { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
