/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ============ Design tokens ============
   Direction: matches Autonomous AI Labs — white, Apple-grey panels,
   Geist display, Geist Mono labels, one clay accent, 12px radii. */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #5e6066;          /* 6.2:1 on white, 5.7:1 on --surface */
  --line: #e4e4e8;
  --accent: #b4472d;         /* clay — 5.3:1 on white */
  --accent-soft: #fbeee9;
  --ok: #1f7a4d;
  --error: #b3261e;

  --font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-body: 17px;
  --fs-small: 15px;
  --fs-mono: 14px;
  --fs-h3: 22px;
  --fs-h2: clamp(32px, 4.4vw, 48px);
  --fs-h1: clamp(44px, 7.6vw, 88px);
  --fs-num: clamp(36px, 4vw, 52px);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --nav-h: 56px;

  --t-fast: 180ms;
  --t-med: 280ms;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --marquee-duration: 40s;
  --wheel-duration: 70s;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s-5)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -60px; background: var(--text); color: #fff; padding: var(--s-2) var(--s-4); border-radius: 8px; z-index: 100; }
.skip:focus { top: var(--s-2); }

.section { padding-block: var(--s-10); border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--fs-h2); margin-top: var(--s-3); }
.section-head p { color: var(--muted); margin-top: var(--s-4); max-width: 60ch; }
@media (max-width: 767px) { .section { padding-block: var(--s-9); } .section-head { margin-bottom: var(--s-7); } }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-5); border-radius: var(--radius-pill); font: 500 var(--fs-small)/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.btn-primary { background: var(--text); color: #fff; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--line); }
@media (hover: hover) { .btn-primary:hover { background: #000; color: #fff; } .btn-secondary:hover { border-color: var(--text); } }
.btn:active { transform: scale(.98); }
.btn[disabled] { background: #c7c7cc; color: #3a3a3c; cursor: not-allowed; border-color: transparent; }
.btn .od-icon { --od-icon-size: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; font-size: var(--fs-small); color: var(--text); text-decoration: none; }
.link-arrow .od-icon { --od-icon-size: 16px; color: var(--accent); transition: transform var(--t-fast) var(--ease-out); }
@media (hover: hover) { .link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; } .link-arrow:hover .od-icon { transform: translateX(3px); } }

/* ============ Nav ============ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font: 600 16px/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--text); color: #fff; font: 600 12px/1 var(--font-mono); letter-spacing: -0.02em; }
.brand-text { font-family: var(--font-mono); font-weight: 400; font-size: 14px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: var(--s-6); margin-left: auto; list-style: none; }
.nav-links a:not(.btn) { font-size: var(--fs-small); color: var(--muted); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 500; }
@media (hover: hover) { .nav-links a:not(.btn):hover { color: var(--text); } }
.nav .btn { min-height: 36px; padding: 0 var(--s-4); font-size: 14px; }
.menu-btn { display: none; margin-left: auto; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; border-radius: 8px; }
.menu-btn .od-icon { --od-icon-size: 22px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu ul { list-style: none; padding: var(--s-3) var(--s-5) var(--s-5); display: grid; gap: var(--s-1); }
.mobile-menu a { display: block; padding: var(--s-3) 0; text-decoration: none; font-size: var(--fs-body); }
.mobile-menu .btn { margin-top: var(--s-3); width: 100%; }
@media (max-width: 860px) { .nav-links { display: none; } .menu-btn { display: inline-flex; } }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* ============ Hero ============ */
.hero { padding-block: var(--s-10) var(--s-9); text-align: center; }
.hero .name { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1); border: 1px solid var(--line); border-radius: var(--radius-pill); font: 500 14px/1.6 var(--font-display); color: var(--text); }
.hero .name img { width: 28px; height: 28px; border-radius: 50%; }
.hero .name .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { font-size: var(--fs-h1); margin-top: var(--s-6); letter-spacing: -0.04em; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 40em; margin: var(--s-5) auto 0; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-7); }

.terminal { margin: var(--s-8) auto 0; max-width: 600px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d2d2d7; }
.terminal-bar span { margin-left: auto; color: var(--muted); font-size: 12px; }
.terminal-body { padding: var(--s-4); display: grid; gap: var(--s-1); overflow-wrap: anywhere; }
.terminal-body > * { display: block; }
.terminal-body .p { color: var(--accent); }
.terminal-body .m { color: var(--muted); }
.terminal-body .ok { color: var(--ok); }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
.about-card { display: grid; gap: var(--s-5); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.about-card .who { display: flex; align-items: center; gap: var(--s-4); }
.about-card .who img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.about-card .who .n { display: block; font: 600 20px/1.2 var(--font-display); letter-spacing: -0.01em; }
.about-card .who .r { display: block; color: var(--muted); font-size: var(--fs-small); }
.timeline { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.timeline .co { font-weight: 600; }
.timeline .what { color: var(--muted); }
.about-copy { display: grid; gap: var(--s-4); color: var(--muted); }
.about-copy h2 { font-size: var(--fs-h2); color: var(--text); margin-block: var(--s-3) var(--s-2); }
.about-copy strong { color: var(--text); font-weight: 600; }
.skills { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin-top: var(--s-2); }
.skills li, .chip { font: 400 13px/1.4 var(--font-mono); color: var(--muted); padding: 4px 10px; background: var(--bg); border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; }
.chip-accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.also-do { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
.also-do > div { display: grid; gap: var(--s-1); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); }
.also-do .t { display: block; color: var(--text); font: 600 16px/1.3 var(--font-display); }
.also-do .d { display: block; font-size: var(--fs-small); }
.also-do .tools { display: block; font: 400 13px/1.5 var(--font-mono); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: var(--s-7); } }
@media (max-width: 560px) { .also-do { grid-template-columns: 1fr; } .timeline li { grid-template-columns: 1fr; gap: 0; } }

/* ============ Logo marquee ============ */
.logos { padding-block: var(--s-9) var(--s-10); border-top: 1px solid var(--line); }
.logos-head { text-align: center; margin-bottom: var(--s-7); }
.logos-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: var(--s-3); }
.logos-head p { color: var(--muted); margin-top: var(--s-3); font-size: var(--fs-small); }
.marquee { position: relative; overflow: hidden; padding-block: var(--s-5); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: var(--s-5); padding-right: var(--s-5); list-style: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 72px; padding: 0 var(--s-6); border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); color: var(--text); white-space: nowrap; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out); }
.logo-card .lname { display: block; font: 600 18px/1.1 var(--font-display); letter-spacing: -0.02em; }
.logo-card .lrole { display: block; font: 400 12px/1.2 var(--font-mono); color: var(--muted); }
@media (hover: hover) { .logo-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); } }
.marquee-hint { text-align: center; margin-top: var(--s-4); color: var(--muted); font-size: 13px; }
.marquee-toggle { background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; padding: var(--s-2); min-height: 44px; }

