/* Layout overrides for the generated inline-styled portfolio. */
.site-header nav { scrollbar-width: thin !important; scrollbar-color: #4a453f transparent; }
.site-header nav::-webkit-scrollbar { height: 3px; }
.site-header nav::-webkit-scrollbar-thumb { background: #4a453f; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible, input:focus-visible {
  outline: 2px solid #ff6a2b; outline-offset: 4px;
}
section { scroll-margin-top: 88px !important; }
.diagram-scroll { overscroll-behavior-x: contain; }
@media (max-width: 900px) {
  .site-header > div:first-child {
    display: grid !important; grid-template-columns: 1fr auto; gap: 0 20px !important;
    padding-top: 16px !important;
  }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; gap: 24px !important; }
  .site-header nav a { padding: 16px 0 !important; min-height: 16px; }
  .site-header > div:first-child > div { min-height: 28px; align-items: center; }
  section { scroll-margin-top: 112px !important; }
  .policy-scenarios { overflow: visible !important; }
  .policy-scenarios > div { min-width: 0 !important; }
  .policy-heading { display: none !important; }
  .policy-scenario { grid-template-columns: 1fr 1fr !important; }
  .policy-scenario > div { min-width: 0; overflow-wrap: anywhere; }
  .policy-scenario > div:first-child { grid-column: 1 / -1; }
  .policy-scenario > div:last-child { grid-column: 1 / -1; border-top: 1px solid #2a2724; }
  .policy-scenario > div::before {
    content: attr(data-label); display: block; margin-bottom: 8px;
    font: 10px 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #9a948c;
  }
  .policy-scenario > div:nth-child(2), .policy-scenario > div:last-child { border-left: 0 !important; }
  .load-run { grid-template-columns: 56px minmax(0, 1fr) auto !important; gap: 12px !important; }
  .load-run > span:last-child { grid-column: 2 / -1; }
}
@media (max-width: 600px) {
  section { padding-left: 20px !important; padding-right: 20px !important; }
  section:not(#ingest) { padding-top: 88px !important; }
  section > div:first-child:not(.policy-scenarios) { gap: 10px !important; }
  section:not(#ingest) > div:first-child > span:last-child { max-width: 52%; line-height: 1.6; font-size: 10px; letter-spacing: .04em; }
  section h2 { font-size: clamp(44px, 11vw, 64px) !important; line-height: .98 !important; overflow-wrap: anywhere; }
  section > p { font-size: 22px !important; line-height: 1.4 !important; }
  section [style*="text-align: justify"] { text-align: left !important; hyphens: none !important; -webkit-hyphens: none !important; }
  section [style*="grid-template-columns: repeat(auto-fit"] { gap: 32px !important; }
  section [style*="gap: 1px"] { gap: 1px !important; }
  section > div[data-reveal][style*="margin-top: 64px"],
  section > div[data-reveal][style*="margin-top: 72px"],
  section > div[data-reveal][style*="margin-top: 80px"],
  section > div[data-reveal][style*="margin-top: 88px"] { margin-top: 40px !important; }
  #ingest { padding-top: 36px !important; padding-bottom: 0 !important; }
  #ingest > div:first-child { display: grid !important; grid-template-columns: 10px minmax(0, 1fr) 8px; margin-bottom: 40px !important; font-size: 10px !important; line-height: 1.7; align-items: start !important; }
  .token-id { display: none; }
  .hero-name { font-size: clamp(58px, 18vw, 104px) !important; line-height: 1 !important; white-space: nowrap; }
  #ingest > p { margin-top: 28px !important; font-size: clamp(25px, 6.5vw, 34px) !important; line-height: 1.3 !important; }
  #ingest > div:last-child { margin-top: 36px !important; gap: 32px !important; }
  #ingest > div:last-child > div { min-width: 0; }
  .chunk-row { grid-template-columns: 40px 46px minmax(0, 1fr) 78px !important; padding: 11px 12px !important; gap: 6px !important; font-size: 10px; }
  .chunk-row > span { min-width: 0; }
  .document-row { grid-template-columns: 36px minmax(0, 1fr) !important; gap: 8px !important; padding: 16px 14px !important; }
  .document-row > div:last-child { grid-column: 2; display: flex; align-items: center; gap: 12px; text-align: left !important; }
  .document-row > div:last-child > div:last-child { margin-top: 0 !important; }
  .diff-summary { border-left: 0 !important; border-top: 1px solid #2a2724; padding: 24px 16px !important; }
  .diff-summary > div:last-child { min-height: 120px !important; }
  #deltavec button { min-height: 44px; }
  .device-diagram { padding-top: 48px !important; gap: 28px !important; }
  .device-diagram > div:nth-child(2) { top: 16px !important; left: 20px; right: auto !important; font-size: 10px !important; }
  .diagram-scroll::before { content: 'Swipe to explore all steps →'; display: block; padding: 12px 14px; color: #9a948c; font: 10px 'Martian Mono', monospace; }
  .routing-lanes { min-width: 820px !important; }
  .studio-timeline { min-width: 910px !important; }
  #experience > div > div { grid-template-columns: 18px minmax(0, 1fr) !important; column-gap: 12px !important; }
  #experience [style*="padding-bottom: 64px"] { padding-bottom: 40px !important; }
  #subscribe > div:last-child { padding: 24px 18px !important; }
  .subscribe-form > div { flex-basis: 100% !important; padding: 0 12px !important; }
  .subscribe-form input { font-size: 16px !important; width: 100%; }
  .subscribe-form button { width: 100%; min-height: 48px; }
  footer { margin-top: 80px !important; padding-bottom: 32px !important; line-height: 1.6; }
  footer > div { gap: 8px 20px !important; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
