/* Nadia Rhys — photography and film portfolio concept. Independent of the main site's stylesheet.
   Fonts are self-hosted (SIL OFL, licence in fonts/OFL.txt). */

@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/dm-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F4F3F1;
  --white: #FFFFFF;
  --ink: #161616;
  --ink-2: #444444;
  --muted: #6B6B6B;
  --rule: #D6D4D0;
  --rec: #E0352B;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --wrap: 1520px;
  --gutter: clamp(16px, 3vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink-2); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 104px); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.02; letter-spacing: -0.04em; }
h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; }
p { text-wrap: pretty; }
a { color: inherit; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }
section[id] { scroll-margin-top: 72px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.meta { font: 400 12.5px/1.5 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.meta a { color: var(--muted); text-underline-offset: 3px; }
.meta a:hover { color: var(--ink); }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }
.lead { max-width: 32em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.head p { max-width: 30em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; background: var(--ink); color: #fff; font: 500 15.5px/1 var(--sans); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: background 0.15s; }
.btn:hover { background: #333; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.textlink:hover { text-decoration-color: var(--rec); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Concept bar ---------- */
.concept-bar { background: var(--ink); color: #B8B8B8; font-size: 13px; }
.concept-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.concept-bar a { color: #fff; text-underline-offset: 3px; }
.concept-bar nav { display: flex; gap: 20px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(244 243 241 / 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.wordmark-name { font: 650 21px/1 var(--sans); letter-spacing: -0.03em; }
.wordmark-sub { font: 400 12.5px/1 var(--mono); color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15.5px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--muted); }
.nav a[aria-current]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }
.nav .nav-book { padding: 0 16px; min-height: 44px; background: var(--ink); color: #fff; }
.nav .nav-book:hover { background: #333; color: #fff; }
.header-book { display: none; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; background: none; border: 0; font: 500 15px var(--sans); color: var(--ink); cursor: pointer; }
.menu-toggle-bars { position: relative; width: 20px; height: 1.5px; background: currentColor; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; transition: transform 0.2s; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 819px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-header .wrap { flex-wrap: wrap; column-gap: 12px; }
  .js .header-book { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 16px; background: var(--ink); color: #fff; font: 500 15px var(--sans); text-decoration: none; }
  .js .site-header .wordmark-sub { display: none; }
  .js .nav { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 20px; }
  .js .nav.is-open { display: flex; }
  .js .nav a { min-height: 56px; font-size: 22px; letter-spacing: -0.02em; border-bottom: 1px solid var(--rule); }
  .js .nav .nav-book { display: none; }
}

/* ---------- Hero: three stills ---------- */
.hero-stills { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
.hero-stills::-webkit-scrollbar { display: none; }
.hero-stills figure { scroll-snap-align: start; min-width: 0; }
.hero-stills img { width: 100%; height: clamp(340px, 56vh, 520px); object-fit: cover; }
.hero-stills figcaption { padding-top: 8px; }
.hero-stills:focus-visible { outline-offset: -2px; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 64px; align-items: end; padding-top: clamp(24px, 4vw, 56px); }
.hero-text h1 { font-size: clamp(36px, 5.2vw, 84px); max-width: 11em; }
.hero-text .lead { max-width: 28em; }
@media (min-width: 760px) {
  .hero-stills { grid-auto-flow: row; grid-template-columns: 4fr 5fr 4fr; overflow: visible; padding: 0; }
  .hero-stills img { height: min(62vh, 680px); min-height: 400px; }
  .hero-stills figcaption { padding: 8px var(--gutter) 0; }
  .hero-stills figure:not(:first-child) figcaption { padding-left: 12px; }
}
@media (min-width: 960px) { .hero-text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- Work grid (home) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.mosaic figure { grid-column: span 12; }
.mosaic img { width: 100%; object-fit: cover; }
.mosaic figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-top: 10px; }
.mosaic figcaption b { font: 500 15px/1.4 var(--sans); color: var(--ink); }
@media (min-width: 760px) {
  .mosaic .m-a { grid-column: span 7; }
  .mosaic .m-b { grid-column: span 5; }
  .mosaic .m-c { grid-column: span 4; }
  .mosaic .m-d { grid-column: span 4; }
  .mosaic .m-e { grid-column: span 4; }
  .m-a img { aspect-ratio: 4 / 5; }
  .m-b img { aspect-ratio: 4 / 7; } /* same height as the wider 4:5 image beside it (5/7 of its width) */
  .m-c img, .m-d img, .m-e img { aspect-ratio: 3 / 4; }
}
@media (max-width: 759px) {
  .mosaic .m-c, .mosaic .m-d { grid-column: span 6; }
  .m-c img, .m-d img { aspect-ratio: 3 / 4; }
  .m-c figcaption .meta, .m-d figcaption .meta { flex-basis: 100%; }
}

/* ---------- Services teaser ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.services li { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) { .services li + li { padding-left: 24px; border-left: 1px solid var(--rule); } }
.services h3 { margin: 10px 0 8px; }
.services p { font-size: 16px; }
.services .from { display: block; margin-top: 16px; font: 400 13px var(--mono); color: var(--ink); }
.clients { margin-top: 20px; max-width: 60em; }
.section-flush { padding-top: 0; }

/* ---------- Booking band ---------- */
.band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 64px; align-items: end; padding: clamp(32px, 5vw, 64px); background: var(--ink); color: #BDBDBD; }
.band h2 { color: #fff; max-width: 12em; }
.band .meta { color: #A5A5A5; }
@media (min-width: 960px) { .band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- Work page gallery ---------- */
.page-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-head h1 { margin: 14px 0 20px; font-size: clamp(44px, 6vw, 92px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters[hidden] { display: none; }
.filters button { min-height: 44px; padding: 0 16px; background: transparent; border: 1px solid var(--rule); font: 400 13px var(--mono); color: var(--ink); cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.groups { display: grid; gap: clamp(48px, 6vw, 88px); padding-bottom: clamp(32px, 5vw, 64px); }
.group[hidden] { display: none; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 14px; margin-bottom: clamp(18px, 2vw, 28px); border-top: 1px solid var(--ink); }
.group-head h2 { font-size: clamp(26px, 2.6vw, 38px); }
/* Rows: each figure grows in proportion to its aspect ratio (--r), so the pictures in a row share one height.
   Below 760px the rows stack into a single column. */
.gallery { display: grid; gap: clamp(18px, 2vw, 28px); }
.row { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 28px) clamp(10px, 1.4vw, 20px); }
.row figure { min-width: 0; }
@media (min-width: 760px) {
  .row { flex-direction: row; }
  .row figure { flex: var(--r) 1 0; }
}
.gallery-link { display: block; position: relative; cursor: zoom-in; }
.gallery-link img { width: 100%; height: auto; transition: opacity 0.2s; }
.gallery-link:hover img { opacity: 0.88; }
.gallery figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-top: 10px; }
.gallery figcaption b { font: 500 15px/1.4 var(--sans); color: var(--ink); }
.film-card .gallery-link { cursor: pointer; }
.row .film-card { flex: 0 1 960px; }
.play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: rgb(0 0 0 / 0.62); color: #fff; font: 400 13px var(--mono); }
.play-dot { width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.gallery-link:hover .play { background: var(--rec); }

/* Lightbox (JS) */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; background: rgb(10 10 10 / 0.97); color: #DADADA; border: 0; }
.lightbox::backdrop { background: rgb(10 10 10 / 0.97); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter); font: 400 13px var(--mono); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-stage video { width: 100%; background: #000; }
.lb-stage [hidden] { display: none; }
.lb-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 14px var(--gutter) 18px; font: 400 13px/1.5 var(--mono); }
.lb-caption b { font: 500 16px var(--sans); color: #fff; }
.lb-caption a { color: #DADADA; text-underline-offset: 3px; }
.lb-btn { min-width: 44px; min-height: 44px; padding: 0 14px; background: transparent; color: #fff; border: 1px solid #555; font: 400 13px var(--mono); cursor: pointer; }
.lb-btn:hover { border-color: #fff; }
.lb-nav { display: flex; gap: 8px; }

/* ---------- Services page ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 56px; padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--ink); }
.offer:last-child { border-bottom: 1px solid var(--ink); }
.offer-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.offer-media.tall img { aspect-ratio: 4 / 5; }
.offer-media.wide img { aspect-ratio: 16 / 9; }
.offer h2 { margin: 10px 0 16px; font-size: clamp(30px, 3vw, 44px); }
.offer ul { margin-top: 20px; border-top: 1px solid var(--rule); }
.offer li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.offer li span:last-child { font: 400 13px var(--mono); color: var(--muted); text-align: right; }
.offer .price { margin-top: 20px; font: 400 15px var(--mono); color: var(--ink); }
.offer .price b { font: 600 32px/1 var(--sans); letter-spacing: -0.03em; }
@media (min-width: 960px) { .offer { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px 28px; counter-reset: s; }
.steps li { padding-top: 16px; border-top: 1px solid var(--ink); counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; margin-bottom: 14px; font: 400 13px var(--mono); color: var(--rec); }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 16px; }

.licence { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 64px; padding: clamp(28px, 4vw, 56px); background: var(--white); }
.licence dl { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.licence dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.licence dt { font-weight: 500; color: var(--ink); }
.licence dd { font-size: 16px; }
@media (min-width: 960px) { .licence { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; font: 400 12.5px var(--mono); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 0; background: transparent; color: var(--ink); font: 400 17px var(--sans); border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rec); box-shadow: 0 1.5px 0 var(--rec); }
.free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.free div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.free div + div { padding-left: 12px; border-left: 1px solid var(--rule); }
.free dt { font: 400 12.5px var(--mono); color: var(--muted); }
.free dd { margin-top: 4px; font-weight: 500; color: var(--ink); }
.free-note { margin-top: 8px; }
.quote { margin: 0 0 16px; padding-left: 18px; border-left: 2px solid var(--rec); }
.quote p { font-size: 18px; line-height: 1.5; color: var(--ink); }
.quote footer { margin-top: 10px; }
.booking { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 80px; }
@media (min-width: 960px) {
  .booking { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; }
  .booking > .form { grid-column: 2; grid-row: 1 / span 2; }
  .booking-proof { grid-column: 1; grid-row: 2; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; background: var(--ink); color: #9C9C9C; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark-sub { color: #9C9C9C; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid #333; }
.footer-grid h4 { margin-bottom: 10px; font: 400 12.5px var(--mono); color: #8A8A8A; }
.footer-grid li { padding: 4px 0; }
.footer-grid p { margin-top: 16px; max-width: 26em; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 22px; font-size: 13px; }

/* ---------- Concept dialog ---------- */
.concept-dialog { max-width: min(460px, calc(100% - 32px)); margin: auto; padding: 32px 28px 26px; background: var(--paper); color: var(--ink-2); border: 0; }
.concept-dialog::backdrop { background: rgb(0 0 0 / 0.6); }
.concept-dialog h2 { margin-bottom: 12px; font-size: 30px; }
.concept-dialog p { margin-bottom: 22px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dialog-close { min-height: 44px; background: none; border: 0; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mt { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
