/* Fonts are self-hosted. Never reference the system Helvetica Neue by name:
   Chrome can match a locally installed Outline cut. Arial is the fallback. */
@font-face {
  font-family: "EK Sans";
  src: url("assets/fonts/helvetica-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "EK Mono";
  src: url("assets/fonts/ek-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #090808;
  --fg: #fff;
  --dim: #7d7a7a;
  --tile: #131111;
  --gap: 0px;
  --pad: 20px;
  --head: 64px;
  --sans: "EK Sans", Arial, sans-serif;
  --mono: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  /* motion curves */
  --ease-a: cubic-bezier(.29, .23, .05, 1);
  --ease-b: cubic-bezier(.18, .47, .16, 1);
  --ease-line: cubic-bezier(.6, .25, .25, .98);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; cursor: pointer; }
img, video, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* Mask reveal: text sits below an overflow:hidden line, then slides up */
.oh { display: block; overflow: hidden; }
.oh > * { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-b); transition-delay: var(--d, 0s); }
.in .oh > *, .in.oh > * { transform: none; }
.fade { opacity: 0; transition: opacity 1.2s var(--ease-a) .25s; }
.in .fade, .in.fade { opacity: 1; }

/* Loader + page veil */
#loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); gap: 12px;
  clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-a);
}
#loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-bar { height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-b); }
.loader-num { font-size: 12px; }
#veil { position: fixed; inset: 0; z-index: 900; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-a); }
#veil.on { opacity: 1; pointer-events: all; }

/* Header: transparent, floats over the work */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad); mix-blend-mode: difference; color: #fff; pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.mark { height: 26px; width: auto; }
.brand-text b { font-weight: 400; }
.sub { color: #9a9696; }
.filters { display: flex; gap: 22px; }
.filters button, .nav a, .menu-btn, .view-toggle button { position: relative; transition: color .3s var(--ease-b); }
.filters button, .menu-nav-btn, .view-toggle button { color: #9a9696; }
.filters button[aria-pressed="true"], .filters button:hover, .view-toggle button[aria-pressed="true"], .view-toggle button:hover { color: #fff; }
.filters button::after, .view-toggle button::after, .nav a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: right; transition: transform .75s var(--ease-line);
}
.filters button[aria-pressed="true"]::after, .view-toggle button[aria-pressed="true"]::after,
.filters button:hover::after, .nav a:hover::after, .view-toggle button:hover::after { transform: scaleX(1); transform-origin: left; transition-delay: .05s; }
.nav { display: flex; gap: 22px; justify-self: end; }
.menu-btn { display: none; justify-self: end; }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  padding: calc(var(--head) + 40px) var(--pad) var(--pad); display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-a);
}
.menu.open { clip-path: inset(0 0 0 0); }
#menu-filters { display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 34px; text-transform: none; line-height: 1.1; }
#menu-filters button { text-align: left; color: #6c6969; transition: color .3s; }
#menu-filters button[aria-pressed="true"] { color: #fff; }
.menu-links { display: flex; gap: 24px; }

main { min-height: 100vh; }
.view { padding-top: var(--head); }

