/* Layout: a quiet gallery wall. Wide margins, one strong typographic name, work first, words second. */
:root {
  --bg: #eceeec;
  --surface: #f6f7f6;
  --fg: #141716;
  --muted: #646b67;
  --line: #d3d8d5;
  --accent: #345566;
  --display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1280px;
  --logo-filter: none;
  --logo-blend: multiply;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1211; --surface: #171b1a; --fg: #e6e9e7; --muted: #8f9793;
    --line: #2a302e; --accent: #8fb3c4; --logo-filter: invert(1); --logo-blend: screen; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1211; --surface: #171b1a; --fg: #e6e9e7; --muted: #8f9793;
  --line: #2a302e; --accent: #8fb3c4; --logo-filter: invert(1); --logo-blend: screen; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; letter-spacing: -.01em; line-height: 1.08; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { text-decoration: none; display: grid; line-height: 1.1; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .03em; }
.brand span { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav > .dd > button { font: inherit; font-size: 14px; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 8px 12px; cursor: pointer; border-radius: 6px; }
.nav > a:hover, .nav > .dd > button:hover, .nav a[aria-current="page"], .nav .dd.on > button { color: var(--fg); }
.dd { position: relative; }
.dd > button::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 8px; }
.dd-panel { position: absolute; top: calc(100% + 10px); left: -16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; grid-template-columns: repeat(3, max-content); gap: 26px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.35); }
.dd-panel[hidden] { display: none; }
.dd-panel ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.dd-panel a { text-decoration: none; font-size: 14px; display: block; padding: 4px 0; white-space: nowrap; }
.dd-panel a:hover { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; gap: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.lang a { text-decoration: none; color: var(--muted); padding: 6px 6px; border-radius: 4px; }
.lang a[aria-current="true"] { color: var(--fg); background: var(--surface); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 99px; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.icon-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .brand span { display: none; }
}
.mnav { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 16px) max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 32px) max(18px, env(safe-area-inset-left, 0px)); }
.mnav[hidden] { display: none; }
.mnav .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mnav h3 { margin: 22px 0 6px; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav a { text-decoration: none; display: block; padding: 6px 0; font-size: 18px; }
.mnav .big a { font-family: var(--display); font-size: 30px; padding: 6px 0; }
.mnav .lang { margin-top: 28px; font-size: 13px; }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 72px) 40px; display: grid; gap: clamp(28px, 4vw, 44px); }
.hero h1 { font-size: clamp(50px, 10.5vw, 150px); line-height: .9; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero-row { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .hero-row { grid-template-columns: 1.1fr 1fr; } }
.lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; font-weight: 300; max-width: 36ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 14px 14px 0 0; min-width: 0; }
.facts b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.4vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
.facts small { font-size: 13px; color: var(--muted); }
.reel { position: relative; aspect-ratio: 21/9; overflow: hidden; background: var(--surface); container-type: size; }
.reel .yt { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%) scale(1.22); border: 0; }
.reel .yt { opacity: 0; transition: opacity 1.2s ease; }
.reel .yt.playing { opacity: 1; }
.reel .ov { z-index: 2; pointer-events: none; }
.reel .ov a { pointer-events: auto; }
.reel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.reel:hover img { transform: scale(1); }
.reel .ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: clamp(18px, 3vw, 32px); color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.reel .k { font-family: var(--display); font-size: clamp(22px, 3vw, 36px); letter-spacing: .02em; }
.reel .s { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; opacity: .85; margin-bottom: 12px; }
.reel a { display: inline-flex; align-items: center; gap: 12px; background: rgba(15,18,17,.55); color: #fff; backdrop-filter: blur(8px); text-decoration: none; padding: 9px 18px 9px 10px; border-radius: 99px; font-size: 14px; }
.reel a i { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.reel a i::after { content: ""; border-left: 8px solid #141716; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
@media (max-width: 640px) { .reel { aspect-ratio: 4/3; } }

/* sections */
.sec { padding-block: clamp(64px, 9vw, 104px); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 48px); }
.sec-head p { color: var(--muted); max-width: 52ch; }
.more { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--fg); padding-bottom: 2px; }
.more::after { content: "→"; }

/* portfolio index */
.groups { display: grid; gap: 56px; }
.group-h { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c1 { grid-template-columns: 1fr; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards.c3 { grid-template-columns: 1fr; } }
.cards.c2 .ph { aspect-ratio: 16/10; }
.cards.c5 { grid-template-columns: repeat(6, 1fr); }
.cards.c5 > * { grid-column: span 2; }
.cards.c5 > *:nth-child(-n+2) { grid-column: span 3; }
.cards.c5 > *:nth-child(-n+2) .ph { aspect-ratio: 16/10; }
@media (max-width: 1000px) { .cards, .cards.c4, .cards.c5 { grid-template-columns: repeat(2, 1fr); } .cards.c5 > * { grid-column: span 1; } .cards.c5 > *:first-child { grid-column: span 2; } .cards.c5 > *:nth-child(2) .ph { aspect-ratio: 4/3; } }
@media (max-width: 520px) { .cards, .cards.c2, .cards.c4, .cards.c5 { grid-template-columns: 1fr; } .cards.c5 > *:first-child { grid-column: span 1; } }
.card { text-decoration: none; display: grid; gap: 10px; min-width: 0; }
.card .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.cards.c1 .ph { aspect-ratio: 21/8; }
@media (max-width: 640px) { .cards.c1 .ph { aspect-ratio: 4/3; } }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .ph img { transform: scale(1.035); }
.card .ph img[src*="advertising-design/08"] { object-position: 50% 22%; }
.card .ph.logo { display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); }
.card .ph.logo img { width: 60%; height: auto; object-fit: contain; filter: var(--logo-filter); mix-blend-mode: var(--logo-blend); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 { font-size: 17px; letter-spacing: .02em; }

/* gallery: equal tiles, same size and alignment on every screen */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.masonry button { display: block; width: 100%; aspect-ratio: 4/3; margin: 0; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.masonry button:hover img { transform: scale(1.03); }

/* logo grid: uniform tiles, colour follows theme */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos.home { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logos, .logos.home { grid-template-columns: repeat(2, 1fr); } }
.logos.home img { width: 62%; }
.logos > * { aspect-ratio: 1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; place-items: center; background: var(--bg); padding: 0; cursor: zoom-in; border-top: 0; border-left: 0; }
.logos img { width: 78%; height: auto; filter: var(--logo-filter); mix-blend-mode: var(--logo-blend); transition: transform .5s; }
.logos > *:hover img { transform: scale(1.05); }

/* category page */
.cat-head { padding-block: clamp(40px, 6vw, 72px) 36px; display: grid; gap: 24px; }
@media (min-width: 960px) { .cat-head { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; } }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.cat-head h1 { font-size: clamp(38px, 6vw, 80px); letter-spacing: -.02em; margin-top: 14px; }
.cat-text { display: grid; gap: 1em; font-size: clamp(17px, 1.35vw, 19px); max-width: 64ch; }
.cat-text p:first-child { font-size: 1.12em; line-height: 1.5; }
.cat-gallery { padding-bottom: 72px; }
.cat-nav { border-top: 1px solid var(--line); padding-block: 28px 56px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.cat-nav a { text-decoration: none; display: grid; gap: 2px; }
.cat-nav a:last-child { text-align: right; }
.cat-nav b { font-family: var(--display); font-weight: 500; font-size: clamp(16px, 2vw, 22px); }
.cat-nav .mid { font-size: 14px; border-bottom: 1px solid var(--fg); }
@media (max-width: 600px) { .cat-nav { grid-template-columns: 1fr 1fr; } .cat-nav .mid { display: none; } }
.film-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); padding: 12px 24px; border-radius: 99px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--fg); }

/* about */
.about { position: relative; display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 72px) 88px; }
.close-x { position: absolute; top: 18px; right: max(18px, env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg); background: var(--bg); z-index: 5; transition: background .2s, transform .2s; }
.close-x:hover { background: var(--surface); transform: rotate(90deg); }
.close-x svg { width: 20px; height: 20px; }
@media (min-width: 760px) { .close-x { right: max(40px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 960px) { .about { grid-template-columns: 300px 1fr; gap: 72px; } }
.about aside { display: grid; gap: 18px; align-content: start; }
@media (min-width: 960px) { .about aside { position: sticky; top: 96px; } }
.about aside div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.about h1 { font-size: clamp(42px, 7vw, 96px); letter-spacing: -.03em; margin-bottom: 28px; }
.prose { max-width: 66ch; display: grid; gap: 1.1em; font-size: clamp(17px, 1.3vw, 19px); }
.prose .first { font-size: clamp(21px, 2vw, 26px); line-height: 1.45; font-weight: 300; }
.about-teaser { display: grid; gap: 22px; }
@media (min-width: 900px) { .about-teaser { grid-template-columns: 1fr 1fr; gap: 56px; } }
.about-teaser p { font-size: clamp(19px, 1.7vw, 22px); font-weight: 300; line-height: 1.5; }

/* clients */
.clients { columns: 3 260px; column-gap: 40px; list-style: none; margin: 0; padding: 0; }
.clients li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* contact */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 64px; } }
.big-mail { font-family: var(--display); font-size: clamp(26px, 4.2vw, 52px); line-height: 1.05; word-break: break-word; text-decoration: none; display: inline-block; margin-top: 14px; }
.cinfo { display: grid; gap: 18px; margin-top: 30px; }
.cinfo div { display: grid; gap: 2px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.socials a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.socials a:hover { color: var(--fg); }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; width: 100%; }
textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.note { font-size: 13px; color: var(--muted); }
.note.err { color: #b4432f; }

/* payments */
.pay-hero { padding-block: clamp(40px, 6vw, 72px) 48px; display: grid; gap: 22px; }
.pay-hero h1 { font-size: clamp(42px, 7vw, 96px); letter-spacing: -.03em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.steps li { padding: 18px 22px 0 0; display: grid; gap: 6px; counter-increment: s; align-content: start; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 8px; align-content: start; background: var(--surface); }
.plan h3 { font-size: 22px; }
.plan p { color: var(--muted); font-size: 15px; }
.callout { display: grid; gap: 10px; padding: 24px; border-left: 2px solid var(--accent); background: var(--surface); max-width: 760px; }
.callout p { color: var(--muted); }
.secure { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-row p { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.site-foot .wrap { display: grid; gap: 22px; }
.quote { margin: 0; text-align: right; }
@media (max-width: 640px) { .quote { text-align: left; } }
.quote blockquote { margin: 0; font-size: 14px; color: var(--muted); }
@media (min-width: 640px) { .quote blockquote { white-space: nowrap; } }
.copy-line { font-size: 13px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(8,10,9,.95); display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 14px) max(12px, env(safe-area-inset-left, 0px)); color: #d6dbd8; }
.lb[hidden] { display: none; }
.lb .bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; }
.lb .stage { display: grid; place-items: center; min-height: 0; position: relative; }
.lb .stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb .stage img.logo { background: #fff; padding: 4%; }
.lb button { font: inherit; background: none; border: 1px solid #4a514e; color: #fff; border-radius: 99px; padding: 7px 16px; cursor: pointer; font-size: 13px; }
.lb .nav-btns { display: flex; justify-content: center; gap: 10px; padding-top: 10px; }

.reveal { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d2 { animation-delay: .1s; } .reveal.d3 { animation-delay: .2s; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } *, *::before, *::after { transition: none !important; } }
