/* ==========================================================================
   WLDstudio — design system
   Mobile-first. Breakpoint rules live in css/responsive.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin.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: 300 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic-latin.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: 300 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic-latin-ext.woff2")
    format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.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("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #101010;
  --ink-soft: #171717;
  --cream: #f0ede6;
  --white: #f8f7f4;
  --muted: #999999;
  --line: rgba(240, 237, 230, 0.13);
  --line-strong: rgba(240, 237, 230, 0.28);
  --error: #d9a08a;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-width: 1680px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 11vw, 9.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.1;
}

:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 4px;
}

::selection {
  background: var(--cream);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border: 2px solid var(--ink);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* --------------------------------------------------------------------------
   4. Layout & utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section--line {
  border-top: 1px solid var(--line);
}

.section--tight {
  padding-block: clamp(3rem, 7vw, 6rem);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.8rem 1rem;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   5. Typography components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__num {
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.eyebrow__line {
  display: block;
  width: 1.6rem;
  height: 1px;
  background: var(--line-strong);
  flex: 0 0 auto;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.section-title {
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.section-lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.75;
}

.section-head__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.section-head__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.serif {
  font-family: var(--serif);
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.btn--solid {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.btn--solid:hover {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn--ink:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn__arrow {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.link-arrow span:last-child {
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  border-color: var(--cream);
}

.link-arrow:hover span:last-child {
  transform: translate(3px, -3px);
}

.icon-instagram {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header.is-scrolled,
.site-header--solid {
  background: rgba(16, 16, 16, 0.97);
  border-bottom-color: var(--line);
}

/* Cinematic scrim keeps navigation and the language switch legible while
   the transparent header sits over the hero photograph. */
.site-header:not(.is-scrolled):not(.site-header--solid)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 190px;
  background: linear-gradient(
    to bottom,
    rgba(16, 16, 16, 0.82) 0%,
    rgba(16, 16, 16, 0.45) 42%,
    rgba(16, 16, 16, 0) 100%
  );
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 25px;
}

.site-nav {
  display: none;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding-block: 0.5rem;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.1rem;
  left: 0;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cream);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.lang-switch button {
  padding: 0.3rem 0.05rem;
  color: var(--muted);
  font-size: inherit;
  letter-spacing: inherit;
  transition: color 0.3s var(--ease);
}

.lang-switch button:hover {
  color: var(--cream);
}

.lang-switch button.is-active {
  color: var(--cream);
}

.lang-switch span[aria-hidden="true"] {
  color: var(--line-strong);
  font-size: 0.5rem;
}

.lang-switch--mobile,
.footer-lang .lang-switch {
  display: flex;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -0.65rem;
}

.menu-toggle__line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

/* --------------------------------------------------------------------------
   8. Mobile menu — native modal dialog
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 1.35rem var(--gutter) 2rem;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-1.25rem);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  opacity: 1;
  transform: none;
}

@starting-style {
  .mobile-menu[open] {
    opacity: 0;
    transform: translateY(-1.25rem);
  }
}

.mobile-menu::backdrop {
  background: rgba(16, 16, 16, 0.98);
  overscroll-behavior: contain;
}

.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__bar .brand img {
  height: 24px;
}

.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -0.7rem;
  color: var(--cream);
}

.mobile-menu__close svg {
  width: 18px;
  height: 18px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 9vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.mobile-menu[open] .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(80ms + var(--i, 0) * 55ms);
}

.mobile-menu__link small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-menu__link[aria-current="page"] {
  color: var(--cream);
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-menu__contact a,
.mobile-menu__contact span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.mobile-menu__contact a:hover {
  color: var(--cream);
}

.mobile-menu__contact .is-pending {
  color: var(--muted);
}

dialog:modal {
  overscroll-behavior: contain;
}

/* --------------------------------------------------------------------------
   9. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__media picture,
.hero__image {
  width: 100%;
  height: 100%;
}

.hero__image {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 132%;
  object-fit: cover;
  object-position: 50% 100%;
  filter: saturate(0.92) contrast(1.02);
}

@media (min-width: 900px) {
  .hero__image {
    position: relative;
    height: 100%;
    object-position: 50% 30%;
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(16, 16, 16, 0.72) 0%,
      rgba(16, 16, 16, 0.26) 16%,
      rgba(16, 16, 16, 0) 32%
    ),
    linear-gradient(
      to top,
      rgba(16, 16, 16, 0.96) 0%,
      rgba(16, 16, 16, 0.62) 38%,
      rgba(16, 16, 16, 0.16) 72%,
      rgba(16, 16, 16, 0.28) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.25rem, 6vw, 3.5rem);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: 1.6rem;
}

.hero__title {
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 12vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

.hero__title span,
.hero__title em {
  display: block;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
}

.hero__lede {
  max-width: 33ch;
  margin-top: 1.5rem;
  color: rgba(240, 237, 230, 0.72);
  font-size: 0.92rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(240, 237, 230, 0.16);
  color: rgba(240, 237, 230, 0.55);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__meta-divider {
  width: 1.5rem;
  height: 1px;
  background: var(--line-strong);
}

.hero__caption {
  display: none;
}

/* --------------------------------------------------------------------------
   10. Intro statement
   -------------------------------------------------------------------------- */