.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 28px var(--pad) 18px; }
.bracket { color: #fff; }
.view-toggle span { color: var(--dim); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: 0 var(--pad) var(--pad); }
.tile {
  position: relative; display: block; aspect-ratio: 16 / 9; background: var(--tile); overflow: hidden;
  opacity: 0; transform: translateY(14vh);
  transition: transform 1.4s var(--ease-a), opacity 1s var(--ease-a);
  transition-delay: var(--d, 0s);
}
.tile.in { opacity: 1; transform: none; }
.tile.settled { transition-delay: 0s; }
.tile .media { position: absolute; inset: 0; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile img { transition: opacity 1.5s var(--ease-a), transform 1.6s var(--ease-a); }
.tile video { opacity: 0; transition: opacity 1s var(--ease-a); }
.tile.playing img { opacity: 0; }
.tile.playing video { opacity: 1; }
.tile .ph {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; text-align: center;
  font-family: var(--sans); font-weight: 700; font-size: clamp(16px, 2vw, 30px); text-transform: none; color: #3b3838;
}
.tile.no-img .ph { display: flex; }
/* viewfinder corners */
.tile::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none; z-index: 3; opacity: 0; transform: scale(1.04);
  transition: opacity .5s var(--ease-a), transform .8s var(--ease-a);
  background:
    linear-gradient(#fff,#fff) top left / 14px 1px no-repeat, linear-gradient(#fff,#fff) top left / 1px 14px no-repeat,
    linear-gradient(#fff,#fff) top right / 14px 1px no-repeat, linear-gradient(#fff,#fff) top right / 1px 14px no-repeat,
    linear-gradient(#fff,#fff) bottom left / 14px 1px no-repeat, linear-gradient(#fff,#fff) bottom left / 1px 14px no-repeat,
    linear-gradient(#fff,#fff) bottom right / 14px 1px no-repeat, linear-gradient(#fff,#fff) bottom right / 1px 14px no-repeat;
}
.tile .cap {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 34px 20px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-end;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(8px);
  transition: opacity .6s var(--ease-a), transform .8s var(--ease-a); pointer-events: none;
}
.tile .cap b { font-family: var(--sans); font-weight: 700; font-size: 15px; text-transform: none; }
.tile .cap span { color: #c8c5c5; white-space: nowrap; }
.tile.no-img .cap { background: none; }
.tile .client, .tile .year { display: none; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover::after { opacity: 1; transform: none; }
  .tile:hover .cap { opacity: 1; transform: none; }
  .tile:hover img { transform: scale(1.03); }
}

/* List */
.grid.list { grid-template-columns: 1fr; gap: 0; padding: 0 var(--pad) 80px; min-height: 50vh; }
.list .tile {
  aspect-ratio: auto; background: none; overflow: visible; display: block; padding: 3px 0; cursor: pointer;
  transform: translateY(24px); transition: transform 1s var(--ease-a), opacity .25s cubic-bezier(.12, .58, .27, 1);
}
.list .tile.in { opacity: 1; transform: none; }
.list .tile::after, .list .tile .media { display: none; }
.list .tile .cap { position: static; opacity: 1; transform: none; background: none; padding: 0; justify-content: flex-start; align-items: baseline; gap: 10px; }
.list .tile .cap b { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; }
.list .tile .cap span { color: var(--dim); }
.list .tile .client, .list .tile .year { display: inline; }
.list .tile .client::before { content: "- "; }
.list .tile .cat { display: none; }
@media (hover: hover) and (pointer: fine) {
  .list:hover .tile { opacity: .35; }
  .list .tile:hover { opacity: 1; }
}

.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: clamp(260px, 26vw, 420px); aspect-ratio: 16 / 9; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity .6s var(--ease-a); background: var(--tile); will-change: transform;
}
.peek.on { opacity: 1; }
.peek img, .peek video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek img { transform: scale(1.15); transition: transform 1s cubic-bezier(.12, .89, .55, 1); }
.peek.on img { transform: none; }
.peek video { opacity: 0; transition: opacity .6s var(--ease-a); }
.peek.playing video { opacity: 1; }

.empty { padding: 48px var(--pad); color: var(--dim); }

/* Project */
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - var(--head)); background: var(--tile); overflow: hidden; }
.stage video, .stage iframe, .stage > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.stage .reveal { opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease-a), transform 1.8s var(--ease-a); }
.in .stage .reveal { opacity: 1; transform: none; }
.stage .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 3vw, 44px); text-transform: none; color: #3b3838; }

.controls {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(66rem, calc(100% - 2 * var(--pad))); z-index: 5;
  opacity: 0; transition: opacity .6s var(--ease-b); mix-blend-mode: difference; color: #fff;
}
.controls.show { opacity: 1; }
.progress { position: relative; height: 24px; cursor: pointer; }
.progress .under, .progress .line { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: #fff; transform-origin: left; }
.progress .under { opacity: .25; }
.progress .line { transform: scaleX(0); }
.progress .time { position: absolute; top: 0; left: 0; transform: translateX(-50%); pointer-events: none; }
.btns { display: flex; justify-content: space-between; margin-top: 6px; }
.btns .group { display: flex; gap: 16px; }
.btns button { padding: 6px 0; }
.btns button:hover { opacity: .6; }

.project-info { padding: 56px var(--pad) 40px; text-align: center; display: grid; gap: 26px; justify-items: center; }
.project-info h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.05; text-transform: uppercase; }
.credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 56px; }
.credits div { display: grid; gap: 2px; }
.credits dt { color: var(--dim); }
.project-nav { display: flex; justify-content: space-between; padding: 0 var(--pad) 40px; color: var(--dim); }
.project-nav a:hover { color: #fff; }

/* About */
.about-inner { max-width: 780px; padding: 80px var(--pad) 110px; display: grid; gap: 30px; }
.about h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.05; text-transform: none; letter-spacing: -.01em; }
.about p { text-transform: none; font-size: 13px; max-width: 56ch; }
.contact { display: grid; gap: 4px; justify-items: start; padding-top: 12px; }
.contact .label { color: var(--dim); }
.contact a { text-transform: none; font-size: 13px; }
.contact a:hover { text-decoration: underline; }

