:root {
  --paper: #fbfaf7;
  --ink: #0f1110;
  --soft-ink: #2b2e2c;
  --muted: #70746f;
  --line: rgba(15, 17, 16, 0.12);
  --line-strong: rgba(15, 17, 16, 0.24);
  --accent: #dfff4f;
  --blue: #145cff;
  --silver: #e7e9e3;
  --mist: #f1f2ed;
  --white: #fffefb;
  --shadow: 0 30px 90px rgba(15, 17, 16, 0.14);
  font-family: "Geist", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 17, 16, 0.035) 1px, transparent 1px) 0 0 / 8.333vw 8.333vw,
    linear-gradient(rgba(15, 17, 16, 0.035) 1px, transparent 1px) 0 0 / 8.333vw 8.333vw,
    var(--paper);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(15, 17, 16, 0.15) 0.6px, transparent 0.6px);
  background-size: 13px 13px;
  opacity: 0.16;
}

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

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(20px);
}

.brand {
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  min-height: 100svh;
  padding: clamp(88px, 12vh, 116px) clamp(20px, 5vw, 72px) clamp(32px, 5vh, 54px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: clamp(18px, 7vw, 110px);
  bottom: clamp(120px, 18vh, 220px);
  z-index: 0;
  width: clamp(180px, 25vw, 360px);
  aspect-ratio: 1.04;
  border: 1px solid var(--line-strong);
  content: "";
  transform: rotate(8deg);
  background:
    linear-gradient(135deg, rgba(255, 254, 251, 0.88), rgba(231, 233, 227, 0.36)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(20, 92, 255, 0.08) 16px 17px);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 1180px;
  margin-bottom: 26px;
  font-size: clamp(5rem, 12vw, 12rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 7.4vw, 7.4rem);
  line-height: 0.92;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-line {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--soft-ink);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.42;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

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

.button.primary:hover {
  background: #000;
}

.button.quiet {
  background: rgba(255, 254, 251, 0.6);
}

.button.quiet:hover {
  border-color: var(--ink);
  background: var(--white);
}

.portrait-panel {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  width: min(100%, 340px);
}

.portrait-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  margin: 0 0 18px auto;
  border: 1px solid var(--line-strong);
  background: var(--silver);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 62%, rgba(15, 17, 16, 0.14)),
    linear-gradient(90deg, rgba(223, 255, 79, 0.24), transparent 18%);
  mix-blend-mode: screen;
  opacity: 0.46;
  pointer-events: none;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  filter: contrast(1.04);
}

.current-card {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 254, 251, 0.7);
  box-shadow: 0 20px 60px rgba(15, 17, 16, 0.08);
  backdrop-filter: blur(16px);
}

.current-card::before {
  display: block;
  width: 62px;
  height: 8px;
  margin-bottom: 22px;
  background: var(--accent);
  content: "";
}

.current-card p {
  margin-bottom: 20px;
  font-family: "Newsreader", serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.02;
}

.current-card a {
  color: var(--blue);
  font-weight: 800;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.proof-bar span {
  min-height: 76px;
  padding: 28px clamp(18px, 4vw, 42px);
  border-right: 1px solid rgba(255, 254, 251, 0.16);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-bar span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(68px, 11vw, 150px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.reefo-layout,
.notes-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(34px, 8vw, 120px);
  align-items: end;
}

.reefo-layout h2 {
  max-width: 960px;
}

.short-copy {
  max-width: 520px;
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.58;
}

.short-copy p {
  margin-bottom: 18px;
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 7vw, 84px);
  background: var(--line);
}

.motion-grid span {
  min-height: 120px;
  padding: 24px;
  background: rgba(255, 254, 251, 0.72);
  font-family: "Newsreader", serif;
  font-size: clamp(1.9rem, 3vw, 3.15rem);
  line-height: 0.96;
}

.offers-section {
  background: var(--mist);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  margin-bottom: clamp(40px, 7vw, 80px);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
}

.offer-grid article {
  min-height: 300px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.offer-grid article:hover {
  background: var(--white);
  transform: translateY(-5px);
}

.offer-grid span {
  display: block;
  margin-bottom: 76px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.offer-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.52;
}

.notes-section {
  background:
    linear-gradient(90deg, rgba(223, 255, 79, 0.2), transparent 34%),
    var(--paper);
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.9fr);
  align-items: center;
}

.notes-copyblock {
  max-width: 780px;
}

.notes-copyblock p:not(.section-kicker) {
  max-width: 520px;
  margin: 24px 0 28px;
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.58;
}

.substack-preview {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(15, 17, 16, 0.12);
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.substack-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.preview-body {
  padding: clamp(22px, 3vw, 32px);
}

.preview-label {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-body h3 {
  max-width: 500px;
  margin-bottom: 12px;
  font-family: "Newsreader", serif;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
}

.preview-body p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.52;
}

.preview-body a {
  color: var(--blue);
  font-weight: 900;
}

.contact-section {
  display: grid;
  min-height: 72vh;
  align-content: center;
  background: var(--ink);
  color: var(--white);
}

.contact-section .section-kicker {
  color: var(--accent);
}

.contact-section h2 {
  max-width: 1120px;
  margin-bottom: 38px;
}

.contact-section .button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.contact-section .button.quiet {
  border-color: rgba(255, 254, 251, 0.3);
  background: transparent;
  color: var(--white);
}

.contact-section .button.quiet:hover {
  border-color: var(--white);
  background: rgba(255, 254, 251, 0.08);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 254, 251, 0.64);
  font-size: 0.82rem;
}

@media (max-width: 1080px) {
  .hero,
  .reefo-layout,
  .notes-section,
  .section-head {
    grid-template-columns: 1fr;
  }

  .portrait-panel,
  .current-card {
    max-width: 520px;
  }

  .portrait-panel {
    justify-self: start;
  }

  .portrait-frame {
    margin-right: 0;
  }

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

@media (max-width: 720px) {
  body {
    background-size: 72px 72px;
  }

  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    backdrop-filter: none;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 88svh;
    padding-top: 160px;
    padding-bottom: 42px;
  }

  .hero::after {
    right: -90px;
    bottom: 190px;
    opacity: 0.72;
  }

  h1 {
    font-size: clamp(4.6rem, 23vw, 7rem);
  }

  h2 {
    font-size: clamp(2.75rem, 14vw, 5.8rem);
  }

  .hero-line {
    font-size: 1.05rem;
  }

  .hero-actions .button,
  .contact-actions .button {
    flex: 1 1 100%;
  }

  .current-card {
    padding: 22px;
  }

  .portrait-frame {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1;
  }

  .current-card p {
    font-size: 1.42rem;
  }

  .proof-bar {
    grid-template-columns: 1fr 1fr;
  }

  .proof-bar span {
    min-height: 64px;
    padding: 22px 18px;
  }

  .offer-grid,
  .motion-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid article {
    min-height: 240px;
  }

  .offer-grid span {
    margin-bottom: 44px;
  }

  .motion-grid span {
    min-height: 96px;
  }

  .footer {
    flex-direction: column;
  }
}

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

  .signal-canvas {
    display: none;
  }
}
