/* ================================================================
   BRYAN ANAYA  — Editorial Design System
   Cormorant Garamond (display) + DM Sans (body)
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap");

/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --ink: #0a0a0a;
  --paper: #f2ede4;
  --ground: #111110;
  --signal: #c49a3c;
  --muted: #7a7a72;
  --prose-dk: rgba(242, 237, 228, 0.52);
  --prose-lt: #3a3a36;
  --rule-dk: rgba(242, 237, 228, 0.07);
  --rule-lt: rgba(10, 10, 10, 0.09);

  --ff-d: "Cormorant Garamond", Georgia, serif;
  --ff-b: "DM Sans", system-ui, sans-serif;

  --g: clamp(24px, 5.5vw, 88px);
  --max-w: 1200px;
  --max-prose: 660px;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

/* ── GRAIN OVERLAY ──────────────────────────────────────────────── */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/></filter><rect width='256' height='256' filter='url(%23n)'/></svg>");
  background-size: 192px 192px;
}

/* ── FRAME / LAYOUT ─────────────────────────────────────────────── */
.frame {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--g);
  padding-right: var(--g);
}

/* ── NAV ────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 0;
  transition: padding 0.3s ease;
}
.header.scrolled .header__inner {
  padding-top: 16px;
}

.header__mark {
  font-family: var(--ff-b);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.45);
  text-decoration: none;
  transition: color 0.25s;
}
.header__mark:hover {
  color: var(--paper);
}

.header__nav {
  display: flex;
  gap: 32px;
}
.header__link {
  font-family: var(--ff-b);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(242, 237, 228, 0.38);
  text-decoration: none;
  transition: color 0.25s;
}
.header__link:hover,
.header__link--active {
  color: rgba(242, 237, 228, 0.9);
}

/* nav over light (paper) sections */
.header.over-light .header__mark {
  color: rgba(10, 10, 10, 0.35);
}
.header.over-light .header__mark:hover {
  color: var(--ink);
}
.header.over-light .header__link {
  color: rgba(10, 10, 10, 0.3);
}
.header.over-light .header__link:hover,
.header.over-light .header__link--active {
  color: var(--ink);
}

/* ── KICKER (section label above headings) ──────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-b);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 48px;
}
.kicker::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--signal);
  opacity: 0.45;
}

/* ── LINK STYLES ────────────────────────────────────────────────── */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
.link-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width 0.28s ease;
}
.link-line:hover {
  color: var(--signal);
}
.link-line:hover::after {
  width: 100%;
}

.link-line--lt {
  color: rgba(242, 237, 228, 0.6);
}
.link-line--lt:hover {
  color: var(--signal);
}

/* ── BA-SECTION (shared padding / bg) ──────────────────────────── */
.ba-section {
  position: relative;
  padding-top: clamp(72px, 10vh, 120px);
  padding-bottom: clamp(72px, 10vh, 120px);
}
.ba-section--dk {
  background: var(--ground);
}
.ba-section--lt {
  background: var(--paper);
}

/* ── OPENING / HERO ─────────────────────────────────────────────── */
#intro {
  position: relative;
  min-height: 100svh;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  padding-top: 140px;
  padding-bottom: clamp(44px, 7vh, 80px);
  overflow: hidden;
}
#intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/></filter><rect width='256' height='256' filter='url(%23n)'/></svg>");
  background-size: 192px 192px;
}
#intro .frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: clamp(28px, 4vh, 56px);
}
.intro__eyebrow {
  font-family: var(--ff-b);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  position: relative;
  z-index: 1;
}
.intro__body {
  position: relative;
  z-index: 1;
}
.intro__name {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(80px, 13vw, 164px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: clamp(16px, 2vw, 28px);
}
.intro__headline {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: rgba(242, 237, 228, 0.75);
  margin-bottom: clamp(14px, 1.5vw, 22px);
}
.intro__subhead {
  font-family: var(--ff-d);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.55;
  color: rgba(242, 237, 228, 0.45);
  max-width: 600px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.intro__foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule-dk);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.intro__companies {
  font-family: var(--ff-b);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.22);
}
.intro__companies span + span::before {
  content: " · ";
  margin: 0 6px;
  opacity: 0.5;
}

