:root {
  --paper: #f3eadc;
  --paper-2: #e8dcc9;
  --ink: #17130f;
  --ink-soft: #3f362d;
  --muted: #665b50;
  --faint: rgba(23, 19, 15, 0.12);
  --dark: #10100f;
  --dark-2: #1a1714;
  --cream: #fffaf0;
  --accent: #b9ff4d;
  --accent-dark: #314300;
  --clay: #b86f48;
  --radius-card: 18px;
  --radius-soft: 12px;
  --radius-pill: 999px;
  --max: 1240px;
  --display: "Bricolage Grotesque", sans-serif;
  --serif: "Instrument Serif", serif;
  --mono: "Geist Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-paper: 0 28px 80px rgba(42, 30, 18, 0.12), 0 2px 0 rgba(255, 255, 255, 0.45) inset;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(184, 111, 72, 0.16), transparent 26rem),
    linear-gradient(180deg, var(--paper) 0%, #f7f0e5 42%, var(--paper-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 19, 15, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
  z-index: -2;
}

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

a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 12px 12px 12px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: rgba(243, 234, 220, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(42, 30, 18, 0.08);
}

.brand,
nav,
.hero-actions,
.portrait-caption,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-star {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
  border: 1.5px solid var(--ink);
  font-size: 12px;
}

nav { gap: 4px; }
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
nav a:hover { background: rgba(23, 19, 15, 0.08); transform: translateY(-1px); }
.nav-cta { color: var(--accent-dark); background: var(--accent); border: 1.5px solid var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.66fr);
  gap: clamp(22px, 3.5vw, 46px);
  align-items: center;
  padding: clamp(38px, 5.5vw, 72px) 0 clamp(26px, 4vw, 46px);
}

.hero-copy { align-self: center; }
.eyebrow,
.section-label,
.card-kicker,
.principles span,
.work-list span,
.portrait-caption {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow,
.section-label,
.card-kicker { color: var(--clay); }

h1 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(50px, 7.2vw, 98px);
  line-height: 0.91;
  letter-spacing: -0.065em;
  font-weight: 900;
}

h2 {
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 900;
}

h3 {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.hero-text {
  max-width: 660px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.44;
}

.hero-actions { gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--accent); color: var(--accent-dark); box-shadow: 0 14px 30px rgba(133, 185, 21, 0.18); }
.ghost { background: rgba(255, 250, 240, 0.45); color: var(--ink); }
.ghost:hover { background: var(--ink); color: var(--cream); }

.hero-card {
  align-self: center;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.portrait-frame {
  position: relative;
  height: clamp(340px, 47vw, 490px);
  min-height: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1.5px solid var(--ink);
  background: #151515;
  box-shadow: 0 24px 60px rgba(42, 30, 18, 0.16), 0 0 0 10px rgba(255, 250, 240, 0.22);
}

.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.portrait-frame::before {
  inset: 12px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 18px;
}

.portrait-frame::after {
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(16, 16, 15, 0.42));
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.92) contrast(1.03);
  display: block;
}

.portrait-caption {
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.42);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 6px 0 clamp(42px, 6vw, 72px);
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.52);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}

