/* =========================================================
   DR. GUILLAUME SAFAH — MULTI-PAGE PROFILE
   Portable static website. No framework or build step needed.
   ========================================================= */

:root {
  --ink: #171719;
  --ink-2: #27282c;
  --ink-3: #696c72;
  --silver-dark: #85898f;
  --silver: #b8bcc1;
  --silver-light: #e4e6e8;
  --silver-soft: #f0f1f2;
  --teal: #b78e42;
  --teal-bright: #ddc37f;
  --teal-soft: #eceef0;
  --gold: #c7a157;
  --gold-bright: #e2c87f;
  --gold-soft: #f4ecdc;
  --paper: #f6f6f5;
  --paper-2: #e9ebed;
  --white: #ffffff;
  --muted: #6d6f74;
  --line: rgba(23, 23, 25, 0.13);
  --line-light: rgba(255, 255, 255, 0.15);
  --metal-silver: linear-gradient(145deg, #ffffff 0%, #f2f3f4 55%, #e6e8ea 100%);
  --metal-dark: linear-gradient(145deg, #111113 0%, #2a2b2f 52%, #171719 100%);
  --metal-gold: linear-gradient(135deg, #96702c 0%, #c8a258 52%, #e4cc8a 100%);
  --shadow-sm: 0 14px 40px rgba(20, 20, 22, 0.08);
  --shadow-lg: 0 40px 100px rgba(20, 20, 22, 0.18);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --container: min(1240px, calc(100% - 48px));
  --header-h: 86px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(184, 188, 193, 0.24), transparent 26rem),
    radial-gradient(circle at 94% 20%, rgba(199, 161, 87, 0.13), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: var(--metal-gold);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-sm {
  padding: 78px 0;
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 88% 10%, rgba(221, 195, 127, 0.14), transparent 25rem),
    radial-gradient(circle at 10% 92%, rgba(184, 188, 193, 0.12), transparent 24rem),
    var(--metal-dark);
}

.section-teal {
  color: var(--white);
  background:
    radial-gradient(circle at 84% 16%, rgba(199, 161, 87, 0.22), transparent 24rem),
    linear-gradient(135deg, #1a1a1d, #35363a);
}

.section-paper {
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(233,235,237,0.66));
  border-block: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stack {
  display: grid;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-dark .eyebrow,
.section-teal .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--teal-bright);
}

.display-title {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 4.8vw, 5rem);
  line-height: 0.98;
}

.section-title {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.5vw, 3.55rem);
}

.section-lead {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.72;
}

.section-dark .section-lead,
.section-teal .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

.text-balance {
  text-wrap: balance;
}

.accent-text {
  color: var(--teal);
}

.gold-text {
  color: var(--gold);
}

.muted {
  color: var(--muted);
}

.small-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.rule {
  height: 1px;
  margin: 42px 0;
  border: 0;
  background: var(--line);
}

/* Accessibility */
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

/* Page loader and progress */
.page-loader {
  position: fixed;
  z-index: 9998;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  transition: opacity 0.65s var(--ease), visibility 0.65s;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  font-family: Georgia, serif;
  font-size: 2.1rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 14px rgba(221, 195, 127, 0.05);
  animation: loaderPulse 1.4s infinite var(--ease);
}

@keyframes loaderPulse {
  50% { transform: scale(1.06); box-shadow: 0 0 0 24px rgba(221, 195, 127, 0); }
}

.scroll-progress {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--silver), var(--gold-bright));
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(246, 246, 245, 0.9);
  backdrop-filter: blur(20px);
}

.site-header.on-dark:not(.is-scrolled) {
  color: var(--white);
}

.header-inner {
  display: flex;
  width: var(--container);
  min-height: var(--header-h);
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  background: var(--metal-gold);
}

.brand-mark::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  content: "";
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}

