/* Vince Moretto Álvarez - portfolio redesign */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Sora:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #0b1524;
  --ink-soft: #15233a;
  --muted: #6b7c93;
  --muted-on-dark: rgba(232, 240, 255, 0.78);
  --line: #d7e0eb;
  --line-soft: #e8eef5;
  --soft: #f3f6fa;
  --white: #ffffff;
  --blue-deep: #0a1628;
  --blue-mid: #1a3a5c;
  --blue-accent: #2f6fad;
  --blue-cta: #1e4d7b;
  --teal: #2a9a9a;
  --focus: #3d7ab8;
  --radius: 4px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100%;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.flight .flight-tick:focus-visible,
.flight .flight-nav:focus-visible {
  outline-color: #9ec0e6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* --- Site header (inner pages) --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: min(var(--max), calc(100% - 2 * var(--pad)));
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark:hover {
  color: var(--blue-cta);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a[aria-current="page"] {
  color: var(--blue-cta);
}

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

/* Hero nav (over dark) */
.hero-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem var(--pad) 0;
}

.hero-header .nav a {
  color: rgba(255, 255, 255, 0.92);
}

.hero-header .nav a:hover,
.hero-header .nav a[aria-current="page"] {
  color: #fff;
}

.hero-header .nav-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
  pointer-events: none;
}

/* --- Landing hero --- */
.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-deep);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  animation: hero-fade-in 1.6s ease-out 0.1s forwards;
  overflow: hidden;
}

.hero-atmosphere img {
  width: 108%;
  height: 108%;
  margin: -4%;
  object-fit: cover;
  object-position: center 32%;
  filter: blur(7px) saturate(0.92) brightness(0.72) contrast(0.96);
  transform: scale(1.02);
  animation: hero-atmosphere-drift 28s ease-in-out 1.6s infinite alternate;
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(10, 20, 36, 0.55) 0%, rgba(12, 26, 44, 0.32) 46%, rgba(10, 22, 40, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 16, 30, 0.28) 0%, rgba(8, 16, 30, 0.08) 40%, rgba(8, 16, 30, 0.42) 100%);
  backdrop-filter: blur(10px) saturate(0.9);
  -webkit-backdrop-filter: blur(10px) saturate(0.9);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 60% at 28% 48%, rgba(232, 240, 255, 0.06) 0%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%, rgba(8, 16, 30, 0.18) 100%);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 5.5rem 0 3rem;
}

