:root {
  --ink: #0a0c0b;
  --ink-soft: #131715;
  --paper: #e9e8df;
  --muted: #989d92;
  --line: rgba(233, 232, 223, .18);
  --acid: #c4ec56;
  --rust: #ed6b45;
  --max: 1240px;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }
.skip-link { position: absolute; top: -50px; left: 20px; z-index: 20; background: var(--acid); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip-link:focus { top: 10px; }

.site-header { position: absolute; z-index: 5; inset: 0 0 auto; border-bottom: 1px solid var(--line); }
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: auto; display: inline-flex; align-items: center; gap: 0.75rem; }
.nav { display: flex; gap: 34px; margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.nav a, .header-cta, .text-link, .button, .email-link, .footer-inner a { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.nav a:hover, .footer-inner a:hover { color: var(--acid); }
.header-cta { border: 1px solid var(--line); border-radius: 100px; padding: 10px 16px; font-size: 12px; font-weight: 700; }
.header-cta span, .text-link span, .button span, .email-link span { color: var(--acid); margin-left: 8px; }
.header-cta:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.header-cta:hover span { color: var(--ink); }

.hero { min-height: 790px; position: relative; overflow: hidden; display: flex; align-items: center; background: radial-gradient(circle at 78% 43%, rgba(196,236,86,.08), transparent 24%), var(--ink); }
.hero-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(233,232,223,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(233,232,223,.06) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, #000 0%, transparent 75%); }
.hero-grid::after { content: ""; position: absolute; width: 48vw; height: 48vw; max-width: 690px; max-height: 690px; border: 1px solid rgba(196,236,86,.38); border-radius: 50%; right: -10vw; top: 20%; box-shadow: 0 0 0 45px rgba(196,236,86,.025), 0 0 0 90px rgba(196,236,86,.018); }
.hero-content { position: relative; z-index: 1; padding-top: 100px; }
.eyebrow, .section-index, .section-kicker, .case-meta, .placeholder-note { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.eyebrow { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px var(--acid); }
h1, h2, p { margin-top: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.07em; line-height: .94; }
h1 { max-width: 820px; margin: 35px 0 65px; font-size: clamp(72px, 11.2vw, 166px); }
h1 em, h2 em { color: var(--acid); font-style: normal; }
.hero-bottom { max-width: 870px; display: grid; grid-template-columns: 1.5fr auto 1fr; align-items: end; gap: 45px; }
.hero-intro { max-width: 310px; margin: 0; color: var(--paper); font-size: 18px; line-height: 1.45; }
.hero-note { color: var(--muted); margin: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; line-height: 1.7; }
.circle-link { width: 72px; height: 72px; border: 1px solid var(--acid); border-radius: 50%; display: grid; place-items: center; color: var(--acid); font-size: 23px; }
.circle-link:hover { background: var(--acid); color: var(--ink); transform: translateY(4px); }
.hero-ticker { position: absolute; bottom: 0; left: 0; width: max-content; padding: 14px 0; display: flex; align-items: center; gap: 30px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 100%; font-family: var(--mono); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; white-space: nowrap; }
.hero-ticker i { color: var(--rust); font-style: normal; font-size: 17px; }

.section-pad { padding: 145px 0; }
.about { background: var(--paper); color: var(--ink); }
.about-layout { display: grid; grid-template-columns: 1fr 2.25fr 1fr; gap: 40px; }
.section-index { color: var(--muted); margin: 4px 0; }
.about .section-index, .contact .section-index { color: rgba(10,12,11,.55); }
.about-copy { max-width: 680px; }
h2 { font-size: clamp(52px, 7vw, 94px); margin: 0 0 35px; }
.about h2 span { color: var(--rust); }
.lead { font-size: 23px; line-height: 1.35; max-width: 650px; margin-bottom: 28px; }
.about-copy > p:not(.lead) { max-width: 550px; color: #4e554d; }
.text-link { display: inline-block; margin-top: 25px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; font-size: 13px; font-weight: 800; }
.text-link:hover { color: var(--rust); border-color: var(--rust); }
.about-stat { align-self: end; display: flex; flex-direction: column; border-top: 1px solid rgba(10,12,11,.25); padding-top: 12px; }
.about-stat strong { font-size: clamp(66px, 8vw, 110px); line-height: .9; letter-spacing: -.1em; font-weight: 500; }
.about-stat strong span { color: var(--rust); }
.about-stat > span { margin-top: 12px; font-family: var(--mono); color: #667066; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.about-path-line {
  margin: 14px 0 0;
  max-width: 200px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7a8278;
}


.case-study { background: var(--ink-soft); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 45px; }
.section-kicker { color: var(--acid); margin: 0; }
.case-card { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 620px; background: #1e2520; }
.case-visual { position: relative; overflow: hidden; min-height: 600px; background: linear-gradient(135deg, #424b37 0%, #17201c 48%, #080a09 100%); }
.case-visual::before { content: ""; position: absolute; inset: 10%; border: 1px solid rgba(233,232,223,.25); transform: rotate(-7deg) scale(1.1); }
.case-visual::after { content: ""; position: absolute; width: 65%; aspect-ratio: 1; border-radius: 50%; right: -10%; top: 22%; border: 1px solid rgba(196,236,86,.45); box-shadow: 0 0 0 35px rgba(196,236,86,.04), 0 0 0 70px rgba(196,236,86,.03); }
.visual-grain { position: absolute; inset: 0; opacity: .35; background-image: repeating-linear-gradient(118deg, transparent 0 3px, rgba(233,232,223,.04) 4px 5px); mix-blend-mode: screen; }
.visual-type { position: absolute; z-index: 1; left: 9%; top: 25%; color: var(--acid); font-size: clamp(110px, 17vw, 250px); font-weight: 800; letter-spacing: -.15em; line-height: .8; }
.visual-caption { position: absolute; z-index: 2; inset: auto 7% 7%; display: flex; justify-content: space-between; color: rgba(233,232,223,.7); font-family: var(--mono); text-transform: uppercase; letter-spacing: .09em; font-size: 9px; }
.play-placeholder { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 112px; height: 112px; border: 1px solid var(--acid); border-radius: 50%; display: grid; place-items: center; color: var(--acid); text-align: center; font-family: var(--mono); text-transform: uppercase; font-size: 9px; letter-spacing: .08em; }
.play-placeholder b { position: absolute; font-size: 12px; margin-top: 42px; font-weight: 400; }
.case-info { padding: 58px 11% 45px; display: flex; flex-direction: column; align-items: flex-start; }
.case-info .eyebrow { color: var(--acid); }
.case-info h2 { margin: 29px 0 28px; font-size: clamp(53px, 5.6vw, 82px); }
.case-summary { color: #c3c9bd; max-width: 430px; font-size: 15px; line-height: 1.6; }
.case-meta { display: grid; grid-template-columns: 75px 1fr; gap: 9px 18px; width: 100%; margin: 18px 0 30px; color: #7e897d; font-size: 9px; }
.case-meta strong { color: var(--paper); font-family: var(--sans); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.case-meta a { border-bottom: 1px solid var(--line); }
.button { display: inline-flex; align-items: center; border: 1px solid var(--acid); border-radius: 100px; padding: 13px 18px; font-size: 12px; font-weight: 800; }
.button-light { background: var(--acid); color: var(--ink); }
.button-light span { color: var(--ink); }
.button:hover { transform: translateY(-3px); }
.button-light:hover { background: transparent; color: var(--acid); }
.button-light:hover span { color: var(--acid); }
.placeholder-note { color: #788177; margin: 25px 0 0; font-size: 9px; }
.case-footnote { color: var(--acid); font-family: var(--mono); font-size: 10px; letter-spacing: .03em; margin: 20px 0 0; }
.case-footnote span { color: var(--muted); }

.selected-work { background: var(--paper); color: var(--ink); }
.selected-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.selected-work .section-index { color: rgba(10,12,11,.55); }
.selected-work h2 { margin-top: 42px; }
.selected-work h2 em { color: var(--rust); }
.reel-copy { padding-top: 58px; max-width: 430px; }
.reel-copy > p { font-size: 21px; line-height: 1.4; margin-bottom: 28px; }
.button-outline { border-color: var(--ink); }
.button-outline span { color: var(--rust); }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.discipline-list { border-top: 1px solid rgba(10,12,11,.25); list-style: none; padding: 0; margin: 74px 0 0; }
.discipline-list li { border-bottom: 1px solid rgba(10,12,11,.25); padding: 12px 0; font-size: 15px; display: flex; gap: 28px; }
.discipline-list span { color: var(--rust); font-family: var(--mono); font-size: 10px; }

.contact { background: var(--rust); color: var(--ink); }
.contact-inner { display: grid; grid-template-columns: 1fr 2.25fr 1fr; gap: 40px; }
.contact-main .eyebrow { color: rgba(10,12,11,.65); }
.contact-main h2 { margin-top: 34px; }
.contact-main h2 em { color: var(--paper); }
.email-link { display: inline-block; border-bottom: 1px solid var(--ink); font-size: clamp(20px, 3vw, 34px); letter-spacing: -.04em; padding-bottom: 7px; }
.email-link span { color: var(--paper); }
.email-link:hover { color: var(--paper); border-color: var(--paper); }
.contact-aside { align-self: end; font-family: var(--mono); font-size: 10px; line-height: 1.6; text-transform: uppercase; letter-spacing: .09em; }
.site-footer { background: var(--ink); color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner a { color: var(--paper); }

@media (max-width: 800px) {
  .container { width: min(calc(100% - 40px), var(--max)); }
  .site-header { position: relative; background: var(--ink); }
  .header-inner { height: 74px; }
  .nav { display: none; }
  .header-cta { padding: 8px 12px; font-size: 10px; }
  .hero { min-height: 690px; }
  .hero-content { padding-top: 55px; }
  h1 { margin: 30px 0 50px; font-size: clamp(65px, 19vw, 130px); }
  .hero-bottom { grid-template-columns: 1fr auto; gap: 24px; }
  .hero-note { grid-column: 1 / -1; }
  .section-pad { padding: 90px 0; }
  .about-layout, .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .about-copy { grid-row: 2; }
  .about-stat { grid-row: 3; max-width: 180px; }
  .section-heading { display: block; }
  .section-kicker { margin-top: 22px; }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 420px; }
  .case-info { padding: 45px 8% 40px; }
  .selected-layout { grid-template-columns: 1fr; gap: 15px; }
  .selected-work h2 { margin-top: 30px; }
  .reel-copy { padding-top: 10px; }
  .contact-main h2 { font-size: clamp(52px, 14vw, 90px); }
  .contact-aside { margin-top: 30px; }
}
@media (max-width: 440px) {
  .brand { width: 140px; }
  .header-cta { font-size: 0; }
  .header-cta span { font-size: 14px; margin: 0; }
  .hero-intro { font-size: 16px; }
  .circle-link { width: 58px; height: 58px; }
  .visual-caption { display: block; line-height: 2; }
  .case-footnote { line-height: 1.6; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 22px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 44px;
  height: auto;
  display: block;
}
.brand-word {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}



/* UltraScalpGPT01 case study — detail, architecture, gallery */
.stance-badge {
  margin: 18px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(237, 107, 69, .45);
  border-radius: 100px;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.case-detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.case-detail-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.04em;
  font-weight: 600;
  line-height: 1.2;
}
.case-detail-copy h3 + p { margin: 0 0 28px; }
.case-detail-copy p {
  color: #c3c9bd;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
}
.arch-figure {
  margin: 0;
  background: #0a0c0b;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.arch-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.arch-figure figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.gallery-slot { margin: 0; }
.gallery-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #121714;
}
.gallery-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(196,236,86,.06), transparent 42%),
    repeating-linear-gradient(118deg, transparent 0 3px, rgba(233,232,223,.03) 4px 5px),
    #151a16;
  color: var(--acid);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
}
.gallery-ph b {
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
}
.gallery-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-frame img.is-missing {
  display: none;
}
.gallery-slot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .case-detail { grid-template-columns: 1fr; gap: 28px; }
  .case-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .case-gallery { grid-template-columns: 1fr; }
}


.case-visual-photo { padding: 0; min-height: 0; background: #0a0c0b; }
.case-visual-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.case-visual-photo .visual-caption { inset: auto 0 0; padding: 18px 7%; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.case-detail-illustrations { grid-template-columns: 1fr; }

.case-brand {
  margin: 8px 0 36px;
}
.case-brand .section-index { margin-bottom: 14px; }
.case-brand-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 132px);
  letter-spacing: -.07em;
  line-height: .9;
  color: var(--paper);
}
.case-brand-tag {
  margin: 18px 0 0;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.05;
  color: var(--paper);
}
.case-brand-tag em { font-style: normal; color: var(--acid); }
.case-brand-imagellan { margin-top: 96px; }
.case-brand + .case-card { margin-top: 0; }
.case-info h2.case-support {
  font-size: clamp(36px, 3.6vw, 52px);
  margin: 22px 0 22px;
  letter-spacing: -.05em;
}

.feature-grid {
  list-style: none;
  margin: 48px 0 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  margin: 0;
  background: #121714;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(196, 236, 86, .16);
}
.feature-index {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acid);
}
.feature-card h3 {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--paper);
}
.feature-card p:last-child {
  margin: 8px 0 0;
  color: #c3c9bd;
  font-size: 14.5px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .case-brand-title { font-size: clamp(56px, 14vw, 96px); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .case-brand { margin-bottom: 28px; }
  .case-brand-imagellan { margin-top: 72px; }
}
.case-gallery-illust .gallery-frame { background: #0a0c0b; aspect-ratio: 16/9; }
.case-gallery-illust .gallery-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-gallery-illust .gallery-ph { display: none; }


/* Product screenshot gallery */
.case-gallery-shots .gallery-frame-shot {
  background: #0a0c0b;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgba(196,236,86,.12), 0 12px 40px rgba(0,0,0,.35), 0 0 48px rgba(196,236,86,.06);
}
.case-gallery-shots .gallery-frame-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-visual-photo {
  box-shadow: inset 0 0 60px rgba(196,236,86,.04);
}
.case-visual-photo img {
  object-fit: cover;
}


/* Second case study + iMagellan accents (early stage) */
.case-card-imagellan {
  margin-top: 0;
  background: #122028;
  min-height: 640px;
}
.case-visual-imagellan {
  padding: 0;
  min-height: 0;
  background: #071018;
  box-shadow: inset 0 0 60px rgba(10, 74, 88, .4);
}
.case-visual-imagellan::before,
.case-visual-imagellan::after { display: none; }
.case-visual-imagellan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 480px;
  display: block;
}
.case-visual-imagellan .visual-caption {
  inset: auto 0 0;
  padding: 18px 7%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}
.case-card-imagellan .case-info .eyebrow {
  color: #7ec8d4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.case-card-imagellan .case-info h2 em { color: #e6b35a; }
.stage-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(126, 200, 212, .45);
  color: #7ec8d4;
  background: rgba(10, 74, 88, .28);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.stance-badge-teal {
  border-color: rgba(126, 200, 212, .45);
  color: #7ec8d4;
  background: rgba(10, 74, 88, .18);
}
.case-detail-imagellan {
  margin-top: 40px;
  padding-top: 36px;
}

/* Softer case-detail titles for iMagellan only (keep UltraScalp h3 strength) */
.case-detail-imagellan .case-detail-copy h3 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #7ec8d4;
}
.case-detail-imagellan .case-detail-copy h3 + p {
  margin: 0 0 26px;
}
.case-detail-imagellan .case-detail-copy p {
  color: #c3c9bd;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
}

.case-footnote-imagellan {
  color: #7ec8d4;
}
.case-card-imagellan .button-light {
  background: #e6b35a;
  border-color: #e6b35a;
  color: #0a0c0b;
}
.case-card-imagellan .button-light span { color: #0a0c0b; }
.case-card-imagellan .button-light:hover {
  background: transparent;
  color: #e6b35a;
}
.case-card-imagellan .button-light:hover span { color: #e6b35a; }


.stance { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stance-layout {
  display: grid;
  grid-template-columns: auto 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.stance .section-index { color: var(--muted); align-self: start; margin-top: 8px; }
.stance-copy { max-width: 620px; }
.stance h2 { margin: 0 0 28px; }
.stance h2 em { color: var(--acid); }
.stance .lead { font-size: 23px; line-height: 1.35; max-width: 560px; margin-bottom: 22px; color: var(--paper); }
.stance-copy > p:not(.lead) { max-width: 520px; color: var(--muted); margin: 0; }
.stance-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.stance-visual img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(196,236,86,.18);
  background:
    radial-gradient(ellipse at 60% 40%, rgba(196,236,86,.08), transparent 55%),
    #0a0c0b;
  box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 60px rgba(196,236,86,.06);
}
.stance-aside {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.stance-aside span {
  color: var(--acid);
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: .14em;
}
@media (max-width: 1000px) {
  .stance-layout { grid-template-columns: 1fr; gap: 28px; }
  .stance .section-index { margin-top: 0; }
  .stance-visual { max-width: 640px; }
  .stance-aside { max-width: 240px; }
}


/* iMagellan small-i — same face and colour as the surrounding headline; small-caps only */
.imagellan-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.imagellan-i {
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  color: inherit;
  text-shadow: none;
  text-transform: none;
  font-variant: small-caps;
  font-feature-settings: "smcp" 1;
  font-size: 0.82em;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  margin-right: 0.01em;
}

/* Phone bezel framing — presentation chrome around real map captures */
.case-visual-imagellan {
  display: grid;
  place-items: center;
  padding: 36px 28px 56px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(45, 212, 191, .12), transparent 55%),
    linear-gradient(160deg, #0a1a22 0%, #071018 55%, #050a0e 100%);
}
.case-visual-imagellan .phone-bezel {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1a2833, #0c141c);
  box-shadow:
    0 0 0 1px rgba(126, 200, 212, .22),
    0 18px 50px rgba(0, 0, 0, .55),
    0 0 60px rgba(10, 74, 88, .35);
}
.case-visual-imagellan .phone-bezel::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 6px;
  border-radius: 100px;
  background: rgba(238, 244, 250, .12);
  z-index: 2;
}
.case-visual-imagellan .phone-bezel img,
.case-visual-imagellan .phone-bezel video {
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  aspect-ratio: 390 / 844;
}
.case-visual-imagellan .visual-caption {
  z-index: 3;
}

/* iMagellan gallery — phone + animation */
.case-gallery-imagellan {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}
.case-gallery-imagellan .gallery-slot-wide {
  grid-column: 1 / -1;
  max-width: 360px;
  justify-self: center;
  width: 100%;
}
.gallery-frame-phone {
  aspect-ratio: 390 / 844;
  max-height: 520px;
  margin: 0 auto;
  background: #071018;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(126, 200, 212, .16), 0 12px 40px rgba(0, 0, 0, .4);
}
.gallery-frame-phone img,
.gallery-frame-anim img,
.gallery-frame-anim video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.gallery-frame-anim {
  max-height: 560px;
}
@media (max-width: 900px) {
  .case-gallery-imagellan { grid-template-columns: 1fr; }
  .case-gallery-imagellan .gallery-slot-wide { max-width: 320px; }
  .gallery-frame-phone { max-height: 480px; }
}
@media (max-width: 800px) {
  .case-visual-imagellan { padding: 28px 20px 48px; }
  .case-visual-imagellan .phone-bezel { width: min(100%, 280px); }
}

/* Higher-specificity phone frames (beat 16/9 shot gallery) */
.case-gallery-imagellan .gallery-frame.gallery-frame-shot.gallery-frame-phone {
  aspect-ratio: 390 / 844;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  max-height: none;
  height: auto;
}
.case-gallery-imagellan .gallery-slot-wide .gallery-frame.gallery-frame-phone {
  max-width: 320px;
}
.case-visual-imagellan.case-visual-photo img {
  min-height: 0;
}
.case-gallery-imagellan {
  align-items: start;
}


/* Shared product shot slider — one slide visible */
.shot-slider {
  margin-top: 48px;
  position: relative;
  outline: none;
}
.shot-slider:focus-visible {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--acid);
  border-radius: 16px;
}
.shot-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.shot-slider-track {
  position: relative;
}
.shot-slide {
  margin: 0;
  width: 100%;
}
.shot-slide[hidden] {
  display: none !important;
}
.shot-slide .gallery-frame-shot {
  background: #0a0c0b;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(196,236,86,.12), 0 12px 40px rgba(0,0,0,.35), 0 0 48px rgba(196,236,86,.06);
}
.shot-slide .gallery-frame-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-slide figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
}
.shot-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.shot-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.shot-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
  transform: translateY(-1px);
}
.shot-btn:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.shot-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.shot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(196,236,86,.45);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.shot-dot.is-active {
  background: var(--acid);
  transform: scale(1.15);
}
.shot-dot:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.shot-slider-status {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Phone variant of shot slider */
.shot-slider-phone .shot-slide-row {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}
.shot-slider-phone .shot-slide .gallery-frame-phone {
  aspect-ratio: 390 / 844;
  max-width: 300px;
  width: 100%;
  margin: 0;
  background: #071018;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(126,200,212,.16), 0 12px 40px rgba(0,0,0,.4);
}
.shot-slider-phone .shot-slide .gallery-frame-phone > img,
.shot-slider-phone .shot-slide .gallery-frame-anim > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.shot-slider-phone .shot-slide-copy {
  margin: 0;
  padding: 28px 26px;
  border-radius: 14px;
  border: 1px solid rgba(126, 200, 212, .28);
  background:
    linear-gradient(160deg, rgba(126, 200, 212, .08), transparent 55%),
    #0d171c;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
  max-width: 440px;
}
.shot-slider-phone .shot-slide-kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(126, 200, 212, .72);
}
.shot-slider-phone .shot-slide-copy h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #7ec8d4;
}
.shot-slider-phone .shot-slide-copy > p:not(.shot-slide-kicker) {
  margin: 0;
  color: #c3c9bd;
  font-size: 15px;
  line-height: 1.6;
  max-width: 36em;
}
.shot-slider-phone .shot-slide figcaption {
  display: none;
}
.shot-slider-phone .shot-dot {
  border-color: rgba(126,200,212,.5);
}
.shot-slider-phone .shot-dot.is-active {
  background: #7ec8d4;
}
.shot-slider-phone .shot-btn:hover {
  border-color: #7ec8d4;
  color: #7ec8d4;
}

/* Vertical plan scroll — pan full brief inside phone frame */
.shot-slider-phone .plan-scroll {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #071018;
  aspect-ratio: 390 / 844;
}
.shot-slider-phone .plan-scroll-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: planCoverPan 16s ease-in-out infinite alternate;
  will-change: object-position;
}
@keyframes planCoverPan {
  0% { object-position: center top; }
  100% { object-position: center bottom; }
}

@media (max-width: 800px) {
  .shot-slider-phone .shot-slide-row {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 100%;
    justify-items: center;
  }
  .shot-slider-phone .shot-slide .gallery-frame-phone {
    max-width: 260px;
    margin: 0 auto;
  }
  .shot-slider-phone .shot-slide-copy {
    max-width: none;
    width: 100%;
    padding: 22px 20px;
  }
  .shot-btn { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-scroll-img,
  .shot-slider-phone .plan-scroll-img {
    animation: none !important;
    object-position: top center !important;
    transform: none !important;
  }
}


/* Phone screenshot lightbox */
.shot-lightbox {
  border: none;
  padding: 0;
  max-width: min(420px, 92vw);
  max-height: 92vh;
  background: transparent;
  color: #e8ebe3;
}
.shot-lightbox::backdrop { background: rgba(5, 8, 7, .88); }
.shot-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(126, 200, 212, .35);
  background: #0a0c0b;
}
.shot-lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  border: 0;
  background: transparent;
  color: #e8ebe3;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.shot-lightbox-hint {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7ec8d4;
}
.shot-slider-phone .gallery-frame-phone { cursor: zoom-in; }
