/* =========================================================
   Naturtalent Studio — theme styles
   Ported from the Next.js + Tailwind prototype.
   Design tokens, layout primitives, components, page rules.
   ========================================================= */

:root {
  --ink: #FFFFFF;
  --paper: #000000;
  --panel: #1A1A1A;
  --panel-deep: #222222;
  --muted: #A8ADB8;
  --line: #333333;

  /* Accent — warm sand/beige, used sparingly on small detail elements
     (eyebrows, labels, hover states) to give the B/W palette a touch of warmth. */
  --accent: #EED8AE;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  /* Kept for any legacy reference; resolves to the sans stack. */
  --font-display: var(--font-sans);

  --container-max: 1200px;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Approximate sticky-header height. Used to shrink full-viewport sections
     (e.g. .hero) so they don't overflow past the fold. JS keeps this in sync
     with the real header height on resize. */
  --header-h: 70px;
}
@media (min-width: 768px) {
  :root { --header-h: 98px; }
}

html, body { overflow-x: hidden; }

/* --- reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.005em; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p, blockquote, figure, dl, dd { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

/* --- layout primitives --- */
.container-x {
  margin-inline: auto;
  width: 100%;
  max-width: var(--container-max);
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container-x { padding-inline: 48px; }
}

.section { padding-block: 80px; }
@media (min-width: 768px) {
  .section { padding-block: 112px; }
}
.section--tight { padding-block: 64px; }
@media (min-width: 768px) {
  .section--tight { padding-block: 80px; }
}

.bg-paper { background: var(--paper); }
.bg-panel { background: var(--panel); }
.bg-panel-deep { background: var(--panel-deep); }
.bg-ink { background: var(--ink); color: var(--paper); }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* --- typography --- */
.h-display {
  letter-spacing: -1px;
  line-height: 1.2;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.h-italic { font-style: italic; }

.h-2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.h-3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.25; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: 18px;
  max-width: 36rem;
  margin-inline: auto;
}
@media (min-width: 768px) { .lead { font-size: 20px; } }

/* --- buttons --- */
.btn,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 16px;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
  border: 2px solid transparent;
}
.btn {
  background: var(--ink);
  color: var(--paper);
}
.btn:hover { opacity: .9; }
.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-outline:hover { background: var(--paper); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* --- form fields --- */
.field {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
  font-family: inherit;
}
.field::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field:focus { border-color: var(--ink); }
textarea.field { resize: vertical; min-height: 140px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   Header / Footer
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
@media (min-width: 768px) {
  .site-header__inner { padding-block: 32px; }
}

/* Sections targeted by header nav links — leave room for the sticky header. */
.section-anchor { scroll-margin-top: 80px; }
@media (min-width: 768px) {
  .section-anchor { scroll-margin-top: 96px; }
}
.site-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.site-logo__text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.site-logo__dot {
  color: var(--accent);
}
@media (min-width: 768px) {
  .site-logo__text { font-size: 34px; }
}
@media (min-width: 1200px) {
  .site-logo__text { font-size: 38px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) { .site-nav { gap: 44px; } }

/* --- Mobile hamburger --- */
.site-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.site-header__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 768px) {
  .site-header__toggle { display: none; }
}
.site-nav a {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity .2s ease;
}
@media (min-width: 1200px) {
  .site-nav a { font-size: 18px; }
}
.site-nav a:hover { opacity: .65; }
.site-nav a.is-current { opacity: .55; }

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.site-header__cta:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) { .site-header__right { gap: 28px; } }

/* On mobile the right-hand panel becomes a slide-down sheet toggled by
   the hamburger. Default state is hidden; .is-open reveals it below the
   sticky header. */
@media (max-width: 767px) {
  .site-header__right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
  }
  .site-header__right.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header__right .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-header__right .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .site-header__right .site-header__cta {
    margin-top: 16px;
    align-self: flex-start;
  }
  .site-header__right .lang-switcher {
    margin-top: 16px;
    gap: 14px;
  }
  .site-header__right .lang-switcher img {
    width: 24px;
    height: 16px;
  }
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switcher__item a {
  display: block;
  line-height: 0;
  opacity: 0.45;
  transition: opacity .2s ease, transform .2s ease;
  border-radius: 2px;
}
.lang-switcher__item a:hover { opacity: 1; transform: translateY(-1px); }
.lang-switcher__item.is-current a { opacity: 1; outline: 1px solid var(--ink); outline-offset: 2px; }
.lang-switcher img {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  padding-block: 64px;
}
@media (min-width: 768px) {
  .site-footer__inner { padding-block: 88px; }
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}
.site-footer__brand .site-logo { margin-bottom: 20px; }
.site-footer__brand .site-logo__text { font-size: 28px; }
@media (min-width: 768px) {
  .site-footer__brand .site-logo__text { font-size: 32px; }
}
.site-footer__socials {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}
.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}
.site-footer__tagline {
  max-width: 32rem;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.site-footer__heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 20px;
}
.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__list a {
  color: var(--muted);
  font-size: 16px;
  transition: color .2s ease;
}
.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--ink);
}
.site-footer__bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.site-footer__legal { opacity: 0.8; }
.site-footer__legal a {
  color: inherit;
  text-decoration: none;
}
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

