/* ==========================================================================
   Michael Fertitta, portfolio
   Green palette: deep forest + sage cream + lime highlight
   ========================================================================== */

:root {
  --forest-950: #07170f;
  --forest-900: #0c241a;
  --forest-800: #123a2b;
  --forest-700: #1a4d39;
  --forest-600: #25644b;
  --moss: #4f8a68;
  --sage-300: #c9d6bf;
  --sage-200: #dfe7d4;
  --sage-100: #eef2e6;
  --lime: #c5ee6a;
  --lime-600: #a9d64a;

  --ink: #13241c;
  --ink-muted: #4a5d53;
  --on-dark: #eef2e6;
  --on-dark-muted: #a9bdb0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--forest-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
em.pun { font-style: italic; font-weight: 500; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--lime); color: var(--forest-900); font-weight: 700; border-radius: var(--radius-sm); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* Type helpers ---------------------------------------------------------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow--dark { color: var(--forest-600); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.section-head--split > div { max-width: 640px; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.25rem); color: var(--on-dark); }
.section-title--dark { color: var(--forest-800); }
.section-note { max-width: 420px; margin: 0; color: var(--on-dark-muted); }
.section-head--center .section-note { margin: 16px auto 0; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-lime { background: var(--lime); color: var(--forest-900); box-shadow: 0 8px 24px -10px rgba(197, 238, 106, .6); }
.btn-lime:hover { background: #d4f78a; }
.btn-forest { background: var(--forest-800); color: var(--on-dark); }
.btn-forest:hover { background: var(--forest-700); }
.btn-ghost { border-color: rgba(238, 242, 230, .35); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; color: var(--forest-600); text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--forest-800); }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled { background: rgba(12, 36, 26, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(238, 242, 230, .08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--lime); color: var(--forest-900);
  font: 700 1.05rem/1 var(--font-display); letter-spacing: -0.02em;
  transform: rotate(-6deg); transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(0); }
.brand-name { font: 700 1.15rem/1 var(--font-display); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--lime); transition: right .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-social { display: flex; gap: 14px; }
.nav-social a, .footer-social a { display: grid; place-items: center; color: var(--on-dark-muted); transition: color .2s; }
.nav-social a:hover, .footer-social a:hover { color: var(--lime); }
.nav-social svg { width: 18px; height: 18px; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(238, 242, 230, .08); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--on-dark); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  color: var(--on-dark);
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(79, 138, 104, .35), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(197, 238, 106, .08), transparent 60%),
    var(--forest-900);
  overflow: hidden;
}
.hero::before {
  /* subtle dotted texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(238, 242, 230, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: clamp(40px, 6vw, 88px); }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.4rem); margin-bottom: 28px; letter-spacing: -0.025em; }
.hero-title .pun { color: var(--lime); }
.hero-lede { max-width: 580px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-dark-muted); }
.hero-lede strong { color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 32px; }
.hero-tagline { max-width: 480px; padding-left: 16px; border-left: 3px solid var(--lime); font-size: .98rem; color: var(--on-dark-muted); }
.hero-tagline strong { color: var(--on-dark); }

.hero-photo { position: relative; justify-self: center; width: min(100%, 420px); }
.photo-frame {
  position: relative; border-radius: 32px; overflow: hidden;
  aspect-ratio: 1; transform: rotate(2.5deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  outline: 2px solid rgba(197, 238, 106, .5); outline-offset: 10px;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.sticker {
  position: absolute; left: -22px; bottom: 28px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--lime); color: var(--forest-900);
  font-size: .85rem; font-weight: 700; letter-spacing: .01em;
  transform: rotate(-5deg);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(238, 242, 230, .3); color: var(--on-dark);
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 20px; height: 20px; transform: rotate(90deg); }
.scroll-cue:hover { border-color: var(--lime); color: var(--lime); }
@keyframes bob { 50% { transform: translateY(6px); } }

/* Key art wall ---------------------------------------------------------- */
.titles { padding: var(--section-y) 0; background: var(--forest-900); }
.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.art-tile {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  aspect-ratio: 616 / 353; background: var(--forest-800);
}
.art-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.art-tile span {
  position: absolute; inset: auto 0 0; padding: 28px 14px 12px;
  font-size: .85rem; font-weight: 700; color: #fff; line-height: 1.3;
  background: linear-gradient(to top, rgba(7, 23, 15, .92), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.art-tile:hover img { transform: scale(1.06); }
.art-tile:hover span { opacity: 1; transform: none; }
.more-titles { margin-top: 28px; font-size: .95rem; color: var(--on-dark-muted); }
.more-titles span { color: var(--lime); font-weight: 700; margin-right: 6px; }

/* Coverage -------------------------------------------------------------- */
.coverage { padding: var(--section-y) 0; background: var(--forest-800); }
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coverage-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--sage-100);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.coverage-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); }
.coverage-art { width: 100%; aspect-ratio: 616 / 353; object-fit: cover; }
.coverage-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 30px; }
.coverage-outlet {
  align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--forest-800); color: var(--lime);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.coverage-body h3 { font-size: 1.5rem; color: var(--forest-800); margin-bottom: 12px; }
.coverage-body p:not(.coverage-outlet) { color: var(--ink-muted); font-size: 1rem; }
.coverage-body .text-link { margin-top: auto; align-self: flex-start; }
.coverage-body p + .text-link { margin-top: 20px; }

