@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fdfaf2;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ── Site header ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #000;
}
.site-header .brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fdfaf2;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .brand:hover { opacity: 0.8; }
.site-header nav {
  display: flex;
  gap: 34px;
}
.site-header nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fdfaf2;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.site-header nav a:hover { opacity: 1; }
.site-header nav a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ── Intro / cover splash ────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.9s ease;
}
.splash.hide {
  opacity: 0;
  pointer-events: none;
}
.splash-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.splash-enter {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  animation: splashPulse 2.6s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
.splash:hover .splash-enter { animation-play-state: paused; opacity: 1; }
.splash-enter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding-left: 0.4em;
}
.splash-chevron {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
  animation: splashBob 2.6s ease-in-out infinite;
}
@keyframes splashPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes splashBob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-enter, .splash-chevron { animation: none; }
}

/* ── Home hero ───────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.hero-section .bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-section .bg-video.is-active { opacity: 1; }
.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* ── Home intro ──────────────────────────────────────── */
.intro-section {
  background: #000;
  color: #fdfaf2;
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7vmax 32px;
}
.intro-content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.intro-left { flex: 0 0 50%; }
.intro-spacer { flex: 0 0 8%; }
.intro-right { flex: 1; }
.intro-left h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fdfaf2;
  margin-bottom: 8px;
}
.intro-left a {
  color: #fdfaf2;
  text-decoration: underline;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.75;
}
.intro-left a:hover { opacity: 1; }
.intro-social {
  margin-top: 18px;
  display: flex;
  gap: 20px;
}
.intro-left .intro-social a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.6;
  border-bottom: 1px solid rgba(253,250,242,0.25);
  padding-bottom: 2px;
}
.intro-left .intro-social a:hover { opacity: 1; }
.intro-right p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(253,250,242,0.8);
  font-weight: 300;
}

/* ── Home grid ───────────────────────────────────────── */
.home {
  padding: 6px;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none;
  background: #0c0c0c;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  transition: transform 0.5s ease;
}
.tile:hover img { transform: scale(1.045); }
.tile-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tile:hover .tile-caption { opacity: 1; }

