/* ============================================================
   Ethan Xie — Portfolio
   Ported from the Claude Design composition "Ethan Xie Showcase"
   ============================================================ */

:root {
  --bg:        #fbfbfd;
  --bg-deep:   #eef0f4;
  --panel:     #ffffff;
  --text:      #16181d;
  --muted:     #383b42;
  --muted-2:   #52555d;
  --muted-3:   #6b6f78;
  --faint:     #a6abb4;
  --accent:    #0a8fd6;
  --accent-2:  #0772ab;
  --accent-soft: rgba(10, 143, 214, .12);
  --on-accent: #ffffff;
  --gold:      #c9a86a;
  --green:     #7dd3a8;
  --line:      rgba(0, 0, 0, .09);
  --line-2:    rgba(0, 0, 0, .13);
  --line-3:    rgba(0, 0, 0, .2);
  --hatch:     repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 1px, transparent 1px 10px);
  --nav-bg:    rgba(251, 251, 253, .85);
  --mono:      'IBM Plex Mono', ui-monospace, monospace;
  --sans:      'Space Grotesk', system-ui, sans-serif;
  --wrap:      1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; }
.hidden { display: none !important; }

.section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.section-label .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
}
.section-label .name {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
}
.section-label .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: .18em;
  margin-bottom: 14px;
}

