/* ATC Media: film leader world. Ink ground, warm-white type, one leader red. */

@font-face {
	font-family: "Archivo";
	src: url("https://cdn.jsdelivr.net/fontsource/fonts/archivo:vf@latest/latin-wdth-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "Schibsted Grotesk";
	src: url("https://cdn.jsdelivr.net/fontsource/fonts/schibsted-grotesk:vf@latest/latin-wght-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-display: swap;
}

:root {
	--ink: #0d0d0d;
	--wash: 13, 13, 13; /* ink as r, g, b for translucent washes */
	--ink-2: #181817;
	--paper: #ece9e2;
	--red: #d93a2b;
	--grey: #a4aeb0;
	--line: rgba(236, 233, 226, 0.26);
	--gut: clamp(1.25rem, 5vw, 4.5rem);
	--rail: 0px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--display: "Archivo", "Arial Narrow", sans-serif;
	--body: "Schibsted Grotesk", system-ui, sans-serif;
}
@media (min-width: 900px) {
	:root { --rail: 34px; }
}

html {
	background: var(--ink);
	color: var(--paper);
	color-scheme: dark;
	scroll-behavior: smooth;
	scrollbar-color: var(--red) var(--ink);
	scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
body {
	margin: 0;
	background: var(--ink);
	font-family: var(--body);
	font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.25rem);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
::selection { background: var(--red); color: var(--ink); }
a { color: inherit; text-underline-offset: 0.25em; }
:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: 4px;
	box-shadow: 0 0 0 5px var(--ink);
}
.atc, .atc *, .atc *::before, .atc *::after { box-sizing: border-box; }
.atc { position: relative; overflow-x: clip; }
.leader p { margin: 0; }
.skip {
	position: fixed; left: 1rem; top: -4rem; z-index: 100;
	background: var(--paper); color: var(--ink); padding: 0.75rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }
main:focus { outline: 0; box-shadow: none; }

.disp {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 62%;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 0.92;
	text-wrap: balance;
	margin: 0;
}
.lead { font-size: clamp(1.1875rem, 0.9vw + 1rem, 1.5rem); line-height: 1.45; max-width: 36rem; margin: 0; text-wrap: pretty; }

/* Texture: grain over everything, sprocket rails down the sides on wide screens. */
.grain {
	position: fixed; inset: -10%; z-index: 90; pointer-events: none; opacity: 0.06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 900px) {
	.grain { animation: grain 0.9s steps(6) infinite; }
}
@keyframes grain {
	0% { transform: translate(0, 0); }
	20% { transform: translate(-4%, 3%); }
	40% { transform: translate(3%, -5%); }
	60% { transform: translate(-6%, -2%); }
	80% { transform: translate(5%, 4%); }
	100% { transform: translate(0, 0); }
}
.rail { display: none; }
@media (min-width: 900px) {
	.rail {
		display: block; position: fixed; top: 0; bottom: 0; width: var(--rail); z-index: 30;
		background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='34'%3E%3Crect x='3' y='10' width='12' height='14' rx='3' fill='%23ece9e2' fill-opacity='.18'/%3E%3C/svg%3E") repeat-y center top / 18px 34px;
	}
	.rail--l { left: 0; border-right: 1px solid var(--line); }
	.rail--r { right: 0; border-left: 1px solid var(--line); }
}

/* Countdown leader */
.count {
	position: fixed; inset: 0; z-index: 70; display: none; place-items: center;
	background: rgba(var(--wash), 0.92);
	clip-path: circle(150% at 50% 50%);
}
.js.counting .count { display: grid; animation: failsafe-hide 0.01s 6s forwards; }
.count svg { width: min(78vmin, 32rem); height: auto; }
.count .ring { fill: none; stroke: var(--paper); stroke-width: 2; }
.count .ring--in { stroke: var(--grey); stroke-width: 1; }
.count .cross { stroke: var(--grey); stroke-width: 1; }
.count .sweep { fill: rgba(236, 233, 226, 0.16); transform-origin: 200px 200px; animation: sweep 1s linear infinite; }
.count .n {
	font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 190px;
	fill: var(--paper); text-anchor: middle; transform-box: fill-box; transform-origin: center;
}
.count .n.tick { animation: tick 0.55s var(--ease); }
.count.is-out { clip-path: circle(0% at 50% 50%); transition: clip-path 0.7s var(--ease); }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes tick { from { transform: scale(1.2); fill: var(--red); } to { transform: scale(1); fill: var(--paper); } }
@keyframes failsafe-hide { to { opacity: 0; visibility: hidden; } }
@keyframes failsafe-show { to { clip-path: inset(0); transform: none; opacity: 1; } }

/* Header and hud. The band is a dark wash so type stays readable over any video frame. */
.bar {
	position: fixed; inset: 0 0 auto; z-index: 40;
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
	padding: 0.5rem calc(var(--gut) + var(--rail));
	background: rgba(var(--wash), 0.72);
	transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
	border-bottom: 1px solid transparent;
}
.bar.is-solid { background: var(--ink); border-bottom-color: var(--line); }
.mark {
	font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: 1.5rem;
	text-transform: uppercase; text-decoration: none; letter-spacing: 0;
	display: inline-flex; align-items: center; min-height: 44px;
}
.nav { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.75rem); margin-inline: auto; }
.nav a {
	display: none; align-items: center; min-height: 44px; padding: 0 0.25rem;
	text-decoration: none; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em;
	border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-on { border-bottom-color: var(--red); }
.nav .nav__cta { display: inline-flex; border: 1px solid var(--paper); padding: 0 1rem; }
.nav .nav__cta:hover, .nav .nav__cta.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (min-width: 760px) { .nav a { display: inline-flex; } }
.hud { display: flex; align-items: center; gap: 0.75rem; }
.dot, .tc { display: none; }
@media (min-width: 1100px) { .dot, .tc { display: inline-block; } }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--red); }
.tc { font-variant-numeric: tabular-nums; font-size: 0.9375rem; color: var(--paper); letter-spacing: 0.04em; min-width: 6.5em; }
.pause {
	font: 600 0.875rem var(--body); letter-spacing: 0.02em; color: var(--paper);
	background: rgba(var(--wash), 0.6); border: 1px solid var(--paper);
	min-height: 44px; min-width: 44px; padding: 0 0.9rem; cursor: pointer;
}
.pause:hover { background: var(--paper); color: var(--ink); }

