

.tri-room-document {
  color-scheme: light;
  --hero: #f8faf7;
  --paper: #fff;
  --soft: #f0f3ef;
  --glow: #dfe9e2;
  --ink: #202725;
  --muted: #505e58;
  --line: #d7e0d9;
  --green: #46780c;
  --warning: #91480d;
  --hardware: #e0e8e3;
  --button: #4b7917;
  --button-ink: #fff;
  --header-height: 72px;
}

.tri-room-document[data-theme="dark"] {
  color-scheme: dark;
  --hero: #181a20;
  --paper: #151d1e;
  --soft: #202829;
  --glow: #2c3839;
  --ink: #f4f6f4;
  --muted: #bfcac5;
  --line: #3a4745;
  --green: #a1ce60;
  --warning: #ffc28a;
  --hardware: #273336;
  --button: #a1ce60;
  --button-ink: #1b2515;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
room-html { scroll-padding-top: calc(var(--header-height) + 14px); }
room-body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 "Open Sans", "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(100% - 2 * clamp(22px, 5.5vw, 88px), 1360px); margin-inline: auto; }
.story-wrap { width: min(100% - 2 * clamp(22px, 8vw, 112px), 1020px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px 16px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--hero) 94%, transparent);
  backdrop-filter: blur(15px);
}
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header-inner { min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.65rem; font-weight: 750; letter-spacing: -.052em; white-space: nowrap; }
.brand small { margin-left: 3px; color: var(--green); font-size: .9rem; font-weight: 700; letter-spacing: -.018em; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 42px); font-size: .9rem; font-weight: 650; }
.site-header nav a { padding-block: 5px; }
.site-header nav a:hover { color: var(--green); }
.theme-switch { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 92px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--soft); color: var(--ink); font-size: .875rem; cursor: pointer; }
.theme-switch:hover { border-color: var(--green); }
.theme-icon { font-size: 1rem; }

