/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:         #FFF6D6;
  --surface:    #FFFFFF;
  --ink:        #3B2E2A;
  --muted:      #7D6B60;
  --line:       #EADFB4;
  --accent:     #B5593A;
  --on-accent:  #FFFFFF;
  --tile1:      #CBD3B0;
  --tile2:      #F0CDB6;
  --tile3:      #EBDDB5;
  --tile4:      #E9C4BC;
  --tile-ink:   #3B2E2A;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body:    "Figtree", system-ui, -apple-system, sans-serif;
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  padding-block: 0 60px;
  padding-inline: max(20px, env(safe-area-inset-left,0px)) max(20px, env(safe-area-inset-right,0px));
  transition: background 0.4s, color 0.4s;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { cursor: none; font-family: inherit; }
@media (pointer: coarse) { button { cursor: pointer; } }
h1,h2,h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.06; text-wrap: balance; }
.muted  { color: var(--muted); }
.small  { font-size: 0.9rem; }
.wrap   { max-width: 1040px; margin-inline: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── NOISE ───────────────────────────────────────────────────── */
.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── CURSOR ──────────────────────────────────────────────────── */
.cursor {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease-expo), height .25s var(--ease-expo), background .2s, opacity .2s;
  opacity: 0;
}
.cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 10001;
  transform: translate(-50%,-50%);
  transition: opacity .2s; opacity: 0;
}
.cursor.active   { opacity: 1; }
.cursor-dot.active { opacity: 1; }
.cursor.hover    { width: 64px; height: 64px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal, .reveal-right {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease-expo), transform .75s var(--ease-expo);
}
.reveal-right { transform: translateX(32px); }
.reveal.in, .reveal-right.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── NAV ─────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 200;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px 24px; padding-block: 20px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background 0.4s;
}
.bar .name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bar nav a { color: var(--muted); font-size: 0.95rem; padding: 4px 0; position: relative; }
.bar nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .25s var(--ease-expo);
}
.bar nav a:hover { color: var(--ink); }
.bar nav a:hover::after { width: 100%; }

.theme-toggle {
  background: none; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 6px 12px;
  color: var(--muted); font-size: 0.9rem;
  display: flex; gap: 6px; align-items: center;
  transition: border-color .2s, color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--ink); transform: scale(1.05); }
/* icon visibility — kept for future use */
:root[data-theme="light"] .moon { display: none; }
:root:not([data-theme="light"]) .sun { display: none; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px 64px; align-items: center;
  padding-block: 52px 100px;
}
.hero-eyebrow {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6rem);
  letter-spacing: -0.03em; line-height: 1.0;
}
.hero h1 em { font-style: normal; color: var(--accent); }

/* typewriter line */
.hero-role {
  margin-top: 24px; font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.02em;
}
.typewriter-wrap { display: inline-flex; align-items: center; gap: 2px; }
.typewriter-text {
  display: inline-block;
  background: var(--accent); color: var(--on-accent);
  padding: 2px 14px 4px; border-radius: 999px;
  min-width: 1ch; transition: background .2s;
}
.typewriter-cursor {
  font-weight: 300; color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub { margin-top: 12px; font-size: 1.1rem; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; font-family: inherit;
  border: 1.5px solid var(--ink); background: none; color: var(--ink);
  cursor: none;
  transition: transform .25s var(--ease-spring), background .2s, color .2s, border-color .2s;
}
@media (pointer: coarse) { .btn { cursor: pointer; } }
.btn:hover { transform: translateY(-3px); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* portrait */
.portrait-wrap { justify-self: center; position: relative; width: min(100%, 320px); }
.portrait {
  width: 100%; aspect-ratio: 4/5;
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(160deg, var(--tile1), color-mix(in srgb, var(--tile2) 60%, var(--tile3)));
  display: grid; place-items: center; text-align: center;
  color: var(--tile-ink); padding: 24px;
  position: relative; z-index: 1;
  transition: transform .5s var(--ease-expo);
}
.portrait:hover { transform: scale(1.02) rotate(-0.5deg); }
.portrait b { display: block; font-family: var(--font-display); font-size: 5.5rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.portrait span { display: block; margin-top: 10px; font-size: 0.85rem; opacity: 0.7; }
.portrait-blob {
  position: absolute; inset: -12%;
  border-radius: 40% 60% 55% 45% / 45% 35% 65% 55%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  z-index: 0;
  animation: blob 8s ease-in-out infinite alternate;
}
@keyframes blob {
  from { border-radius: 40% 60% 55% 45% / 45% 35% 65% 55%; transform: rotate(0deg) scale(1); }
  to   { border-radius: 55% 45% 40% 60% / 60% 55% 45% 40%; transform: rotate(6deg) scale(1.04); }
}

/* ── SECTIONS ────────────────────────────────────────────────── */
section { padding-block: 0 96px; }
.eyebrow {
  color: var(--accent); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px;
}
section > h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 32px; letter-spacing: -0.02em; }
.about { max-width: 58ch; font-size: 1.1rem; display: flex; flex-direction: column; gap: 16px; }

/* ── EXPERIENCE ──────────────────────────────────────────────── */
.exp { display: flex; flex-direction: column; }
.exp-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) 1.6fr 2fr;
  gap: 6px 32px; padding-block: 26px;
  border-top: 1px solid var(--line);
  transition: background .2s;
}
.exp-row:last-child { border-bottom: 1px solid var(--line); }
.exp-row:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.exp-row .yrs { font-size: 0.88rem; padding-top: 4px; }
.exp-row h3 { font-size: 1.25rem; }
.exp-row .role { margin-top: 2px; font-size: 0.95rem; }
.exp-row .what { font-size: 0.95rem; }
.co { display: flex; align-items: center; gap: 14px; min-width: 0; }
.co-logo { width: 48px; height: 48px; border-radius: 12px; flex: none; object-fit: cover; background: var(--surface); }
@media (max-width: 720px) { .exp-row { grid-template-columns: 1fr; gap: 6px; } }

