/* ============================================================
   John Beecroft — personal site
   Same system as the resume: ink on paper, one bronze accent.
   Device screens are their own dark world (mono + status green).
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-VF.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Italic-VF.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* paper world */
  --ink:       #211d17;
  --ink-soft:  #4c463c;
  --ink-mute:  #6b6355;
  --accent:    #8a5a1b;
  --accent-deep: #74491a;
  --hairline:  #d8d2c6;
  --paper:     #ffffff;

  /* screen world */
  --scr-bg:    #14110c;
  --scr-ink:   #e8e2d6;
  --scr-dim:   #9a917f;
  --scr-ok:    #6fb684;
  --scr-bar:   #c08a3e;
  --shell:     #353026;
  --shell-hi:  #4a443a;

  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --u: 0.92; /* diorama scale unit */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #ecdfc9; }

.topbar, .hero, .readout-wrap, .work, .site-foot {
  width: min(1060px, calc(100% - 48px));
  margin-inline: auto;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-deep); }
/* placeholder profile links stay hidden until John supplies real URLs */
a[data-placeholder="true"] { display: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------- topbar ---------------- */
/* opens the page with the resume header's signature ink rule */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 14px;
  border-bottom: 1.5px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 11px; }
.logo { display: block; }

/* logo draw-on: strokes trace themselves like a plotter (J → spine → bowls).
   Default = fully drawn (no-JS, reduced motion); .logo-draw runs the trace. */
/* gap 200 + start offset 101: keeps round caps from painting a dot
   on not-yet-drawn strokes (a zero-length dash still renders its cap) */