/* Scenes: full-viewport video with a flat ink wash and viewfinder ticks */
.scene {
	position: relative; display: flex; min-height: 100svh; overflow: clip; isolation: isolate;
	padding: 6rem calc(var(--gut) + var(--rail)) var(--gut);
}
.scene__video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
	transform: translate3d(0, calc(var(--shift, 0) * 1px), 0) scale(1.08);
	background: var(--ink-2);
}
.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(var(--wash), 0.4); }
.leader__copy, .reel__copy { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6); }
.scene::after {
	--t: rgba(236, 233, 226, 0.7);
	content: ""; position: absolute; z-index: 1; pointer-events: none;
	inset: calc(4.5rem) calc(var(--rail) + clamp(0.75rem, 2vw, 1.5rem)) clamp(0.75rem, 2vw, 1.5rem);
	background:
		linear-gradient(var(--t), var(--t)) top left / 26px 1px no-repeat,
		linear-gradient(var(--t), var(--t)) top left / 1px 26px no-repeat,
		linear-gradient(var(--t), var(--t)) top right / 26px 1px no-repeat,
		linear-gradient(var(--t), var(--t)) top right / 1px 26px no-repeat,
		linear-gradient(var(--t), var(--t)) bottom left / 26px 1px no-repeat,
		linear-gradient(var(--t), var(--t)) bottom left / 1px 26px no-repeat,
		linear-gradient(var(--t), var(--t)) bottom right / 26px 1px no-repeat,
		linear-gradient(var(--t), var(--t)) bottom right / 1px 26px no-repeat;
}
.leader { align-items: flex-end; }
.leader__copy { max-width: 66rem; display: grid; gap: 1.5rem; padding-bottom: 1.5rem; position: relative; z-index: 2; }
.leader h1 { font-size: clamp(3rem, 9.4vw, 6rem); }
.reel__copy { position: relative; z-index: 2; display: grid; gap: 1.25rem; max-width: 40rem; align-self: flex-end; padding-bottom: 1.5rem; }
.reel h2 { font-size: clamp(3.25rem, 11vw, 6rem); }
.reel p { margin: 0; }
.reel--photo { justify-content: flex-end; }
.reel--web { align-items: center; }
.reel--web .reel__copy { align-self: center; }

/* Actions */
.btn {
	display: inline-flex; align-items: center; gap: 0.75rem;
	padding: 1rem 1.6rem; background: var(--paper); color: var(--ink);
	font: 700 1.125rem var(--body); letter-spacing: 0.01em; text-decoration: none; border: 0; cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
	transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.8); }
.btn:active { transform: translateY(0); }
.btn .arrow, .link .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }
.link {
	display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.125rem;
	text-decoration: none; min-height: 44px; border-bottom: 2px solid var(--red);
}
.link:hover { border-bottom-color: var(--paper); }