/* ── FILTERS ─────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  cursor: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease-spring);
}
@media (pointer: coarse) { .chip { cursor: pointer; } }
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ── WORK CARDS – new structure ──────────────────────────────── */
.work { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-expo), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); }
.card[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; box-shadow: none; } }

/* tile strip at top of card */
.card .tile {
  aspect-ratio: 16/9; width: 100%; border-radius: 0;
  border-top-left-radius: 24px; border-top-right-radius: 24px;
  font-size: 2.6rem;
  transition: transform .4s var(--ease-expo);
}
.card:hover .tile { transform: scale(1.02); }
.card:hover .tile span { transform: scale(1.05); }

.t1 { background: var(--tile1); }
.t2 { background: var(--tile2); }
.t3 { background: var(--tile3); }
.t4 { background: var(--tile4); }

.card-body {
  padding: 20px 22px 24px;
  display: flex; flex-direction: column; flex: 1;
}

.meta-badges {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin-bottom: 10px;
}
.cat-tag {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 3px 10px; border-radius: 999px;
}
.role-pill {
  font-size: 0.78rem; font-weight: 500;
  color: var(--muted); background: var(--line);
  padding: 3px 10px; border-radius: 999px;
}
.card-body h3 { font-size: 1.2rem; margin-bottom: 2px; }
.card-body .sub { font-size: 0.88rem; }
.campaign-desc { font-size: 0.9rem; margin-top: 8px; margin-bottom: 12px; line-height: 1.5; }

.links-section-title {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin: 10px 0 6px;
}
.link-list {
  display: flex; flex-direction: column; gap: 5px;
  max-height: 220px; overflow-y: auto; padding-right: 4px;
}
.link-list::-webkit-scrollbar { width: 4px; }
.link-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.watch-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 0.86rem; color: var(--ink);
  text-decoration: none; padding: 8px 12px;
  background: var(--bg); border-radius: 10px;
  border: 1px solid var(--line); font-weight: 500;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.watch-link:hover {
  background: var(--accent); color: #fff;
  border-color: var(--accent); transform: translateX(2px);
}
.watch-link .arrow { font-size: 0.82rem; opacity: 0.7; }

.single-go {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent); font-weight: 600; font-size: 0.92rem;
  text-decoration: none;
  transition: transform .15s var(--ease-spring);
}
.single-go:hover { transform: translateX(3px); text-decoration: underline; }

/* ── BEYOND ──────────────────────────────────────────────────── */
.trio {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px; margin-bottom: 24px;
}
.soft {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .3s var(--ease-expo), box-shadow .3s;
}
.soft:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -8px rgba(0,0,0,.25); }
.soft-icon { font-size: 1.8rem; margin-bottom: 4px; }
.soft h3 { font-size: 1.35rem; }
.soft p { color: var(--muted); }
.soft a { color: var(--accent); font-weight: 600; margin-top: auto; padding-top: 10px; font-size: 0.95rem; }
.places { display: flex; flex-wrap: wrap; gap: 12px; }
.place {
  padding: 12px 22px; border-radius: 999px;
  background: var(--tile3); color: var(--tile-ink);
  font-weight: 500;
  transition: background .2s, transform .2s var(--ease-spring);
}
.place:hover { background: var(--tile2); transform: translateY(-2px); }
.place small { opacity: 0.7; margin-left: 6px; }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact {
  background: var(--tile1);
  color: var(--tile-ink); border-radius: 36px;
  padding: clamp(32px,7vw,72px);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 32px 48px; position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.25); pointer-events: none;
}
.contact h2 { font-size: clamp(2.4rem,6vw,3.8rem); position: relative; z-index: 1; }
.contact .how { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; z-index: 1; }
.contact .mail { font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact .row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact .btn { border-color: var(--tile-ink); color: var(--tile-ink); }
.contact .btn.solid { background: var(--tile-ink); color: var(--tile1); border-color: var(--tile-ink); }

footer { text-align: center; color: var(--muted); padding-top: 48px; }

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: none; animation: lb-bg .3s var(--ease-expo) both;
}
@media (pointer: coarse) { .lightbox-bg { cursor: pointer; } }
@keyframes lb-bg { from { opacity: 0; } to { opacity: 1; } }
.lightbox-panel {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 32px; padding: clamp(24px,6vw,48px);
  max-width: 480px; width: 100%;
  display: flex; flex-direction: column; gap: 14px;
  animation: lb-panel .45s var(--ease-spring) both;
}
@keyframes lb-panel {
  from { opacity: 0; transform: scale(.88) translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: .85rem; display: grid; place-items: center; cursor: none;
  transition: background .2s, color .2s, transform .2s var(--ease-spring);
}
@media (pointer: coarse) { .lightbox-close { cursor: pointer; } }
.lightbox-close:hover { background: var(--ink); color: var(--bg); transform: scale(1.1) rotate(90deg); }
.lightbox-tile {
  aspect-ratio: 16/9; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.8rem; letter-spacing: -0.03em;
  color: var(--tile-ink);
}
.lightbox-title { font-size: 1.8rem; }
.lightbox-cta { align-self: flex-start; margin-top: 6px; }
