/* ------------------------------------------------------------------
   Intelligence Designed To Evolve — single-viewport landing page
   ------------------------------------------------------------------ */

/* Fallback display font (BubbledotICG-FinePos is loaded from OnlineWebFonts) */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --accent: #d4ff3f;
  --intro-dim: #4a4a4a;
  --intro-on: #fff3f0;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: clamp(44px, 5.2vw, 48px);
  --page-pad-y: clamp(16px, 2.4vh, 28px);
  --page-pad-x: clamp(14px, 3vw, 32px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

img,
video {
  display: block;
}

/* ---------- Background video ---------- */
.bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* The hero video is ambient artwork, never an interactive media player. */
.bg-video::-webkit-media-controls,
.bg-video::-webkit-media-controls-enclosure,
.bg-video::-webkit-media-controls-panel,
.bg-video::-webkit-media-controls-overlay-play-button,
.bg-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Page composition ---------- */
.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: var(--page-pad-y) var(--page-pad-x);
}

.header,
.hero {
  position: relative;
  z-index: 1;
}

/* ---------- 1) Header ---------- */
.header {
  flex-shrink: 0;
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  animation: slideDown 0.7s var(--ease-out) both;
}

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 clamp(16px, 1.8vw, 20px);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
  transition: transform 0.25s var(--ease-out);
}

.brand:hover {
  transform: scale(1.03);
}

.brand-name {
  font-weight: 600;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  white-space: nowrap;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 430px;
  height: var(--nav-h);
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.is-active {
  opacity: 1;
}

/* Three 3×3 black dots under the active label */
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.burger {
  display: none;
}

/* ---------- 2) Hero ---------- */
.hero {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Eyebrow pill */
.eyebrow {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.eyebrow-pill {
  height: var(--trust-size);
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(16px, 1.8vw, 20px);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* Headline */
.headline {
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 5.6vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
}

.headline .line {
  display: block;
  animation: headlineFade 0.85s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
}

/* The headline container itself does not reveal — only its lines do */
.headline.anim {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

/* Subhead */
.subhead {
  --o: 0.8;
  max-width: min(500px, 92%);
  margin-top: clamp(14px, 2vh, 20px);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(18px, 2.8vh, 28px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.48),
    0 0 64px rgba(255, 255, 255, 0.2);
}

.cta.anim {
  animation-name: revealPulse;
}

/* ---------- Below the fold: intro ---------- */
.intro {
  position: relative;
  background: #000;
  padding: clamp(96px, 18vh, 180px) var(--page-pad-x) clamp(96px, 16vh, 160px);
}

.intro-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9a9a9a;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.intro-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.intro-copy {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.intro-para {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--intro-dim);
  transition: color 0.45s ease;
}

.intro-para.is-active {
  color: var(--intro-on);
}

.intro-link {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

/* ---------- Statement ---------- */
.statement {
  background: #000;
  padding: clamp(40px, 8vh, 96px) var(--page-pad-x) clamp(120px, 18vh, 200px);
  text-align: center;
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 4.2vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #fff;
}

.statement-line {
  display: block;
}

.statement-accent {
  color: var(--accent);
}

/* ---------- Latest writing: sticky card stack ---------- */
.writing {
  background: #000;
  padding: 0 var(--page-pad-x) clamp(120px, 18vh, 200px);
}

.writing-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.writing-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 40px;
}

.writing-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.writing-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--intro-on);
}

.writing-title span {
  display: block;
}

.writing-title-dim {
  color: #6f6f6f;
}

.writing-lede {
  max-width: 340px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #b0b0b0;
  padding-bottom: 6px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  --card-top: 96px;
  position: sticky;
  top: var(--card-top);
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(480px, 66vh, 620px);
  border-radius: 24px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.7);
  transition: border-color 0.3s ease;
}

.post-card:hover {
  border-color: rgba(212, 255, 63, 0.4);
}

.post-card-flip .post-card-text { order: 2; }
.post-card-flip .post-card-visual { order: 1; }

.post-card-text {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 48px);
}

.post-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #8e8e8e;
}

.post-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.post-card-title {
  margin-top: clamp(40px, 7vh, 72px);
  max-width: 420px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(22px, 2.3vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--intro-on);
}

.post-card-body {
  margin-top: 22px;
  max-width: 440px;
  font-size: clamp(14px, 1.1vw, 15.5px);
  line-height: 1.6;
  color: #9a9a9a;
}