.lg { stroke-dasharray: 100 200; stroke-dashoffset: 0; }
html.animated .logo-draw .lg {
  animation: logo-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.animated .logo-draw .lg-j     { animation-delay: 0s; }
html.animated .logo-draw .lg-spine { animation-delay: 0.2s; }
html.animated .logo-draw .lg-b1    { animation-delay: 0.38s; }
html.animated .logo-draw .lg-b2    { animation-delay: 0.5s; }
@keyframes logo-draw {
  from { stroke-dashoffset: 101; }
  to   { stroke-dashoffset: 0; }
}
/* after the draw, one metal glint sweeps the strokes (masked to letterforms) */
.lg-glint { opacity: 0; }
html.animated .logo-draw .lg-glint {
  animation: logo-glint 0.6s ease-in-out 1.3s;
}
@keyframes logo-glint {
  0%   { opacity: 0;    transform: translateX(0) skewX(-16deg); }
  20%  { opacity: 0.65; }
  80%  { opacity: 0.65; }
  100% { opacity: 0;    transform: translateX(122px) skewX(-16deg); }
}
/* hero headline: departure-board resolve (spans injected by main.js).
   Chars start in Doto dot-matrix (.dm) and settle into Archivo; widths are
   locked to the final glyphs by JS so nothing reflows while resolving. */
h1 .w { display: inline-block; }
h1 .hl { color: var(--accent-deep); }
h1 .c {
  display: inline-block;
  text-align: center;
  transition: color 0.18s ease-out;
}
html.animated h1 .c.dm {
  font-family: "Doto", var(--mono);
  font-weight: 700;
  color: var(--ink-mute);
}
/* after the resolve, chars return to plain inline text (native kerning) */
h1.resolved .c { display: inline; }
@media (prefers-reduced-motion: reduce) {
  .lg { animation: none !important; stroke-dashoffset: 0 !important; }
  .lg-glint { animation: none !important; opacity: 0 !important; }
}
.wordmark {
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.topnav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.topnav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 8px 0; /* touch target */
  text-decoration: none;
  color: var(--ink-soft);
}
.topnav a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
/* the page's one conversion action gets a real affordance */
.topnav .resume-link {
  color: var(--ink);
  font-weight: 640;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 7px 14px;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}
.topnav .resume-link:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* ---------------- hero ---------------- */
.hero { padding-top: clamp(48px, 8vh, 84px); }
h1 {
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 680;
  font-size: clamp(2.5rem, 6.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lede {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------------- diorama ---------------- */
.diorama {
  margin-top: clamp(44px, 7vh, 72px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(34px * var(--u));
}
.device--android { margin-left: calc(-14px * var(--u)); }
.device {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 20px 14px rgba(33, 29, 23, 0.10));
}

/* devices are buttons: click to wipe & re-provision */
.dev-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.dev-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 10px;
}
.dev-btn .screen { transition: box-shadow 0.35s ease; }
.dev-btn:hover .screen,
.dev-btn:focus-visible .screen {
  box-shadow: 0 0 0 1px rgba(192, 138, 62, 0.35), 0 10px 30px rgba(192, 138, 62, 0.16);
}
.dev-btn:active { translate: 0 1.5px; }
.dev-btn:disabled { cursor: default; }
.dev-btn:disabled .screen { box-shadow: none; }
.device:hover .dev-label { color: var(--accent-deep); }
.dev-label { transition: color 0.3s ease; }
.dev-label {
  margin-top: 14px;
  font-family: var(--sans);
  font-weight: 560;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* screens (shared) */
.screen {
  background: var(--scr-bg);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.screen-inner {
  position: absolute;
  inset: 0;
  font-family: var(--mono);
  font-size: calc(11.5px * var(--u));
  color: var(--scr-ink);
  line-height: 1.5;
}
.phase {
  position: absolute;
  inset: 0;
  padding: calc(12px * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(7px * var(--u));
  text-align: center;
  opacity: 0;
  visibility: hidden;
}
/* static / no-JS default: the finished state is always visible */
.phase.p-done { opacity: 1; visibility: visible; }

.line { white-space: nowrap; }
.line.strong { color: var(--scr-ink); font-weight: 600; }
.line.dim { color: var(--scr-dim); font-size: 0.86em; }
.line.ok { color: var(--scr-ok); font-weight: 600; letter-spacing: 0.04em; }

.os-mark {
  font-family: var(--sans);
  font-weight: 620;
  font-size: calc(19px * var(--u));
  letter-spacing: 0.02em;
}
.os-mark--sm { font-size: calc(12px * var(--u)); }

.spinner {
  width: calc(15px * var(--u));
  height: calc(15px * var(--u));
  border-radius: 50%;
  border: 2px solid rgba(232, 226, 214, 0.22);
  border-top-color: var(--scr-ink);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bar {
  width: 72%;
  height: 3px;
  flex: none;
  border-radius: 2px;
  background: rgba(232, 226, 214, 0.16);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--scr-bar);
  transform: scaleX(0);
  transform-origin: left center;
}
/* static default: bar full */
.bar i { transform: scaleX(1); }
html.animated .bar i { transform: scaleX(0); }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(5px * var(--u));
  max-width: 90%;
}
.chip {
  font-size: 0.82em;
  padding: calc(2px * var(--u)) calc(7px * var(--u));
  border: 1px solid rgba(232, 226, 214, 0.28);
  border-radius: 3px;
  white-space: nowrap;
}

/* LEDs */
.led {
  width: calc(5px * var(--u));
  height: calc(5px * var(--u));
  border-radius: 50%;
  display: inline-block;
}
.led-power { background: var(--scr-bar); }
.led-act { background: var(--scr-ok); }
html.animated .led-power, html.animated .led-act { opacity: 0; }

/* --- Mac: all-in-one (silver aluminum, black glass bezel) --- */
.device--mac .display {
  background: linear-gradient(180deg, #e6e7ea, #bfc2c9 78%, #a9adb6);
  border-radius: calc(10px * var(--u));
  padding: calc(8px * var(--u));
}
.device--mac .screen {
  width: calc(330px * var(--u));
  height: calc(206px * var(--u));
  border: calc(7px * var(--u)) solid #17171a;
  border-radius: calc(5px * var(--u));
}
.device--mac .chin {
  height: calc(22px * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
}
.device--mac .stand {
  width: calc(64px * var(--u));
  height: calc(30px * var(--u));
  background: linear-gradient(180deg, #b4b8bf, #999da6);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.device--mac .foot {
  width: calc(120px * var(--u));
  height: calc(7px * var(--u));
  border-radius: 4px;
  background: linear-gradient(180deg, #c4c7cd, #a3a7b0);
}

/* --- Linux: mini-tower --- */
.device--tower .case {
  width: calc(108px * var(--u));
  height: calc(252px * var(--u));
  background: linear-gradient(180deg, var(--shell-hi), var(--shell) 24%);
  border-radius: calc(7px * var(--u));
  padding: calc(10px * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(10px * var(--u));
}
.device--tower .vents {
  flex: 1;
  border-radius: 3px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 calc(6px * var(--u)),
    rgba(0, 0, 0, 0.28) calc(6px * var(--u)) calc(8px * var(--u))
  );
}
.device--tower .screen--oled {
  height: calc(64px * var(--u));
}
.device--tower .screen--oled .screen-inner { font-size: calc(9px * var(--u)); }
.device--tower .screen--oled .phase { padding: calc(7px * var(--u)); gap: calc(3px * var(--u)); }
.device--tower .leds {
  display: flex;
  gap: calc(7px * var(--u));
  justify-content: flex-end;
  padding: 0 calc(2px * var(--u)) calc(2px * var(--u)) 0;
}

/* --- Windows: laptop --- */
.device--laptop .lid {
  background: linear-gradient(180deg, var(--shell-hi), var(--shell) 30%);
  border-radius: calc(8px * var(--u)) calc(8px * var(--u)) 2px 2px;
  padding: calc(8px * var(--u));
}
.device--laptop .screen {
  width: calc(298px * var(--u));
  height: calc(186px * var(--u));
}
.device--laptop .deck {
  width: calc(344px * var(--u));
  height: calc(13px * var(--u));
  background: linear-gradient(180deg, var(--shell-hi), var(--shell) 60%);
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
  border-radius: 0 0 calc(6px * var(--u)) calc(6px * var(--u));
}

/* ---------------- per-OS screen worlds ---------------- */
:root {
  --os-sans: system-ui, "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mac-bg: #f5f5f7; --mac-ink: #1d1d1f; --mac-dim: #6e6e73; --mac-blue: #0071e3; --mac-green: #34c759;
  --win-bg: #f3f3f3; --win-ink: #1a1a1a; --win-dim: #5f5f65; --win-blue: #0067c0; --win-green: #107c10;
  --lnx-bg: #0a0c0a; --lnx-ink: #cdd6cd; --lnx-green: #3fb950;
}

.device--mac .screen-inner,
.device--laptop .screen-inner { font-family: var(--os-sans); }

/* --- macOS --- */
.device--mac .p-boot { background: #000; }
.device--mac .p-boot .os-mark { color: #fff; font-family: var(--os-sans); font-weight: 600; }
.device--mac .bar--boot { width: 42%; background: #3a3a3c; margin-top: calc(6px * var(--u)); }
.device--mac .bar--boot i { background: #f5f5f7; }
.device--mac .p-enroll { background: var(--mac-bg); }
.device--mac .p-enroll .line.strong { color: var(--mac-ink); font-size: calc(13px * var(--u)); }
.device--mac .p-enroll .line.dim { color: var(--mac-dim); font-size: calc(9.5px * var(--u)); }
.device--mac .mgmt-glyph { color: #86868b; }
.device--mac .p-enroll .bar { background: #d2d2d7; width: 58%; }
.device--mac .p-enroll .bar i { background: var(--mac-blue); }

/* Jamf Setup Manager: dark branded provisioning panel */
.jamf-setup { background: #16181d; gap: calc(5px * var(--u)); }
.jamf-setup .brandtag {
  font-size: calc(7px * var(--u));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8b8b94;
}
.device--mac .p-config.jamf-setup .line.strong { color: #f2f2f4; font-size: calc(13px * var(--u)); }
.device--mac .p-config.jamf-setup .line.dim { color: #8b8b94; font-size: calc(8px * var(--u)); }
/* Setup Manager checklist: full list visible, per-row status progresses
   pending circle → spinner → green check */
.setuplist {
  list-style: none;
  width: 72%;
  display: flex;
  flex-direction: column;
  gap: calc(3px * var(--u));
  margin-top: calc(2px * var(--u));
}
.srow {
  display: flex;
  align-items: center;
  gap: calc(5px * var(--u));
  width: 100%;
  text-align: left;
}
.s-app { width: calc(11px * var(--u)); height: calc(11px * var(--u)); border-radius: calc(3px * var(--u)); flex: none; }
.s-app--wifi {
  background: #0a84ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 11a12 12 0 0 1 16 0'/%3E%3Cpath d='M7.6 14.6a7 7 0 0 1 8.8 0'/%3E%3C/g%3E%3Ccircle cx='12' cy='18' r='1.9' fill='white'/%3E%3C/svg%3E") center/78% no-repeat;
}
.s-app--vault {
  background: #8e8e93 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6.6' y='10.6' width='10.8' height='8.2' rx='1.8' fill='white'/%3E%3Cpath d='M9 10.6V8.4a3 3 0 0 1 6 0v2.2' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/74% no-repeat;
}
/* ---- shared CSS-drawn app icons (scale with their container) ---- */
/* Chrome: red/yellow/green ring, blue center */
.ic-chrome, .s-app--chrome, .chip--chrome {
  background:
    radial-gradient(circle at 50% 50%, #4285f4 0 34%, #fff 35% 42%, transparent 43%),
    conic-gradient(#ea4335 0 33%, #fbbc05 33% 66%, #34a853 66% 100%) !important;
  border-radius: 50% !important;
}
/* Slack: white tile, four corner dots */
.ic-slack {
  background:
    radial-gradient(circle at 27% 27%, #36c5f0 0 16%, transparent 17%),
    radial-gradient(circle at 73% 27%, #2eb67d 0 16%, transparent 17%),
    radial-gradient(circle at 73% 73%, #ecb22e 0 16%, transparent 17%),
    radial-gradient(circle at 27% 73%, #e01e5a 0 16%, transparent 17%),
    #fff !important;
}
/* Zoom: blue tile, white camera */
.ic-zoom { background: #2d8cff !important; position: relative; }
.ic-zoom::before {
  content: "";
  position: absolute; left: 18%; top: 34%;
  width: 40%; height: 32%;
  background: #fff;
  border-radius: 30%;
}
.ic-zoom::after {
  content: "";
  position: absolute; right: 14%; top: 38%;
  width: 20%; height: 24%;
  background: #fff;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
/* Company Portal: Intune blue gradient, person mark */
.ic-cp {
  background:
    radial-gradient(circle at 50% 34%, #fff 0 13%, transparent 14%),
    radial-gradient(30% 18% at 50% 72%, #fff 0 99%, transparent 100%),
    linear-gradient(135deg, #1b6ec2, #0a3f6e) !important;
}
.s-name { font-size: calc(9.5px * var(--u)); color: #e6e6ea; }
.s-ico { margin-left: auto; position: relative; width: calc(10px * var(--u)); height: calc(10px * var(--u)); flex: none; }
.s-ico i {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-style: normal;
}
.s-pend { border: 1px solid #4a4a52; border-radius: 50%; }
.s-spin {
  border: calc(1.5px * var(--u)) solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.s-check { color: #4cd964; font-weight: 700; font-size: calc(9px * var(--u)); }
/* static / no-JS default: everything installed */
.s-pend, .s-spin { opacity: 0; visibility: hidden; }
.jamf-setup .bar--setup { width: 72%; background: rgba(255, 255, 255, 0.14); margin-top: calc(3px * var(--u)); }
.jamf-setup .bar--setup i { background: #4cd964; }

.desk-mac {
  padding: 0;
  background: linear-gradient(140deg, #3b4ec9 0%, #7b52c0 45%, #c9678f 100%);
}
.menubar {
  position: absolute; top: 0; left: 0; right: 0;
  height: calc(13px * var(--u));
  background: rgba(250, 250, 252, 0.82);
}
/* real menu items left, status cluster right */
.menubar {
  display: flex; align-items: center;
  gap: calc(5px * var(--u));
  padding: 0 calc(7px * var(--u));
  font-family: var(--os-sans);
  font-size: calc(5.5px * var(--u));
  color: #1d1d1f;
}
.mb-apple {
  width: calc(6px * var(--u)); height: calc(7px * var(--u)); flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 20'%3E%3Cpath fill='%231d1d1f' d='M13.9 10.6c0-2.2 1.8-3.3 1.9-3.3-1-1.5-2.6-1.7-3.2-1.8-1.4-.1-2.7.8-3.4.8-.7 0-1.8-.8-2.9-.8C4.8 5.6 3.4 6.4 2.6 7.7c-1.5 2.6-.4 6.5 1.1 8.6.7 1 1.6 2.2 2.7 2.2 1.1 0 1.5-.7 2.8-.7 1.3 0 1.7.7 2.9.7 1.2 0 1.9-1 2.6-2.1.8-1.2 1.2-2.4 1.2-2.4s-2-.9-2-3.4zM11.6 3.9c.6-.7 1-1.7.9-2.7-.9 0-1.9.6-2.5 1.3-.6.6-1 1.6-.9 2.6 1 .1 1.9-.5 2.5-1.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mb-app { font-weight: 700; }
.mb-item { opacity: 0.78; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: calc(4px * var(--u)); }
.mb-wifi {
  width: calc(6px * var(--u)); height: calc(5px * var(--u));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cg fill='none' stroke='%231d1d1f' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M2.5 7a14 14 0 0 1 19 0'/%3E%3Cpath d='M6.5 11.5a8.5 8.5 0 0 1 11 0'/%3E%3C/g%3E%3Ccircle cx='12' cy='16.4' r='2.2' fill='%231d1d1f'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mb-batt {
  width: calc(9px * var(--u)); height: calc(4.5px * var(--u));
  border: 1px solid rgba(29, 29, 31, 0.75);
  border-radius: calc(1.5px * var(--u));
  position: relative;
}
.mb-batt::before {
  content: "";
  position: absolute; top: 1px; bottom: 1px; left: 1px; right: 22%;
  background: #1d1d1f; border-radius: 1px;
}
.mb-batt::after {
  content: "";
  position: absolute; right: calc(-2px * var(--u)); top: 30%;
  width: calc(1.2px * var(--u)); height: 40%;
  background: rgba(29, 29, 31, 0.75); border-radius: 1px;
}
.mb-time { font-weight: 600; white-space: nowrap; }
.notif, .toast {
  display: flex; align-items: center; gap: calc(7px * var(--u));
  background: #fff;
  padding: calc(6px * var(--u)) calc(10px * var(--u));
  border-radius: calc(9px * var(--u));
  box-shadow: 0 calc(4px * var(--u)) calc(14px * var(--u)) rgba(0, 0, 0, 0.28);
  text-align: left;
}
.notif { position: absolute; top: calc(20px * var(--u)); right: calc(9px * var(--u)); }
.notif-check {
  flex: none;
  width: calc(16px * var(--u)); height: calc(16px * var(--u));
  border-radius: 50%;
  background: var(--mac-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: calc(10px * var(--u)); font-weight: 700;
}
.notif-text { color: #1d1d1f; font-size: calc(9px * var(--u)); line-height: 1.35; }
.notif-text b { display: block; font-weight: 640; font-size: calc(10px * var(--u)); }
.dock {
  position: absolute; bottom: calc(7px * var(--u)); left: 50%;
  translate: -50% 0;
  display: flex; gap: calc(6px * var(--u));
  padding: calc(5px * var(--u)) calc(8px * var(--u));
  background: rgba(255, 255, 255, 0.5);
  border-radius: calc(8px * var(--u));
}
.dk { width: calc(12px * var(--u)); height: calc(12px * var(--u)); border-radius: calc(3.5px * var(--u)); display: block; position: relative; }
.dk-finder {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23103a63' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M7.5 8v3M16.5 8v3'/%3E%3Cpath d='M7 16.2c3.2 2 6.8 2 10 0'/%3E%3C/g%3E%3C/svg%3E") center/100% no-repeat,
    linear-gradient(90deg, #74c3f7 50%, #1e8ee6 50%);
}
.dk--running::after {
  content: "";
  position: absolute; bottom: calc(-3.5px * var(--u)); left: 50%;
  translate: -50% 0;
  width: calc(2px * var(--u)); height: calc(2px * var(--u));
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.65);
}
.dk-settings {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23494d54' d='M12 4l1 2.2 2.4-.5 .5 2.4L18.1 9l-1 2.2 1.9 1.6-1.6 1.9 1 2.2-2.2 1-.1 2.4-2.4-.3L12 22l-1.7-1.7-2.4 .3-.1-2.4-2.2-1 1-2.2L5 13.1l1.9-1.6-1-2.2 2.2-.9 .5-2.4 2.4 .5z'/%3E%3Ccircle cx='12' cy='13' r='3.4' fill='%23c9cdd3'/%3E%3C/svg%3E") center/86% no-repeat,
    linear-gradient(180deg, #babec5, #83878e);
}
.dk-sep {
  width: 1px; align-self: stretch;
  margin: 0 calc(1px * var(--u));
  background: rgba(0, 0, 0, 0.22);
}
.dk-trash {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e3e6ea' d='M7 7h10l-.9 13.2a1.8 1.8 0 0 1-1.8 1.6H9.7a1.8 1.8 0 0 1-1.8-1.6z'/%3E%3Crect x='5.6' y='5' width='12.8' height='2.2' rx='1.1' fill='%23c6cad0'/%3E%3Cg stroke='%23a7abb2' stroke-width='1.1'%3E%3Cpath d='M9.6 9.4l.5 10M14.4 9.4l-.5 10M12 9.4v10'/%3E%3C/g%3E%3C/svg%3E") center/92% no-repeat;
  border-radius: 0;
}

/* Self Service window (Jamf) */
.finder-win {
  position: absolute; left: calc(20px * var(--u)); top: calc(36px * var(--u));
  width: calc(150px * var(--u)); height: calc(86px * var(--u));
  border-radius: calc(6px * var(--u));
  background: #f5f5f7;
  box-shadow: 0 calc(8px * var(--u)) calc(22px * var(--u)) rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-align: left;
}
.fw-bar {
  height: calc(13px * var(--u));
  background: #e9e9ee;
  display: flex; align-items: center;
  gap: calc(2.5px * var(--u));
  padding: 0 calc(5px * var(--u));
}
.tl { width: calc(4px * var(--u)); height: calc(4px * var(--u)); border-radius: 50%; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.fw-title {
  margin-left: calc(4px * var(--u));
  font-family: var(--os-sans);
  font-size: calc(6.5px * var(--u));
  font-weight: 600;
  color: #6e6e73;
}
.fw-body { display: flex; height: calc(73px * var(--u)); }
.fw-side {
  width: calc(32px * var(--u));
  background: #ececf1;
  border-right: 1px solid #e0e0e5;
  display: flex; flex-direction: column;
  gap: calc(2px * var(--u));
  padding: calc(6px * var(--u)) calc(3px * var(--u));
}
.fws {
  font-family: var(--os-sans);
  font-size: calc(5px * var(--u));
  color: #3c3c43;
  padding: calc(1.5px * var(--u)) calc(3px * var(--u));
  border-radius: calc(2px * var(--u));
  white-space: nowrap;
}
.fws--on { background: rgba(0, 113, 227, 0.16); color: #0058b0; font-weight: 700; }
.fw-main {
  flex: 1;
  display: flex;
  gap: calc(7px * var(--u));
  padding: calc(7px * var(--u)) calc(6px * var(--u));
  align-items: flex-start;
}
.fw-item {
  display: flex; flex-direction: column; align-items: center;
  gap: calc(2px * var(--u));
}
.fw-tile { width: calc(15px * var(--u)); height: calc(15px * var(--u)); border-radius: calc(4px * var(--u)); position: relative; display: block; }
.fw-name {
  font-family: var(--os-sans);
  font-size: calc(4.8px * var(--u));
  color: #1d1d1f;
}
.fw-get {
  font-family: var(--os-sans);
  font-size: calc(4.2px * var(--u));
  font-weight: 700;
  color: #0071e3;
  background: #e4e4e9;
  padding: calc(1px * var(--u)) calc(4px * var(--u));
  border-radius: 99px;
}

/* --- Windows --- */
.device--laptop .lid { position: relative; }
.device--laptop .cam {
  position: absolute; top: calc(3.5px * var(--u)); left: 50%;
  translate: -50% 0;
  width: calc(3px * var(--u)); height: calc(3px * var(--u));
  border-radius: 50%;
  background: #101418;
  z-index: 2;
}
.device--laptop .p-boot { background: #0a0f1e; }
.winmark {
  display: grid;
  grid-template-columns: repeat(2, calc(13px * var(--u)));
  gap: calc(2.5px * var(--u));
}
.winmark i { height: calc(13px * var(--u)); background: #3f9bfa; border-radius: calc(1.5px * var(--u)); }
.spinner--dots {
  border: calc(2.5px * var(--u)) dotted #fff;
  border-top-color: #fff;
  width: calc(17px * var(--u)); height: calc(17px * var(--u));
  animation-duration: 1.6s;
  margin-top: calc(8px * var(--u));
}
.device--laptop .p-enroll,
.device--laptop .p-config { background: var(--win-bg); }
.device--laptop .p-enroll .line.strong,
.device--laptop .p-config .line.strong { color: var(--win-ink); font-size: calc(12px * var(--u)); }
.device--laptop .p-enroll .line.dim,
.device--laptop .p-config .line.dim { color: var(--win-dim); font-size: calc(9.5px * var(--u)); }

/* Autopilot Enrollment Status Page: three sections, per-section status */
.esp .line.strong { white-space: normal; text-wrap: balance; max-width: 92%; }
.esprows { list-style: none; width: 76%; margin-top: calc(2px * var(--u)); }
.esprow {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: calc(0.5px * var(--u));
  padding: calc(3.5px * var(--u)) 0;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  width: 100%;
  text-align: left;
  white-space: normal;
  font-size: inherit;
  position: relative;
}
.esprow:last-child { border-bottom: 0; }
.esprow::after {
  content: "";
  position: absolute; right: calc(3px * var(--u)); top: calc(6px * var(--u));
  width: calc(3.5px * var(--u)); height: calc(3.5px * var(--u));
  border-right: 1px solid #767676;
  border-bottom: 1px solid #767676;
  transform: rotate(45deg);
}
.er-label { font-weight: 600; font-size: calc(9px * var(--u)); color: var(--win-ink); }
.er-status { font-size: calc(7.5px * var(--u)); color: var(--win-dim); }
.device--laptop .p-config .er-label::before { content: "✓ "; color: var(--win-green); }

.desk-win {
  padding: 0;
  background: radial-gradient(120% 90% at 50% 70%, #3d7ff0 0%, #1b3f9e 55%, #0d2258 100%);
}
.toast { position: absolute; right: calc(8px * var(--u)); bottom: calc(23px * var(--u)); border-radius: calc(5px * var(--u)); }
.toast .notif-check { border-radius: 50%; background: var(--win-green); }
/* Win11 taskbar: full-width, centered icons, Start first */
.taskbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: calc(17px * var(--u));
  display: flex; align-items: center; justify-content: center;
  gap: calc(6px * var(--u));
  background: rgba(243, 243, 243, 0.92);
}
.tstart { width: calc(9px * var(--u)); height: calc(9px * var(--u)); display: block; }
.tk { width: calc(10px * var(--u)); height: calc(10px * var(--u)); border-radius: calc(2.5px * var(--u)); display: block; }
.tk-explorer {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23189aef' d='M2.5 6.2A1.7 1.7 0 0 1 4.2 4.5h5l2 2.3h8.6a1.7 1.7 0 0 1 1.7 1.7v9.3a1.7 1.7 0 0 1-1.7 1.7H4.2a1.7 1.7 0 0 1-1.7-1.7z'/%3E%3Cpath fill='%23ffd45e' d='M2.5 10h19v7.8a1.7 1.7 0 0 1-1.7 1.7H4.2a1.7 1.7 0 0 1-1.7-1.7z'/%3E%3C/svg%3E") center/100% no-repeat;
}
.tk-edge {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #9be8ab 0 16%, transparent 17%),
    radial-gradient(circle at 62% 62%, #0c59a4 0 46%, transparent 47%),
    radial-gradient(circle at 50% 50%, #35c1f1 0 62%, #2b7ad9 63%);
}
.tsearch {
  display: flex; align-items: center;
  gap: calc(2.5px * var(--u));
  height: calc(11px * var(--u));
  padding: 0 calc(6px * var(--u));
  border-radius: 99px;
  background: #fff;
  border: 1px solid #e1e1e6;
  font-family: var(--os-sans);
  font-size: calc(5px * var(--u));
  color: #5f5f65;
}
.tsearch i {
  width: calc(5px * var(--u)); height: calc(5px * var(--u));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6' fill='none' stroke='%235f5f65' stroke-width='2.4'/%3E%3Cpath d='M15 15l5 5' stroke='%235f5f65' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tray {
  position: absolute; right: calc(5px * var(--u)); top: 0; bottom: 0;
  display: flex; align-items: center;
  gap: calc(3px * var(--u));
}
.tr-wifi, .tr-vol {
  width: calc(6px * var(--u)); height: calc(6px * var(--u));
  background-position: center; background-repeat: no-repeat; background-size: contain;
}
.tr-wifi {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cg fill='none' stroke='%231a1a1a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2.5 7a14 14 0 0 1 19 0'/%3E%3Cpath d='M6.5 11.5a8.5 8.5 0 0 1 11 0'/%3E%3C/g%3E%3Ccircle cx='12' cy='16.4' r='2.1' fill='%231a1a1a'/%3E%3C/svg%3E");
}
.tr-vol {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1a1a' d='M4 9.5h4l5-4v13l-5-4H4z'/%3E%3Cpath d='M16 9a4.5 4.5 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.tr-batt {
  width: calc(8px * var(--u)); height: calc(4px * var(--u));
  border: 1px solid rgba(26, 26, 26, 0.8);
  border-radius: 1px;
  position: relative;
}
.tr-batt::before {
  content: "";
  position: absolute; top: 1px; bottom: 1px; left: 1px; right: 18%;
  background: #1a1a1a;
}
.tr-batt::after {
  content: "";
  position: absolute; right: calc(-1.8px * var(--u)); top: 28%;
  width: calc(1px * var(--u)); height: 44%;
  background: rgba(26, 26, 26, 0.8);
}
.tray-clock {
  font-family: var(--os-sans);
  font-size: calc(4.6px * var(--u));
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
  line-height: 1.25;
}
.tray-clock b { display: block; font-weight: 480; }

/* desktop shortcuts */
.dshorts {
  position: absolute; top: calc(8px * var(--u)); left: calc(9px * var(--u));
  display: flex; flex-direction: column;
  gap: calc(9px * var(--u));
}
.dshort { width: calc(10px * var(--u)); height: calc(10px * var(--u)); border-radius: calc(2px * var(--u)); position: relative; display: block; }
.dshort::after {
  content: "";
  position: absolute; bottom: calc(-4px * var(--u)); left: -12%; right: -12%;
  height: calc(2px * var(--u));
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
}
.ds-bin {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23dfe7f2' d='M6.5 7.5h11l-1 13a1.6 1.6 0 0 1-1.6 1.5H9.1a1.6 1.6 0 0 1-1.6-1.5z'/%3E%3Cellipse cx='12' cy='7' rx='6.4' ry='2.2' fill='%23b9c6da'/%3E%3Cpath d='M9.6 10l.4 9M14.4 10l-.4 9M12 10v9' stroke='%23a3b2c9' stroke-width='1.1' fill='none'/%3E%3Cpath d='M9.4 4.6a6.5 6.5 0 0 1 5.2 0' fill='none' stroke='%2357a65a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
  border-radius: 0;
}
.ds-folder {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f7b731' d='M2.5 6.2A1.7 1.7 0 0 1 4.2 4.5h5l2 2.3h8.6a1.7 1.7 0 0 1 1.7 1.7v9.3a1.7 1.7 0 0 1-1.7 1.7H4.2a1.7 1.7 0 0 1-1.7-1.7z'/%3E%3Cpath fill='%23ffd45e' d='M2.5 10h19v7.8a1.7 1.7 0 0 1-1.7 1.7H4.2a1.7 1.7 0 0 1-1.7-1.7z'/%3E%3C/svg%3E") center/100% no-repeat;
  border-radius: 0;
}
.ds-doc {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4f6f9' d='M6 2.5h8l4 4V21a1.5 1.5 0 0 1-1.5 1.5h-10A1.5 1.5 0 0 1 5 21V4A1.5 1.5 0 0 1 6.5 2.5z'/%3E%3Cpath fill='%23c9d2de' d='M14 2.5l4 4h-4z'/%3E%3Cg stroke='%23a9b4c2' stroke-width='1.2'%3E%3Cpath d='M8 10.5h8M8 13.5h8M8 16.5h5'/%3E%3C/g%3E%3C/svg%3E") center/100% no-repeat;
  border-radius: 0;
}

/* --- Linux (terminal) --- */
.device--tower .screen--oled { background: var(--lnx-bg); }
.device--tower .screen-inner { color: var(--lnx-ink); }
.device--tower .phase {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: calc(3px * var(--u));
}
.tline { font-size: calc(9.5px * var(--u)); white-space: nowrap; }
.ok-tag { color: var(--lnx-green); font-weight: 600; }
.device--tower .line.ok { color: var(--lnx-green); }
.device--tower .line.dim { color: #8a958a; }
.device--tower .p-enroll .bar { width: 82%; background: rgba(63, 185, 80, 0.18); }
.device--tower .p-enroll .bar i { background: var(--lnx-green); }
.caret { color: #e8f0e8; animation: caretblink 1.1s steps(1) infinite; }
@keyframes caretblink { 50% { opacity: 0; } }

/* --- BYOD phones (iPhone + Android) --- */
.device--iphone .screen-inner,
.device--android .screen-inner { font-family: var(--os-sans); font-size: calc(8.5px * var(--u)); }
.phone {
  position: relative;
  border-radius: calc(13px * var(--u));
  padding: calc(4px * var(--u));
}
.phone--iphone { background: linear-gradient(180deg, #3a3a3e, #26262a); }
.phone--android { background: linear-gradient(180deg, #2b2f36, #1d2025); }
.phone .screen {
  width: calc(86px * var(--u));
  height: calc(178px * var(--u));
  border-radius: calc(10px * var(--u));
}
.island {
  position: absolute; top: calc(9px * var(--u)); left: 50%;
  translate: -50% 0;
  width: calc(22px * var(--u)); height: calc(6px * var(--u));
  border-radius: calc(4px * var(--u));
  background: #000;
  z-index: 2;
}
.punch {
  position: absolute; top: calc(9px * var(--u)); left: 50%;
  translate: -50% 0;
  width: calc(4px * var(--u)); height: calc(4px * var(--u));
  border-radius: 50%;
  background: #000;
  z-index: 2;
}
.device--iphone .phase,
.device--android .phase { padding: calc(8px * var(--u)); gap: calc(4px * var(--u)); }
.device--iphone .line.strong,
.device--android .line.strong { font-size: calc(9.5px * var(--u)); }
.device--iphone .line.dim,
.device--android .line.dim { font-size: calc(7.5px * var(--u)); white-space: normal; text-wrap: balance; }

/* enrollment screens */
.device--iphone .p-enroll,
.device--iphone .p-config { background: #f2f2f7; }
.device--iphone .p-enroll .line.strong,
.device--iphone .p-config .line.strong { color: var(--mac-ink); }
.device--iphone .p-enroll .line.dim,
.device--iphone .p-config .line.dim { color: var(--mac-dim); }
.device--iphone .p-enroll .bar { background: #d2d2d7; width: 72%; }
.device--iphone .p-enroll .bar i { background: var(--mac-blue); }
.device--android .p-enroll,
.device--android .p-config { background: #fff; }
.device--android .p-enroll .line.strong,
.device--android .p-config .line.strong { color: #1f1f1f; }
.device--android .p-enroll .line.dim,
.device--android .p-config .line.dim { color: #5f6368; }
.device--android .p-enroll .bar { background: #e8eaed; width: 72%; }
.device--android .p-enroll .bar i { background: #1a73e8; }
.device--android .mgmt-glyph--case { color: #1a73e8; }
.device--iphone .mgmt-glyph { color: #86868b; }

/* work-app tiles */
.workapps { gap: calc(4px * var(--u)); }
.workapps .chip {
  width: calc(15px * var(--u)); height: calc(15px * var(--u));
  border: 0; padding: 0;
  border-radius: calc(4.5px * var(--u));
  position: relative;
}
.workapps .chip:nth-child(2) { background: #611f69; }                     /* Slack */
.workapps .chip:nth-child(3) { background: #2d8cff; }                     /* Zoom */
.workapps .chip:nth-child(4) { background: linear-gradient(135deg, #1b6ec2, #0a3f6e); } /* Company Portal */
.wbadge {
  position: absolute; right: calc(-2px * var(--u)); bottom: calc(-2px * var(--u));
  width: calc(7px * var(--u)); height: calc(7px * var(--u));
}

/* phone home screens */
.home-ios { background: linear-gradient(160deg, #b7cef4, #d9c5e8 65%, #eecbd8); justify-content: flex-start; padding-top: calc(20px * var(--u)); }
.home-android { background: linear-gradient(160deg, #243447, #3a2f52 70%, #503a56); justify-content: flex-start; padding-top: calc(20px * var(--u)); }
.appgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(4px * var(--u));
  width: 100%;
}
.appgrid i { aspect-ratio: 1; border-radius: calc(3.5px * var(--u)); }

/* ---- real phone app icons (SVG-drawn, shared by grids and docks) ---- */
.ai-msgs {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3.5c-5 0-9 3.4-9 7.6 0 2.4 1.3 4.5 3.4 5.9-.2 1-.8 2.3-1.9 3.2 1.8-.1 3.4-.8 4.5-1.6.9.2 1.9.4 3 .4 5 0 9-3.4 9-7.9s-4-7.6-9-7.6z'/%3E%3C/svg%3E") center/70% no-repeat,
    linear-gradient(180deg, #5df777, #0bd318);
}
.ai-cal {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='6.5' fill='%23ff3b30'/%3E%3Ctext x='12' y='19' font-size='11' font-family='Arial' font-weight='600' text-anchor='middle' fill='%231d1d1f'%3E13%3C/text%3E%3C/svg%3E") center/100% no-repeat,
    #fff;
}
.ai-photos {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, transparent 0 40%, #fff 41%),
    conic-gradient(#ff9500, #ffcc00, #8ce04a, #34c759, #5ac8fa, #007aff, #af52de, #ff2d55, #ff9500);
}
.ai-cam {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='6' width='19' height='13' rx='3' fill='%238e8e93'/%3E%3Cpath d='M8.5 6l1.2-2h4.6l1.2 2z' fill='%238e8e93'/%3E%3Ccircle cx='12' cy='12.5' r='4' fill='%233a3a3c'/%3E%3Ccircle cx='12' cy='12.5' r='1.6' fill='%236fc2ff'/%3E%3C/svg%3E") center/78% no-repeat,
    linear-gradient(180deg, #ececf1, #c9c9d0);
}
.ai-maps {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21C10 15 14 9 21 3' stroke='%23f6c945' stroke-width='3.6' fill='none'/%3E%3C/svg%3E") center/100% no-repeat,
    linear-gradient(135deg, #cfe8b8 46%, #a8d8f0 46%);
}
.ai-clock {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='white' stroke='%231d1d1f' stroke-width='1.8'/%3E%3Cpath d='M12 6.6V12l3.6 2.3' stroke='%231d1d1f' stroke-width='1.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/88% no-repeat,
    #f5f5f7;
}
.ai-notes {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='6' fill='%23ffd60a'/%3E%3Cg stroke='%23c7c7cc' stroke-width='1.4'%3E%3Cpath d='M5 11h14M5 15h14M5 19h9'/%3E%3C/g%3E%3C/svg%3E") center/100% no-repeat,
    #fff;
}
.ai-set {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23494d54' d='M12 4l1 2.2 2.4-.5 .5 2.4L18.1 9l-1 2.2 1.9 1.6-1.6 1.9 1 2.2-2.2 1-.1 2.4-2.4-.3L12 22l-1.7-1.7-2.4 .3-.1-2.4-2.2-1 1-2.2L5 13.1l1.9-1.6-1-2.2 2.2-.9 .5-2.4 2.4 .5z'/%3E%3Ccircle cx='12' cy='13' r='3.4' fill='%23c9cdd3'/%3E%3C/svg%3E") center/84% no-repeat,
    linear-gradient(180deg, #babec5, #83878e);
}
.ai-phone {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.6 3.8c.8-.8 2.1-.7 2.8.2l1.5 2c.6.8.5 1.9-.2 2.6l-.9.9c.5 1.2 2.4 3.1 3.6 3.6l.9-.9c.7-.7 1.8-.8 2.6-.2l2 1.5c.9.7 1 2 .2 2.8l-1.2 1.2c-.9.9-2.2 1.2-3.4.8-4.1-1.4-8.1-5.4-9.5-9.5-.4-1.2-.1-2.5.8-3.4z'/%3E%3C/svg%3E") center/64% no-repeat,
    linear-gradient(180deg, #67f28b, #0bc32f);
}
.ai-safari {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.6' fill='%233ea6f2'/%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='white' stroke-width='.7' stroke-dasharray='.7 1.7'/%3E%3Cpath d='M16.2 7.8l-2.6 5.4-5.4 2.6 2.6-5.4z' fill='white'/%3E%3Cpath d='M16.2 7.8l-2.6 5.4-2.8-2.8z' fill='%23ff3b30'/%3E%3C/svg%3E") center/94% no-repeat,
    #fff;
}
.ai-mail {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='2' fill='white'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6' fill='none' stroke='%231d7af0' stroke-width='1.4'/%3E%3C/svg%3E") center/74% no-repeat,
    linear-gradient(180deg, #5fb0f8, #1d7af0);
}
.ai-gmail {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 18.5V7.2L12 13l7.5-5.8v11.3' fill='none' stroke='%23ea4335' stroke-width='2.6' stroke-linejoin='round'/%3E%3Cpath d='M4.5 18.5V7.2' stroke='%234285f4' stroke-width='2.6'/%3E%3Cpath d='M19.5 18.5V7.2' stroke='%2334a853' stroke-width='2.6'/%3E%3C/svg%3E") center/78% no-repeat,
    #fff;
}
.ai-gphotos {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='%23ea4335'/%3E%3Ccircle cx='17' cy='12' r='4' fill='%23fbbc05'/%3E%3Ccircle cx='12' cy='17' r='4' fill='%234285f4'/%3E%3Ccircle cx='7' cy='12' r='4' fill='%2334a853'/%3E%3C/svg%3E") center/86% no-repeat,
    #fff;
}
.ai-yt {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 6.8v10.4l8.8-5.2z' fill='white'/%3E%3C/svg%3E") center/86% no-repeat,
    #ff0000;
}
.ai-play {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 3.2v17.6L19.5 12z' fill='%2300c4ff'/%3E%3Cpath d='M5.5 3.2L14 12l-8.5 8.8z' fill='%2300e08a' opacity='.85'/%3E%3Cpath d='M14 12l5.5 0-3.2-3.4z' fill='%23ffce00'/%3E%3Cpath d='M14 12l5.5 0-3.2 3.4z' fill='%23ff4b55'/%3E%3C/svg%3E") center/74% no-repeat,
    #fff;
}
.ai-drive {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4h6l7 12h-6z' fill='%23fbbc05'/%3E%3Cpath d='M9 4L2 16l3 5 7-12z' fill='%2334a853'/%3E%3Cpath d='M5 21h14l3-5H8z' fill='%234285f4'/%3E%3C/svg%3E") center/80% no-repeat,
    #fff;
}
.ai-gcal {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4.5' width='16' height='16' rx='1.5' fill='%234285f4'/%3E%3Crect x='7' y='8.5' width='10' height='9' fill='white'/%3E%3Ctext x='12' y='15.8' font-size='7' font-family='Arial' font-weight='600' text-anchor='middle' fill='%234285f4'%3E13%3C/text%3E%3C/svg%3E") center/92% no-repeat,
    #fff;
}
.ai-gmaps {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8a6.6 6.6 0 0 1 6.6 6.6c0 4.8-6.6 11.8-6.6 11.8S5.4 14.2 5.4 9.4A6.6 6.6 0 0 1 12 2.8z' fill='%23ea4335'/%3E%3Ccircle cx='12' cy='9.4' r='2.4' fill='white'/%3E%3C/svg%3E") center/82% no-repeat,
    #fff;
}
.appgrid--work { margin-top: calc(2px * var(--u)); }
.appgrid--work i { position: relative; }
.appgrid--work i:nth-child(1) {
  background:
    radial-gradient(circle at 50% 50%, #4285f4 0 34%, #fff 35% 42%, transparent 43%),
    conic-gradient(#ea4335 0 33%, #fbbc05 33% 66%, #34a853 66% 100%);
  border-radius: 50%;
}
.appgrid--work i:nth-child(2) {
  background:
    radial-gradient(circle at 27% 27%, #36c5f0 0 16%, transparent 17%),
    radial-gradient(circle at 73% 27%, #2eb67d 0 16%, transparent 17%),
    radial-gradient(circle at 73% 73%, #ecb22e 0 16%, transparent 17%),
    radial-gradient(circle at 27% 73%, #e01e5a 0 16%, transparent 17%),
    #fff;                                                                 /* Slack */
}
.appgrid--work i:nth-child(3) { background: #2d8cff; }                    /* Zoom */
.appgrid--work i:nth-child(4) { background: linear-gradient(135deg, #1b6ec2, #0a3f6e); } /* Company Portal */
.appgrid--badged i::after {
  content: "";
  position: absolute; right: calc(-1.5px * var(--u)); bottom: calc(-1.5px * var(--u));
  width: calc(6px * var(--u)); height: calc(6px * var(--u));
  border-radius: 50%;
  background: #fff;
  border: calc(1.5px * var(--u)) solid #1a73e8;
  box-sizing: border-box;
}
.phonedock {
  position: absolute; bottom: calc(4px * var(--u)); left: calc(5px * var(--u)); right: calc(5px * var(--u));
  height: calc(18px * var(--u));
  border-radius: calc(6px * var(--u));
  background: rgba(255, 255, 255, 0.45);
  display: flex; align-items: center; justify-content: space-evenly;
}
.phonedock i { width: calc(10px * var(--u)); height: calc(10px * var(--u)); border-radius: calc(3px * var(--u)); }
.navpill {
  position: absolute; bottom: calc(4px * var(--u)); left: 50%;
  translate: -50% 0;
  width: calc(24px * var(--u)); height: calc(3px * var(--u));
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}
.device--iphone .p-done,
.device--android .p-done { padding-top: calc(42px * var(--u)); }
.notif--phone {
  position: absolute; top: calc(16px * var(--u)); left: 50%; right: auto;
  translate: -50% 0;
  width: max-content;
  padding: calc(4px * var(--u)) calc(7px * var(--u));
  border-radius: calc(7px * var(--u));
  gap: calc(5px * var(--u));
}
.notif--phone .notif-check { width: calc(12px * var(--u)); height: calc(12px * var(--u)); font-size: calc(8px * var(--u)); }
.notif--phone .notif-text { font-size: calc(7px * var(--u)); }
.notif--phone .notif-text b { font-size: calc(7.5px * var(--u)); }
.toast--phone {
  position: absolute; top: calc(16px * var(--u)); left: 50%; right: auto; bottom: auto;
  translate: -50% 0;
  width: max-content;
  padding: calc(4px * var(--u)) calc(7px * var(--u));
  border-radius: calc(7px * var(--u));
  gap: calc(5px * var(--u));
}
.toast--phone .notif-check { width: calc(12px * var(--u)); height: calc(12px * var(--u)); font-size: calc(8px * var(--u)); background: #1a73e8; }
.toast--phone .notif-text { font-size: calc(7px * var(--u)); }
.toast--phone .notif-text b { font-size: calc(7.5px * var(--u)); }

/* --- OS realism details --- */
/* glass sheen on every screen */
.screen::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 30%, transparent 45%);
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
}

/* small blue "link" lines (Setup Assistant / ESP) */
.linklike { font-size: calc(8.5px * var(--u)); margin-top: calc(2px * var(--u)); }
.device--mac .linklike { color: var(--mac-blue); }
.linklike--win { color: var(--win-blue); }

/* phone status bars */
.statusbar {
  position: absolute; top: calc(8px * var(--u));
  left: calc(8px * var(--u)); right: calc(8px * var(--u));
  display: flex; justify-content: space-between; align-items: center;
  font-size: calc(6.5px * var(--u));
  font-weight: 600;
  color: #1d1d1f;
  z-index: 1;
}
.statusbar--android { color: rgba(255, 255, 255, 0.92); top: calc(7px * var(--u)); }
.sb-batt {
  width: calc(9px * var(--u)); height: calc(4.5px * var(--u));
  border: 1px solid currentColor;
  border-radius: calc(1.5px * var(--u));
  position: relative;
  opacity: 0.9;
}
.sb-batt::before {
  content: "";
  position: absolute; top: 1px; bottom: 1px; left: 1px; right: 30%;
  background: currentColor;
  border-radius: 1px;
}
.sb-batt::after {
  content: "";
  position: absolute; right: calc(-2.5px * var(--u)); top: 30%;
  width: calc(1.5px * var(--u)); height: 40%;
  background: currentColor;
  border-radius: 1px;
}

/* iOS page dots */
.pagedots {
  position: absolute; bottom: calc(26px * var(--u)); left: 50%;
  translate: -50% 0;
  display: flex; gap: calc(3px * var(--u));
}
.pagedots i { width: calc(2.5px * var(--u)); height: calc(2.5px * var(--u)); border-radius: 50%; background: rgba(0, 0, 0, 0.22); }
.pagedots i:first-child { background: rgba(0, 0, 0, 0.5); }

/* Pixel search pill */
.searchpill {
  position: absolute; bottom: calc(20px * var(--u));
  left: calc(8px * var(--u)); right: calc(8px * var(--u));
  height: calc(13px * var(--u));
  border-radius: calc(7px * var(--u));
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center;
}
.searchpill i {
  width: calc(6px * var(--u)); height: calc(6px * var(--u));
  margin-left: calc(5px * var(--u));
  border-radius: 50%;
  background: conic-gradient(#4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
}

/* bench + ticker */
.bench {
  width: min(1060px, calc(100% - 48px));
  margin: -1px auto 0;
  border-bottom: 1px solid var(--hairline);
  height: 1px;
}
.ticker {
  margin: 16px auto 0;
  width: min(1060px, calc(100% - 48px));
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.4em;
}
/* terminal cursor: console output should have one */
.ticker::after {
  content: "▊";
  margin-left: 3px;
  animation: caretblink 1.1s steps(1) infinite;
}

/* ---------------- readout ---------------- */
.readout-wrap { margin-top: clamp(56px, 9vh, 96px); }
.readout {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  padding: 18px 0;
}
.metric { flex: 1; text-align: center; }
.metric + .metric { border-left: 1px solid var(--hairline); }
.metric .value {
  font-family: var(--sans);
  font-weight: 640;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--accent-deep);
  font-feature-settings: "tnum";
}
.metric .label {
  margin-top: 4px;
  font-family: var(--sans);
  font-weight: 520;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------------- work ---------------- */
.work { margin-top: clamp(56px, 9vh, 96px); }
h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* --- how zero-touch works (a real sequence: numbers carry order) --- */
.steps {
  list-style: none;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 30px 34px;
}
.step { position: relative; padding-top: 12px; }
/* the hairline is a real element so the entrance can trace it in */
.step-rule {
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
  transform-origin: left center;
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.step-n {
  font-family: var(--sans);
  font-weight: 480;
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-feature-settings: "tnum";
}
.step-t {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.step p {
  margin-top: 8px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* --- operating stack (spec-sheet dl) --- */
.stack {
  margin-top: 26px;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 34px;
  align-items: baseline;
}
.stack dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
}
.stack dt:first-of-type { border-top: 0; }
.stack dd {
  font-family: var(--sans);
  font-weight: 480;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.stack dd:first-of-type { border-top: 0; }
@media (max-width: 600px) {
  .stack { grid-template-columns: 1fr; }
  .stack dt { padding-bottom: 2px; }
  .stack dd { border-top: 0; padding-top: 0; }
}

/* --- career timeline chart (Gantt, half-year columns 2014→2026) --- */
.chart {
  margin-top: 28px;
  padding: 20px 0 6px;
  /* one hairline per year (every 2 of 26 half-year columns) */
  background: repeating-linear-gradient(
    90deg,
    var(--hairline) 0 1px,
    transparent 1px calc(100% / 13)
  );
}
.trk {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  row-gap: 5px;
  margin-bottom: 18px;
}
.trk-label {
  grid-row: 1;
  grid-column: var(--s) / 27;
  justify-self: start;
  font-family: var(--sans);
  font-weight: 560;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.trk-meta {
  margin-left: 9px;
  font-weight: 480;
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-feature-settings: "tnum";
}
.trk-bar {
  grid-row: 2;
  grid-column: var(--s) / var(--e);
  height: 9px;
  border-radius: 2px;
  background: var(--ink-soft);
}
.trk--now .trk-label {
  grid-column: 1 / 27;
  justify-self: end;
  text-align: right;
}
.trk--now .trk-bar { background: var(--accent-deep); position: relative; }
/* live end-node: this role is running now */
.trk--now .trk-bar::after {
  content: "";
  position: absolute; right: -2px; top: 50%;
  translate: 0 -50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 90, 27, 0.18);
}
/* animated entry: node stays hidden while its bar grows, lands after it,
   then keeps a slow LED pulse. Static (no-JS / reduced motion) = always on. */
html.animated .chart:not(.chart-live) .trk--now .trk-bar::after { opacity: 0; }
html.animated .chart-live .trk--now .trk-bar::after {
  transition: opacity 0.5s ease-out 1.2s;
  animation: live-pulse 2.6s ease-out 2s infinite;
}
@keyframes live-pulse {
  from {
    box-shadow: 0 0 0 3px rgba(138, 90, 27, 0.18), 0 0 0 3px rgba(138, 90, 27, 0.2);
  }
  to {
    box-shadow: 0 0 0 3px rgba(138, 90, 27, 0.18), 0 0 0 11px rgba(138, 90, 27, 0);
  }
}
@media print {
  .trk--now .trk-bar::after { opacity: 1 !important; }
}
.trk--venture .trk-label { font-weight: 480; color: var(--ink-soft); }
.trk--venture .trk-bar {
  background: repeating-linear-gradient(
    -45deg,
    var(--ink-mute) 0 1.5px,
    transparent 1.5px 5px
  );
  border: 1px solid var(--hairline);
  height: 7px;
}
.tl-axis {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  border-top: 1px solid var(--hairline);
  padding-top: 6px;
}
.tl-axis span {
  grid-column: var(--c) / span 2;
  justify-self: start;
  translate: -50% 0;
  font-family: var(--sans);
  font-weight: 480;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  font-feature-settings: "tnum";
}
.tl-axis span:first-child { translate: 0 0; }

.entry { margin-top: 30px; max-width: 72ch; }
.entry + .entry { padding-top: 26px; border-top: 1px solid var(--hairline); }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
h3 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.08rem;
  letter-spacing: 0.005em;
}
.entry .meta {
  font-family: var(--sans);
  font-weight: 480;
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-feature-settings: "tnum";
}
.entry p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1rem;
  text-wrap: pretty;
}

/* ---------------- footer: spec-sheet title block ---------------- */
/* closes the page with the same ink rule the topbar opens it with */
.site-foot {
  margin-top: clamp(64px, 10vh, 110px);
  border-top: 1.5px solid var(--ink);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: 24px 0 44px;
}
.foot-id { display: flex; align-items: center; gap: 13px; }
.foot-mark { display: block; flex: none; }
.foot-who { display: flex; flex-direction: column; gap: 2px; }
.foot-name {
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 680;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.foot-role {
  font-family: var(--sans);
  font-weight: 520;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 8px 0; /* touch target */
  text-decoration: none;
  color: var(--ink-soft);
}
.foot-links a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  :root { --u: 0.66; }
  .diorama { gap: calc(24px * var(--u)); }
}
@media (max-width: 720px) {
  :root { --u: 0.9; }
  .diorama {
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
  }
  .device--mac { flex-basis: 100%; order: 1; }
  .device--laptop { order: 2; flex-basis: 100%; }
  .device--iphone { order: 3; }
  .device--android { order: 4; margin-left: 0; }
  .device--tower { order: 5; }
  .topbar { flex-direction: column; gap: 6px; align-items: flex-start; }
  /* timeline: labels go full-width so short bars keep readable names */
  .trk-label, .trk--now .trk-label {
    grid-column: 1 / 27;
    justify-self: start;
    text-align: left;
    white-space: normal;
  }
  .tl-axis span { font-size: 0.62rem; }
  .tl-axis span:nth-child(even) { display: none; }
}
@media (max-width: 480px) {
  .readout { flex-direction: column; gap: 14px; padding: 16px 0; }
  .metric + .metric { border-left: none; border-top: 1px solid var(--hairline); padding-top: 14px; }
}
@media (max-width: 420px) {
  :root { --u: 0.78; }
}

/* ---------------- motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .s-spin { animation: none; }
  .caret { animation: none; }
  .ticker::after { animation: none; }
  html { scroll-behavior: auto; }
}
