/* ==========================================================================
   Tiny Lighthouse — main stylesheet
   One shared stylesheet for every page. Mobile-first: base styles target
   small screens, media queries progressively enhance for larger ones.

   Contents
   01. Fonts (self-hosted, Latin + Cyrillic subsets)
   02. Design tokens
   03. Reset & base
   04. Typography
   05. Layout helpers
   06. Buttons & links
   07. Header, navigation, language switcher
   08. Hero (with the slow "light beam")
   09. Media / image placeholders
   10. Home sections (intro, stories, steps, testimonials)
   11. Portfolio (filters, masonry) & project pages
   12. Lightbox
   13. About
   14. Pricing & FAQ
   15. Contact
   16. Client gallery (login, sample gallery)
   17. Legal pages & 404
   18. Footer
   19. Scroll reveal & motion preferences
   ========================================================================== */

/* 01. Fonts ---------------------------------------------------------------
   Files live in /assets/fonts/. Each family is split into a Latin and a
   Cyrillic subset; unicode-range makes the browser download only what a
   page actually needs. Both are SIL Open Font License (see fonts/OFL.txt). */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope is a variable font: one file per subset covers weights 200–800. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 02. Design tokens ------------------------------------------------------- */

:root {
  /* Brand palette */
  --c-paper: #f7f4ef;          /* warm off-white background */
  --c-paper-2: #efeae1;        /* slightly deeper paper for cards/sections */
  --c-ink: #26292b;            /* dark charcoal text */
  --c-ink-soft: #55595c;       /* secondary text (AA on paper) */
  --c-line: #ddd5c8;           /* hairlines */
  --c-amber: #d9a441;          /* lighthouse amber — use sparingly */
  --c-amber-deep: #8a6116;     /* amber dark enough for text on paper */
  --c-sea: #1f3a4d;            /* deep sea blue — dark sections, footer */
  --c-sea-2: #17303f;
  --c-on-sea: #f1ece3;
  --c-on-sea-soft: #b9c3c9;
  --c-error: #a3392b;
  --c-success: #2f6b4f;

  /* Typography */
  --f-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);

  /* Spacing & shape */
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
  --container-narrow: 760px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 900ms;

  --shadow-soft: 0 1px 2px rgba(31, 58, 77, 0.06), 0 12px 40px -18px rgba(31, 58, 77, 0.28);
}

/* 03. Reset & base -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

[hidden] { display: none !important; }

::selection { background: rgba(217, 164, 65, 0.35); color: var(--c-ink); }

:focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Accessible "skip to content" link: visible only on keyboard focus. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--c-sea);
  color: var(--c-on-sea);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

.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;
}

/* 04. Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--f-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 1.1em; text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-amber-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section--dark .eyebrow { color: var(--c-amber); }

.lead {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--c-ink-soft);
}

.serif-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.45;
}

/* 05. Layout helpers ------------------------------------------------------ */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--paper2 { background: var(--c-paper-2); }
.section--dark {
  background: var(--c-sea);
  color: var(--c-on-sea);
}
.section--dark .lead,
.section--dark p { color: var(--c-on-sea-soft); }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.divider {
  width: 48px;
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: var(--c-amber);
}

/* Inner page heading block */
.page-head {
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem));
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 60ch; }

/* 06. Buttons & links ----------------------------------------------------- */

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.link {
  color: var(--c-ink);
  text-decoration: none;
  background-image: linear-gradient(var(--c-amber), var(--c-amber));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-med) var(--ease), color var(--t-fast);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.section--dark .link { color: var(--c-on-sea); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.link-arrow svg { width: 18px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.btn {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-paper);
  --btn-border: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 1.2;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }

.btn--amber { --btn-bg: var(--c-amber); --btn-fg: #1d1a14; --btn-border: var(--c-amber); }
.btn--amber:hover { --btn-bg: #e2b257; --btn-border: #e2b257; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-border: rgba(38, 41, 43, 0.35); }
.btn--ghost:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-paper); --btn-border: var(--c-ink); }

.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.6); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-border: #fff; }

.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* 07. Header -------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--c-ink);
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Solid state once the page scrolls (or always on inner pages). */
.site-header.is-solid,
.site-header--solid {
  background: rgba(247, 244, 239, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--c-line);
}