/* =========================================================
   Home — hero
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fill the viewport below the sticky header — using 100vh straight would
     push the bottom edge below the fold because the header takes layout
     space. dvh accounts for mobile browser chrome (URL bar in/out). */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__video iframe {
  pointer-events: none;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vw;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  border: 0;
}
/* Self-hosted MP4 / poster fallback — fills the hero, cropped on the long axis. */
.hero__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* When a mobile-specific reel is provided, show the right one per breakpoint. */
.hero__video-el--mobile { display: none; }
iframe.hero__video-el--mobile {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  /* Cover a portrait 9:16 area without letterboxing. The reel is taller than
     wide, so on a phone we size by viewport height and crop sides; on the
     rare case it's shown wider, min-width pads it out. */
  width: 56.25dvh;
  height: 100dvh;
  min-width: 100%;
  min-height: 100%;
  border: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  .hero__video-el--desktop { display: none; }
  .hero__video-el--mobile  { display: block; }
}
.hero__veil {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero__content--mobile { display: none; }
@media (max-width: 767px) {
  .hero__content--desktop { display: none; }
  .hero__content--mobile  { display: block; }
}
.hero { color: #FFFFFF; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: color-mix(in srgb, #FFFFFF 95%, transparent);
}
.hero__sub { margin-top: 24px; color: color-mix(in srgb, #FFFFFF 80%, transparent); }

/* Rotating multilingual sub-headline. Each variant is stacked in place and
   cross-faded by JS adding .is-active. Optional font classes give each line a
   distinct visual feel without committing to one typographic voice. */
.hero__rotator {
  position: relative;
  margin-top: 12px;
  min-height: 1.6em;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.hero__rotator-item {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .6s ease, transform .6s ease;
}
.hero__rotator-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero__rotator-item.is-font-a { font-family: var(--font-display); font-style: normal; }
.hero__rotator-item.is-font-b { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: 0.01em; }
.hero__rotator-item.is-font-c { font-family: "Courier New", monospace; letter-spacing: 0.08em; text-transform: lowercase; }

.hero__cta { margin-top: 40px; }
.hero .btn-outline { color: #FFFFFF; border-color: #FFFFFF; }
.hero .btn-outline:hover { background: #FFFFFF; color: #000000; }
.hero__tag { margin-top: 40px; color: color-mix(in srgb, #FFFFFF 70%, transparent); }

/* =========================================================
   Home — service tiles (#service)
   ========================================================= */
.service-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--paper);
}
@media (min-width: 768px) {
  .service-tiles { grid-template-columns: repeat(3, 1fr); }
}
.service-tile {
  position: relative;
  display: block;
  overflow: hidden;
  /* Each tile fills the viewport below the sticky header — on mobile they
     stack (3× scroll height), on desktop they sit side-by-side and together
     fill one viewport. */
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: var(--panel-deep);
  color: var(--ink);
  isolation: isolate;
}
.service-tile--no-image {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-deep) 100%);
}
.service-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform .6s ease;
  z-index: 0;
}
.service-tile__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.service-tile__label {
  position: absolute;
  left: 0; right: 0;
  bottom: 8vh;
  z-index: 1;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  transition: transform .4s ease, letter-spacing .4s ease;
}
.service-tile:hover .service-tile__bg,
.service-tile:focus-visible .service-tile__bg { transform: scale(1.08); }
.service-tile:hover .service-tile__label,
.service-tile:focus-visible .service-tile__label {
  transform: translateY(-6px);
  letter-spacing: 0.05em;
}

/* --- Mobile layout (matches jaa.cool reference): hero as a contained,
   rounded card with side margins; service tiles short and stacked with
   labels centered instead of bottom-aligned. --- */
@media (max-width: 767px) {
  .hero {
    margin: 0;
    min-height: 0;
    height: calc(100dvh - var(--header-h));
    border-radius: 0;
    overflow: hidden;
  }
  .hero__title { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .hero__rotator { font-size: 16px; }

  .service-tile {
    /* Three tiles share one fold — each gets a third of the available
       viewport (minus the sticky header) so VIDEO / FOTO / RENTAL all
       fit the screen at once. */
    height: calc((100dvh - var(--header-h)) / 3);
  }
  .service-tile__label {
    top: 50%;
    bottom: auto;
    /* Override the default bottom-aligned label so it sits centered like
       the reference; the hover translate below preserves the lift effect. */
    transform: translateY(-50%);
    font-size: clamp(2rem, 9vw, 3.25rem);
  }
  .service-tile:hover .service-tile__label,
  .service-tile:focus-visible .service-tile__label {
    transform: translateY(calc(-50% - 6px));
  }
}

/* =========================================================
   Home — projects list
   ========================================================= */
.projects-intro { background: var(--paper); padding-top: 80px; padding-bottom: 24px; text-align: center; }
@media (min-width: 768px) { .projects-intro { padding-top: 112px; padding-bottom: 32px; } }
.projects-intro h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
}

.project-list {
  background: var(--ink);
  color: var(--paper);
}
.project-row {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 10%, transparent);
}
.project-row:last-child { border-bottom: 0; }
.project-row__link {
  position: relative;
  display: block;
  overflow: hidden;
}
.project-row__bg {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  transition: opacity .5s ease-out, transform .6s ease;
  background-size: cover;
  background-position: center;
}
.project-row__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2;
}
/* Hover image stack — cycles through preview images on hover (desktop only). */
.project-row__hover-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.project-row__hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .4s ease;
}
@media (hover: hover) {
  .project-row__hover-img.is-shown { opacity: 1; }
}
/* Film-grain overlay rendered via inline SVG feTurbulence (no extra asset). */
.project-row__noise {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.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 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  transition: opacity .35s ease;
  z-index: 1;
}
.project-row.is-active .project-row__noise {
  opacity: 0.55;
  animation: nt-grain 0.7s steps(6) infinite;
}
@keyframes nt-grain {
  0%   { background-position: 0 0; }
  25%  { background-position: -60px 30px; }
  50%  { background-position: 90px -45px; }
  75%  { background-position: -30px 75px; }
  100% { background-position: 0 0; }
}
.project-row__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 56px;
  transition: padding .5s ease-out;
}
@media (min-width: 768px) {
  .project-row__inner { flex-wrap: nowrap; }
}
.project-row__title {
  font-family: var(--font-serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: clamp(2.25rem, 6.2vw, 5.25rem);
  min-width: 0;
  /* Grow via transform — keeps the text layout (line count) stable so
     the row can't suddenly re-wrap mid-transition. Modest scale keeps
     the rasterised glyphs sharp. */
  display: inline-block;
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.project-row__loc {
  font-size: clamp(15px, 1.1vw, 20px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .35s ease, transform .35s ease;
}
.project-row.is-active .project-row__bg { opacity: 1; transform: scale(1.03); }
.project-row.is-active .project-row__inner { padding-block: 112px; }
.project-row.is-active .project-row__title { transform: translateZ(0) scale(1.25); }
.project-row.is-active .project-row__loc { opacity: 0; transform: translateX(8px); }

.project-list__more {
  background: var(--paper);
  text-align: center;
  padding: 40px 16px 64px;
}
.project-list__more-btn {
  display: inline-block;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 24px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.project-list__more-btn:hover,
.project-list__more-btn:focus-visible {
  background: transparent;
  color: var(--ink);
}

/* =========================================================
   Projects archive — Apple-style square tile grid
   ========================================================= */
.projects-archive-intro {
  padding-top: 64px;
  padding-bottom: 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .projects-archive-intro { padding-top: 96px; padding-bottom: 32px; }
}
.projects-archive-intro h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.01em;
}

.projects-archive {
  background: var(--paper);
  padding: 8px;
}
@media (min-width: 768px) {
  .projects-archive { padding: 12px; }
}
.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1200px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}
.project-tile {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 18px;
}
.project-tile::before {
  content: "";
  display: block;
  padding-top: 100%;
}
.project-tile__link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--paper);
}
.project-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.project-tile__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.55) 100%);
}
.project-tile__link:hover .project-tile__bg,
.project-tile__link:focus-visible .project-tile__bg {
  transform: scale(1.04);
}
.project-tile__inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 768px) {
  .project-tile__inner { padding: 22px 24px 24px; }
}
.project-tile__title {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(1.25rem, 2.1vw, 1.875rem);
  letter-spacing: 0.01em;
}
.project-tile__loc {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* =========================================================
   Home — about teaser + CTA + quote
   ========================================================= */
.about-teaser__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-teaser__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.about-teaser h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 3.5vw, 3rem); font-style: italic; }
.about-teaser__body { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; font-size: 16px; }
@media (min-width: 768px) { .about-teaser__body { font-size: 18px; } }
.about-teaser__cta { margin-top: 40px; }

