:root {
  --bg: #F5F4F0;
  --bg-2: #ECEAE3;
  --ink: #0A0A0A;
  --ink-soft: #2B2B2B;
  --muted: #8A8A85;
  --line: #1A1A1A;
  --line-soft: rgba(10, 10, 10, 0.12);

  --accent-1: #B5443B;  /* Reel + Work — cinematic red */
  --accent-2: #2E5F4D;  /* Skills — forest green */
  --accent-3: #2D4F8E;  /* Resume + Clients — cobalt blue */
  --rec: #E63946;       /* Record indicator — vermilion red */

  --ease: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --pad: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1600px;
}

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

html { scroll-behavior: smooth; }

/* ---------- Respect prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  /* Halt perpetual marquees / tickers */
  .ticker__track,
  .logo-track {
    animation: none !important;
    transform: none !important;
  }
  /* Stop the pulsing record dot */
  .live,
  .dot {
    animation: none !important;
  }
  /* Show all reveal-on-scroll content immediately */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Top nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.4rem var(--pad);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  background: rgba(245, 244, 240, 0.78);
  border-bottom: 1px solid var(--line-soft);
}

.nav__brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__brand .dot {
  width: 9px; height: 9px;
  background: var(--rec);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.nav__center {
  display: flex;
  gap: 2.4rem;
  justify-self: center;
  font-size: 0.85rem;
}
.nav__center a {
  position: relative;
  padding: 0.25rem 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav__center a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.35s var(--ease);
}
.nav__center a:hover::after,
.nav__center a.is-active::after { width: 100%; }
.nav__center a.is-active { color: var(--ink); }

.nav__time {
  justify-self: end;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__time .live {
  width: 6px; height: 6px;
  background: #2BB673;
  border-radius: 50%;
}

@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__center { display: none; }
}

/* ---------- Hero / Marker line ---------- */
.hero-marker {
  padding: 7rem var(--pad) 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.hero-marker__title {
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .hero-marker {
    padding: 3.5rem var(--pad) 1.2rem;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.4rem;
  }
  .hero-marker__title { white-space: normal; }
  .hero-marker__meta { text-align: left; }
}
.hero-marker__title em {
  font-style: normal;
  color: var(--muted);
}
.hero-marker__title strong {
  font-weight: 700;
  color: var(--ink);
}
.hero-marker__meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

/* ---------- Three panels ---------- */
.panels {
  display: flex;
  width: 100%;
  height: 72vh;
  min-height: 540px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 1.6rem 1.5rem 1.5rem;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg);
  transition: flex 0.7s var(--ease), background-color 0.7s var(--ease), color 0.5s var(--ease);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.panel:last-child { border-right: none; }

.panels:hover .panel { flex: 1 1 0; }
.panels .panel:hover { flex: 2.4 1 0; }

.panel[data-accent="1"]:hover { background: var(--accent-1); color: #FFF; }
.panel[data-accent="2"]:hover { background: var(--accent-2); color: #FFF; }
.panel[data-accent="3"]:hover { background: var(--accent-3); color: #FFF; }

/* Top row inside each panel */
.panel__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.panel__num {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.panel__tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Big vertical title that reorients on hover */
.panel__title-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  position: relative;
  margin-top: 1rem;
}

.panel__title {
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  transition: transform 0.7s var(--ease), letter-spacing 0.7s var(--ease);
  transform-origin: left bottom;
  white-space: nowrap;
}

/* Subtitle / description that fades in on hover */
.panel__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 38ch;
  margin-top: 1.1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease-soft) 0.15s, transform 0.55s var(--ease-soft) 0.15s;
  letter-spacing: -0.005em;
}
.panel:hover .panel__desc {
  opacity: 0.92;
  transform: translateY(0);
}

/* Bottom row: meta + arrow */
.panel__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.2rem;
}
.panel__bottom-meta {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.panel__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--ease) 0.18s, transform 0.5s var(--ease) 0.18s;
}
.panel:hover .panel__cta { opacity: 1; transform: translateX(0); }

.panel__cta svg {
  width: 22px; height: 22px;
  transition: transform 0.4s var(--ease);
}
.panel:hover .panel__cta svg { transform: translateX(4px); }

/* Touch devices: hover doesn't exist, so show description + CTA by default
   so mobile/tablet visitors don't lose the supporting copy. */
@media (hover: none) {
  .panel__desc {
    opacity: 0.92;
    transform: translateY(0);
  }
  .panel__cta {
    opacity: 1;
    transform: translateX(0);
  }
  .panel__line { width: 100%; }
}

/* Decorative texture: thin progress line at top */
.panel__line {
  position: absolute;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.9s var(--ease);
}
.panel:hover .panel__line { width: 100%; }

/* Ghost image placeholders that fade in on hover */
.panel__ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(0,0,0,0.18), transparent 50%);
}
.panel:hover .panel__ghost { opacity: 1; }

