/* ==========================================================================
   Lanna Rabbich — portfolio styles
   Change the accent colour on the --accent line below.
   ========================================================================== */

:root {
  --accent: #FF6FB5;          /* pink — try #FFC83D (yellow), #7CE0B4 (mint), #B9A6FF (lilac) */

  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --ink: #161616;
  --text-soft: #3A3935;
  --muted: #5C5A55;
  --line: #E2E0DA;
  --line-strong: #CFCBC2;
  --screen: #1C1C1B;
  --screen-text: #B5B3AD;
  --rec: #E5341A;
  --rec-text: #C42A12;
  --ok: #18A957;

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: Inter, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: 24px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 10;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

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

/* ---------- header ---------- */

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 28px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 10px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

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

.hero { padding-top: 48px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--rec-text); font-weight: 500; }
.rec::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--rec); animation: rec 1.4s steps(1) infinite;
}
@keyframes rec { 50% { opacity: 0.15; } }

.hero-title {
  margin: 28px 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 10.5vw, 156px);
  line-height: 0.92; letter-spacing: -0.04em; text-wrap: balance;
}
.accent-dot { color: var(--accent); }

.hero-row {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px;
}
.hero-row p { margin: 0; flex: 1 1 420px; max-width: 560px; font-size: 22px; line-height: 1.45; text-wrap: pretty; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; overflow-wrap: anywhere; }

/* ---------- video screens ---------- */

.screen {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--screen); border-radius: 16px; overflow: hidden;
}
.screen--lg { border-radius: 24px; }

/* viewfinder corners */
.screen::before, .screen::after {
  content: ""; position: absolute; z-index: 2; width: 18px; height: 18px;
  border: 0 solid rgba(255, 255, 255, 0.45); pointer-events: none;
}
.screen::before { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.screen::after { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.screen.is-playing::before, .screen.is-playing::after { display: none; }

.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.screen-label {
  position: absolute; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--screen-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.screen-label--tl { top: 14px; left: 16px; }

.screen-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--screen-text);
}

.play {
  position: absolute; z-index: 2; top: 50%; left: 50%;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.play svg { width: 37%; height: 37%; margin-left: 6%; }
.screen--lg .play { width: 96px; height: 96px; }

.player-btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
}
.player-btn:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.player-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -8px; border-radius: inherit; }

/* ---------- timeline ---------- */

.reel { margin-top: 56px; display: flex; flex-direction: column; gap: 18px; }

.timecode {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
}
.ruler { flex: 1; height: 10px; background: repeating-linear-gradient(90deg, #BDB9B0 0 1px, transparent 1px 24px); }

.timeline { display: flex; gap: 12px; }
.track-labels { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.track-labels span { display: flex; align-items: center; height: 30px; }
.track-labels span + span { height: 18px; }
.tracks { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.track { display: flex; gap: 3px; height: 30px; }
.track--audio { height: 18px; }
.clip { flex: var(--f, 1); border-radius: 5px; background: var(--line-strong); }
.clip--accent { background: var(--accent); }
.track--audio .clip { border-radius: 4px; background: #E0DDD6; }
.track--audio .clip--alt { background: #D3CFC7; }
.playhead {
  position: absolute; top: -10px; bottom: -6px; left: 0; width: 2px;
  background: var(--ink); animation: scrub 18s linear infinite;
}
.playhead::before {
  content: ""; position: absolute; top: -2px; left: -5px;
  border: 6px solid transparent; border-top-color: var(--ink);
}
@keyframes scrub { from { left: 0%; } to { left: 100%; } }

.timeline--sm .track-labels span { height: 22px; }
.timeline--sm .track-labels span + span { height: 14px; }
.timeline--sm .track { height: 22px; }
.timeline--sm .track--audio { height: 14px; }

/* ---------- sections ---------- */

.section { padding-top: 128px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section-title {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 500 15px/1 var(--font-body);
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line-strong); cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* work grid */
.grid {
  margin-top: 48px; display: grid; gap: 48px 32px;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.card .screen { transition: transform 0.35s ease; }
.card:hover .screen { transform: scale(1.015); }
.card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.card-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.card-sub { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.tag {
  flex: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; white-space: nowrap;
}

/* ---------- about ---------- */

.about {
  padding-top: 144px;
  display: grid; gap: 64px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}
.portrait { position: relative; }
.portrait-frame {
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: #E6E3DC;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.sticker {
  position: absolute; right: -12px; bottom: -28px;
  width: 148px; height: 148px; padding: 16px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.05;
  transform: rotate(-10deg);
}
.about-body { display: flex; flex-direction: column; gap: 22px; }
.about-body > p { margin: 0; font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.services { list-style: none; margin: 0; padding: 0; }
.services li { display: flex; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.services .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.services .name { font-size: 19px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }

/* ---------- contact ---------- */

.contact { padding-top: 160px; }
.contact-card {
  border-radius: 32px; background: var(--accent); color: var(--ink);
  padding: clamp(36px, 6vw, 88px);
  display: flex; flex-direction: column; gap: 28px;
}
.contact-card .eyebrow { color: var(--ink); }
.contact-title {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6.5vw, 92px); line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance;
}
.contact-card p { margin: 0; max-width: 560px; font-size: 20px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 16px; }
.socials a { text-underline-offset: 4px; display: inline-block; padding-block: 10px; }

/* ---------- footer ---------- */

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-block: 40px 56px;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.site-footer a { text-underline-offset: 4px; }

/* ---------- project page ---------- */

.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); text-decoration: none; font-size: 15px; font-weight: 500;
}
.back-btn:hover { border-color: var(--ink); }
.back-btn svg { width: 16px; height: 16px; }

.project { padding-top: 40px; }
.project-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tag-accent { padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.project-title {
  margin: 24px 0 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 7.5vw, 104px); line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance;
}
.project-client { margin: 16px 0 0; font-size: 22px; color: var(--muted); }
.project-player { margin-top: 48px; display: flex; flex-direction: column; gap: 18px; }

.facts {
  margin: 72px 0 0; display: grid; gap: 0 32px; border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.facts div { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 19px; font-weight: 600; }

.story {
  margin-top: 72px; display: grid; gap: 48px 64px;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}
.story h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }
.story p { margin: 14px 0 0; font-size: 19px; line-height: 1.6; color: var(--text-soft); text-wrap: pretty; white-space: pre-line; }

.stills {
  margin-top: 72px; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.next {
  margin-top: 112px; padding: 48px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.next-text { display: flex; flex-direction: column; gap: 8px; }
.next-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.next-arrow {
  flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease;
}
.next-arrow svg { width: 28px; height: 28px; }
.next:hover .next-arrow { transform: translateX(8px); }

.not-found { padding-block: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 24px; }
  .hero-row p { font-size: 19px; }
  .section { padding-top: 96px; }
  .about { padding-top: 96px; gap: 56px; }
  .contact { padding-top: 112px; }
  .sticker { right: 8px; bottom: -24px; width: 116px; height: 116px; font-size: 17px; }
  .screen--lg .play { width: 72px; height: 72px; }
  .contact-card { border-radius: 24px; }
}

/* ---------- respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