.hero-copy {
  padding-bottom: 0;
  max-width: 36rem;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: text-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero-purpose {
  margin: 0 0 1.85rem;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(232, 240, 255, 0.9);
  max-width: 30rem;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: text-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.cta-group {
  opacity: 0;
  transform: translateY(1rem);
  animation: text-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.72s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  background: var(--blue-cta);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--blue-cta);
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.cta .arrow {
  transition: transform 0.25s ease;
}

.cta:hover .arrow {
  transform: translateX(4px);
}

.hero-portrait {
  align-self: center;
  justify-self: end;
  width: min(100%, 372px);
  opacity: 0;
  transform: translateY(1.5rem);
  animation: text-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 1px solid rgba(232, 240, 255, 0.14);
  background: rgba(8, 16, 30, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-atmosphere-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
}

@keyframes text-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Shared page chrome --- */
.page-main {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.page-intro {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

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

.page-intro h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-block {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.section-block h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.section-block > .lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

/* --- Work (migrated) --- */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.15rem;
  margin-bottom: 0.5rem;
}

.section-heading h2 {
  font-size: 1.65rem;
}

.section-heading > span {
  font-size: 0.85rem;
  color: var(--muted);
}

.work-scan {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.project {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.project-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.project-copy h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  margin-bottom: 1.2rem;
}

.project-copy > p:not(.eyebrow):not(.ownership):not(.scope) {
  color: var(--muted);
}

.project-copy > .eyebrow {
  display: inline-block;
  background: var(--blue-cta);
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 7px;
  letter-spacing: 0.09em;
  line-height: 1.5;
  max-width: 100%;
}

.ownership {
  font-size: 1rem;
}

.ownership strong {
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.15rem 0;
}

.tags span {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.scope {
  font-size: 0.87rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.slide {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f5f7;
  border: 1px solid #ddd;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case {
  margin-top: 1.75rem;
}

.case summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
}

.case summary::-webkit-details-marker {
  display: none;
}

.case summary > span {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.case[open] summary > span {
  transform: rotate(45deg);
}

.case-body {
  padding: 2.2rem 0 0.25rem;
}

.case-lead {
  max-width: 800px;
  margin-bottom: 2rem;
}

.case-lead h4 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  max-width: 660px;
  margin: 0 0 1.1rem;
}

.case-lead > p:last-child {
  font-size: 1.08rem;
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  margin: 1.4rem 0;
}

h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.7rem;
  letter-spacing: 0;
}

.case-grid p,
figcaption {
  color: var(--muted);
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.9rem;
  margin-top: 0.85rem;
  line-height: 1.6;
}

figcaption strong {
  display: block;
  color: var(--ink);
}

.evidence-note {
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  margin-top: 1.5rem;
  max-width: 820px;
}

.video-shell {
  padding: 1.25rem;
  background: var(--ink);
  color: white;
}

.video-shell .eyebrow {
  color: #afc7e6;
  margin-bottom: 0.85rem;
}

.video-shell p {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
}

.video-shell a {
  color: white;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  width: 100%;
  border: 0;
}

.supporting {
  background: var(--soft);
  padding: 1.65rem;
  margin-top: 1.75rem;
}

.supporting p {
  max-width: 800px;
}

.episode-links {
  display: grid;
  gap: 0.75rem;
}

.episode-links a {
  display: block;
  text-decoration: none;
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: white;
  transition: border-color 0.2s ease;
}

.episode-links a:hover {
  border-color: var(--blue-accent);
}

.episode-links strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  display: block;
}

.episode-links small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.quote {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.4;
  border-left: 3px solid var(--blue-accent);
  padding: 0.3rem 0 0.3rem 1.4rem;
  margin: 1.4rem 0;
  max-width: 800px;
}

.learning-sequence {
  margin: 2.4rem 0;
  border-top: 1px solid var(--line);
}

.sequence-heading {
  padding-top: 1.9rem;
  max-width: 800px;
}

.sequence-heading h4 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.sequence-heading > p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.learning-step {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 2.1rem;
  align-items: center;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}

.learning-step figcaption {
  margin: 0;
  font-size: 1rem;
}

.learning-step h5 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0.55rem 0 0.9rem;
}

.learning-step figcaption p {
  margin-bottom: 0;
}

.step-number {
  font-size: 0.88rem;
  color: var(--blue-accent);
  font-weight: 700;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.65rem;
  padding: 1.65rem;
  background: var(--soft);
  margin: 1.75rem 0 2.2rem;
}

.use-cases p {
  color: var(--muted);
  margin: 0;
}

.workflow-title {
  margin-top: 2rem;
}

.production-workflow {
  list-style: none;
  counter-reset: production;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.65rem 2.4rem;
  margin: 1.15rem 0 2.2rem;
  padding: 0;
}

.production-workflow li {
  counter-increment: production;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}

.production-workflow li::before {
  content: "0" counter(production);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-accent);
  margin-bottom: 0.55rem;
}

.production-workflow p {
  color: var(--muted);
  margin: 0;
}

/* --- About --- */
.about-open {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.about-open h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}

.about-open p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
}

.about-open .inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.about-now {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-now-copy h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  margin: 0 0 1rem;
}

.about-now-copy p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  max-width: 38rem;
}

.about-now-copy p:last-child {
  margin-bottom: 0;
}

.about-now-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.about-strengths h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin: 0 0 0.85rem;
}