.proof-strip div {
  min-height: 108px;
  padding: 18px 20px;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong {
  display: block;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}
.proof-strip span {
  display: block;
  max-width: 220px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.thesis-section,
.about-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(76px, 9vw, 122px) 0;
  border-top: 1.5px solid var(--ink);
}

.thesis-copy p,
.about-copy p {
  max-width: 850px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.38;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.principles article {
  min-height: 330px;
  padding: 28px 24px;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.principles article:last-child { border-right: 0; }
.principles span { color: var(--muted); }
.principles p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.proof-section {
  padding: clamp(78px, 9vw, 124px) 0;
}
.proof-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 28px;
  align-items: end;
}
.proof-heading .eyebrow { grid-column: 1 / -1; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.proof-card {
  position: relative;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1.5px solid var(--ink);
  color: var(--cream);
  background:
    linear-gradient(145deg, #10100f, #1a1714 62%, #11100e),
    radial-gradient(circle at 18% 12%, rgba(185, 255, 77, 0.16), transparent 18rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  box-shadow: 0 18px 60px rgba(42, 30, 18, 0.14);
  transform: translateY(0);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.proof-card:hover,
.proof-card.is-revealed {
  transform: translateY(-8px);
  border-color: rgba(23, 19, 15, 0.82);
  box-shadow: 0 34px 90px rgba(42, 30, 18, 0.24);
}
.proof-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  opacity: 0;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  transform: scale(1.08);
  filter: saturate(0.9) contrast(1.08) blur(6px);
  transition: clip-path 0.72s var(--ease), opacity 0.32s var(--ease), transform 0.72s var(--ease), filter 0.72s var(--ease);
  pointer-events: none;
}
.proof-card:hover::before,
.proof-card.is-revealed::before {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1.01);
  filter: saturate(1.06) contrast(1.06) blur(0);
}
.proof-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 16, 15, 0.12) 0%, rgba(16, 16, 15, 0.42) 38%, rgba(16, 16, 15, 0.9) 100%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 250, 240, 0.035) 18px 19px),
    radial-gradient(circle at 20% 10%, rgba(185, 255, 77, 0.18), transparent 18rem);
  opacity: 0.58;
  transition: opacity 0.42s var(--ease);
  pointer-events: none;
}
.proof-card:hover::after,
.proof-card.is-revealed::after { opacity: 1; }
.youtube-card::before { background-image: url("assets/youtube-card.jpg"); background-position: center; }
.cyndra-card::before { background-image: url("assets/cyndra-home.jpg"); background-position: center top; }
.community-card::before { background-image: url("assets/community-card.jpg"); background-position: center; }
.proof-card h3,
.proof-card p,
.proof-card span { position: relative; z-index: 1; }
.proof-card h3,
.proof-card p {
  transition: transform 0.72s var(--ease), opacity 0.56s var(--ease), filter 0.56s var(--ease);
  will-change: transform, opacity;
}
.proof-card:hover h3,
.proof-card:hover p,
.proof-card.is-revealed h3,
.proof-card.is-revealed p {
  transform: translateX(-116%);
  opacity: 0;
  filter: blur(2px);
}
.proof-card .card-kicker {
  color: var(--accent);
  transition: transform 0.42s var(--ease), color 0.42s var(--ease), letter-spacing 0.42s var(--ease);
}
.proof-card:hover .card-kicker,
.proof-card.is-revealed .card-kicker {
  transform: translateX(5px);
  letter-spacing: 0.18em;
}
.proof-card p {
  color: rgba(255, 250, 240, 0.74);
  font-size: 14px;
  line-height: 1.45;
  max-width: 340px;
}
.proof-card h3 { font-size: clamp(26px, 2.8vw, 40px); max-width: 360px; }
.card-link {
  align-self: flex-start;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: var(--radius-pill);
  color: var(--cream);
  background: rgba(16, 16, 15, 0.32);
  backdrop-filter: blur(10px);
  transition: transform 0.42s var(--ease), background 0.42s var(--ease), border-color 0.42s var(--ease), color 0.42s var(--ease);
}
.proof-card:hover .card-link,
.proof-card.is-revealed .card-link {
  transform: translateX(8px) translateY(-2px);
  border-color: rgba(185, 255, 77, 0.7);
  background: rgba(16, 16, 15, 0.54);
}
.work-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(76px, 9vw, 122px) 0;
  border-top: 1.5px solid var(--ink);
}
.work-list {
  display: grid;
  gap: 0;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.48);
}
.work-list article {
  display: grid;
  grid-template-columns: 160px minmax(0, 0.9fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 30px;
  border-bottom: 1.5px solid var(--ink);
  align-items: start;
}
.work-list article:last-child { border-bottom: 0; }
.work-list span { color: var(--clay); }
.work-list p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.about-section {
  grid-template-columns: minmax(310px, 0.5fr) minmax(0, 1fr);
  border-bottom: 1.5px solid var(--ink);
}
.about-title h2 {
  max-width: 430px;
  font-size: clamp(48px, 6.4vw, 84px);
}
.about-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}
.about-copy p { margin-top: 0; }
.about-copy .button { justify-self: start; margin-top: 10px; }

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (max-width: 980px) {
  .hero,
  .thesis-section,
  .about-section,
  .work-section,
  .proof-heading,
  .proof-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .portrait-frame,
  .portrait-frame img { min-height: 520px; }
  .proof-strip,
  .principles { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div:nth-child(2),
  .principles article:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2),
  .principles article:nth-child(-n+2) { border-bottom: 1.5px solid var(--ink); }
  .work-list article { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 680px) {
  .site-header, main, .site-footer { width: min(100% - 24px, var(--max)); }
  .site-header { position: static; align-items: flex-start; flex-direction: column; border-radius: 22px; }
  nav { flex-wrap: wrap; }
  nav a { min-height: 38px; padding-inline: 10px; font-size: 13px; }
  h1 { font-size: clamp(54px, 17vw, 86px); }
  h2 { font-size: clamp(42px, 13vw, 68px); }
  .hero-text { font-size: 18px; }
  .portrait-frame,
  .portrait-frame img { min-height: 430px; }
  .portrait-caption { border-radius: 18px; align-items: flex-start; flex-direction: column; }
  .proof-strip,
  .principles { grid-template-columns: 1fr; }
  .proof-strip div,
  .principles article { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .proof-strip div:last-child,
  .principles article:last-child { border-bottom: 0; }
  .proof-card { min-height: 300px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