.placeholder-square {
  position: relative;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel-deep);
}
.placeholder-square svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); }

.placeholder-bg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--panel-deep); }

.quote-section { padding-block: 80px; text-align: center; }
@media (min-width: 768px) { .quote-section { padding-block: 112px; } }
.quote-section blockquote {
  margin-inline: auto;
  max-width: 48rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.25;
}
.quote-section .who { margin-top: 32px; }
.quote-section .who-title { color: var(--muted); }

.cta-section { padding-block: 80px; text-align: center; }
@media (min-width: 768px) { .cta-section { padding-block: 112px; } }
.cta-section h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 3.5vw, 3rem); font-style: italic; }
.cta-section p {
  margin: 24px auto 0;
  max-width: 36rem;
  font-size: 16px;
}
@media (min-width: 768px) { .cta-section p { font-size: 18px; } }
.cta-section .cta { margin-top: 40px; }

/* =========================================================
   Page hero (about / contact / rental)
   ========================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--panel);
  padding-block: 96px;
  text-align: center;
}
@media (min-width: 768px) { .page-hero { padding-block: 128px; } }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__eyebrow { margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: -1px;
  line-height: 1.15;
}
.page-hero--accent h1 { color: var(--accent); }
.page-hero__sub {
  margin-top: 24px;
  font-size: 16px;
}
@media (min-width: 768px) { .page-hero__sub { font-size: 18px; } }

/* =========================================================
   About page
   ========================================================= */