.brand-text {
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-text span:last-child {
  color: var(--ink-3);
}

.on-dark:not(.is-scrolled) .brand-text span:last-child {
  color: var(--teal-bright);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  padding: 0 13px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  background: linear-gradient(145deg, #f4f5f6, #e6e8ea);
}

.header-cta {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.header-cta:hover {
  color: var(--white);
  background: var(--ink);
  transform: translateY(-2px);
}

.on-dark:not(.is-scrolled) .header-cta:hover {
  color: var(--ink);
  background: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 0.25s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.btn::after {
  width: 7px;
  height: 7px;
  content: "";
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::after {
  transform: translateX(4px) rotate(45deg);
}

.btn-primary {
  color: var(--ink);
  background: var(--metal-gold);
  box-shadow: 0 18px 45px rgba(183, 142, 66, 0.24);
}

.btn-primary:hover {
  background: var(--white);
}

.btn-dark {
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
  background: var(--ink-3);
}

.btn-ghost {
  border-color: currentColor;
  background: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--white);
}

/* Home hero */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  background: var(--ink);
}

.hero-slider,
.hero-slide {
  min-height: 100svh;
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.hero-slide.is-active .hero-media img {
  transform: scale(1);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 17, 19, 0.96) 0%, rgba(17, 17, 19, 0.80) 44%, rgba(17, 17, 19, 0.24) 76%, rgba(17, 17, 19, 0.38) 100%),
    linear-gradient(0deg, rgba(17, 17, 19, 0.70) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: auto;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 132px;
  align-self: center;
}

.hero-copy {
  max-width: 780px;
}

.hero-title {
  margin-bottom: 28px;
  font-size: clamp(2.75rem, 5.1vw, 5.3rem);
  line-height: 0.96;
  text-wrap: balance;
}

.hero-title em {
  color: var(--teal-bright);
  font-style: normal;
}

.hero-intro {
  max-width: 660px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.06rem, 1.8vw, 1.34rem);
}

.hero-slide .hero-copy > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero-slide.is-active .hero-copy > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .hero-copy > *:nth-child(2) { transition-delay: 0.08s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { transition-delay: 0.16s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { transition-delay: 0.24s; }

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(17, 17, 19, 0.28);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.slider-arrow:hover {
  color: var(--ink);
  background: var(--white);
  transform: scale(1.06);
}

.slider-arrow svg {
  width: 20px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  bottom: 58px;
  left: max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 36px;
  height: 4px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.slider-dot::after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--metal-gold);
}

.slider-dot.is-active::after {
  animation: dotFill 6.5s linear forwards;
}

@keyframes dotFill {
  to { transform: scaleX(1); }
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 48px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-scroll::before {
  width: 1px;
  height: 36px;
  content: "";
  background: linear-gradient(var(--teal), transparent);
  animation: scrollPulse 1.8s infinite ease-in-out;
}

@keyframes scrollPulse {
  50% { transform: translateY(8px); opacity: 0.45; }
}

/* Page hero */
.page-hero {
  position: relative;
  display: grid;
  min-height: 72svh;
  padding-top: var(--header-h);
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 17, 19, 0.96), rgba(17, 17, 19, 0.64) 55%, rgba(17, 17, 19, 0.36)), linear-gradient(0deg, rgba(17, 17, 19, 0.78), transparent 50%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 82px 0 70px;
}

.page-hero-title {
  max-width: 990px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
}

.page-hero-intro {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
}

.breadcrumbs {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.breadcrumbs span:last-child {
  color: var(--teal-bright);
}

/* Cards and media */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--metal-silver);
  box-shadow: var(--shadow-sm);
}

.card::after {
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(199, 161, 87, 0.55), transparent);
}

.card-pad {
  padding: 34px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

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

.card-hover {
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  border-color: rgba(199, 161, 87, 0.48);
  box-shadow: var(--shadow-lg);
}

.media-card {
  display: grid;
  min-height: 520px;
  align-content: end;
  color: var(--white);
  background: var(--ink);
}

.media-card-image {
  position: absolute;
  inset: 0;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.media-card:hover .media-card-image img {
  transform: scale(1.04);
}

.media-card-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 17, 19, 0.95), rgba(17, 17, 19, 0.18) 66%);
}

.media-card-content {
  position: relative;
  z-index: 2;
  padding: 34px;
}

.media-card-content p {
  color: rgba(255, 255, 255, 0.68);
}

.icon-box {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(145deg, #f4f5f6, #e6e8ea);
}

.icon-box svg {
  width: 26px;
  height: 26px;
}

.card-number {
  display: block;
  margin-bottom: 30px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  box-shadow: var(--shadow-lg);
}

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

.image-frame::before {
  position: absolute;
  z-index: 2;
  inset: 18px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--radius-lg) - 12px);
}

