/* Formatfifty9 - site styles
   Type: Saira (display/UI) + Inter (body). Eurostile Extended not licensed yet. */

:root {
  --ground: #0A0C0E;
  --ground-2: #101317;
  --ground-3: #161A1E;
  --ink: #FFFFFF;
  --ink-muted: rgba(255, 255, 255, 0.68);
  --ink-faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #C4A574;
  --accent-soft: rgba(196, 165, 116, 0.18);
  --nav: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-display: "Saira", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Nav --- */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--nav);
  display: flex;
  align-items: center;
  background: rgba(10, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-nav__inner {
  width: min(100%, calc(var(--max) + var(--gutter) * 2));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-nav__logo img {
  height: 28px;
  width: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.site-nav__links > li {
  position: relative;
}

.site-nav__links > li > a,
.site-nav__drop-btn {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.site-nav__links > li > a:hover,
.site-nav__drop-btn:hover,
.site-nav__links > li > a[aria-current="page"] {
  color: var(--ink);
}

.site-nav__drop-btn svg {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 260px;
  padding: 0.5rem;
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 80;
}

.site-nav__links > li:hover > .site-nav__dropdown,
.site-nav__links > li:focus-within > .site-nav__dropdown,
.site-nav__links > li.is-open > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  border-radius: 5px;
  text-transform: none;
  letter-spacing: 0;
}

.site-nav__dropdown a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.site-nav__cta {
  font-family: var(--font-display);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ground);
  background: var(--ink);
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-nav__cta:hover {
  background: var(--accent);
  color: var(--ground);
}

.site-nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.site-nav__burger span::before,
.site-nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.site-nav__burger span::before { top: -6px; }
.site-nav__burger span::after { top: 6px; }

@media (max-width: 900px) {
  .site-nav__burger { display: inline-flex; }
  .site-nav__cta { display: none; }

  .site-nav__links {
    position: fixed;
    inset: var(--nav) 0 auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: rgba(10, 12, 14, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--nav));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  body.nav-open .site-nav__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__links > li > a,
  .site-nav__drop-btn {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }

  .site-nav__dropdown {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.5rem 0.75rem;
    display: none;
  }

  .site-nav__links > li.is-open > .site-nav__dropdown {
    display: block;
  }

  .site-nav__mobile-cta {
    display: block;
    margin-top: 1rem;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ground);
    background: var(--ink);
    border-radius: 999px;
  }
}

@media (min-width: 901px) {
  .site-nav__mobile-cta { display: none; }
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--ground);
}

.btn--primary:hover {
  background: var(--accent);
  color: var(--ground);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Portal hero --- */
.portal {
  position: relative;
  height: 250vh;
  margin-top: var(--nav);
}

.portal__stage {
  position: sticky;
  top: var(--nav);
  height: calc(100svh - var(--nav));
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: var(--ground-2);
}

.portal__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.portal__frame-img {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  transform: scale(1.22);
  will-change: transform;
}

.portal__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 20%, rgba(10, 12, 14, 0.72) 78%);
}

.portal__corner {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52vw;
  background: var(--ground);
  z-index: 3;
  will-change: transform;
}

.portal__corner--left { left: 0; }
.portal__corner--right { right: 0; }

.portal__title {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 8.5vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  will-change: transform, letter-spacing;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.portal__title span {
  display: block;
  text-transform: uppercase;
  will-change: transform;
}

.portal__sub {
  position: absolute;
  z-index: 5;
  top: calc(50% + clamp(2.5rem, 8vw, 5.5rem));
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 36rem);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  will-change: opacity;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 0, 0, 0.5);
  background: rgba(10, 12, 14, 0.35);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.portal__kicker,