/* Transparent header over the dark hero on the home page. */
.site-header--overlay:not(.is-solid) { color: #fff; }
.site-header--overlay:not(.is-solid) .brand__mark .beam { opacity: 0.9; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.brand__mark { width: 30px; height: 36px; flex: none; }
.brand__word {
  font-family: var(--f-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* On very small screens only the compact icon is shown. */
@media (max-width: 379px) {
  .brand__word { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: inherit;
}
.nav-toggle__bars { position: relative; width: 22px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 10px; }
.nav-open .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

.header-tools { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile navigation: full-screen sheet */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 2rem var(--gutter) 3rem;
  background: var(--c-paper);
  color: var(--c-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  overflow-y: auto;
}
.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav-open { overflow: hidden; }
/* backdrop-filter would turn the header into the containing block of the
   fixed menu sheet, so it is switched off while the menu is open. */
.nav-open .site-header {
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 1px 0 var(--c-line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav__list a {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--f-serif);
  font-size: 2rem;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
}
.site-nav__list a[aria-current="page"] { color: var(--c-amber-deep); }
.site-nav__cta { margin-top: 2rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-switch button {
  min-width: 34px;
  min-height: 34px;
  padding: 0.25rem 0.35rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  opacity: 0.6;
  transition: opacity var(--t-fast), background var(--t-fast);
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--c-amber); border-radius: 0; }
.lang-switch__sep { opacity: 0.35; }

@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
  }
  .site-nav__list { flex-direction: row; gap: 1.8rem; }
  .site-nav__list a {
    position: relative;
    padding: 0.4rem 0;
    font-family: var(--f-sans);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 0;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--c-amber);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t-med) var(--ease);
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .site-nav__list a[aria-current="page"] { color: inherit; }
  .site-nav__cta { margin: 0; }
  .site-nav__cta .btn { min-height: 42px; padding: 0.55rem 1.2rem; font-size: var(--fs-xs); }
  .site-header--overlay:not(.is-solid) .site-nav__cta .btn { --btn-fg: #fff; --btn-border: rgba(255,255,255,0.6); }
  .site-header--overlay:not(.is-solid) .site-nav__cta .btn:hover { --btn-bg: #fff; --btn-fg: var(--c-ink); }
}

/* 08. Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--c-sea-2);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  animation: hero-zoom 24s var(--ease) both;
}
/* Readability overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 28, 38, 0.45) 0%, rgba(15, 28, 38, 0.12) 55%, rgba(15, 28, 38, 0) 100%),
    linear-gradient(180deg, rgba(15, 28, 38, 0.55) 0%, rgba(15, 28, 38, 0.05) 30%, rgba(15, 28, 38, 0.15) 55%, rgba(15, 28, 38, 0.78) 100%);
}

/* The light beam: a very soft, slowly sweeping cone of warm light.
   Pure CSS, GPU-friendly (transform + opacity only). */
.hero__beam {
  position: absolute;
  z-index: -1;
  top: -30%;
  left: 62%;
  width: 160vmax;
  height: 160vmax;
  margin-left: -80vmax;
  pointer-events: none;
  background: conic-gradient(from 180deg at 50% 50%,
    transparent 0deg,
    rgba(255, 214, 140, 0.0) 150deg,
    rgba(255, 214, 140, 0.16) 172deg,
    rgba(255, 226, 170, 0.22) 180deg,
    rgba(255, 214, 140, 0.16) 188deg,
    rgba(255, 214, 140, 0.0) 210deg,
    transparent 360deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,0.65) 30%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,0.65) 30%, transparent 62%);
  mix-blend-mode: screen;
  transform-origin: 50% 50%;
  animation: beam-sweep 28s ease-in-out infinite alternate;
  opacity: 0.85;
}
.hero__glow {
  position: absolute;
  z-index: -1;
  top: 14%;
  left: 62%;
  width: 34vmax;
  height: 34vmax;
  margin: -17vmax 0 0 -17vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 160, 0.35) 0%, rgba(255, 210, 140, 0.08) 40%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: glow-breathe 9s ease-in-out infinite;
}

@keyframes beam-sweep {
  from { transform: rotate(-28deg); }
  to   { transform: rotate(18deg); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 1;    transform: scale(1.04); }
}
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero__content {
  width: 100%;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
}
.hero h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-weight: 400;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__sub {
  max-width: 46ch;
  margin-bottom: 2.2rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
}
.hero .eyebrow { color: #fbe7bf; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(rgba(255,255,255,0.8), transparent);
}
@media (min-width: 768px) { .hero__scroll { display: flex; } }

/* 09. Media / image placeholders ----------------------------------------
   Every photo sits inside a .media wrapper with a soft gradient background.
   If the image file is missing (or still loading), the gradient shows
   instead of a broken-image icon. main.js adds .is-missing on error. */

.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 15%, rgba(217, 164, 65, 0.18), transparent 60%),
    linear-gradient(160deg, #e7e0d4 0%, #d8cfc1 55%, #c9c0b2 100%);
  border-radius: var(--radius);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity var(--t-med) var(--ease);
}
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  /* tiny lighthouse watermark on missing images */
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 42px;
  opacity: 0.35;
  background: url("../img/brand/lighthouse-mark.svg") center / contain no-repeat;
}
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--2x3 { aspect-ratio: 2 / 3; }
.section--dark .media { background: linear-gradient(160deg, #2a4a5f, #1a3243); }

/* 10. Home sections ------------------------------------------------------- */

.intro {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.intro__text p:last-child { margin-bottom: 0; }
.intro__sign {
  margin-top: 1.5rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--c-amber-deep);
}
@media (min-width: 900px) {
  .intro { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 7rem); }
}

/* Featured stories grid */
.stories {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .stories { grid-template-columns: repeat(3, 1fr); }
  .stories > :nth-child(3n + 2) { margin-top: 4rem; }
}

.story-card { display: block; text-decoration: none; color: inherit; }
.story-card .media { margin-bottom: 1.1rem; }
.story-card:hover .media img,
.story-card:focus-visible .media img { transform: scale(1.04); }
.story-card__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem);
  transition: color var(--t-fast);
}
.story-card:hover .story-card__title { color: var(--c-amber-deep); }
.story-card__meta {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.story-card__meta span + span::before { content: "·"; margin: 0 0.5em; }

.center-cta { margin-top: clamp(3rem, 2rem + 3vw, 5rem); text-align: center; }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.75rem;
  counter-reset: step;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); } }