.intro__grid {
  display: grid;
  gap: 2.5rem;
}

.intro__statement {
  max-width: 21ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 7.5vw, 3.7rem);
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.06;
}

.intro__statement em {
  font-style: italic;
}

.intro__body {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

.intro__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.intro__meta div:last-child {
  grid-column: 1 / -1;
}

.intro__meta dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro__meta dd {
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   11. Featured work
   -------------------------------------------------------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.featured-card {
  display: block;
}

.featured-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-soft);
}

.featured-card--wide .featured-card__media {
  aspect-ratio: 4 / 3;
}

.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}

.featured-card:hover .featured-card__media img {
  transform: scale(1.035);
  filter: saturate(1);
}

.featured-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 16, 16, 0.18);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.featured-card__overlay span {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(240, 237, 230, 0.6);
  color: var(--cream);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.featured-card:hover .featured-card__overlay {
  opacity: 1;
}

.featured-card__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.featured-card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.1;
}

.featured-card__cat {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-align: right;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   12. Services list (home)
   -------------------------------------------------------------------------- */
.service-list {
  position: relative;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}

.service-row:hover {
  border-color: var(--line-strong);
}

.service-row__num {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.service-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.service-row__name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6.5vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1;
  transition: transform 0.45s var(--ease), color 0.3s var(--ease);
}

.service-row__desc {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.service-row__arrow {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

.service-row:hover .service-row__arrow {
  color: var(--cream);
  transform: translate(3px, -3px);
}

.service-row:hover .service-row__name {
  transform: translateX(4px);
}

.service-preview {
  display: none;
}

/* --------------------------------------------------------------------------
   13. About teaser
   -------------------------------------------------------------------------- */
.about-teaser__grid {
  display: grid;
  gap: 2.25rem;
}

.about-teaser__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-soft);
}

.about-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 1.1s var(--ease);
}

.about-teaser__media:hover img {
  transform: scale(1.03);
}

.about-teaser__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.4rem;
}

.about-teaser__title {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.about-teaser__body {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   14. Reviews (hidden automatically when empty)
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  gap: 1rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.review-card__quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 300;
  line-height: 1.4;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.review-card__name {
  color: var(--cream);
}

.review-card__context {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. Instagram
   -------------------------------------------------------------------------- */
.instagram-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.instagram-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink-soft);
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}

.instagram-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.3);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.instagram-tile__label {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 1;
  color: var(--cream);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 0.35s var(--ease);
}

.instagram-tile:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}

.instagram-tile:hover::after,
.instagram-tile:hover .instagram-tile__label {
  opacity: 1;
}

.instagram-tile.is-pending {
  cursor: default;
}

.instagram-pending {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  padding-block: clamp(4rem, 12vw, 9rem);
  background: var(--cream);
  color: var(--ink);
}

.cta-band .eyebrow {
  color: rgba(16, 16, 16, 0.68);
}

.cta-band .eyebrow__num {
  color: var(--ink);
}

.cta-band .eyebrow__line {
  background: rgba(16, 16, 16, 0.25);
}

.cta-band__grid {
  display: grid;
  gap: 2.25rem;
}

.cta-band__title {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.93;
}

.cta-band__title span,
.cta-band__title em {
  display: block;
}

.cta-band__title em {
  font-style: italic;
}

.cta-band__body {
  max-width: 34ch;
  color: rgba(16, 16, 16, 0.62);
  font-size: 0.92rem;
  line-height: 1.8;
}