.post-card-foot {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #8e8e8e;
  transition: color 0.2s ease;
}

.post-card-star {
  color: var(--accent);
  font-size: 12px;
}

.post-card:hover .post-card-foot {
  color: var(--intro-on);
}

.post-card-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: clamp(28px, 3.4vw, 48px);
  overflow: hidden;
  background: #121212;
}

.post-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 80%);
}

.visual-1 { background: radial-gradient(120% 90% at 85% 15%, rgba(212, 255, 63, 0.28), transparent 55%), #121212; }
.visual-2 { background: radial-gradient(120% 90% at 20% 20%, rgba(214, 150, 255, 0.28), transparent 55%), #121212; }
.visual-3 { background: radial-gradient(120% 90% at 80% 80%, rgba(255, 150, 120, 0.26), transparent 55%), #121212; }

.visual-index {
  position: absolute;
  top: clamp(20px, 2.6vw, 36px);
  right: clamp(24px, 3vw, 44px);
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 128px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.9;
}

.visual-quote {
  position: relative;
  max-width: 340px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--intro-on);
}

.writing-all {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.writing-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.28);
}

/* ---------- Footer ---------- */
.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(40px, 6vh, 64px) var(--page-pad-x) 28px;
}

.footer-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-tagline {
  margin-top: 10px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.5;
  color: #8e8e8e;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14.5px;
  color: #c4c2c3;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  width: 100%;
  max-width: 1040px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #6a6a6a;
}

/* ---------- Sub pages (blog, posts, contact) ---------- */
body.sub {
  background: #000;
}

.sub-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--page-pad-y) var(--page-pad-x) 0;
}

body.sub .header {
  animation: none;
}

/* On black, the header pills need a hairline instead of a drop shadow */
body.sub .brand,
body.sub .nav,
body.sub .burger {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Blog index */
.blog {
  width: 100%;
  padding: clamp(64px, 10vh, 120px) 0 clamp(96px, 14vh, 160px);
}

.blog-inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.blog-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.blog-lede {
  max-width: 520px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: #b0b0b0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
}

.filter {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter:hover {
  color: var(--intro-on);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter.is-active {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.blog-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 30px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}

.blog-row:hover {
  background: #0a0a0a;
}

.blog-row[hidden] {
  display: none;
}

.blog-row-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #7a7a7a;
  padding-top: 3px;
}

.blog-row-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #a5a5a5;
}

.blog-row-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-row-title {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--intro-on);
}

.blog-row-lede {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
  color: #8e8e8e;
}

.blog-row-arrow {
  font-size: 18px;
  color: #6a6a6a;
  padding-top: 4px;
  transition: color 0.2s ease, transform 0.25s var(--ease-out);
}

.blog-row:hover .blog-row-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.blog-empty {
  margin-top: 40px;
  color: #7a7a7a;
  font-size: 15px;
}

/* Article */
.article-wrap {
  width: 100%;
  padding: clamp(56px, 9vh, 104px) 0 clamp(96px, 14vh, 160px);
}

.article {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.article-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.article-back {
  font-size: 13.5px;
  font-weight: 500;
  color: #8e8e8e;
  transition: color 0.2s ease;
}

.article-back:hover {
  color: var(--accent);
}

.article-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--intro-on);
}

.article-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #b0b0b0;
}

.article-meta {
  font-size: 13.5px;
  color: #7a7a7a;
}

.article-body {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
  color: #cfcfcf;
}

.article-body p + p,
.article-body ul + p,
.article-body p + ul {
  margin-top: 1.3em;
}

.article-body h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--intro-on);
}

.article-body strong {
  font-weight: 600;
  color: var(--intro-on);
}

.article-body em {
  color: var(--intro-on);
}

.article-body ul {
  padding-left: 1.2em;
}

.article-body li + li {
  margin-top: 0.7em;
}

.article-body li::marker {
  color: var(--accent);
}

.article-foot {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-next {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 20px;
  border-radius: 18px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
}

.article-next:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 255, 63, 0.4);
}

.article-next-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--intro-on);
}

/* Contact */
.contact {
  width: 100%;
  padding: clamp(64px, 10vh, 120px) 0 clamp(96px, 14vh, 160px);
}

.contact-inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.contact-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.contact-cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 24px;
  border-radius: 22px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
}

.contact-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 255, 63, 0.4);
}

.contact-value {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--intro-on);
  word-break: break-all;
  transition: color 0.2s ease;
}

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