.about-strengths ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.about-strengths li {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-strengths strong {
  color: var(--ink);
  font-weight: 600;
}

.about-top {
  padding-bottom: 0;
}

.about-bottom {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.reveal-block {
  opacity: 0;
  transform: translateY(1rem);
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Interactive dark career flight */
.flight {
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.75rem);
  color: rgba(232, 240, 255, 0.92);
  background: var(--blue-deep);
  overflow: hidden;
}

.flight-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 55% at 15% 0%, rgba(47, 111, 173, 0.28), transparent 55%),
    radial-gradient(70% 50% at 90% 80%, rgba(42, 154, 154, 0.16), transparent 50%),
    linear-gradient(180deg, rgba(8, 16, 30, 0.2), transparent 30%);
  pointer-events: none;
}

.flight-inner {
  position: relative;
  z-index: 1;
}

.flight-intro {
  max-width: 36rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.flight-intro .eyebrow {
  color: #9ec0e6;
}

.flight-intro h2 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  margin: 0 0 0.75rem;
  color: #fff;
}

.flight-intro p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 1.02rem;
}

.flight-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.flight-tick {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 240, 255, 0.55);
  text-align: left;
  padding: 0.55rem 0.35rem 0.7rem;
  cursor: pointer;
  font: inherit;
  border-radius: 0;
  transition: color 0.25s ease;
}

.flight-tick:hover {
  color: rgba(232, 240, 255, 0.9);
}

.flight-tick.is-active {
  color: #fff;
}

.tick-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb0e0;
  margin-bottom: 0.2rem;
}

.flight-tick.is-active .tick-year {
  color: #9ec0e6;
}

.tick-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.flight-rail {
  height: 2px;
  background: rgba(232, 240, 255, 0.12);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

.flight-rail-fill {
  display: block;
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--blue-accent), var(--teal));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.flight-stage {
  position: relative;
}

.flight-year {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(158, 192, 230, 0.35);
  transition: opacity 0.28s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.flight-year.is-fly-out {
  opacity: 0;
  transform: translateX(-18%) scale(0.96);
}

.flight-year.is-fly-in {
  animation: flight-year-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes flight-year-in {
  from {
    opacity: 0;
    transform: translateX(22%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.flight-viewport {
  position: relative;
  min-height: 22rem;
}

.flight-panel {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: center;
}

.flight-panel--portrait,
.flight-panel:has(.flight-media--portrait) {
  align-items: start;
}

.flight-panel.is-active {
  display: grid;
  animation: flight-panel-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flight-panel.is-active.dir-back {
  animation-name: flight-panel-in-back;
}

@keyframes flight-panel-in {
  from {
    opacity: 0;
    transform: translateX(10%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes flight-panel-in-back {
  from {
    opacity: 0;
    transform: translateX(-10%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.flight-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: rgba(8, 16, 30, 0.55);
  aspect-ratio: 3 / 2;
}

.flight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: middle;
}

.flight-media--portrait {
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 36rem);
  width: min(100%, 24rem);
  justify-self: start;
  background: rgba(8, 16, 30, 0.28);
}

.flight-media--portrait img {
  object-fit: contain;
  object-position: center;
}

.flight-media--brand {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(26, 58, 92, 0.85), rgba(10, 22, 40, 0.95));
  border: 1px solid rgba(158, 192, 230, 0.18);
}

.flight-brand {
  width: min(72%, 18rem);
  padding: 1.5rem;
  display: grid;
  place-items: center;
}

.flight-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.flight-brand--weber {
  width: min(78%, 20rem);
  padding: 1.75rem 1.5rem;
  background: rgba(8, 16, 30, 0.55);
  border: 1px solid rgba(158, 192, 230, 0.16);
}

.flight-copy {
  max-width: 30rem;
}

.flight-era {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ec0e6;
}

.flight-copy h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  margin: 0 0 0.7rem;
  color: #fff;
}

.flight-beat {
  margin: 0 0 0.85rem;
  color: rgba(232, 240, 255, 0.88);
  font-size: 1.05rem;
  font-weight: 500;
}

.flight-copy > p:last-child {
  margin: 0;
  color: var(--muted-on-dark);
}

.flight-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 240, 255, 0.12);
}

.flight-nav {
  appearance: none;
  border: 1px solid rgba(232, 240, 255, 0.28);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.flight-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 240, 255, 0.55);
}

.flight-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.flight-count {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(232, 240, 255, 0.55);
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2.5rem 0;
}

.credentials article h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.credentials p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.craft {
  margin: 0 0 3rem;
  max-width: 46rem;
}

.craft h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.craft p {
  margin: 0;
  color: var(--muted);
}

.craft-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.craft-list li {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 3px;
}

/* --- Methodology --- */
.page-methodology {
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(47, 111, 173, 0.08), transparent 55%),
    var(--white);
}

.method-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-deep);
  min-height: min(72vh, 38rem);
  display: grid;
  align-items: end;
}

.method-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.method-hero-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.04);
}