/* ============ Disciplines (services list) ============ */
.services-list { list-style: none; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-2) var(--s-6); align-items: baseline; padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.service .num { color: var(--muted); }
.service h3 { font-size: var(--fs-h3); }
.service .sdesc { color: var(--muted); }
.service .sfoot { grid-column: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); }
.service-preview { grid-column: 2 / -1; margin-top: var(--s-4); max-width: 560px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (max-width: 760px) {
  .service { grid-template-columns: 40px minmax(0, 1fr); }
  .service .sdesc, .service .sfoot, .service-preview { grid-column: 2; }
}

/* ============ Collaboration wheel ============ */
.wheel-section .grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.wheel-copy h2 { font-size: var(--fs-h2); margin-top: var(--s-3); }
.wheel-copy p { color: var(--muted); margin-top: var(--s-4); max-width: 46ch; }
.wheel-readout { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-height: 132px; }
.wheel-readout .r-name { display: block; font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em; }
.wheel-readout .r-role { display: block; color: var(--muted); margin-top: var(--s-1); }
.wheel { container-type: inline-size; position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.wheel-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-rings circle { fill: none; stroke: var(--line); }
.wheel-hub { position: absolute; top: 50%; left: 50%; width: 30cqi; height: 30cqi; transform: translate(-50%, -50%); border-radius: 50%; background: var(--text); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); text-align: center; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); }
.wheel-hub img { width: 12cqi; height: 12cqi; border-radius: 50%; }
.wheel-hub span { display: block; font: 600 clamp(11px, 3cqi, 15px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.wheel-ring { position: absolute; inset: 0; animation: spin var(--wheel-duration) linear infinite; }
.wheel-node { position: absolute; top: 50%; left: 50%; width: 14cqi; height: 14cqi; min-width: 48px; min-height: 48px; translate: -50% -50%; transform: rotate(var(--a)) translateY(-41cqi) rotate(calc(-1 * var(--a))); }
.wheel-node button { width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); padding: 0; animation: spin var(--wheel-duration) linear infinite reverse; transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out), scale var(--t-med) var(--ease-out); }
.wheel-node .od-icon { --od-icon-size: 42%; transition: color var(--t-med) var(--ease-out); }
.wheel-node button:hover, .wheel-node button:focus-visible, .wheel-node button[aria-pressed="true"] { scale: 1.12; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), 0 10px 30px -8px color-mix(in srgb, var(--accent) 50%, transparent); outline: none; }
.wheel-node button:hover .od-icon, .wheel-node button:focus-visible .od-icon, .wheel-node button[aria-pressed="true"] .od-icon { color: var(--accent); }
.wheel:hover .wheel-ring, .wheel:hover .wheel-node button, .wheel:focus-within .wheel-ring, .wheel:focus-within .wheel-node button { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .wheel-section .grid2 { grid-template-columns: 1fr; gap: var(--s-7); } }