.cta-band__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3rem, 7vw, 5rem) 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.footer-brand img {
  width: auto;
  height: 24px;
  margin-bottom: 0.9rem;
}

.footer-tagline {
  max-width: 26ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-heading {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-nav,
.footer-connect {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-link {
  color: var(--cream);
  font-size: 0.84rem;
  transition: color 0.3s var(--ease);
}

.footer-link:hover {
  color: var(--muted);
}

.footer-link.is-pending,
.footer-connect .is-pending {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.footer-bottom a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.footer-bottom a:hover {
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   18. Interior page header
   -------------------------------------------------------------------------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 8vw, 6rem));
  padding-bottom: clamp(2.25rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.page-head__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.4rem;
}

.page-head__title {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 11vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.page-head__index {
  display: none;
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.page-head__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page-head__lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  line-height: 1.75;
}

.page-head__meta {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   19. Portfolio: toolbar & grid
   -------------------------------------------------------------------------- */
.portfolio-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 70;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.97);
}

.portfolio-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.filters {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  position: relative;
  padding-block: 0.45rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.filter::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.filter:hover {
  color: var(--cream);
}

.filter.is-active {
  color: var(--cream);
}

.filter.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.filter__count {
  margin-left: 0.3rem;
  color: var(--muted);
  font-size: 0.54rem;
  vertical-align: super;
}

.portfolio-count {
  display: none;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-grid.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.gallery-item {
  grid-column: span 1;
  opacity: 0;
  animation: gallery-in 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 32ms);
}

.gallery-item[data-span="wide"] {
  grid-column: span 2;
}

@keyframes gallery-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gallery-item__button {
  display: block;
  width: 100%;
  text-align: left;
}

.gallery-item__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-soft);
}

.gallery-item[data-span="wide"] .gallery-item__media {
  aspect-ratio: 3 / 2;
}

.gallery-item[data-span="square"] .gallery-item__media {
  aspect-ratio: 1;
}

.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.1s var(--ease), filter 0.5s var(--ease);
}

.gallery-item__button:hover .gallery-item__media img {
  transform: scale(1.045);
  filter: saturate(1);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(16, 16, 16, 0.62),
    rgba(16, 16, 16, 0) 55%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item__overlay span {
  color: var(--cream);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-item__button:hover .gallery-item__overlay,
.gallery-item__button:focus-visible .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.gallery-item__title {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.15;
}

.gallery-item__cat {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-empty {
  padding-block: 4rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  text-align: center;
}

/* --------------------------------------------------------------------------
   20. Lightbox — native modal dialog
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 12, 12, 0.985);
  color: var(--cream);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

@starting-style {
  .lightbox[open] {
    opacity: 0;
  }
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
  overscroll-behavior: contain;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--gutter);
}

.lightbox__counter {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
}

.lightbox__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -0.75rem;
  color: var(--cream);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.lightbox__close:hover {
  transform: rotate(90deg);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
}

.lightbox__stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-inline: var(--gutter);
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100svh - 11.5rem);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}

.lightbox__image.is-loaded {
  opacity: 1;
  transform: none;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.55);
  color: var(--cream);
  transform: translateY(-50%);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.lightbox__nav:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.lightbox__nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

.lightbox__nav--prev {
  left: clamp(0.4rem, 2vw, 2rem);
}

.lightbox__nav--next {
  right: clamp(0.4rem, 2vw, 2rem);
}

.lightbox__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem var(--gutter) 1.6rem;
  text-align: center;
}

.lightbox__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.15;
}

.lightbox__cat {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   21. About page
   -------------------------------------------------------------------------- */
.about-intro {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.about-figure {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.about-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-soft);
}

.about-caption {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
}

.temp-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.45rem 0.65rem;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.draft {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.draft__label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.55rem;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.draft p {
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 300;
  line-height: 1.45;
}

.about-subhead {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.about-vision {
  padding-block: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.about-vision__grid {
  display: grid;
  gap: 2.5rem;
}

.about-vision__body {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

.approach {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.approach-step {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.approach-step__num {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
}

.approach-step h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.approach-step p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   22. Services page
   -------------------------------------------------------------------------- */
.service-detail {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.service-detail__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-soft);
}

.service-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 1.1s var(--ease);
}

.service-detail:hover .service-detail__media img {
  transform: scale(1.03);
}

.service-detail__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}

.service-detail__num {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.service-detail__title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 7vw, 4.1rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.service-detail__meta {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.service-detail__body p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

.service-detail__cta {
  margin-top: 0.4rem;
}

.pricing {
  padding-block: clamp(4rem, 11vw, 8rem);
  background: var(--cream);
  color: var(--ink);
}

.pricing .eyebrow {
  color: rgba(16, 16, 16, 0.68);
}

.pricing .eyebrow__num {
  color: var(--ink);
}

.pricing .eyebrow__line {
  background: rgba(16, 16, 16, 0.25);
}

.pricing__grid {
  display: grid;
  gap: 2.25rem;
}

.pricing__title {
  max-width: 13ch;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 9vw, 6.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

.pricing__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.pricing__body p {
  max-width: 44ch;
  color: rgba(16, 16, 16, 0.64);
  font-size: 0.92rem;
  line-height: 1.8;
}

.pricing__note {
  font-size: 0.8rem !important;
}

/* --------------------------------------------------------------------------
   23. Contact page
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: 3rem;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.contact-method__label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-method__value {
  margin-left: auto;
  color: var(--cream);
  font-size: 0.86rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-method__arrow {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}

.contact-method:not(.is-pending):hover {
  border-color: var(--line-strong);
}

.contact-method:not(.is-pending):hover .contact-method__arrow {
  color: var(--cream);
  transform: translate(2px, -2px);
}

.contact-method.is-pending {
  cursor: not-allowed;
}

.contact-method.is-pending .contact-method__value {
  color: var(--muted);
  font-size: 0.76rem;
}

.contact-note {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.config-note {
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Form */
.form {
  width: 100%;
}

.form__title {
  margin-bottom: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.form__grid {
  display: grid;
  gap: 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field__optional {
  margin-left: 0.25rem;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 48px;
  transition: border-color 0.3s var(--ease);
}

.field select {
  appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999999' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  color-scheme: dark;
}

.field select option {
  background: var(--ink-soft);
  color: var(--cream);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(153, 153, 153, 0.65);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cream);
}

.field input[type="date"] {
  color-scheme: dark;
}

.field:has(:user-invalid) input,
.field:has(:user-invalid) select,
.field:has(:user-invalid) textarea {
  border-color: var(--error);
}

.field__error {
  display: none;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--error);
  font-size: 0.76rem;
  line-height: 1.5;
}

.field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
}

.field:has(:user-invalid) .field__error {
  display: flex;
}

.checkbox:has(:user-invalid) {
  color: var(--error);
}

.required-hint {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.req {
  color: var(--cream);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
  cursor: pointer;
}

.checkbox input {
  appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.checkbox input:checked {
  background: var(--cream);
  border-color: var(--cream);
}

.checkbox input:checked::after {
  content: "";
  display: block;
  width: 6px;
  height: 10px;
  margin: 1px 0 0 5px;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.checkbox a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.form__privacy {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form__actions .btn[disabled] {
  cursor: wait;
  opacity: 0.55;
}

.form__status {
  display: none;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.7;
}

.form__status.is-visible {
  display: block;
}

.form__status.is-success {
  border-color: rgba(240, 237, 230, 0.45);
  color: var(--cream);
}

.form__status.is-error {
  border-color: var(--error);
  color: var(--error);
}

.form__status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__status ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   24. Legal page
   -------------------------------------------------------------------------- */
.legal {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem);
}

.legal__wrap {
  max-width: 70ch;
}

.legal__updated {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal__notice {
  margin-bottom: 2.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-size: 0.86rem;
  line-height: 1.7;
}

.legal h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.legal p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.legal__back {
  display: inline-flex;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   25. Scroll reveal
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   26. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .gallery-item {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   27. Native scroll-driven reveals (progressive enhancement)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-on-scroll {
      from {
        opacity: 0;
        transform: translateY(24px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }

    .js .reveal {
      animation: reveal-on-scroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
  }
}

/* --------------------------------------------------------------------------
   28. Cross-document page transitions (progressive enhancement)
   -------------------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes page-fade-out {
    to {
      opacity: 0;
    }
  }

  @keyframes page-fade-in {
    from {
      opacity: 0;
    }
  }

  ::view-transition-old(root) {
    animation: page-fade-out 0.22s var(--ease) both;
  }

  ::view-transition-new(root) {
    animation: page-fade-in 0.35s var(--ease) both;
  }
}

/* --------------------------------------------------------------------------
   29. Noscript
   -------------------------------------------------------------------------- */
.noscript-note {
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