.portal__labels {
  position: absolute;
  z-index: 6;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.portal__kicker { top: 1.25rem; }
.portal__labels {
  bottom: 1.25rem;
  justify-content: center;
  text-align: center;
}

.lab {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 700px) {
  .portal__corner { width: 56vw; }
  .portal__title {
    font-size: clamp(28px, 9vw, 56px);
  }
  .portal__kicker {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* Reduced motion: open state via CSS class set by JS (and fallback) */
.portal.is-open .portal__corner--left { transform: translateX(-115%); }
.portal.is-open .portal__corner--right { transform: translateX(115%); }
.portal.is-open .portal__frame-img { transform: scale(1); }
.portal.is-open .portal__title { transform: scale(1.12); letter-spacing: -0.04em; }
.portal.is-open .portal__title span { text-transform: uppercase; }
.portal.is-open .portal__title span:first-child { transform: translateX(-45%); }
.portal.is-open .portal__title span:last-child { transform: translateX(45%); }
.portal.is-open .portal__sub { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .portal { height: auto; }
  .portal__stage { position: relative; top: 0; }
  .portal__corner--left { transform: translateX(-115%); }
  .portal__corner--right { transform: translateX(115%); }
  .portal__frame-img { transform: scale(1); }
  .portal__title { transform: scale(1.06); letter-spacing: 0; }
  .portal__title span { text-transform: uppercase; }
  .portal__title span:first-child { transform: translateX(-20%); }
  .portal__title span:last-child { transform: translateX(20%); }
  .portal__sub { opacity: 1; }
}

/* --- Sections --- */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) var(--gutter);
}

.section--tight {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.section__lead {
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.intro-strip {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}

.intro-strip__inner {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

@media (min-width: 800px) {
  .intro-strip__inner {
    grid-template-columns: 1.4fr 1fr;
  }
  .intro-strip .btn-row {
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* Products grid */
.products-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: end;
    min-height: 220px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.35rem;
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 160px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.product-card:hover {
  border-color: rgba(196, 165, 116, 0.45);
  background: var(--ground-3);
  transform: translateY(-2px);
  color: var(--ink);
}

.product-card--featured {
  background:
    linear-gradient(135deg, rgba(196, 165, 116, 0.08), transparent 55%),
    var(--ground-2);
  border-color: rgba(196, 165, 116, 0.28);
}

.product-card__tag {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-card h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.product-card--featured h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  max-width: 16ch;
}

.product-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  flex: 1;
}

.product-card__link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: auto;
}

.product-card:hover .product-card__link {
  color: var(--accent);
}

/* Who we serve: text-forward ghost panels (no media) */
.section--serve {
  padding-top: 0;
}

.ways {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

@media (min-width: 720px) {
  .ways { grid-template-columns: 1fr 1fr; }
}

.way-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%),
    transparent;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.way-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.way-card:hover {
  border-color: rgba(196, 165, 116, 0.4);
  background:
    linear-gradient(180deg, rgba(196, 165, 116, 0.05), transparent 70%),
    transparent;
}

.way-card:hover::before {
  width: 100%;
}

.way-card__index {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.way-card h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: 0.01em;
}

.way-card p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
  max-width: 34ch;
  flex: 1;
}

.way-card a {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.way-card a:hover {
  color: var(--ink);
}

/* How it works */
.steps {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  gap: 0.5rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .step {
    grid-template-columns: 8rem 10rem 1fr;
    align-items: baseline;
  }
}

.step__num {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step p {
  color: var(--ink-muted);
}

/* Industries */
.industries {
  display: grid;
  gap: 0.65rem;
  margin-top: 2.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .industries { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .industries { grid-template-columns: repeat(4, 1fr); }
}

.industry-tile {
  padding: 1.15rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ground-2);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink-muted);
}

/* Made in-house */
.made-copy {
  max-width: 48rem;
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.made-copy strong {
  color: var(--ink);
  font-weight: 500;
}

.made-copy__lead {
  color: var(--ink);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.55;
  max-width: 44rem;
}

/* Made in-house: capability cards (text-forward, echoes .way-card) */
.capability-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .capability-grid { grid-template-columns: repeat(5, 1fr); }
}

.capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.35rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%),
    transparent;
  overflow: hidden;
}

.capability-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.capability-card:hover {
  border-color: rgba(196, 165, 116, 0.4);
}

.capability-card:hover::before {
  width: 100%;
}

.capability-card__index {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.capability-card h3 {
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.capability-card p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Final CTA */
.final-cta {
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(196, 165, 116, 0.08), transparent 70%),
    var(--ground);
}

.final-cta .section__title {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-row {
  justify-content: center;
}

.placeholder-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* Footer */
.site-footer {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  background: var(--ground);
}

.site-footer__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.site-footer__draft {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Stub pages */
.stub {
  min-height: calc(100svh - var(--nav));
  padding: calc(var(--nav) + 4rem) var(--gutter) 4rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.stub__inner {
  max-width: 32rem;
}

.stub h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.stub p {
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* --- Filler / product media --- */
.product-card__media {
  position: relative;
  margin: -1.5rem -1.35rem 0.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: var(--ground-3);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card--featured .product-card__media {
  margin: -1.5rem -1.35rem -1.5rem -1.35rem;
  aspect-ratio: 4 / 3;
  border-radius: 12px 0 0 12px;
  min-height: 220px;
}

@media (max-width: 979px) {
  .product-card--featured .product-card__media {
    margin: -1.5rem -1.35rem 0.25rem;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

.product-card--featured {
  padding-top: 1.5rem;
  overflow: hidden;
}

@media (min-width: 980px) {
  .product-card--featured {
    grid-template-columns: 1.15fr 1fr;
    padding: 0;
    gap: 0;
  }
  .product-card--featured .product-card__body {
    padding: 1.75rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-end;
  }
}

.temp-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(10, 12, 14, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.made-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .made-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }
  .made-grid__wide {
    grid-row: 1 / 3;
  }
}

.made-shot {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ground-2);
  aspect-ratio: 4 / 3;
}

.made-shot--wide {
  aspect-ratio: 3 / 4;
}

@media (max-width: 799px) {
  .made-shot--wide { aspect-ratio: 16 / 10; }
}

/* Made in-house: single primary wide shot */
.made-grid--feature {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.made-shot--feature {
  margin: 0;
  aspect-ratio: 3 / 2;
}

@media (min-width: 800px) {
  .made-grid.made-grid--feature { grid-template-columns: 1fr; }
  .made-shot--feature { aspect-ratio: 21 / 9; }
}

.made-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step__media {
  position: relative;
  margin-top: 0.75rem;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ground-2);
}

.step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 700px) {
  .step.has-media {
    grid-template-columns: 8rem 10rem 1fr minmax(140px, 220px);
    align-items: center;
  }
  .step__media {
    margin-top: 0;
    max-width: none;
  }
}

/* Scroll reveal (Superdesign Neural Noir recipe): opacity 0 + 30px lift -> in place, 1s, play once.
   Only active once site.js adds .js-reveal to <html>, so no-JS visitors see everything.
   The portal hero is never tagged; it keeps its own scroll scrub. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(.22, 1, .36, 1),
    transform 1s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 100ms);
}

.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}

/* Product cards: keep hover lift + colour transitions after reveal */
.js-reveal .product-card.reveal.in {
  transition:
    opacity 1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 100ms),
    transform 1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 100ms),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.js-reveal .product-card.reveal.in:hover {
  transform: translateY(-2px);
  transition-delay: 0s;
}

/* How it works: each step slides in on scroll (reveal-slide). Odd steps from the left, even from the right.
   Overrides the generic fade-up for .step only; other .reveal elements are untouched. */
.js-reveal .step.reveal {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.95s cubic-bezier(.22, 1, .36, 1),
    transform 0.95s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}

.js-reveal .step.reveal:nth-child(even) {
  transform: translateX(40px);
}

.js-reveal .step.reveal.in {
  opacity: 1;
  transform: none;
}

.steps {
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js-reveal .step.reveal,
  .js-reveal .step.reveal:nth-child(even) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
