:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0d1118;
  --surface: rgba(19, 24, 33, 0.72);
  --surface-strong: #141a23;
  --surface-light: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f7fa;
  --muted: #a9b0bc;
  --accent: #d8b35b;
  --accent-bright: #f1d07a;
  --accent-dark: #8d681d;
  --success: #83d8b4;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 36px;
  --page: min(1180px, calc(100% - 40px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% -10%, rgba(96, 111, 145, 0.2), transparent 33rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(241, 208, 122, 0.72);
  outline-offset: 4px;
}

::selection {
  color: #100d06;
  background: var(--accent-bright);
}

.container {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 50%;
  width: min(1120px, calc(100% - 28px));
  transform: translateX(-50%);
  transition: transform 0.45s var(--ease), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav-shell {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  transition: inherit;
}

.site-header.is-scrolled .nav-shell,
.site-header.is-open .nav-shell {
  border-color: var(--line);
  background: rgba(10, 13, 19, 0.78);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 106px;
  height: 40px;
  object-fit: contain;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(245, 247, 250, 0.76);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-cta {
  margin-left: 6px;
  color: #151106;
  background: var(--accent-bright);
}

.nav-links .nav-cta:hover {
  color: #080705;
  background: #ffe39a;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(241, 208, 122, 0.2);
  border-radius: 50%;
  color: var(--accent-bright);
  background:
    radial-gradient(circle at 35% 30%, rgba(241, 208, 122, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 18px rgba(216, 179, 91, 0.05), 0 0 0 0 rgba(216, 179, 91, 0);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.35s ease, transform 0.35s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(241, 208, 122, 0.5);
  box-shadow: inset 0 0 20px rgba(216, 179, 91, 0.09), 0 0 24px rgba(216, 179, 91, 0.12);
  transform: rotate(-5deg);
}

.space-menu-icon {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.space-menu-orbit,
.space-menu-close {
  transform-origin: 16px 16px;
  transition: opacity 0.28s ease, transform 0.55s var(--ease);
}

.space-menu-planet {
  fill: rgba(216, 179, 91, 0.17);
  stroke: currentColor;
  stroke-width: 1.4;
}

.space-menu-ring,
.space-menu-star,
.space-menu-close path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.space-menu-ring {
  stroke-dasharray: 17 5;
}

.space-menu-star-one {
  animation: menu-star-pulse 2.4s ease-in-out infinite;
}

.space-menu-star-two {
  animation: menu-star-pulse 2.4s 1.2s ease-in-out infinite;
}

.space-menu-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.site-header.is-open .nav-toggle {
  border-color: rgba(241, 208, 122, 0.5);
  background: rgba(216, 179, 91, 0.1);
  box-shadow: inset 0 0 22px rgba(216, 179, 91, 0.12), 0 0 28px rgba(216, 179, 91, 0.12);
}

.site-header.is-open .space-menu-orbit {
  opacity: 0;
  transform: rotate(135deg) scale(0.45);
}

.site-header.is-open .space-menu-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

@keyframes menu-star-pulse {
  0%, 100% { opacity: 0.38; transform: scale(0.72); transform-origin: center; }
  50% { opacity: 1; transform: scale(1.12); transform-origin: center; }
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: end start;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  background: url("../img/space-hero-v2.jpg") 54% center / cover no-repeat;
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.09);
  animation: hero-drift 24s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(4, 7, 12, 0.3), rgba(4, 7, 12, 0.08) 38%, rgba(7, 9, 13, 0.98) 100%),
    linear-gradient(90deg, rgba(4, 7, 12, 0.9), rgba(4, 7, 12, 0.12) 68%);
}

@keyframes hero-drift {
  from { transform: scale(1.09) translate3d(-0.4%, -0.2%, 0); }
  to { transform: scale(1.14) translate3d(0.7%, 0.35%, 0); }
}

.starfield {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star-layer {
  position: absolute;
  inset: -12%;
  will-change: transform, opacity;
}

.star-layer-near {
  background-image:
    radial-gradient(circle, rgba(255, 247, 218, 0.95) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(196, 222, 255, 0.85) 0 1px, transparent 1.6px);
  background-position: 11px 19px, 79px 41px;
  background-size: 137px 173px, 191px 149px;
  opacity: 0.5;
  animation: stars-near 34s linear infinite, stars-twinkle 5.5s ease-in-out infinite alternate;
}

.star-layer-mid {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 0.8px, transparent 1.35px),
    radial-gradient(circle, rgba(237, 207, 142, 0.75) 0 0.9px, transparent 1.4px);
  background-position: 27px 13px, 113px 86px;
  background-size: 109px 127px, 167px 181px;
  opacity: 0.42;
  animation: stars-mid 52s linear infinite, stars-twinkle 7.2s 1.3s ease-in-out infinite alternate;
}

.star-layer-far {
  background-image: radial-gradient(circle, rgba(194, 215, 242, 0.62) 0 0.65px, transparent 1.1px);
  background-position: 46px 31px;
  background-size: 73px 91px;
  opacity: 0.34;
  animation: stars-far 75s linear infinite;
}

.shooting-star {
  position: absolute;
  top: 20%;
  right: 18%;
  width: 120px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 211, 0.88));
  filter: drop-shadow(0 0 5px rgba(255, 239, 192, 0.7));
  opacity: 0;
  transform: rotate(-28deg) translateX(0);
  animation: shooting-star 12s 4s ease-in-out infinite;
}

.shooting-star::after {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: #fff9e9;
  box-shadow: 0 0 10px #fff3c9;
}

@keyframes stars-near {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1.02); }
  to { transform: translate3d(3.5%, 2.5%, 0) scale(1.02); }
}

