/* Production layout and content are the authority. This file changes appearance only. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #101216;
  --surface: #0d1116;
  --surface-raised: #151a20;
  --ink: #f4f5f7;
  --ink-soft: #b6bbc3;
  --ink-mute: #979da7;
  --line: rgba(225, 233, 239, 0.17);
  --line-soft: rgba(225, 233, 239, 0.105);
  --glass: rgba(16, 21, 25, 0.65);
  --glass-2: rgba(28, 35, 39, 0.78);
  /* Keep the production gradient colors used by the two hero animations. */
  --accent: #8fb6ff;
  --accent-2: #c7a8ff;
  --accent-3: #7ee0c8;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: var(--sans);
  --r: 2px;
  --radius: 2px;
  --radius-sm: 2px;
}

body.restyle {
  --landscape-height: 1050px;
  --landscape-min-height: 1050px;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: -0.012em;
}

/* One landscape behind the opening; a sparse night sky continues through the site. */
.restyle .ambient {
  position: absolute;
  inset: 0 0 auto;
  height: var(--landscape-height);
  z-index: -2;
  background: var(--bg) url("/assets/orlando-night-dark.webp") no-repeat;
  background-position: var(--landscape-position, center bottom);
  background-size: var(--landscape-size, cover);
  filter: brightness(0.4);
  opacity: 1;
  /* Fade only the lower water; the city and fountain remain fully opaque. */
  mask-image: linear-gradient(to bottom, #000 calc(100% - min(320px, 28%)), transparent);
}
.restyle .ambient::before,
.restyle .ambient::after {
  content: none;
}
.restyle .grain {
  position: absolute;
  inset: var(--landscape-height) 0 0;
  opacity: 0.42;
  background: url("/assets/night-stars.svg") 0 45px / 720px 640px repeat;
  mask-image: linear-gradient(transparent, #000 160px, #000);
}
.restyle .grain.has-parallax { background: none; }
.restyle .grain.has-parallax::before {
  content: "";
  position: fixed;
  /* One extra tile at each edge covers a full repeating scroll offset. */
  inset: -640px 0;
  background: url("/assets/night-stars.svg") 0 45px / 720px 640px repeat;
  transform: translate3d(0, var(--star-parallax-offset, 0px), 0);
  pointer-events: none;
}
body.restyle::after {
  content: "";
  position: absolute;
  inset: var(--landscape-height) 0 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 4% 55%, rgba(82,151,125,0.065), transparent 42%),
    radial-gradient(ellipse at 95% 84%, rgba(101,111,168,0.06), transparent 43%);
}
body.restyle-library,
body.restyle-study,
body.restyle-work {
  --landscape-height: 780px;
  --landscape-min-height: 780px;
}

/* Keep the navigation's existing placement and destinations; simplify its silhouette. */
.restyle > nav {
  border-radius: 2px;
  padding: 0 0 0 20px;
  min-height: 58px;
  background: rgba(6,8,11,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.restyle > nav.scrolled {
  background: rgba(6,8,11,0.98);
  box-shadow: none;
}

/* The hero gradients and word-swipe animation remain in the production styles/scripts. */
.restyle .page-hero h1,
.restyle .library-hero h1,
.restyle .study-title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.09;
}
.restyle .hero-promise { font-weight: 400; line-height: 1.15; }
.restyle .hero-grid > *,
.restyle .page-hero-grid > * { min-width: 0; }
.restyle .hero-lede { line-height: 1.7; }
.restyle .portrait .photo {
  --portrait-fade-start: 90%;
  aspect-ratio: 1062 / 983;
  padding: 3px;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--portrait-fade-start), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 var(--portrait-fade-start), transparent 100%);
}
.restyle .portrait .photo img {
  object-fit: contain;
  filter: url("#portrait-edge-feather");
}
.restyle h3,
.restyle .work-card h2,
.restyle .tl-co,
.restyle .case-title,
.restyle .study-section h2 { font-weight: 500; }
.restyle .evidence-item strong {
  font-weight: 400;
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
}
.restyle .case-tag,
.restyle .case-meta .k,
.restyle .tl-when,
.restyle .tool-category-label {
  letter-spacing: 0.065em;
}