.step { position: relative; padding-top: 2rem; border-top: 1px solid rgba(241, 236, 227, 0.18); }
.step__num {
  display: block;
  margin-bottom: 1.2rem;
  font-family: var(--f-serif);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--c-amber);
}
.step__icon { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--c-amber); }
.step h3 { margin-bottom: 0.7rem; color: var(--c-on-sea); }
.step p { margin: 0; }

/* Testimonials */
.quotes {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.quote {
  margin: 0;
  padding: 2.25rem 2rem 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.quote__mark {
  width: 28px;
  height: 22px;
  margin-bottom: 1.25rem;
  color: var(--c-amber);
}
.quote blockquote { margin: 0 0 1.5rem; flex: 1; }
.quote blockquote p {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.35rem;
  line-height: 1.45;
}
.quote figcaption {
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}
.quote figcaption strong { color: var(--c-ink); font-weight: 600; }

/* Call-to-action band */
.cta-band {
  text-align: center;
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* 11. Portfolio ----------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.filter-btn {
  min-height: 42px;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.filter-btn:hover { border-color: var(--c-ink); }
.filter-btn[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }

/* Masonry via CSS columns: no JS layout cost, works everywhere. */
.masonry { columns: 1; column-gap: 1.5rem; }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; column-gap: 2rem; } }
.masonry__item {
  break-inside: avoid;
  margin-bottom: 2.25rem;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.masonry__item.is-hidden { display: none; }
.masonry__item.is-entering { opacity: 0; transform: translateY(12px); }
.masonry__empty { color: var(--c-ink-soft); }

/* Project pages */
.project-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}
.project-head__meta strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.project-cover { margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.project-cover .media { aspect-ratio: 16 / 9; border-radius: 0; }
@media (min-width: 960px) { .project-cover .media { aspect-ratio: 21 / 9; } }

.photo-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.photo-grid--dense { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .photo-grid--dense { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .photo-grid--dense { grid-template-columns: repeat(4, 1fr); } }
.photo-grid--feature > :nth-child(5n + 1) { grid-column: span 2; }

.photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.photo-btn .media { height: 100%; aspect-ratio: 4 / 3; }
.photo-grid--feature > :nth-child(5n + 1) .media { aspect-ratio: 16 / 9; }
.photo-btn:hover .media img { transform: scale(1.03); }

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--c-line);
}

/* 12. Lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 22, 28, 0.96);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  touch-action: pan-y pinch-zoom;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__figure {
  margin: 0;
  max-width: 92vw;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.lightbox__img.is-loading { opacity: 0; transform: scale(0.985); }
.lightbox__caption {
  margin-top: 0.9rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background var(--t-fast);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute;
  top: 1.6rem;
  left: 1.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
}
.lightbox-open { overflow: hidden; }

/* 13. About --------------------------------------------------------------- */

.about-hero {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 900px) { .about-hero { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); } }
.about-hero .media { aspect-ratio: 4 / 5; }

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); margin-top: 2.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--c-amber); }

