/* ============================================================
   TRISTAN FAHEY — hype page
   Funky modern personal brand site
   ============================================================ */

/* ---------- palettes ---------- */
:root {
  --ink:    oklch(0.17 0.03 305);
  --cream:  oklch(0.965 0.02 85);
  --paper:  oklch(0.93 0.03 80);

  /* Sunset Funk palette */
  --c1: oklch(0.66 0.24 5);     /* hot pink   */
  --c2: oklch(0.56 0.26 295);   /* violet     */
  --c3: oklch(0.80 0.16 60);    /* tangerine  */
  --c4: oklch(0.62 0.16 235);   /* ocean      */

  --bg: var(--cream);
  --fg: var(--ink);

  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 12px 12px 0 var(--ink);

  --maxw: 1280px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 200;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(8px, 2vw, 28px);
  background: var(--ink);
  color: var(--cream);
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.18);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c1); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 7px 13px; border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--c1); color: var(--ink); }
.nav-cta {
  background: var(--c1); color: var(--ink) !important;
}
.nav-cta:hover { background: var(--c3) !important; }
@media (max-width: 720px){ .nav-links a:not(.nav-cta){ display:none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  padding: 120px 0 60px;
  display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 80% 10%, color-mix(in oklch, var(--c3) 35%, transparent), transparent 60%),
    radial-gradient(120% 90% at 0% 100%, color-mix(in oklch, var(--c2) 30%, transparent), transparent 55%),
    var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  width: 100%;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.03em;
  margin: 0;
  font-size: clamp(72px, 15vw, 240px);
  text-transform: uppercase;
}
.hero-name .l1 { color: var(--ink); }
.hero-name .l2 {
  color: transparent;
  -webkit-text-stroke: clamp(2px, 0.4vw, 5px) var(--ink);
  position: relative;
}
.hero-name .l2 span {
  color: var(--c1);
  -webkit-text-stroke: 0;
}
.hero-sub {
  margin-top: clamp(18px, 3vw, 32px);
  max-width: 32ch;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.35;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 9px 15px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  transition: transform 0.15s;
}
.tag:nth-child(1){ background: var(--c1); }
.tag:nth-child(3){ background: var(--c3); }
.tag:nth-child(5){ background: var(--c4); color: var(--cream); }
.tag:hover { transform: rotate(-3deg) scale(1.04); }

.hero-photo {
  position: relative;
  justify-self: center;
}
.hero-photo .frame {
  width: clamp(240px, 30vw, 380px);
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--c2);
  rotate: 3deg;
  transition: rotate 0.3s;
}
.hero-photo .frame:hover { rotate: -2deg; }
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-blob {
  position: absolute;
  inset: -8% -12%;
  z-index: -1;
  background: var(--c1);
  border-radius: 47% 53% 60% 40% / 45% 50% 50% 55%;
  animation: blob 14s ease-in-out infinite;
}
@keyframes blob {
  0%,100% { border-radius: 47% 53% 60% 40% / 45% 50% 50% 55%; rotate: 0deg; }
  50% { border-radius: 60% 40% 40% 60% / 55% 45% 55% 45%; rotate: 8deg; }
}
.hero-badge {
  position: absolute;
  bottom: -22px; left: -28px;
  width: clamp(96px, 12vw, 130px); height: clamp(96px, 12vw, 130px);
  display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  border-radius: 50%;
  font-family: var(--font-mono); font-weight: 700;
  text-align: center; font-size: 11px; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.05em;
  animation: spinslow 18s linear infinite;
}
.hero-badge b { display:block; font-family: var(--font-display); font-size: 22px; color: var(--c1); }
@keyframes spinslow { to { rotate: 360deg; } }

.scrollcue {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.2em; opacity: 0.6;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { translate: -50% 8px; } }

@media (max-width: 860px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; margin-bottom: 12px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--c1);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  padding: 14px 0;
}
.marquee.alt { background: var(--ink); }
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  animation: scroll 26s linear infinite;
}
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 4vw, 46px);
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--ink); display: flex; align-items: center; gap: 40px;
  white-space: nowrap;
}
.marquee.alt span { color: var(--cream); }
.marquee span::after { content: "✦"; color: var(--cream); }
.marquee.alt span::after { color: var(--c1); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.block { padding: clamp(70px, 11vw, 150px) 0; }
.block-ink { background: var(--ink); color: var(--cream); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(36px, 6vw, 72px); flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 7vw, 96px); line-height: 0.9;
  letter-spacing: -0.03em; margin: 0; text-transform: uppercase;
}
.section-title em { font-style: normal; color: var(--c1); }
.section-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 14px; letter-spacing: 0.1em;
  border: 2px solid currentColor; border-radius: 999px;
  padding: 6px 14px; white-space: nowrap;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-copy p { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; margin: 0 0 1.1em; }
