/* IDEM Creative Works — the A shape. One system: HUD timecode, rail nav, grain. Everything else is plain. */
:root {
  --ink: #0a0a0b; --ink-2: #121214; --paper: #f2efe8; --dim: #b8b4aa; --amber: #ffb547;
  --line: rgba(242, 239, 232, 0.14);
  --display: "Bebas Neue", "Outfit", sans-serif; --body: "Outfit", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 72px);
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.5; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.accent { color: var(--amber); }
.small { font-size: 11px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 0.94; letter-spacing: 0.01em; margin: 0; }
h1 { font-size: clamp(48px, 7.2vw, 110px); }
h2 { font-size: clamp(36px, 4.6vw, 72px); }
h3.mono { color: var(--amber); margin: 48px 0 14px; }
.lede { font-size: 21px; line-height: 1.45; max-width: 56ch; color: var(--paper); margin: 18px 0 0; }
p { margin: 0 0 12px; }

/* grain: one still texture, no canvas */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.055; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* HUD */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--gutter); background: linear-gradient(180deg, rgba(10,10,11,0.9), rgba(10,10,11,0)); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hud-brand img { height: 18px; width: auto; }
.hud-brand .mono { white-space: nowrap; }
.hud-nav { display: flex; gap: 22px; }
.hud-nav a { text-decoration: none; color: var(--dim); } .hud-nav a:hover { color: var(--amber); }
.hud-right { display: flex; align-items: center; gap: 18px; }
.tc { color: var(--dim); }
.snd { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--paper); background: none; border: 1px solid var(--line); padding: 6px 10px; cursor: pointer; }
.snd[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }

/* hero: one reel, no controls */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,10,11,0.82) 0%, rgba(10,10,11,0.55) 34%, rgba(10,10,11,0) 62%),
  linear-gradient(180deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0) 40%, rgba(10,10,11,0.85) 100%); }
.hero-text { position: relative; z-index: 2; padding: 0 var(--gutter) 72px; max-width: 1100px; }
.hero-k { color: var(--amber); margin-bottom: 18px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--paper);
  border: 1px solid var(--paper); padding: 14px 24px; background: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* sections */
.sec { padding: 96px var(--gutter); border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head .mono { color: var(--dim); }

/* tiles: still poster, moves on hover, one ratio */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: block; text-decoration: none; border: 1px solid var(--line); background: var(--ink-2); transition: border-color 0.25s; }
.tile:hover { border-color: var(--amber); }
.tile-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.tile-media video, .tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s; }
.tile:hover .tile-media video, .tile:hover .tile-media img { transform: scale(1.02); }
.tile-cap { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.tile-cap b { font-weight: 500; font-size: 17px; }
.tile-cap .mono { color: var(--dim); font-size: 11px; }
.also { color: var(--dim); margin-top: 28px; }
.also a { color: var(--paper); text-decoration: none; } .also a:hover { color: var(--amber); }

/* players: press to play with sound */
.pl { margin: 0; min-width: 0; }
.pl-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--ink-2); position: relative; overflow: hidden; cursor: pointer; }
.pl-btn video { width: 100%; height: 100%; object-fit: cover; }
.pl[data-shape="16x9"] .pl-btn { aspect-ratio: 16 / 9; }
.pl[data-shape="9x16"] .pl-btn { aspect-ratio: 9 / 16; }
.pl[data-shape="4x5"] .pl-btn { aspect-ratio: 4 / 5; }
.pl[data-shape="1x1"] .pl-btn { aspect-ratio: 1 / 1; }
.pl-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(242,239,232,0.75); background: rgba(10,10,11,0.45); transition: opacity 0.2s, border-color 0.2s; }
.pl-btn::before { content: ""; position: absolute; left: calc(50% - 6px); top: calc(50% - 9px); z-index: 2; border-left: 15px solid var(--paper); border-top: 9px solid transparent; border-bottom: 9px solid transparent; transition: opacity 0.2s; }
.pl-btn:hover::after { border-color: var(--amber); }
.pl.is-playing .pl-btn::after, .pl.is-playing .pl-btn::before { opacity: 0; }
.pl figcaption { margin-top: 10px; color: var(--dim); font-size: 11px; line-height: 1.5; }
.pl figcaption a { color: var(--paper); text-decoration: none; }
.pl-big { margin: 36px 0 8px; }
.pl-big[data-shape="4x5"] { max-width: 620px; }
.plate-link img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* one ad, four shapes, one height */
.shapes { display: grid; grid-template-columns: 8.4375fr 12fr 15fr 26.667fr; gap: 18px; align-items: start; }
.grid16 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; margin-top: 24px; }
.grid9 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; margin-top: 24px; }
.grid45 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.grid45 img { width: 100%; height: auto; border: 1px solid var(--line); }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 24px 0 12px; scrollbar-width: thin; scrollbar-color: rgba(242,239,232,0.25) transparent; }
.strip img { flex: 0 0 240px; width: 240px; min-width: 0; height: auto; scroll-snap-align: start; border: 1px solid var(--line); }
.cap { color: var(--dim); margin-top: 4px; }
.links { color: var(--dim); margin-top: 28px; line-height: 2; }
.links a { color: var(--paper); text-decoration: none; } .links a:hover { color: var(--amber); }

/* method + prices */
.qs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 8px; }
.q { border: 1px solid var(--line); padding: 24px 26px; }
.q-no { color: var(--amber); } .q p { font-size: 24px; margin: 8px 0 6px; } .q-opt { color: var(--dim); font-size: 11px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); margin: 32px 0 20px; }
.prices > div { padding: 22px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.prices > div:last-child { border-right: 0; }
.prices b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 0.02em; }
.prices span { color: var(--dim); font-size: 15px; }
#method .small a { color: var(--amber); text-decoration: none; }