/* ── VENTURE SECTIONS (Rivalta, Cherub) ─────────────────────────── */
.venture-entry {
  max-width: 800px;
}
.venture-entry__index {
  font-family: var(--ff-b);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.venture-entry__name {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.93;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
  transition: color 0.2s;
}
.venture-entry__name--lt {
  color: var(--paper);
}
.venture-entry__descriptor {
  font-family: var(--ff-d);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}
.venture-entry__body {
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--prose-lt);
  max-width: var(--max-prose);
  margin-bottom: 12px;
}
.venture-entry__body--lt {
  color: var(--prose-dk);
}
.venture-entry__cred {
  font-family: var(--ff-b);
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── BACKGROUND SECTION ─────────────────────────────────────────── */
.background-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(40px, 7vw, 96px);
  max-width: 960px;
  align-items: start;
}
.background-heading {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 24px;
}
.background-copy {
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--prose-lt);
  max-width: 540px;
  margin-bottom: 16px;
}
.credentials {
  margin-top: 32px;
  border-top: 1px solid var(--rule-lt);
}
.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-lt);
}
.cred-name {
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 400;
  color: var(--prose-lt);
  letter-spacing: 0.01em;
}
.cred-role {
  font-family: var(--ff-b);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.background-portrait img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3 / 4;
  filter: grayscale(20%) contrast(1.05);
}
.portrait-caption {
  font-family: var(--ff-b);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  opacity: 0.5;
}

/* ── CONTACT ────────────────────────────────────────────────────── */
.contact-heading {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.93;
  letter-spacing: -0.028em;
  color: var(--paper);
  max-width: 640px;
  margin-bottom: 24px;
}
.contact-desc {
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 300;
  color: rgba(242, 237, 228, 0.45);
  max-width: 400px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--ground);
  border-top: 1px solid var(--rule-dk);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__copy {
  font-family: var(--ff-b);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(242, 237, 228, 0.18);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__link {
  font-family: var(--ff-b);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(242, 237, 228, 0.18);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__link:hover {
  color: rgba(242, 237, 228, 0.5);
}

/* ── REVEAL ANIMATION ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.22s;
}
.d3 {
  transition-delay: 0.34s;
}
.d4 {
  transition-delay: 0.46s;
}

/* ================================================================
   ABOUT PAGE — legacy-compatible styles
   ================================================================ */

.about {
  padding-top: clamp(100px, 14vh, 160px);
  padding-bottom: clamp(60px, 8vh, 100px);
  background: var(--paper);
}
.about__header {
  margin-bottom: 48px;
}
.section-label {
  display: block;
  font-family: var(--ff-b);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 12px;
}
.about__title {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--ink);
}
.about__intro {
  font-family: var(--ff-d);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 580px;
}
.about__photo {
  float: right;
  margin: 0 0 32px 40px;
  width: clamp(160px, 25vw, 280px);
}
.about__headshot {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}
.prose {
  max-width: var(--max-prose);
}
.prose h2 {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 14px;
}
.prose h3 {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 10px;
}
.prose p {
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--prose-lt);
  margin-bottom: 18px;
}
.prose ul {
  list-style: none;
  margin-bottom: 18px;
}
.prose ul li {
  font-family: var(--ff-b);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--prose-lt);
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.prose ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--signal);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--rule-lt);
  margin: 40px 0;
}
.about__cta {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* About page buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 10px 20px;
  transition:
    opacity 0.2s,
    background 0.2s;
  cursor: pointer;
  border: none;
  border-radius: 0;
}
.btn--primary {
  background: var(--signal);
  color: var(--ground);
}
.btn--primary:hover {
  opacity: 0.88;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(10, 10, 10, 0.2);
}
.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* Timeline */
.section--alt {
  background: var(--ground);
  padding: clamp(60px, 8vh, 100px) 0;
}
.section__title {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 48px;
}
.timeline {
  max-width: 720px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-dk);
}
.timeline__year {
  font-family: var(--ff-b);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--signal);
  padding-top: 3px;
}
.timeline__title {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--paper);
  margin-bottom: 6px;
}
.timeline__desc {
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(242, 237, 228, 0.45);
}

/* Contact block (reused on about) */
.section--contact {
  background: var(--paper);
  padding: clamp(60px, 8vh, 100px) 0;
}
.display--md {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact__desc {
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 32px;
}
.contact__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── MOBILE ─────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .header__nav {
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .header__nav a:nth-child(-n + 2) {
    display: none;
  } /* hide first 2 links, keep Background + Contact */
  .background-grid {
    grid-template-columns: 1fr;
  }
  .background-portrait {
    display: none;
  }
  .about__photo {
    float: none;
    margin: 0 0 28px;
    width: 160px;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .timeline__year {
    font-size: 11px;
  }
}
@media (max-width: 400px) {
  .intro__name {
    letter-spacing: -0.03em;
  }
}