.portrait-frame {
  aspect-ratio: 3 / 4;
}

.landscape-frame {
  aspect-ratio: 16 / 10;
}

.floating-note {
  position: absolute;
  z-index: 3;
  right: -28px;
  bottom: 28px;
  max-width: 250px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  color: var(--white);
  background: rgba(23, 23, 25, 0.86);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.floating-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-bright);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

/* Statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--metal-silver);
  box-shadow: var(--shadow-sm);
}

.stat {
  min-height: 210px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: clamp(2.8rem, 4.2vw, 4.45rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.section-dark .stats-grid {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.04);
}

.section-dark .stat {
  border-color: var(--line-light);
}

.section-dark .stat-label {
  color: rgba(255, 255, 255, 0.62);
}

/* Quote */
.quote-panel {
  position: relative;
  padding: 80px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  border: 1px solid rgba(199, 161, 87, 0.26);
  background: var(--metal-dark);
  box-shadow: var(--shadow-lg);
}

.quote-panel::before {
  position: absolute;
  top: -90px;
  right: -40px;
  color: rgba(221, 195, 127, 0.11);
  content: "“";
  font-family: Georgia, serif;
  font-size: 24rem;
  line-height: 1;
}

.quote-panel blockquote {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-bottom: 32px;
  font-family: Georgia, serif;
  font-size: clamp(1.95rem, 3.7vw, 3.85rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.quote-attribution {
  position: relative;
  z-index: 1;
  color: var(--teal-bright);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Feature list */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  min-height: 120px;
  padding: 26px 0;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, padding 0.25s ease;
}

.feature-item:hover {
  padding-left: 10px;
  color: var(--ink-3);
}

.feature-index {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-item h3 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
}

.feature-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 22px 0;
  gap: 38px;
  animation: marqueeMove 32s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  color: var(--ink-2);
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  white-space: nowrap;
}

.marquee-item::after {
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: var(--teal);
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 150px 1fr;
  padding: 0 0 48px;
  gap: 20px;
}

.timeline-item::before {
  position: relative;
  z-index: 1;
  width: 39px;
  height: 39px;
  content: "";
  border: 12px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-year {
  padding-top: 5px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.timeline-content p {
  max-width: 720px;
  color: var(--muted);
}

/* Ecosystem */
.ecosystem-map {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: center;
}

.ecosystem-core {
  position: relative;
  z-index: 3;
  display: grid;
  width: 260px;
  height: 260px;
  padding: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  text-align: center;
  background: radial-gradient(circle, rgba(83,225,201,0.21), rgba(255,255,255,0.04));
  box-shadow: 0 0 0 42px rgba(221, 195, 127, 0.045), 0 0 0 92px rgba(184, 188, 193, 0.025);
}

.ecosystem-core strong {
  display: block;
  margin-bottom: 7px;
  font-family: Georgia, serif;
  font-size: 2.2rem;
}

.ecosystem-node {
  position: absolute;
  z-index: 2;
  width: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.ecosystem-node:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.11);
}

.ecosystem-node h3 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.ecosystem-node p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.ecosystem-node:nth-child(2) { top: 20px; left: 50%; transform: translateX(-50%); }
.ecosystem-node:nth-child(2):hover { transform: translateX(-50%) translateY(-8px); }
.ecosystem-node:nth-child(3) { top: 190px; right: 0; }
.ecosystem-node:nth-child(4) { bottom: 75px; right: 90px; }
.ecosystem-node:nth-child(5) { bottom: 75px; left: 90px; }
.ecosystem-node:nth-child(6) { top: 190px; left: 0; }

.ecosystem-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

.ecosystem-lines path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.2;
  stroke-dasharray: 6 8;
  animation: dashMove 12s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -140; }
}

/* Horizontal slider */
.content-slider {
  position: relative;
  overflow: hidden;
}

.content-slider-track {
  display: flex;
  transition: transform 0.72s var(--ease);
  touch-action: pan-y;
}

.content-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.content-slider-nav {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.content-slider-dots {
  display: flex;
  gap: 8px;
}

.content-slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 19, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, border-radius 0.25s ease, background 0.25s ease;
}