.page-title {
  margin: 0 0 14px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.page-lede {
  margin: 0 0 44px;
  font-size: 17px;
  color: var(--muted-2);
  max-width: 600px;
  line-height: 1.6;
}

.placeholder {
  background-color: var(--bg-deep);
  background-image: var(--hatch);
  border: 1px solid rgba(255, 255, 255, .07);
}

/* ---------- buttons ---------- */
.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  font-weight: 500;
  border-color: var(--line-3);
  background: var(--panel);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-soft);
}
.mono-arrow { font-family: var(--mono); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
}
.brand .dot { width: 9px; height: 9px; background: var(--accent); }
.brand .name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-link {
  cursor: pointer;
  color: var(--muted-3);
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
  transition: color .15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 92px 32px 84px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

/* physics playground canvas sits behind the headline/buttons */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
/* when physics is active, let clicks fall through the text to the canvas,
   but keep the hero buttons/links clickable */
.hero.has-physics > .wrap { pointer-events: none; }
.hero.has-physics .hero-actions,
.hero.has-physics .hero-actions * { pointer-events: auto; }
.hero-hint {
  position: absolute;
  left: 24px;
  bottom: 18px;
  z-index: 2;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted-3);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 13px;
  opacity: .85;
  transition: opacity .6s ease;
}
.hero-name {
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.hero-drone {
  position: absolute;
  top: 8px;
  left: 50%;
  margin-left: -280px;
  stroke: var(--accent);
}
.hero-drone rect { fill: var(--accent); }
.hero-tags {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted-2);
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.hero-blurb {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- generic section block ---------- */
.block { padding: 64px 32px 56px; }
.block.tight { padding: 8px 32px 56px; }
.page { padding: 72px 32px 84px; }

/* ---------- project cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px -18px var(--accent), 0 8px 24px -16px rgba(0,0,0,.6);
}
.card.featured { border-color: rgba(201, 168, 106, .55); }
.card-shot {
  height: 180px;
  position: relative;
  background-color: var(--bg-deep);
  background-image: var(--hatch);
}
.card.lg .card-shot { height: 200px; }
.card-shot.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.card:hover .card-shot.has-img img { transform: scale(1.04); }
.card-shot.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 34%);
  pointer-events: none;
}
.card-shot.has-img .badge-featured,
.card-shot.has-img .badge-status { z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.card-shot.has-preview .badge-featured,
.card-shot.has-preview .badge-status { z-index: 2; }
.card-shot .badge-featured {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--gold);
}
.card-shot .badge-status {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
}
.card-shot .shot-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
.card-body { padding: 24px; }
.card.lg .card-body { padding: 26px; }
.card-body h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.card.lg .card-body h3 { font-size: 21px; }
.card-body p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--muted-3); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 4px 8px;
}

/* Postura's project artwork is native HTML/CSS so it stays sharp at any size. */
.postura-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 18px;
  padding: 34px 36px 20px;
  background:
    radial-gradient(circle at 78% 22%, rgba(171, 98, 35, .12) 0 18%, transparent 18.5%),
    #f4ecdc;
  color: #392416;
}
.postura-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.postura-kicker {
  color: #a96327;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}
.postura-copy strong { max-width: 250px; font-size: 20px; line-height: 1.08; letter-spacing: -.025em; }
.postura-copy > span:last-child { color: #8c735b; font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em; }
.postura-phone {
  align-self: end;
  justify-self: center;
  width: 146px;
  height: 184px;
  position: relative;
  overflow: hidden;
  border: 4px solid #352318;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fffaf0;
  box-shadow: 0 18px 34px rgba(77, 45, 21, .18);
}
.postura-phone-top {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  color: #8c735b;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .08em;
}
.postura-live { color: #a96327; font-weight: 700; }
.postura-pose { position: absolute; inset: 28px 14px 18px; }
.postura-pose svg { width: 100%; height: 100%; }
.pose-lines line, .pose-leg { stroke: #2d82d4; stroke-width: 5; stroke-linecap: round; }
.pose-points circle { fill: #fffaf0; stroke: #2d82d4; stroke-width: 4; }
.pose-bow { stroke: #a96327; stroke-width: 4; stroke-linecap: round; }
.postura-score {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 250, 240, .92);
  box-shadow: 0 4px 16px rgba(57, 36, 22, .12);
}
.postura-score strong { color: #a96327; font-size: 15px; line-height: 1; }
.postura-score span { margin-top: 3px; color: #8c735b; font-family: var(--mono); font-size: 5px; letter-spacing: .08em; }
.detail-hero.has-preview { height: 390px; border: 1px solid #e3cfb3; background: #f4ecdc; }
.detail-hero.has-preview .postura-preview { grid-template-columns: 1fr 1fr; padding: 54px 90px 0; }
.detail-hero.has-preview .postura-copy strong { max-width: 380px; font-size: 40px; }
.detail-hero.has-preview .postura-kicker { font-size: 12px; }
.detail-hero.has-preview .postura-copy > span:last-child { font-size: 10px; }
.detail-hero.has-preview .postura-phone { width: 220px; height: 300px; border-width: 6px; border-radius: 34px 34px 0 0; }
.detail-hero.has-preview .postura-phone-top { height: 43px; padding: 0 16px; font-size: 8px; }
.detail-hero.has-preview .postura-pose { inset: 40px 20px 24px; }
.detail-hero.has-preview .postura-score { right: 14px; bottom: 14px; padding: 9px 11px; }
.detail-hero.has-preview .postura-score strong { font-size: 22px; }
.detail-hero.has-preview .postura-score span { font-size: 6px; }

/* ---------- info cards ---------- */
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}
.info-card .kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.info-card h4 { margin: 0 0 9px; font-size: 17px; font-weight: 600; }
.info-card p { margin: 0; font-size: 13.5px; line-height: 1.58; color: var(--muted-3); }
.info-card.span-2 { grid-column: span 2; border-left: 2px solid var(--accent); }
.info-card { transition: border-color .15s ease, transform .15s ease; }
.info-card:hover { border-color: var(--line-3); transform: translateY(-2px); }

/* community site link cards */
.site-card {
  display: block;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.site-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.site-role {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.site-card h4 { margin: 0 0 9px; font-size: 18px; font-weight: 600; color: var(--text); }
.site-card p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.58; color: var(--muted-3); }
.site-link {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-2);
}

/* ---------- community iframe preview cards ---------- */
.comm-card {
  padding: 0;
  overflow: hidden;
}
.comm-preview {
  position: relative;
}
.comm-frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--bg-deep);
}
.comm-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  border: none;
  transform: scale(0.25);
  transform-origin: 0 0;
  pointer-events: none; /* preview only — click goes to the card link */
}
.comm-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comm-preview-overlay {
  padding: 18px 20px 22px;
}
.comm-preview-overlay .site-role {
  margin-bottom: 10px;
}
.comm-preview-overlay h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.comm-preview-overlay p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-3);
}

.link-more {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-2);
  background: none; border: 0; padding: 0;
}

/* ---------- stat cards ---------- */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px -20px var(--accent);
}
.stat-card .figure {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
}
.stat-card .figure.empty {
  font-size: 14px;
  color: #6b7280;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 11px 0;
}
.stat-card .stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-3);
  letter-spacing: .04em;
  margin-top: 14px;
}