.about-block__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-block__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 768px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 3.5vw, 3rem); font-style: italic; }
.contact .blurb { margin-top: 24px; max-width: 28rem; font-size: 16px; }
@media (min-width: 768px) { .contact .blurb { font-size: 18px; } }
.contact__details { margin-top: 48px; display: flex; flex-direction: column; gap: 32px; }
.contact__details dt { font-size: 16px; margin-bottom: 4px; }
.contact__details dd { font-size: 16px; margin: 0; }
.contact__details a:hover { opacity: .7; }

.socials { margin-top: 40px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.socials__link {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transition: opacity .2s ease;
}
.socials__link:hover { opacity: .9; }

.contact__form-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 24px;
}
@media (min-width: 768px) { .contact__form-card { padding: 40px; } }
.contact__form-card h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.contact__form-card .form-wrap { margin-top: 24px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .field { background: var(--paper); }

.form-status {
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 24px;
}
.form-status p { font-size: 20px; }
.form-status p + p { margin-top: 12px; color: var(--muted); }
.form-status--error { border: 1px solid var(--line); }

/* =========================================================
   Rental page
   ========================================================= */
.rental-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .rental-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.rental-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.rental-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--panel-deep);
  transition: filter .5s ease, transform .5s ease;
}
.rental-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.rental-card.is-open .rental-card__media {
  filter: blur(14px);
  transform: scale(1.05);
}
.rental-card__face {
  padding: 24px 24px 32px;
  transition: opacity .5s ease;
}
@media (min-width: 768px) {
  .rental-card__face { padding: 32px 40px 40px; }
}
.rental-card.is-open .rental-card__face { opacity: 0; }
.rental-card__cat { color: var(--muted); }
.rental-card__name { margin-top: 8px; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.2; }
.rental-card__tag { margin-top: 12px; font-size: 16px; color: var(--muted); }
@media (min-width: 768px) { .rental-card__tag { font-size: 18px; } }

