/* 19mediastudios · cinema-dark, minimal. Tokens first. */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #101216;
  --line: #22262c;
  --fg: #ebe9e4;
  --fg-dim: #9b9fa6;
  --accent: #9cc3cc;
  --f-display: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(0px, 2.5vw, 32px); }
.narrow { max-width: 760px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.mono a:hover { color: var(--fg); }
.textlink { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.textlink:hover { border-bottom-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand b { font-weight: 600; color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.nav a.l { font-size: 14px; color: var(--fg-dim); transition: color .2s; }
.nav a.l:hover, .nav a.l[aria-current="page"] { color: var(--fg); }
.langsw { font: 500 11px var(--f-mono); letter-spacing: .08em; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--fg-dim); transition: color .2s, border-color .2s; }
.langsw:hover { color: var(--fg); border-color: var(--fg-dim); }
@media (max-width: 680px) { .nav a.l { display: none; } .nav a.l[href*="contact"] { display: inline; } }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 14px var(--f-body); padding: 11px 20px; border: 1px solid var(--fg); border-radius: 999px; background: none; color: var(--fg); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.solid { background: var(--fg); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 7.2vw, 96px); line-height: 1; max-width: 14ch; }
.sub { margin-top: 26px; max-width: 54ch; color: var(--fg-dim); font-size: clamp(16px, 1.6vw, 19px); font-weight: 300; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; max-width: 52ch; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.frame {
  position: relative; margin-top: clamp(36px, 5vw, 64px); width: 100%;
  aspect-ratio: 2.39 / 1; min-height: 190px; overflow: hidden; border-radius: 2px;
  background:
    radial-gradient(ellipse 16% 34% at 63% 50%, rgba(246, 200, 150, .6), transparent 72%),
    radial-gradient(ellipse 60% 22% at 63% 50%, rgba(226, 170, 120, .28), transparent 75%),
    linear-gradient(to bottom, #14222b 0%, #284049 34%, #8d7a69 48%, #c79b72 50%, #1f3a44 50.4%, #112229 72%, #070d10 100%);
}
.frame::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; pointer-events: none; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 24%, transparent 70%, rgba(0,0,0,.5)); pointer-events: none; }
.frame.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .hud { position: absolute; z-index: 2; font: 500 11px var(--f-mono); letter-spacing: .1em; color: rgba(255,255,255,.82); text-transform: uppercase; }
.hud.tl { top: 16px; left: 18px; display: flex; align-items: center; gap: 8px; }
.hud.tr { top: 16px; right: 18px; }
.hud.bl { bottom: 16px; left: 18px; }
.hud.br { bottom: 16px; right: 18px; font-variant-numeric: tabular-nums; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #e5584b; animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.corner { position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid rgba(255,255,255,.55); }
.corner.a { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.corner.b { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.corner.c { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.corner.d { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
@media (max-width: 560px) { .hud.tr, .hud.bl { display: none; } }

/* project video */
.frame.video { margin-top: 0; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--bg-2); }
.frame.video.placeholder { background: radial-gradient(120% 90% at var(--x, 70%) var(--y, 30%), var(--a), transparent 62%), linear-gradient(160deg, var(--b), #07090b); }
.frame.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.play { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.play i, .proj .shot i { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); display: grid; place-items: center; transition: background .25s, transform .25s; }
.play i::before, .proj .shot i::before { content: ""; margin-left: 4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.play:hover i { background: #fff; transform: scale(1.06); }
.play:hover i::before { border-left-color: #000; }

/* sections */
section { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
section.tight { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 96px); border-top: 0; }
.pagehead { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.pagehead h1 { font-size: clamp(34px, 6vw, 72px); line-height: 1.02; margin-top: 12px; max-width: 18ch; }
.pagehead .sub { margin-top: 18px; }
.pagehead .lead { margin-top: 22px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2, .two h2, .narrow > h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.05; }
.two h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.filters button { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: none; color: var(--fg-dim); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: color .2s, border-color .2s; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* project grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px); }
.proj { display: block; min-width: 0; }
.proj .shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background-size: cover; background-position: center; background-image: radial-gradient(120% 90% at var(--x, 70%) var(--y, 30%), var(--a), transparent 62%), linear-gradient(160deg, var(--b), #07090b); }
.proj .shot.has-img { background-size: cover; }
.proj .shot::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; }
.proj .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 45%); }
.proj .shot i { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: 34px; height: 34px; }
.proj .shot i::before { margin-left: 3px; border-width: 5px 0 5px 8px; transition: border-color .25s; }
.proj:hover .shot i, .proj:focus-visible .shot i { background: #fff; transform: scale(1.08); }
.proj:hover .shot i::before, .proj:focus-visible .shot i::before { border-left-color: #000; }
.proj .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.proj h3 { font-size: 19px; letter-spacing: -0.01em; }
.proj .meta .mono { white-space: nowrap; }
.proj[hidden] { display: none; }

/* services list */
.services { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 12px 40px; padding-block: 28px; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding-left .25s; }
.svc:hover { padding-left: 10px; }
.svc h3 { font-size: clamp(22px, 2.6vw, 32px); }
.svc p { color: var(--fg-dim); max-width: 52ch; font-weight: 300; }
.svc .arrow { color: var(--accent); }
@media (max-width: 720px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc .arrow { display: none; } }

/* studio / two columns */
.studio, .two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 820px) { .studio, .two { grid-template-columns: minmax(0, 1fr); } }
.studio h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.05; }
.copy { display: grid; gap: 18px; color: var(--fg-dim); font-weight: 300; max-width: 58ch; }
.copy p:first-child { color: var(--fg); font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-weight: 400; }
.copy .lead { color: var(--fg); }
.kit { margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.two .kit { margin-top: 0; }
.kit li { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); list-style: none; }
.kit li span:first-child { color: var(--fg); font-size: 15px; }
.kit a { color: var(--accent); }
.clients { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 28px; font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.01em; color: var(--fg-dim); }
.two .clients { margin-top: 12px; }

/* service page */
.ticks { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ticks li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg) translateY(-30%); }
.prose { color: var(--fg-dim); font-weight: 300; max-width: 60ch; }
details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.narrow > h2 { margin-bottom: 20px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--f-display); font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-family: var(--f-mono); }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--fg-dim); font-weight: 300; max-width: 60ch; }

/* project page */
.pmeta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px 48px; padding-block: 32px; }
@media (max-width: 720px) { .pmeta { grid-template-columns: minmax(0, 1fr); } }
.facts, .credits dl { margin: 0; display: grid; gap: 14px; }
.facts div, .credits dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
dt { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); }
dd { margin: 0; text-align: right; }
.credits h2 { font-size: 22px; margin: 16px 0; }

/* contact */
.contact h2 { font-size: clamp(34px, 6.4vw, 84px); line-height: 1; max-width: 16ch; }
.contact .row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.contact .loc { color: var(--fg-dim); }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
label { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: 400 17px var(--f-body); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #d46a5e; }
.check { display: flex; gap: 10px; align-items: center; font: 400 14px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--fg-dim); }
.check a { color: var(--accent); }
.form .btn { justify-self: start; }
.status { min-height: 1.6em; color: var(--accent); }
.status.err { color: #e08a7f; }
.direct { margin-top: 28px; color: var(--fg-dim); }
.selectable { color: var(--fg); user-select: all; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--fg-dim); font-weight: 300; }
.legal ul { padding-left: 20px; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rec { animation: none; } * { transition: none !important; } }
.direct p { margin-bottom: 14px; }
.direct .facts a { color: var(--fg); }
.foot-links { flex-wrap: wrap; }
.foot-links a[href^="mailto"] { text-transform: none; letter-spacing: 0.02em; }