.content-slider-dots button.is-active {
  width: 34px;
  border-radius: 99px;
  background: var(--teal);
}

.content-slider-buttons {
  display: flex;
  gap: 8px;
}

.content-slider-buttons .slider-arrow {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.content-slider-buttons .slider-arrow:hover {
  color: var(--white);
  background: var(--ink);
}

.venture-slide {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--metal-silver);
  box-shadow: var(--shadow-lg);
}

.venture-copy {
  display: grid;
  padding: clamp(40px, 6vw, 82px);
  align-content: center;
}

.venture-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 3.3vw, 3.45rem);
}

.venture-copy p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
}

.venture-media {
  min-height: 540px;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 28px;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  min-height: 330px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.72);
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.process-card:hover {
  transform: translateY(-8px);
  background: var(--white);
}

.process-step {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 56px;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  background: var(--ink-2);
  font-weight: 900;
}

.process-card h3 {
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.process-card p {
  color: var(--muted);
}

/* Accordions */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-button {
  display: grid;
  width: 100%;
  padding: 26px 0;
  grid-template-columns: 1fr 42px;
  align-items: center;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.accordion-button span:first-child {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
}

.accordion-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.accordion-icon::before,
.accordion-icon::after {
  position: absolute;
  width: 14px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 0.25s ease;
}

.accordion-icon::after {
  transform: rotate(90deg);
}

.accordion-button[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(0);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.accordion-panel > div {
  overflow: hidden;
}

.accordion-panel p {
  max-width: 820px;
  padding-bottom: 26px;
  color: var(--muted);
}

.accordion-button[aria-expanded="true"] + .accordion-panel {
  grid-template-rows: 1fr;
}

/* Media */
.video-card {
  position: relative;
  display: grid;
  min-height: 620px;
  padding: 48px;
  align-content: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.video-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 17, 19, 0.96), rgba(17, 17, 19, 0.16));
}

.video-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.video-content h2 {
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 3.3vw, 3.4rem);
}

.play-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--metal-gold);
  box-shadow: 0 0 0 18px rgba(221, 195, 127, 0.15);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--white);
}

.play-button svg {
  width: 28px;
  margin-left: 5px;
}

.press-card {
  display: grid;
  min-height: 330px;
  padding: 32px;
  align-content: space-between;
}

.press-card time {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.press-card h3 {
  margin: 30px 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.press-card .text-link {
  justify-self: start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link::after {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: width 0.25s ease;
}

.text-link:hover::after {
  width: 42px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 68px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.64);
}

.contact-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-item strong,
.contact-item a {
  font-size: 1rem;
  font-weight: 750;
}

.contact-form {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field input,
.field select {
  min-height: 54px;
  padding: 0 16px;
}

.field textarea {
  min-height: 170px;
  padding: 16px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(183, 142, 66, 0.13);
}

.form-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 700;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.location-card {
  min-height: 320px;
  padding: 30px;
}

.location-card h3 {
  margin-bottom: 14px;
}

.location-card address {
  color: var(--muted);
  font-style: normal;
}

/* CTA */
.cta-panel {
  position: relative;
  display: grid;
  min-height: 500px;
  padding: clamp(42px, 8vw, 100px);
  align-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  border: 1px solid rgba(199, 161, 87, 0.25);
  background: var(--metal-dark);
  box-shadow: var(--shadow-lg);
}

.cta-panel::before,
.cta-panel::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(10px);
}

.cta-panel::before {
  top: -180px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: rgba(184, 188, 193, 0.16);
}

.cta-panel::after {
  bottom: -160px;
  left: -110px;
  width: 380px;
  height: 380px;
  background: rgba(216, 188, 127, 0.12);
}

.cta-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.cta-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 3.7vw, 3.8rem);
}

.cta-copy p {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
}

/* Medical notice */
.medical-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 22px 24px;
  align-items: start;
  gap: 16px;
  border: 1px solid rgba(216, 188, 127, 0.46);
  border-radius: 18px;
  color: #6e5a30;
  background: var(--gold-soft);
}

.medical-notice svg {
  width: 24px;
  margin-top: 2px;
}

.medical-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.medical-notice p {
  margin: 0;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #101012;
}

.footer-main {
  display: grid;
  width: var(--container);
  padding: 84px 0 54px;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 0.9fr;
  gap: 48px;
}

