/* assets/css/pages/in-depth-capabilities.css
   In-depth capabilities page. Standalone: it does not rely on capabilities.css,
   so changing one page's stylesheet can no longer break the other.
   Same "field report" look as the corporate and capabilities pages: blueprint
   backdrop, overlapping-card hero, flip cards, and a closing call to action. */

/* =========================
   TOKENS
========================= */

:root{
  --cap-line:rgba(255,255,255,0.12);
  --cap-line-soft:rgba(255,255,255,0.075);
  --cap-copy:rgba(255,255,255,0.84);
  --cap-muted:rgba(255,255,255,0.58);
  --cap-mint:#A6FFB5;
  --cap-peri:#8E99FB;
  --fr-ease:cubic-bezier(.22, .61, .36, 1);
}

/* =========================
   BASE
========================= */

body.caps{
  color:var(--cap-copy);
  /* Shorthand on purpose: it also resets the tiled gradient from core-bg.css */
  background:#0b0f16;
}

/* Fixed backdrop: color wash plus a faint blueprint grid.
   It sits on its own layer (below core-bg.css's drifting lights) so it never
   tiles and stays put while the page scrolls. */
.cap-blueprint{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(1000px 580px at 0% -10%, rgba(166,255,181,0.12), transparent 58%),
    radial-gradient(1200px 760px at 105% 0%, rgba(142,153,251,0.14), transparent 60%),
    linear-gradient(180deg, #090d13 0%, #101722 42%, #0b0f16 100%);
}

.cap-blueprint::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(142,153,251,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,153,251,0.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size:96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  mask-image:radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
}

.cap-main{
  padding-top:calc(var(--header-h, 76px) + 28px);
  padding-bottom:80px;
}

/* =========================
   SHARED PIECES
========================= */

.cap-eyebrow{
  margin:0 0 14px;
  color:var(--cap-muted);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.cap-eyebrow--accent{
  color:var(--cap-mint);
}

.cap-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.fr-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:999px;
  font-size:.92rem;
  font-weight:800;
  letter-spacing:-.01em;
  text-decoration:none;
  transition:
    transform .35s var(--fr-ease),
    border-color .3s ease,
    background .3s ease,
    box-shadow .35s ease;
}

.fr-button:hover{
  transform:translateY(-2px);
}

.fr-button--primary{
  border:1px solid rgba(166,255,181,0.42);
  background:
    linear-gradient(135deg, rgba(166,255,181,0.28), rgba(142,153,251,0.20)),
    rgba(255,255,255,0.055);
  color:#fff;
  box-shadow:0 18px 48px rgba(0,0,0,0.32);
}

.fr-button--primary:hover{
  border-color:rgba(166,255,181,0.72);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.42),
    0 0 34px rgba(166,255,181,0.10);
}

.fr-button--ghost{
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.035);
  color:rgba(255,255,255,0.82);
}

.fr-button--ghost:hover{
  border-color:rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.06);
}

.cap-section{
  padding:56px 0;
}

.cap-section__header{
  max-width:760px;
  margin-bottom:28px;
}

.cap-section__header h2{
  margin:0;
  color:#fff;
  font-size:clamp(2.1rem, 3.7vw, 4rem);
  line-height:.96;
  letter-spacing:-.065em;
}

.cap-section__header p:not(.cap-eyebrow){
  max-width:58ch;
  margin:16px 0 0;
  color:rgba(255,255,255,0.70);
  font-size:1.02rem;
  line-height:1.72;
}

/* =========================
   OVERLAPPING-CARD STAGE
   Photo and card share grid cells instead of using absolute offsets,
   so the overlap scales with the layout. Adapted from CodeFronts'
   overlapping card hero (MIT licensed).
========================= */

.cap-stage{
  display:grid;
  grid-template-columns:repeat(12, minmax(0, 1fr));
  /* chip strip | zone shared by photo and card | part of the card that
     hangs below the photo */
  grid-template-rows:minmax(56px, auto) auto 48px;
}

.cap-stage__photo{
  position:relative;
  z-index:1;
  grid-row:1 / 3;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:34px;
  background:rgba(255,255,255,0.035);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.44),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