/* One person, whole job */
.one {
	display: grid; gap: clamp(2rem, 5vw, 4rem);
	padding: clamp(5rem, 12vw, 9rem) calc(var(--gut) + var(--rail));
	background: var(--ink);
}
.one h2 { font-size: clamp(3.25rem, 11vw, 6rem); }
@media (min-width: 1000px) {
	.one { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
	.one h2 { position: sticky; top: 7rem; }
}
.one__body { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li {
	display: grid; gap: 0.25rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
@media (min-width: 640px) { .steps li { grid-template-columns: 9rem 1fr; } }
.steps .disp { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.steps p { margin: 0; color: var(--grey); max-width: 32rem; }

/* Enquiry */
.enquire { align-items: center; }
.enquire::before { background: rgba(var(--wash), 0.74); }
.enquire__grid {
	position: relative; z-index: 2; width: 100%; max-width: 78rem; margin-inline: auto;
	display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (min-width: 1000px) { .enquire__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.enquire h2 { font-size: clamp(3.25rem, 9vw, 6rem); }
.enquire__intro { display: grid; gap: 1.25rem; }
.form {
	display: grid; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem);
	background: var(--ink); border: 1px solid var(--line);
}
.form__note { margin: 0; color: var(--grey); font-size: 0.9375rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.field label span { font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
	font: 500 1.1875rem/1.4 var(--body); color: var(--paper); background: transparent; caret-color: var(--red);
	border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0.7rem 0; width: 100%; box-sizing: border-box;
	min-height: 44px; transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
	appearance: none; cursor: pointer; padding-right: 2rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M2 5l6 6 6-6' fill='none' stroke='%23ece9e2' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.25rem center;
}
.field select option { background: var(--ink); color: var(--paper); }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--grey); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; box-shadow: none; border-bottom: 2px solid var(--paper); margin-bottom: -1px; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-weight: 600; min-height: 0; }
.status:focus { outline: 0; }
.status:empty { display: none; }
.status--sent { padding: 0.9rem 1rem; background: var(--paper); color: var(--ink); }
.status:not(.status--sent):not(:empty) { padding: 0.9rem 1rem; border: 1px solid var(--red); }
.btn--send { justify-self: start; }
.btn--send:focus-visible { outline-offset: 4px; }

.foot {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
	padding: 1rem calc(var(--gut) + var(--rail)); border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--grey);
}
.foot p { margin: 0; display: flex; align-items: center; gap: 1.5rem; min-height: 44px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.form__note a { text-decoration-thickness: 1px; }

/* Plain templates (404, posts, pages): same world, with a way back. */
.plainbar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 0.5rem var(--gut); border-bottom: 1px solid var(--line); background: var(--ink);
}
.plainbar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.plainbar a:first-child { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: 1.5rem; text-transform: uppercase; }
.plainbar a:last-child { border: 1px solid var(--paper); padding: 0 1rem; }
.plainbar a:last-child:hover { background: var(--paper); color: var(--ink); }
.atc-plain { padding: 5rem var(--gut) 5rem; }
.atc-plain h1 { font-family: var(--display); font-stretch: 62%; text-transform: uppercase; font-size: clamp(3rem, 9vw, 6rem); line-height: 0.95; }

/* Motion: content is visible by default; these states only exist when JS is running. */
.js .reel:not(.in) .rise, .js .enquire:not(.in) .rise { opacity: 0; }
.js .reel--video:not(.in) .rise { clip-path: inset(0 100% 0 0); }
.js .reel--photo:not(.in) .rise { clip-path: circle(0 at 0 100%); }
.js .reel--web:not(.in) .rise { clip-path: inset(0 0 100% 0); }
.reel .rise { transition: clip-path 0.95s var(--ease), opacity 0.4s var(--ease); }
.reel .rise--2 { transition-delay: 0.12s; }
.reel .rise--3 { transition-delay: 0.24s; }

.js.counting .leader:not(.is-live) .rise {
	clip-path: inset(0 0 100% 0); transform: translateY(0.5em); opacity: 0;
	animation: failsafe-show 0.01s 6s forwards;
}
.leader .rise { transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease), opacity 0.5s var(--ease); }
.leader .rise--2 { transition-delay: 0.14s; }
.leader .rise--3 { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
	.grain, .count .sweep { animation: none; }
	.scene__video { transform: scale(1.02); }
	.reel .rise, .leader .rise { transition: none; }
	.btn, .btn:hover { transform: none; }
}
@media (max-width: 480px) {
	.scene { padding-top: 5rem; }
	.scene::after { inset: 4rem 0.75rem 0.75rem; }
	.mark { font-size: 1.25rem; }
}