/* Stats ----------------------------------------------------------------- */
.stats {
  padding: var(--section-y) 0; color: var(--on-dark);
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(197, 238, 106, .12), transparent 60%),
    var(--forest-700);
}
.stats-quote {
  max-width: 900px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-style: italic; font-weight: 500; line-height: 1.2;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
.stat { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; padding: 24px 12px; border-top: 1px solid rgba(238, 242, 230, .2); }
.stat dd { margin: 0 0 8px; font: 700 clamp(2.8rem, 6vw, 4.4rem)/1 var(--font-display); color: var(--lime); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat dt { color: var(--on-dark-muted); font-size: .95rem; }

/* Clients --------------------------------------------------------------- */
.clients { padding: var(--section-y) 0; background: var(--forest-900); }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.logo-grid li, .partner-list li {
  display: grid; place-items: center;
  min-height: 120px; padding: 24px 22px; border-radius: var(--radius-sm);
  background: rgba(238, 242, 230, .04); border: 1px solid rgba(238, 242, 230, .08);
  transition: background-color .3s, border-color .3s;
}
.logo-grid li:hover, .partner-list li:hover { background: rgba(197, 238, 106, .08); border-color: rgba(197, 238, 106, .35); }
.logo-grid img, .partner-list img { width: auto; max-width: 100%; max-height: 52px; opacity: .88; transition: opacity .3s; }
.logo-grid li:hover img, .partner-list li:hover img { opacity: 1; }
.logo-grid img.logo--wide, .partner-list img.logo--wide { max-height: 34px; }
.logo-grid img.logo--tall, .partner-list img.logo--tall { max-height: 68px; }
.wordmark { color: var(--on-dark); opacity: .88; font: 700 1.45rem/1.1 var(--font-body); letter-spacing: -0.02em; text-align: center; }
.wordmark--serif { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0; }

.partners { margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.partner-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 900px; margin: 0 auto; }

/* Creator --------------------------------------------------------------- */
.creator { padding: var(--section-y) 0; background: var(--forest-800); }
.creator-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.creator-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--forest-900); color: var(--on-dark); text-decoration: none;
  border: 1px solid rgba(238, 242, 230, .08);
  transition: transform .35s var(--ease), border-color .35s;
}
a.creator-card:hover { transform: translateY(-6px); border-color: rgba(197, 238, 106, .4); }
.creator-art { aspect-ratio: 616 / 353; overflow: hidden; }
.creator-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.creator-card:hover .creator-art img { transform: scale(1.04); }
.creator-art--type {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(197, 238, 106, .06) 0 12px, transparent 12px 24px),
    var(--forest-700);
}
.creator-art--alt { background: repeating-linear-gradient(45deg, rgba(238, 242, 230, .05) 0 12px, transparent 12px 24px), var(--forest-600); }
.creator-art--type span { font: italic 700 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-display); color: var(--lime); }
.creator-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.creator-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.creator-kicker svg { width: 18px; height: 18px; }
.creator-body h3 { font-size: 1.45rem; margin-bottom: 10px; }
.creator-body p:not(.creator-kicker) { color: var(--on-dark-muted); font-size: 1rem; }
.creator-body .text-link { margin-top: auto; align-self: flex-start; color: var(--lime); }
.creator-body p + .text-link { margin-top: 20px; }

/* CTA ------------------------------------------------------------------- */
.cta {
  position: relative; padding: clamp(96px, 12vw, 160px) 0; text-align: center; color: var(--on-dark);
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(197, 238, 106, .22), transparent 60%),
    var(--forest-900);
  overflow: hidden;
}
.cta-inner { max-width: 860px; }
.cta-title { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.025em; }
.cta-title .pun { color: var(--lime); }
.cta-lede { margin: 24px auto 40px; max-width: 560px; font-size: 1.15rem; color: var(--on-dark-muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-actions .btn { max-width: 100%; overflow-wrap: anywhere; }

/* Footer ---------------------------------------------------------------- */
.site-footer { padding: 72px 0 32px; background: var(--forest-950); color: var(--on-dark-muted); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(238, 242, 230, .1); }
.footer-brand p { margin: 18px 0 20px; max-width: 340px; }
.footer-social { display: flex; gap: 16px; }
.footer-social svg { width: 22px; height: 22px; }
.footer-col h2 { margin-bottom: 16px; font: 700 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.footer-col li + li { margin-top: 10px; }
.footer-col a { text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: .85rem; }
.footer-fine { color: rgba(169, 189, 176, .7); }

/* Reveal animation ------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav-social { display: none; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .creator-grid { grid-template-columns: 1fr 1fr; }
  .creator-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 36px;
    padding: var(--header-h) var(--gutter) 48px;
    background: var(--forest-900);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: center; gap: 22px; }
  .nav-links a { font: 700 1.9rem/1.1 var(--font-display); }
  .nav-social { display: flex; gap: 24px; }
  .nav-social svg { width: 24px; height: 24px; }
  .brand { position: relative; z-index: 2; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed overlay inside the header */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--forest-900); }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-photo { order: -1; width: min(72vw, 320px); justify-self: start; margin-left: 12px; }
  .art-grid { grid-template-columns: repeat(3, 1fr); }
  .coverage-grid { grid-template-columns: 1fr; max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { padding-bottom: 88px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .sticker { left: auto; right: -12px; bottom: -14px; font-size: .78rem; }
  .art-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .art-tile span { opacity: 1; transform: none; font-size: .72rem; padding: 22px 8px 8px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid li, .partner-list li { min-height: 96px; padding: 18px 16px; }
  .logo-grid img { max-height: 42px; }
  .logo-grid img.logo--wide { max-height: 28px; }
  .partner-list { grid-template-columns: 1fr 1fr; }
  .wordmark { font-size: 1.2rem; }
  .wordmark--serif { font-size: 1.1rem; }
  .creator-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
