:root {
  --night: #080c12;
  --panel: #101c30;
  --line: #2b3450;
  --white: #ffffff;
  --muted: #a8b3c2;
  --accent-light: #aea8ff;
  --indigo: #5145ff;
  --indigo-hover: #4338da;
  --indigo-ink: #3e31ba;
  --paper: #f5f3f0;
  --ink: #080c12;
  --slate: #4c5667;
  --paper-line: #d8d5df;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--night); color: var(--white); font: 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.container { width: min(100% - 64px, 1240px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 16px; background: var(--accent-light); color: var(--night); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: #080c12f0;
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; display: inline-block; }
.brand img { width: 164px; height: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.7vw, 38px); }
.nav-links a, .site-footer a { text-underline-offset: .25em; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav-links a:hover, .site-footer a:hover { color: var(--accent-light); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.button-primary { color: var(--white); background: var(--indigo); border-color: var(--indigo); }
.button-primary:hover { background: var(--indigo-hover); border-color: var(--indigo-hover); }
.button-secondary { color: var(--white); background: #182437; border-color: #354963; }
.button-secondary:hover { background: #24354d; border-color: #6989ae; }
.button span { font-size: 1rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 82% 50%, #292475 0%, #1b1b42 29%, transparent 66%),
    radial-gradient(ellipse at 0% 100%, #15162d 0%, transparent 42%);
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: linear-gradient(#aca7ff16 1px, transparent 1px), linear-gradient(90deg, #aca7ff16 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(110deg, transparent 10%, #000 78%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(32px, 5vw, 79px);
  min-height: 625px;
  padding-block: 90px 100px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: var(--accent-light);
  font: 600 .74rem/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow span { width: 8px; height: 8px; background: var(--accent-light); box-shadow: 0 0 12px #5145ff75; transform: rotate(45deg); }
h1, h2, h3 { line-height: 1.07; }
h1 { max-width: 11ch; font-size: clamp(3.25rem, 6vw, 5.5rem); letter-spacing: -.065em; font-weight: 750; }
h1 em { color: var(--accent-light); font-style: normal; }
.hero-description { max-width: 49ch; margin-top: 25px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.hero-location { margin-top: 26px; color: var(--muted); font: .75rem/1.55 var(--mono); }
.hero-location span { margin-inline: 5px; color: var(--accent-light); }

.console {
  min-width: 0;
  border: 1px solid #544d87;
  border-radius: 16px;
  background: #0d1625;
  box-shadow: 0 25px 85px #040811a8, 0 0 46px #5145ff2c;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: #d9e6fb;
  font-size: .83rem;
  font-weight: 650;
}
.console-preview {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid #575083;
  border-radius: 5px;
  color: #c5c2ef;
  font: .67rem/1.35 var(--mono);
  text-align: center;
}
.console-body { padding: clamp(16px, 2.3vw, 30px); }
.console-label { color: #b6bed2; font: .72rem/1.4 var(--mono); }
.console h2 { margin-top: 5px; font-size: clamp(1.35rem, 2.7vw, 2rem); letter-spacing: -.04em; }
.project-list { margin-top: 19px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.project-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  background: #131e2e;
  font: .77rem/1.4 var(--mono);
}
.project-row + .project-row { border-top: 1px solid var(--line); }
.project-row small { color: var(--muted); font: inherit; text-align: right; }
.indicator { width: 7px; height: 7px; border-radius: 50%; background: #4ad8a0; box-shadow: 0 0 9px #4ad8a05c; }
.indicator.warning { background: #ffcb70; box-shadow: 0 0 9px #ffcb705c; }
.issue { margin-top: 14px; padding: 14px; background: #101f35; border: 1px solid #2c415e; border-radius: 8px; }
.issue > p + p { margin: 4px 0 12px; font-size: .88rem; font-weight: 650; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0; margin: 0; list-style: none; }
.flow li {
  display: grid;
  place-content: center;
  min-height: 34px;
  padding: 4px;
  border: 1px solid #435571;
  border-radius: 5px;
  color: #b5c4d9;
  font: .68rem/1.25 var(--mono);
  text-align: center;
}
.flow .current { background: #29264b; border-color: #746cea; color: #dedbff; }

.section { padding-block: clamp(66px, 8vw, 115px); border-top: 1px solid var(--line); }
.section-light { background: var(--paper); color: var(--ink); border-color: var(--paper-line); color-scheme: light; }
.section-light :focus-visible { outline-color: #5145ff; }
.section-light .eyebrow { color: var(--indigo-ink); }
.section h2 { max-width: 20ch; font-size: clamp(2.45rem, 5vw, 4.1rem); letter-spacing: -.065em; font-weight: 800; }
.section-lead { max-width: 55ch; margin-top: 17px; color: var(--muted); }
.section-light .section-lead { color: var(--slate); }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.work-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-height: 195px;
  padding: clamp(20px, 3vw, 37px);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: #fff;
}
.work-feature {
  grid-column: span 2;
  min-height: 226px;
  background: radial-gradient(ellipse at top right, #302966, transparent 70%), #101c30;
  color: var(--white);
  border-color: #47406f;
}
.work-card h3, .plan h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -.04em; }
.work-feature h3 { font-size: clamp(1.65rem, 3.5vw, 2.8rem); }
.work-card p { max-width: 44ch; color: var(--slate); font-size: .95rem; }
.work-feature p { color: #b4c9e7; }
.category { color: var(--indigo-ink); font: 600 .73rem/1.4 var(--mono); }
.work-feature .category, .work-feature .project-link { color: #c6c2ff; }
.work-feature :focus-visible { outline-color: var(--accent-light); }
.project-link { margin-top: auto; padding-top: 8px; color: var(--indigo-ink); font-size: .88rem; font-weight: 700; text-underline-offset: .22em; }

.pricing-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.segment { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: #0c1523; }
.segment button { min-height: 38px; padding: 6px 12px; border: 0; border-radius: 5px; background: none; color: var(--muted); font: 600 .77rem var(--mono); cursor: pointer; }
.segment button:hover { color: var(--white); }
.segment button[aria-pressed="true"] { color: var(--white); background: var(--indigo); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.plan { display: flex; flex-direction: column; padding: clamp(18px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.plan > p { min-height: 3.1em; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.plan-price { display: grid; gap: 4px; margin-block: 17px; }
.amount { font-size: clamp(1.75rem, 3.3vw, 2.8rem); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.1; }
.plan-price small { color: var(--muted); font: .75rem/1.4 var(--mono); }
.plan ul { display: grid; gap: 9px; padding: 17px 0 23px; margin: 0; border-top: 1px solid var(--line); list-style: none; color: #c1cee0; font-size: .88rem; }
.plan li { padding-left: 16px; position: relative; }
.plan li::before { position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); content: ""; }
.plan .button { margin-top: auto; }

.care-layout, .contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(30px, 5vw, 76px); }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--paper-line); background: #fff; font-size: .88rem; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--paper-line); text-align: left; }
thead th { background: #eae7f0; color: var(--ink); }
tbody th { font-weight: 550; }
td { color: var(--slate); }

.contact-direct { margin-top: 25px; font-size: .89rem; color: var(--muted); overflow-wrap: anywhere; }
.contact-direct a { font-weight: 700; color: var(--accent-light); text-underline-offset: .3em; }
.section-light .contact-direct { color: var(--slate); }
.section-light .contact-direct a { color: var(--indigo-ink); }
.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.section-light .contact-form { border-color: var(--paper-line); background: #fff; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
label { display: grid; gap: 6px; color: #deebfa; font-size: .83rem; font-weight: 650; }
.section-light label { color: var(--ink); }
input, select, textarea {
  min-width: 0;
  min-height: 45px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #48607e;
  border-radius: 6px;
  background: var(--night);
  color: var(--white);
  font-size: 1rem;
}
.section-light :is(input, select, textarea) { border-color: #8b9eb6; background: #f7faff; color: var(--ink); }
textarea { min-height: 105px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; }
.text-button { min-height: 44px; padding: 4px 0; border: 0; background: none; color: var(--accent-light); text-decoration: underline; text-underline-offset: .25em; font-size: .85rem; font-weight: 650; cursor: pointer; }
.section-light .text-button { color: var(--indigo-ink); }
.fine-print, .form-status { color: var(--muted); font-size: .8rem; }
.section-light :is(.fine-print, .form-status) { color: var(--slate); }
.form-status:empty { display: none; }
.site-footer { padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: .87rem; }

@media (max-width: 980px) {
  .hero-inner { gap: 28px; }
  h1 { font-size: clamp(3rem, 7.6vw, 5rem); }
  .nav-links { gap: 14px; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 40px, 640px); }
  html { scroll-padding-top: 126px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding-block: 10px; }
  .nav-links { grid-row: 2; grid-column: span 2; justify-content: space-between; gap: 5px; }
  .nav-links a { padding-block: 6px; font-size: .82rem; }
  .header-cta { min-height: 38px; padding: 7px 10px; font-size: .8rem; }
  .brand img { width: 134px; }
  .hero-inner, .care-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; padding-block: 65px 73px; gap: 37px; }
  h1 { max-width: 12ch; }
  .hero-break { display: none; }
  .work-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-layout, .contact-layout { gap: 26px; }
}

@media (max-width: 500px) {
  .container { width: calc(100% - 36px); }
  h1 { font-size: clamp(2.85rem, 11vw, 3.75rem); }
  .work-grid, .plan-grid, .fields { grid-template-columns: minmax(0, 1fr); }
  .work-feature { grid-column: auto; }
  .work-card { min-height: 158px; }
  .plan > p { min-height: auto; }
  .project-row { gap: 6px; padding-inline: 8px; font-size: .68rem; }
  .console-bar { padding-inline: 12px; }
  .flow li { font-size: .61rem; }
  th, td { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.studio-navigation { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; }
.studio-links, .studio-actions, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.studio-links a, .studio-client, .studio-menu-links a, .footer-links a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.studio-links a:hover, .studio-client:hover, .studio-menu-links a:hover,
.studio-navigation [aria-current] { color: var(--accent-light); text-decoration: underline; text-underline-offset: .3em; }
.studio-actions { flex: none; }
.studio-client { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.studio-menu { display: none; }
.studio-menu summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 7px; cursor: pointer; list-style: none; font-size: .875rem; font-weight: 650;
}
.studio-menu summary::-webkit-details-marker { display: none; }
.studio-menu[open] summary span { transform: rotate(45deg); }
.studio-menu-links {
  position: absolute; inset: 100% 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px max(18px, calc((100vw - 640px) / 2)) 12px; background: var(--night); border-block: 1px solid var(--line);
  box-shadow: 0 14px 26px #0005; max-height: calc(100dvh - 70px); overflow: auto;
}
.studio-menu-links a { display: flex; align-items: center; min-height: 44px; padding: 6px 8px; }
:is(.studio-main, .preview-page) > .section:first-child h1 { max-width: 18ch; font-size: clamp(2.6rem, 5.4vw, 4.75rem); }
.studio-grid .plan a { color: var(--accent-light); margin-top: 10px; }

.section-light .plan { background: var(--white); border-color: var(--paper-line); }
.section-light .plan > p, .section-light .plan-price small, .section-light .plan ul { color: var(--slate); }
.section-light .plan ul { border-color: var(--paper-line); }
.section-light .plan li::before { background: var(--indigo-ink); }
.section-light .plan .button-secondary { background: transparent; border-color: #897fb8; color: var(--indigo-ink); }
.section-light .plan .button-secondary:hover { background: #ede9fa; }
.section-light .segment { background: #ebe8f2; border-color: var(--paper-line); }
.section-light .segment button { color: var(--ink); }
.section-light .segment button[aria-pressed="true"] { color: var(--white); }
.section-light .plan p { min-height: auto; }
.section-light .plan-price { margin-top: 22px; }

.service-paths, .wdev-path { display: grid; gap: 24px clamp(24px, 5vw, 70px); margin-top: 32px; }
.service-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-paths article, .wdev-path li { border-top: 1px solid #a8a0bd; padding-top: 20px; }
.service-paths h3, .wdev-path h3 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); letter-spacing: -.03em; }
.service-paths .category { margin-bottom: 9px; }
.service-paths h3 + p, .wdev-path p { color: var(--slate); margin-block: 10px; max-width: 47ch; }
.project-index {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 35px);
  list-style: none; padding: 0; margin: 32px 0 0;
}
.project-index li { background: var(--white); border: 1px solid var(--paper-line); border-radius: 10px; }
.project-preview-link { display: block; }
.project-preview {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; background: #eae7f0;
}
.project-index .project-preview { border-radius: 9px 9px 0 0; border-bottom: 1px solid var(--paper-line); }
.project-index-copy { padding: clamp(16px, 2.2vw, 27px); }
.project-index h2 { font-size: clamp(1.32rem, 3vw, 2.25rem); letter-spacing: -.04em; margin: 6px 0; }
.project-index h2 a { text-decoration: none; }
.project-index h2 a:hover { color: var(--indigo-ink); text-decoration: underline; text-underline-offset: .17em; }
.project-index h2 + p { color: var(--slate); }
.project-index .project-link { display: inline-block; margin-top: 9px; }
.project-detail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 5vw, 70px); margin-top: 24px; }
.project-detail .project-preview { border: 1px solid var(--paper-line); }
.project-back { color: var(--indigo-ink); text-underline-offset: .22em; }
.gallery-intro { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: end; justify-content: space-between; margin-bottom: 24px; }

.intake-next { border-top: 1px solid var(--paper-line); max-width: 44ch; padding-top: 16px; margin-top: 30px; }
.section .intake-next h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 5px; }
.intake-next p { color: var(--slate); }
.contact-form .button-primary:disabled { opacity: .7; cursor: progress; }
.form-status[data-state] { padding: 9px 12px; border-inline-start: 3px solid currentColor; border-radius: 4px; }
.section-light .form-status[data-state="error"] { background: #fff1ec; color: #842e22; }
.section-light .form-status[data-state="success"] { background: #e9f6ed; color: #255437; }

.portal { padding-block: clamp(40px, 7vw, 90px); min-height: 70vh; }
.portal h1 { max-width: 18ch; font-size: clamp(2.5rem, 6vw, 4.8rem); margin-bottom: 18px; }
.portal-header-actions { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 7px 18px; }
.portal-header-actions > a { color: var(--muted); font-size: .875rem; text-underline-offset: .25em; }
.portal-signin { max-width: 540px; }
.portal-signin h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.portal-signin > p:not(.eyebrow) { color: var(--muted); }
.portal-signin .portal-form { margin-block: 26px 18px; }
.portal-signin .portal-form button { justify-self: start; }
.portal h2 { margin-bottom: 16px; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.045em; }
.portal p + p { margin-top: 12px; }
.portal a:not(.button):not(.brand) { color: var(--accent-light); text-underline-offset: .2em; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 4px 17px; margin-block: 18px 28px; border-bottom: 1px solid var(--line); }
.portal-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.portal-nav a[aria-current] { color: var(--white) !important; text-decoration-thickness: 2px; font-weight: 750; }
.portal-block { margin-top: 20px; padding: clamp(16px, 3vw, 30px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow-wrap: anywhere; }
.portal-block p, .portal-message { color: var(--muted); }
.portal-block form, .portal-form { display: grid; gap: 14px; max-width: 640px; margin-top: 16px; }
.portal-block fieldset { padding: 10px; border: 1px solid var(--line); }
.portal-block .actions { margin-top: 13px; }
.portal-block dl { display: grid; grid-template-columns: minmax(85px, 180px) 1fr; gap: 8px 15px; }
.portal-block dd { margin: 0; white-space: pre-wrap; }
.portal-list { padding: 0; margin: 0; list-style: none; }
.portal-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.portal-list li:last-child { border: 0; }
.portal-alert { padding: 12px 18px; border: 1px solid #746cea; border-radius: 8px; margin-block: 14px; }
.portal-pre { white-space: pre-wrap; }
.portal-signout { margin: 0; }
.portal-check { display: flex; align-items: center; gap: 8px; }
.portal-check input { width: auto; min-height: auto; }
@media (max-width: 1190px) {
  .studio-navigation { min-height: 66px; }
  .studio-links, .studio-request { display: none; }
  .studio-menu { display: block; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 82px; }
  .project-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .studio-navigation { gap: 10px; }
  .studio-navigation .brand img { width: 120px; }
  .studio-actions { gap: 9px; }
  .service-paths, .project-index { grid-template-columns: minmax(0, 1fr); }
  .hq-building figcaption { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .studio-navigation .brand img { width: 104px; }
  .studio-client, .studio-menu summary { font-size: .8125rem; }
}

.project-category { margin-top: 20px; }
.work-card .project-link + .project-link { margin-top: 0; padding-top: 0; }

.products-grid { list-style: none; padding: 0; margin-bottom: 0; }
.product-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  min-height: 76px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.product-logo {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--night);
}
.product-logo-light { object-fit: contain; padding-inline: 24px; background: #eeeaf9; }
.product-card h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.025em; }
.product-status {
  padding: 4px 8px;
  border: 1px solid #575083;
  border-radius: 5px;
  color: var(--accent-light);
  font: 600 .74rem/1.4 var(--sans);
}

.product-feature { border-color: #8075ee; background: linear-gradient(140deg, #211d49, var(--panel) 75%); }
.product-link { color: #d8d4ff; text-underline-offset: .24em; font-weight: 700; }
.wdev-hero { background: #10101e; }
.wdev-hero::before, .wdev-hero::after { content: none; }
.wdev-hero h1 { max-width: 12ch; }
.wdev-hero .console { box-shadow: none; }
.wdev-wordmark { padding: 16px clamp(16px, 3vw, 30px) 0; }
.wdev-wordmark img { width: 100%; height: auto; border-radius: 9px; }
.wdev-path { list-style: none; padding: 0; }
.wdev-faq { max-width: 780px; display: grid; gap: 12px; margin-top: 26px; }
.wdev-faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.wdev-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; }
.wdev-faq summary::marker { color: var(--accent-light); }
.wdev-faq details p { color: var(--muted); padding: 0 20px 18px; }
.wdev-faq details p a { color: var(--accent-light); }
.wdev-faq details[open] { border-color: #665bb7; }
.wdev-current { color: var(--accent-light) !important; }
.wdev-timeline { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; margin: 12px 0; padding: 0; }
.wdev-timeline li { padding: 12px; border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 3px; }
.wdev-timeline li[aria-current] { border-color: #8275f2; background: #191d40; }
.wdev-timeline small { color: var(--muted); }

.carousel { overflow: hidden; touch-action: pan-y; }
.carousel-stage { display: grid; min-height: 275px; }
.carousel-slide { grid-area: 1 / 1; }
.carousel-slide[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.wdev-carousel .carousel-stage { min-height: 176px; }
.wdev-carousel .category { color: var(--accent-light); }
.slide-copy { color: var(--muted); margin: 14px 0 22px; }
.carousel-slide .flow + .button { margin-top: 16px; }
.console-checks { color: var(--muted); padding-left: 20px; }
.console-checks li { margin-bottom: 6px; }
.carousel-controls { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 10px 14px; }
.carousel-controls button {
  display: inline-grid; place-items: center; min-width: 39px; min-height: 39px;
  padding: 5px 9px; background: #172039; border: 1px solid #4e4783;
  color: var(--white); cursor: pointer; border-radius: 7px; font-size: .86rem;
}
.carousel-controls button:hover { background: #2b2557; }
.slide-steps { display: flex; align-items: center; gap: 3px; flex: 1; }
.slide-steps button { min-width: 28px; padding: 0; background: transparent; border-color: transparent; }
.slide-steps button::before { content: ""; width: 7px; height: 7px; background: #8c86b8; border-radius: 7px; }
.slide-steps button[aria-pressed="true"]::before { width: 16px; background: #c0b9ff; }
@media (prefers-reduced-motion: no-preference) {
  .carousel[data-carousel="horizontal"] { --slide-offset: 26px; }
  .carousel[data-carousel="horizontal"][data-direction="backward"] { --slide-offset: -26px; }
  .carousel[data-carousel="horizontal"] .carousel-slide:not([hidden]) { animation: slide-horizontal 420ms cubic-bezier(.2, .75, .3, 1) both; }
  .carousel[data-carousel="depth"] .carousel-slide:not([hidden]) { animation: slide-depth 500ms cubic-bezier(.2, .75, .3, 1) both; }
  .studio-main .wdev-faq details[open] > p { animation: slide-depth 290ms ease-out both; }
  .studio-main :is(.product-card, .work-card, .plan) { transition: translate 190ms ease, border-color 190ms ease, box-shadow 190ms ease; }
  .studio-main :is(.product-card, .work-card, .plan):focus-within { translate: 0 -3px; }
  .studio-main .button { transition: translate 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
  .studio-main .button:active { translate: 0 2px; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .studio-main :is(.product-card, .work-card, .plan):hover { translate: 0 -5px; border-color: #8075ee; box-shadow: 0 16px 32px #13103730; }
  .studio-main .button:hover { translate: 0 -2px; box-shadow: 0 9px 20px #5145ff32; }
}

@keyframes slide-horizontal { from { opacity: .35; transform: translateX(var(--slide-offset)); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-depth { from { opacity: .35; transform: scale(.97) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Product hallway */
#products { padding-block: clamp(26px, 3.8vw, 58px); }
#products .container { width: min(100% - 48px, 1440px); }
#products h1 { font-size: clamp(2.55rem, 5.2vw, 4.8rem); }
#products .eyebrow { margin-bottom: 8px; }
.gallery-help { color: var(--muted); margin: 12px 0 18px; font-size: .94rem; }
.gallery-viewport {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(395px, 59vh, 690px);
  border: 1px solid #55466d;
  border-radius: 13px;
  touch-action: none;
  user-select: none;
  background: #171424;
  box-shadow: 0 26px 64px #0007, 0 0 46px #5145ff13;
  cursor: grab;
}
.gallery-viewport:active { cursor: grabbing; }
.gallery-viewport::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 135px at var(--gallery-pointer-x, 50%) var(--gallery-pointer-y, 50%),
      #c7b5ff22, #9e87ea10 50%, transparent 100%);
  opacity: 0;
  transition: opacity 180ms ease;
}
.gallery-viewport.gallery-inspecting::before { opacity: 1; }
.gallery-viewport::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 39%, #08061268 100%);
}
.gallery-viewport.gallery-entering::after {
  animation: gallery-entry 790ms ease-in both;
}
.gallery-corridor, .gallery-exhibits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gallery-exhibits { z-index: 1; pointer-events: none; }

.gallery-door {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  display: block;
  width: 320px;
  height: 390px;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  color: #fff;
  background: #11101a;
  border: 6px solid #77718f;
  box-shadow: 0 9px 24px #08060ccc, inset 0 0 0 3px #1b1728;
}
.gallery-door.is-available { border-color: #a093f2; }
.gallery-door.is-highlighted { border-color: #e7ddff; box-shadow: 0 0 27px #b49bfa75; }
.gallery-doorway {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(27deg, #7465da44 8%, transparent 40%),
    radial-gradient(ellipse at 57% 42%, #e3e0ff 0%, #8575ef 37%, #42366e 78%);
}
.gallery-doorway::after {
  content: "";
  position: absolute;
  inset: 19% 23% 0;
  border: 2px solid #efebffab;
  box-shadow: 0 0 48px #e7d7ff53;
}
.gallery-door-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  padding: 24px 18px;
  transform-origin: left center;
  background:
    linear-gradient(125deg, #211e36, #161522 57%, #100f1a),
    #211e36;
  border: 4px solid #11101a;
  box-shadow: inset 0 0 0 1px #77718f;
}
.gallery-door.is-available .gallery-door-panel {
  background: linear-gradient(127deg, #2e2550, #1c1836 65%, #18142c);
  box-shadow: inset 0 0 0 1px #a093f2;
}
.gallery-door-art {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #e9e4ff;
  background: #030208;
  border: 3px solid #262039;
  box-shadow: 0 6px 18px #0009;
}
.gallery-door-art img { width: 100%; height: 100%; object-fit: contain; }
.gallery-door-art img[height="432"] { object-fit: cover; }
.gallery-door-art.gallery-art-paper { background: #eeeaf9; border-color: #5f557b; }
.gallery-door-art.gallery-art-paper img { padding-inline: 12px; }
.gallery-door-art > span {
  display: grid;
  place-items: center;
  padding: 12px 18px;
  width: 100%;
  height: 100%;
  text-align: center;
  background:
    radial-gradient(ellipse at 45% 17%, #4f39a9 0%, #221d48 48%, #0e0b17 88%),
    #161224;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.04em;
}
.gallery-door-caption { display: grid; gap: 3px; padding: 0 4px; line-height: 1.15; }
.gallery-door-caption strong { font-size: 22px; letter-spacing: -.035em; }
.gallery-door-caption small { color: #c9bde6; font-size: 17px; }
.gallery-door.is-available .gallery-door-caption small { color: #e3d7ff; }
.gallery-door-hardware {
  position: absolute;
  bottom: 26%;
  right: 20px;
  width: 37px;
  height: 23px;
  border-radius: 4px;
  background: linear-gradient(145deg, #e3d9ea, #695c87 62%, #332842);
  box-shadow: 0 3px 5px #000b;
}
.gallery-door.is-locked .gallery-door-hardware { background: #b9a6ca; }
.gallery-door.is-locked .gallery-door-hardware::before {
  content: "";
  position: absolute;
  height: 17px;
  width: 20px;
  top: -16px;
  left: 8px;
  border: 4px solid #b9a6ca;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.gallery-door.is-locked .gallery-door-hardware::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 16px;
  width: 5px;
  height: 9px;
  background: #352b46;
  border-radius: 3px;
}
.door-opening .gallery-door-panel {
  animation: gallery-door-open 760ms cubic-bezier(.25, .7, .25, 1) both;
}
.door-rattle .gallery-door-hardware { animation: gallery-lock-rattle 420ms ease both; }

.gallery-dock { display: flex; flex-wrap: wrap; gap: 11px 18px; align-items: center; justify-content: space-between; margin-top: 14px; }
.gallery-walk-controls, .gallery-stops, .gallery-exhibit-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.gallery-walk-controls button, .gallery-exhibit-controls > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 38px;
  padding: 6px 10px;
  border: 1px solid #4e446a;
  border-radius: 7px;
  color: var(--white);
  background: #19162a;
  cursor: pointer;
  text-decoration: none;
}
.gallery-walk-controls button:disabled { opacity: .48; cursor: default; }
.gallery-walk-controls button:not(:disabled):hover, .gallery-exhibit-controls > :hover { border-color: #ac9def; }
.gallery-stops button[aria-current] { background: var(--indigo); border-color: #aaa0ff; }
.gallery-exhibit-controls > * { gap: 4px 12px; flex-wrap: wrap; justify-content: start; text-align: left; }
.gallery-exhibit-controls small { color: #c9bde6; }
.gallery-exhibit-controls .is-available { border-color: #8275dc; }
.gallery-notice { color: var(--accent-light); font-size: .9rem; }
.gallery-notice:not(:empty) { margin-top: 10px; }
.gallery-list { margin-top: 22px; }
.gallery-list summary { width: fit-content; cursor: pointer; color: var(--accent-light); text-underline-offset: .25em; }
.gallery-list summary:hover { text-decoration: underline; }

@keyframes gallery-door-open {
  0% { transform: perspective(700px) rotateY(0); }
  100% { transform: perspective(700px) rotateY(-83deg); }
}
@keyframes gallery-entry {
  0%, 44% { opacity: 0; }
  100% { opacity: 1; background: #19132b; }
}
@keyframes gallery-lock-rattle {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
@media (max-width: 540px) {
  #products .container { width: calc(100% - 28px); }
  .gallery-viewport { height: clamp(320px, 55svh, 480px); }
  .gallery-dock { gap: 9px; }
  .gallery-exhibit-controls > * { min-height: 38px; padding: 4px 8px; font-size: .81rem; }
  .gallery-walk-controls button { min-width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .door-rattle .gallery-door-hardware { animation: none; }
}

/* Headquarters entrance and guided reception */
.hq-entrance { background: #10101e; }
.hq-scene-image, .hq-guide-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hq-image-position, center);
}
.hq-arrival {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(25px, 5.25vw, 76px);
  padding-block: clamp(36px, 6vw, 98px);
}
.hq-arrival h1 { font-size: clamp(3rem, 5.7vw, 5.4rem); max-width: 13ch; }
.hq-intro { color: #c4c6d8; max-width: 44ch; margin-top: 19px; font-size: clamp(1rem, 1.5vw, 1.14rem); }
.hq-arrival .actions { margin-top: 24px; }
.hq-building { min-width: 0; margin: 0; border: 1px solid #3c3956; border-radius: 12px; background: #151526; overflow: hidden; }
.hq-building-image { position: relative; aspect-ratio: 1.23; --hq-image-position: 64% center; }
.hq-building figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 3px 12px;
  padding: 6px 16px; border-top: 1px solid #3c3956; color: var(--muted); font-size: .84rem;
}
.hq-building figcaption a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: #dedbff; text-underline-offset: .24em; }
.hq-security { width: min(100%, 335px); margin-top: 17px; }
.hq-security summary {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  color: #dedbff; cursor: pointer; list-style: none; font-size: .88rem; font-weight: 650;
}
.hq-security summary::-webkit-details-marker,
.hq-direction summary::-webkit-details-marker { display: none; }
.hq-security-arrow { color: #c6bdff; font-size: 1.12rem; }
.hq-security[open] .hq-security-arrow { transform: rotate(45deg); }
.hq-security nav { display: grid; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; }
.hq-security nav a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 6px 8px; border-radius: 6px; color: #f2efff; font-size: .86rem; }
.hq-security nav a:hover { background: #ffffff12; }

.hq-reception {
  scroll-margin-top: 30px;
  color: #171522;
  background: #efecf2;
  color-scheme: light;
  border-color: #ded8e3;
}
.hq-reception .eyebrow { color: #5746bc; }
.hq-lobby { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5.5vw, 76px); align-items: start; }
.hq-desk h1, .hq-desk h2 { max-width: 13ch; font-size: clamp(2.9rem, 5.2vw, 4.8rem); color: #171522; }
.hq-desk :focus-visible, .hq-concierge button:focus-visible { outline-color: #5145d5; }
.hq-about-intro { max-width: 48ch; color: #4f495b; margin: 15px 0 0; }
.hq-directory { display: grid; gap: 7px; margin-top: clamp(18px, 3vw, 33px); }
.hq-direction {
  border: 1px solid #d4cdda;
  border-radius: 9px;
  background: #faf8f56e;
}
.hq-direction[open] { background: #fff; border-color: #9385d6; box-shadow: 0 9px 28px #392d6310; }
.hq-direction summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.02rem, 1.8vw, 1.23rem);
  font-weight: 760;
  letter-spacing: -.025em;
  padding: 12px 16px;
}
.hq-direction summary span { color: #5444bc; font-size: 1.18rem; transition: transform 220ms ease; }
.hq-direction[open] summary span { transform: rotate(90deg); }
.hq-direction-body { padding: 0 16px 15px; }
.hq-direction-body p { margin: 0 0 8px; color: #4d495c; font-size: .93rem; }
.hq-direction-body a { color: #4230ae; font-weight: 720; text-underline-offset: .2em; }
.hq-concierge { overflow: hidden; margin: 0; border: 1px solid #c8bed3; border-radius: 15px; background: #fff; box-shadow: 0 25px 58px #2e234a23; }
.hq-guide-view { position: relative; aspect-ratio: 1.31; overflow: hidden; background: #1d1830; --hq-image-position: 40% center; }
.hq-guide-motion { opacity: 0; transition: opacity 140ms ease; pointer-events: none; }
.hq-concierge.hq-guide-playing .hq-guide-motion { opacity: 1; }
.hq-concierge figcaption { padding: clamp(14px, 2.5vw, 22px); }
.hq-concierge-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hq-concierge-name { color: #5545ae; font: 700 .72rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hq-concierge figcaption p { margin-top: 9px; font-size: clamp(.95rem, 1.45vw, 1.13rem); line-height: 1.35; min-height: 2.7em; }
.hq-replay {
  background: #f1edf9;
  border: 1px solid #ccc2ec;
  color: #403091;
  border-radius: 5px;
  cursor: pointer;
  min-height: 34px;
  padding: 4px 9px;
  font-size: .75rem;
  font-weight: 650;
}
.hq-replay:hover { background: #e8e0fb; }
.gallery-end-sign {
  position: absolute;
  inset: 0 auto auto 0;
  width: 400px;
  height: 116px;
  padding: 20px 29px;
  display: grid;
  place-items: center;
  transform-origin: 0 0;
  border: 2px solid #b4a0df;
  border-radius: 11px;
  background: #1d172d;
  box-shadow: 0 0 46px #af91ff75;
  pointer-events: none;
}
.gallery-end-sign img { width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .hq-direction[open] .hq-direction-body { animation: hq-arrive 230ms ease-out both; }
  .hq-concierge p.hq-fresh-reply { animation: hq-arrive 320ms ease-out both; }
}
@keyframes hq-arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 820px) {
  .hq-concierge { position: sticky; top: 105px; }
}
@media (max-width: 819px) {
  .hq-lobby { grid-template-columns: 1fr; gap: 14px; }
  .hq-desk { display: contents; }
  .hq-lobby .eyebrow { order: 0; margin: 0; }
  .hq-lobby :is(h1, h2) { order: 1; }
  .hq-about-intro { order: 2; margin: 0; }
  .hq-directory { order: 3; margin-top: 0; }
  .hq-lobby .hq-concierge { order: 4; }
  .hq-guide-view { aspect-ratio: 1.45; }
}
@media (max-width: 700px) {
  .hq-arrival { grid-template-columns: 1fr; }
  .hq-building-image { aspect-ratio: 1.7; --hq-image-position: 64% 48%; }
}
@media (max-width: 520px) {
  .hq-arrival h1 { font-size: clamp(2.65rem, 10.7vw, 3.55rem); }
  .hq-reception { scroll-margin-top: 16px; }
}

/* Control Room workspace */
.portal-office { width: min(100% - 48px, 1500px); max-width: none; padding-block: 40px 76px; }
.office-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: clamp(22px, 4vw, 62px); }
.office-sidebar { position: sticky; top: 100px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #0d1526; }
.office-sidebar summary { display: none; }
.office-identity { display: grid; gap: 2px; padding: 11px 10px 16px; overflow-wrap: anywhere; }
.office-identity span, .office-account, .office-muted { color: var(--muted); font-size: .8rem; }
.office-account { padding: 10px; border-top: 1px solid var(--line); }
.office-sidebar .portal-nav { display: grid; gap: 3px; margin: 0 0 10px; border: 0; }
.portal .office-sidebar .portal-nav a { color: var(--muted); display: flex; min-height: 42px; padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.portal .office-sidebar .portal-nav a:hover { background: #192540; color: var(--white); }
.portal .office-sidebar .portal-nav a[aria-current] { background: #28264e; box-shadow: inset 3px 0 #a298ff; }
.office-main > .eyebrow { color: #bcb5ff; margin: .3rem 0 .45rem; }
.office-main > h1 { max-width: none; font-size: clamp(2.5rem, 5vw, 4.3rem); margin-bottom: 22px; }
.office-main .portal-block {
  background: linear-gradient(145deg, #111b2f, #0e1627 80%);
  border-color: #29334d; border-radius: 16px;
}
.office-main .portal-nav { gap: 6px; border: 0; margin-block: 12px 20px; }
.portal .office-main .portal-nav a { border: 1px solid var(--line); min-height: 38px; border-radius: 8px; padding: 4px 12px; text-decoration: none; }
.portal .office-main .portal-nav a:hover { border-color: var(--accent-light); }
.portal .office-main .portal-nav a[aria-current] { background: #27234a; border-color: #6f64b7; }
.office-metrics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); }
.portal .office-metric {
  position: relative; display: grid; gap: 7px; min-height: 112px; padding: 16px;
  color: #ddd9ff; text-decoration: none; border: 1px solid #3a3a60; border-radius: 14px;
  background: radial-gradient(90% 100% at 100% 0, #302559, #141d34 89%);
}
.portal .office-metric:hover { border-color: #a99bff; background: radial-gradient(90% 100% at 100% 0, #43336e, #1a2541 89%); }
.office-metric span:first-child { padding-right: 14px; font-size: .85rem; }
.office-metric strong { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.055em; line-height: 1; }
.office-metric span:last-child { position: absolute; right: 14px; top: 12px; }
.office-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.office-rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 12px; }
.office-main .office-wide-form { max-width: none; }
.office-rate-grid fieldset { display: grid; align-content: start; gap: 10px; min-width: 0; border-radius: 10px; }
.office-rate-grid legend { padding-inline: 7px; font-weight: 700; }
.office-directory-row { display: grid; grid-template-columns: 1.15fr 1fr .85fr; align-items: center; gap: 12px; }
.office-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 14px; align-items: center; }
.office-muted { display: block; margin-top: 3px; }
.office-badge { display: inline-block; padding: 2px 8px; margin-right: 4px; border-radius: 99px; background: #26324b; color: #e1e7f8; font-size: .75rem; white-space: nowrap; }
.office-badge-ok { color: #acf0d1; background: #173b37; }
.office-badge-danger { color: #ffc1c5; background: #482a3a; }
.office-badge-watch { color: #e4d7ff; background: #38305c; }
.portal-block .office-filter {
  display: flex; align-items: end; flex-wrap: wrap; gap: 10px; max-width: none; margin: 4px 0 16px;
}
.office-filter label:first-child { flex: 1 1 260px; }
.office-filter label:nth-child(2) { flex: 0 1 166px; }
.office-filter .button { align-self: end; }
.office-detail { padding-top: 7px; }
.office-detail summary { color: #c8beff; cursor: pointer; min-height: 28px; }
.office-detail[open] { padding-bottom: 12px; }
.office-pagination { display: flex; align-items: center; justify-content: end; gap: 15px; padding-top: 12px; font-size: .875rem; }
.office-email-preview { padding: 12px 14px; background: #0a1120; border: 1px solid var(--line); border-radius: 10px; }
.office-email-preview h3 { font-size: 1rem; margin-bottom: 8px; }
.office-email-preview p { margin-block: 8px; }
.office-email-preview small, .office-main small { color: var(--muted); }
.office-main :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.office-announcements { display: grid; gap: 9px; margin-block: 18px; }
.office-announcements article { padding: 12px 16px; border: 1px solid #514878; border-inline-start: 4px solid #a898ff; border-radius: 10px; background: #1c1b35; }
.office-announcements article h2 { font-size: 1rem; margin-bottom: 3px; letter-spacing: 0; }
.office-announcements article p { color: #dbd7f2; overflow-wrap: anywhere; }
@media (max-width: 970px) {
  .office-shell { grid-template-columns: 174px minmax(0, 1fr); gap: 22px; }
  .office-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 680px) {
  .portal-office { width: calc(100% - 28px); padding-top: 20px; }
  .office-shell { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .office-sidebar { position: static; }
  .office-sidebar summary { display: list-item; padding: 3px 8px; cursor: pointer; font-weight: 650; }
  .office-sidebar .portal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-directory-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .office-pagination { justify-content: start; }
}
