:root {
  --indigo: #141a2e;
  --indigo-2: #1c2740;
  --gold: #dfa23b;
  --ivory: #f3f0e4;
  --ivory-2: #f1eee3;
  --ink: #211d14;
  --muted: #625e53;
  --line: #e4dfd4;
  --radius-sm: 14px;
  --radius-md: 24px;
  --max: 1200px;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Shadow system: restrained, layered (contact + ambient), no heavy black or glow. */
  --shadow-subtle: 0 1px 2px rgba(33,29,20,.04), 0 6px 16px rgba(33,29,20,.05);
  --shadow-card: 0 2px 5px rgba(33,29,20,.05), 0 16px 34px rgba(33,29,20,.08);
  --shadow-lifted: 0 4px 10px rgba(33,29,20,.08), 0 24px 46px rgba(33,29,20,.13);
  --shadow-light-surface: 0 1px 0 rgba(255,255,255,.55) inset, 0 1px 2px rgba(33,29,20,.045), 0 16px 34px rgba(33,29,20,.065);
  --shadow-dark-surface: 0 1px 0 rgba(241,238,227,.07) inset, 0 4px 10px rgba(3,6,17,.5), 0 26px 52px rgba(3,6,17,.38);
  --shadow-dark-surface-lifted: 0 1px 0 rgba(241,238,227,.07) inset, 0 4px 10px rgba(3,6,17,.46), 0 30px 58px rgba(3,6,17,.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0 0 .65em; font-family: var(--display); font-weight: 600; line-height: 1.08; }
h1 { font-size: clamp(3.1rem, 5.8vw, 5.15rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2.35rem, 4.6vw, 4.15rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.45rem, 2.25vw, 1.95rem); }
p { margin: 0 0 1.2em; }

.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .8rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.shell { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--indigo); color: var(--ivory-2); border-bottom: 1px solid rgba(241,238,227,.1); box-shadow: none; transition: box-shadow .2s ease, border-color .2s ease; }
.site-header.light { background: var(--ivory); color: var(--ink); border-bottom: 1px solid rgba(228,223,212,.7); }
.site-header.is-scrolled { border-bottom-color: rgba(241,238,227,.22); box-shadow: 0 8px 24px rgba(5,8,18,.18); }
.site-header.light.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(33,29,20,.1); }
.nav { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: clamp(2rem, 5vw, 5rem); }
.logo { position: relative; display: inline-flex; align-items: center; gap: .65rem; flex: 0 0 auto; text-decoration: none; }
.logo img { width: clamp(248px, 21vw, 286px); height: auto; }
.site-header.light .logo-dark, .site-header:not(.light) .logo-light { display: block; }
.site-header.light .logo-light, .site-header:not(.light) .logo-dark { display: none; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(1rem, 2vw, 1.85rem); }
.nav-links a { text-decoration: none; font-weight: 600; white-space: nowrap; }

.nav-toggle { display: none; width: 50px; height: 50px; padding: 0; align-items: center; justify-content: center; background: transparent; border: 1px solid currentColor; border-radius: 50%; color: inherit; }
.hamburger { width: 22px; display: grid; gap: 5px; }
.hamburger span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transform-origin: center; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] .hamburger span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger span:last-child { transform: translateY(-7px) rotate(-45deg); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1.2rem; border: 2px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--gold); color: var(--ink); }
.button-secondary { border-color: rgba(241, 238, 227, .58); color: var(--ivory-2); }
.button-dark { background: var(--indigo); color: var(--ivory-2); }