.cap-stage__photo::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(4,8,12,0.04), rgba(4,8,12,0.5)),
    radial-gradient(900px 520px at 20% 10%, rgba(166,255,181,0.12), transparent 52%),
    radial-gradient(800px 560px at 100% 0%, rgba(142,153,251,0.14), transparent 58%);
}

/* Parallax: --bgY (46% to 54%) is set on the figure by the shared helper in
   core.js while scrolling; the oversized image drifts a few percent with it.
   With reduced motion the helper does nothing and the image stays centered. */
.cap-stage__photo img{
  position:absolute;
  top:-6%;
  left:0;
  display:block;
  width:100%;
  height:112%;
  object-fit:cover;
  transform:translateY(calc((var(--bgY, 50%) - 50%) * -1));
  filter:saturate(1.04) contrast(1.04);
  will-change:transform;
}

.cap-stage__card{
  position:relative;
  z-index:2;
  grid-row:2 / 4;
  align-self:end; /* bottom edge sits in the hang row, below the photo */
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:clamp(24px, 3vw, 40px);
  border:1px solid rgba(255,255,255,0.14);
  border-radius:28px;
  background:
    linear-gradient(160deg, rgba(166,255,181,0.08), transparent 45%),
    rgba(11,15,22,0.95);
  box-shadow:0 40px 90px -30px rgba(0,0,0,0.75);
}

.cap-stage__card > *{
  margin:0;
}

.cap-stage__chip{
  z-index:3;
  grid-row:1;
  align-self:start;
  justify-self:start;
  margin:0;
  padding:7px 14px;
  border:1px solid rgba(255,255,255,0.25);
  border-radius:999px;
  background:rgba(0,0,0,0.45);
  color:#fff;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.04em;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

/* Key facts row inside a stage card */
.cap-facts{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,0.10);
}

.cap-facts div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.cap-facts dt{
  color:rgba(255,255,255,0.5);
  font-size:.64rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.cap-facts dd{
  margin:0;
  color:#fff;
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:-.01em;
}

.cap-facts div:last-child dd{
  color:var(--cap-mint);
}

.cap-textlink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  color:var(--cap-mint);
  font-size:.92rem;
  font-weight:800;
  text-decoration:none;
}

.cap-textlink:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

/* ---------- Hero: card on the left, photo on the right ---------- */

.cap-hero{
  padding:24px 0 40px;
}

.cap-stage--hero .cap-stage__photo{
  grid-column:5 / 13;
  min-height:clamp(460px, 46vw, 640px);
}

.cap-stage--hero .cap-stage__card{
  grid-column:1 / 8;
}

.cap-stage--hero .cap-stage__chip{
  grid-column:9 / 13;
  justify-self:end;
  margin:22px 22px 0 0;
}

.cap-hero__title{
  max-width:13ch;
  color:#fff;
  font-size:clamp(2.4rem, 4.4vw, 4.4rem);
  line-height:.92;
  letter-spacing:-.065em;
}

.cap-hero__lead{
  max-width:52ch;
  color:rgba(255,255,255,0.76);
  font-size:clamp(1rem, 1.2vw, 1.08rem);
  line-height:1.72;
}

.cap-stage--hero .cap-actions{
  margin-top:6px;
}


/* =========================
   PHOTO BANDS
   Shown whole, never cropped, with nothing layered on top.
========================= */

.cap-section--band{
  padding:8px 0;
}

.cap-band{
  margin:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:34px;
  background:rgba(255,255,255,0.035);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.44),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

.cap-band img{
  display:block;
  width:100%;
  height:auto;
  filter:brightness(0.96) contrast(1.03) saturate(1.04);
}

/* =========================
   FINAL CTA
========================= */

.cap-final{
  padding:42px 0 0;
}

.cap-final__inner{
  display:grid;
  grid-template-columns:minmax(0, .9fr) auto;
  align-items:end;
  gap:30px;
  padding:42px 0 8px;
  border-top:1px solid var(--cap-line);
}

.cap-final__inner h2{
  max-width:13ch;
  margin:0;
  color:#fff;
  font-size:clamp(2.4rem, 4.4vw, 4.75rem);
  line-height:.92;
  letter-spacing:-.07em;
}

.cap-final__inner p:not(.cap-eyebrow){
  max-width:46ch;
  margin:18px 0 0;
  color:rgba(255,255,255,0.70);
  font-size:1.04rem;
  line-height:1.7;
}