/* Tablet / phone */
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  :root { --pad: 16px; --head: 56px; --gap: 0px; }
  .top { grid-template-columns: 1fr auto; }
  .filters, .nav, .sub { display: none; }
  .menu-btn { display: block; }
  .toolbar { padding-top: 22px; }
  .grid { grid-template-columns: 1fr; }
  .tile .cap { opacity: 1; transform: none; padding: 28px 14px 12px; }
  .tile::after { display: none; }
  .controls { bottom: 12px; }
  .stage { max-height: none; }
  .project-info { padding-top: 36px; }
  .credits { gap: 18px 36px; }
  .project-nav { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .oh > *, .tile, .fade, .stage .reveal, #loader, #veil, .menu { transition: none !important; }
  .oh > * { transform: none; }
  .tile { opacity: 1; transform: none; }
}

/* Project description + credits */
.desc { text-transform: none; font-size: 13px; line-height: 1.6; max-width: 58ch; color: #d6d3d3; }
.handle { border-bottom: 1px solid rgba(255,255,255,.25); transition: border-color .4s var(--ease-b), color .4s var(--ease-b); }
.handle:hover { border-color: #fff; }
.crew { max-width: 860px; margin: 0 auto; padding: 8px var(--pad) 72px; }
.crew-title { color: var(--dim); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #262323; }
.crew dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.crew dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; align-items: baseline; }
.crew dt { color: var(--dim); }
.crew dd { text-transform: none; font-size: 13px; line-height: 1.5; }
@media (max-width: 720px) {
  .crew dl { grid-template-columns: 1fr; gap: 10px; }
  .crew dl > div { grid-template-columns: 8rem 1fr; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.yt-link { border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; transition: border-color .4s var(--ease-b); }
.yt-link:hover { border-color: #fff; }
.seo-list ul { list-style: none; padding: 80px 16px; } .seo-list a { text-transform: none; }

.roles { list-style: none; display: grid; gap: 8px; padding-top: 4px; }
.roles li { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.roles .role-title { color: var(--dim); min-width: 14rem; }
.roles a { text-transform: none; font-size: 13px; }
@media (max-width: 720px) { .roles .role-title { min-width: 0; width: 100%; } }

.orgs { padding-top: 18px; }
.org { display: grid; gap: 16px; justify-items: start; padding-top: 28px; border-top: 1px solid #262323; }
.org img { height: clamp(22px, 3vw, 32px); width: auto; }
.org p { max-width: 56ch; }
.org a { text-transform: none; font-size: 13px; }

.icons { display: flex; gap: 14px; padding: 6px 0 4px; }
.icons a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #2a2727; border-radius: 50%; color: #cfcccc; transition: color .4s var(--ease-b), border-color .4s var(--ease-b), background .4s var(--ease-b), transform .6s var(--ease-a); }
.icons a:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }
.icons a[hidden] { display: none; }
.mail-text { text-transform: none; font-size: 13px; color: var(--dim); }
.mail-text:hover { color: #fff; text-decoration: none; }

/* iOS layer: frosted glass, rounded, springy */
:root { --ui: var(--mono); --glass: rgba(34, 31, 31, .55); --glass-2: rgba(255, 255, 255, .07); --hair: rgba(255, 255, 255, .1); --spring: cubic-bezier(.32, .72, 0, 1); }
body { font-family: var(--ui); font-size: 14px; letter-spacing: -.011em; text-transform: none; }

.top { mix-blend-mode: normal; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand-text b { font-weight: 600; font-size: 14px; }
.sub { color: #9d9a9a; font-size: 12px; }
.mark { height: 28px; }

.filters, .view-toggle > span { display: flex; align-items: center; gap: 2px; padding: 3px; background: rgba(255, 255, 255, .08); border-radius: 999px; }
.filters button, .view-toggle button { padding: 6px 15px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #b5b2b2; transition: background .4s var(--spring), color .3s, transform .3s var(--spring); }
.filters button::after, .view-toggle button::after, .nav a::after { display: none; }
.filters button:hover, .view-toggle button:hover { color: #fff; }
.filters button[aria-pressed="true"], .view-toggle button[aria-pressed="true"] { background: rgba(255, 255, 255, .17); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.filters button:active, .view-toggle button:active { transform: scale(.95); }
.view-toggle > span { padding: 3px; gap: 2px; color: transparent; font-size: 0; }
.view-toggle button { font-size: 12.5px; }
.nav { gap: 6px; }
.nav a { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #c9c6c6; transition: background .35s var(--spring), color .3s; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.menu-btn { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 500; }

.toolbar { padding-top: 30px; }
.bracket { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.tile .cap b { font-size: 16px; letter-spacing: -.02em; }
.tile .cap span { font-size: 12px; }
.tile::after { inset: 14px; border-radius: 10px; }

.project-info h1 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; text-transform: none; }
.credits dt { font-size: 11.5px; letter-spacing: .02em; }
.desc { font-size: 15px; color: #dcd9d9; }
.crew { background: var(--glass-2); border: 1px solid var(--hair); border-radius: 24px; padding: 26px 28px 30px; margin: 0 auto 72px; max-width: 880px; width: calc(100% - 2 * var(--pad)); }
.crew-title { border-bottom: 1px solid var(--hair); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.crew dd { font-size: 14px; }
.btns button { padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 12.5px; font-weight: 600; transition: transform .3s var(--spring), background .3s; }
.btns button:active { transform: scale(.94); }
.btns .group { gap: 8px; }
.progress .under, .progress .line { height: 3px; border-radius: 3px; }
.controls { mix-blend-mode: normal; }
.project-nav a { padding: 8px 16px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--hair); color: #cfcccc; transition: background .3s, color .3s; }
.project-nav a:hover { background: rgba(255, 255, 255, .13); color: #fff; }

.about h2 { font-size: clamp(30px, 4vw, 56px); letter-spacing: -.035em; text-transform: none; }
.about p { font-size: 16px; line-height: 1.6; color: #d8d5d5; }
.roles { gap: 10px; padding-top: 10px; }
.roles li { background: var(--glass-2); border: 1px solid var(--hair); border-radius: 18px; padding: 15px 20px; justify-content: space-between; align-items: center; }
.roles .role-title { color: #a8a5a5; min-width: 0; font-size: 13px; }
.roles a { font-size: 14px; font-weight: 500; border: 0; }
.orgs { padding-top: 12px; }
.org { background: var(--glass-2); border: 1px solid var(--hair); border-radius: 24px; padding: 26px 26px 28px; gap: 18px; }
.org img { height: clamp(24px, 3.2vw, 34px); }
.org p { font-size: 15px; }
.contact { padding-top: 22px; }
.contact .label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.icons { gap: 12px; padding: 8px 0; }
.icons a { width: 54px; height: 54px; border-radius: 17px; background: var(--glass-2); border: 1px solid var(--hair); color: #e8e5e5; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .5s var(--spring), background .3s, color .3s; }
.icons a:hover { background: rgba(255, 255, 255, .15); color: #fff; border-color: var(--hair); transform: translateY(-3px) scale(1.04); }
.icons a:active { transform: scale(.94); }
.icons svg { width: 23px; height: 23px; }
.mail-text { font-size: 14px; }
.handle { border-bottom-color: rgba(255, 255, 255, .28); }
.yt-link { display: inline-block; padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 0; font-size: 13px; font-weight: 600; transition: background .3s, transform .3s var(--spring); }
.yt-link:hover { background: rgba(255, 255, 255, .2); }
.yt-link:active { transform: scale(.96); }

.menu { background: rgba(9, 8, 8, .92); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.menu-links a { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 500; }

/* quick, quiet loader */
#loader { clip-path: none; transition: opacity .45s var(--spring); flex-direction: column; justify-content: center; align-items: center; padding: 0; gap: 20px; }
#loader::before { content: ""; width: 46px; height: 46px; background: url(/assets/brand/ek-mark.png) center / contain no-repeat; animation: ekpulse 1.2s ease-in-out infinite; }
#loader.done { clip-path: none; opacity: 0; pointer-events: none; }
#loader.instant { display: none; }
.loader-bar { width: 110px; height: 2px; border-radius: 2px; }
.loader-num { display: none; }
@keyframes ekpulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@media (max-width: 720px) { .toolbar { padding-top: 22px; } .roles li { flex-direction: column; align-items: flex-start; gap: 4px; } .crew { padding: 22px 20px 26px; border-radius: 22px; } .org { padding: 22px; border-radius: 22px; } }

/* back to flat: no rounded boxes */
.roles li { background: none; border: 0; border-radius: 0; padding: 0; justify-content: flex-start; align-items: baseline; gap: 18px; }
.roles .role-title { min-width: 14rem; }
.org { background: none; border: 0; border-top: 1px solid #262323; border-radius: 0; padding: 28px 0 0; }
.crew { background: none; border: 0; border-radius: 0; padding: 8px var(--pad) 72px; margin: 0 auto; width: auto; max-width: 860px; }
.crew-title { border-bottom-color: #262323; }
.icons a { width: 44px; height: 44px; border-radius: 50%; background: none; border: 1px solid #2a2727; color: #cfcccc; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.icons a:hover { background: none; color: #fff; border-color: #fff; transform: translateY(-2px); }
.icons svg { width: 22px; height: 22px; }
.project-nav a { padding: 0; border-radius: 0; background: none; border: 0; color: var(--dim); }
.project-nav a:hover { background: none; color: #fff; }
.btns button { padding: 6px 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-weight: 500; }
.yt-link { padding: 0 0 2px; border-radius: 0; background: none; border-bottom: 1px solid rgba(255, 255, 255, .35); font-weight: 500; }
.yt-link:hover { background: none; border-bottom-color: #fff; }
.menu-links a { padding: 0; border-radius: 0; background: none; }
@media (max-width: 720px) { .org { padding: 22px 0 0; border-radius: 0; } .crew { padding: 8px var(--pad) 56px; border-radius: 0; } .roles li { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; } }

/* header controls: back to plain text with the sliding underline */
.filters, .view-toggle > span { background: none; padding: 0; border-radius: 0; gap: 22px; font-size: 12px; color: var(--dim); }
.filters button, .view-toggle button, .nav a, .menu-btn { padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: #9a9696; transition: color .3s var(--ease-b); }
.filters button[aria-pressed="true"], .view-toggle button[aria-pressed="true"] { background: none; box-shadow: none; color: #fff; }
.filters button:hover, .view-toggle button:hover, .nav a:hover, .nav a[aria-current="page"] { background: none; color: #fff; }
.filters button:active, .view-toggle button:active { transform: none; }
.filters button::after, .view-toggle button::after, .nav a::after { display: block; }
.nav { gap: 22px; }
.menu-btn { color: #fff; }
.view-toggle > span { gap: 6px; }

.sub { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.sub { letter-spacing: -.005em; font-size: 10.5px; line-height: 1.1; }

/* header: logo only (name stays for screen readers and search) */
.brand-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mark { height: 32px; }

.role-links { display: flex; gap: 22px; flex-wrap: wrap; }
.role-links a { text-transform: none; font-size: 14px; font-weight: 500; }
.roles .role-title { min-width: 6.5rem; }
.org p a { font-size: inherit; font-weight: inherit; }

/* About: portrait left, text right */
.about-inner { max-width: none; padding: 0; display: block; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 56px var(--pad) 120px; max-width: 1180px; margin: 0 auto; }
.about-grid.has-photo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: end; }
.about-photo { grid-column: 1; align-self: end; }
.about-photo img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; }
.about-inner { display: grid; gap: 30px; align-content: start; }
.has-photo .about-inner { grid-column: 2; grid-row: 1; align-self: start; }
.paras { display: grid; gap: 20px; }
.paras p { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; max-width: 34em; color: #f1eeee; letter-spacing: -.012em; }
.paras p + p { font-size: clamp(15px, 1.4vw, 17px); color: #c9c6c6; }
.clients { display: grid; gap: 10px; }
.clients .label { color: var(--dim); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.clients ul { list-style: none; display: grid; gap: 6px; font-size: 15px; }
@media (max-width: 860px) { .about-grid.has-photo { grid-template-columns: 1fr; gap: 32px; } .has-photo .about-inner, .about-photo { grid-column: 1; grid-row: auto; } .about-photo img { max-height: 60vh; } }

/* About: single column again */
.about-grid, .about-grid.has-photo { display: block; max-width: 780px; margin: 0; padding: 72px var(--pad) 120px; }
.about-inner { display: grid; gap: 30px; }
.paras p { max-width: 36em; }

/* grid tile names in capitals */
.tile .cap b, .tile .ph { text-transform: uppercase; letter-spacing: .01em; }

.toolbar { justify-content: flex-end; padding-top: 24px; padding-bottom: 14px; }

/* titles a touch tighter */
.tile .cap b, .tile .ph { letter-spacing: -.02em; }
.project-info h1 { letter-spacing: -.04em; }

/* caption sits inside the viewfinder corners, not on them */
.tile .cap { padding: 40px 34px 32px; }
@media (max-width: 720px) { .tile .cap { padding: 28px 16px 14px; } }

/* no viewfinder corner marks */
.tile::after { display: none !important; }

/* tile titles: system sans, no slide motion, crisp over video */
.tile .cap b, .tile .ph { font-family: var(--ui); font-weight: 650; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.tile .cap b { font-size: 15px; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.tile .cap { transform: none !important; transition: opacity .5s var(--ease-a); will-change: auto; }
.tile img { backface-visibility: hidden; }

/* caption: title and category on the same baseline */
.tile .cap { align-items: baseline; }
.tile .cap b, .tile .cap span { line-height: 1.2; }
.tile .cap span { font-size: 13px; font-weight: 500; letter-spacing: -.005em; }

/* project gallery: scroll through logos, flyers, mockups */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 8px var(--pad) 40px; max-width: 1360px; margin: 0 auto; }
.g-item { grid-column: span 1; background: var(--tile); opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-a), transform 1.2s var(--ease-a); }
.g-item.wide { grid-column: span 2; }
.g-item.in { opacity: 1; transform: none; }
.g-item img { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; gap: 10px; } .g-item.wide { grid-column: span 1; } }
@media (prefers-reduced-motion: reduce) { .g-item { opacity: 1; transform: none; transition: none; } }

/* case study: overview + chapters, images stacked full width */
.overview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; max-width: 1100px; margin: 0 auto; padding: 8px var(--pad) 56px; }
.ov-title { font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.03em; text-transform: none; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid rgba(255, 255, 255, .35); display: inline-block; }
.services { list-style: none; display: grid; gap: 12px; }
.services li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.services .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.overview p { text-transform: none; font-size: 16px; line-height: 1.6; color: #d8d5d5; max-width: 40em; }
.gallery.stack { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gallery.stack .g-item.wide { grid-column: auto; }
.chapter-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 64px 0 22px; }
.chapter-head .ch-num { color: var(--dim); font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.chapter-head .ch-line { flex: 0 0 clamp(60px, 10vw, 140px); height: 2px; background: rgba(255, 255, 255, .3); }
.chapter-head .ch-name { color: #fff; font-size: clamp(18px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 720px) { .overview { grid-template-columns: 1fr; gap: 34px; } .chapter-head { padding-top: 44px; } }

/* compact gallery: a short mosaic, about two and a half screens */
.gallery:not(.stack) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; max-width: 1280px; }
.gallery:not(.stack) .g-item.wide { grid-column: span 2; }
.gallery:not(.stack) .g-item.xwide { grid-column: span 3; }
@media (max-width: 720px) {
  .gallery:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery:not(.stack) .g-item.wide, .gallery:not(.stack) .g-item.xwide { grid-column: span 2; }
}

/* desktop: covers rest in soft black and white, bloom into color on hover */
@media (hover: hover) and (pointer: fine) {
  .grid:not(.list) .tile img { filter: grayscale(1) blur(2.5px) brightness(.92); transform: scale(1.04); transition: filter .8s var(--ease-a), transform 1.6s var(--ease-a), opacity 1.5s var(--ease-a); }
  .grid:not(.list) .tile:hover img { filter: grayscale(0) blur(0) saturate(1.18) brightness(1); transform: scale(1.04); }
  .grid:not(.list) .tile video { filter: saturate(1.18); }
}

/* type hierarchy: regular for reading, semibold for headings, small dim caps for labels */
body { font-weight: 400; }
.ov-title { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.02em; border-bottom-width: 1px; }
.services li { font-size: 16px; font-weight: 400; color: #e8e5e5; }
.overview p, .desc, .paras p, .org p { font-weight: 400; }
.crew-title, .contact .label { font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.crew dt, .credits dt, .roles .role-title { font-size: 12px; font-weight: 400; color: var(--dim); }
.crew dd, .credits dd { font-weight: 400; color: #ecebeb; }
.credits dd, .crew dd { font-size: 14px; }
.roles a, .role-links a, .org p a { font-weight: 400; }
.nav a, .filters button, .view-toggle button, .menu-btn { font-weight: 400; }
.filters button[aria-pressed="true"], .view-toggle button[aria-pressed="true"] { font-weight: 600; }
.tile .cap b { font-weight: 600; }
.tile .cap span { font-weight: 400; }
.project-info h1 { font-weight: 700; }
.chapter-head .ch-num { font-weight: 400; }
.chapter-head .ch-name { font-weight: 600; }
.mail-text, .handle, .yt-link { font-weight: 400; }
.btns button { font-weight: 500; }

/* tile subline: second font, digital sans, capitals, italic */
@font-face { font-family: "EK Digital"; src: url("/assets/fonts/chakra-petch-italic-500.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }
.tile .cap .cat { font-family: "EK Digital", "Bahnschrift", "Segoe UI", sans-serif; font-style: italic; font-weight: 500; text-transform: uppercase; font-size: 11.5px; letter-spacing: .12em; line-height: 1.2; color: #d9d6d6; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }

/* services: tighter list */
.services { gap: 4px; }
.services li { line-height: 1.3; gap: 10px; }
.ov-title { margin-bottom: 12px; padding-bottom: 8px; }

/* tile subline v2: neutral condensed sans, italic caps, tight, a touch taller */
@font-face { font-family: "EK Sub"; src: url("/assets/fonts/plex-condensed-italic-500.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }
.tile .cap .cat { font-family: "EK Sub", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 500; font-size: 12px; letter-spacing: .035em; text-transform: uppercase; display: inline-block; transform: scaleY(1.1); transform-origin: left bottom; }

/* hierarchy: heading > list text. List items are light and softer than the heading */
.services li { font-weight: 400; font-size: 15px; color: #cfcccc; letter-spacing: -.005em; }
.services .dot { width: 7px; height: 7px; background: #cfcccc; }
.ov-title { color: #fff; font-weight: 600; }
.tile .cap .cat { font-size: 11.5px; color: #d2cfcf; }

/* phones: keep the compact header (logo + MENU), filters and links live in the menu */
@media (max-width: 720px) {
  .filters, .nav { display: none !important; }
  .menu-btn { display: block; padding: 8px 14px; color: #fff; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
  .top { grid-template-columns: 1fr auto; }
  .toolbar { padding: 18px var(--pad) 12px; }
}

/* iPhone: one-row header, 16pt side margins everywhere, safe-area aware */
@media (max-width: 720px) {
  :root { --pad: 16px; --head: 60px; }
  .top { display: grid; grid-template-rows: none; grid-template-columns: 1fr auto; align-items: center; height: var(--head);
    padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
  .brand { grid-column: 1; grid-row: 1; }
  .menu-btn { grid-column: 2; grid-row: 1; justify-self: end; padding: 10px 0 10px 12px; }
  .mark { height: 30px; }
  .toolbar { padding: 16px var(--pad) 12px; }
  .grid { padding-left: var(--pad); padding-right: var(--pad); padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom)); }
  .project-info, .crew, .overview, .gallery, .about-grid, .project-nav { padding-left: var(--pad); padding-right: var(--pad); }
  .menu { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom)); }
  .tile .cap { padding: 28px var(--pad) 14px; }
  body { overflow-x: hidden; }
}