.footer-brand p {
  max-width: 380px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.54);
}

.footer-heading {
  margin-bottom: 18px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal-bright);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  width: var(--container);
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.77rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-link:hover {
  color: var(--ink);
  border-color: var(--teal-bright);
  background: var(--metal-gold);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Custom cursor accent */
.cursor-dot {
  position: fixed;
  z-index: 9997;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-radius: 50%;
  background: var(--metal-gold);
  mix-blend-mode: difference;
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.cursor-dot.is-visible { opacity: 0.85; }
.cursor-dot.is-hovering { width: 36px; height: 36px; }

/* Utility */
.align-end { align-self: end; }
.center { text-align: center; }
.center .section-lead,
.center .section-title { margin-inline: auto; }
.spacer-24 { height: 24px; }
.spacer-48 { height: 48px; }
.spacer-72 { height: 72px; }
.max-620 { max-width: 620px; }
.max-760 { max-width: 760px; }
.relative { position: relative; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --container: min(100% - 40px, 1000px); }
  .main-nav a { padding-inline: 9px; font-size: 0.76rem; }
  .header-cta { display: none; }
  .grid-4,
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .venture-slide { grid-template-columns: 1fr; }
  .venture-media { min-height: 420px; order: -1; }
  .footer-main { grid-template-columns: 1.2fr repeat(2, 0.8fr); }
  .footer-main > div:last-child { grid-column: 1 / -1; }
  .ecosystem-map { transform: scale(0.88); margin-inline: -60px; }
}

@media (max-width: 860px) {
  :root { --header-h: 74px; --container: min(100% - 32px, 760px); }
  .section { padding: 88px 0; }
  .section-sm { padding: 62px 0; }
  .grid-2,
  .grid-3,
  .contact-layout,
  .location-grid { grid-template-columns: 1fr; }
  .grid-2 { gap: 44px; }
  .main-nav {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    display: grid;
    width: min(88vw, 430px);
    height: 100svh;
    padding: 120px 30px 40px;
    align-content: start;
    gap: 4px;
    color: var(--white);
    background: var(--ink);
    box-shadow: -30px 0 80px rgba(0,0,0,0.25);
    transform: translateX(105%);
    transition: transform 0.4s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { min-height: 56px; padding: 0 18px; font-family: Georgia, serif; font-size: 1.42rem; }
  .main-nav a:hover,
  .main-nav a.is-active { color: var(--ink); }
  .nav-toggle { position: relative; z-index: 1001; display: grid; }
  .hero-scroll { display: none; }
  .hero-controls { right: 18px; bottom: 26px; }
  .hero-dots { left: 18px; bottom: 43px; }
  .hero-content { padding-bottom: 130px; }
  .hero-title { font-size: clamp(2.9rem, 12vw, 4.9rem); }
  .page-hero { min-height: 66svh; }
  .page-hero-content { padding-bottom: 62px; }
  .page-hero-title { font-size: clamp(2.8rem, 11vw, 4.8rem); }
  .floating-note { right: 16px; bottom: 16px; }
  .quote-panel { padding: 52px 32px; }
  .feature-item { grid-template-columns: 54px 1fr; }
  .feature-arrow { display: none; }
  .timeline-item { grid-template-columns: 50px 1fr; }
  .timeline-year { grid-column: 2; margin-top: -40px; margin-bottom: 8px; }
  .timeline-content { grid-column: 2; }
  .ecosystem-map { min-height: auto; margin: 0; transform: none; display: grid; grid-template-columns: 1fr; gap: 14px; }
  .ecosystem-core { width: 210px; height: 210px; margin: 0 auto 22px; }
  .ecosystem-node { position: static; width: 100%; transform: none !important; }
  .ecosystem-lines { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main > div:last-child { grid-column: auto; }
}

@media (max-width: 620px) {
  :root { --container: calc(100% - 24px); }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(2rem, 10vw, 3.2rem); }
  .display-title { font-size: clamp(2.5rem, 11vw, 3.9rem); }
  .brand-text { font-size: 0.68rem; }
  .hero-title { font-size: clamp(2.75rem, 13vw, 4.35rem); }
  .hero-intro { font-size: 1rem; }
  .hero-controls .slider-arrow { width: 46px; height: 46px; }
  .grid-4,
  .process-grid,
  .stats-grid,
  .form-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .card-pad,
  .media-card-content,
  .press-card { padding: 26px; }
  .media-card { min-height: 440px; }
  .floating-note { position: relative; right: auto; bottom: auto; margin: -62px 14px 0 auto; }
  .quote-panel blockquote { font-size: clamp(1.75rem, 7.4vw, 2.7rem); }
  .venture-copy { padding: 34px 26px; }
  .venture-media { min-height: 340px; }
  .video-card { min-height: 540px; padding: 30px; }
  .play-button { top: 36%; width: 78px; height: 78px; }
  .contact-form { padding: 26px 18px; }
  .footer-main { grid-template-columns: 1fr; padding-top: 64px; }
  .footer-brand,
  .footer-main > div:last-child { grid-column: auto; }
  .footer-bottom { min-height: 110px; flex-direction: column; justify-content: center; text-align: center; }
  .cursor-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* Silver & gold refinement */
.card > *, .contact-form > * { position: relative; z-index: 1; }
.section-dark .card { background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(184,188,193,0.03)); }
.btn-primary { background: var(--metal-gold); }
.brand-mark { background: var(--metal-gold); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45); }
.site-header.is-scrolled { box-shadow: 0 10px 34px rgba(20,20,22,0.06); }
.hero-title em, .accent-text { color: var(--gold-bright); }
.gold-text { color: var(--gold); }
.hero-media::after, .page-hero-media::after { mix-blend-mode: normal; }

/* Demo imagery is toned to the silver-and-gold art direction.
   Replaceable source images remain untouched in /images. */
.hero-media img,
.page-hero-media img {
  filter: grayscale(1) contrast(1.04) brightness(0.84) sepia(0.08);
}
.media-card-image img,
.image-frame img,
.venture-media img,
.video-card > img {
  filter: grayscale(0.86) saturate(0.34) contrast(1.03) sepia(0.05);
}


/* =========================================================
   FINAL LAYOUT REFINEMENTS — centered footer, visual journey,
   generated silver/gold imagery and back-to-top control.
   ========================================================= */
.footer-main,
.footer-bottom {
  margin-inline: auto;
}

.footer-bottom {
  justify-content: center;
  text-align: center;
}

/* The generated assets are already graded to the brand palette. */
.hero-media img,
.page-hero-media img,
.media-card-image img,
.image-frame img,
.venture-media img,
.video-card > img {
  filter: none;
}

/* Profile journey: use the available page width rather than a narrow rail. */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin-inline: auto;
  gap: 20px;
}