/* Existing grids, media, and content order stay intact. */
.restyle .work-card,
.restyle .access-card,
.restyle .contact,
.restyle .contact-shell,
.restyle .conversion-panel,
.restyle .study-note,
.restyle .study-evidence,
.restyle .ref-feature,
.restyle .empty,
.restyle .fatal {
  border-radius: 2px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.restyle .work-card { background: var(--glass); }
.restyle .engagement { border-color: var(--line); }
.restyle .work-card:hover,
.restyle .case-card:hover { transform: none; border-color: rgba(225,233,239,0.32); }
.restyle .tool-agent,
.restyle .tool-item,
.restyle .tool-logo-wrap,
.restyle .signal,
.restyle .response,
.restyle .portfolio-head-actions,
.restyle .work-preview,
.restyle .case-art,
.restyle .study-hero-art,
.restyle .study-figure,
.restyle .capability-icon { border-radius: 2px; }
.restyle .tool-agent:hover .tool-logo-wrap,
.restyle .tool-item:hover .tool-logo-wrap { box-shadow: none; }
.restyle .tool-category-label::before { box-shadow: none; }
.restyle .diagnostic { background: rgba(9,15,18,0.74); }
.restyle .diagnostic::before { background: none; }
.restyle .signal,
.restyle .response { background: rgba(7,11,14,0.66); }
.restyle .diagnostic-head,
.restyle .diagnostic-foot { letter-spacing: 0.015em; }
.restyle .diagnostic-live { gap: 5px; }
.restyle .evidence-item { background: rgba(7,11,14,0.85); }
.restyle .meta-pill,
.restyle .pill { border-radius: 2px; }
.restyle .case-media-label,
.restyle .case-card-demo-link { border-radius: 2px; }
.restyle .study-heading > .eyebrow { border-radius: 2px; }
.restyle .contact-shell > * { min-width: 0; }
.restyle .tl-item::before { box-shadow: none; }
.restyle .portfolio-head-actions { backdrop-filter: none; -webkit-backdrop-filter: none; }
.restyle .ref-feature.glass::before,
.restyle .contact.glass::before { background: none; }

/* Quiet, square actions with clear focus and usable mobile touch targets. */
.restyle .work-preview .btn:hover { transform: translate(-50%, -50%); }
.restyle .access-card input,
.restyle-access input {
  border-radius: 2px;
  font-size: 1rem;
  background: rgba(7,11,14,0.7);
}
.restyle :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.restyle .access-card button,
.restyle-access button,
.restyle .back-link,
.restyle .control,
.restyle .retry,
.restyle .viewer-modal-close { border-radius: 2px; }
.restyle .access-card button,
.restyle-access button { min-height: 46px; background: #ededee; color: #16191d; }
.restyle .control { min-width: 44px; min-height: 44px; }
/* Preserve the production scroll reveals, including their hidden starting state. */

/* Access and reading surfaces share the type/controls, with a quieter backdrop. */
body.restyle-access::before {
  background: url("/assets/orlando-night-dark.webp") center / cover;
}
.restyle-access .card {
  border-radius: 2px;
  background: rgba(7,11,14,0.88);
  backdrop-filter: none;
}
body.restyle-viewer::after { content: none; }
.restyle .viewer-header { background: rgba(6,8,11,0.98); backdrop-filter: none; }
.restyle .viewer-header h1 { font-weight: 500; }
.restyle .access-gate { background: rgba(6,8,11,0.94); backdrop-filter: none; }
@media (max-width: 960px) {
  .restyle .contact-shell { grid-template-columns: minmax(0, 1fr); }}

@media (max-width: 820px) {
  .restyle > nav { padding-left: 16px; }
  body.restyle { --landscape-height: 1150px; --landscape-min-height: 1150px; }
  .restyle .ambient { background-position: var(--landscape-position, 58% bottom); }
  body.restyle-library,
body.restyle-study,
body.restyle-work { --landscape-height: 760px; --landscape-min-height: 760px; }}

@media (max-width: 620px) {
  .restyle .hero-promise { font-size: 0.55em; }
  .restyle .diagnostic-head { gap: 12px; flex-wrap: wrap; }
  .restyle .diagnostic-foot { gap: 12px; flex-wrap: wrap; }
  .restyle .hero-actions .btn { justify-content: center; }}

@media (max-width: 380px) {
  .restyle-home .contact { padding: 28px 20px; }
  /* Scale the fixed-width third-party widget together with its hit targets. */
  .restyle .cf-turnstile { zoom: 0.8; }}

@media (prefers-reduced-motion: reduce) {
  .restyle,
.restyle * { scroll-behavior: auto; }
  .restyle .reveal { opacity: 1; transform: none; transition: none; }
  .restyle .grain.has-parallax { background: url("/assets/night-stars.svg") 0 45px / 720px 640px repeat; }
  .restyle .grain.has-parallax::before { content: none; }}

/* Shared components — homepage is the visual baseline. Page styles may compose
   these components, but must not redefine their type, spacing, or states. */
:root {
  --maxw: 1120px;
  --reading: 720px;
  --danger: #ff8a8a;
  --text-brand: 1.04rem;
  --text-brand-detail: 0.84rem;
  --text-nav: 0.81rem;
  --text-eyebrow: 0.68rem;
  --text-label: 0.7rem;
  --text-field-label: 0.72rem;
  --text-action: 0.87rem;
  --text-help: 0.82rem;
  --text-input: 1rem;
  --text-body: 1rem;
  --text-card-body: 0.91rem;
  --text-card-title: 1.22rem;
  --text-section-copy: 0.95rem;
  --text-hero: clamp(2.5rem, 5.4vw, 4.4rem);
  --text-lead: clamp(1.02rem, 1.6vw, 1.22rem);
  --text-section: clamp(1.75rem, 3.4vw, 2.65rem);
  --text-contact: clamp(2rem, 4.4vw, 3.1rem);
  --text-stat: clamp(1.5rem, 2.5vw, 2rem);
  --tracking-label: 0.065em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --section-space: 60px;
  --page-gutter: 28px;
  --panel-padding: 56px 48px;
}
body.restyle { font-size: var(--text-body); font-weight: 400; line-height: 1.6; }
.restyle .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--page-gutter); }
.restyle :is(.site-nav, nav#nav) {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: var(--maxw); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; padding: 0 0 0 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(6,8,11,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 400 var(--text-body)/1.6 var(--sans); letter-spacing: -0.012em;
  transition: background 0.3s ease;
}
.restyle :is(.site-nav, nav#nav):is(.scrolled, .is-scrolled) { background: rgba(6,8,11,0.98); box-shadow: none; }
.restyle .brand { display: flex; align-items: center; flex-shrink: 0; gap: 10px; min-width: 0; font: 500 var(--text-brand)/1.6 var(--display); letter-spacing: -0.02em; }
.restyle .brand img { width: 26px; height: 26px; object-fit: contain; opacity: 0.95; }
.restyle .brand span { font: 400 var(--text-brand-detail)/1.6 var(--display); color: var(--ink-mute); }
.restyle .nav-links { display: flex; align-items: center; gap: 0; }
.restyle .nav-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 11px; border: 0; border-radius: 0; color: var(--ink-soft); font: 400 var(--text-nav)/1.6 var(--sans); letter-spacing: 0; transition: color 0.2s ease, background 0.2s ease; }
.restyle .nav-links a:is(:hover, [aria-current="page"]) { color: var(--ink); background: var(--glass-2); }
.restyle .nav-links .nav-cta { margin: 0 0 0 8px; padding-inline: 20px; background: #ededee; color: #16191d; font-weight: 500; }
.restyle .nav-links .nav-cta:hover { background: #fff; }
.restyle .nav-toggle { display: none; align-items: center; justify-content: center; min-width: 54px; min-height: 56px; padding: 8px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.restyle .nav-toggle svg { width: 22px; height: 22px; }
.restyle .eyebrow { display: inline-flex; align-items: center; gap: 9px; width: fit-content; padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; color: var(--ink-soft); font: 400 var(--text-eyebrow)/1.6 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.restyle .dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--accent-3); box-shadow: none; }
.restyle :is(header.hero, .page-hero) { padding: 168px 0 84px; }
.restyle :is(header.hero, .page-hero) h1 { margin: 24px 0 0; font: 400 var(--text-hero)/1.09 var(--display); letter-spacing: -0.035em; }
.restyle :is(.lede, .hero-lede) { max-width: 54ch; margin: 26px 0 0; color: var(--ink-soft); font: 400 var(--text-lead)/1.7 var(--sans); }
.restyle :is(.lede, .hero-lede) strong { color: var(--ink); font-weight: 500; }
.restyle .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.restyle .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 14px 22px; border: 1px solid var(--line); border-radius: var(--r); font: 500 var(--text-action)/1.6 var(--sans); letter-spacing: -0.015em; cursor: pointer; transition: background 0.25s ease, border-color 0.25s ease; }
.restyle .btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.restyle .btn-primary { background: #ededee; color: #16191d; border-color: transparent; }
.restyle .btn-primary:hover { background: #fff; transform: none; }
.restyle .btn-ghost { background: rgba(6,8,11,0.66); color: var(--ink); backdrop-filter: none; }
.restyle .btn-ghost:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.18); transform: none; }
.restyle .btn:is([disabled], [aria-disabled="true"]) { opacity: 0.55; cursor: not-allowed; transform: none; }
.restyle .glass, .restyle .glass:hover { border: 1px solid var(--line); border-radius: var(--r); background: transparent; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.restyle :is(.stat, .skill, .capability, .engagement, .ref, .testimonial):hover { border-color: rgba(225,233,239,0.32); transform: none; }
.restyle .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.restyle .stat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px 26px; text-align: center; transition: border-color 0.25s ease; }
.restyle .stat .big { font: 400 var(--text-stat)/1.05 var(--display); letter-spacing: -0.02em; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.restyle .stat .lbl { margin-top: var(--space-3); color: var(--ink-mute); font: 400 var(--text-label)/1.5 var(--sans); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.restyle :is(.section, .stats-section) { padding: var(--section-space) 0; }
.restyle :is(.sec-head, .section-head) { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-10); }
.restyle :is(.sec-title, .section-title) { margin: 0; font: 400 var(--text-section)/1.12 var(--display); letter-spacing: -0.025em; }
.restyle :is(.sec-sub, .section-copy) { margin: 0 0 0 auto; max-width: 34ch; color: var(--ink-mute); font: 400 var(--text-section-copy)/1.6 var(--sans); }
.restyle :is(.skills, .capability-grid, .engagement-grid) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.restyle :is(.skill, .capability, .engagement) { position: relative; min-width: 0; padding: 30px 28px 32px; transition: border-color 0.25s ease; }
.restyle :is(.skill, .capability, .engagement) h3 { margin: 0; font: 500 var(--text-card-title)/1.6 var(--display); letter-spacing: -0.02em; }
.restyle :is(.skill, .capability, .engagement) p { margin-top: 11px; color: var(--ink-soft); font: 400 var(--text-card-body)/1.58 var(--sans); }
.restyle :is(.skill-ic, .capability-icon) { width: 42px; height: 42px; display: grid; place-items: center start; margin-bottom: 20px; border: 0; background: none; color: var(--ink-soft); }
.restyle :is(.skill-ic, .capability-icon) svg { width: 20px; height: 20px; stroke: var(--ink-soft); }
.restyle :is(.meta-pill, .status-pill) { display: inline-flex; gap: 9px; align-items: center; width: fit-content; padding: 7px 15px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-soft); background: transparent; font: 400 var(--text-label)/1.6 var(--sans); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.restyle .engagement .meta-pill { margin-bottom: 20px; }
.restyle :is(.ref, .testimonial) { display: flex; flex-direction: column; gap: 0; align-items: stretch; padding: 30px 30px 28px; transition: border-color 0.25s ease; }
.restyle :is(.ref, .testimonial) .mark { height: 0.6em; color: var(--accent); font: 400 2.4rem/0.5 var(--display); opacity: 0.5; }
.restyle :is(.ref, .testimonial) .quote { margin: 14px 0 0; color: var(--ink-soft); font: 400 0.95rem/1.64 var(--sans); letter-spacing: inherit; }
.restyle :is(.ref, .testimonial) .by { margin-top: auto; padding-top: 20px; }
.restyle :is(.ref, .testimonial) cite { font-style: normal; }
.restyle :is(.ref, .testimonial) .name { display: block; font: 600 1rem/1.6 var(--display); letter-spacing: -0.015em; }
.restyle :is(.ref, .testimonial) .role { display: block; margin-top: 5px; color: var(--accent); font: 400 var(--text-label)/1.6 var(--sans); letter-spacing: 0.03em; text-transform: uppercase; }
.restyle :is(.contact, .contact-shell, .conversion-panel) { padding: var(--panel-padding); }
.restyle :is(.contact, .contact-intro, .conversion-panel) h2 { font: 400 var(--text-contact)/1.12 var(--display); letter-spacing: -0.025em; }
.restyle :is(.contact, .contact-intro, .conversion-panel) > p { margin-top: 18px; color: var(--ink-soft); font: 400 1.04rem/1.6 var(--sans); }
.restyle .contact > p { max-width: 52ch; margin-inline: auto; }
.restyle .conversion-panel h2 { margin-top: 20px; }
.restyle .conversion-panel p { margin-top: 18px; color: var(--ink-soft); font: 400 1.04rem/1.6 var(--sans); }
.restyle .contact-intro h2 { margin-top: 22px; }
.restyle .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.restyle .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.restyle :is(.field, .roadmap-field, .calculator-task, .calculator-control) label { color: var(--ink-mute); font: 400 var(--text-field-label)/1.6 var(--sans); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.restyle .field label :is(.opt, .optional) { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.restyle :is(.field, .roadmap-field, .calculator-task) :is(input, textarea) { width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); background: rgba(7,11,14,0.7); font: 400 var(--text-input)/1.5 var(--sans); resize: vertical; transition: border-color 0.2s ease, background 0.2s ease; }
.restyle :is(.field, .roadmap-field, .calculator-task) :is(input, textarea)::placeholder { color: #9098a3; }
.restyle :is(.field, .roadmap-field, .calculator-task) :is(input, textarea):focus { border-color: rgba(143,182,255,0.55); background: var(--glass-2); outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.restyle .show-errors .field :is(input, textarea):invalid { border-color: rgba(255,120,120,0.55); }
.restyle .form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: var(--space-1); padding-top: 0; }
.restyle .turnstile-field { display: flex; flex-direction: column; gap: var(--space-2); }
.restyle .turnstile-error { min-height: 1.35em; color: var(--danger); font-size: var(--text-help); }
.restyle .turnstile-error:empty { display: none; }
.restyle .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.restyle .toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px); max-width: calc(100% - 32px); padding: 12px 22px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); background: var(--surface-raised); font: 400 0.8rem/1.6 var(--sans); pointer-events: none; z-index: 9999; opacity: 0; transition: opacity 0.22s ease, transform 0.22s ease; }
.restyle .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.restyle .toast.ok { background: rgba(16,40,34,0.82); color: var(--accent-3); border-color: rgba(126,224,200,0.28); }
.restyle .toast.err { background: rgba(40,16,16,0.82); color: var(--danger); border-color: rgba(255,138,138,0.28); }
.restyle footer { padding: 44px 0 60px; margin-top: 60px; border-top: 1px solid var(--line-soft); }
.restyle :is(.foot, .footer-inner) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; color: var(--ink-mute); font: 400 0.85rem/1.6 var(--sans); }
.restyle :is(.foot-brand, .footer-brand) { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-family: var(--display); font-weight: 600; }
.restyle :is(.foot-brand, .footer-brand) img { width: 24px; height: 24px; object-fit: contain; }
.restyle :is(.foot-links, .footer-links) { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font: 400 0.78rem/1.6 var(--sans); }
.restyle :is(.foot-links, .footer-links) a:hover { color: var(--ink); }
@media (max-width: 1100px) { .restyle .brand span { display: none; } }
@media (max-width: 860px) {
  .restyle .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .restyle :is(.skills, .capability-grid, .engagement-grid) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  :root { --page-gutter: 16px; --panel-padding: 16px 12px; }
  .restyle :is(.site-nav, nav#nav) { padding-left: 16px; }
  .restyle .nav-toggle { display: inline-flex; }
  .restyle .nav-links { display: none; }
  .restyle .nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: calc(100% + 10px); inset-inline: 0; padding: 10px; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); background: #0b0e12; backdrop-filter: none; }
  .restyle .nav-links a { justify-content: flex-start; padding-inline: 16px; min-height: 46px; }
  .restyle .nav-links.open .nav-cta { margin: 6px 0 0; justify-content: center; }
  .restyle :is(header.hero, .page-hero) { padding: 140px 0 64px; }
  .restyle :is(.skill, .capability, .engagement, .ref, .testimonial) { padding: 12px; }
  .restyle :is(.sec-head, .section-head) { align-items: flex-start; }
}
@media (max-width: 620px) {
  :root { --text-eyebrow: 0.64rem; }
  .restyle .eyebrow { letter-spacing: 0.07em; }
  .restyle :is(.sec-head, .section-head) { flex-direction: column; }
  .restyle :is(.sec-sub, .section-copy) { margin-left: 0; }
}
@media (max-width: 560px) { .restyle .field-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .restyle .stats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { :root { --panel-padding: 28px 20px; } }

.restyle :is(.roadmap-field, .calculator-task) label { display: block; margin-bottom: 7px; }