.split {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } }

.gear-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(241, 236, 227, 0.18);
}
.gear-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(241, 236, 227, 0.18);
  color: var(--c-on-sea);
}
.gear-list li span:last-child { color: var(--c-on-sea-soft); text-align: right; font-size: var(--fs-sm); }

.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: var(--fs-sm);
}
.badge-line svg { width: 18px; height: 18px; color: var(--c-amber-deep); }

/* 14. Pricing & FAQ ------------------------------------------------------- */

.packages {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) { .packages { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem 2rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.package:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.package--featured { border-color: var(--c-amber); box-shadow: var(--shadow-soft); }
.package__badge {
  position: absolute;
  top: -0.8rem;
  left: 2rem;
  padding: 0.2rem 0.8rem;
  background: var(--c-amber);
  color: #1d1a14;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.package h2 { font-size: 2rem; margin-bottom: 0.3rem; }
.package__desc { color: var(--c-ink-soft); font-size: var(--fs-sm); min-height: 3.2em; }
.package__price {
  margin: 1rem 0 1.5rem;
  font-family: var(--f-serif);
  font-size: 2.8rem;
  line-height: 1;
}
.package__price small {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.package__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--c-line);
  flex: 1;
}
.package__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
  font-size: var(--fs-sm);
}
.package__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--c-amber-deep);
  border-bottom: 1.5px solid var(--c-amber-deep);
  transform: rotate(-45deg);
}
.pricing-note { margin-top: 2rem; font-size: var(--fs-sm); color: var(--c-ink-soft); text-align: center; }

.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--c-amber-deep);
  transition: transform var(--t-med) var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--c-amber-deep); }
.faq__answer { padding: 0 0 1.6rem; max-width: 64ch; color: var(--c-ink-soft); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq details[open] .faq__answer { animation: faq-in var(--t-med) var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 15. Contact ------------------------------------------------------------- */

.contact-card {
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.contact-email {
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem);
  line-height: 1.1;
  word-break: break-word;
  text-decoration: none;
  background-image: linear-gradient(var(--c-amber), var(--c-amber));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-med) var(--ease);
}
.contact-email:hover { background-size: 30% 2px; }
.contact-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.contact-langs li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: var(--fs-sm);
}
.contact-facts {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 720px) { .contact-facts { grid-template-columns: repeat(3, 1fr); } }
.contact-facts h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.contact-facts p { font-size: var(--fs-sm); color: var(--c-ink-soft); margin: 0; }

/* 16. Client gallery ------------------------------------------------------ */

.gallery-login {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
}
@media (min-width: 960px) { .gallery-login { grid-template-columns: 1fr 1fr; } }
.gallery-login__visual {
  position: relative;
  display: none;
  overflow: hidden;
  background: var(--c-sea);
}
.gallery-login__visual .media { position: absolute; inset: 0; border-radius: 0; }
.gallery-login__visual img { object-position: 35% 55%; }
.gallery-login__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 48, 63, 0.1), rgba(23, 48, 63, 0.65));
}
.gallery-login__quote {
  position: absolute;
  z-index: 1;
  left: clamp(2rem, 4vw, 4rem);
  right: clamp(2rem, 4vw, 4rem);
  bottom: clamp(2rem, 4vw, 4rem);
  color: #fff;
}
@media (min-width: 960px) { .gallery-login__visual { display: block; } }
.gallery-login__panel {
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 3rem;
}
.gallery-login__box { width: 100%; max-width: 440px; margin-inline: auto; }
.gallery-login__box h1 { font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.6rem); }
.gallery-login__icon { width: 44px; height: 44px; margin-bottom: 1.5rem; color: var(--c-amber-deep); }