.rental-card__details-btn {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: background-color .2s ease, color .2s ease, opacity .3s ease;
}
.rental-card__details-btn:hover { background: var(--ink); color: var(--paper); }
.rental-card.is-open .rental-card__details-btn { opacity: 0; pointer-events: none; }

.rental-card__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
@media (min-width: 768px) { .rental-card__panel { padding: 40px; } }
.rental-card.is-open .rental-card__panel { opacity: 1; pointer-events: auto; }

.rental-card__panel-inner {
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 24px;
}
@media (min-width: 768px) { .rental-card__panel-inner { padding: 32px; } }
.rental-card__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.rental-card__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  background: transparent;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.rental-card__close:hover { background: var(--ink); color: var(--paper); }
.rental-card__price { margin-top: 16px; font-size: 18px; }

.spec-list {
  margin-top: 20px;
  display: grid;
  gap: 8px 24px;
  font-size: 14px;
}
@media (min-width: 768px) { .spec-list { grid-template-columns: 1fr 1fr; } }
.spec-list .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  padding-block: 8px;
}
.spec-list dt { color: var(--muted); }
.spec-list dd { margin-left: 16px; text-align: right; }

.tag-list { margin-top: 20px; }
.tag-list__label { display: block; margin-bottom: 8px; }
.tag-list ul {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 14px;
}
.tag-list li {
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 9999px;
  padding: 4px 12px;
}

.rental-notes { margin-top: 20px; font-size: 14px; color: var(--muted); }
.rental-card__panel .btn { margin-top: 24px; }

/* =========================================================
   Single project page — Jungle River Lodge layout
   ========================================================= */
.project-page { background: var(--paper); color: var(--ink); }

.project-page__head { padding-top: 56px; padding-bottom: 32px; }
@media (min-width: 768px) { .project-page__head { padding-top: 72px; padding-bottom: 40px; } }
.project-page__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.project-page__loc {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
}

.project-page__section { padding-block: 24px; }
@media (min-width: 768px) { .project-page__section { padding-block: 32px; } }

/* Horizontal video frame (16:9) */
.project-page__video-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}
.project-page__video-16x9--poster img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Vertical reel (9:16) — narrow. Used standalone or inside .project-page__reels. */
.project-page__video-9x16 {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}
@media (min-width: 768px) {
  .project-page__video-9x16 { max-width: 420px; }
}

/* Reels grid — multiple 9:16 reels side-by-side, auto-fit. jaa.cool pattern. */
.project-page__reels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
}
@media (min-width: 640px) {
  .project-page__reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-page__reels .project-page__video-9x16 { max-width: 320px; }
}
@media (min-width: 1024px) {
  .project-page__reels[data-count="1"] { grid-template-columns: 1fr; }
  .project-page__reels[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-page__reels[data-count="3"],
  .project-page__reels[data-count="4"],
  .project-page__reels[data-count="5"],
  .project-page__reels[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-page__reels .project-page__video-9x16 { max-width: 340px; }
}

/* Eyebrow label above each media block — small caps, letter-spaced. */
.project-page__eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .project-page__eyebrow { margin-bottom: 20px; }
}

/* Shared video element rules. */
.project-page__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Summary text block. */
.project-page__summary { padding-block: 32px; }
@media (min-width: 768px) { .project-page__summary { padding-block: 48px; } }
.project-page__summary p {
  max-width: 56rem;
  font-size: 16px;
  line-height: 1.7;
}
.project-page__summary p + p { margin-top: 16px; }
@media (min-width: 768px) {
  .project-page__summary p { font-size: 18px; line-height: 1.65; }
}

/* Bilder grid (3-up, becomes 1-up on mobile). */
.project-page__h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 32px;
}
.project-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .project-page__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (min-width: 1024px) {
  .project-page__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
.project-page__grid-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--panel-deep);
}
.project-page__grid-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-page__grid-cell:hover img { transform: scale(1.04); }

/* Credits */
.project-page__credits dl {
  margin: 0 auto;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-page__credits .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
  font-size: 15px;
}
.project-page__credits dt { color: var(--muted); }

