/* Layout: editorial and asymmetric on warm paper. Big serif name, portrait + orange branch,
   gallery of scrolling rails. Orange leads; each category owns one of Deniz's neons as a marker colour. */
:root {
  color-scheme: light;
  --bg: #faefe6;            /* Deniz's cream */
  --fg: #141110;            /* near-black ink */
  --soft: #3d3632;
  --muted: #6b625b;
  --line: #ddcdbf;
  --orange: #fe741f;        /* fills, lines */
  --orange-ink: #b9440a;    /* orange that passes as text on cream */
  --c-film: #fe741f;
  --c-anim: #f760ff;
  --c-brand: #c4f102;
  --c-gd: #5da6bf;
  --c-int: #ffb21f;
  --label: 'DM Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --title: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max: 1280px;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

.label {
  font-family: var(--label); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.it { font-family: var(--title); font-style: normal; font-weight: 500; }

/* ---------- Header + dropdown ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(250, 239, 230, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-block: 12px;
}
.brand { font-family: var(--label); font-weight: 500; letter-spacing: 0.2em; font-size: 13px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; }
.nav > a, .dd-btn {
  font-family: var(--label); font-size: 15px; letter-spacing: 0.08em; text-decoration: none;
  color: var(--muted); background: none; border: 0; padding: 10px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { color: var(--fg); }
.dd { position: relative; }
.dd-btn svg { transition: transform .2s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; right: -16px; top: 100%; min-width: 230px; margin: 0; padding: 10px 0; list-style: none;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20,17,16,.15);
}
.dd-menu a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 8px 20px; text-decoration: none; color: var(--fg);
}
.dd-menu a .it { font-size: 24px; }
.dd-menu a .label { color: var(--muted); font-size: 11px; }
.dd-menu a:hover .it, .dd-menu a:focus-visible .it { color: var(--orange-ink); }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 40px; }
.hero h1 {
  margin: 0; font-family: var(--title); font-style: normal; font-weight: 500;
  font-size: clamp(40px, 9.5vw, 140px); line-height: .9; letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.hero h1 .last { display: block; padding-left: 0.5em; }
@media (max-width: 760px) { .hero h1 .last { padding-left: 0.25em; } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end;
  margin-top: 56px;
}
.hero-grid .photo { margin: 0; max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.hero-grid .photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: #eadccd; box-shadow: 18px 18px 0 var(--orange); }
.hero-grid .photo figcaption { font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.hero-side { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.hero-intro { display: flex; flex-direction: column; gap: 10px; max-width: 40ch; border-top: 1px solid var(--line); padding-top: 16px; }
.hero-intro p { margin: 0; color: var(--soft); font-size: 17px; }
.hero-intro .label { color: var(--orange-ink); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid .photo { max-width: 420px; }
}

/* The orange branch */
.tree { display: flex; flex-direction: column; gap: 36px; }
.trunk {
  font-family: var(--body); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05;
  text-decoration: none; color: var(--fg); width: fit-content;
}
.trunk:hover { color: var(--orange-ink); }
.branch { display: flex; align-items: center; flex-wrap: wrap; }
.stem { position: relative; width: 36px; height: 2px; background: var(--orange); margin-left: 16px; }
.stem::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); }
.twigs { position: relative; list-style: none; margin: 0; padding: 0 0 0 36px; display: grid; gap: 2px; }
.twigs::before { content: ""; position: absolute; left: 0; top: .8em; bottom: .8em; border-left: 2px solid var(--orange); }
.twigs li { position: relative; }
.twigs li::before { content: ""; position: absolute; left: -36px; top: 50%; width: 26px; border-top: 2px solid var(--orange); }
.twigs li::after { content: ""; position: absolute; left: -13px; top: calc(50% - 5px); width: 8px; height: 8px; border: 2px solid var(--orange); background: var(--bg); transform: rotate(45deg); }
.twigs a {
  font-family: var(--title); font-style: normal; font-weight: 500; font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.2; text-decoration: none; color: var(--fg); transition: color .2s, padding-left .2s;
}
.twigs a:hover, .twigs a:focus-visible { color: var(--orange-ink); padding-left: 6px; }
@media (max-width: 520px) {
  .branch { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stem { display: none; }
  .twigs { margin-left: 8px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border-radius: 999px; background: var(--orange); color: var(--fg);
  font-family: var(--body); font-weight: 500; font-size: 16px; text-decoration: none; width: fit-content;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Work: tools ---------- */
.work { padding-block: 128px 0; scroll-margin-top: 64px; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.work-head h2 { margin: 0; font-family: var(--title); font-style: normal; font-weight: 500; font-size: clamp(56px, 8vw, 104px); line-height: .9; }
.work-head .count { font-family: var(--label); font-size: 13px; letter-spacing: .16em; color: var(--muted); margin-left: 12px; font-style: normal; vertical-align: super; }
.tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.filters, .views { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.views .chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange-ink); }

/* ---------- Work: index view ---------- */
.index { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) 190px 220px; gap: 16px; align-items: baseline;
  padding-block: 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg);
  transition: color .2s;
}
.row .n { font-family: var(--label); font-size: 13px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .t { font-family: var(--title); font-style: normal; font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1; transition: transform .25s ease, color .2s; }
.row .c, .row .k { font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.row:hover .t, .row:focus-visible .t { color: var(--orange-ink); transform: translateX(14px); }
.index:hover .row:not(:hover) .t { color: rgba(20, 17, 16, .3); }
@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "c"; gap: 6px; }
  .row .t { grid-area: t; }
  .row .c { grid-area: c; }
  .row .k { display: none; }
}

/* ---------- Work: gallery view (rails) ---------- */
.category { padding-top: 56px; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cat-head h3 { margin: 0; font-family: var(--title); font-style: normal; font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.cat-head h3 .label { font-family: var(--label); font-style: normal; font-size: 12px; color: var(--muted); margin-left: 10px; vertical-align: middle; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center;
}
.rail-ctrl button:hover:not(:disabled) { border-color: var(--orange-ink); color: var(--orange-ink); }
.rail-ctrl button:disabled { opacity: .3; cursor: default; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 26vw, 300px);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 18px; margin: 0; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail > li { scroll-snap-align: start; min-width: 0; }
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--fg); }
.tile .poster { transition: transform .35s ease; }
.tile:hover .poster { transform: translateY(-6px) rotate(-1.5deg); }
.tile .label { color: var(--muted); font-size: 11px; }
.tile h4 { margin: 0; font-family: var(--title); font-style: normal; font-weight: 500; font-size: 28px; line-height: 1.05; }
.tile:hover h4 { color: var(--orange-ink); }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.poster {
  aspect-ratio: 2 / 3; max-width: 100%;
  background:
    radial-gradient(90% 70% at 30% 20%, var(--c1, #3a302a) 0%, transparent 70%),
    radial-gradient(80% 60% at 80% 90%, var(--c2, #211b17) 0%, transparent 70%),
    #0d0b0a;
  display: flex; align-items: flex-end; padding: 12px;
  color: rgba(250, 239, 230, .8); font-size: 11px; font-family: var(--label); letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- About ---------- */
.about { padding-block: 152px 0; scroll-margin-top: 64px; }
.about .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.about .quote {
  grid-column: 1 / 8; margin: 0; font-family: var(--title); font-style: normal; font-weight: 500;
  font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; text-wrap: balance;
}
.about .quote em { font-style: normal; color: var(--orange-ink); }
.about .side { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 16px; color: var(--soft); padding-top: 12px; min-width: 0; }
.about .side p { margin: 0; }
.about .side .label { color: var(--orange-ink); }
@media (max-width: 860px) { .about .quote, .about .side { grid-column: 1 / -1; } }

/* ---------- Contact ---------- */
.contact { scroll-margin-top: 64px; }
.contact .big {
  margin: 0; font-family: var(--title); font-style: normal; font-weight: 500;
  font-size: clamp(44px, 9.5vw, 140px); line-height: .9; letter-spacing: -0.03em;
}
.contact .big span { display: block; padding-left: 1.2em; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact-row p { margin: 0; color: var(--soft); max-width: 44ch; }
.reach { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.email { font-size: clamp(20px, 2.4vw, 28px); color: var(--fg); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 100% 2px no-repeat; padding-bottom: 3px; }
.email:hover { color: var(--orange-ink); }
.copy {
  font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 999px;
  min-height: 36px; padding: 0 14px; cursor: pointer;
}
.copy:hover { border-color: var(--fg); }
.socials { display: flex; gap: 22px; flex-wrap: wrap; }
.socials a { text-decoration: none; color: var(--muted); }
.socials a:hover { color: var(--fg); }
@media (max-width: 760px) {
  .contact-row { grid-template-columns: minmax(0, 1fr); }
  .contact .big span { padding-left: .5em; }
}

.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); }

/* ---------- Project page ---------- */
.back { color: var(--orange-ink); text-decoration: none; }
.back:hover { color: var(--fg); }
.p-hero { padding-block: 48px 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.p-hero .left { grid-column: 1 / 9; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.p-hero h1 { margin: 0; font-family: var(--title); font-style: normal; font-weight: 500; font-size: clamp(52px, 9vw, 132px); line-height: .9; letter-spacing: -0.03em; }
.p-hero .facts { grid-column: 9 / 13; margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; padding-bottom: 14px; }
.p-hero .facts dt { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.p-hero .facts dd { margin: 0; font-size: 15px; }
.p-hero .facts .award { color: var(--orange-ink); }
@media (max-width: 860px) { .p-hero .left, .p-hero .facts { grid-column: 1 / -1; } }
.logline { margin: 40px 0 0; font-family: var(--title); font-style: normal; font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; max-width: 30ch; color: var(--soft); }
.player {
  margin-top: 40px; aspect-ratio: 16 / 9; max-width: 100%; background: radial-gradient(80% 90% at 50% 40%, #3a1845 0%, #0d0f10 75%);
  display: grid; place-items: center; color: #d9cfc6; font-size: 14px; position: relative;
}
.player .play { width: 84px; height: 84px; border-radius: 50%; border: 2px solid #faefe6; color: #faefe6; display: grid; place-items: center; }
.player .note { position: absolute; left: 16px; bottom: 14px; }
.p-cta { padding-top: 24px; }
.p-body { padding-top: 104px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.p-body section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.p-body section:nth-child(1) { grid-column: 1 / 6; }
.p-body section:nth-child(2) { grid-column: 7 / 12; padding-top: 64px; }
.p-body h2 { margin: 0; color: var(--orange-ink); }
.p-body p { margin: 0; color: var(--soft); }
@media (max-width: 760px) { .p-body section:nth-child(n) { grid-column: 1 / -1; padding-top: 0; } }
.p-section { padding-top: 112px; }
.p-section .cat-head h2 { margin: 0; font-family: var(--title); font-style: normal; font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.doc { display: flex; flex-direction: column; gap: 8px; }
.doc:nth-child(even) { transform: translateY(32px); }
.doc .sheet {
  aspect-ratio: 8.5 / 11; max-width: 100%; background-color: #fff; color: #55504b; box-shadow: 0 10px 24px rgba(20,17,16,.12); padding: 14px;
  font-size: 11px; font-family: var(--label); letter-spacing: .1em; text-transform: uppercase;
  background-image: repeating-linear-gradient(180deg, transparent 0 22px, rgba(20,17,16,.08) 22px 23px);
  background-position: 0 44px; background-repeat: no-repeat;
}
.doc span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stills { grid-auto-columns: clamp(260px, 48vw, 600px); }
.still { aspect-ratio: 16 / 9; max-width: 100%; display: flex; align-items: flex-end; padding: 12px; color: #d9cfc6; font-size: 11px; font-family: var(--label); letter-spacing: .12em; text-transform: uppercase;
  background: radial-gradient(90% 90% at var(--x, 40%) 40%, var(--c1, #3a1845) 0%, #0d0f10 75%); }
.credits { padding-top: 104px; }
.credits dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 28px; max-width: 640px; margin: 18px auto 0; }
.credits dt { text-align: right; font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.credits dd { margin: 0; }
.credits h2 { text-align: center; margin: 0; color: var(--orange-ink); }
.next { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 24px 48px; padding-block: 128px 72px; }
.next a { text-decoration: none; }
.next .to { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.next .to strong { font-family: var(--title); font-style: normal; font-weight: 500; font-size: clamp(30px, 4.4vw, 64px); line-height: 1; text-wrap: balance; }
.next .to:hover strong { color: var(--orange-ink); }
.next .back-big { display: flex; flex-direction: column; gap: 4px; color: var(--fg); }
.next .back-big .label { color: var(--muted); }
.next .back-big strong { font-family: var(--title); font-weight: 500; font-size: clamp(30px, 4.4vw, 64px); line-height: 1; white-space: nowrap; }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } .next .to { text-align: left; } }
.next .back-big:hover strong { color: var(--orange-ink); }
.back-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; padding: 8px 16px; border: 1px solid currentColor; border-radius: 999px; margin-bottom: 18px; }
.back-pill:hover { background: var(--orange-ink); color: #fff; border-color: var(--orange-ink); }
[data-goto="all"] { --cat: var(--orange); }

/* =========================================================
   Colour: each category owns a marker colour
   ========================================================= */
[data-goto="production"], [data-filter="production"], [data-cat="production"], [data-cats^="production"] { --cat: var(--c-film); }
[data-goto="animation"], [data-filter="animation"], [data-cat="animation"], [data-cats^="animation"] { --cat: var(--c-anim); }
[data-goto="branding"], [data-filter="branding"], [data-cat="branding"], [data-cats^="branding"] { --cat: var(--c-brand); }
[data-goto="graphic-design"], [data-filter="graphic-design"], [data-cat="graphic-design"], [data-cats^="graphic-design"] { --cat: var(--c-gd); }
[data-goto="interactive"], [data-filter="interactive"], [data-cat="interactive"], [data-cats^="interactive"] { --cat: var(--c-int); }
[data-filter="all"] { --cat: var(--fg); }

.mark {
  background: linear-gradient(var(--cat, var(--orange)), var(--cat, var(--orange))) 0 88% / 100% 38% no-repeat;
  padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Hero: portrait sits on an orange offset block */
.hero h1 .last { color: var(--fg); }

/* Branch: diamonds take each category's colour; hover paints a marker under the word */
.twigs li:nth-child(1) { --cat: var(--c-film); }
.twigs li:nth-child(2) { --cat: var(--c-anim); }
.twigs li:nth-child(3) { --cat: var(--c-brand); }
.twigs li:nth-child(4) { --cat: var(--c-gd); }
.twigs li:nth-child(5) { --cat: var(--c-int); }
.twigs li::after { background: var(--cat); border-color: var(--fg); }
.twigs a { background: linear-gradient(var(--cat), var(--cat)) 0 88% / 0% 38% no-repeat; transition: background-size .25s ease, padding-left .2s; }
.twigs a:hover, .twigs a:focus-visible { color: var(--fg); background-size: 100% 38%; }
.trunk:hover { color: var(--orange-ink); }

/* Dropdown: hover fills the row with the category colour */
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--cat); }
.dd-menu a:hover .it, .dd-menu a:focus-visible .it { color: var(--fg); }

/* Filter chips: pressed takes the category colour */
.filters .chip[aria-pressed="true"] { background: var(--cat); border-color: var(--cat); color: var(--fg); }
.filters .chip[data-filter="all"][aria-pressed="true"] { color: var(--bg); }

/* Gallery headings get a marker underline in their colour */
.category .cat-head h3 { width: fit-content; background: linear-gradient(var(--cat), var(--cat)) 0 90% / 100% 34% no-repeat; padding: 0 .1em; }
.category .tile:hover h4 { color: var(--fg); background: linear-gradient(var(--cat), var(--cat)) 0 88% / 100% 38% no-repeat; }
.category .tile:hover .poster { box-shadow: 10px 10px 0 var(--cat); }

/* List rows: hover marks the title in its category colour */
.row:hover .t, .row:focus-visible .t { color: var(--fg); background: linear-gradient(var(--cat), var(--cat)) 0 88% / 100% 38% no-repeat; }

/* About quote: the highlighted phrase gets a marker instead of colour */
.about .quote em { color: var(--fg); background: linear-gradient(var(--c-anim), var(--c-anim)) 0 88% / 100% 34% no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Contact: a deep orange band so cream text stays readable (cream text, 4.6:1) */
.contact { background: #bf430a; color: #faefe6; margin-top: 152px; padding-block: 104px 96px; }
.contact .contact-row { border-top-color: rgba(250,239,230,.4); }
.contact .contact-row p { color: #faefe6; }
.contact .email { color: #faefe6; background-image: linear-gradient(#faefe6, #faefe6); }
.contact .email:hover { color: #faefe6; background-size: 100% 4px; }
.contact .copy { color: #faefe6; border-color: rgba(250,239,230,.6); }
.contact .copy:hover { border-color: #faefe6; background: #faefe6; color: #bf430a; }
.contact .socials a { color: #faefe6; }
.contact .socials a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer: black strip */
.site-footer { background: var(--fg); }
.site-footer .wrap { color: #c9bfb6; border-top: 0; }
.site-footer a { color: #faefe6; }

/* Posters with real images */
.poster.has-img { padding: 0; overflow: hidden; background: #e6d8ca; }
.poster.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Northbound at 90: featured band ---------- */
.nb { background: var(--fg); color: #faefe6; margin-top: 64px; padding-block: 72px; }
.nb-frame { margin: 0; }
.nb-frame img { width: 100%; height: auto; aspect-ratio: 1800 / 649; object-fit: cover; }
.nb-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; padding-top: 28px; }
.nb-copy { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; min-width: 0; }
.nb-copy .label { color: var(--orange); }
.nb-copy h2 { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.nb-copy p { margin: 0; color: #d9cfc6; }
.nb-link { font-family: var(--label); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #faefe6; text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 100% 2px no-repeat; padding-bottom: 4px; }
.nb-link:hover { color: var(--orange); }
@media (max-width: 640px) { .nb-frame img { aspect-ratio: 4 / 3; object-position: 30% 50%; } }
.work { padding-top: 112px; }

.player.has-poster { overflow: hidden; }
.player-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: brightness(.55); }
.player .play, .player .note { position: relative; z-index: 1; }
.player .note { position: absolute; }

/* About: quote runs across the top; photo and bio sit side by side beneath it */
.about .wrap { align-items: center; row-gap: 56px; }
.about .quote { grid-column: 1 / 12; grid-row: 1; }
.about-photo { grid-column: 1 / 7; grid-row: 2; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 14px 14px 0 var(--c-anim); }
.about-photo figcaption { font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.about .side { grid-column: 8 / 13; grid-row: 2; padding-top: 0; }
@media (max-width: 860px) {
  .about .quote, .about .side, .about-photo { grid-column: 1 / -1; grid-row: auto; }
}

/* Animated tile: the clip's own white background fills the portrait frame */
.poster.has-video { background: #fff; }
.poster.has-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.poster.has-video.cover { background: #0d0b0a; }
.poster.has-video.cover video { object-fit: cover; }
/* Landscape clip in a portrait tile: sky above, street below, so the frame blends in */
.poster.has-video.skyline { background: linear-gradient(#bed1d5 50%, #4b4b4d 50%); }

/* Trailer: poster with a play button; becomes the YouTube player on click */
a.player { text-decoration: none; cursor: pointer; }
a.player .play { transition: transform .2s ease, background .2s ease; }
a.player:hover .play, a.player:focus-visible .play { transform: scale(1.08); background: var(--orange); border-color: var(--orange); color: var(--fg); }
.player .note { color: #faefe6; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.player.playing .play, .player.playing .note, .player.playing .player-bg { display: none; }
.player.playing { cursor: default; }

/* Each category keeps its work's natural shape */
#prod-rail .poster, #brand-rail .poster { aspect-ratio: 2 / 3; }
#gd-rail { grid-auto-columns: clamp(240px, 28vw, 340px); }
#gd-rail .poster { aspect-ratio: 1 / 1; }
#anim-rail { grid-auto-columns: clamp(280px, 40vw, 480px); }
#anim-rail .poster { aspect-ratio: 16 / 9; }
#int-rail { grid-auto-columns: clamp(240px, 28vw, 340px); }
#int-rail .poster { aspect-ratio: 1 / 1; }
#anim-rail .poster.has-video video { object-fit: cover; }
#anim-rail .poster.has-video.cover video { object-fit: contain; }

/* Project page: four-part write-up */
.p-body.four section:nth-child(3) { grid-column: 1 / 6; }
.p-body.four section:nth-child(4) { grid-column: 7 / 12; padding-top: 64px; }
.p-body section p + p { margin-top: 6px; }
.p-poster { margin: 24px 0 0; max-width: 240px; }
.p-poster img { display: block; width: 100%; height: auto; border-radius: 4px; }
.p-poster figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.still-img { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: #1a1614; }
.still-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Mixed-shape photo rail: same height, natural widths */
.rail.shots { grid-auto-columns: max-content; margin-top: 24px; }
.shot { margin: 0; }
.shot img, .shot video { display: block; height: clamp(300px, 46vw, 460px); width: auto; max-width: 82vw; object-fit: cover; border-radius: 4px; background: #1a1614; }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Pull quote */
.p-quote { margin: 104px 0 0; max-width: 30ch; }
.p-quote p { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
.p-quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--orange-ink); }

/* Vertical reels */
.reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reel { display: block; color: inherit; text-decoration: none; }
.reel img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; transition: transform .2s ease; }
.reel:hover img { transform: translateY(-4px); }
.reel .label { display: block; margin-top: 10px; color: var(--soft); }
.reel:hover .label { color: var(--orange-ink); }
@media (max-width: 760px) { .reels { grid-template-columns: repeat(3, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; } .reels li { scroll-snap-align: start; } }

/* Poster beside text */
.p-split { padding-top: 72px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.p-split .p-poster { margin: 0; max-width: 440px; }
.p-split section { display: flex; flex-direction: column; gap: 10px; max-width: 52ch; padding-top: 8px; }
.p-split h2 { margin: 0; color: var(--orange-ink); }
.p-split p { margin: 0; color: var(--soft); }
.p-split p + p { margin-top: 6px; }
@media (max-width: 760px) { .p-split { grid-template-columns: 1fr; gap: 28px; } }

/* Old-project media */
.p-figure { margin: 72px 0 0; }
.p-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.p-video { display: block; width: 100%; margin-top: 40px; border-radius: 4px; background: #0d0f10; aspect-ratio: 16 / 9; }
.p-video.tall { aspect-ratio: 9 / 16; margin-top: 0; max-height: 82vh; width: auto; max-width: 100%; }
.p-stack { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.p-stack section { padding-top: 0; }
.spotify { width: 100%; border: 0; border-radius: 12px; }

/* Ama Lou's Antique Shop: the shop floor */
.ama { margin-top: 72px; background: #82363a; color: #f3dfb8; padding-block: 64px 48px; }
.ama-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; }
.ama-head h2 { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(32px, 4vw, 52px); line-height: 1; color: #f3dfb8; }
.ama-head p { margin: 0; max-width: 44ch; color: #ead2a6; }
.ama-stage { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; align-items: center; min-height: 440px; }
.ama-art { position: relative; display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 340px; }
.ama-obj { max-width: min(100%, 360px); max-height: 340px; width: auto; height: auto; filter: drop-shadow(0 14px 18px rgba(40, 8, 10, .5)); transform: rotate(var(--r)); animation: ama-in .5s ease both, ama-bob 5s ease-in-out .5s infinite; animation-delay: 0s, var(--d); }
.ama-art .ama-obj:not(:only-child) { max-width: 46%; min-width: 0; }
.ama-art:has(.ama-obj:nth-child(3)) .ama-obj { max-width: 31%; }
@keyframes ama-in { from { opacity: 0; transform: translateY(14px) rotate(var(--r)); } }
@keyframes ama-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.ama-floor-label { margin: 0 0 12px; color: #f0c48a; }
.ama-text p { margin: 0 0 12px; font-size: 18px; line-height: 1.5; color: #f6e6c6; max-width: 46ch; }
.ama-text .ama-got { font-family: var(--label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #ffd28a; }
.ama-text .ama-miss { color: #ffb4a8; }
.ama-text .ama-end { font-family: var(--title); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; color: #fff3d9; }
.ama-choices { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; }
.ama-choice { font: inherit; font-size: 16px; text-align: left; color: #fff3d9; background: rgba(0, 0, 0, .16); border: 1px solid rgba(243, 223, 184, .45); border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.ama-choice:hover, .ama-choice:focus-visible { background: #f3dfb8; color: #5e2226; border-color: #f3dfb8; }
.ama-choices:has(.swatch) { flex-direction: row; }
.ama-choice.swatch { width: 56px; height: 56px; padding: 0; border-radius: 50%; background: var(--sw); border: 4px solid #b58a5a; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.ama-choice.swatch:hover, .ama-choice.swatch:focus-visible { transform: scale(1.08); background: var(--sw); }
.ama-reset { background: none; border: 0; padding: 0; color: #ead2a6; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }
.ama-art .ama-obj:nth-child(3) { max-width: 30%; }
.ama-log { margin-top: 32px; border-top: 1px solid rgba(243, 223, 184, .35); padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.ama-log .label { color: #ead2a6; }
.ama-tally { color: #f6e6c6; font-size: 15px; }
.ama-tally b { display: inline-block; min-width: 1.6em; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .2); text-align: center; color: #ffd28a; }
.five-e { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.five-e li { border-top: 2px solid var(--orange-ink); padding-top: 14px; }
.five-e b { font-family: var(--title); font-weight: 500; font-size: 24px; }
.five-e p { margin: 8px 0 0; color: var(--soft); font-size: 15px; }
.five-e-end { margin: 32px 0 0; font-family: var(--title); font-size: clamp(22px, 2.6vw, 30px); max-width: 36ch; }
.itch { display: block; width: 100%; max-width: 552px; border: 0; }
@media (max-width: 1000px) { .five-e { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ama-stage { grid-template-columns: 1fr; min-height: 0; }
  .ama-art { min-height: 200px; }
  .ama-obj { max-height: 200px; }
  .five-e { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ama-obj { animation: none; } }

/* Media edges: no dark backing that can peek out on sub-pixel edges */
.poster.has-img, .shot img, .shot video, .still-img, .p-video { background: transparent; }
.p-video { aspect-ratio: auto; height: auto; }
.p-video.tall { height: auto; }

.embed-wrap { position: relative; min-height: 352px; border-radius: 12px; background: #efe0d2; }
.embed-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.embed-wrap iframe { position: relative; z-index: 1; display: block; }
.sheet-shot img { box-shadow: 0 0 0 1px var(--line); }

/* Designate: explorable pin map */
.pins { margin-top: 104px; background: #eceee6; padding-block: 64px; --disc: #3b4b3a; --exp: #2f3d8a; --sent: #b55252; }
.dmap-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.dmap-head h2 { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; }
.dmap-progress { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.dmap-progress b { color: var(--fg); font-weight: 600; }
.dmap-bar { height: 4px; border-radius: 4px; background: rgba(20, 30, 20, .12); overflow: hidden; }
.dmap-bar i { display: block; height: 100%; width: 0; background: var(--disc); transition: width .4s ease; }
.dmap-progress.done .label::after { content: " \00b7  you've seen them all"; color: var(--disc); }
.dfilters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.dfilter { display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; color: var(--fg); background: #fff; border: 1px solid rgba(20, 30, 20, .12); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: opacity .2s ease, background .2s ease; }
.dfilter[aria-pressed="false"] { opacity: .45; background: transparent; }
.dfilter b { display: block; font-family: var(--title); font-weight: 500; font-size: 19px; }
.dfilter b + span { display: block; color: var(--soft); font-size: 14px; margin-top: 2px; }
.dfilter .sw svg { width: 22px; height: 30px; display: block; }
.dfilter.discovery .sw path, .dpin.discovery path:first-child { fill: var(--disc); }
.dfilter.experience .sw path, .dpin.experience path:first-child { fill: var(--exp); }
.dfilter.sentimental .sw path, .dpin.sentimental path:first-child { fill: var(--sent); }
.dmap-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr); gap: 20px; margin-top: 20px; align-items: start; }
.dmap-stage { position: relative; width: 100%; aspect-ratio: 1000 / 520; background: #dfe3dd; border-radius: 10px; overflow: hidden; }
.dmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dmap-svg .land { fill: #f7f7f2; }
.dmap-svg .borders { fill: none; stroke: #d3d6cf; stroke-width: .6; }
.dmap-svg .leaders line { stroke: rgba(20, 30, 20, .35); stroke-width: 1; }
.dmap-svg .leaders circle { fill: rgba(20, 30, 20, .55); }
.dmap-svg .leaders .off { display: none; }
.dpin { position: absolute; width: clamp(16px, 2.2vw, 24px); aspect-ratio: 24 / 32; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-50%, -96%); transform-origin: 50% 100%; transition: transform .2s ease, opacity .2s ease; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.dpin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dpin:hover, .dpin:focus-visible, .dpin.on { transform: translate(-50%, -96%) scale(1.35); z-index: 3; }
.dpin:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 4px; }
.dpin.seen:not(.on) { opacity: .62; }
.dpin.off { display: none; }
.dpin.mine path:first-child { stroke: #fff; stroke-width: 2; }
.dpin.ghost { pointer-events: none; opacity: .7; animation: dpin-drop .35s ease both; }
@keyframes dpin-drop { from { transform: translate(-50%, -150%); opacity: 0; } }
.placing .dmap-stage { cursor: crosshair; outline: 2px dashed var(--disc); outline-offset: 4px; }
.dmap-card { min-width: 0; align-self: start; background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--disc); max-height: 100%; }
.dmap-card.experience { border-top-color: var(--exp); }
.dmap-card.sentimental { border-top-color: var(--sent); }
.dmap-card img { display: block; width: 100%; height: clamp(220px, 22vw, 300px); object-fit: cover; background: #e9ebe4; flex: none; }
.dmap-card img.tall { object-fit: contain; }
.dmap-card-body { padding: 18px 20px 22px; overflow-y: auto; }
.dmap-card-body .label { color: var(--orange-ink); }
.dmap-card h3 { margin: 6px 0 8px; font-family: var(--title); font-weight: 500; font-size: 24px; line-height: 1.15; }
.dmap-card p { margin: 0 0 10px; color: var(--soft); font-size: 15px; }
.dmap-note { font-size: 14px !important; }
.dmap-note a { color: var(--orange-ink); }
.dmap-remove { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dmap-add { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; }
.dmap-add > p { margin: 12px 0 0; color: var(--soft); }
#dmap-form { flex: 1 1 520px; display: grid; gap: 12px; background: #fff; border-radius: 10px; padding: 18px 20px; }
#dmap-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
#dmap-form legend { margin-bottom: 6px; color: var(--soft); }
.dmap-field { display: grid; gap: 6px; font-size: 15px; }
.dmap-field input, .dmap-field textarea { font: inherit; padding: 10px 12px; border: 1px solid rgba(20, 30, 20, .2); border-radius: 8px; background: #fbfbf8; color: var(--fg); }
#dmap-form .btn { justify-self: start; }
@media (max-width: 900px) { .dmap-grid { grid-template-columns: 1fr; } .dmap-card img { height: 280px; } }
@media (max-width: 700px) { .dfilters { grid-template-columns: 1fr; } }

/* Get Together: beer pong */
.pong { margin-top: 64px; background: #20142a; color: #f3e9f7; padding-block: 56px; }
.pong-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; }
.pong-head h2 { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; color: #fbeefd; }
.pong-head p { margin: 0; max-width: 40ch; color: #d9c6e2; }
.pong-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; margin-top: 32px; align-items: center; }
.pong-table { position: relative; border-radius: 14px; padding: 40px 20px 72px; background:
  radial-gradient(120% 90% at 50% 0%, rgba(247, 96, 255, .22), transparent 60%),
  linear-gradient(180deg, #3a2a1c, #2a1d12); box-shadow: inset 0 0 0 6px #4b3624, inset 0 0 0 7px rgba(255,255,255,.06); overflow: hidden; min-height: 360px; }
.pong-table::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .12); }
.pong-rack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pong-row { display: flex; gap: 6px; }
.pong-cup { width: clamp(56px, 8vw, 84px); padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s ease, opacity .4s ease, filter .2s ease; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.pong-cup svg { display: block; width: 100%; height: auto; }
.pong-cup:hover, .pong-cup:focus-visible { transform: translateY(-4px); filter: drop-shadow(0 0 14px rgba(247, 96, 255, .8)); }
.pong-cup:focus-visible { outline: 2px dashed #f3e9f7; outline-offset: 4px; }
.pong-cup.sunk { opacity: .18; transform: scale(.9); cursor: default; filter: none; pointer-events: none; }
.pong-ball { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ddd 60%, #bbb); z-index: 2; opacity: 0; pointer-events: none; box-shadow: 0 4px 6px rgba(0,0,0,.35); }
.pong-status { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #e9d7f2; z-index: 1; }
.pong-again { background: none; border: 0; color: #ffb3ff; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.pong-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 24px 26px; min-height: 220px; }
.pong-card .label { color: #ff9ae9; }
.pong-card h3 { margin: 8px 0 10px; font-family: var(--title); font-weight: 500; font-size: 28px; line-height: 1.1; color: #fff; }
.pong-card p { margin: 0 0 10px; color: #e6d6ee; }
.pong-card .btn { margin-top: 6px; }
@media (max-width: 860px) { .pong-grid { grid-template-columns: 1fr; } }

.tas-stills { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 72px; }
.tas-stills img { display: block; width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 700px) { .tas-stills { grid-template-columns: 1fr; } }

/* Human-made statement */
.human { margin: 96px 0 0; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--soft); border-top: 1px solid var(--line); padding-top: 20px; }
.human b { color: var(--fg); font-weight: 600; }
.human-mark { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }

/* QMBeautique: Pinterest + blog cards */
.p-intro { margin: -8px 0 24px; color: var(--soft); max-width: 60ch; }
.pin-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pin-card, .blog-link { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px 18px 16px; border-radius: 12px; background: #f6dfe0; color: var(--fg); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.pin-card:hover, .blog-link:hover { transform: translateY(-3px); background: #f2d0d3; }
.pin-card b, .blog-link b { font-family: var(--title); font-weight: 500; font-size: 20px; line-height: 1.2; }
.pin-card span:not(.label) { color: var(--soft); font-size: 14px; flex: 1; }
.pin-card .label, .blog-link .label { color: var(--orange-ink); }
.blog-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.blog-link b { font-size: 24px; }
.blog-link q { flex: 1; color: var(--soft); font-family: var(--title); font-size: 17px; line-height: 1.4; quotes: "\201C" "\201D"; }
@media (max-width: 700px) { .blog-links { grid-template-columns: 1fr; } }

.pin-rail { grid-auto-columns: max-content; }
.pin-shot { display: flex; flex-direction: column; gap: 10px; color: var(--fg); text-decoration: none; }
.pin-shot img { display: block; height: clamp(300px, 34vw, 420px); width: auto; transition: transform .2s ease; }
.pin-shot:hover img { transform: translateY(-4px); }
.pin-shot span { font-size: 14px; color: var(--soft); max-width: 24ch; }
.pin-shot:hover span { color: var(--orange-ink); }
.p-intro a { color: var(--orange-ink); }

.fs-bags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; justify-items: center; padding: 32px 24px 8px; background: #efe2d6; border-radius: 10px; }
.fs-bags img { width: 100%; max-width: 280px; height: auto; filter: drop-shadow(0 16px 18px rgba(60, 35, 20, .28)); transition: transform .25s ease; }
.fs-bags img:hover { transform: translateY(-6px) rotate(-2deg); }

/* Rondowoods: staircase */
.rondo { margin-top: 64px; background: #f2ebc4; padding-block: 56px 0; overflow: hidden; }
.rondo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; }
.rondo-head h2 { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; color: #4a3c44; }
.rondo-head p { margin: 0; max-width: 40ch; color: #6b5a62; }
.rondo-stage { margin-top: 28px; min-height: 460px; display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.rs-media { display: flex; align-items: center; justify-content: center; min-height: 400px; animation: rs-in .35s ease both; }
@keyframes rs-in { from { opacity: 0; transform: translateY(10px); } }
.rs-media img { display: block; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 18px 30px -18px rgba(74, 60, 68, .45); }
.rs-one { max-height: 440px; width: auto; }
.rs-wide { width: 100%; }
.rs-pair { display: flex; gap: 20px; justify-content: center; align-items: center; }
.rs-pair img { max-height: 420px; width: auto; min-width: 0; max-width: 48%; }
.rs-trio { display: flex; gap: 32px; justify-content: center; align-items: flex-end; background: #fff; border-radius: 10px; padding: 28px 36px; box-shadow: 0 18px 30px -18px rgba(74, 60, 68, .45); }
.rs-trio img { height: 280px; width: auto; max-width: 30%; object-fit: contain; box-shadow: none; }
.rs-geo { background: linear-gradient(180deg, #7aa8d6, #a9cbe8 55%, #6fa35a 56%); border-radius: 18px; padding: 10px; }
.rs-geo img { max-height: 420px; width: auto; mix-blend-mode: multiply; box-shadow: none; }
.rs-cap { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: #4a3c44; }
.rs-cap .label { color: var(--c); filter: brightness(.7); }
.rondo-steps { display: flex; align-items: flex-end; gap: 0; margin-top: 28px; }
.rstep { flex: 1 1 0; min-width: 0; height: calc(var(--h) + 54px); border: 0; padding: 10px 10px 0; text-align: left; cursor: pointer; font: inherit;
  background: var(--c); color: #fbf6e2; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; transition: transform .2s ease, filter .2s ease;
  border-top: 6px solid rgba(255, 255, 255, .35); }
.rstep-n { font-family: var(--title); font-size: 22px; line-height: 1; }
.rstep-t { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.rstep:hover { filter: brightness(1.08); transform: translateY(-4px); }
.rstep[aria-selected="true"] { transform: translateY(-10px); box-shadow: 0 -6px 0 #4a3c44 inset; }
.rstep.past { filter: saturate(.75); }
.rstep:focus-visible { outline: 3px solid #4a3c44; outline-offset: -3px; }
.rondo-mural { margin: 18px 0 0; }
.rondo-mural img { display: block; width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 760px) {
  .rondo-steps { overflow-x: auto; }
  .rstep { flex: 0 0 96px; }
  .rs-pair { flex-direction: column; }
  .rs-pair img { max-width: 100%; max-height: 360px; }
  .rondo-stage { min-height: 0; }
  .rs-media { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .rs-media { animation: none; } .rstep { transition: none; } }


/* Get Together: party collage */
.gtg-party { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.gtg-party-text p { margin: 0 0 14px; color: var(--soft); max-width: 50ch; }
.gtg-party-text .btn { margin-top: 8px; }
.gtg-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; align-items: start; }
.gtg-collage img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 30px -18px rgba(30, 10, 40, .5); }
.c-poster { grid-row: 1 / 3; }
.c-neon { aspect-ratio: 1; object-fit: cover; }
.c-tix { align-self: start; }
@media (max-width: 860px) { .gtg-party { grid-template-columns: 1fr; } }
.eko-clip { margin: 0; }
.eko-clip video { display: block; width: 100%; height: auto; border-radius: 8px; background: #111; }
.eko-clip figcaption { margin-top: 10px; color: var(--soft); font-size: 15px; max-width: 70ch; }

/* Photo album: one photo at a time, auto-advancing, with arrows + thumbnails */
.album { position: relative; }
.album-stage { position: relative; aspect-ratio: 3 / 2; background: #141110; border-radius: 8px; overflow: hidden; }
.album-stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.album-stage figure.on { opacity: 1; }
.album-stage figure:not(.on) { pointer-events: none; }
.album-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.album-stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; color: #faefe6; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.album-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(250, 239, 230, .9); color: #141110; cursor: pointer; display: grid; place-items: center; }
.album-btn:hover { background: #fff; }
.album-btn.prev { left: 14px; } .album-btn.next { right: 14px; }
.album-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.album-count { font-family: var(--label); font-size: 12px; letter-spacing: .12em; color: var(--muted); min-width: 5ch; }
.album-pause { background: none; border: 0; color: var(--orange-ink); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.album-thumbs { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding-bottom: 4px; }
.album-thumbs button { flex: none; width: 72px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .55; background: none; }
.album-thumbs button[aria-current="true"] { border-color: var(--orange-ink); opacity: 1; }
.album-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillars li { border-radius: 10px; padding: 18px; background: #1f1430; color: #f3e9f7; border-top: 4px solid #f760ff; }
.pillars li:nth-child(2) { border-top-color: #2ef08a; } .pillars li:nth-child(3) { border-top-color: #5da6bf; } .pillars li:nth-child(4) { border-top-color: #fe741f; }
.pillars b { font-family: var(--title); font-weight: 500; font-size: 22px; }
.pillars p { margin: 8px 0 0; font-size: 15px; color: #d9c6e2; }
.gtg-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

.credits dt.cr-sec { padding-top: 26px; color: var(--orange-ink); }
.credits dd.cr-sec { padding-top: 26px; }
.cr-more { max-width: 720px; margin: 40px auto 0; text-align: center; }
.cr-more h3 { margin: 24px 0 8px; color: var(--muted); }
.cr-more p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.7; }

/* Ama Lou's: story-first */
.ama-cta { margin: 24px 0 0; }
.ama-story { margin-top: 64px; background: #82363a; color: #f6e6c6; padding-block: 72px; overflow: hidden; }
.ama-story-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.clipping { position: relative; background: #f1e6cf; color: #2b2320; padding: 26px 26px 30px; transform: rotate(-2.5deg); box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); display: flex; flex-direction: column; align-items: center; text-align: center; font-family: var(--title); max-width: 380px; justify-self: center;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 2px, transparent 2px 4px); }
.clipping::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(43, 35, 32, .35); pointer-events: none; }
.clip-kicker { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6d5a50; }
.clip-head { font-size: 40px; font-weight: 600; letter-spacing: .04em; margin-top: 8px; }
.clip-name { font-size: 30px; font-style: italic; color: #a0473a; line-height: 1.1; }
.clip-sub { font-size: 20px; margin-top: 4px; }
.clip-rule { width: 60%; height: 1px; background: #2b2320; margin: 14px 0; opacity: .5; }
.clip-tag { font-size: 16px; font-style: italic; }
.clip-img { width: 120px; margin-top: 16px; filter: sepia(.35) contrast(1.05); }
.ama-story-text .label { color: #ffd28a; }
.ama-story-text h2 { margin: 10px 0 18px; font-family: var(--title); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; color: #fff3d9; }
.ama-story-text p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; max-width: 54ch; }
.float { position: absolute; pointer-events: none; filter: drop-shadow(0 12px 14px rgba(40, 8, 10, .45)); animation: ama-bob 6s ease-in-out infinite; }
.f1 { width: 130px; left: 30%; bottom: -46px; transform: rotate(-14deg); }
.f2 { width: 110px; right: 4%; bottom: -60px; transform: rotate(-8deg); animation-delay: -2s; opacity: .9; }
.ama-paths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ama-paths li { position: relative; border-radius: 12px; padding: 22px 22px 24px; background: #f4ebdc; border-top: 5px solid var(--pc); }
.ama-paths img { height: 84px; width: auto; display: block; margin-bottom: 14px; filter: drop-shadow(0 8px 10px rgba(60, 20, 20, .25)); }
.ama-paths .label { color: var(--pc); }
.ama-paths b { display: block; font-family: var(--title); font-weight: 500; font-size: 24px; margin: 6px 0 8px; }
.ama-paths p { margin: 0; color: var(--soft); }
.p-selfish { --pc: #a0473a; } .p-selfless { --pc: #3f7a5a; } .p-sensible { --pc: #8a6a1f; }
.ama-puzzles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ama-puzzles li { border-top: 2px solid var(--line); padding-top: 16px; }
.ama-puzzles img, .pz-text { height: 90px; width: auto; display: block; margin-bottom: 12px; object-fit: contain; }
.pz-text { display: flex; align-items: center; font-family: var(--label); font-size: 22px; letter-spacing: .12em; color: #82363a; }
.ama-puzzles b { font-family: var(--title); font-weight: 500; font-size: 20px; }
.ama-puzzles p { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
@media (max-width: 900px) { .ama-story-grid { grid-template-columns: 1fr; } .ama-paths { grid-template-columns: 1fr; } .ama-puzzles { grid-template-columns: 1fr 1fr; } .float { display: none; } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* Home: Northbound "now producing" card + tile */
.now-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; max-width: 460px; padding: 14px; border-radius: 14px; background: var(--fg); color: #faefe6; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 10px 10px 0 var(--orange); }
.now-card:hover { transform: translate(-2px, -2px); box-shadow: 14px 14px 0 var(--orange); }
.now-card img { width: 110px; height: 138px; object-fit: cover; border-radius: 8px; display: block; }
.now-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.now-body .label { color: var(--orange); }
.now-body strong { font-family: var(--title); font-weight: 500; font-size: 26px; line-height: 1.05; }
.now-sub { font-size: 14px; color: #d9cfc6; }
.now-stat { font-size: 14px; color: #fff; margin-top: 4px; }
.now-go { font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-top: 6px; }
.nb-stat { color: #faefe6 !important; margin-top: 6px !important; }
.nb-stat b { font-family: var(--title); font-weight: 500; font-size: 26px; color: var(--orange); margin-right: 4px; }
.nb-tile { position: relative; }
@media (max-width: 640px) { .now-card { box-shadow: 6px 6px 0 var(--orange); margin-right: 6px; } .now-card:hover { box-shadow: 8px 8px 0 var(--orange); } }
.nb-badge { position: absolute; left: 10px; top: 10px; background: var(--orange); color: #141110; font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; }

/* Home hero: fit the whole intro on one laptop screen */
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; }
.hero-top .now-card { flex: 0 1 400px; }
@media (min-width: 861px) {
  .hero { padding-block: 28px 32px; }
  .hero h1 { font-size: clamp(48px, min(7vw, 11vh), 112px); }
  .hero-grid { margin-top: 28px; gap: 48px; align-items: start; grid-template-columns: auto minmax(0, 1fr); }
  .hero-grid .photo { max-width: none; width: auto; }
  .hero-grid .photo img { width: auto; height: min(calc(100vh - 340px), 600px); max-width: 38vw; }
  .hero-grid .photo figcaption { margin-top: 14px; }
  .hero-side { gap: 34px; }
  .hero-top .now-card { margin-bottom: 6px; }
  .hero-side .tree { gap: 18px; }
  .hero-side .trunk { font-size: clamp(26px, 2.4vw, 36px); }
  .hero-side .twigs a { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
  .now-card { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .now-card img { width: 84px; height: 104px; }
  .now-body strong { font-size: 22px; }
}

/* Custom YouTube controls: only visible on hover, while paused, or briefly after a tap */
.player.playing { background: #000; }
/* The YouTube frame is made taller than the player and clipped, so its top and bottom strips
   (title, "More videos", logo) fall outside the visible area. The video itself stays the same size. */
.player.playing { overflow: hidden; }
.yt-host { position: absolute; left: 0; right: 0; top: -180px; bottom: -180px; z-index: 1; pointer-events: none; }
.yt-host iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-shield { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
/* Hide YouTube's own overlays (title, "More videos", logo) before it starts and whenever it's paused or ended:
   cover the frame with the poster and show our play button instead. */
.player.playing:not(.yt-started) .player-bg, .player.playing.yt-paused .player-bg { display: block; position: absolute; inset: 0; z-index: 2; filter: brightness(.6); }
.player.playing.yt-paused .play { display: grid; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.player.playing:not(.yt-started) .player-bg { filter: brightness(.45); }
.yt-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #faefe6; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.player.playing:hover .yt-bar, .player.yt-paused .yt-bar, .player.yt-peek .yt-bar, .player:focus-within .yt-bar { opacity: 1; pointer-events: auto; }
.player.playing:hover .yt-shield, .player.yt-paused .yt-shield { cursor: pointer; }
.yt-bar button { flex: none; width: 34px; height: 34px; padding: 6px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.yt-bar button:hover, .yt-bar button:focus-visible { background: rgba(250, 239, 230, .18); }
.yt-bar svg { width: 100%; height: 100%; display: block; }
.yt-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(250, 239, 230, .3); cursor: pointer; position: relative; }
.yt-track::before { content: ""; position: absolute; inset: -10px 0; }
.yt-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--orange); }
.yt-time { flex: none; font-family: var(--label); font-size: 12px; letter-spacing: .06em; min-width: 80px; text-align: right; }
.player:fullscreen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; margin: 0; }
@media (max-width: 560px) { .yt-time { display: none; } }

/* Lightbox */
img.zoomable { cursor: zoom-in; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 8px; padding: 56px 16px 40px;
  background: rgba(20, 17, 16, .55); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); opacity: 0; transition: opacity .2s ease; }
.lb.on { opacity: 1; }
.lb-fig { grid-column: 2; margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lb-fig figcaption { color: #faefe6; font-size: 15px; text-align: center; max-width: 70ch; }
.lb-nav, .lb-close { border: 0; cursor: pointer; color: #141110; background: rgba(250, 239, 230, .92); display: grid; place-items: center; }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; justify-self: center; }
.lb-nav svg { width: 20px; height: 20px; }
.lb-nav:hover, .lb-close:hover { background: #fff; }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; }
.lb-count { position: absolute; top: 24px; left: 20px; color: #faefe6; font-family: var(--label); font-size: 12px; letter-spacing: .12em; }
@media (max-width: 640px) {
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0; padding: 60px 10px 24px; }
  .lb-nav { position: absolute; bottom: 18px; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .lb-fig img { max-height: calc(100vh - 200px); }
}
@media (prefers-reduced-motion: reduce) { .lb { transition: none; } }

/* Project page: follow-the-company block */
.follow { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.follow p { margin: 0; color: var(--soft); max-width: 52ch; }

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