.about-copy p .hl { background: var(--c3); padding: 0 6px; border-radius: 4px; box-decoration-break: clone; }
.about-copy strong { color: var(--c1); }
.about-photo {
  border: 5px solid var(--cream);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  rotate: -2.5deg;
  aspect-ratio: 4/3;
  background: var(--c4);
}
.about-photo img { width:100%; height:100%; object-fit: cover; object-position: 30% center; }
@media (max-width: 820px){ .about-grid { grid-template-columns: 1fr; } }

/* ---------- CERTIFIED ---------- */
.certified { text-align: center; }
.cert-big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 13vw, 180px); line-height: 0.85;
  letter-spacing: -0.04em; text-transform: uppercase; margin: 0;
}
.cert-big .stamp {
  display: inline-block;
  color: var(--c1);
  border: clamp(4px,0.7vw,8px) solid var(--c1);
  padding: 0 0.12em;
  border-radius: 16px;
  rotate: -4deg;
}
.cert-sub { font-size: clamp(17px,1.8vw,24px); max-width: 46ch; margin: 28px auto 0; line-height:1.45; }
.cert-row { display:flex; flex-wrap:wrap; gap: 14px; justify-content:center; margin-top: 40px; }
.cert-chip {
  font-family: var(--font-mono); font-weight:700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 12px 20px; border-radius: 999px;
  border: 2.5px solid var(--cream);
}
.cert-chip.fill { background: var(--c1); color: var(--ink); border-color: var(--c1); }

/* ---------- TWO MODES ---------- */
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.mode {
  border: 4px solid var(--ink); border-radius: 26px; overflow: hidden;
  background: var(--cream);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.mode:hover { transform: translateY(-6px); }
.mode .pic { aspect-ratio: 1/1; overflow: hidden; }
.mode .pic img { width:100%; height:100%; object-fit: cover; transition: scale 0.4s; }
.mode:hover .pic img { scale: 1.05; }
.mode.beach .pic img { object-position: center 35%; }
.mode .meta { padding: 22px 24px 26px; }
.mode .meta .label { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; }
.mode .meta h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); margin: 4px 0 8px; letter-spacing: -0.02em; }
.mode .meta p { margin: 0; font-size: 16px; line-height: 1.45; }
.mode.funky .meta { background: var(--c1); color: var(--ink); }
.mode.beach .meta { background: var(--c4); color: var(--cream); }
@media (max-width: 720px){ .modes-grid { grid-template-columns: 1fr; } }

/* ---------- STATS ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px);
}
.stat {
  border: 4px solid var(--cream); border-radius: 22px;
  padding: clamp(22px,3vw,34px) clamp(18px,2vw,26px);
  display: flex; flex-direction: column; gap: 8px;
  transition: background 0.2s, color 0.2s;
}
.stat:hover { background: var(--c1); color: var(--ink); border-color: var(--c1); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 0.9; letter-spacing: -0.03em; }
.stat .lab { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; line-height: 1.35; }
@media (max-width: 880px){ .stats-grid { grid-template-columns: repeat(2,1fr);} }

/* ---------- QUOTE ---------- */
.quote-wrap { text-align: center; }
.quote {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 5.5vw, 80px); line-height: 0.98;
  letter-spacing: -0.03em; margin: 0 auto; max-width: 18ch;
}
.quote .mk { color: var(--c1); }
.quote-by { font-family: var(--font-mono); font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 28px; opacity: 0.7; }

/* ---------- CONTACT ---------- */
.contact { background: var(--c1); color: var(--ink); }
.contact .section-title { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px,5vw,70px); align-items:center; }
.contact-lead { font-size: clamp(20px,2.4vw,32px); font-weight:600; line-height:1.25; }
.contact-list { display:flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.contact-list a, .contact-list span {
  display:flex; align-items:center; gap:14px;
  font-family: var(--font-mono); font-weight:700; font-size: clamp(16px,1.6vw,20px);
  padding: 14px 0; border-bottom: 2px solid var(--ink);
  transition: padding-left 0.18s;
}
.contact-list a:hover { padding-left: 12px; }
.contact-list .ic { width: 22px; }
.contact-card {
  border: 4px solid var(--ink); border-radius: 26px; overflow:hidden;
  box-shadow: var(--shadow); background: var(--ink); rotate: 2deg;
  aspect-ratio: 3/4;
}
.contact-card img { width:100%; height:100%; object-fit: cover; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } .contact-card{ display:none; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 40px 0 50px; }
.footer-inner { display:flex; justify-content: space-between; align-items:center; gap:20px; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-display); font-weight:800; font-size: clamp(28px,4vw,52px); letter-spacing:-0.03em; }
.footer small { font-family: var(--font-mono); font-size: 12px; opacity: 0.6; letter-spacing: 0.05em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;} * { animation: none !important; } }