@keyframes stars-mid {
  from { transform: translate3d(2%, -2%, 0) scale(1.01); }
  to { transform: translate3d(-2.5%, 3%, 0) scale(1.01); }
}

@keyframes stars-far {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(2%, -2%, 0); }
}

@keyframes stars-twinkle {
  0% { opacity: 0.28; }
  45% { opacity: 0.54; }
  100% { opacity: 0.36; }
}

@keyframes shooting-star {
  0%, 72%, 100% { opacity: 0; transform: rotate(-28deg) translateX(0); }
  75% { opacity: 0.85; }
  84% { opacity: 0; transform: rotate(-28deg) translateX(-540px); }
}

.hero-content {
  width: var(--page);
  margin-inline: auto;
  padding: 150px 0 clamp(76px, 11vw, 130px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(50px, 8.6vw, 112px);
  font-weight: 650;
  letter-spacing: -0.068em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: rgba(245, 247, 250, 0.68);
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(245, 247, 250, 0.76);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  text-wrap: balance;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
}

.button-primary {
  border-color: var(--accent-bright);
  color: #171105;
  background: var(--accent-bright);
  box-shadow: 0 12px 34px rgba(216, 179, 91, 0.19);
}

.button-primary:hover {
  border-color: #ffe39a;
  background: #ffe39a;
  box-shadow: 0 16px 40px rgba(216, 179, 91, 0.28);
}

.button .arrow {
  transition: transform 0.3s var(--ease);
}

.button:hover .arrow {
  transform: translateX(3px);
}

.scroll-cue {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue::after {
  width: 42px;
  height: 1px;
  content: "";
  background: currentColor;
  animation: pulse-line 2.2s ease-in-out infinite;
}

@keyframes pulse-line {
  50% { opacity: 0.35; transform: scaleX(0.65); }
}

.section {
  position: relative;
  padding: clamp(90px, 12vw, 160px) 0;
}

.section-tight {
  padding-block: clamp(70px, 9vw, 110px);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.65fr);
  gap: 56px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section-header h2,
.story-copy h2,
.contact-copy h2,
.article-card h2 {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 1;
  text-wrap: balance;
}

.section-header > p,
.story-copy > p:first-of-type,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.portrait-wrap {
  position: sticky;
  top: 110px;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 0.9s var(--ease), filter 0.5s ease;
}

.portrait-card:hover img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.02);
}

.portrait-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 9, 13, 0.7);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.portrait-caption strong,
.portrait-caption span {
  display: block;
}

.portrait-caption strong {
  font-size: 15px;
}

.portrait-caption span {
  color: var(--muted);
  font-size: 13px;
}

.story-copy {
  padding-top: 10px;
}

.story-copy h2 {
  margin-bottom: 38px;
}

.story-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(245, 247, 250, 0.8);
  font-size: clamp(17px, 1.7vw, 20px);
}

.text-link {
  position: relative;
  color: var(--accent-bright);
  font-weight: 650;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.services-section {
  overflow: hidden;
  background-color: #05080d;
  background-image:
    linear-gradient(180deg, var(--bg), transparent 12%, transparent 88%, var(--bg)),
    url("../img/space-services-v3.png");
  background-position: center, center top;
  background-size: auto, 1254px 1254px;
  background-repeat: no-repeat, repeat;
}

.services-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.54), rgba(5, 8, 13, 0.2) 30%, rgba(5, 8, 13, 0.24) 72%, rgba(5, 8, 13, 0.56));
}

.services-section > .container {
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  grid-column: span 6;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  isolation: isolate;
}

.service-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}

.service-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.08), rgba(6, 8, 13, 0.93));
}

.service-card:hover img {
  transform: scale(1.045);
  filter: brightness(1.05);
}

.service-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(24px, 4vw, 38px);
}

.service-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-card h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(28px, 3.7vw, 45px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.service-card p {
  max-width: 500px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-card-wide {
  grid-column: span 7;
}

.service-card-compact {
  grid-column: span 5;
}

.article-card {
  margin-top: 22px;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(24, 31, 42, 0.95), rgba(10, 13, 18, 0.93));
  box-shadow: var(--shadow);
}

.article-card h2 {
  max-width: 900px;
  margin-bottom: 46px;
}

.article-columns {
  column-count: 2;
  column-gap: clamp(34px, 6vw, 78px);
  color: rgba(245, 247, 250, 0.76);
  font-size: 16px;
}

.article-columns p {
  margin: 0 0 20px;
  break-inside: avoid;
}

.article-columns strong {
  color: var(--text);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24, 30, 40, 0.84), rgba(12, 15, 21, 0.84));
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.quote-card:hover {
  transform: translateY(-7px);
  border-color: rgba(216, 179, 91, 0.36);
}