/* ---------- photo grids ---------- */
.photo-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 152px;
  gap: 12px;
}
/* masonry: each photo keeps its own aspect ratio, no cropping */
.photo-grid-full {
  column-count: 3;
  column-gap: 14px;
}
.photo-grid-full .photo {
  break-inside: avoid;
  width: 100%;
  margin: 0 0 14px;
  display: block;
  content-visibility: auto;
  contain-intrinsic-size: 300px 220px;
}
.photo-grid-full .photo img {
  position: static;
  width: 100%;
  height: auto;
}
.photo-grid-full .photo.tall,
.photo-grid-full .photo.wide { grid-row: auto; grid-column: auto; }
.photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.photo:hover img { transform: scale(1.05); }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}
.photo .caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #f0f2f6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.photo.tall { grid-row: span 2; }
.photo.wide { grid-column: span 2; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  background: none;
}
.chip.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* ---------- cta ---------- */
.cta {
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 12px;
  padding: 48px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  background: var(--panel);
}
.cta h3 { margin: 0 0 12px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.cta p { margin: 0; font-size: 15.5px; color: var(--muted-2); max-width: 420px; line-height: 1.55; }

/* ---------- project detail ---------- */
.detail { max-width: 980px; margin: 0 auto; padding: 44px 32px 84px; }
.back-link {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-3);
  background: none; border: 0; padding: 0;
}
.detail-meta { margin-top: 30px; display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.detail-meta .featured { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.detail-meta .status { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; }
.detail h1 { margin: 0 0 16px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.detail .summary { margin: 0 0 22px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 680px; }
.detail-hero {
  height: 340px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin: 0 0 56px;
}
.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* image heroes show the whole frame (letterboxed) instead of a hard crop */
.detail-hero.has-img {
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 74vh;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.detail-hero.has-img img { object-fit: contain; }
.detail-hero .shot-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--faint);
}
.subhead {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .18em;
  margin-bottom: 14px;
}
/* ---------- detail image gallery ---------- */
.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.detail-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
}
.detail-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}
.detail-gallery-caption {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
  border-top: 1px solid var(--line);
}
.overview { margin-bottom: 48px; }
.overview p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 720px; }

/* ---------- detail spec table ---------- */
.detail-specs {
  margin-bottom: 48px;
}
.detail-specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.detail-specs th {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.detail-specs td {
  padding: 10px 0;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
}
.detail-specs tr:last-child td {
  border-bottom: none;
}
.specs-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted-3);
  line-height: 1.6;
}

/* ---------- vision compare (hover cards) ---------- */
.vision-compare {
  margin-bottom: 48px;
}
.vc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vc-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  cursor: default;
}
.vc-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.vc-card:hover img {
  transform: scale(1.06);
}
.vc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, .45);
  transition: background .35s ease;
  padding: 20px;
}
.vc-card:hover .vc-overlay {
  background: rgba(0, 0, 0, .72);
}
.vc-label {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #e9eaf0;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  transition: opacity .25s ease, transform .25s ease;
}
.vc-card:hover .vc-label {
  opacity: 0;
  transform: translateY(-8px);
}
.vc-caption {
  position: absolute;
  font-size: 14.5px;
  color: #d6dbe0;
  line-height: 1.6;
  text-align: center;
  max-width: 280px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  transition-delay: .05s;
}
.vc-card:hover .vc-caption {
  opacity: 1;
  transform: translateY(0);
}

.detail-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-bottom: 56px; }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .slash { color: var(--accent); font-family: var(--mono); font-size: 14px; line-height: 1.55; }
.feature span:last-child { font-size: 15.5px; line-height: 1.55; color: var(--text); }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 7px 11px;
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-tile { height: 180px; border-radius: 10px; position: relative; }
.demo-tile .lab {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--faint);
}
.impact {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  padding: 32px;
  background: var(--panel);
  margin-bottom: 48px;
}
.impact p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); }
.detail-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact { max-width: 760px; margin: 0 auto; padding: 88px 32px 100px; text-align: center; }
.contact h1 { margin: 0 0 18px; font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.contact .lede { margin: 0 auto 44px; font-size: 17px; color: var(--muted-2); max-width: 480px; line-height: 1.62; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.contact-card {
  text-decoration: none;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  transition: border-color .15s ease;
}
.contact-card:hover { border-color: var(--line-3); }
.contact-card .kicker { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .12em; margin-bottom: 6px; }
.contact-card .val { font-size: 15px; color: var(--text); }
.contact-card .arr { color: var(--accent); font-family: var(--mono); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px; font-size: 12.5px; color: var(--muted-3);
}
.footer-inner .stack { font-family: var(--mono); letter-spacing: .06em; }

/* ============================================================
   Intro animations
   ============================================================ */
@keyframes nameDraw { to { stroke-dashoffset: 0; } }
@keyframes nameFill { to { fill: var(--text); stroke-width: 0; } }
@keyframes droneFly {
  0%   { transform: translateX(-220px) translateY(8px); opacity: 0; }
  14%  { opacity: 1; }
  88%  { transform: translateX(214px) translateY(-2px); }
  100% { transform: translateX(200px) translateY(0); opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.nameStroke { fill: var(--text); }
.droneB { transform: translateX(200px); }
.riseEl { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .nameStroke {
    fill: transparent;
    stroke: var(--accent);
    stroke-width: 1.3;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: nameDraw 1s ease-out .12s forwards, nameFill .55s ease .98s forwards;
  }
  .droneB { animation: droneFly 1.1s cubic-bezier(.4, .05, .25, 1) .1s both; }
  .riseEl { opacity: 0; animation: rise .7s ease 1.15s forwards; }
}

/* ============================================================
   FPV footage
   ============================================================ */
/* home-page teaser tile */
.fpv-teaser {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--bg-deep);
  aspect-ratio: 21 / 9;
  font: inherit;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.fpv-teaser:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px -18px var(--accent), 0 8px 24px -16px rgba(0, 0, 0, .6);
}
.fpv-teaser img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.fpv-teaser:hover img { transform: scale(1.04); }
.fpv-teaser::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
}
.fpv-teaser-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(10, 11, 15, .55);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff; font-size: 20px; padding-left: 4px;
  backdrop-filter: blur(2px);
  transition: background .15s ease, transform .15s ease;
}
.fpv-teaser:hover .fpv-teaser-play { background: var(--accent); color: var(--on-accent); }
.fpv-teaser-meta {
  position: absolute; left: 20px; bottom: 18px; z-index: 1;
  display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.fpv-teaser-title {
  font-size: 18px; font-weight: 600; color: #f4f5f9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.fpv-teaser-sub {
  font-family: var(--mono); font-size: 11.5px; color: #d4d7df;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* dedicated FPV page */
.fpv-reel { margin-bottom: 44px; }
.fpv-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}
.fpv-stage video {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
/* hide the native poster/controls layer until play, behind our overlay */
.fpv-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 50%);
  transition: opacity .2s ease;
}
.fpv-stage.playing .fpv-play { opacity: 0; pointer-events: none; }
.fpv-play-icon {
  width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(10, 11, 15, .55);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff; font-size: 26px; padding-left: 5px;
  backdrop-filter: blur(2px);
  transition: background .15s ease, transform .15s ease;
}
.fpv-play:hover .fpv-play-icon {
  background: var(--accent); color: var(--on-accent);
  transform: scale(1.06);
}
.fpv-reel-body { margin-top: 20px; }
.fpv-reel-title { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.fpv-reel-caption { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--muted-2); max-width: 620px; }
.fpv-meta { display: flex; flex-wrap: wrap; gap: 14px; }
.fpv-meta-item {
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--panel);
  min-width: 110px;
}
.fpv-meta-k { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--muted-3); }
.fpv-meta-v { font-size: 14px; font-weight: 500; color: var(--text); }
.fpv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fpv-grid .fpv-reel { margin-bottom: 0; }