/* CTA section */
.project-page__cta { padding-block: 64px; }
@media (min-width: 768px) { .project-page__cta { padding-block: 96px; } }
.project-page__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
@media (min-width: 768px) {
  .project-page__cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
}
.project-page__cta .project-page__h2 {
  text-align: left;
  margin-bottom: 0;
  max-width: 36rem;
}
.project-page__cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.story h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); font-style: italic; }
.chapters { margin-top: 48px; display: flex; flex-direction: column; gap: 64px; }
.chapter {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .chapter { grid-template-columns: 180px 1fr; gap: 48px; }
}
.chapter__num { color: var(--muted); font-size: 14px; }
.chapter__title { margin-top: 4px; font-size: clamp(1.5rem, 2vw, 1.875rem); }
.chapter__body { font-size: 16px; }
@media (min-width: 768px) { .chapter__body { font-size: 18px; } }

.stills h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); font-style: italic; }
.stills__grid {
  margin-top: 40px;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .stills__grid { grid-template-columns: repeat(3, 1fr); }
}
.stills__cell {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--panel);
}
.stills__cell img { width: 100%; height: 100%; object-fit: cover; }

.credits h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); font-style: italic; }
.credits dl { margin-top: 32px; max-width: 36rem; display: flex; flex-direction: column; gap: 12px; }
.credits .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.credits dt { color: var(--muted); }

.next-project {
  padding-block: 80px;
  text-align: center;
}
@media (min-width: 768px) { .next-project { padding-block: 96px; } }
.next-project__label { color: var(--accent); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.next-project__title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  display: block;
}
.next-project__title span { color: var(--muted); }

/* Prev/next bar at the bottom of a project page — pair of buttons, one each side. */
.project-nav-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .project-nav-bar { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.project-nav-bar__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
  min-height: 96px;
}
.project-nav-bar__link--placeholder { visibility: hidden; }
.project-nav-bar__link--next { justify-content: flex-end; text-align: right; }
.project-nav-bar__link:hover { border-color: var(--ink); transform: translateY(-2px); }
.project-nav-bar__icon {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
  color: var(--accent);
}
.project-nav-bar__text { display: flex; flex-direction: column; gap: 4px; }

/* Prev/next arrows pinned to the top corners of the project page — they
   sit statically next to the title, then scroll away with the page (the
   bottom bar takes over once you've scrolled). Hidden on small screens to
   leave the media uncluttered. */
.project-page { position: relative; }
.project-nav-arrow {
  position: absolute;
  top: 32px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  max-width: 240px;
}
@media (min-width: 1024px) {
  .project-nav-arrow { display: inline-flex; top: 56px; }
}
.project-nav-arrow--prev { left: 24px; }
.project-nav-arrow--next { right: 24px; }
.project-nav-arrow:hover {
  background: var(--paper);
  transform: scale(1.02);
}
.project-nav-arrow__icon { font-size: 18px; line-height: 1; color: var(--accent); }
.project-nav-arrow__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 180px;
  overflow: hidden;
}
.project-nav-arrow__eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-nav-arrow__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   Media wall — /foto/ + /video/ pages
   Filterable grid that aggregates stills and clips from every
   project. Tiles link back to the project page.
   ========================================================= */
.media-archive {
  padding-block: 32px 96px;
}
@media (min-width: 768px) {
  .media-archive { padding-block: 48px 128px; }
}

.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-block: 8px 24px;
}
@media (min-width: 768px) {
  .media-filters { gap: 12px; padding-block: 16px 40px; }
}
.media-filter {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.media-filter:hover,
.media-filter:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}
.media-filter.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.media-grid {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
@media (min-width: 600px) {
  .media-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; }
}
@media (min-width: 1024px) {
  .media-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; }
}
@media (min-width: 1400px) {
  .media-grid { grid-template-columns: repeat(5, 1fr); }
}

.media-tile {
  position: relative;
  overflow: hidden;
  background: var(--panel-deep);
  border-radius: 14px;
  aspect-ratio: 1 / 1;
}
.media-tile--16x9 { aspect-ratio: 16 / 9; }
.media-tile--9x16 { aspect-ratio: 9 / 16; }
.media-tile.is-hidden { display: none; }

