:root {
  /* "Pietra" ground with grain, top light and vignette (was near-black #0e0e0f) */
  --bg: #36363a;
  --bg-2: #44444a;      /* raised surfaces: cards, hovers */
  --band: rgba(0, 0, 0, .18); /* the strip behind the two doors, one step deeper; translucent so the grain shows */
  --line: #4c4c52;
  --text: #f0f0ed;
  --muted: #b8b8b4;
  --work: #ebc988;      /* warm gold: events, film, advertising */
  --creative: #c4c9d2;  /* silver: photography, animation */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* layered shadow under photos: near, middle and far, like a print on a table */
  --shadow-photo: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 12px rgba(0, 0, 0, .28), 0 24px 48px -10px rgba(0, 0, 0, .5);
  --shadow-photo-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 12px 24px rgba(0, 0, 0, .3), 0 38px 64px -12px rgba(0, 0, 0, .58);
  --pad: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* a soft light falling from the top of the page */
  background: radial-gradient(80% 760px at 50% 0%, rgba(255, 255, 255, .09), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain and a camera-like vignette, fixed to the screen, under all content. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .30)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='.22'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: rgba(54, 54, 58, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 20px; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  background: none; border: 0; color: var(--muted); font: 600 12px var(--sans);
  padding: 6px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Hero ---------- */
/* Name on one line, the story under it; same column as every section below. */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 11vh, 96px) var(--pad) clamp(40px, 6vh, 56px);
}
.eyebrow { color: var(--work); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 600; margin: 0 0 20px; }
.hero-title { font-size: clamp(38px, 10.5vw, 96px); letter-spacing: -.02em; white-space: nowrap; }
.hero-lead { max-width: 660px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin: 28px 0 0; }

/* ---------- Two doors ---------- */
/* Inside the same column as the name and the sections, not edge to edge. */
.doors {
  display: flex; gap: 14px;
  max-width: var(--max); margin: 0 auto; padding: 28px var(--pad);
  /* full-width darker strip behind the doors, while the doors stay in the column */
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.door {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  min-height: clamp(380px, 48vh, 440px);
  padding: 28px 32px 32px;
  text-decoration: none;
  background: var(--bg);
  overflow: hidden;
  transition: flex .6s cubic-bezier(.2,.7,.2,1);
}
.door::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transition: opacity .5s;
}
.door--work::before {
  background: linear-gradient(90deg, rgba(14,14,15,.95) 0%, rgba(14,14,15,.9) 55%, rgba(14,14,15,.45) 82%, rgba(14,14,15,.15) 100%);
}
.door-top { text-shadow: 0 1px 10px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); color: rgba(237,237,234,.8); }
.door--work .door-list { max-width: 340px; }

/* Work: set photos as a faded backdrop — atmosphere, not a gallery */
.door > .door-collage {
  position: absolute; inset: 0; z-index: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 1fr 1fr; gap: 2px;
}
.door-collage img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.55) contrast(1.05) brightness(.85);
  transition: filter .8s, transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.door-collage img.tall { grid-row: span 2; }
.door--work:hover .door-collage img { filter: grayscale(0) brightness(.95); transform: scale(1.03); }
.door--creative::before {
  background: linear-gradient(to top, rgba(14,14,15,.94) 8%, rgba(14,14,15,.55) 50%, rgba(14,14,15,.25));
}
.door:hover { flex: 1.25; }
.door > * { position: relative; z-index: 2; }

.door-top { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.door-index { color: var(--muted); flex: none; }
.door-meta { text-align: right; }
.door-body { margin-top: auto; display: flex; flex-direction: column; }
.door-title { font-family: var(--serif); font-size: clamp(44px, 4.5vw, 64px); font-weight: 300; line-height: 1; margin: 0 0 12px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.door:hover .door-title { transform: translateX(6px); }
.door--work .door-title { color: var(--work); }
.door--creative .door-title { color: var(--creative); }
.door-sub { color: var(--muted); max-width: 360px; }
.door-cta { margin-top: 24px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--text); }

/* Work: a few real credits, like a call sheet */
.door-list { display: flex; flex-direction: column; margin-top: 20px; max-width: 460px; border-top: 1px solid var(--line); }
.door-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.door-row > span:last-child { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.door--work:hover .door-row > span:first-child { color: var(--work); }

/* Creative: a mosaic of real photographs behind the text */
.door > .door-mosaic {
  position: absolute; inset: 0; z-index: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px;
}
.door-mosaic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.5) brightness(.6);
  transition: filter .6s, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.door-mosaic img:first-child { object-position: 50% 25%; }
.door--creative:hover .door-mosaic img { filter: grayscale(0) brightness(.75); transform: scale(1.04); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 12vh, 140px) var(--pad); }
.section-head { margin-bottom: 56px; }
.section-index { font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.section h2 { font-size: clamp(40px, 6vw, 80px); margin: 10px 0 18px; }
.section--work h2 { color: var(--work); }
.section--creative h2 { color: var(--creative); }
.section-lead { color: var(--muted); max-width: 620px; font-size: 18px; margin: 0; }
.section-link {
  display: inline-block; margin-top: 20px; padding-bottom: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--work); border-bottom: 1px solid rgba(235, 201, 136, .45);
  transition: border-color .2s, color .2s;
}
.section-link:hover { color: var(--text); border-bottom-color: var(--text); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg-2); padding: 32px 28px; }
.service h3 { font-size: 28px; margin-bottom: 12px; }
.service p { color: var(--muted); margin: 0; }