.hero-stage { background: var(--indigo); padding: 1rem 0 0; }
.hero { position: relative; min-height: min(700px, calc(100vh - 125px)); display: grid; align-items: center; overflow: hidden; background: var(--indigo-2); color: var(--ivory-2); }
.hero-picture, .hero-picture img, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-picture img { object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(20,26,46,.98) 0%, rgba(20,26,46,.92) 38%, rgba(20,26,46,.38) 66%, rgba(20,26,46,.08) 100%); }
.hero-content { position: relative; z-index: 2; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero-lede { max-width: 620px; color: #e4e0d5; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.62; }
.eyebrow { margin-bottom: 1.15rem; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.section { padding: clamp(5.5rem, 10vw, 9rem) 0; }
.section-dark { background: var(--indigo); color: var(--ivory-2); }
.section-soft { background: #ece7da; }
.section-head { max-width: 790px; margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section-head h2 { max-width: 14ch; }
.section-intro, .section-head > div, .about-copy { max-width: 690px; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.22rem); line-height: 1.65; }
.section-dark .section-intro { color: #cfc9bc; }
#approach .section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
#approach .section-head h2 { max-width: 21ch; }
#approach .section-intro { max-width: 560px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.value-grid article { min-height: 290px; padding: clamp(1.8rem, 3vw, 2.7rem); background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-subtle); }
.value-grid article:before { content: ""; display: block; width: 42px; height: 3px; margin-bottom: 2.1rem; background: var(--gold); border-radius: 3px; }
.value-grid p { max-width: 32ch; color: var(--muted); }

.card-rail-wrap { position: relative; }
.card-rail { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.card-rail:focus-visible { outline-offset: 8px; }
.approach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.75rem; }
.principle-card, .credibility-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-radius: var(--radius-sm); }
.principle-card { min-height: 270px; padding: 2.35rem 2.35rem 2.6rem; gap: .85rem; justify-content: flex-end; background: var(--indigo-2); border: 1px solid rgba(241,238,227,.22); border-radius: var(--radius-md); box-shadow: var(--shadow-dark-surface); }
.principle-card h3 { max-width: 22ch; margin: 0; font-size: clamp(1.5rem, 1.7vw, 1.85rem); }
.principle-card p { max-width: 38ch; margin: 0; color: #cfc9bc; }
.principle-label { color: var(--gold); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Bottom-corner PSS symbol signature: quiet, subordinate to the heading, one-time reveal on viewport entry. */
.card-signature { align-self: flex-end; width: 26px; height: 26px; color: rgba(241,238,227,.5); opacity: 0; transform: translateY(6px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.card-signature.is-visible { opacity: 1; transform: translateY(0); }

.work-list { display: grid; gap: 2rem; }
.work-card { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 450px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.work-card:nth-child(even) .work-copy { order: 2; }
.work-card:nth-child(even) .work-visual { order: 1; }
.work-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); }
.work-copy > p { max-width: 48ch; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tag { display: inline-flex; padding: .35rem .7rem; border: 1px solid #b9b2a2; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.work-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 800; text-decoration-thickness: 2px; }
.work-visual { position: relative; display: grid; place-items: center; min-height: 320px; overflow: hidden; background: var(--indigo-2); padding: clamp(1.5rem, 4vw, 3rem); }
.work-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 8px; box-shadow: 0 22px 60px rgba(0,0,0,.35); }
.app-screen-collage { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(.55rem, 1.4vw, 1rem); padding: clamp(1.25rem, 3vw, 2.5rem); }
.app-screen-collage img { height: auto; object-fit: contain; border-radius: clamp(12px, 1.5vw, 20px); box-shadow: 0 18px 42px rgba(0,0,0,.3); }
.app-screen-collage img:nth-child(2) { transform: translateY(1rem); }
.careeros-home-visual { padding: 0; }
.careeros-home-visual > img { border-radius: 0; box-shadow: none; }
.work-title { display: flex; align-items: center; gap: .85rem; margin-bottom: .65em; }
.work-title img { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 11px; }
.work-title h3 { margin: 0; }
.abstract { position: relative; width: min(82%, 430px); aspect-ratio: 1; border: 1px solid rgba(241,238,227,.25); border-radius: 50%; }
.abstract:before, .abstract:after { content: ""; position: absolute; border-radius: 50%; }
.abstract:before { width: 38%; height: 38%; left: 31%; top: 31%; background: var(--gold); box-shadow: 0 0 80px rgba(223,162,59,.5); }
.abstract:after { inset: 12%; border: 1px solid rgba(241,238,227,.3); }
.career-lines { position: absolute; inset: 20%; display: grid; align-content: center; gap: 12px; }
.career-lines span { display: block; height: 8px; background: rgba(241,238,227,.7); border-radius: 6px; }
.career-lines span:nth-child(2) { width: 76%; }
.career-lines span:nth-child(3) { width: 52%; background: var(--gold); }

/* Work detail pages */
.detail-hero { padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem); background: var(--indigo); color: var(--ivory-2); }
.detail-back { display: inline-flex; margin-bottom: 2.5rem; color: var(--ivory-2); font-weight: 700; }
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.detail-hero h1 { max-width: 10ch; }
.detail-hero-copy > p:not(.eyebrow) { max-width: 60ch; color: rgba(241,238,227,.8); font-size: clamp(1.08rem, 1.6vw, 1.25rem); }
.detail-hero-visual { min-width: 0; }
.detail-hero-visual > img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-dark-surface); }
.detail-phone-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(.55rem, 1.4vw, 1rem); }
.detail-phone-row img { width: 100%; border-radius: clamp(12px, 1.5vw, 20px); box-shadow: var(--shadow-dark-surface); }
.detail-phone-row img:nth-child(2) { transform: translateY(1rem); }
.detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid rgba(241,238,227,.22); border-bottom: 1px solid rgba(241,238,227,.22); }
.detail-summary div { padding: 1.5rem clamp(1rem, 2.5vw, 2rem); }
.detail-summary div + div { border-left: 1px solid rgba(241,238,227,.22); }
.detail-summary dt { margin-bottom: .35rem; color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-summary dd { margin: 0; }
.detail-content { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.detail-block { padding: clamp(2rem, 4vw, 3.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-light-surface); }
.detail-block h2 { font-size: clamp(2rem, 3.3vw, 3rem); }
.detail-block p:last-child, .detail-block ul:last-child { margin-bottom: 0; }
.detail-feature { padding: clamp(2.5rem, 5vw, 5rem); background: var(--indigo-2); color: var(--ivory-2); border-radius: var(--radius-md); }
.detail-feature h2 { max-width: 16ch; }
.detail-feature p { color: rgba(241,238,227,.78); }
.detail-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.detail-feature-grid article { padding: 1.5rem; border: 1px solid rgba(241,238,227,.18); border-radius: var(--radius-sm); }
.detail-feature-grid h3 { font-size: 1.25rem; }
.detail-media { overflow: hidden; background: var(--indigo-2); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.detail-media img { width: 100%; height: auto; }
.detail-site-crop { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.detail-site-crop img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.detail-media-caption { padding: 1.2rem 1.5rem; color: var(--ivory-2); }
.detail-media-caption p { margin: 0; color: rgba(241,238,227,.7); }
.detail-screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.detail-screen { display: grid; gap: .75rem; }
.detail-screen img { width: 100%; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card); }
.detail-screen h3 { margin: 0; font-size: 1.1rem; text-align: center; }
.detail-next { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.detail-next h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.careeros-brand-card { display: grid; grid-template-columns: minmax(150px, .72fr) 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); background: #0e1428; border: 1px solid rgba(241,238,227,.16); border-radius: var(--radius-md); box-shadow: var(--shadow-dark-surface); }
.careeros-brand-card img { width: 100%; border-radius: var(--radius-sm); }
.careeros-brand-card span { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 600; line-height: 1; }
.careeros-brand-card p { margin: .7rem 0 0; color: rgba(241,238,227,.7); font-size: clamp(.95rem, 1.5vw, 1.15rem); }
.detail-original-app img { background: #fff; }

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.credibility-card { min-height: 340px; padding: clamp(1.6rem,3vw,2.25rem); background: rgba(255,255,255,.68); border: 1px solid #d7d0c2; border-radius: var(--radius-sm); box-shadow: var(--shadow-light-surface); }
.evidence-label { margin-bottom: 1.8rem; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.credibility-card h3 { margin-top: auto; max-width: 17ch; }
.credibility-card p { max-width: 35ch; margin-bottom: 0; color: var(--muted); }
.rail-controls { display: none; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; }
.rail-controls.visible { display: flex; }
.rail-controls button { width: 48px; height: 48px; padding: 0; background: transparent; border: 1px solid currentColor; border-radius: 50%; color: inherit; font: 600 1.3rem/1 var(--body); }
.rail-controls button:disabled { opacity: .36; cursor: default; }

.about-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: start; gap: clamp(3rem, 8vw, 8rem); }
.about-layout .section-head { margin-bottom: 0; }
.about-copy { padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-band { background: var(--gold); padding: clamp(4.5rem, 8vw, 7rem) 0; }
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: clamp(3rem, 8vw, 8rem); }
.contact-inner h2 { max-width: 13ch; }
.contact-inner p { max-width: 540px; }

.site-footer { background: var(--indigo); color: var(--ivory-2); padding: 4rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(241,238,227,.16); }
.footer-top .logo img { width: 250px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; }
.footer-links a { width: max-content; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; color: #cfc9bc; font-size: .9rem; }

.longform { padding: clamp(4rem, 8vw, 7rem) 0; }
.longform-wrap { max-width: 760px; }
.longform h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.longform h2 { margin-top: 2.2em; font-size: 2rem; }
.longform h3 { margin-top: 2em; font-size: 1.35rem; }
.longform li { margin-bottom: .55rem; }
.lede { color: var(--muted); font-size: 1.25rem; }
.notice { margin: 2rem 0; padding: 1.3rem 1.5rem; background: #ebe5d6; border-left: 4px solid var(--gold); }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.support-card { padding: 2rem; background: #fff; border: 1px solid var(--line); }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--indigo); color: var(--ivory-2); text-align: center; }
.error-page .logo { margin-bottom: 3rem; }
.error-page p { max-width: 550px; margin-inline: auto; }

/* Shared P Ignition symbol component. The P structure follows currentColor so it is ink on
   light fields and ivory on dark fields; the ignition point and five rays remain gold. */
.pss-symbol { display: block; overflow: visible; }
.pss-symbol-structure { fill: currentColor; }
.pss-symbol-spark { fill: var(--gold); }

.logo-mark { width: clamp(46px, 3.8vw, 52px); height: clamp(46px, 3.8vw, 52px); flex: 0 0 auto; color: currentColor; }
.logo-wordmark { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: .01em; white-space: nowrap; color: currentColor; }

/* Header animation: the bowl meets the stem, then the point and five tapered rays ignite once.
   site.js replays the same non-looping motion on hover and keyboard focus. */
.animated-logo .pss-symbol-bowl { transform-box: fill-box; transform-origin: left center; animation: pss-bowl-meet .72s cubic-bezier(.2,.8,.2,1) both; }
.animated-logo .pss-symbol-core { transform-box: fill-box; transform-origin: center; animation: pss-core-ignite .34s cubic-bezier(.2,.9,.25,1.25) .58s both; }
.animated-logo .pss-symbol-ray { transform-box: fill-box; transform-origin: left center; animation: pss-ray-ignite .42s cubic-bezier(.16,.85,.25,1) both; }
.animated-logo .pss-symbol-ray:nth-of-type(3) { animation-delay: .7s; }
.animated-logo .pss-symbol-ray:nth-of-type(4) { animation-delay: .76s; }
.animated-logo .pss-symbol-ray:nth-of-type(5) { animation-delay: .82s; }
.animated-logo .pss-symbol-ray:nth-of-type(6) { animation-delay: .88s; }
.animated-logo .pss-symbol-ray:nth-of-type(7) { animation-delay: .94s; }
@keyframes pss-bowl-meet { from { opacity: .25; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pss-core-ignite { from { opacity: 0; transform: scale(.15); } to { opacity: 1; transform: scale(1); } }
@keyframes pss-ray-ignite { from { opacity: 0; transform: scaleX(.08); } to { opacity: 1; transform: scaleX(1); } }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.section-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .error-page :focus-visible, .site-header:not(.light) :focus-visible { outline-color: var(--gold); }

@media (max-width: 1040px) {
  .nav { gap: 1.5rem; }
  .logo img { width: 240px; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .94rem; }
  .nav-links .button { padding-inline: 1rem; }
}

@media (max-width: 860px) {
  .shell { width: min(calc(100% - 2rem), var(--max)); }
  .nav { min-height: 88px; }
  html { scroll-padding-top: 88px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: static; display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 0 0 1rem; }
  .js .nav { flex-wrap: wrap; }
  .js .nav-links { position: absolute; top: 78px; left: 1rem; right: 1rem; display: none; padding: .8rem; background: var(--indigo-2); border: 1px solid rgba(241,238,227,.2); border-radius: var(--radius-sm); box-shadow: 0 18px 48px rgba(0,0,0,.25); }
  .js .light .nav-links { background: var(--ivory); border-color: var(--line); box-shadow: 0 18px 48px rgba(33,29,20,.12); }
  .js .nav-links.open { display: flex; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; padding: .65rem .8rem; }
  .nav-links .button { margin-top: .3rem; justify-content: center; }
  .hero-stage { padding-top: .65rem; }
  .hero { min-height: 690px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(20,26,46,.94) 0%, rgba(20,26,46,.76) 52%, rgba(20,26,46,.94) 100%); }
  .hero-content { padding-block: 5rem; }
  .hero h1 { max-width: 12ch; font-size: clamp(3rem, 10vw, 4.75rem); }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article { min-height: 0; }
  .reasons { display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; padding: 0 .15rem 1rem; }
  .credibility-card { flex: 0 0 calc(50% - .5rem); scroll-snap-align: start; }
  .approach-grid { gap: 1.15rem 1.25rem; }
  .principle-card { padding: 2rem 2rem 2.25rem; min-height: 240px; }
  .work-card { grid-template-columns: 1fr; }
  .work-card:nth-child(even) .work-copy { order: 1; }
  .work-card:nth-child(even) .work-visual { order: 2; }
  .app-screen-collage { min-height: 420px; }
  .about-layout, .contact-inner, .footer-top { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; border-top: 0; }
  .support-grid { grid-template-columns: 1fr; }
  .detail-hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-hero-visual { max-width: 720px; }
  .detail-feature-grid { grid-template-columns: 1fr; }
  .careeros-brand-card { grid-template-columns: minmax(120px, 200px) 1fr; }
}

@media (max-width: 640px) {
  /* Approach cards switch from a 2x2 grid to the site's manual card-rail pattern:
     one primary card with a controlled glimpse of the next, touch scroll, no auto-rotate. */
  .approach-grid { display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; padding: 0 .15rem 1rem; }
  .principle-card { flex: 0 0 min(84vw, 360px); scroll-snap-align: start; padding: 2.1rem 2.1rem 2.4rem; min-height: 260px; }
  .detail-summary { grid-template-columns: 1fr; }
  .detail-summary div + div { border-left: 0; border-top: 1px solid rgba(241,238,227,.22); }
  .detail-screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-next { align-items: flex-start; flex-direction: column; }
  .careeros-brand-card { grid-template-columns: 1fr; text-align: center; }
  .careeros-brand-card img { max-width: 220px; margin-inline: auto; }
}

@media (max-width: 480px) {
  .shell { width: min(calc(100% - 1.25rem), var(--max)); }
  .logo img { width: 214px; }
  .hero { min-height: 650px; }
  .hero-content { padding-block: 3.8rem; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 3.65rem); }
  .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section { padding-block: 5rem; }
  .principle-card, .credibility-card { flex-basis: min(86vw, 320px); }
  .work-copy { padding: 2rem 1.3rem; }
  .footer-bottom { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr; }
  .longform { padding-top: 3rem; }
  .detail-screen-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .nav { gap: .75rem; }
  .logo { gap: .35rem; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-wordmark { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card-signature { opacity: 1; transform: none; }
}