.cap-final__inner .cap-actions{
  justify-content:flex-end;
}

/* =========================
   IN-DEPTH PAGE ADDITIONS
========================= */

/* Hero headline is longer than on the capabilities page */
.cap-hero__title{
  max-width:19ch;
  font-size:clamp(2.1rem, 3.8vw, 3.8rem);
}

/* Section index in the eyebrow: "02 / Aerospace..." */
.cap-eyebrow__idx{
  color:var(--cap-mint);
}

/* Jump links under the hero */
.cap-jump{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid var(--cap-line-soft);
}

.cap-jump__label{
  margin-right:6px;
  color:var(--cap-muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.cap-jump a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 15px;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:999px;
  background:rgba(255,255,255,0.035);
  color:rgba(255,255,255,0.8);
  font-size:.8rem;
  font-weight:800;
  text-decoration:none;
  transition:border-color .25s ease, background .25s ease, color .25s ease, transform .3s var(--fr-ease);
}

.cap-jump a:hover{
  border-color:rgba(166,255,181,0.5);
  background:rgba(166,255,181,0.07);
  color:#fff;
  transform:translateY(-1px);
}

/* Keyword pills under the aerospace cards */
.cap-proofline{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:26px;
}

.cap-proofline .pill{
  border-color:rgba(166,255,181,0.26);
  background:rgba(166,255,181,0.06);
  color:rgba(255,255,255,0.86);
  font-weight:800;
}



/* =========================
   SERVICE AREA FLIP CARDS
   Icon, tag and tagline on the front; details and a link on the back.
   Adapted from CodeFronts' responsive flip card grid (MIT licensed).

   Interaction:
   - Mouse: hover to flip; the button on the back is clickable while flipped
   - Touch: tap to flip; "Back" flips it back
   - Keyboard: Tab to a card to flip it, Tab again to reach its button,
     Space to keep it flipped
   Each card's color comes from --mode-accent / --mode-accent-rgb on its <li>.
========================= */

.fr-mode-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.fr-mode{
  --mode-accent:#A6FFB5;
  --mode-accent-rgb:166,255,181;
  position:relative;
  perspective:1200px;
  border-radius:26px;
}

/* State checkbox + full-card click target */
.fr-mode__toggle,
.fr-mode__sr{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

.fr-mode__hit{
  position:absolute;
  inset:0;
  z-index:3;
  border-radius:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.fr-mode__toggle:focus-visible + .fr-mode__hit{
  outline:2px solid var(--mode-accent);
  outline-offset:4px;
}

/* Both faces share one grid cell, so the card grows to fit the longer side */
.fr-mode__inner{
  position:relative;
  z-index:1;
  display:grid;
  height:100%;
  min-height:300px;
  transform-style:preserve-3d;
  transition:transform .75s cubic-bezier(.4, 0, .2, 1);
}

.fr-mode__face{
  grid-area:1 / 1;
  display:flex;
  flex-direction:column;
  padding:26px 24px 24px;
  border:1px solid rgba(var(--mode-accent-rgb), .2);
  border-radius:26px;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

.fr-mode__front{
  position:relative;
  transform:rotateY(0deg) translateZ(1px);
  background:
    linear-gradient(145deg, rgba(var(--mode-accent-rgb), .13), transparent 55%),
    rgba(13, 18, 27, .86);
  box-shadow:0 26px 70px -34px rgba(0, 0, 0, .7);
}

.fr-mode__num{
  position:absolute;
  top:18px;
  right:22px;
  color:rgba(255, 255, 255, .07);
  font-size:2.6rem;
  font-weight:900;
  line-height:1;
  letter-spacing:-.04em;
}

.fr-mode__tag{
  margin:0;
  color:var(--mode-accent);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.fr-mode__icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  margin-top:16px;
  border:1px solid rgba(var(--mode-accent-rgb), .28);
  border-radius:13px;
  background:rgba(var(--mode-accent-rgb), .1);
}

.fr-mode__icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:var(--mode-accent);
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.fr-mode__title{
  margin:18px 0 8px;
  color:#fff;
  font-size:1.4rem;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.03em;
}

.fr-mode__tagline{
  max-width:30ch;
  margin:0;
  color:rgba(255, 255, 255, .7);
  font-size:.95rem;
  line-height:1.55;
}

.fr-mode__hint{
  margin:auto 0 0;
  padding-top:20px;
  color:rgba(255, 255, 255, .42);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
}

.fr-mode__hint-tap{
  display:none;
}

.fr-mode__back{
  gap:12px;
  transform:rotateY(180deg) translateZ(1px);
  pointer-events:none; /* only the face toward the viewer takes clicks */
  background:
    linear-gradient(160deg, rgba(var(--mode-accent-rgb), .12), transparent 55%),
    rgba(11, 15, 22, .95);
}

.fr-mode__desc{
  margin:0;
  color:rgba(255, 255, 255, .86);
  font-size:.92rem;
  line-height:1.55;
}

.fr-mode__label{
  margin:4px 0 0;
  padding-top:12px;
  border-top:1px solid rgba(255, 255, 255, .08);
  color:rgba(255, 255, 255, .45);
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.fr-mode__list{
  list-style:none;
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  color:rgba(255, 255, 255, .68);
  font-size:.86rem;
  line-height:1.45;
}

.fr-mode__list li{
  position:relative;
  padding-left:16px;
}

.fr-mode__list li::before{
  content:"";
  position:absolute;
  left:2px;
  top:.55em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--mode-accent);
}

.fr-mode__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:auto;
  padding-top:8px;
}

.fr-mode__cta.fr-button{
  flex:1 1 auto;
  width:auto;
  min-height:44px;
  padding:0 18px;
  font-size:.86rem;
}

/* "Back" control for touch screens (hidden where hovering does the job) */
.fr-mode__flipback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border:1px solid rgba(255, 255, 255, .14);
  border-radius:999px;
  color:rgba(255, 255, 255, .75);
  font-size:.84rem;
  font-weight:700;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

/* Flipped state: tapped/clicked (checked), keyboard focus, button focus,
   or (with a mouse) hover */
.fr-mode__toggle:checked ~ .fr-mode__inner,
.fr-mode__toggle:focus-visible ~ .fr-mode__inner,
.fr-mode__inner:focus-within{
  transform:rotateY(180deg);
}

/* Once flipped, the click target and the hidden front step aside so the
   buttons on the back can be pressed */
.fr-mode__toggle:checked ~ .fr-mode__hit{
  pointer-events:none;
}

.fr-mode__toggle:checked ~ .fr-mode__inner .fr-mode__front,
.fr-mode__toggle:focus-visible ~ .fr-mode__inner .fr-mode__front,
.fr-mode__inner:focus-within .fr-mode__front{
  pointer-events:none;
}

.fr-mode__toggle:checked ~ .fr-mode__inner .fr-mode__back,
.fr-mode__toggle:focus-visible ~ .fr-mode__inner .fr-mode__back,
.fr-mode__inner:focus-within .fr-mode__back{
  pointer-events:auto;
}

@media (hover:hover) and (pointer:fine){
  .fr-mode:hover .fr-mode__inner{
    transform:rotateY(180deg);
  }

  .fr-mode:hover .fr-mode__hit,
  .fr-mode:hover .fr-mode__front{
    pointer-events:none;
  }

  .fr-mode:hover .fr-mode__back{
    pointer-events:auto;
  }

  .fr-mode__flipback{
    display:none;
  }

  /* ...unless the card was pinned open (keyboard Space, or a touch laptop) */
  .fr-mode__toggle:checked ~ .fr-mode__inner .fr-mode__flipback{
    display:inline-flex;
  }
}

@media not ((hover:hover) and (pointer:fine)){
  .fr-mode__hint-hover{
    display:none;
  }

  .fr-mode__hint-tap{
    display:inline;
  }
}

@media (max-width:980px){
  .fr-mode-grid{
    grid-template-columns:1fr;
  }

  .fr-mode__inner{
    min-height:0;
  }
}

/* Six service cards read better two-up on tablets */
@media (min-width:641px) and (max-width:980px){
  .fr-mode-grid--services{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* Reduced motion: crossfade instead of a 3D spin */
@media (prefers-reduced-motion:reduce){
  .fr-mode__inner,
  .fr-mode__toggle:checked ~ .fr-mode__inner,
  .fr-mode__toggle:focus-visible ~ .fr-mode__inner,
  .fr-mode__inner:focus-within,
  .fr-mode:hover .fr-mode__inner{
    transform:none !important;
  }

  .fr-mode__face{
    transition:opacity .25s ease !important;
  }

  .fr-mode__back{
    transform:none;
    opacity:0;
  }

  .fr-mode__toggle:checked ~ .fr-mode__inner .fr-mode__back,
  .fr-mode__toggle:focus-visible ~ .fr-mode__inner .fr-mode__back,
  .fr-mode__inner:focus-within .fr-mode__back{
    opacity:1;
  }

  .fr-mode__toggle:checked ~ .fr-mode__inner .fr-mode__front,
  .fr-mode__toggle:focus-visible ~ .fr-mode__inner .fr-mode__front,
  .fr-mode__inner:focus-within .fr-mode__front{
    opacity:0;
  }
}

@media (prefers-reduced-motion:reduce) and (hover:hover) and (pointer:fine){
  .fr-mode:hover .fr-mode__back{
    opacity:1;
  }

  .fr-mode:hover .fr-mode__front{
    opacity:0;
  }
}

/* =========================
   ENGAGEMENT TYPE FLIP CARDS
   Big number and name on the front; description and "best when" on the
   back. Same cards as the corporate page's process steps.
   Adapted from CodeFronts' process-steps flip card grid (MIT licensed).

   Interaction:
   - Mouse: hover to flip, click to keep it flipped
   - Touch: tap to flip, tap again to flip back
   - Keyboard: Tab to a card, Space to flip
   Each card's color comes from --step-accent / --step-accent-rgb on its <li>.
========================= */

.fr-flip-grid{
  list-style:none;
  margin:30px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.fr-flip-grid--three{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  margin-top:0;
}

.fr-flip{
  --step-accent:#A6FFB5;
  --step-accent-rgb:166,255,181;
  position:relative;
  perspective:1100px;
  border-radius:24px;
}

/* The checkbox holds the flipped state; the label covers the card as the click target */
.fr-flip__toggle,
.fr-flip__sr{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

.fr-flip__hit{
  position:absolute;
  inset:0;
  z-index:3;
  border-radius:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.fr-flip__toggle:focus-visible + .fr-flip__hit{
  outline:2px solid var(--step-accent);
  outline-offset:4px;
}

/* Both faces share one grid cell, so the card grows to fit the longer side */
.fr-flip__inner{
  position:relative;
  z-index:1;
  display:grid;
  height:100%;
  min-height:270px;
  transform-style:preserve-3d;
  transition:transform .7s cubic-bezier(.4, 0, .2, 1);
}

.fr-flip__face{
  grid-area:1 / 1;
  display:flex;
  flex-direction:column;
  padding:24px 22px;
  border:1px solid rgba(var(--step-accent-rgb),.22);
  border-radius:24px;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

.fr-flip__front{
  position:relative;
  justify-content:space-between;
  transform:rotateY(0deg);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--step-accent-rgb),.15), transparent 62%),
    rgba(13, 18, 27, .84);
  box-shadow:0 18px 40px -24px rgba(var(--step-accent-rgb), .45);
}

.fr-flip__num{
  color:var(--step-accent);
  font-size:clamp(2.6rem, 4vw, 3.4rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-.04em;
}

.fr-flip__word{
  margin:0;
  padding-right:28px;
  color:#fff;
  font-size:1.35rem;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.02em;
}

/* Small flip indicator, bottom right. Delete the <svg> in the HTML to remove it. */
.fr-flip__hint{
  position:absolute;
  right:20px;
  bottom:24px;
  width:18px;
  height:18px;
  fill:none;
  stroke:var(--step-accent);
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.55;
}

.fr-flip__back{
  gap:12px;
  transform:rotateY(180deg);
  background:
    linear-gradient(160deg, rgba(var(--step-accent-rgb),.11), transparent 55%),
    rgba(11, 15, 22, .95);
}

.fr-flip__label{
  margin:0;
  color:var(--step-accent);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.fr-flip__line{
  margin:0;
  color:rgba(255, 255, 255, .88);
  font-size:.92rem;
  line-height:1.5;
}

/* Small heading above the list (used on this page for "Best when") */
.fr-flip__sublabel{
  margin:2px 0 -4px;
  padding-top:12px;
  border-top:1px solid rgba(255, 255, 255, .08);
  color:rgba(255, 255, 255, .45);
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.fr-flip__list{
  list-style:none;
  display:grid;
  gap:8px;
  margin:0;
  padding:12px 0 0;
  border-top:1px solid rgba(255, 255, 255, .08);
  color:rgba(255, 255, 255, .68);
  font-size:.84rem;
  line-height:1.45;
}

.fr-flip__sublabel + .fr-flip__list{
  padding-top:0;
  border-top:0;
}

.fr-flip__list li{
  position:relative;
  padding-left:16px;
}

.fr-flip__list li::before{
  content:"";
  position:absolute;
  left:1px;
  top:.5em;
  width:6px;
  height:6px;
  border-radius:1.5px;
  background:var(--step-accent);
  transform:rotate(45deg);
}

.fr-flip__toggle:checked ~ .fr-flip__inner{
  transform:rotateY(180deg);
}

@media (hover:hover) and (pointer:fine){
  .fr-flip:hover .fr-flip__inner{
    transform:rotateY(180deg);
  }
}

@media (max-width:980px){
  .fr-flip-grid,
  .fr-flip-grid--three{
    grid-template-columns:1fr;
  }

  .fr-flip__inner{
    min-height:220px;
  }
}

/* Reduced motion: crossfade instead of a 3D spin */
@media (prefers-reduced-motion:reduce){
  .fr-flip__inner,
  .fr-flip__toggle:checked ~ .fr-flip__inner,
  .fr-flip:hover .fr-flip__inner{
    transform:none !important;
  }

  .fr-flip__face{
    transition:opacity .25s ease !important;
  }

  .fr-flip__back{
    transform:none;
    opacity:0;
  }

  .fr-flip__toggle:checked ~ .fr-flip__inner .fr-flip__back{
    opacity:1;
  }

  .fr-flip__toggle:checked ~ .fr-flip__inner .fr-flip__front{
    opacity:0;
  }
}

@media (prefers-reduced-motion:reduce) and (hover:hover) and (pointer:fine){
  .fr-flip:hover .fr-flip__back{
    opacity:1;
  }

  .fr-flip:hover .fr-flip__front{
    opacity:0;
  }
}

/* =========================
   IN-DEPTH PAGE OVERRIDES
   These sit after the flip card rules on purpose: same specificity, so the
   later rule wins.
========================= */

/* Capability cards: the one-line description sits on the front, so let it
   use the full width instead of the 30ch cap used on the capabilities page */
.fr-mode__tagline{
  max-width:none;
}

.fr-mode-grid--two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

@media (min-width:981px){
  .fr-mode__inner{
    min-height:290px;
  }

  .fr-flip__inner{
    min-height:230px;
  }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width:980px){
  /* Hero stacks: photo on top, card overlapping its lower edge by 72px */
  .cap-stage{
    grid-template-rows:auto 72px auto;
  }

  .cap-stage--hero .cap-stage__photo{
    grid-column:1 / 13;
    min-height:clamp(320px, 70vw, 480px);
  }

  .cap-stage--hero .cap-stage__card{
    grid-column:2 / 12;
    align-self:start;
  }

  .cap-stage--hero .cap-stage__chip{
    grid-column:1 / 13;
    justify-self:start;
    margin:18px 0 0 18px;
  }

  .fr-mode-grid--two{
    grid-template-columns:1fr;
  }

  .cap-final__inner{
    grid-template-columns:1fr;
  }

  .cap-final__inner .cap-actions{
    justify-content:flex-start;
  }
}

@media (max-width:640px){
  .cap-section{
    padding:40px 0;
  }

  .cap-section--band{
    padding:4px 0;
  }

  .cap-band{
    border-radius:26px;
  }

  .cap-stage--hero .cap-stage__card{
    grid-column:1 / 13;
    margin:0 10px;
  }

  .cap-stage__photo{
    border-radius:26px;
  }

  .cap-facts{
    gap:8px;
  }

  .cap-facts dt{
    font-size:.58rem;
  }

  .cap-facts dd{
    font-size:.95rem;
  }

  .cap-jump a{
    flex:1 1 auto;
    justify-content:center;
  }

  .cap-actions .fr-button{
    flex:1 1 auto;
  }
}
