/* SERAPH — portfolio design system v2
   Reference: thiswasmajor.com/portfolio — blue/green gradient hero with centered
   giant display word + hanging keychain, big-card project rows (media left,
   details right, tag pills), black body, aurora-glow footer. */

:root {
  --bg: #0a0a0a;
  --panel: #151515;
  --ink: #ececec;
  --ink-strong: #ffffff;
  --icy: #f2f4f6;
  --blue: #c7ccd2;
  --muted: #8b8b8b;
  --faint: #5c5c5c;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "Fragment Mono", "SFMono-Regular", monospace;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #ffffff; color: #0a0a0a; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.mono b, .mono strong { color: var(--ink); font-weight: 400; }

.bracket::before { content: "[ "; color: var(--faint); }
.bracket::after { content: " ]"; color: var(--faint); }

/* ---------- nav (centered logo, links split) ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}
.nav-left { display: flex; gap: 34px; }
.nav-right { display: flex; gap: 34px; justify-content: flex-end; }
.nav-left a, .nav-right a { font-size: 14px; color: var(--ink); opacity: 0.75; transition: opacity 0.25s; }
.nav-left a:hover, .nav-right a:hover { opacity: 1; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-strong);
  text-align: center;
}
.nav-logo sup { font-size: 10px; vertical-align: super; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 34px; height: 34px;
  position: relative;
  z-index: 101;
  justify-self: end;
}
.burger span {
  position: absolute;
  left: 5px; right: 5px;
  height: 1.5px;
  background: var(--ink-strong);
  transition: transform 0.3s, top 0.3s;
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 20px; }
body.menu-open .burger span:nth-child(1) { top: 16px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--pad);
  padding-right: var(--pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: clamp(44px, 12vw, 80px);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--line-soft);
  padding-top: 12px;
  padding-bottom: 12px;
}
.mobile-menu .mono { margin-top: 28px; }

/* ---------- gradient hero ---------- */

.hero-grad {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 85% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 90% at 12% 38%, rgba(150, 155, 162, 0.5) 0%, rgba(150, 155, 162, 0) 60%),
    linear-gradient(160deg, #3a3d42 0%, #26282c 30%, #121316 62%, #08090b 100%);
}
.hero-grad::before {
  /* mouse-follow glow */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 340px at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, 0.13), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
}
.hero-grad::after {
  /* bottom fade into black body */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, rgba(10,10,10,0.9) 85%, #0a0a0a 100%);
  pointer-events: none;
}
.hero-title-wrap { position: relative; z-index: 2; width: 100%; }
.hero-grad .hero-title {
  font-size: clamp(64px, 15.2vw, 252px);
  color: var(--icy);
  line-height: 0.9;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  position: relative;
  z-index: 3;
  margin-top: clamp(20px, 4vh, 44px);
  color: rgba(240, 243, 246, 0.85);
  max-width: 620px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: clamp(15px, 1.4vw, 18px);
}
.scroll-more {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  z-index: 3;
  text-align: center;
  color: rgba(240, 243, 246, 0.8);
}
.scroll-more .arr { display: inline-block; animation: bob 1.6s ease-in-out infinite; margin-left: 10px; margin-right: 10px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- project list (media left / details right) ---------- */

.plist-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(48px, 7vh, 90px);
  padding-bottom: 22px;
}
.plist { display: flex; flex-direction: column; gap: clamp(64px, 10vh, 130px); padding-bottom: clamp(80px, 12vh, 150px); }
.plist-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 34px);
  align-items: stretch;
}
.plist-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--ink); padding-top: 4px; }
.p-media {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  height: clamp(300px, 48vw, 520px);
}
.p-media img {
  width: 100%;
  height: auto;
  transform: scale(1.06);
  transform-origin: top center;
  transition: transform 0.9s var(--ease);
}
.plist-row:hover .p-media img { transform: scale(1); }
.p-media .view-pill {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(10, 10, 10, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.plist-row:hover .view-pill { opacity: 1; transform: translateY(0); }
.p-details { display: flex; flex-direction: column; min-width: 0; }
.p-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.p-client {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 0.95;
  color: var(--ink-strong);
}
.p-year { font-size: 16px; color: var(--ink); padding-top: 8px; flex-shrink: 0; }
.p-sector { margin-top: 12px; color: var(--blue); font-size: 16.5px; }
.p-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.tag {
  background: #1d1d1d;
  color: var(--ink);
  font-size: 14px;
  padding: 9px 15px;
  border-radius: 5px;
  transition: background 0.25s;
}
.plist-row:hover .tag { background: #262626; }

/* ---------- footer (reference style) ---------- */

.footer { position: relative; overflow: hidden; padding-top: clamp(70px, 10vh, 120px); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.footer-brand .nav-logo { text-align: left; font-size: clamp(38px, 4.5vw, 64px); display: block; }
.f-loc { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 15px; color: var(--ink); }
.f-loc .arr { color: var(--blue); }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 100px;
}
.globe { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.footer-links { display: flex; gap: clamp(40px, 6vw, 110px); }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { font-size: 15.5px; color: var(--ink); opacity: 0.85; transition: opacity 0.25s, color 0.25s; }
.footer-links a:hover { opacity: 1; color: var(--ink-strong); }
.footer-links a .ext { color: var(--muted); font-size: 12px; margin-left: 6px; }
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #062b14;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  transition: transform 0.3s var(--ease), background 0.25s;
}
.wa-btn svg { width: 19px; height: 19px; }
.wa-btn:hover { background: #30e173; transform: translateY(-2px); }

.aurora {
  position: relative;
  height: clamp(220px, 34vh, 380px);
  margin-top: clamp(40px, 7vh, 90px);
  background:
    radial-gradient(58% 74% at 26% 100%, rgba(190, 196, 204, 0.4) 0%, rgba(190, 196, 204, 0) 68%),
    radial-gradient(46% 60% at 62% 100%, rgba(120, 125, 132, 0.32) 0%, rgba(120, 125, 132, 0) 70%),
    radial-gradient(30% 40% at 44% 100%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.footer-base {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  margin-top: -60px;
}
.footer-base .legal { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-base a:hover { color: var(--ink-strong); }
.footer-base .credit b { color: var(--ink); font-weight: 500; }

/* ---------- case study pages ---------- */

.case-hero {
  min-height: 74svh;
  padding-top: 108px;
  padding-bottom: 70px;
}
.case-crumb {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(240, 243, 246, 0.75);
}
.case-crumb a:hover { color: #ffffff; }
.case-hero .hero-title { font-size: clamp(52px, 10.5vw, 190px); margin-top: clamp(20px, 4vh, 44px); }
.case-meta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: clamp(30px, 6vw, 90px);
  flex-wrap: wrap;
  margin-top: clamp(26px, 5vh, 52px);
}
.case-meta .mono { display: block; margin-bottom: 6px; color: rgba(240, 243, 246, 0.6); }
.case-meta p { font-size: 15.5px; color: var(--icy); }
.case-intro {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin-top: clamp(24px, 4vh, 44px);
  margin-left: auto;
  margin-right: auto;
  color: rgba(240, 243, 246, 0.85);
  font-size: clamp(16px, 1.5vw, 19px);
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding-top: clamp(70px, 10vh, 130px); padding-bottom: clamp(70px, 10vh, 130px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1;
  color: var(--ink-strong);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
}
.ba-panel .mono { display: flex; justify-content: space-between; margin-bottom: 12px; }
.ba-frame {
  border: 1px solid var(--line);
  background: var(--panel);
  max-height: 76vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}
.ba-frame img { width: 100%; }
.ba-panel .cap { margin-top: 10px; font-size: 13.5px; color: var(--faint); }

.brief-lede {
  max-width: 860px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-strong);
  margin-bottom: clamp(36px, 5vh, 60px);
}
.changes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); border-top: 1px solid var(--line); }
.change { padding-top: 20px; display: flex; gap: 18px; border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; }
.change .num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); padding-top: 3px; }
.change h3 { font-size: 17px; font-weight: 600; color: var(--ink-strong); margin-bottom: 6px; }
.change p { font-size: 14.5px; color: var(--muted); }

.case-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vh, 70px); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { border-color: var(--ink-strong); }
.btn.solid { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.btn.solid:hover { background: var(--ink); }

.case-next { border-top: 1px solid var(--line); }
.case-next a { display: block; padding-top: clamp(36px, 6vh, 64px); padding-bottom: clamp(36px, 6vh, 64px); }
.case-next .mono { display: block; margin-bottom: 14px; }
.case-next .display { font-size: clamp(44px, 8vw, 120px); transition: color 0.3s; margin-left: -0.03em; }
.case-next a:hover .display { color: var(--muted); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .keychain { animation: none; }
  .scroll-more .arr { animation: none; }
  .p-media img { transition: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .nav-left, .nav-right { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-logo { text-align: left; }
  .burger { display: block; }
  .plist-row { grid-template-columns: 1fr; gap: 14px; }
  .plist-row .num { padding-top: 0; }
  .p-media { height: clamp(240px, 55vw, 420px); }
  .p-tags { padding-top: 18px; }
  .case-meta { gap: 26px; }
  .ba-grid { grid-template-columns: 1fr; }
  .changes { grid-template-columns: 1fr; }
  .footer-links { gap: 44px; }
}

@media (max-width: 640px) {
  .hero-grad { min-height: 80svh; }
  .footer-top { flex-direction: column; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