.media-tile__link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--ink);
}
.media-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s ease;
}
.media-tile__img--blank {
  display: block;
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-deep) 100%);
}
.media-tile__link:hover .media-tile__img,
.media-tile__link:focus-visible .media-tile__img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.media-tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 14px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 80%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.media-tile__link:hover .media-tile__overlay,
.media-tile__link:focus-visible .media-tile__overlay {
  opacity: 1;
  transform: translateY(0);
}
.media-tile__kind {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.media-tile__title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.media-tile__loc {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  color: var(--ink);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0.85;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.media-tile__play svg { transform: translateX(2px); }
.media-tile__link:hover .media-tile__play,
.media-tile__link:focus-visible .media-tile__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--ink);
  color: var(--paper);
}

/* =========================================================
   Utility helpers
   ========================================================= */
.mt-3 { margin-top: 12px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.flow > * + * { margin-top: 1em; }

/* =========================================================
   Mobile typography & spacing pass (≤ 767px)
   ---------------------------------------------------------
   Covers the common phone widths — 360 (Galaxy/Pixel), 375
   (iPhone SE/13 mini), 390 (iPhone 14/15), 414 (XR / Pro Max).
   Brings body copy, section headings, paddings, and the footer
   in line with the jaa.cool reference so nothing reads as
   "desktop shrunk".
   ========================================================= */
@media (max-width: 767px) {
  body { font-size: 15px; }

  /* Tighten section verticals so content isn't drowned in padding. */
  .section { padding-block: 56px; }
  .section--tight { padding-block: 40px; }

  /* Container side padding a touch tighter on the smallest phones. */
  .container-x { padding-inline: 20px; }

  /* Hero — already mobile-styled above; refine the supporting text. */
  .hero__tag { font-size: 13px; margin-top: 28px; }
  .hero__cta { margin-top: 28px; }
  .hero .btn-outline { padding: 12px 22px; font-size: 14px; }

  /* Projects intro heading + spacing. */
  .projects-intro { padding-top: 48px; padding-bottom: 16px; }
  .projects-intro h2 { font-size: clamp(1.625rem, 7vw, 2rem); }

  /* Project rows — title min smaller, row padding tighter. */
  .project-row__inner { padding-block: 40px; gap: 6px 16px; }
  .project-row__title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .project-row__loc { font-size: 12px; letter-spacing: 0.18em; }
  .project-row.is-active .project-row__inner { padding-block: 64px; }
  .project-list__more { padding: 32px 16px 48px; }
  .project-list__more-btn { font-size: 12px; padding: 10px 20px; }

  /* About teaser. */
  .about-teaser__grid { gap: 32px; }
  .about-teaser h2 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .about-teaser__body { margin-top: 20px; font-size: 15px; gap: 14px; }
  .about-teaser__cta { margin-top: 28px; }
  .placeholder-square { max-width: 18rem; }

  /* Quote. */
  .quote-section { padding-block: 56px; }
  .quote-section blockquote { font-size: clamp(1.125rem, 5vw, 1.5rem); }
  .quote-section .who { margin-top: 20px; font-size: 14px; }
  .quote-section .who-title { font-size: 13px; }

  /* Bottom CTA. */
  .cta-section { padding-block: 56px; }
  .cta-section h2 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .cta-section p { font-size: 15px; margin-top: 16px; }
  .cta-section .cta { margin-top: 28px; }

  /* Generic buttons sized down on phones. */
  .btn, .btn-outline, .btn-ghost { padding: 12px 22px; font-size: 14px; }

  /* Page hero (about / contact / rental). */
  .page-hero { padding-block: 64px; }
  .page-hero h1 { font-size: clamp(1.875rem, 8vw, 2.75rem); }
  .page-hero__sub { font-size: 15px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.18em; }

  /* Footer — brand on top, then Sections + Studio side-by-side
     (mirrors the jaa.cool "3 little columns" feel) and a centered,
     compact legal row at the very bottom. */
  .site-footer__inner { padding-block: 48px; }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .site-footer__brand .site-logo__text { font-size: 24px; }
  .site-footer__tagline { font-size: 14px; line-height: 1.55; max-width: none; }
  .site-footer__heading { font-size: 12px; letter-spacing: 0.16em; margin-bottom: 12px; }
  .site-footer__list { gap: 10px; }
  .site-footer__list a { font-size: 14px; }
  .site-footer__socials { margin-top: 16px; gap: 6px; }
  .site-footer__socials a {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  .site-footer__bottom {
    margin-top: 36px;
    padding-top: 20px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }
}