/* ============ Work cards ============ */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); list-style: none; }
.work-card { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); color: var(--text); text-decoration: none; transition: border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
@media (hover: hover) { a.work-card:hover { border-color: var(--text); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); } }
.work-media { background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s-4); display: grid; place-items: center; }
.work-media img { max-height: 320px; width: auto; }
.work-body { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5) var(--s-6) var(--s-6); }
.work-body .tag { display: block; color: var(--accent); }
.work-body h3 { font-size: var(--fs-h3); }
.work-body p { color: var(--muted); font-size: var(--fs-small); }
.work-card .metrics { margin-top: var(--s-2); }
.metrics { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); list-style: none; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.metric { display: grid; gap: 2px; max-width: 24ch; }
.metric .num { display: block; font: 600 28px/1 var(--font-display); letter-spacing: -0.03em; white-space: nowrap; }
.metric .cap { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.work-card .link-arrow { margin-top: var(--s-2); }
.work-more { display: flex; justify-content: center; margin-top: var(--s-7); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* ============ Stats band ============ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); list-style: none; }
.stat { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--radius); background: var(--surface); }
.stat .num { display: block; font: 600 var(--fs-num)/1 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; }
.stat .cap { display: block; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ============ Process / principles ============ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.step { padding-top: var(--s-5); border-top: 2px solid var(--text); }
.step .mono { display: block; color: var(--muted); }
.step h3 { font-size: var(--fs-h3); margin-top: var(--s-3); }
.step p { color: var(--muted); margin-top: var(--s-3); font-size: var(--fs-small); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ============ Credentials ============ */
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); list-style: none; }
.cred { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.cred .mono { display: block; color: var(--accent); }
.cred .ctitle { display: block; font: 600 20px/1.25 var(--font-display); letter-spacing: -0.01em; }
.cred .corg { display: block; color: var(--muted); }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr; } }