.service-brands {
  list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 0;
}
/* brand names use the same font, size and colour as the card text */
.service-brands li { font: inherit; color: var(--muted); }
.service-brands li:not(:last-child)::after { content: "·"; margin: 0 .45em; color: var(--work); }
.list-title { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 72px 0 8px; }
.projects { list-style: none; margin: 0; padding: 0; }
.projects li {
  display: grid; grid-template-columns: 1fr auto 64px; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: padding .3s, color .3s;
}
.projects li:hover { padding-left: 12px; color: var(--work); }
.p-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.p-name { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; }
.p-role { color: var(--muted); font-size: 14px; }
.projects li:hover .p-role { color: var(--muted); }
.tools { margin: 18px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--creative); opacity: .85; }
.p-type, .p-year { color: var(--muted); font-size: 14px; text-align: right; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.ph { position: absolute; inset: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover .ph { transform: scale(1.05); }
.ph--a { background: linear-gradient(160deg, #2b3550, #11131a 70%), #111; }
.ph--b { background: radial-gradient(circle at 30% 30%, #9fb7ff55, transparent 60%), linear-gradient(200deg, #3a2440, #121014); }
.ph--c { background: linear-gradient(20deg, #1b2a2a, #3c4a3a); }
.ph--d { background: radial-gradient(60% 90% at 70% 50%, #ff8cb433, transparent 70%), linear-gradient(90deg, #15182a, #26304f); }
.ph--e { background: linear-gradient(140deg, #4a3a2a, #15120f); }
.ph--f { background: repeating-linear-gradient(90deg, #1d1d22 0 18px, #222229 18px 36px); }
.tile figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.tile figcaption strong { font-family: var(--serif); font-weight: 500; font-size: 18px; color: #fff; }
.tile figcaption span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* ---------- Animation reel ---------- */
.sub-title { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.sub-note { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
/* photo groups, editorial layout: the group name on the left, portrait covers on the right, captions under the picture */
.pgroups { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 40px; margin: 0 0 24px; }
.pgroups .sub-note { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--text); }
.pgroups .sub-note, .pgroups .pcards { border-top: 1px solid var(--line); padding-top: 24px; margin: 0 0 48px; }
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pcard { display: block; color: var(--text); text-decoration: none; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.pcard img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 6px; background: #16171a; box-shadow: var(--shadow-photo); transition: box-shadow .5s ease; }
.pcard:hover { transform: translateY(-4px); }
.pcard:hover img { box-shadow: var(--shadow-photo-hover); }
.pcard-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.pcard-meta strong { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.2; transition: color .3s; }
.pcard:hover .pcard-meta strong { color: var(--creative); }
.pcard-meta > span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Photography project pages ---------- */
.pg { padding-top: clamp(40px, 7vh, 80px); }
.pg-back { display: inline-block; margin-bottom: 40px; color: var(--muted); text-decoration: none; font-size: 14px; }
.pg-back:hover { color: var(--creative); }
.pg-title { font-size: clamp(48px, 9vw, 120px); letter-spacing: -.02em; color: var(--creative); }
.pg-count { margin: 14px 0 48px; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.pgrid { columns: 3; column-gap: 14px; }
.pshot { display: block; margin: 0 0 14px; break-inside: avoid; border-radius: 6px; overflow: hidden; background: #16171a; cursor: zoom-in; }
.pshot img { display: block; width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.pshot:hover img { transform: scale(1.03); }
.pg-next { display: flex; flex-direction: column; gap: 6px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); text-decoration: none; }
.pg-next span { color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.pg-next strong { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; transition: color .2s; }
.pg-next:hover strong { color: var(--creative); }

.plb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5,5,6,.94); }
.plb[hidden] { display: none; }
.plb img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 4px; }
.plb button { position: absolute; background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
.plb button:hover { background: var(--bg-2); }
.plb-close { top: 16px; right: 16px; font-size: 16px !important; }
.plb-prev { left: 16px; top: 50%; margin-top: -22px; }
.plb-next { right: 16px; top: 50%; margin-top: -22px; }
.plb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .14em; }

.photo-feature { position: relative; margin: 0 0 40px; border-radius: 6px; overflow: hidden; background: #1a1b1a; }
.photo-feature img { display: block; width: 100%; height: auto; }
.photo-feature figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 16px;
  font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}
.filters { display: flex; gap: 8px; margin: 0 0 24px; }
.chip {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font: 600 13px var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--creative); border-color: var(--creative); color: var(--bg); }

.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.clip {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; text-align: left;
  background: linear-gradient(160deg, #1f2433, #111318);
  color: #fff; font: inherit;
}
.clip--featured { grid-column: span 2; grid-row: span 2; }
.clip img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1);
}
.clip img.is-loaded { opacity: .9; }
.clip:hover img { transform: scale(1.05); opacity: 1; }
.clip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%);
}
.clip-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: transform .3s, background .3s;
}
.clip-play::before { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.clip:hover .clip-play { transform: scale(1.1); background: var(--creative); }
.clip-meta { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.clip-meta strong { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; }
.clip--featured .clip-meta strong { font-size: clamp(22px, 2.4vw, 30px); }
.clip-meta span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.clip.is-hidden { display: none; }

.reel-more { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.reel-more[hidden] { display: none; }
.reel-vimeo { color: var(--muted); font-size: 14px; text-decoration: none; }
.reel-vimeo:hover { color: var(--creative); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(5,5,6,.88); backdrop-filter: blur(6px); }
.lightbox-box { position: relative; width: min(1100px, 100%); }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 0 12px; font-family: var(--serif); font-size: 20px; }
.lightbox-close { background: none; border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; flex: none; }
.lightbox-close:hover { background: var(--bg-2); }
.lightbox-frame { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; background: #000; border-radius: 6px; overflow: hidden; }
.lightbox-frame.is-square { aspect-ratio: 1 / 1; width: min(100%, 80vh); margin: 0 auto; }
.lightbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- About ---------- */
/* the portrait stays below its real size (352 px wide) so it is never blown up */
.about { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  background: #121214; box-shadow: var(--shadow-photo);
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-text p { color: var(--muted); font-size: 18px; }

/* ---------- Contact ---------- */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact .section-lead { margin: 0 auto; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .2s, background .2s;
  overflow-wrap: anywhere;
}
.btn:hover { transform: translateY(-2px); background: var(--work); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-2); }

.footer {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 28px var(--pad); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer a { text-decoration: none; }

/* ---------- Section backgrounds: a tint for each world ---------- */
/* Each section gets a full-width band behind it (::before), with a clean edge between sections.
   Bands are translucent, so the grain and the top light still show through. */
.section { position: relative; isolation: isolate; }
.section::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  z-index: -1; pointer-events: none;
}
/* Work: a warm light from the top, on a slightly darker ground */
#work::before     { background: linear-gradient(180deg, rgba(240, 207, 142, .08), rgba(240, 207, 142, .02) 60%, transparent), rgba(0, 0, 0, .10); }
/* Creative: a cool, silver light from the top */
#creative::before { background: linear-gradient(180deg, rgba(196, 201, 210, .09), rgba(196, 201, 210, .02) 60%, transparent), rgba(0, 0, 0, .03); }
/* About: darker and neutral, a pause between the two worlds */
#about::before    { background: rgba(0, 0, 0, .18); }

/* ---------- Section titles: a soft shadow lifts them off the ground ---------- */
.section h2 { font-weight: 400; text-shadow: 0 2px 3px rgba(0, 0, 0, .55), 0 8px 16px rgba(0, 0, 0, .5), 0 22px 48px rgba(0, 0, 0, .6); }

/* ---------- Depth: layered shadow under every photo ---------- */
.door, .clip, .pshot, .photo-feature { box-shadow: var(--shadow-photo); }
.door { transition: flex .6s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.clip, .pshot { transition: box-shadow .5s ease; }
.door:hover, .clip:hover, .pshot:hover { box-shadow: var(--shadow-photo-hover); }

/* ---------- Scroll animation: the 12 principles of animation ---------- */
/* main.js tags elements with data-anim and adds .is-in when they reach the screen.
   fill-mode "backwards": after the entrance the element returns to its own styles (hover keeps working). */
[data-anim]:not(.is-in) { opacity: 0; }
[data-anim].is-in { animation-fill-mode: backwards; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
[data-anim="text"].is-in  { animation-name: dc-text;  animation-duration: .7s; }
[data-anim="title"].is-in { animation-name: dc-title; animation-duration: 1.1s; transform-origin: 0 100%; }
[data-anim="card"].is-in  { animation-name: dc-card;  animation-duration: 1s; transform-origin: 50% 100%; }
[data-anim="arc"].is-in   { animation-name: dc-arc;   animation-duration: .9s; }
[data-anim="photo"].is-in { animation-name: dc-photo; animation-duration: 1.2s; }
.pcard[data-anim="photo"].is-in { animation-name: dc-text; animation-duration: .9s; }

/* slow in, slow out */
@keyframes dc-text {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
/* stretch while travelling, overshoot (exaggeration), squash on landing, settle (follow-through) */
@keyframes dc-title {
  0%   { opacity: 0; transform: translateY(46px) scaleY(1.08); }
  55%  { opacity: 1; transform: translateY(-7px) scaleY(.97); }
  78%  { transform: translateY(2px) scaleY(1.01); }
  100% { opacity: 1; transform: none; }
}
/* anticipation (a small dip back), then rise with a perspective tilt that flattens (solid drawing) */
@keyframes dc-card {
  0%   { opacity: 0; transform: perspective(1000px) translateY(40px) rotateX(12deg) scale(.97); }
  14%  { opacity: .25; transform: perspective(1000px) translateY(48px) rotateX(13deg) scale(.965); }
  70%  { opacity: 1; transform: perspective(1000px) translateY(-4px) rotateX(-1.5deg) scale(1.005); }
  100% { opacity: 1; transform: none; }
}
/* enter along a curve, not a straight line (arcs) */
@keyframes dc-arc {
  0%   { opacity: 0; transform: translate(-28px, 34px); }
  40%  { opacity: 1; transform: translate(-16px, 8px); }
  75%  { transform: translate(-4px, -2px); }
  100% { opacity: 1; transform: none; }
}
/* the picture rises from the table and its shadow grows as it lands (staging, solid drawing) */
@keyframes dc-photo {
  0%   { opacity: 0; transform: translateY(26px) scale(.96); box-shadow: 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; box-shadow: var(--shadow-photo); }
}

/* room for the parallax drift (secondary action) without showing the edges */
.has-motion .door > .door-collage,
.has-motion .door > .door-mosaic { inset: -40px 0; }
.has-motion .photo-feature img { scale: 1.08; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  .doors { flex-direction: column; }
  .door { min-height: 0; padding: 24px 20px 28px; }
  .door--work .door-body { margin-top: 64px; }
  .door--creative { min-height: 380px; }
  .door:hover { flex: 1; }
  .door-row { font-size: 14px; }
  .door-top { font-size: 11px; letter-spacing: .12em; }
  .door > .door-collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
  .door-collage img.tall { grid-row: auto; }
  .door--work::before {
    background: linear-gradient(to bottom, rgba(14,14,15,.35), rgba(14,14,15,.7) 40%, rgba(14,14,15,.88));
  }
  .services { grid-template-columns: 1fr; }
  .projects li { grid-template-columns: 1fr auto; }
  .p-year { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .reel { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clip-meta strong { font-size: 15px; }
  .clip-play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .photo-feature { margin-bottom: 32px; }
  .pgroups { display: block; margin-bottom: 12px; }
  .pgroups .sub-note { font-size: 22px; padding-top: 18px; margin: 0 0 14px; }
  .pgroups .pcards { border-top: 0; padding-top: 0; margin-bottom: 36px; }
  .pcards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pcard-meta strong { font-size: 16px; }
  .pcard-meta > span { font-size: 9px; }
  .pgrid { columns: 2; column-gap: 10px; }
  .pshot { margin-bottom: 10px; }
  .plb-prev { left: 8px; } .plb-next { right: 8px; }
  .tile--wide { grid-column: span 2; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; animation: none !important; }
  [data-anim] { opacity: 1 !important; }
}
