/* OSG homepage and portfolio. Legacy/legal pages retain style.css. */
:root {
  color-scheme: dark;
  --ink: #0f111b;
  --surface: #171b28;
  --surface-light: #202534;
  --text: #f5f5f7;
  --muted: #b7bdcc;
  --gold: #fdc449;
  --line: #353b4c;
  --radius: 16px;
  --header-space: 100px;
  font-family: Raleway, Arial, sans-serif;
  scroll-padding-top: var(--header-space);
  scroll-behavior: auto;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--text); font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
video { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--gold); }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
h1 { font-size: clamp(42px, 5.9vw, 78px); margin-bottom: 24px; }
h1 span { color: var(--gold); }
h2 { font-size: clamp(32px, 3.5vw, 46px); margin-bottom: 24px; }
h3 { font-size: 29px; margin-bottom: 16px; }
h4 { font-size: 25px; margin-bottom: 18px; }
p { margin-bottom: 20px; color: var(--muted); }
.shell { width: min(100% - 64px, 1120px); margin-inline: auto; }
.section { padding-top: 88px; padding-bottom: 88px; }
.lead { font-size: 20px; line-height: 1.65; }
.small { font-size: 14px; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .13em; margin-bottom: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; left: 20px; top: 10px; transform: translateY(-200%); padding: 12px 18px; z-index: 100; color: var(--ink); background: var(--gold); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(15,17,27,.97); border-bottom: 1px solid rgba(185,195,215,.13); }
.header-inner { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { width: 146px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.desktop-nav a:last-child { border: 1px solid var(--line); padding-inline: 20px; border-radius: 50px; }
.desktop-nav a[aria-current] { color: var(--gold); }
.mobile-menu { display: none; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 24px; border: 1px solid #666879; border-radius: 50px; font-size: 14px; font-weight: 600; text-decoration: none; background: transparent; }
.button.primary { color: #18171b; border-color: var(--gold); background: var(--gold); }
.button:hover { border-color: var(--gold); }
.button.primary:hover { background: #ffda7e; color: #18171b; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; color: var(--gold); font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-section { position: relative; background: var(--ink) url('/img/hero-poster.webp') center / cover; isolation: isolate; }
.hero-video, .hero-shade { position: absolute; width: 100%; height: 100%; inset: 0; z-index: -1; object-fit: cover; }
.hero-shade { background: linear-gradient(90deg,rgba(15,17,27,.94),rgba(15,17,27,.46)),linear-gradient(0deg,var(--ink),transparent 35%); }
.hero-content { padding-top: 96px; padding-bottom: 40px; }
.hero-content h1 { max-width: 930px; }
.hero-intro { max-width: 620px; font-size: 20px; color: #d0d2dc; }
.hero-bottom { margin-top: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.jump-nav { display: flex; gap: 12px; }
.jump-item { position: relative; }
.jump-link { display: flex; align-items: center; gap: 24px; min-height: 46px; padding: 10px 18px; border: 1px solid #666879; border-radius: 30px; text-decoration: none; font-size: 14px; }
.jump-link span { color: var(--gold); }
.jump-tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; width: 240px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .jump-item:hover .jump-tip, .jump-item:focus-within .jump-tip { display: block; }
  .project-card:hover .project-image { border-color: #73798b; }
}
.motion-toggle { min-height: 44px; padding: 10px 0 10px 16px; background: transparent; color: #d0d2dc; border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 380px; margin-bottom: 4px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 28px; }
.project-card { min-width: 0; }
.project-image { display: block; overflow: hidden; border: 1px solid #444c5e; border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.project-image img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.project-image[href="/portfolio/ats-work/"],
.project-image[href="/portfolio/autov/"] { aspect-ratio: 3/2; display: grid; place-items: center; background: #101827; }
.project-image[href="/portfolio/ats-work/"] img,
.project-image[href="/portfolio/autov/"] img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.project-copy { padding-top: 24px; }
.project-copy .eyebrow { margin-bottom: 12px; }
.project-copy h3 { font-size: 27px; }
.project-copy h3 a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-height: 44px; text-decoration: none; }
.project-copy h3 span { color: var(--gold); font-size: 22px; }
.project-copy p:not(.eyebrow) { max-width: 56ch; }
.project-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.media-label { color: var(--muted); font-size: 12px; }
.featured-project { display: grid; grid-template-columns: 1.25fr 1fr; gap: 42px; align-items: center; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.featured-project .project-copy { padding-top: 0; }
.featured-project h3 { font-size: 36px; }
.section-end { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 48px; }
.section-end p { margin: 0; max-width: 55ch; }
.solutions { background: #141824; border-block: 1px solid var(--line); }
.solution-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; border-top: 1px solid var(--line); padding-top: 44px; margin-top: 44px; }
.solution-row h3 { font-size: 34px; margin-top: 16px; }
.section-number { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.service-list { padding: 0; list-style: none; color: #d1d6e2; margin: 24px 0; }
.service-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.service-list li::before { content: ''; display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; background: var(--gold); margin-right: 14px; -webkit-mask: url("/img/arrow-up-right.svg") center / contain no-repeat; mask: url("/img/arrow-up-right.svg") center / contain no-repeat; }
.about-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; }
.process-list { padding: 0; list-style: none; counter-reset: step; }
.process-list li { position: relative; padding: 20px 0 20px 42px; border-top: 1px solid var(--line); counter-increment: step; }
.process-list li::before { content: '0' counter(step); position: absolute; top: 22px; left: 0; font-size: 12px; color: var(--gold); }
.process-list strong { display: block; font-weight: 600; }
.process-list span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.contact-section { background: #1b1c28; border-block: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 96px; }
.contact-layout h2 { max-width: 540px; }
.contact-email { display: inline-block; margin-top: 24px; padding-block: 8px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.contact-details { border-left: 1px solid #515362; padding-left: 40px; font-size: 14px; align-self: center; }
.contact-details strong { color: var(--text); font-weight: 600; }
.contact-qr { display: block; width: 140px; max-width: 100%; margin-top: 12px; padding: 8px; background: #fff; border-radius: 8px; }
.contact-qr img { width: 100%; height: auto; }
.site-footer { padding-top: 56px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 40px; }
.footer-top p { font-size: 13px; margin-top: 18px; }
.footer-top nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 16px 24px; max-width: 400px; }
.footer-top nav a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 24px; flex-shrink: 0; }
.footer-bottom a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); }
.page-heading { padding: 64px 0 48px; }
.page-heading .lead { max-width: 760px; }
.portfolio-section { padding-bottom: 88px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; }
.project-heading h1 { font-size: clamp(38px,5vw,66px); overflow-wrap: anywhere; }
.project-headline { font-size: 26px; color: var(--text); margin-bottom: 12px; }
.project-facts { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 30px; padding-top: 28px; margin: 36px 0 0; border-top: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.project-facts dd { margin: 0; font-size: 14px; }
.project-preview { margin: 0; }
.project-preview > a { display: block; border-radius: var(--radius); border: 1px solid #444c5e; overflow: hidden; }
.project-preview img { width: 100%; }
.project-preview figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding-top: 8px; color: var(--muted); }
.project-preview figcaption a { padding: 10px 0; }
.case-story { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; padding-bottom: 40px; }
.case-story .lead { color: #dce0e9; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; padding-bottom: 88px; }
.feature { border-top: 1px solid var(--line); padding-top: 24px; }
.feature h3 { font-size: 22px; margin-top: 20px; }
.feature p { font-size: 15px; }
.media-section { border-top: 1px solid var(--line); }
.media-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 32px; align-items: start; }
.media-layout > * { min-width: 0; }
.player-screen { width: 100%; position: relative; min-height: 200px; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #080a10; }
.video-poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.video-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,.85),transparent 70%); }
.play-circle { z-index: 1; border-radius: 50%; background: var(--gold); color: var(--ink); width: 60px; height: 60px; display: grid; place-items: center; padding-left: 3px; }
.poster-title { position: absolute; bottom: 18px; left: 20px; right: 20px; z-index: 1; font-size: 14px; color: #fff; }
[data-player-slot]:not(:empty) { position: absolute; inset: 0; }
.player-screen iframe { width: 100%; height: 100%; min-height: 200px; border: 0; display: block; }
.player-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 10px; }
.player-toolbar p { font-size: 12px; margin: 0; }
.text-button { border: 0; background: none; color: var(--gold); min-height: 44px; padding: 8px 0; font-size: 12px; white-space: nowrap; text-decoration: underline; }
.media-fallback { font-size: 12px; margin-top: 16px; }
.media-fallback a { color: #d9dce6; }
.video-list { margin: 0; padding: 0; list-style: none; }
.video-list li { border-bottom: 1px solid var(--line); }
.video-list li:first-child { border-top: 1px solid var(--line); }
.video-choice { display: grid; grid-template-columns: 24px 1fr 14px; gap: 12px; align-items: start; padding: 20px 4px; text-decoration: none; }
.video-choice[aria-current="true"] { color: var(--gold); background: #262634; }
.video-choice strong { font-size: 15px; font-weight: 600; display: block; }
.video-index { font-size: 12px; color: var(--gold); padding-top: 2px; }
.video-meta { display: block; font-size: 11px; color: #c5cad8; margin-top: 5px; }
.video-summary { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.article-link { display: flex; align-items: center; justify-content: space-between; gap: 36px; border-top: 1px solid var(--line); padding: 36px 0 64px; }
.article-link h2 { font-size: 28px; }
.article-link p { max-width: 650px; }
.article-link .button { flex-shrink: 0; }
@media (max-width: 900px) {
  .desktop-nav { gap: 20px; }
  .desktop-nav a { font-size: 12px; }
  .section-heading { gap: 24px; }
  .section-heading > p { max-width: 300px; }
  .featured-project, .about-section, .solution-row, .case-story { gap: 32px; }
  .contact-layout { gap: 40px; }
  .hero-bottom { align-items: flex-start; }
  .jump-nav { flex-wrap: wrap; }
  .media-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  :root { --header-space: 84px; }
  .shell { width: calc(100% - 40px); }
  .section { padding-top: 56px; padding-bottom: 56px; }
  h1 { font-size: clamp(38px, 9vw, 55px); }
  .lead, .hero-intro { font-size: 18px; }
  .header-inner { min-height: 72px; }
  .brand img { width: 124px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { min-height: 44px; display: flex; align-items: center; gap: 12px; list-style: none; font-size: 14px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { color: var(--gold); }
  .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 12px 20px 24px; box-shadow: 0 20px 30px #0005; border-bottom: 1px solid var(--line); }
  .mobile-menu nav a { display: block; min-height: 50px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
  .hero-content { padding-top: 64px; padding-bottom: 24px; }
  .hero-content h1 br { display: none; }
  .hero-bottom { display: block; margin-top: 44px; }
  .jump-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .jump-link { justify-content: center; gap: 6px; font-size: 12px; padding: 10px 8px; min-height: 50px; text-align: center; }
  .motion-toggle { padding-left: 0; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { max-width: none; margin-top: 20px; }
  .section-heading > .text-link { margin-top: 12px; }
  .project-grid, .featured-project, .solution-row, .about-section, .case-story, .contact-layout, .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .featured-project { gap: 24px; padding-bottom: 32px; margin-bottom: 32px; }
  .featured-project h3 { font-size: 28px; }
  .project-copy h3 { font-size: 26px; }
  .section-end { display: block; margin-top: 32px; }
  .section-end .button { margin-top: 20px; }
  .solution-row { gap: 8px; padding-top: 28px; margin-top: 28px; }
  .solution-row h3 { font-size: 30px; }
  .contact-details { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-bottom { align-items: flex-start; }
  .page-heading { padding: 40px 0 32px; }
  .project-headline { font-size: 22px; }
  .project-facts { grid-template-columns: 1fr; gap: 16px; }
  .breadcrumb { margin-bottom: 28px; }
  .project-preview figcaption { gap: 12px; }
  .feature-grid { padding-bottom: 56px; }
  .case-story { padding-bottom: 28px; }
  .article-link { display: block; padding-bottom: 48px; }
  .portfolio-section { padding-bottom: 56px; }
}
@media (max-width: 360px) {
  .jump-nav { grid-template-columns: 1fr; }
  .jump-link { justify-content: space-between; padding-inline: 18px; }
  .actions { align-items: stretch; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Vector UI icons stay consistent across desktop and mobile fonts. */
.ui-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.125em; }