.quote-mark {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 0.7;
}

.quote-card blockquote {
  margin: 28px 0;
  color: rgba(245, 247, 250, 0.78);
  font-size: 16px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 13px;
}

.quote-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-author strong,
.quote-author span {
  display: block;
}

.quote-author strong {
  font-size: 14px;
}

.quote-author span {
  color: var(--muted);
  font-size: 12px;
}

.contact-section {
  padding-top: clamp(70px, 9vw, 110px);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: center;
  padding: clamp(32px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(216, 179, 91, 0.14), transparent 30rem),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  max-width: 650px;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  display: grid;
  gap: 13px;
}

.field label {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field input {
  min-height: 54px;
  padding: 0 17px;
}

.field textarea {
  min-height: 148px;
  padding: 15px 17px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(241, 208, 122, 0.65);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(216, 179, 91, 0.08);
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
  border: 0;
}

.site-footer {
  padding: 34px 0;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* Text remains visible without JavaScript and before scroll observation. */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  animation: section-arrive .65s var(--ease);
}

@keyframes section-arrive {
  from { transform: translateY(18px); }
  to { transform: none; }
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

.page-hero {
  position: relative;
  display: grid;
  min-height: 58svh;
  place-items: end start;
  overflow: hidden;
  padding: 150px 0 78px;
  isolation: isolate;
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
}

.page-hero::before {
  background: var(--hero-image, url("../img/sternenhimmel_1048-11828.avif")) center / cover no-repeat;
  filter: saturate(0.75);
}

.page-hero::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.35), var(--bg));
}

.page-hero h1 {
  max-width: none;
  font-size: clamp(56px, 9vw, 114px);
  text-transform: uppercase;
}

.page-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(245, 247, 250, 0.72);
  font-size: clamp(17px, 2vw, 21px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.gallery-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-7px);
  border-color: rgba(216, 179, 91, 0.42);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32);
}

.gallery-card-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0c1016;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card-body {
  padding: 24px;
}

.gallery-card h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.gallery-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  border: 0;
  background: rgba(3, 5, 8, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.lightbox[open] {
  opacity: 1;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  cursor: pointer;
}

.legal-wrap {
  padding: 150px 0 90px;
}

.legal-header {
  max-width: 760px;
  margin-bottom: 60px;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 650;
  letter-spacing: -0.06em;
}

.legal-card {
  max-width: 900px;
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.legal-card section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 13px;
  color: var(--accent-bright);
  font-size: 20px;
  letter-spacing: -0.015em;
}

.legal-card p {
  margin: 0;
  color: rgba(245, 247, 250, 0.7);
  font-size: 15px;
}

.cookie-notice {
  position: fixed;
  z-index: 1500;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(410px, calc(100% - 36px));
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 19, 26, 0.91);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-actions a {
  color: var(--accent-bright);
  font-size: 13px;
}

.cookie-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #131006;
  background: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  :root { --page: min(100% - 32px, 720px); }

  .nav-toggle { display: grid; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(10, 13, 19, 0.95);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.35s var(--ease);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .site-header.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links a {
    width: 100%;
    min-height: 48px;
  }

  .nav-links .nav-cta { margin: 4px 0 0; }

  .section-header,
  .story-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .section-header { gap: 22px; }

  .portrait-wrap {
    position: static;
    max-width: 480px;
  }

  .service-card,
  .service-card-wide,
  .service-card-compact {
    grid-column: span 12;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .quote-card { min-height: 0; }

  .gallery-card { grid-column: span 6; }
}

@media (max-width: 640px) {
  :root { --page: calc(100% - 28px); }

  body { font-size: 16px; }

  .site-header { top: 8px; width: calc(100% - 16px); }

  .nav-shell { min-height: 58px; padding: 6px 8px 6px 14px; border-radius: 18px; }

  .brand img { width: 92px; height: 34px; }

  .hero { min-height: 92svh; }

  .hero::before { background-position: 38% center; }

  .hero-content { padding-top: 130px; padding-bottom: 78px; }

  .hero h1 { font-size: clamp(46px, 15vw, 68px); }

  .hero-actions .button { width: 100%; }

  .scroll-cue { display: none; }

  .section { padding-block: 84px; }

  .service-grid { gap: 14px; }

  .service-card { min-height: 380px; border-radius: var(--radius); }

  .article-card { border-radius: var(--radius); }

  .article-columns { column-count: 1; }

  .contact-shell { padding: 28px 18px; border-radius: var(--radius); }

  .footer-shell { align-items: flex-start; flex-direction: column; }

  .gallery-card { grid-column: span 12; }

  .page-hero { min-height: 52svh; padding-bottom: 56px; }

  .page-hero h1 { font-size: clamp(48px, 17vw, 78px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .services-section { background-attachment: scroll; }
}