/* Logofolio text tile */
.tile-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.tile-text span {
  font-size: clamp(30px, 3.7vw, 60px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

/* ── Project page ────────────────────────────────────── */
.project {
  max-width: 1040px;
  margin: 0 auto;
  padding: 118px 40px 90px;
}

/* two-column intro */
.pp-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.pp-intro .pp-title {
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(253,250,242,0.92);
}
.pp-intro .pp-title strong,
.pp-intro .pp-title em {
  display: block;
  font-style: italic;
}
.pp-intro .pp-title strong {
  font-style: italic;
  font-weight: 600;
}
.pp-intro .pp-title .pp-sub {
  font-style: italic;
  opacity: 0.7;
}
.pp-intro .pp-brief {
  font-size: 13px;
  line-height: 1.85;
  font-weight: 400;
  color: rgba(253,250,242,0.85);
}
.pp-intro .pp-brief .pp-brief-label {
  color: #fff;
}

/* generic image blocks */
.pp-full {
  margin-bottom: 10px;
}
.pp-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* logo evolution / anatomy — centered */
.pp-logo {
  margin: 0 auto 10px;
  text-align: center;
}
.pp-logo img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.pp-logo.wide img { max-width: 100%; }

/* color + type block */
.pp-colortype {
  margin-bottom: 10px;
}
.pp-colortype img { width: 100%; height: auto; display: block; }

/* mockup grids */
.pp-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.pp-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.pp-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.pp-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.pp-grid.g33-66 { grid-template-columns: 1fr 2fr; }
.pp-grid.g45-55 { grid-template-columns: 45fr 55fr; }
.pp-grid.g60-40 { grid-template-columns: 60fr 40fr; }
.pp-grid.g40-60 { grid-template-columns: 40fr 60fr; }
.pp-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pp-grid .cell {
  display: block;
  overflow: hidden;
}
.pp-grid .cell.tall { grid-row: span 2; }

/* logo anatomy & breakdown — title left, principles right */
.pp-anatomy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 0 0 10px;
}
.pp-anatomy .a-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.pp-anatomy .a-list { display: grid; gap: 12px; }
.pp-anatomy .a-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.pp-anatomy .a-row .k {
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pp-anatomy .a-row .d {
  font-weight: 300;
  color: rgba(253,250,242,0.78);
}

/* run · swim · ride — icon strip image */
.pp-icons {
  text-align: center;
  margin: 0 auto 10px;
}
.pp-icons img {
  max-width: 720px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* run · swim · ride band (legacy SVG) */
.pp-triathlon {
  display: flex;
  justify-content: center;
  gap: clamp(38px, 10vw, 130px);
  margin-bottom: 10px;
  padding: 14px 0 10px;
}
.pp-triathlon .tri-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pp-triathlon svg {
  width: clamp(46px, 6vw, 66px);
  height: auto;
  display: block;
}
.pp-triathlon span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fdfaf2;
}

/* staggered two-column block — left top image runs 15% into the row below */
.pp-stagger {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  aspect-ratio: 1.4 / 1;
}
.pp-stagger .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.pp-stagger .cell {
  display: block;
  overflow: hidden;
  min-height: 0;
}
.pp-stagger .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pp-stagger .col.left .cell:first-child { flex: 65; }
.pp-stagger .col.left .cell:last-child { flex: 35; }
.pp-stagger .col.right .cell { flex: 1; }

/* small caption under a block */
.pp-note {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(253,250,242,0.6);
  text-align: center;
  margin: -40px auto 10px;
  max-width: 560px;
}

/* footer meta / tools */
.pp-foot {
  font-size: 12px;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(253,250,242,0.6);
  margin-top: 8px;
}
.pp-foot strong { font-weight: 600; color: rgba(253,250,242,0.85); }

/* prev / next */
.pp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.pp-nav a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fdfaf2;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.pp-nav a:hover { opacity: 1; }
.pp-nav a .lbl {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
}
.pp-nav a.next { text-align: right; align-items: flex-end; }

/* ── Logofolio page ──────────────────────────────────── */
.folio {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 100px;
}
.folio-head {
  margin-bottom: 48px;
}
.folio-head h1 {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}
.folio-head p {
  margin-top: 16px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(253,250,242,0.7);
}
.folio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.folio-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #0b0b0b;
  display: block;
  padding: 8%;
}

/* ── Lightbox / carousel ─────────────────────────────── */
.project img,
.folio img { cursor: zoom-in; }

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: contain;
}
.lb-overlay.open { display: flex; }
.lb-img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
}
.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.lb-btn:hover { opacity: 1; }
.lb-close {
  top: 16px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 34px;
}
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 66px;
  height: 66px;
  font-size: 50px;
}
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
@media (max-width: 640px) {
  .lb-img { max-width: 96vw; max-height: 80vh; }
  .lb-prev, .lb-next { width: 52px; height: 52px; font-size: 38px; }
  .lb-close { top: 10px; right: 12px; }
}

/* ── Fade-in ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: repeat(3, 1fr); }
  .site-header { padding: 0 24px; }
  .project { padding: 100px 24px 70px; }
  .intro-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .intro-left, .intro-right { flex: none; width: 100%; }
  .intro-spacer { display: none; }
}
@media (max-width: 640px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .pp-anatomy { grid-template-columns: 1fr; gap: 20px; }
  .pp-grid.g3, .pp-grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .pp-stagger { flex-direction: column; aspect-ratio: auto; }
  .pp-stagger .col { flex-direction: column; }
  .pp-stagger .col.left .cell:first-child,
  .pp-stagger .col.left .cell:last-child,
  .pp-stagger .col.right .cell { flex: none; aspect-ratio: 4 / 3; }
  .folio-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-nav { flex-direction: column; align-items: flex-start; }
  .pp-nav a.next { text-align: left; align-items: flex-start; }
  .site-header .brand { font-size: 11px; letter-spacing: 0.1em; }
  .site-header nav { gap: 20px; }
}