/* Leonard */
.who { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 44px; align-items: center; }
.who-img { width: 100%; filter: grayscale(1) contrast(1.05); border: 1px solid var(--line); }
.who-text .mono { color: var(--amber); margin-bottom: 14px; }
.who-text .lede + .mono { margin-top: 22px; }
.who-text .mono a { color: var(--paper); text-decoration: none; } .who-text .mono a:hover { color: var(--amber); }

/* contact */
.mailrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.mail { font-family: var(--display); font-size: clamp(28px, 4vw, 56px); text-decoration: none; letter-spacing: 0.02em; }
.mail:hover { color: var(--amber); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; max-width: 820px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--dim); }
.form label:nth-child(3), .form label:nth-child(4) { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--paper); background: var(--ink-2); border: 1px solid var(--line); padding: 12px 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--amber); }
.form .btn { justify-self: start; }
.form .small { grid-column: 1 / -1; color: var(--dim); }

/* case pages */
.case { padding: 140px var(--gutter) 96px; max-width: 1400px; margin: 0 auto; }
.crumb { color: var(--dim); margin-bottom: 18px; } .crumb a { text-decoration: none; }
.case > .mono:not(.crumb) { color: var(--dim); margin-top: 14px; }
.case-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 44px 0 8px; }
.case-text h3 { margin: 0 0 10px; }
.case-text p { font-size: 17px; color: var(--paper); max-width: 44ch; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 56px 0 24px; }
.meta dt { color: var(--amber); margin-bottom: 6px; } .meta dd { margin: 0; font-size: 15px; }
.credits { color: var(--dim); font-size: 15px; max-width: 70ch; } .credits .mono { color: var(--amber); margin-right: 10px; }
.next { display: flex; flex-direction: column; gap: 8px; text-decoration: none; border: 1px solid var(--line); padding: 28px 30px; margin-top: 56px; transition: border-color 0.25s; }
.next:hover { border-color: var(--amber); } .next .mono { color: var(--dim); } .next b { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: 0.02em; }
.steps { padding-left: 22px; max-width: 76ch; } .steps li { margin-bottom: 12px; } .steps b { font-weight: 600; }

/* footer + rail */
.foot { border-top: 1px solid var(--line); padding: 48px var(--gutter) 110px; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.foot-mail { font-family: var(--display); font-size: 28px; text-decoration: none; letter-spacing: 0.02em; }
.foot-legal { color: var(--dim); font-size: 11px; max-width: 80ch; line-height: 1.7; text-transform: none; letter-spacing: 0.04em; }
.foot-legal a { color: var(--paper); }
/* the timeline: the current page's bar, the red playhead travels with the scroll */
.timeline { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(10,10,11,0.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 0 0 4px; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff3b30; z-index: 2; left: 0; pointer-events: none; }
.playhead-tc { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); color: #ff3b30; background: var(--ink); padding: 1px 6px; border: 1px solid rgba(255,59,48,0.4); font-size: 11px; }
.clips { display: flex; }
.clip { flex: 1; padding: 13px 4px 11px; background: none; border: none; border-right: 1px solid var(--line); color: var(--dim); font-size: 11px; letter-spacing: 0.14em; cursor: pointer; transition: color 0.25s, background 0.25s; }
.clip:last-child { border-right: none; }
.clip:hover { color: var(--paper); background: var(--ink-2); }
.clip.active { color: var(--amber); background: var(--ink-2); }
.scene-label { position: absolute; top: -34px; left: 28px; color: var(--amber); background: var(--ink); border: 1px solid var(--line); padding: 4px 10px; font-size: 11px; }

@media (max-width: 980px) {
  .shapes { grid-template-columns: 8.4375fr 12fr; }
  .case-text { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .who-img { max-width: 320px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hud-nav { display: none; }
  .hud-brand .mono { display: none; }
  .hud { padding: 12px 16px; }
  .sec { padding: 64px var(--gutter); }
  .hero-text { padding-bottom: 96px; }
  .lede { font-size: 18px; }
  .tiles, .grid16 { grid-template-columns: 1fr; }
  .shapes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid9 { grid-template-columns: repeat(2, 1fr); }
  .qs { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form label:nth-child(3), .form label:nth-child(4) { grid-column: auto; }
  .case { padding-top: 110px; }
  .clip { padding: 12px 2px 10px; font-size: 9px; letter-spacing: 0.08em; }
  .scene-label { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-media video, .tile-media img { transition: none; }
}

/* phone hero scrim: the text spans the whole width there */
@media (max-width: 720px) { .hero::after { background: linear-gradient(180deg, rgba(10,10,11,0.25) 0%, rgba(10,10,11,0.6) 35%, rgba(10,10,11,0.88) 100%); } }

/* ===== work pages (2 Nov 2026): the editor look of the home page — REC, timecode, the bin at the bottom ===== */
.hud { justify-content: space-between; }
.hud-l { display: flex; align-items: center; gap: 10px; color: var(--paper); white-space: nowrap; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px rgba(255,59,48,0.7); animation: rec 1.2s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.hud-nav a:first-child { color: var(--amber); }
.case { padding-bottom: 140px; }
.grid45 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.grid45 figure { margin: 0; }
.grid45 figcaption { margin-top: 8px; color: var(--dim); font-size: 11px; }
.strip img.is-916 { flex-basis: 200px; width: 200px; }
a.clip { display: block; text-align: center; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip.home { color: var(--paper); }
@media (max-width: 720px) {
  .hud-nav { display: none; }
  .grid45 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .clips .clip:not(.home):not(.active) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.hud-brand { min-height: 28px; padding: 4px 0; }
.foot-legal a { display: inline-block; padding: 4px 0; }