.contact-hint {
  font-size: 14px;
  line-height: 1.5;
  color: #8e8e8e;
}

.contact-copy {
  margin-top: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c4c2c3;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-copy:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--intro-on);
}

.contact-copy.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.contact-notes {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}

.contact-list li {
  font-size: 15px;
  line-height: 1.6;
  color: #9a9a9a;
}

.contact-list strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--intro-on);
}

/* ---------- Scroll reveal for below-the-fold sections ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ---------- Shared entrance animation ---------- */
/* Elements sit in their final state; the animation plays from the hidden
   state and `backwards` fill hides them during their stagger delay. */
.anim {
  animation: reveal 0.85s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: var(--o, 1);
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 0 22px rgba(255, 255, 255, 0.32),
      0 0 44px rgba(255, 255, 255, 0.12);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
    filter: blur(0);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.3),
      0 0 34px rgba(255, 255, 255, 0.55),
      0 0 70px rgba(255, 255, 255, 0.25);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 0 22px rgba(255, 255, 255, 0.32),
      0 0 44px rgba(255, 255, 255, 0.12);
  }
}

@keyframes headlineFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Mobile menu ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--page-pad-y) + 48px + 14px) var(--page-pad-x) var(--page-pad-y);
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.menu-overlay[hidden] {
  display: none;
}

.menu-sheet {
  width: 100%;
  max-width: 440px;
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: menuIn 0.38s var(--ease-out) both;
}

.menu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 12px 17px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.55;
  animation: linkIn 0.42s var(--ease-out) both;
  animation-delay: var(--d, 0s);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.menu-link:hover {
  opacity: 0.8;
}

.menu-link.is-active {
  opacity: 1;
}

.menu-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

body.menu-open .header {
  z-index: 60;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: var(--o, 1);
    transform: translateY(0);
  }
}

.menu-link.is-active { --o: 1; }
.menu-link:not(.is-active) { --o: 0.55; }

/* ---------- Breakpoints ---------- */
@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .header {
    max-width: none;
    justify-content: space-between;
    gap: 0;
  }

  .brand {
    height: 48px;
    padding: 0 18px;
  }

  .burger {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    transition: background 0.25s ease, transform 0.25s var(--ease-out);
  }

  .burger span {
    position: absolute;
    top: calc(50% - 0.75px);
    left: calc(50% - 9px);
    width: 18px;
    height: 1.5px;
    border-radius: 1px;
    background: #fff;
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease, background 0.25s ease;
  }

  .burger span:nth-child(1) { transform: translateY(-6.5px); }
  .burger span:nth-child(2) { transform: translateY(0); }
  .burger span:nth-child(3) { transform: translateY(6.5px); }

  .burger[aria-expanded="true"] {
    background: #fff;
  }

  .burger[aria-expanded="true"] span {
    background: #000;
  }

  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .writing-head {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .writing-lede {
    max-width: none;
  }

  .post-card {
    --card-top: 72px;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .post-card-flip .post-card-text { order: 1; }
  .post-card-flip .post-card-visual { order: 2; }

  .post-card-title {
    margin-top: 26px;
  }

  .post-card-foot {
    margin-top: 26px;
  }

  .post-card-visual {
    min-height: 300px;
    padding-top: 120px;
  }

  .visual-index {
    font-size: 72px;
  }

  .visual-quote {
    font-size: 17px;
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .blog-row {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 24px 4px;
  }

  .blog-row-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .article-next {
    grid-template-columns: 1fr auto;
  }

  .contact-cards,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .article-next .blog-row-tag {
    grid-column: 1 / -1;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .eyebrow-pill {
    font-size: 12px;
  }

}

@media (max-width: 420px) {
  .eyebrow {
    --trust-size: 34px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

/* Short viewports: tighten hero spacing so everything stays in one screen */
@media (max-height: 700px) {
  .eyebrow {
    margin-bottom: clamp(10px, 1.6vh, 16px);
  }

  .subhead {
    margin-top: clamp(8px, 1.4vh, 14px);
  }

  .cta {
    margin-top: clamp(12px, 2vh, 18px);
    padding-top: 10px;
    padding-bottom: 10px;
  }

}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .anim,
  .header,
  .headline .line,
  .menu-overlay,
  .menu-sheet,
  .menu-link {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  .anim,
  .header,
  .headline .line {
    opacity: 1;
  }

  .subhead {
    opacity: 0.8;
  }

  .headline {
    color: var(--accent);
  }

  .intro-para {
    color: var(--intro-on);
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
