/* ==========================================================================
   Redroom Recording Studio — Onepager
   ========================================================================== */

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

:root {
  --paper: #d9d2c7;
  --paper-2: #cec6b9;
  --paper-3: #e6e0d6;
  --ink: #15120f;
  --ink-soft: #4b443d;
  --line: rgba(21, 18, 15, .18);
  --red: #a3222a;
  --red-bright: #d23a3f;
  --dark: #15120f;
  --dark-2: #1f1b17;
  --on-dark: #ece6dc;
  --on-dark-soft: #a9a196;
  --line-dark: rgba(236, 230, 220, .16);

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1280px;
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--red-bright); }
p { max-width: 62ch; }
.lead { font-family: var(--sans); font-size: clamp(1.35rem, 2.6vw, 2.15rem); line-height: 1.25; letter-spacing: -.01em; font-weight: 500; max-width: 28ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid currentColor;
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; background: transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.btn svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); color: #fff;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0)); transition: opacity .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(217, 210, 199, .92); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header .wrap { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: block; position: relative; height: 52px; width: 83px; flex: none; }
.brand img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .3s; }
.brand .logo-dark { opacity: 0; }
.is-scrolled .brand .logo-light, .menu-open .brand .logo-light { opacity: 0; }
.is-scrolled .brand .logo-dark, .menu-open .brand .logo-dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__links a {
  font-family: var(--sans); font-weight: 500; font-size: 15px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { background-size: 100% 1.5px; }

.lang { display: inline-flex; border: 1.5px solid currentColor; border-radius: 999px; overflow: hidden; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.lang button { background: none; border: 0; padding: 5px 10px; cursor: pointer; letter-spacing: .08em; opacity: .55; transition: opacity .2s, background-color .2s, color .2s; }
.lang button[aria-pressed="true"] { opacity: 1; background: currentColor; }
.lang button[aria-pressed="true"] span { color: var(--paper); }
.site-header:not(.is-scrolled):not(.menu-open) .lang button[aria-pressed="true"] span { color: var(--ink); }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100svh - var(--header-h));
    flex-direction: column; gap: 0; padding: 24px var(--gutter) 40px;
    background: var(--paper); color: var(--ink);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links a { display: block; padding: 16px 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; background: none; }
  .menu-open { background: var(--paper); color: var(--ink); }
  .menu-open::before { opacity: 0; }
  .menu-open .nav__links { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: max(600px, 100svh); display: flex; align-items: flex-end; color: #fff; background: var(--dark); overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { object-position: 50% 55%; transform: scale(1.04); animation: hero-in 2.4s var(--ease) forwards; }
@keyframes hero-in { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,10,8,.82) 0%, rgba(12,10,8,.35) 42%, rgba(12,10,8,0) 70%),
    linear-gradient(to right, rgba(12,10,8,.35), rgba(12,10,8,0) 60%);
}
.hero__content { position: relative; z-index: 1; padding-block: 0 clamp(36px, 7vh, 80px); width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { font-size: clamp(3.1rem, 10.5vw, 9.6rem); line-height: .9; letter-spacing: -.035em; margin: 18px 0 22px; text-wrap: balance; }
.hero h1 .thin { font-weight: 400; }
.hero__tagline { font-family: var(--sans); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 400; margin-bottom: 30px; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll {
  position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(36px, 7vh, 80px);
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; opacity: .8;
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ""; width: 1.5px; height: 56px; background: currentColor; transform-origin: top; animation: scroll-line 2.2s var(--ease) infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(80px, 12vw, 160px); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .muted { color: var(--ink-soft); }
.section--dark .eyebrow { color: var(--red-bright); }
.section--alt { background: var(--paper-3); }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section__head--split { grid-template-columns: 1.1fr .9fr; gap: 48px; } }

/* --- Intro --------------------------------------------------------------- */
.intro { display: grid; gap: clamp(36px, 6vw, 80px); }
@media (min-width: 900px) { .intro { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.intro__body p + p { margin-top: 1.1em; }
.intro__body .btn { margin-top: 30px; }

/* --- Gallery (rooms) ----------------------------------------------------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin-bottom: 14px; }
.gallery__item { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; }
.gallery__item img { width: 100%; transition: transform .9s var(--ease); }
.gallery__item:hover img { transform: scale(1.035); }
.gallery__item figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(21,18,15,.72); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}

/* --- Gear ---------------------------------------------------------------- */
.gear { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 1000px) { .gear { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.gear__media { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .gear__media { position: sticky; top: calc(var(--header-h) + 24px); } }
.gear__media figure { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.gear__media figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gear__media figure:not(:first-child) { aspect-ratio: 1 / 1; }
.gear__media img { width: 100%; height: 100%; object-fit: cover; }
.spec { border-top: 1px solid var(--line); }
.spec__row { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .spec__row { grid-template-columns: 150px 1fr; } }
.spec__row dt { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.spec__row dd { font-family: var(--sans); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.5; }
.spec__row dd ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
.spec__row dd ul + ul { margin-top: 10px; }
.spec__row dd li:not(:last-child)::after { content: "·"; margin: 0 .6em; color: var(--ink-soft); }
.spec__row dd .note { color: var(--ink-soft); }

/* --- References ---------------------------------------------------------- */
.refs { border-top: 1px solid var(--line); }
.refs li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.refs__name { font-family: var(--sans); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; transition: color .25s, transform .4s var(--ease); }
.refs li:hover .refs__name { color: var(--ink-soft); transform: translateX(6px); }
.refs__note { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* --- Pricing ------------------------------------------------------------- */
.pricing { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.1fr 1fr; } }
.price { font-family: var(--sans); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--ink); white-space: nowrap; }
.price__label { margin-top: 12px; color: var(--ink-soft); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.pricing__text p + p { margin-top: 1em; }
.pricing__text .btn { margin-top: 28px; }

/* --- Contact ------------------------------------------------------------- */
.contact { display: grid; gap: clamp(48px, 7vw, 96px); }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.15fr; } }
.contact__info address { font-style: normal; }
.contact__list { border-top: 1px solid var(--line); margin-top: 36px; }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.contact__list .v { font-family: var(--sans); font-size: 1.15rem; }
.contact__list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }

.form { display: grid; gap: 22px; align-content: start; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--line);
  padding: 10px 0 12px; font-family: var(--sans); font-size: 1.15rem; color: var(--on-dark); border-radius: 0; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-bright); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; }
.form__hint { font-size: 12px; color: var(--ink-soft); max-width: 42ch; }


/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--paper-2); color: var(--ink-soft); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 13px; }
.site-footer .wrap { display: grid; gap: 32px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: end; } }
.site-footer img { height: 64px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* --- Lightbox ------------------------------------------------------------ */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 8, 6, .94); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px var(--gutter); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 128px); width: auto; height: auto; border-radius: 8px; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: var(--on-dark); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; max-width: none; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); width: 48px; height: 48px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

/* --- Legal pages --------------------------------------------------------- */
.legal { padding: calc(var(--header-h) + 64px) 0 120px; }
.legal h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 40px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 48px 0 14px; letter-spacing: -.01em; }
.legal p, .legal li { max-width: 75ch; }
.legal p + p { margin-top: .9em; }

/* --- Reveal on scroll ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Contact image */
.contact__media { border-radius: var(--radius); overflow: hidden; align-self: start; }
.contact__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Social icons */
.social { display: flex; gap: 12px; margin-top: 28px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease); }
.social a:hover { background: var(--ink); color: var(--paper); }
.social svg { width: 20px; height: 20px; }
.site-footer .social { margin: 0; gap: 6px; }
.site-footer .social a { width: 34px; height: 34px; border-color: var(--line); color: var(--ink-soft); }
.site-footer .social a:hover { border-color: var(--ink); }
.site-footer .social svg { width: 16px; height: 16px; }
.site-footer nav { align-items: center; }