/* ----- Panel background image + color-tint duotone ----- */
.panel__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  filter: grayscale(100%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease);
}
.panels .panel:hover .panel__image {
  opacity: 0.92;
  filter: grayscale(0%);
}

.panel__color {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: color;
  transition: opacity 0.7s var(--ease);
}
.panels .panel:hover .panel__color { opacity: 1; }

/* Per-panel placeholder images (swap URLs for real photos later) */
/* Panel 1 — athletic / Nike-style ad */
.panel[data-accent="1"] .panel__image {
  background-image: url("https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=1400&q=80&auto=format&fit=crop");
}
/* Panel 2 — Sony Venice on tripod (BTS) */
.panel[data-accent="2"] .panel__image {
  background-image: url("skills-bg.jpg");
}
/* Panel 3 — branded airliner */
.panel[data-accent="3"] .panel__image {
  background-image: url("https://i.imgur.com/QmK8Afa.jpeg");
}
.panel[data-accent="1"] .panel__color { background: var(--accent-1); }
.panel[data-accent="2"] .panel__color { background: var(--accent-2); }
.panel[data-accent="3"] .panel__color { background: var(--accent-3); }

/* Stack content above image + color layers */
.panel__line { z-index: 4; }
.panel__ghost { z-index: 2; }
.panel__top,
.panel__title-wrap,
.panel__desc,
.panel__bottom {
  position: relative;
  z-index: 3;
}

@media (max-width: 860px) {
  .panels {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .panel {
    flex: none !important;
    min-height: 38vh;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .panel:last-child { border-bottom: none; }
  .panel__title { white-space: normal; }
}

/* ---------- Marquee / ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--bg);
}
.ticker__track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: scroll 90s linear infinite;
  width: max-content;
}
.ticker__item {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.ticker__item::after {
  content: '✦';
  color: var(--accent-1);
  font-size: 0.7rem;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about {
  padding: clamp(3rem, 7vh, 5rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.section-label::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--muted);
}
.about__intro {
  margin-bottom: clamp(1.4rem, 3vh, 2rem);
}
.about__main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-2);
}
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.about__content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.about__lead {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
}
.about__lead em { font-style: italic; color: var(--ink); font-weight: 500; }
.about__bio {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  padding-top: 1.4rem;
  margin-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
}
.about__stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.about__stat-num {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.about__stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
@media (max-width: 880px) {
  .about__main { grid-template-columns: 1fr; gap: 1.5rem; }
  .about__portrait { max-width: 200px; }
  .about__stats { grid-template-columns: 1fr; gap: 0.8rem; }
  .about__stat {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .about__stat:last-child { border-bottom: none; padding-bottom: 0; }
  .about__stat-num { min-width: 4rem; }
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(2.5rem, 6vh, 4rem) var(--pad) clamp(2rem, 5vh, 3rem);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
}
/* 2-column layout: text+form (left) | video (right) */
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 420px);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  justify-content: center;
}
.contact__col {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vh, 3rem);
}
.contact__media {
  position: sticky;
  top: 2rem;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 4rem);
  width: 100%;
}
.contact__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 880px) {
  .contact__layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact__col { max-width: 100%; }
  .contact__media { position: static; }
}
.contact__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__head {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.contact__head .out {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}
.contact__sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 48ch;
}
.contact__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.contact__direct {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.contact__direct a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact__direct a:hover { border-color: var(--accent-1); color: var(--accent-1); }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field { position: relative; display: flex; flex-direction: column; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.55rem 0;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease);
  font-family: inherit;
  resize: vertical;
}
.field textarea { min-height: 80px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); }

.form__submit {
  align-self: flex-start;
  margin-top: 0.8rem;
  padding: 1rem 1.6rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 999px;
  transition: background 0.4s var(--ease), transform 0.3s var(--ease);
}
.form__submit svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.form__submit:hover { background: var(--accent-1); transform: translateY(-1px); }
.form__submit:hover svg { transform: translateX(3px); }

.form__status {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1rem;
  letter-spacing: 0.02em;
}
.form__status.ok { color: #2BB673; }

@media (max-width: 600px) {
  .contact__channels { flex-direction: column; gap: 0.5rem; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem var(--pad);
}
.footer__row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.footer ul a { transition: color 0.3s var(--ease); }
.footer ul a:hover { color: var(--accent-1); }
.footer__brand {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.footer__brand small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
  letter-spacing: 0;
  font-weight: 400;
}
.footer__legal {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .footer__row { grid-template-columns: 1fr; }
}

/* ---------- Subtle reveal-on-load ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft); }
.reveal.visible { opacity: 1; transform: translateY(0); }