/* ============ Contact ============ */
.contact .grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.contact h2 { font-size: var(--fs-h2); margin-top: var(--s-3); }
.contact .intro > p { color: var(--muted); margin-top: var(--s-4); max-width: 42ch; }
.contact-list { list-style: none; margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.contact-list li { display: flex; gap: var(--s-3); align-items: baseline; }
.contact-list .k { flex: none; width: 88px; font: 400 13px/1.6 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ph { display: inline-block; padding: 0 var(--s-2); border: 1px dashed var(--muted); border-radius: 6px; color: var(--muted); font-size: var(--fs-small); }
.form { display: grid; gap: var(--s-5); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field .req { color: var(--accent); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid #c9c9cf; border-radius: 10px; padding: var(--s-3) var(--s-4); min-height: 48px; transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(29,29,31,.12); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: 14px; }
.form-foot { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form-status { padding: var(--s-4); border-radius: var(--radius); font-size: var(--fs-small); }
.form-status.is-error { background: #fdecea; color: var(--error); }
.success { display: grid; gap: var(--s-3); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.success h3 { font-size: var(--fs-h3); display: flex; align-items: center; gap: var(--s-2); }
.success h3 .od-icon { --od-icon-size: 22px; color: var(--ok); }
.success p { color: var(--muted); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin 700ms linear infinite; }
@media (max-width: 900px) { .contact .grid2 { grid-template-columns: 1fr; gap: var(--s-7); } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form { padding: var(--s-5); } }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-7); color: var(--muted); font-size: var(--fs-small); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.footer ul { display: flex; flex-wrap: wrap; gap: var(--s-5); list-style: none; }
.footer a { text-decoration: none; }
@media (hover: hover) { .footer a:hover { color: var(--text); } }

/* ============ Sub-page head ============ */
.page-head { padding-block: var(--s-9) var(--s-7); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; margin-top: var(--s-4); }
.page-head p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin-top: var(--s-4); max-width: 44em; }

/* ============ Work index ============ */
.filters { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); padding-block: var(--s-3); }
.filters .od-rail { --od-rail-pad: 0px; }
.filter-btn { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); font: 500 14px/1 var(--font-body); color: var(--text); white-space: nowrap; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.filter-btn .count { font: 400 12px/1 var(--font-mono); color: var(--muted); }
@media (hover: hover) { .filter-btn:hover { border-color: var(--text); } }
.filter-btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.filter-btn[aria-pressed="true"] .count { color: #d2d2d7; }
.result-line { padding-top: var(--s-5); color: var(--muted); }
.cat-block { padding-block: var(--s-8) 0; }
.cat-head { display: grid; gap: var(--s-2); max-width: 680px; margin-bottom: var(--s-6); }
.cat-head h2 { font-size: clamp(28px, 3.2vw, 36px); }
.cat-head p { color: var(--muted); }
.projects { list-style: none; display: grid; gap: var(--s-5); }
.project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-6); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.project-main { display: grid; gap: var(--s-3); align-content: start; }
.project-main .tag { display: block; color: var(--accent); }
.project-main h3 { font-size: var(--fs-h3); }
.project-main p { color: var(--muted); font-size: var(--fs-small); }
.outcome { display: block; font-size: var(--fs-small); color: var(--text); padding: var(--s-3) var(--s-4); background: var(--surface); border-radius: 10px; }
.project-media { align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); }
.project-media img { margin-inline: auto; }
.placeholder-box { display: grid; gap: var(--s-2); place-content: center; text-align: center; min-height: 200px; padding: var(--s-5); border: 1px dashed #b9bbc1; border-radius: var(--radius); color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; padding: var(--s-5); } }
.page-end { padding-block: var(--s-9); }

/* ============ Case study ============ */
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); padding: var(--s-5) var(--s-6); background: var(--surface); border-radius: var(--radius-lg); list-style: none; margin-top: var(--s-7); }
.cs-facts li { display: grid; gap: var(--s-1); }
.cs-facts .k { display: block; font: 400 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cs-facts .v { display: block; font-size: var(--fs-small); line-height: 1.45; }
@media (max-width: 900px) { .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-8); padding-bottom: var(--s-10); }
.toc { position: sticky; top: calc(var(--nav-h) + var(--s-5)); align-self: start; }
.toc .eyebrow { display: block; margin-bottom: var(--s-3); }
.toc ol { list-style: none; display: grid; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px var(--s-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a[aria-current="true"] { color: var(--text); border-left-color: var(--accent); font-weight: 500; }
@media (hover: hover) { .toc a:hover { color: var(--text); } }
.toc-mobile { display: none; margin-bottom: var(--s-6); }
.toc-mobile .od-rail { --od-rail-pad: 0px; }
.toc-mobile a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
@media (max-width: 1023px) { .cs-layout { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } .toc-mobile { display: block; } }
.cs-body { min-width: 0; }
.cs-section { display: grid; gap: var(--s-5); padding-block: var(--s-7); border-top: 1px solid var(--line); }
.cs-section:first-child { border-top: 0; padding-top: 0; }
.cs-section h2 { font-size: clamp(28px, 3vw, 36px); }
.cs-section .prose { display: grid; gap: var(--s-4); color: var(--muted); max-width: 68ch; }
.cs-section .prose strong { color: var(--text); font-weight: 600; }
.study-divider { display: grid; gap: var(--s-4); padding-block: var(--s-9) var(--s-5); border-top: 2px solid var(--text); margin-top: var(--s-7); }
.study-divider h2 { font-size: var(--fs-h2); }
.study-divider p { color: var(--muted); max-width: 60ch; }
.fig { display: grid; gap: var(--s-3); }
.fig .frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.fig .frame img { margin-inline: auto; }
.fig figcaption { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.fig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
@media (max-width: 760px) { .fig-pair { grid-template-columns: 1fr; } }
.numbered { list-style: none; display: grid; gap: var(--s-4); max-width: 68ch; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); color: var(--muted); }
.numbered li::before { content: counter(n, decimal-leading-zero); font: 400 14px/1.9 var(--font-mono); color: var(--accent); }
.numbered strong { color: var(--text); font-weight: 600; }
.options { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.option { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); }
.option .tag { display: block; font: 400 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.option .otitle { display: block; font: 600 17px/1.3 var(--font-display); }
.option .onote { display: block; color: var(--muted); font-size: var(--fs-small); }
.option.is-chosen { border: 2px solid var(--accent); background: var(--accent-soft); }
.option.is-chosen .tag { color: var(--accent); }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }
.launches { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 760px) { .launches { grid-template-columns: 1fr; } }
.note { padding: var(--s-5); background: var(--surface); border-radius: var(--radius); color: var(--muted); font-size: var(--fs-small); max-width: 68ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .wheel-ring, .wheel-node button { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ============ Rebuilt graphics (gx) ============
   Diagrams and mockups rebuilt as live HTML in the site's style.
   Text is real, so it stays sharp and editable. */
.gx { display: grid; gap: var(--s-4); width: 100%; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: 15px; line-height: 1.5; text-align: left; container-type: inline-size; }
.gx-head { display: grid; gap: var(--s-1); }
.gx-eyebrow { display: block; font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.gx-title { display: block; font: 600 clamp(18px, 4cqi, 24px)/1.2 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.gx-sub { display: block; color: var(--muted); font-size: 14px; }
.gx-note { display: block; font: 400 12px/1.5 var(--font-mono); color: var(--muted); }
.gx-label { display: block; font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.gx-strong { display: block; font: 600 16px/1.3 var(--font-display); letter-spacing: -.01em; }
.gx-muted { display: block; color: var(--muted); font-size: 14px; }
.gx-quote { display: block; font: 500 17px/1.4 var(--font-display); letter-spacing: -.01em; }
.gx-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gx .od-icon { --od-icon-size: 16px; }

.gx-card { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.gx-card.is-key { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.gx-card.is-dim { background: transparent; border-style: dashed; }
.gx-cols { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.gx-cols-2 { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gx-ul { list-style: none; display: grid; gap: 6px; }
.gx-ul li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.gx-ul li::before { content: ""; width: 6px; height: 6px; margin: 9px 0 0 4px; border-radius: 50%; background: var(--accent); }
.gx-ol { list-style: none; display: grid; gap: 6px; counter-reset: gxo; }
.gx-ol li { counter-increment: gxo; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-2); }
.gx-ol li::before { content: counter(gxo); font: 500 13px/1.6 var(--font-mono); color: var(--accent); }

.gx-pill { display: inline-block; justify-self: start; padding: 2px 8px; border-radius: var(--radius-pill); font: 500 11px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.gx-pill.is-bad { background: #fdecea; border-color: transparent; color: var(--error); }
.gx-pill.is-good { background: #e6f4ec; border-color: transparent; color: var(--ok); }
.gx-pill.is-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* flow: boxes joined by arrows; stacks vertically in narrow containers */
.gx-flow { list-style: none; display: flex; align-items: stretch; gap: var(--s-2); }
.gx-flow > li:not(.gx-arrow) { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; align-content: start; padding: var(--s-3); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.gx-flow > li.is-key { background: var(--text); border-color: var(--text); color: #fff; }
.gx-flow > li.is-key .gx-muted, .gx-flow > li.is-key .gx-label { color: #c7c7cc; }
.gx-flow > li.is-accent { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.gx-flow .gx-n { display: block; font: 500 12px/1.4 var(--font-mono); color: var(--accent); }
.gx-flow > li.is-key .gx-n { color: #f0b4a5; }
.gx-arrow { flex: none; align-self: center; display: grid; place-items: center; color: var(--muted); }
@container (max-width: 560px) {
  .gx-flow { flex-direction: column; }
  .gx-arrow { transform: rotate(90deg); }
}

/* compare */
.gx-compare { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }

/* mock UI window */
.gx-win { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; }
.gx-win-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fafafa; }
.gx-win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d2d2d7; flex: none; }
.gx-win-bar span { margin-left: var(--s-2); font: 400 11px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-win-body { display: grid; gap: var(--s-2); padding: var(--s-4); }
.gx-callout { display: grid; gap: 4px; padding: var(--s-3); border-radius: 8px; background: var(--surface); }
.gx-skel { display: block; height: 8px; border-radius: 4px; background: var(--line); width: var(--w, 100%); }
.gx-phone { display: grid; gap: var(--s-2); width: min(100%, 280px); margin-inline: auto; padding: var(--s-5) var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: 28px; text-align: center; }
.gx-btn { display: block; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--text); color: #fff; font-weight: 600; text-align: center; }

/* data table */
.gx-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.gx-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.gx-table th, .gx-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gx-table th:first-child, .gx-table td:first-child { text-align: left; }
.gx-table thead th { font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafafa; }
.gx-table tbody tr:last-child td { border-bottom: 0; }
.gx-table td:first-child { color: var(--muted); }

/* stats */
.gx-stats { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.gx-stat { display: grid; gap: var(--s-1); align-content: start; padding: var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.gx-num { display: block; font: 600 clamp(28px, 7cqi, 40px)/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.gx-num.is-accent { color: var(--accent); }

/* checklist */
.gx-check { list-style: none; display: grid; gap: var(--s-2); }
.gx-check li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.gx-check li > .od-icon { color: var(--ok); margin-top: 3px; }
@container (max-width: 420px) { .gx-check li { grid-template-columns: 16px minmax(0, 1fr); } .gx-check li .gx-pill { grid-column: 2; } }

/* hub: inputs → owner → output */
.gx-hub { display: grid; gap: 0; justify-items: center; }
.gx-hub .gx-cols { width: 100%; }
.gx-hub .gx-card { text-align: center; justify-items: center; }
.gx-stem { display: block; width: 1px; height: var(--s-5); background: var(--muted); opacity: .5; }
.gx-core { display: grid; gap: 4px; justify-items: center; text-align: center; padding: var(--s-4) var(--s-5); border-radius: 12px; background: var(--text); color: #fff; max-width: 340px; }
.gx-core .gx-label { color: #c7c7cc; }

/* horizontal bars */
.gx-bars { display: grid; gap: var(--s-4); }
.gx-bar-group { display: grid; gap: 6px; }
.gx-bar-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-3); align-items: center; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.gx-bar { display: block; height: 12px; border-radius: 6px; background: #c7c7cc; width: var(--w); }
.gx-bar.is-after { background: var(--text); }
.gx-bar.is-accent { background: var(--accent); }

/* timeline */
.gx-timeline { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--s-3); }
.gx-timeline li { position: relative; display: grid; gap: 4px; align-content: start; padding-top: var(--s-5); }
.gx-timeline li::before { content: ""; position: absolute; top: 5px; left: 0; right: calc(-1 * var(--s-3)); height: 2px; background: var(--line); }
.gx-timeline li:last-child::before { right: 0; }
.gx-timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.gx-timeline li.is-key::after { background: var(--accent); border-color: var(--accent); }
@container (max-width: 560px) {
  .gx-timeline { grid-template-columns: 1fr; gap: var(--s-4); }
  .gx-timeline li { padding: 0 0 0 var(--s-6); }
  .gx-timeline li::before { top: 12px; bottom: calc(-1 * var(--s-4)); left: 5px; right: auto; width: 2px; height: auto; }
  .gx-timeline li:last-child::before { display: none; }
}

/* launch card: story left, product mock right */
.gx-launch { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.gx-launch-copy { display: grid; gap: var(--s-3); align-content: start; }
@container (max-width: 600px) { .gx-launch { grid-template-columns: 1fr; } }

/* real screenshots, framed as a browser window */
.gx-shot { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.gx-shot img { display: block; width: 100%; height: auto; }
.work-media .gx-shot img, .project-media .gx-shot img, .service-preview .gx-shot img { max-height: 420px; object-fit: contain; }

/* containers that used to frame a picture now hand the frame to the graphic */
.service-preview:has(> .gx, > .gx-shot),
.project-media:has(> .gx, > .gx-shot),
.fig .frame:has(> .gx, > .gx-shot) { padding: 0; border: 0; background: none; border-radius: 0; overflow: visible; }
.work-media:has(> .gx, > .gx-shot) { display: block; padding: var(--s-4); }
.work-media > .gx { background: var(--bg); }
.gx-flow > li.is-key .gx-ol li::before, .gx-flow > li.is-key .gx-ul li::before { color: #f0b4a5; background-color: currentColor; }
.gx-flow > li.is-key .gx-ol li::before { background: none; }
.gx-flow > li.is-key .gx-label { color: #c7c7cc; }

/* ============ Rebuilt Help Center pages (formerly low-res screenshots) ============ */
.gx-page { display: grid; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--text); text-align: left; container-type: inline-size; }
.gx-page-top { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-4); border-bottom: 1px solid var(--line); background: #fafafa; }
.gx-page-top .dots { display: flex; gap: 6px; flex: none; }
.gx-page-top .dots i { width: 8px; height: 8px; border-radius: 50%; background: #d2d2d7; }
.gx-page-top .site { flex: none; font: 600 14px/1 var(--font-display); letter-spacing: -.01em; }
.gx-page-top .search { flex: 1 1 auto; min-width: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-page-main { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.gx-page-main.no-nav { grid-template-columns: minmax(0, 1fr); }
.gx-page-nav { display: grid; align-content: start; gap: 2px; padding: var(--s-4) var(--s-3); border-right: 1px solid var(--line); background: #fcfcfd; list-style: none; }
.gx-page-nav li { padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.gx-page-nav li.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.gx-page-body { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); min-width: 0; }
.gx-page-body h4 { font: 600 clamp(18px, 4cqi, 24px)/1.2 var(--font-display); letter-spacing: -.02em; }
.gx-page-body h5 { font: 600 16px/1.3 var(--font-display); letter-spacing: -.01em; margin: var(--s-2) 0 0; }
.gx-page-body h6 { font: 600 14px/1.3 var(--font-body); margin: 0; }
.gx-page-body p { color: #3a3b40; }
.gx-page-body ol, .gx-page-body ul { display: grid; gap: 4px; padding-left: 20px; color: #3a3b40; }
.gx-page-body a, .gx-page .lnk { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.gx-crumb { font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.gx-alert { padding: var(--s-3) var(--s-4); border-radius: 8px; background: var(--accent-soft); color: #5a2416; font-size: 13px; }
.gx-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.gx-tabs span { padding: 6px 12px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.gx-tabs span.is-on { color: var(--text); border-bottom-color: var(--text); font-weight: 500; }
.gx-hubsec { display: grid; gap: 6px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: 10px; }
.gx-hubsec .hd { display: flex; align-items: baseline; gap: var(--s-2); }
.gx-hubsec .hd b { flex: none; font: 500 12px/1.4 var(--font-mono); color: var(--accent); }
.gx-hubsec ul { list-style: none; padding-left: 0; }
.gx-hubsec li::before { content: "▸ "; color: var(--accent); }
.gx-video { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: 10px; background: var(--text); color: #fff; }
.gx-video .play { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--text); }
.gx-video .play .od-icon { --od-icon-size: 14px; }
.gx-video .t { display: block; font: 600 14px/1.3 var(--font-display); }
.gx-video .s { display: block; font-size: 12px; color: #c7c7cc; }
.gx-result { display: grid; gap: 2px; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.gx-result:last-child { border-bottom: 0; }
.gx-result .t { display: block; color: var(--accent); font-weight: 500; }
.gx-result .s { display: block; font: 400 11px/1.4 var(--font-mono); color: var(--muted); }
.gx-result .d { display: block; color: #3a3b40; font-size: 13px; }
.gx-page-cap { padding: var(--s-2) var(--s-4); border-top: 1px solid var(--line); background: #fafafa; font: 400 12px/1.5 var(--font-mono); color: var(--muted); }
@container (max-width: 560px) { .gx-page-main { grid-template-columns: 1fr; } .gx-page-nav { display: none; } }
.service-preview:has(> .gx-page), .project-media:has(> .gx-page), .fig .frame:has(> .gx-page) { padding: 0; border: 0; background: none; border-radius: 0; overflow: visible; }
.work-media:has(> .gx-page) { display: block; padding: var(--s-4); }
.project-media .gx-page, .work-media .gx-page { max-height: 560px; overflow: auto; }
.contact-list a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (hover: hover) { .contact-list a:hover { color: var(--accent); } }
