/* Luke Tyler. Dark ground, a 40px grid behind key sections, framed panels, one orange accent.
   Spacing: every section uses --section top and bottom; every page uses --gutter at the sides. */
:root {
  --bg: #151412;
  --ink: #ECE8DF;
  --soft: #A3A3A0;
  --body: #D4D4D0;
  --accent: #FF5A1F;
  --live: #7CD992;
  --line: #ECE8DF;
  --line-soft: rgba(236, 232, 223, .22);
  --display: "Instrument Serif", Georgia, serif;
  --text: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 24px;
  --section: clamp(48px, 7vw, 72px);
  --gap: 24px;
  --max: 1360px;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -.01em; }
h1 { font-size: clamp(56px, 8vw, 104px); line-height: .95; }
h2 { font-size: clamp(44px, 6vw, 80px); line-height: 1; }
h3 { font-size: 32px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.eyebrow { font: 400 12px var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.eyebrow.soft { color: var(--soft); }
.lede { color: var(--body); font-size: 20px; max-width: 640px; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: .1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* The grid and the framed panels that sit on it */
.grid-bg { background-color: var(--bg); background-image: linear-gradient(to right, rgba(236,232,223,.2) 1px, transparent 1px), linear-gradient(to bottom, rgba(236,232,223,.2) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.panel { background: var(--bg); border: 1px solid var(--line); padding: 32px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.two { display: flex; flex-wrap: wrap; gap: 40px; }
.two > :first-child { flex: 1 1 380px; min-width: 0; }
.two > :last-child { flex: 999 1 560px; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.head p { max-width: 420px; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: var(--bg); font: 600 13px var(--text); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .6; cursor: wait; }
.row-link { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.row-link:hover { border-color: var(--accent); }
.more { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; }
.logo { font: italic 400 26px var(--display); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a[aria-current] { color: var(--accent); }
.cur select { background: transparent; color: var(--ink); border: 1px solid var(--line-soft); font: 400 12px var(--mono); padding: 6px 8px; }
.site-foot { padding-block: var(--section) 40px; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.foot-title { font: italic 400 clamp(44px, 6vw, 80px)/1 var(--display); }
.foot-mail { font: 400 clamp(26px, 3vw, 40px)/1.1 var(--display); color: var(--accent); }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot-links a, .foot-bot a { text-decoration: none; }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--soft); background: var(--bg); padding: 12px 16px; border: 1px solid rgba(236,232,223,.4); }
.foot-bot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-bot a { color: var(--soft); }

/* Home: hero */
.hero { padding-block: 40px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.hero-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.hero-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.name { font-style: italic; font-size: clamp(88px, 12vw, 168px); line-height: .92; letter-spacing: -.02em; margin-top: 16px; }
.mono-lines { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 4px; color: var(--body); font: 400 14px/1.6 var(--mono); }
.mono-lines li::before { content: "▶ "; }
.mono-lines li:last-child::after { content: " ↓"; color: var(--accent); }
.portrait { padding: 0; flex: 1 1 auto; min-height: 520px; position: relative; margin: 0; overflow: hidden; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; filter: saturate(.85) contrast(1.05); }
.clients { padding: 20px 24px; display: grid; gap: 8px; font-size: 14px; line-height: 1.7; }

/* Showreel and clip lists */
.reel { padding: 0; }
.reel-head, .reel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 24px; font-size: 13px; }
.reel-head { border-bottom: 1px solid var(--line); }
.reel-foot a { text-transform: uppercase; letter-spacing: .08em; }
.empty { padding: 24px; color: var(--soft); }
.clips { display: flex; flex-direction: column; }
.panel.clips { padding: 0; }
.clip { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 16px; padding: 10px 24px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--ink); font: 400 14px var(--mono); text-align: left; cursor: pointer; }
.clip:last-child { border-bottom: 0; }
.clip:hover { background: rgba(236,232,223,.06); }
.clip.playing { background: var(--ink); color: var(--bg); }
.clip-n { width: 28px; opacity: .7; }
.clip-i { width: 28px; height: 28px; display: grid; place-items: center; background: var(--accent); color: var(--bg); flex: none; }
.clip-t { flex: 1 1 auto; text-transform: uppercase; letter-spacing: .04em; }
.clip-g { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.genre + .genre { margin-top: 56px; }
.genre .head { margin-bottom: 16px; }

/* Play icons, shared by every play button */
.i-play, .i-pause { width: 12px; height: 12px; fill: currentColor; }
.i-pause, .playing .i-play { display: none; }
.playing .i-pause { display: block; }
.play { width: 48px; height: 48px; flex: none; border: 0; border-radius: 0; background: var(--accent); color: var(--bg); display: grid; place-items: center; cursor: pointer; }
.play svg { width: 16px; height: 16px; }

/* Grids of ruled cells */
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); align-self: start; }
.cells.biz { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cells.small-cells { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.cell { background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; text-decoration: none; }
.small-cells .cell { min-height: 120px; padding: 20px; }
.biz .cell { min-height: 300px; justify-content: flex-start; gap: 16px; }
.cell .grow { flex: 1 1 auto; color: var(--body); }
.cell-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.cell-title { font: 400 30px/1.05 var(--display); }
.small-cells .cell-title { font-size: 26px; }
.biz h3 { font-size: 40px; }
.tag { border: 1px solid var(--accent); color: var(--accent); padding: 2px 8px; }
.tag.on { border-color: var(--live); color: var(--live); }
a.cell:hover .cell-title { color: var(--accent); }

/* Lists of posts */
.list-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }

/* Custom */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.steps h3 { margin: 8px 0; font-size: 28px; }
.rate { font: 400 15px var(--mono); color: var(--body); border-top: 1px solid var(--line-soft); padding-top: 20px; }

/* Shop */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.card { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card-top { display: flex; justify-content: space-between; font: 400 13px var(--mono); color: var(--soft); }
.card-top .price { color: var(--ink); }
.card-img, .product-img { aspect-ratio: 4 / 3; overflow: hidden; display: block; border: 1px solid var(--line-soft); }
.card-img img, .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img { padding: 0; margin: 0; aspect-ratio: 1; }
.product-media { display: grid; gap: var(--gap, 16px); align-content: start; }
.product-shot { margin: 0; padding: 0; border: 1px solid var(--line-soft); }
.product-shot img { width: 100%; height: auto; display: block; }
.product-shot figcaption { padding: 8px 12px; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: #1d1b18; font: italic 400 64px var(--display); color: var(--soft); }
.card h3 a { text-decoration: none; }
.card .soft { flex: 1 1 auto; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 0; border-block: 1px solid var(--line-soft); }
.amount { font: 400 44px var(--display); }
.notice { padding: 14px 18px; border: 1px solid var(--accent); font-size: 15px; }
.pv { display: flex; align-items: center; gap: 14px; }
.pv-time { font: 400 12px var(--mono); color: var(--soft); font-variant-numeric: tabular-nums; }
.pv-bar { --p: 0%; position: relative; flex: 1 1 auto; height: 24px; cursor: pointer; touch-action: none; }
.pv-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: linear-gradient(to right, var(--accent) var(--p), var(--line-soft) var(--p)); }
.pv-bar span { position: absolute; top: 50%; left: var(--p); width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--ink); }
.rich { color: var(--body); display: grid; gap: 14px; }
.rich ul { margin: 0; padding-left: 20px; }

/* FAQs */
.faq details { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; font: 400 26px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--body); margin-top: 10px; max-width: 760px; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; background: transparent; color: var(--ink); border: 1px solid var(--line-soft); border-radius: 0; font: 400 17px var(--text); }
.field select option { background: var(--bg); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.big-mail { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--display); color: var(--accent); }

/* Page intros, articles, terms */
.intro { padding-block: 40px; }
.intro .panel { display: grid; gap: 16px; }
.intro a { color: inherit; }
.article { max-width: 800px; display: grid; gap: 18px; color: var(--body); }
.article h2 { font-size: 40px; color: var(--ink); margin-top: 16px; }
.article h3 { font-size: 26px; color: var(--ink); margin-top: 8px; }
.article ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.article strong { color: var(--ink); }
.article .cover { border: 1px solid var(--line); }

/* Downloads page */
.downloads { margin: 24px 0 32px; }
.dl-item { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.dl-item h2 { font-size: 32px; margin: 0 0 14px; }

/* The mini player that appears while a clip plays */
.player { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); z-index: 50; display: flex; align-items: center; gap: 14px; padding: 8px 20px 8px 8px; background: var(--bg); border: 1px solid var(--line); transition: transform .4s ease, visibility .4s; max-width: calc(100% - 32px); visibility: hidden; }
.player.show { transform: translate(-50%, 0); visibility: visible; }
.player .play { width: 40px; height: 40px; }
.player .pinfo { display: grid; gap: 2px; min-width: 0; }
.player strong { font: 400 20px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .ptime { font: 400 11px var(--mono); color: var(--soft); }
.player .seek { -webkit-appearance: none; appearance: none; width: 180px; flex: none; height: 24px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.player .seek::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--accent) var(--p), var(--line-soft) var(--p)); }
.player .seek::-moz-range-track { height: 3px; background: linear-gradient(to right, var(--accent) var(--p), var(--line-soft) var(--p)); }
.player .seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; background: var(--ink); border: 0; border-radius: 0; }
.player .seek::-moz-range-thumb { width: 12px; height: 12px; background: var(--ink); border: 0; border-radius: 0; }

/* Cookie banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent div { display: flex; gap: 10px; }

/* Parts hidden in the admin editor stay in the page but aren't shown to visitors.
   While editing (html.editing) they show faded so they can be brought back. */
html:not(.editing) [data-hidden] { display: none !important; }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .panel { padding: 24px; }
  .portrait { min-height: 380px; }
  .clip { padding: 10px 16px; gap: 12px; }
  .clip-g { display: none; }
  .player .seek { width: 110px; }
  .list-row { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .player { transition: none; } }

/* Section headings inside side-by-side panels stay inside their frame */
.two .panel h2, .intro h1 { font-size: clamp(44px, 4.6vw, 72px); overflow-wrap: break-word; hyphens: manual; }
.card-img { text-decoration: none; }
