:root {
  color-scheme: light dark;
  --bg: #f4f1ea;
  --ink: #141414;
  --muted: #6f6b63;
  --line: rgba(20, 20, 20, 0.12);
  --card: rgba(255, 255, 255, 0.74);
  --dark: #111111;
  --dark-ink: #ffffff;
  --accent: #b78d5a;
  --body-bg: radial-gradient(circle at top left, rgba(183, 141, 90, 0.24), transparent 34rem),
    linear-gradient(135deg, #f8f5ef 0%, #ebe5d9 100%);
  --footer-bg: rgba(17, 17, 17, 0.9);
  --footer-ink: rgba(255, 255, 255, 0.78);
  --card-shadow: 0 34px 90px rgba(45, 38, 29, 0.13);
  --noise-opacity: 0.32;
  --noise-blend: multiply;
}

html[data-theme='dark'] {
  --bg: #10100f;
  --ink: #f4efe7;
  --muted: #aaa197;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(25, 25, 24, 0.76);
  --dark: #f4efe7;
  --dark-ink: #10100f;
  --accent: #d6aa70;
  --body-bg: radial-gradient(circle at top left, rgba(214, 170, 112, 0.18), transparent 34rem),
    linear-gradient(135deg, #151514 0%, #080808 100%);
  --footer-bg: rgba(0, 0, 0, 0.86);
  --footer-ink: rgba(255, 255, 255, 0.72);
  --card-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  --noise-opacity: 0.18;
  --noise-blend: screen;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 0.95vw, 16px);
}

body {
  min-height: 100vh;
  min-width: 320px;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--body-bg);
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
  padding-bottom: 56px;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: var(--noise-blend);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(22px, 5vw, 72px);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  overflow: hidden;
  width: auto;
  transition: width 0.28s ease, background 0.25s ease, border-color 0.25s ease;
}

html[data-theme='dark'] .switcher {
  background: rgba(0, 0, 0, 0.18);
}

.theme-option {
  flex: 0 0 auto;
  min-width: 54px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.theme-option:hover {
  color: var(--ink);
}

.theme-option.is-active {
  background: var(--ink);
  color: var(--bg);
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 130px clamp(22px, 5vw, 72px) 80px;
}

.hero-inner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 7.6vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.hero-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
  padding-bottom: 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}

.button.primary {
  background: var(--dark);
  color: var(--dark-ink);
  border-color: var(--dark);
}

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

.cards-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.cards-pin {
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.cards-wrap {
  position: relative;
  width: min(1040px, 100%);
  height: clamp(500px, 72vh, 660px);
  perspective: 1800px;
}

.profile-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(24px);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout paint style;
  transform-origin: center bottom;
  overflow: hidden;
}

.profile-card::after {
  content: '';
  position: absolute;
  inset: auto -12% -36% auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(183, 141, 90, 0.14);
  filter: blur(12px);
}

.card-number {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.profile-card h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.card-text {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.86;
  max-width: 560px;
}

.metric-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.metric strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 5px;
}

.metric span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vertical-gap {
  height: 24px;
}

.tag-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.closing {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 90px clamp(22px, 5vw, 72px);
}

.closing-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.closing-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 12px;
}

.closing-copy {
  max-width: 760px;
}

.closing h2 {
  width: min(760px, 100%);
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.closing p {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.icp-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-size: 13px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .profile-card {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 20px 22px;
  }

  .header-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .theme-option {
    min-width: 45px;
    height: 28px;
    font-size: 0.62rem;
  }

  .hero {
    min-height: auto;
    padding: 120px 22px 70px;
  }

  .hero-inner,
  .profile-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.5rem, 11vw, 4.8rem);
    letter-spacing: -0.07em;
  }

  .cards-pin {
    min-height: 100svh;
    height: 100svh;
    padding: 72px 18px 64px;
  }

  .cards-wrap {
    height: min(680px, 78svh);
  }

  .profile-card {
    gap: 24px;
    padding: 28px;
    border-radius: 26px;
    align-content: center;
    backdrop-filter: none;
  }

  .profile-card h2 {
    font-size: clamp(2.4rem, 12vw, 4.4rem);
  }

  .card-number {
    margin-bottom: 14px;
  }

  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .closing {
    min-height: 76vh;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 138px 18px 54px;
  }

  .switcher.is-compact {
    width: var(--compact-width, auto);
  }

  .switcher.is-compact.is-expanded {
    width: var(--expanded-width, auto);
  }

  .switcher.is-compact .theme-option {
    order: 1;
  }

  .switcher.is-compact .theme-option.is-active {
    order: 0;
  }

  .switcher.is-compact:not(.is-expanded) .theme-option:not(.is-active) {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .button {
    width: 100%;
  }

  .cards-pin {
    padding: 64px 14px 58px;
  }

  .cards-wrap {
    height: min(650px, 80svh);
  }

  .profile-card {
    padding: 22px;
    gap: 18px;
    border-radius: 22px;
  }

  .profile-card h2 {
    font-size: clamp(2.1rem, 13vw, 3.5rem);
  }

  .card-text {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .metric {
    padding-top: 10px;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .tag-list {
    gap: 8px;
    margin-top: 22px;
  }

  .tag {
    padding: 8px 11px;
    font-size: 0.72rem;
  }

  .closing {
    min-height: auto;
    padding: 72px 18px;
  }

  .closing-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }

  .closing-kicker {
    padding-top: 0;
  }

  .closing h2 {
    width: 100%;
    font-size: clamp(2.5rem, 14vw, 4.6rem);
  }

  .closing p {
    width: 100%;
    font-size: 0.96rem;
  }

  .icp-footer {
    height: 40px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .cards-wrap {
    height: 82svh;
  }

  .profile-card {
    padding: 18px;
  }

  .card-text {
    font-size: 0.86rem;
  }
}

@media (min-width: 1440px) {
  .hero-inner {
    width: min(1320px, 100%);
  }

  .cards-wrap {
    width: min(1120px, 100%);
    height: clamp(620px, 70vh, 760px);
  }
}