.method-hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 16, 30, 0.88) 0%, rgba(8, 16, 30, 0.62) 48%, rgba(8, 16, 30, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 16, 30, 0.2) 0%, rgba(8, 16, 30, 0.72) 100%);
}

.method-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(2.75rem, 5vw, 4rem);
  max-width: 40rem;
}

.method-hero-eyebrow {
  color: #9ec0e6;
}

.method-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: text-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.method-hero-note {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 1.1rem;
  max-width: 26rem;
  color: rgba(232, 240, 255, 0.95);
  opacity: 0;
  transform: translateY(1rem);
  animation: text-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.method-hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted-on-dark);
  font-size: 1.02rem;
  max-width: 34rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: text-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

.method-hero-cta {
  opacity: 0;
  transform: translateY(0.85rem);
  animation: text-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.68s forwards;
}

.method-explorer {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 1rem;
}

.method-explorer-intro {
  max-width: 38rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.method-explorer-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.7rem;
}

.method-explorer-intro p {
  margin: 0;
  color: var(--muted);
}

.method-board {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
  min-height: 28rem;
}

.method-menu {
  display: grid;
  gap: 0.2rem;
  align-content: start;
}

.method-chip {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--line-soft);
  border-radius: 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.method-chip:hover,
.method-chip.is-hot {
  color: var(--ink);
  background: rgba(47, 111, 173, 0.07);
  border-left-color: var(--blue-accent);
  transform: translateX(2px);
}

.method-chip.is-active {
  color: var(--ink);
  background: rgba(47, 111, 173, 0.1);
  border-left-color: var(--blue-accent);
  font-weight: 600;
}

.chip-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
}

.chip-label {
  font-size: 0.95rem;
}

.method-stage {
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(47, 111, 173, 0.14), transparent 55%),
    linear-gradient(165deg, #0d1a2c 0%, #13263f 55%, #0a1628 100%);
  color: rgba(232, 240, 255, 0.92);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  min-height: 26rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  overflow: hidden;
}

.method-stage-progress {
  height: 2px;
  background: rgba(232, 240, 255, 0.12);
  overflow: hidden;
}

.method-stage-progress-fill {
  display: block;
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, var(--blue-accent), var(--teal));
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.method-stage-index {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: rgba(158, 192, 230, 0.22);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.method-stage.is-switching .method-stage-index,
.method-stage.is-switching .method-stage-body {
  opacity: 0;
  transform: translateY(0.6rem);
}

.method-stage-body {
  max-width: 34rem;
  align-self: center;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.method-stage-body h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: #fff;
}

.method-stage-job {
  margin: 0 0 0.9rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: rgba(232, 240, 255, 0.9);
}

.method-stage-body > p:last-of-type {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 1.02rem;
}

.method-stage-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #9ec0e6;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.method-stage-link[hidden] {
  display: none !important;
}