.hero { overflow: hidden; background: radial-gradient(ellipse at 75% 49%, var(--glow), transparent 64%), var(--hero); }
.hero-inner { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; min-height: clamp(550px, calc(calc(var(--tri-room-viewport-height, 100vh) * 0.8) - var(--header-height)), 730px); }
.hero-copy { z-index: 1; padding-block: 44px; }
.hero-visual { position: relative; display: grid; align-self: stretch; align-items: center; isolation: isolate; }
.room-image { width: 108%; max-width: 108%; height: auto; transform: translateX(-6%); filter: drop-shadow(0 23px 28px #0b15172e); }
.hero-agent { position: absolute; right: -12%; bottom: 0; width: min(80%, 530px); height: auto; filter: drop-shadow(-8px 14px 28px #0c151844); mask-image: linear-gradient(#000 87%, transparent 100%); }
.hero-agent-name { position: absolute; right: 0; bottom: 8%; display: grid; padding-inline: 8px; color: #fff; text-align: right; text-shadow: 0 1px 5px #0d1617, 0 2px 14px #0d1617; }
.hero-agent-name strong { font-size: 1.7rem; line-height: 1.06; letter-spacing: -.04em; }
.hero-agent-name span { font-size: .875rem; font-weight: 650; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.eyebrow::before { content: ""; flex: 0 0 24px; height: 2px; background: var(--green); }
.heading { margin-bottom: 20px; font-size: clamp(2rem, 4.65vw, 4.35rem); font-weight: 750; line-height: 1.05; letter-spacing: -.045em; text-transform: uppercase; }
.heading span, .heading em { display: block; }
.heading em, .story-heading em { color: var(--green); font-style: normal; font-weight: 350; }
h1.heading { margin-bottom: 25px; font-size: clamp(2.15rem, 4.55vw, 4.8rem); }
.hero-lead { margin-bottom: 12px; font-size: clamp(1.18rem, 2vw, 1.6rem); font-weight: 650; letter-spacing: -.025em; }
.lead { max-width: 53ch; color: var(--muted); }
.hero .lead { max-width: 42ch; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; margin-top: 25px; padding: 9px 21px; border: 1px solid var(--button); border-radius: 99px; background: var(--button); color: var(--button-ink); font-size: .9rem; font-weight: 750; transition: box-shadow .18s ease; }
.button:hover { box-shadow: 0 5px 20px color-mix(in srgb, var(--green) 25%, transparent); }
.button-outline { border-color: var(--green); background: transparent; color: var(--green); }

.platform, .administration, .mail-security, .shift-end, .brain { padding-block: clamp(50px, 7.2vw, 108px); }
.platform { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 23% 64%, var(--glow), transparent 62%), var(--paper); }
.platform-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 75px); margin-top: clamp(23px, 3.5vw, 48px); }
.platform-art { position: relative; display: grid; place-items: center; min-height: 280px; isolation: isolate; }
.platform-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px), repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 24px); mask-image: radial-gradient(ellipse, #000 17%, transparent 72%); }
.server-diagram { display: grid; width: min(83%, 300px); gap: 9px; }
.server-diagram span { position: relative; display: block; height: clamp(36px, 5.1vw, 60px); border: 1px solid color-mix(in srgb, var(--line) 80%, var(--ink)); border-radius: 7px; background: linear-gradient(155deg, var(--hardware), var(--soft)); box-shadow: 0 9px 14px #070c121a, inset 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.server-diagram span::before { content: ""; position: absolute; top: calc(50% - 2px); left: 12%; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 10px 0 var(--green), 20px 0 color-mix(in srgb, var(--green) 45%, var(--hardware)); }
.server-diagram span::after { content: ""; position: absolute; top: 35%; bottom: 35%; right: 10%; width: 37%; border-radius: 2px; background: repeating-linear-gradient(90deg, transparent 0 3px, var(--line) 3px 6px); }
.platform-layers { position: relative; display: grid; padding: 0 0 0 27px; margin: 0; list-style: none; }
.platform-layers::before, .platform-layers::after { content: ""; position: absolute; top: 17px; bottom: 25px; left: 5px; width: 1px; background: var(--line); }
.platform-layers::after { background: var(--green); }
.platform-layers li { position: relative; padding: 10px 0 12px; }
.platform-layers li + li { border-top: 1px solid var(--line); }
.platform-layers li::before { content: ""; position: absolute; z-index: 1; top: 17px; left: -27px; width: 11px; height: 11px; border: 2px solid var(--green); border-radius: 50%; background: var(--paper); }
.platform-layers h3 { color: var(--ink); font-size: clamp(1.03rem, 1.75vw, 1.35rem); font-weight: 750; line-height: 1.25; }
.platform-layers p { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.platform-example { max-width: 70ch; margin-top: clamp(20px, 3.5vw, 40px); padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.platform-example figcaption { font-size: .875rem; font-weight: 650; }
.platform-example ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; margin: 6px 0; padding: 0; list-style: none; color: var(--ink); font-weight: 750; }
.platform-example li + li::before { content: ""; display: inline-block; width: 12px; height: 6px; margin-right: 12px; border-block-start: 1px solid var(--green); }
.platform-example li:nth-child(2) { color: var(--green); }
.story-intro { padding-bottom: clamp(32px, 5.2vw, 72px); border-bottom: 1px solid var(--line); }
.story-intro .lead { font-size: 1.06rem; }
.story-scene { padding-top: clamp(30px, 6vw, 75px); }
.story-scene + .story-scene { margin-top: clamp(36px, 6vw, 76px); border-top: 1px solid var(--line); }
.story-heading { max-width: 24ch; margin-bottom: 20px; font-size: clamp(1.95rem, 4.1vw, 3.8rem); font-weight: 730; line-height: 1.07; letter-spacing: -.045em; }
.story-heading em { display: block; }
.story-scene > p:not(.eyebrow), .story-copy > p:not(.eyebrow), .security-copy > p:not(.eyebrow), .brain-copy > p:not(.eyebrow) { max-width: 66ch; color: var(--muted); }
.story-scene p + p, .story-copy p + p, .brain-copy p + p { margin-top: 13px; }
.story-scene--illustrated { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: clamp(29px, 5vw, 68px); }

.scene-graphic { --scene-art-size: clamp(64px, 8vw, 108px); padding-block: 20px; border-block: 1px solid var(--line); text-align: center; }
.scene-graphic figcaption { color: var(--ink); font-weight: 650; }
.scene-graphic ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 13px 0 0; padding: 0; list-style: none; }
.scene-graphic li { position: relative; padding: 0 3px; }
.scene-graphic li + li::before { content: ""; position: absolute; top: calc(var(--scene-art-size) / 2); right: calc(50% + var(--scene-art-size) / 2); width: max(0px, calc(100% - var(--scene-art-size))); height: 1px; background: var(--line); }
.scene-graphic li + li::after { content: ""; position: absolute; top: calc(var(--scene-art-size) / 2 - 2px); right: calc(50% + var(--scene-art-size) / 2); width: 5px; height: 5px; border: solid var(--line); border-width: 1px 1px 0 0; transform: rotate(45deg); }
.scene-icon { display: grid; place-items: center; width: var(--scene-art-size); height: var(--scene-art-size); margin-inline: auto; }
.scene-icon img { width: min(100%, 64px); height: auto; }
.scene-graphic strong, .scene-graphic li > span { display: block; line-height: 1.35; }
.scene-graphic strong { margin-block: 3px 4px; }
.scene-graphic li > span { color: var(--muted); font-size: .875rem; }
.stock-flow .scene-icon { background: radial-gradient(ellipse, color-mix(in srgb, var(--green) 9%, transparent), transparent 72%); }
.stock-flow li:nth-child(2) strong { color: var(--warning); }
.stock-flow li:nth-child(3)::before { background: repeating-linear-gradient(to right, var(--warning) 0 4px, transparent 4px 8px); }
.stock-flow li:nth-child(3)::after { border-color: var(--warning); }

.pallet { position: relative; width: 94%; height: 72%; }
.pallet::before { content: ""; position: absolute; right: 0; bottom: 1%; left: 0; height: 11%; border-radius: 2px; background: repeating-linear-gradient(90deg, #997351 0 24%, #684c37 24% 30%); }
.pallet span { position: absolute; bottom: 12%; width: 43%; height: 42%; border: 1px solid #846342; border-radius: 2px; background: linear-gradient(120deg, #d9ad77 0 73%, #ac8158 73%); }
.pallet span:first-child { left: 5%; }
.pallet span:nth-child(2) { right: 5%; }
.pallet span:last-child { bottom: 54%; left: 29%; }
.pallet span::after { content: ""; position: absolute; top: 0; left: 35%; width: 21%; height: 32%; background: #f5d7a1; }
.paused-sync { position: relative; width: 58%; aspect-ratio: 1; border: 2px solid var(--warning); border-radius: 50%; }
.paused-sync::after { content: ""; position: absolute; inset: 28% 31%; border-inline: clamp(3px, .47vw, 5px) solid var(--warning); }
.shop-bag { position: relative; display: grid; place-items: center; width: 66%; height: 58%; margin-top: 11%; border: 2px solid var(--line); border-radius: 4px 4px 8px 8px; background: var(--soft); color: var(--ink); font-size: clamp(1.15rem, 3vw, 2rem); font-weight: 750; }
.shop-bag::before { content: ""; position: absolute; top: -32%; left: 29%; width: 42%; height: 33%; border: 2px solid var(--line); border-bottom: 0; border-radius: 99px 99px 0 0; }
.device-icon { position: relative; width: 70%; height: 47%; border: 2px solid var(--green); border-radius: 5px 5px 2px 2px; background: var(--soft); }
.device-icon::after { content: ""; position: absolute; right: -11%; bottom: -5px; left: -11%; height: 4px; border-radius: 0 0 5px 5px; background: var(--green); }

.mail-security { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 84% 48%, var(--glow), transparent 54%), var(--hero); }
.security-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); gap: clamp(28px, 6vw, 84px); align-items: center; }
.security-copy > p + p { margin-top: 13px; }
.phishing-example { padding-block: 18px; border-block: 1px solid var(--line); }
.phishing-icon { position: relative; width: 88px; margin-bottom: 11px; }
.phishing-icon img { width: 100%; height: auto; }
.phishing-icon span { position: absolute; right: -5px; bottom: 0; display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--warning); border-radius: 50%; background: var(--hero); color: var(--warning); font-weight: 750; }
.phishing-example figcaption { color: var(--warning); font-size: clamp(1rem, 2vw, 1.31rem); font-weight: 750; }
.link-example { display: grid; gap: 8px; margin: 9px 0 0; }
.link-example div { padding-left: 12px; border-left: 2px solid var(--line); }
.link-example div:last-child { border-color: var(--warning); }
.link-example dt { color: var(--muted); font-size: .875rem; }
.link-example dd { margin: 0; font-family: Consolas, "Courier New", monospace; font-size: .925rem; }
.link-example div:last-child dd { color: var(--warning); font-weight: 700; }

.brain { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 80% 48%, var(--glow), transparent 55%), var(--hero); }
.brain-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .62fr); align-items: center; gap: clamp(24px, 5vw, 70px); }
.brain-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(95px, .8fr); align-items: center; gap: 17px; }
.brain-flow ul { position: relative; display: grid; gap: 15px; margin: 0; padding: 0 12px 0 0; border-right: 1px solid var(--line); list-style: none; }
.brain-flow ul::after { content: ""; position: absolute; top: 50%; right: -18px; width: 18px; height: 1px; background: var(--green); }
.brain-flow li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .875rem; font-weight: 650; line-height: 1.35; }
.brain-flow li img { flex: 0 0 28px; width: 28px; height: auto; }
.brain-flow figcaption { display: grid; justify-items: center; gap: 8px; padding-left: 4px; text-align: center; }
.brain-flow figcaption img { width: min(100%, 128px); height: auto; filter: drop-shadow(0 15px 32px #16122d3d); }
.brain-flow figcaption strong { font-size: .875rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--hero); }
.footer-inner { min-height: 72px; color: var(--muted); font-size: .875rem; }
.footer-inner .brand { color: var(--ink); font-size: 1.3rem; }

@media (min-width: 781px) {
  .platform .heading span, .platform .heading em { display: inline; }
}

@media (max-width: 780px) {
  .tri-room-document { --header-height: 60px; }
  room-html { scroll-padding-top: 14px; }
  .site-header { position: static; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 11px; padding-block: 8px; }
  .brand { font-size: 1.42rem; }
  .brand img { width: 30px; height: 30px; }
  .site-header nav { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
  .theme-switch { grid-area: 1 / 2; }
  .hero-inner { min-height: 495px; }
  .hero-agent { right: -12%; width: min(88%, 440px); }
  .hero-agent-name { right: -2%; }
}

@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { order: -1; width: min(100%, 500px); min-height: clamp(245px, 77vw, 365px); margin-inline: auto; }
  .room-image { width: 100%; max-width: 100%; transform: translateX(-4%); }
  .hero-agent { right: -9%; width: min(73%, 350px); }
  .hero-agent-name { right: 0; bottom: 7%; }
  .hero-agent-name strong { font-size: 1.4rem; }
  .hero-copy { padding-block: 9px 38px; }
  h1.heading { margin-bottom: 16px; font-size: clamp(2.05rem, 8.8vw, 3.65rem); }
  .platform-layout, .story-scene--illustrated, .security-layout, .brain-layout { grid-template-columns: 1fr; }
  .platform-art { width: min(100%, 260px); min-height: 174px; justify-self: center; }
  .platform-layout { gap: 12px; }
  .scene-graphic { --scene-art-size: 64px; }
  .scene-icon img { width: 46px; }
  .scene-graphic strong { font-size: .9rem; }
  .brain-flow { width: min(100%, 315px); }
  .footer-inner { flex-wrap: wrap; padding-block: 12px; gap: 3px 16px; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .platform-layers::after { transform-origin: top; animation: platform-trace linear both; animation-timeline: view(); animation-range: entry 0% cover 47%; }
  }
}

@keyframes platform-trace {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
