/* =========================================================
   ÜLGEN AERO — design tokens
   ========================================================= */
:root{
  --ink:        #1c1815;
  --ink-soft:   #514a43;
  --paper:      #f6f4ef;
  --paper-dim:  #eeebe3;
  --panel:      #ffffff;
  --black:      #0f0d0a;
  --black-2:    #1a1611;
  --black-3:    #221c15;
  --gold:       #b6923f;
  --gold-light: #dfc07f;
  --gold-dim:   #8f7333;
  --gold-glow:  rgba(182,146,63,0.35);
  --line:       #ddd7c9;
  --line-dark:  #35302a;
  --ease: cubic-bezier(.16,.84,.44,1);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body{
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
p{ margin: 0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal{ opacity: 1 !important; transform: none !important; }
  .main-nav{ transition-delay: 0s !important; }
}

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   Scroll-reveal utility (single, restrained motion language
   used across every page — not per-card hover gimmicks)
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

.reveal-row > *{ --reveal-delay: calc(var(--i, 0) * 90ms); }

/* subtle grain so dark panels read as machined surface, not flat fill */
.grain{ position: relative; }
.grain::after{
  content:"";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.02 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* cursor-follow spotlight, dark sections only */
.spotlight{ position: relative; overflow: hidden; }
.spotlight::before{
  content:"";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx,72%) var(--my,22%), rgba(216,184,118,0.28), rgba(182,146,63,0.09) 46%, transparent 74%);
  opacity: .90;
  transition: opacity .25s ease, background .2s linear;
  pointer-events: none;
  z-index: 0;
}
.spotlight.spotlight-active::before{ opacity: .98; }
@media (any-hover: none){
  .spotlight::before{
    display: block;
    background: radial-gradient(340px circle at 78% 20%, rgba(216,184,118,0.25), rgba(182,146,63,0.08) 48%, transparent 76%);
    opacity: .92;
  }
}

/* =========================================================
   Wireframe mesh motif (echoes the brand banner artwork)
   ========================================================= */
.mesh-field{
  position: absolute;
  inset: -6%;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}
.mesh-field svg{
  width: 100%; height: 100%;
  animation: mesh-drift 40s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes mesh-drift{
  0%{ transform: scale(1) translate(0,0); opacity: .85; }
  50%{ opacity: 1; }
  100%{ transform: scale(1.04) translate(-1%, 1%); opacity: .85; }
}

/* =========================================================
   Header / nav
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15,13,10,0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216,184,118,0.14);
  transition: background .35s ease, border-color .35s ease, height .3s ease, box-shadow .35s ease;
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height .3s ease;
}
.site-header.scrolled{
  background: rgba(15,13,10,0.86);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.site-header.scrolled .wrap{ height: 64px; }
.site-header.on-dark.scrolled{ border-bottom-color: rgba(216,184,118,0.22); }
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img{ height: 28px; width: auto; }
.brand span{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.site-header.on-dark{
  background: rgba(22,19,15,0.72);
  border-bottom: 1px solid var(--line-dark);
}
.site-header.on-dark .brand{ color: #f4f1e9; }
.site-header.on-dark .main-nav a{ color: #cfc9bd; }
.site-header.on-dark .main-nav a:hover,
.site-header.on-dark .main-nav a.active{ color: #fff; }

.main-nav{ display: flex; align-items: center; gap: 34px; }
.main-nav a{
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  padding: 6px 0;
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a:not(.nav-cta)::after{
  content:"";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after{ right: 0; }
.main-nav a.active{ color: var(--ink); }
.nav-cta{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-light) !important;
  padding: 9px 18px;
  border-radius: 2px;
  font-size: 0.9rem;
  border: 1px solid rgba(216,184,118,0.5) !important;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), border-color .25s ease, color .25s ease;
}
.nav-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-cta:hover{ transform: translateY(-1px); border-color: var(--gold); color: var(--black) !important; }
.nav-cta:hover::before{ transform: scaleX(1); }
.nav-cta.active{ border-color: var(--gold) !important; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width: 18px; height: 1.5px; background: currentColor; position: relative;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }
.site-header.on-dark .nav-toggle{
  color: #f4f1e9;
  border-color: rgba(216,184,118,0.45);
}
.site-header.on-dark .main-nav a.active{ color: #fff; }


@media (max-width: 860px){
  .main-nav{
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--gutter);
    gap: 22px;
    transform: translateX(100%);
    /* Keep the panel visible until its closing slide has finished. */
    transition: transform .28s ease, visibility 0s linear .28s;
    height: calc(100dvh - 76px);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }
  .main-nav.open{ transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .site-header.scrolled .main-nav{ top: 64px; height: calc(100dvh - 64px); }
  .site-header.on-dark .main-nav{ background: var(--black); }
  .nav-toggle{ display: inline-flex; }
  .main-nav a{ font-size: 1.15rem; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 2px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), border-color .2s ease, color .2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
}
.btn-gold{
  background: var(--gold);
  color: var(--black);
}
.btn-gold::before{ background: var(--gold-light); }
.btn-gold:hover::before{ transform: scaleX(1); }
.btn-outline{
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline::before{ background: var(--ink); }
.btn-outline:hover::before{ transform: scaleX(1); }
.btn-outline:hover{ border-color: var(--ink); color: #fff; }
.btn-outline-dark{
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline-dark::before{ background: #fff; }
.btn-outline-dark:hover::before{ transform: scaleX(1); }
.btn-outline-dark:hover{ border-color: #fff; color: var(--black); }

/* =========================================================
   Section scaffolding
   ========================================================= */
section{ position: relative; }
.section-pad{ padding: 96px 0; }
@media (max-width: 700px){ .section-pad{ padding: 64px 0; } }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 640px; }
.section-head .index{
  font-family: var(--font-mono);
  color: var(--gold-dim);
  font-size: 0.85rem;
  white-space: nowrap;
}
.section-note{
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* =========================================================
   Hero (Main)
   ========================================================= */
.hero{
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--black);
  color: #f4f1e9;
  overflow: hidden;
}
.hero video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(30%) contrast(1.05);
  animation: kenburns 24s ease-in-out infinite alternate;
  transform-origin: center;
  z-index: 0;
}
@keyframes kenburns{
  0%{ transform: scale(1.06) translate(0,0); }
  100%{ transform: scale(1.16) translate(-1.5%, -1%); }
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22,19,15,0.55) 0%, rgba(22,19,15,0.4) 40%, rgba(16,14,11,0.94) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner{
  position: relative;
  z-index: 3;
  padding-top: 180px;
  padding-bottom: 0;
}
.hero-eyebrow{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-light);
  border: 1px solid rgba(216,184,118,0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .1s forwards;
}
.hero-eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-light);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.hero h1{
  font-size: clamp(3rem, 10vw, 7.4rem);
  color: #f7f4ec;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  overflow: hidden;
}
.hero h1 span{
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: fadeUp .9s var(--ease) forwards;
}
.hero h1 .line1{ animation-delay: .22s; }
.hero h1 .thin{ font-weight: 300; color: var(--gold-light); animation-delay: .34s; }
.hero-sub{
  margin-top: 26px;
  max-width: 54ch;
  font-size: 1.15rem;
  color: #d8d2c4;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .5s forwards;
}
.hero-actions{
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .64s forwards;
}
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot{
  0%,100%{ opacity: 1; box-shadow: 0 0 0 0 rgba(223,192,127,.5); }
  50%{ opacity: .55; box-shadow: 0 0 0 5px rgba(223,192,127,0); }
}

.hero-ticker{
  margin-top: 64px;
  border-top: 1px solid rgba(216,184,118,0.22);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .8s forwards;
}
.hero-ticker .track{
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.hero-ticker .seg{
  display: flex;
  gap: 40px;
  padding: 20px 0;
  padding-right: 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a9a294;
  white-space: nowrap;
}
.hero-ticker .seg span::before{ content:"◆"; color: var(--gold-dim); margin-right: 10px; font-size: .6rem; vertical-align: middle; }
@keyframes ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #a9a294;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: .08em;
  opacity: 0;
  animation: fadeUp .8s ease 1.2s forwards;
}
.scroll-cue .stem{
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--gold-light), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .stem::after{
  content:"";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--gold-light);
  animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

/* =========================================================
   Aim
   ========================================================= */
.aim{ background: var(--paper); }
.aim-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.aim-lead{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.aim-lead em{ font-style: normal; color: var(--gold-dim); }
.aim-list{ display: flex; flex-direction: column; gap: 26px; margin-top: 12px;}
.aim-list li{
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.aim-list b{ color: var(--ink); font-weight: 600; }
.aim-list .n{
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
  padding-top: 2px;
}
.aim-figure{
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
}
.aim-figure .scan-frame{ position: relative; overflow: hidden; }
.aim-figure img{ width: 100%; display: block; }
@keyframes scan-sweep{
  0%{ top: -20%; }
  55%{ top: 100%; }
  100%{ top: 100%; }
}
.aim-figure figcaption{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  padding: 12px 6px 4px;
}
@media (max-width: 900px){
  .aim-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Stats
   ========================================================= */
.stats{ background: var(--black); color: #f4f1e9; }
.stats > .wrap{ position: relative; z-index: 1; }
.stats .section-head{ border-bottom-color: var(--line-dark); }
.stats .section-note{ color: #b7b0a2; }
.stat-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.stat-cell{
  background: var(--black);
  padding: 34px 26px;
  transition: background .3s ease;
}
.stat-cell:hover{ background: var(--black-3); }
.stat-num{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-light);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .unit{ font-size: 1.1rem; color: var(--gold-dim); }
.stat-label{
  margin-top: 10px;
  font-size: 0.88rem;
  color: #b7b0a2;
  max-width: 26ch;
}
@media (max-width: 900px){
  .stat-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .stat-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Comparison table
   ========================================================= */
.compare{ background: var(--paper); }
.compare-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}
.compare-table th, .compare-table td{
  border: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
}
.compare-table thead th{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--paper-dim);
}
.compare-table tbody tr{ transition: background .2s ease; }
.compare-table tbody tr:hover{ background: rgba(182,146,63,0.06); }
.compare-table thead th.us{
  background: var(--ink);
  color: #fff;
  position: relative;
}
.compare-table thead th.us::after{
  content:"";
  position: absolute; left:0; right:0; bottom:0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: sheen 2.6s ease-in-out infinite;
}
@keyframes sheen{
  0%,100%{ opacity: .4; }
  50%{ opacity: 1; }
}
.compare-table thead th.us .tag{
  display:block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--gold-light);
  margin-top: 4px;
}
.compare-table td.us{ background: #fbf6ea; border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.compare-table tbody th{
  font-weight: 500;
  color: var(--ink-soft);
  width: 190px;
  background: var(--paper);
}
.mark{ font-family: var(--font-mono); font-size: 0.85rem; }
.mark.good{ color: #5c7a4f; }
.mark.bad{ color: #a24632; }
.mark.mid{ color: var(--gold-dim); }

.compare-scroll{ overflow-x: auto; }
.compare-foot{
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.compare-foot p{ color: var(--ink-soft); max-width: 50ch; font-size: 0.94rem; }

/* =========================================================
   Contact band (Main page CTA)
   ========================================================= */
.contact-band{
  background: var(--gold);
  color: var(--black);
}
.contact-band .wrap{
  padding-top: 72px;
  padding-bottom: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.contact-band h2{
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 14ch;
}
.contact-band .btn-outline{
  border-color: rgba(22,19,15,0.4);
  color: var(--black);
}
.contact-band .btn-outline::before{ background: var(--black); }
.contact-band .btn-outline:hover{ border-color: var(--black); color: var(--gold); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--black);
  color: #cfc9bd;
  padding: 56px 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img{ height: 24px; }
.footer-brand span{ font-family: var(--font-display); color: #f4f1e9; font-size: 1rem; }
.footer-col h4{
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #8f887a;
  margin-bottom: 16px;
}
.footer-col a{
  display: block;
  text-decoration: none;
  color: #cfc9bd;
  font-size: 0.92rem;
  padding: 6px 0;
}
.footer-col a:hover{ color: #fff; }
.footer-p{ max-width: 34ch; color: #a9a294; font-size: 0.92rem; }
.footer-bottom{
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #7d7669;
}
@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Generic page hero (non-home pages)
   ========================================================= */
.page-hero{
  background: var(--black);
  color: #f4f1e9;
  padding: 150px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero .kicker{
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.page-hero h1{
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: #f7f4ec;
}
.page-hero p{
  margin-top: 20px;
  max-width: 56ch;
  color: #cfc9bd;
  font-size: 1.05rem;
}
.page-hero > .wrap{ position: relative; z-index: 1; }
.hero .hero-inner{ z-index: 3; }

@media (max-width: 560px){
  .section-head{ align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 34px; }
  .section-head .index{ white-space: normal; }
  .page-hero{ padding: 112px 0 52px; }
  .scroll-cue{ display: none; }
}

/* =========================================================
   Products page
   ========================================================= */
.model-slot{
  border: 1px dashed var(--gold-dim);
  background: repeating-linear-gradient(135deg, var(--paper-dim), var(--paper-dim) 10px, var(--panel) 10px, var(--panel) 20px);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px;
  color: var(--ink-soft);
}
.model-slot .glyph{
  width: 54px; height: 54px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.model-slot strong{ color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.model-slot code{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 2px;
}
.model-slot-live{
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background:
    radial-gradient(circle at 50% 44%, rgba(216,184,118,.16), transparent 42%),
    linear-gradient(145deg, var(--paper-dim), var(--panel));
}
.drone-model{
  display: block;
  width: 100%;
  height: clamp(400px, 58vw, 640px);
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: var(--gold);
}
.drone-model:not(:defined){
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.drone-model:defined .model-fallback{ display: none; }
.model-fallback{
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: .9rem;
  text-align: center;
}
.model-caption{
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}

.arch-row{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.arch-row::before{
  content:"";
  position: absolute;
  left: 0; top: -1px;
  height: 2px;
  width: 0%;
  background: var(--gold);
  transition: width 1.6s var(--ease);
  z-index: 2;
}
.arch-row.draw::before{ width: 100%; }
.arch-cell{ transition: background .3s ease, box-shadow .3s ease; }
.arch-cell:hover{ background: var(--paper-dim); box-shadow: inset 0 -2px 0 var(--gold); }
.arch-cell{
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 20px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
}
.arch-cell .stage{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-dim);
}
.arch-cell .tool-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 10px;
  width: fit-content;
  font-size: 0.82rem;
  background: var(--paper);
}
.arch-cell .tool-badge .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.arch-cell p{ font-size: 0.86rem; color: var(--ink-soft); }
.arch-arrow{ display:none; }
@media (max-width: 980px){
  .arch-row{ grid-template-columns: 1fr; }
}

.product-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-card{
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.gallery-card:hover{
  border-color: var(--gold-dim);
  box-shadow: 0 18px 40px rgba(28,24,21,0.1);
  transform: translateY(-4px);
}
.gallery-card figure{ margin:0; overflow: hidden; }
.gallery-card img{
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-card:hover img{ transform: scale(1.06); }
.gallery-card figcaption{
  padding: 16px 18px 20px;
}
.gallery-card h4{ font-size: 1rem; margin-bottom: 6px; }
.gallery-card p{ font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 860px){
  .product-gallery{ grid-template-columns: 1fr; }
}

/* =========================================================
   Blog page
   ========================================================= */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.blog-card{
  background: var(--panel);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  z-index: 1;
}
.blog-card-link{ height: 100%; min-width: 0; }
.blog-card, .blog-card > *{ min-width: 0; overflow-wrap: anywhere; }
.blog-card > *{ flex-shrink: 0; }
.blog-card-link .blog-card{ min-height: 300px; height: 100%; }
.blog-card:not(.placeholder):hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(28,24,21,0.1);
  z-index: 2;
}
.blog-card .tag{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card h3{ font-size: 1.15rem; }
.blog-card p{ color: var(--ink-soft); font-size: 0.92rem; flex-grow: 1; }
.blog-card .meta{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.blog-card.placeholder{
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
}
.blog-card.placeholder .glyph{
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display:flex; align-items:center; justify-content:center; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 0.8rem;
}
@media (max-width: 1100px){ .blog-grid{ grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px){ .blog-grid{ grid-template-columns: 1fr; } }

.blog-empty{
  border: 1px dashed var(--line);
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 40px;
  font-size: 0.92rem;
}
.blog-card .meta > *{ display:block; min-width:0; white-space:normal; overflow-wrap:anywhere; }

/* Prevent intrinsic content widths from overflowing tablet and split-screen layouts. */
.wrap{ min-width:0; width:100%; }
.aim-figure{ margin:0; min-width:0; }
.field, .contact-layout > *, .arch-cell{ min-width:0; }
.field input, .field textarea, .field select{ width:100%; min-width:0; }
.stat-num{ flex-wrap:wrap; }
.section-head{ flex-wrap:wrap; }
.section-head h2{ min-width:0; }
.post-body, .contact-line, .footer-col{ overflow-wrap:anywhere; }
@media (hover: none){
  .blog-card:not(.placeholder):hover, .gallery-card:hover, .team-card:hover .team-photo, .btn:hover{ transform:none; }
  .gallery-card:hover img{ transform:none; }
}

/* =========================================================
   Who we are page
   ========================================================= */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-card{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.team-card h3, .team-card .team-role{ overflow-wrap:anywhere; }
.team-photo img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.team-photo{
  aspect-ratio: 3/3.6;
  background: var(--black);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  transition: transform .4s var(--ease);
}
.team-card:hover .team-photo{ transform: translateY(-6px); }
.team-photo .mono{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: rgba(216,184,118,0.5);
  letter-spacing: -0.02em;
  transition: color .4s ease;
}
.team-card:hover .team-photo .mono{ color: rgba(223,192,127,0.85); }
.team-photo::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 30% 20%, rgba(182,146,63,0.25), transparent 60%);
  pointer-events:none;
}
.team-photo:has(img)::after{ display:none; }
.team-card h3{ font-size: 1.15rem; margin-top: 4px; }
.team-role{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-dim);
}
.team-bio{ font-size: 0.92rem; color: var(--ink-soft); }
.team-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.team-tags span{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 2px;
  color: var(--ink-soft);
}
@media (max-width: 860px){ .team-grid{ grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.values-row{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 20px;
}
.value-cell{
  background: var(--panel);
  padding: 26px 22px;
  transition: background .3s ease, box-shadow .3s ease;
}
.value-cell:hover{ background: var(--paper-dim); box-shadow: inset 3px 0 0 var(--gold); }
.value-cell .n{ font-family: var(--font-mono); color: var(--gold-dim); font-size: 0.8rem; }
.value-cell h4{ margin-top: 10px; font-size: 1rem; }
.value-cell p{ margin-top: 8px; font-size: 0.86rem; color: var(--ink-soft); }
@media (max-width: 860px){ .values-row{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .values-row{ grid-template-columns: 1fr; } }

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-card{
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 34px;
}
.contact-card h3{ font-size: 1.1rem; margin-bottom: 22px; }
.contact-line{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-line:first-of-type{ border-top: none; }
.contact-line span.label{
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-line a, .contact-line strong{
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}
.contact-line a:hover{ color: var(--gold-dim); }

.form-grid{ display: grid; gap: 20px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ display: flex; flex-direction: column; gap: 8px; }
.field label{ font-size: 0.84rem; color: var(--ink-soft); }
.field input, .field textarea, .field select{
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: 2px;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(182,146,63,0.16);
}
.field textarea{ resize: vertical; min-height: 130px; }
.form-note{ font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 900px){
  .contact-layout{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .form-row{ grid-template-columns: 1fr; }
}

/* =========================================================
   FAQ page
   ========================================================= */
.faq-list{ border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-q .plus{
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--gold-dim);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-q .plus{ transform: rotate(45deg); }
.faq-a{
  padding: 0 4px 26px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.faq-item > summary{ list-style: none; }
.faq-item > summary::-webkit-details-marker{ display:none; }
.faq-q:hover{ color: var(--gold-dim); }
@keyframes faq-open{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}

.faq-cats{
  display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.faq-cats span{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--ink-soft);
}

@media (max-width: 560px){
  .contact-card{ padding: 24px 20px; }
  .model-slot{ min-height: 360px; padding: 28px 20px; }
  .model-slot-live{ min-height: 0; padding: 0; }
  .drone-model{ height: 400px; }
}

/* =========================================================
   Products page — simple explanatory layout
   ========================================================= */
.product-lead-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);
  gap:clamp(32px,6vw,84px);
  align-items:start;
}
.product-lead-copy{
  display:grid;
  gap:18px;
  max-width:58ch;
  color:var(--ink-soft);
}
.product-lead{
  font-family:var(--font-display);
  font-size:clamp(1.25rem,2.2vw,1.7rem);
  line-height:1.35;
  color:var(--ink);
}
.product-summary-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid var(--line);
  background:var(--line);
  gap:1px;
}
.product-summary-card{
  background:var(--panel);
  padding:28px 24px;
  min-width:0;
}
.product-summary-card > span,
.process-number,
.eyebrow{
  display:block;
  margin-bottom:16px;
  font-family:var(--font-mono);
  font-size:.74rem;
  letter-spacing:.06em;
  color:var(--gold-dim);
}
.product-summary-card h3,
.process-card h3,
.output-card h3,
.application-copy h3{
  font-size:1.08rem;
  margin-bottom:10px;
}
.product-summary-card p,
.process-card p,
.output-card p,
.application-copy p{
  color:var(--ink-soft);
  font-size:.93rem;
}
.product-model-layout{
  display:grid;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
  align-items:center;
  gap:clamp(36px,7vw,92px);
}
.product-model-copy{
  max-width:48ch;
}
.product-model-copy h2{
  font-size:clamp(1.8rem,4vw,2.6rem);
  margin-bottom:20px;
}
.product-model-copy p{
  color:var(--ink-soft);
  margin-top:14px;
}
.simple-process{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}
.process-card{
  background:var(--panel);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:28px 24px 30px;
  min-height:230px;
}
.product-image-placeholder{
  margin-top:48px;
  min-height:320px;
  padding:36px;
  border:1px dashed var(--gold-dim);
  background:linear-gradient(135deg,rgba(238,235,227,.8),rgba(255,255,255,.9));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.product-image-placeholder span,
.application-image-placeholder span{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.08em;
  color:var(--gold-dim);
}
.product-image-placeholder strong{
  margin-top:12px;
  font-family:var(--font-display);
  font-size:1.15rem;
  font-weight:600;
}
.product-image-placeholder small{
  margin-top:6px;
  color:var(--ink-soft);
}
.output-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.output-card{
  background:var(--panel);
  border:1px solid var(--line);
  padding:28px;
}
.product-app-note{
  max-width:65ch;
  margin-bottom:34px;
}
.application-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}
.application-card{
  display:flex;
  flex-direction:column;
  height:100%;
  background:var(--panel);
  border:1px solid var(--line);
  overflow:hidden;
}

.application-image{
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--paper-dim);
}
.application-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.application-image-placeholder{
  aspect-ratio:4/3;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(135deg,transparent 49.7%,rgba(182,146,63,.18) 50%,transparent 50.3%),
    linear-gradient(45deg,transparent 49.7%,rgba(182,146,63,.18) 50%,transparent 50.3%),
    var(--paper-dim);
}
.application-copy{ flex:1; padding:22px 22px 25px; }

@media (max-width:980px){
  .product-lead-grid,
  .product-model-layout{ grid-template-columns:1fr; }
  .product-summary-cards{ grid-template-columns:1fr; }
  .simple-process{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .application-grid{ grid-template-columns:1fr; }
  .application-card{ display:grid; grid-template-columns:minmax(180px,.75fr) 1fr; }
  .application-image-placeholder, .application-image{ aspect-ratio:auto; min-height:210px; }
}
@media (max-width:620px){
  .simple-process{ grid-template-columns:1fr; }
  .process-card{ min-height:0; }
  .output-grid{ grid-template-columns:1fr; }
  .product-image-placeholder{ min-height:240px; padding:28px 20px; }
  .application-card{ display:block; }
  .application-image-placeholder, .application-image{ min-height:210px; }
  .product-model-copy{ max-width:none; }
}

/* 2026-09-24: keep the gold atmosphere visible before any pointer interaction.
   This is painted on the section itself so touch-browser compositing cannot hide it. */
.page-hero.spotlight,
.stats.spotlight {
  background-color: var(--black);
  background-image:
    radial-gradient(460px circle at 79% 22%, rgba(216,184,118,.22), rgba(182,146,63,.075) 46%, transparent 75%);
  background-repeat: no-repeat;
}
.spotlight::before {
  background: radial-gradient(310px circle at var(--mx,79%) var(--my,22%), rgba(216,184,118,.24), rgba(182,146,63,.07) 46%, transparent 74%);
  opacity: .34;
}
.spotlight.spotlight-active::before { opacity: .78; }
@media (any-hover: none), (pointer: coarse) {
  .spotlight::before {
    opacity: 0;
    transition: none;
  }
  .page-hero.spotlight,
  .stats.spotlight {
    background-image:
      radial-gradient(480px circle at 79% 22%, rgba(216,184,118,.24), rgba(182,146,63,.08) 48%, transparent 76%);
  }
}

/* Persistent spotlight baseline. This is drawn on the section background itself,
   so it does not depend on pointer/touch repainting or pseudo-element stacking. */
.page-hero.spotlight,
.stats.spotlight {
  background-color: var(--black);
  background-image: radial-gradient(
    430px circle at var(--mx, 76%) var(--my, 22%),
    rgba(216,184,118,.24) 0%,
    rgba(182,146,63,.10) 42%,
    rgba(182,146,63,.035) 62%,
    transparent 76%
  );
  background-repeat: no-repeat;
}

@media (any-hover: none) {
  .page-hero.spotlight,
  .stats.spotlight {
    background-image: radial-gradient(
      460px circle at var(--mx, 78%) var(--my, 20%),
      rgba(216,184,118,.26) 0%,
      rgba(182,146,63,.11) 44%,
      rgba(182,146,63,.04) 64%,
      transparent 78%
    );
  }
}

/* Footer social link (LinkedIn). The icon file is optional:
   save LinkedIn's official icon as assets/linkedin.svg to show it. */
.footer-col a.footer-social{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(216,184,118,0.35);
  border-radius: 999px;
  color: #f4f1e9;
  transition: border-color .2s ease, background-color .2s ease;
}
.footer-col a.footer-social:hover{ border-color: var(--gold-light); background: rgba(216,184,118,0.08); }
.footer-social-icon{ width: 20px; height: 20px; border-radius: 3px; }


/* =========================================================
   Aim figure: rotating crack-model results
   Each photo shows as it came in, a scan line reveals the model
   output over it, then the frame moves to the next photo.
   ========================================================= */
.aim-carousel .scan-frame{
  aspect-ratio: 3 / 2;
  background: var(--black-2);
}
.aim-slide{
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.aim-slide.is-active{ opacity: 1; }
.aim-slide img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
/* Without JavaScript the first photo simply shows its model output. */
.aim-carousel.is-live .aim-result{
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.45,.05,.35,1);
}
.aim-carousel.is-live .aim-slide.is-revealed .aim-result{ clip-path: inset(0 0 0 0); }
.aim-carousel.is-live .aim-slide.is-leaving .aim-result{ transition: none; }
.aim-scan{
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--gold-light);
  box-shadow: 0 0 14px 4px var(--gold-glow);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.aim-carousel.is-scanning .aim-scan{ animation: aim-scan 1s cubic-bezier(.45,.05,.35,1) forwards; }
@keyframes aim-scan{
  0%   { top: 0; opacity: 1; }
  92%  { top: calc(100% - 3px); opacity: 1; }
  100% { top: calc(100% - 3px); opacity: 0; }
}
.aim-figure .aim-caption{
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.aim-caption-title{ color: var(--ink); }
.aim-caption-state{ display: inline-grid; white-space: nowrap; text-align: right; }
.aim-caption-state > span{ grid-area: 1 / 1; transition: opacity .15s ease; }
.aim-caption-state .s-res{ transition-delay: 0s; }
.aim-carousel.is-live.shows-result .aim-caption-state .s-res,
.aim-carousel.is-live:not(.shows-result) .aim-caption-state .s-orig{ transition-delay: .15s; }
.aim-caption-state .s-orig{ opacity: 0; }
.aim-caption-state .s-res{ color: var(--gold-dim); }
.aim-carousel.is-live .aim-caption-state .s-orig{ opacity: 1; }
.aim-carousel.is-live .aim-caption-state .s-res{ opacity: 0; }
.aim-carousel.is-live.shows-result .aim-caption-state .s-orig{ opacity: 0; }
.aim-carousel.is-live.shows-result .aim-caption-state .s-res{ opacity: 1; }
.aim-dots{ display: none; gap: 6px; padding: 6px 6px 2px; }
.aim-carousel.is-live .aim-dots{ display: flex; }
.aim-dot{
  flex: 1 1 0;
  height: 18px; padding: 0; border: 0;
  background: none; cursor: pointer;
  position: relative;
}
.aim-dot::before{
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px;
  background: var(--line);
  transition: background .3s ease;
}
.aim-dot[aria-current="true"]::before{ background: var(--gold); }
.aim-dot:hover::before{ background: var(--gold-light); }
@media (prefers-reduced-motion: reduce){
  .aim-slide, .aim-carousel.is-live .aim-result{ transition: none; }
  .aim-scan{ display: none; }
}

/* Tablet/mobile menu: closed panels have no layout or scroll extent. */
@media (max-width: 860px) {
  .site-header .main-nav, .site-header.scrolled .main-nav { display: none; position: absolute; top: 100%; height: calc(100dvh - 77px); inset-inline: 0; bottom: auto; overscroll-behavior: contain; }
  .site-header .main-nav.open { display: flex; }
  .site-header.scrolled .main-nav { height: calc(100dvh - 65px); }
  body.nav-open .site-header { position: fixed; inset: 0 0 auto; background: var(--black); }
}
html { overscroll-behavior-y: none; }
html.nav-open { overflow: hidden; overscroll-behavior: none; }
body.nav-open { position: fixed; top: var(--nav-scroll-y, 0px); left: 0; right: 0; width: 100%; overflow: hidden; overscroll-behavior: none; }
.team-achievements { margin: 0 0 36px; }
.team-achievements-intro { color: var(--ink-soft); margin-bottom: 14px; }
.team-achievements ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.team-achievements li { padding: 20px 22px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; background: var(--paper); }
.team-achievements strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.team-achievements li span { display: block; color: var(--ink-soft); margin-top: 6px; font-size: .92rem; }
@media (max-width: 600px) { .team-achievements ul { grid-template-columns: 1fr; } }

/* About: prose and numbered overview above the founder portraits. */
.team-overview { margin-bottom: 48px; }
.team-overview-lead { max-width: 85ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink); line-height: 1.75; }
.team-overview-points { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 0; list-style: none; margin-top: 28px; }
.team-overview-points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; }
.team-overview-number { color: var(--gold-dim); font-family: var(--font-display); font-weight: 600; }
.team-overview-points p { color: var(--ink-soft); line-height: 1.7; max-width: 95ch; }
.team-overview-points strong { color: var(--ink); font-weight: 600; }

.aim-lead .aim-emphasis { font-weight: 700; color: #b58d3d; }
.team-overview, .team-overview-lead { width: 100%; max-width: none; min-width: 0; height: auto; max-height: none; overflow: visible; white-space: normal; overflow-wrap: break-word; }
.team-bio { width: 100%; height: auto; max-height: none; overflow: visible; white-space: normal; overflow-wrap: break-word; }

/* Menu icon follows the same expanded state as the navigation panel. */
.nav-toggle span { transition: background-color .2s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  left: 0; border-radius: 2px; transform-origin: center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nav-toggle[aria-expanded="true"] span { background-color: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.team-award { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(216,184,118,.12); color: var(--ink); font-size: .9rem; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: none; }
}