.form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid #cfc6b8;
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder { color: #8b8e90; }
.field input:hover { border-color: #b0a695; }
.field input:focus { outline: none; border-color: var(--c-sea); box-shadow: 0 0 0 3px rgba(31, 58, 77, 0.15); }
.field input[aria-invalid="true"] { border-color: var(--c-error); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field__hint { font-size: var(--fs-xs); color: var(--c-ink-soft); }

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-amber);
  text-underline-offset: 0.25em;
}
.text-btn:hover { color: var(--c-amber-deep); }

.form-msg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.form-msg svg { flex: none; width: 18px; height: 18px; margin-top: 0.1rem; }
.form-msg--error { background: #f6e3df; color: var(--c-error); }
.form-msg--success { background: #e1efe7; color: var(--c-success); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reset-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-paper-2);
}
.reset-box h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.reset-box p { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.reset-box .form { margin-top: 1rem; }

.gallery-login__foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

/* Sample gallery */
.gallery-head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--c-line);
}
@media (min-width: 860px) { .gallery-head { grid-template-columns: 1fr auto; } }
.gallery-head h1 { margin-bottom: 0.4rem; }
.gallery-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}
.gallery-head__meta li { display: inline-flex; align-items: center; gap: 0.45rem; }
.gallery-head__meta svg { width: 16px; height: 16px; color: var(--c-amber-deep); }
.gallery-head__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.sample-note {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  background: var(--c-paper-2);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}
.sample-note svg { flex: none; width: 18px; height: 18px; color: var(--c-amber-deep); }

/* Tooltip for the disabled download button */
.tooltip { position: relative; display: inline-flex; }
.tooltip__text {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 10;
  width: max-content;
  max-width: 240px;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: var(--fs-xs);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.tooltip__text::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 1.5rem;
  border: 6px solid transparent;
  border-top-color: var(--c-ink);
}
.tooltip:hover .tooltip__text,
.tooltip:focus-within .tooltip__text { opacity: 1; transform: none; }

.gallery-section-title {
  margin: 3rem 0 1.25rem;
  font-size: var(--fs-xs);
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}

/* Minimal header used on gallery pages */
.site-header--minimal .site-nav__list { display: none; }

/* 17. Legal pages & 404 --------------------------------------------------- */

.legal { padding-bottom: var(--section-y); }
.legal .prose p, .legal .prose li { color: var(--c-ink-soft); }
.legal address { font-style: normal; }

.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(217, 164, 65, 0.16), transparent 70%),
    var(--c-paper);
}
.notfound__mark { width: 84px; height: 104px; margin: 0 auto 2rem; color: var(--c-sea); }
.notfound__code {
  display: block;
  margin-bottom: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--c-amber-deep);
}
.notfound h1 { max-width: 16ch; margin-inline: auto; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); }
.notfound p { max-width: 44ch; margin-inline: auto; color: var(--c-ink-soft); }
.notfound .btn-row { justify-content: center; margin-top: 2rem; }
.notfound__mark .beam { animation: beam-blink 4s ease-in-out infinite; transform-origin: 50% 18%; }
@keyframes beam-blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* 18. Footer -------------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 2rem;
  background: var(--c-sea);
  color: var(--c-on-sea);
}
.site-footer a { color: var(--c-on-sea); text-decoration: none; }
.site-footer a:hover { color: var(--c-amber); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer-brand .brand { color: var(--c-on-sea); }
.footer-brand p {
  max-width: 34ch;
  margin-top: 1.25rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--c-on-sea-soft);
}
.footer-title {
  margin-bottom: 1rem;
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-amber);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: var(--fs-sm); }
.footer-contact { font-size: var(--fs-sm); color: var(--c-on-sea-soft); }
.footer-contact p { margin-bottom: 0.5rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 236, 227, 0.14);
  font-size: var(--fs-xs);
  color: var(--c-on-sea-soft);
}
.footer-bottom ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

/* 19. Scroll reveal & motion --------------------------------------------- */

/* Elements start visible; .js-reveal (added by main.js) enables the effect,
   so content never stays hidden if JavaScript fails. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__beam { animation: none; transform: rotate(-8deg); opacity: 0.55; }
  .hero__glow { animation: none; opacity: 0.7; }
  .hero__media img { animation: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}

@media print {
  .site-header, .site-footer, .hero__beam, .hero__glow, .lightbox { display: none !important; }
  body { background: #fff; }
}

/* 20. Small utilities (used instead of inline styles, so a strict
       Content-Security-Policy without 'unsafe-inline' works) ------------- */
[data-u="pt0"] { padding-top: 0; }
[data-u="pb0"] { padding-bottom: 0; }
[data-u="mt"] { margin-top: 1.5rem; }
[data-u="mt-sm"] { margin-top: 1rem; }
[data-u="center"] { text-align: center; }
[data-u="list"] { list-style: none; margin: 0; padding: 0; }
.section-spacer { height: var(--section-y); }
.btn svg { width: 18px; height: 18px; flex: none; }
.quote small { font-size: var(--fs-xs); color: var(--c-ink-soft); }
.contact-clients { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-ink-soft); }