.timeline::before {
  display: none;
}

.timeline-item {
  display: grid;
  min-width: 0;
  min-height: 285px;
  padding: 30px;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(228,230,232,.76));
  box-shadow: 0 18px 50px rgba(20,20,22,.07);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}

.timeline-item:hover {
  transform: translateY(-7px);
  border-color: rgba(199,161,87,.55);
  box-shadow: 0 26px 65px rgba(20,20,22,.12);
}

.timeline-item::before {
  position: static;
  width: 13px;
  height: 13px;
  margin-bottom: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--metal-gold);
  box-shadow: 0 0 0 8px rgba(199,161,87,.12);
}

.timeline-year {
  padding-top: 0;
  margin: 0 0 13px;
  color: #8b6a30;
}

.timeline-content {
  min-width: 0;
  padding: 0;
}

.timeline-content h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.2vw, 2.18rem);
}

.timeline-content p {
  max-width: none;
  margin-bottom: 0;
}

/* Floating back-to-top arrow on every page. */
.back-to-top {
  position: fixed;
  z-index: 996;
  right: clamp(16px, 2.2vw, 30px);
  bottom: clamp(16px, 2.2vw, 30px);
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(226,200,127,.62);
  border-radius: 50%;
  color: #171719;
  background: var(--metal-gold);
  box-shadow: 0 16px 42px rgba(20,20,22,.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .28s ease, visibility .28s ease, transform .28s var(--ease), box-shadow .28s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(20,20,22,.26);
}

.back-to-top svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline-item { min-height: 0; padding: 26px; }
  .timeline-item::before { margin-bottom: 26px; }
  .back-to-top { width: 48px; height: 48px; }
}