.method-stage-link:hover {
  color: #fff;
}

.method-stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 240, 255, 0.12);
}

.method-nav {
  appearance: none;
  border: 1px solid rgba(232, 240, 255, 0.28);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.method-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 240, 255, 0.55);
}

.method-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.method-stage-count {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(232, 240, 255, 0.55);
}

.method-close {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 0.5rem;
  max-width: 36rem;
}

.method-close-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.credentials .muted {
  color: var(--muted);
  font-size: 0.85em;
}

/* --- Footer --- */
.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--ink);
  padding: 2.5rem 0 3.25rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.site-footer h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.site-footer p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.footer-meta {
  font-size: 0.9rem;
  padding-top: 1.5rem;
}

.footer-meta .muted {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 1.75rem;
}

/* --- Landing page footer on light --- */
.landing-foot {
  background: var(--white);
  color: var(--ink);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-stage {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 4.5rem 0 2.5rem;
  }

  .hero-copy {
    order: 2;
    padding-bottom: 0;
    max-width: none;
  }

  .hero-portrait {
    order: 1;
    justify-self: start;
    align-self: center;
    width: min(236px, 52vw);
    margin-top: 0.5rem;
  }

  .hero-atmosphere img {
    object-position: 28% center;
    filter: blur(8px) saturate(0.9) brightness(0.68) contrast(0.96);
  }

  .hero-atmosphere::before {
    background:
      linear-gradient(180deg, rgba(10, 20, 36, 0.42) 0%, rgba(10, 20, 36, 0.55) 48%, rgba(8, 16, 30, 0.72) 100%);
  }

  .hero-atmosphere::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 35%, rgba(8, 16, 30, 0.22) 100%);
  }

  .project-preview {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .case-grid,
  .credentials,
  .about-now,
  .use-cases,
  .production-workflow,
  .site-footer,
  .method-board {
    grid-template-columns: 1fr;
  }

  .method-menu {
    display: flex;
    gap: 0.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .method-chip {
    flex: 0 0 auto;
    min-width: 5.5rem;
    border-left: 0;
    border-bottom: 2px solid var(--line-soft);
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.55rem 0.75rem 0.7rem;
  }

  .method-chip:hover,
  .method-chip.is-hot,
  .method-chip.is-active {
    transform: none;
    border-left-color: transparent;
    border-bottom-color: var(--blue-accent);
  }

  .method-stage {
    min-height: 22rem;
  }

  .flight-track {
    display: flex;
    gap: 0.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .flight-tick {
    flex: 0 0 auto;
    min-width: 4.75rem;
    padding: 0.45rem 0.55rem 0.65rem;
  }

  .flight-panel,
  .flight-panel.is-active {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .flight-year {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .learning-step {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-header .nav-sep {
    display: none;
  }

  .hero-header .nav {
    gap: 0.85rem 1rem;
    justify-content: flex-end;
    max-width: 70%;
  }

  .hero-name {
    font-size: clamp(2.35rem, 9vw, 3rem);
  }

  .credentials {
    gap: 1.5rem;
  }
}

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

  .hero-atmosphere,
  .hero-atmosphere img,
  .hero-name,
  .hero-purpose,
  .cta-group,
  .hero-portrait,
  .reveal-block,
  .cta,
  .cta .arrow,
  .method-hero h1,
  .method-hero-note,
  .method-hero-lead,
  .method-hero-cta,
  .method-stage-index,
  .method-stage-body,
  .method-stage-progress-fill,
  .method-chip,
  .flight-year,
  .flight-panel,
  .flight-panel.is-active,
  .flight-rail-fill {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .method-stage.is-switching .method-stage-index,
  .method-stage.is-switching .method-stage-body {
    opacity: 1 !important;
    transform: none !important;
  }

  .flight-year.is-fly-out,
  .flight-year.is-fly-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