/* ---------- FPV fleet ---------- */
.fpv-fleet {
  margin-top: 72px;
  padding-top: 52px;
  border-top: 1px solid var(--line-2);
}
.fleet-intro { max-width: 650px; margin-bottom: 30px; }
.fleet-intro .subhead { margin-bottom: 12px; }
.fleet-intro h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -.025em;
}
.fleet-intro p {
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.65;
}
.fleet-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.fleet-group {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--panel);
}
.fleet-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}
.fleet-group-head h3 { margin: 0 0 6px; font-size: 22px; }
.fleet-group-head p { margin: 0; color: var(--muted-2); font-size: 13.5px; line-height: 1.5; }
.fleet-count {
  flex: 0 0 auto;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 9px;
}
.fleet-list { padding: 0 24px; }
.fleet-drone {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 20px 0;
}
.fleet-drone + .fleet-drone { border-top: 1px solid var(--line); }
.fleet-number {
  align-self: start;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent);
}
.fleet-drone-copy h4 { margin: 0 0 5px; font-size: 17px; }
.fleet-drone-copy p { margin: 0; color: var(--muted-2); font-size: 13.5px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4,
  .detail-cols, .demo-grid, .contact-grid, .detail-gallery, .vc-grid { grid-template-columns: 1fr; }
  .photo-grid-home { grid-template-columns: repeat(2, 1fr); }
  .photo-grid-full { column-count: 2; }
  .nav-links { gap: 16px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 64px 20px 60px; }
  .block, .block.tight, .page { padding-left: 20px; padding-right: 20px; }
  .detail, .contact { padding-left: 20px; padding-right: 20px; }
  .page-title, .contact h1 { font-size: 32px; }
  .info-card.span-2 { grid-column: span 1; }
  .photo.wide { grid-column: span 2; }
  .fpv-grid, .fleet-groups { grid-template-columns: 1fr; }
  .fpv-teaser { aspect-ratio: 16 / 9; }
}

@media (max-width: 520px) {
  .photo-grid-home { grid-template-columns: 1fr; }
  .photo-grid-full { column-count: 1; }
  .photo.wide, .photo.tall { grid-column: auto; grid-row: auto; }
  .postura-preview { grid-template-columns: 1fr; padding: 42px 22px 0; }
  .postura-copy { display: none; }
  .postura-phone { width: 142px; }
  .detail-hero.has-preview { height: 330px; }
  .detail-hero.has-preview .postura-preview { grid-template-columns: 1fr; padding: 32px 20px 0; }
  .detail-hero.has-preview .postura-phone { width: 200px; height: 280px; }
}
