:root {
  --color-bg: #050807;
  --color-bg-soft: #0a100f;
  --color-surface: #0d1412;
  --color-surface-elevated: #121b18;
  --color-text: #edf4ee;
  --color-muted: #96a39b;
  --color-border: rgba(185, 213, 195, 0.16);
  --color-accent: #9fd6bf;
  --color-accent-soft: rgba(159, 214, 191, 0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.42);
  --container-width: 1180px;
}

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

* {
  margin: 0;
}

html {
  color-scheme: dark;
  background: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

::selection {
  background: var(--color-accent);
  color: #07100d;
}

.container {
  width: min(calc(100% - 32px), var(--container-width));
  margin-inline: auto;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

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

.section-ghost {
  pointer-events: none;
  object-fit: contain;
  opacity: var(--ghost-opacity, 0);
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75))
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.62))
    drop-shadow(0 22px 32px rgba(0, 0, 0, 0.5));
  will-change: opacity;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--secondary {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-text);
}

.button--secondary:hover {
  border-color: rgba(159, 214, 191, 0.42);
  background: rgba(159, 214, 191, 0.08);
}

.hero {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 48px 16px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3.4rem, 10vw, 9rem);
  font-weight: 620;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  animation: fade-up 700ms ease both;
}

.hero__brand {
  --hero-ghost-slot-size: clamp(71px, 12vw, 136px);
  --hero-brand-gap: clamp(4px, 0.8vw, 10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hero-brand-gap);
  width: min(86vw, 900px);
  animation: fade-up 700ms ease both;
}

.hero__ghost {
  flex: 0 0 var(--hero-ghost-slot-size);
  width: var(--hero-ghost-slot-size);
  height: var(--hero-ghost-slot-size);
  opacity: var(--ghost-opacity, 1);
}

.hero__logo {
  width: min(68vw, 720px);
  height: auto;
}

.picture-section {
  height: 165vh;
  background: #020303;
}

.picture-section__frame {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.picture-section__media {
  display: block;
  width: 100%;
  height: 100%;
}

.picture-section__image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--picture-opacity, 1);
  transform: scale(var(--picture-scale, 1));
  transform-origin: center;
  filter: brightness(var(--picture-brightness, 1));
  will-change: opacity, transform, filter;
}

.picture-section.is-scroll-fade-ready .picture-section__image {
  opacity: var(--picture-opacity, 0);
  transform: scale(var(--picture-scale, 1.035));
  filter: brightness(var(--picture-brightness, 0.72));
}

.picture-section__statement {
  position: absolute;
  left: clamp(48px, 11vw, 180px);
  top: 47%;
  z-index: 2;
  width: min(560px, calc(100% - 96px));
  color: #f4f8f4;
  text-align: left;
  transform: translateY(-50%);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.78),
    0 18px 46px rgba(0, 0, 0, 0.55);
}

.picture-section__ghost {
  position: absolute;
  left: 74%;
  top: 50%;
  z-index: 2;
  width: var(--hero-ghost-slot-size, clamp(71px, 12vw, 136px));
  height: var(--hero-ghost-slot-size, clamp(71px, 12vw, 136px));
  transform: translate(-50%, -50%);
}

.picture-section__label {
  margin-bottom: clamp(18px, 2.2vh, 26px);
  color: rgba(244, 248, 244, 0.82);
  font-size: clamp(0.875rem, 1.05vw, 1rem);
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.picture-section__headline {
  font-size: clamp(3.25rem, 3.7vw, 3.375rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.picture-section__headline span {
  display: block;
  white-space: nowrap;
}

.picture-section__frame::before,
.picture-section__frame::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 1;
  width: 100%;
  pointer-events: none;
}

.picture-section__frame::before {
  inset: 0;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(2, 3, 3, 0.82) 0%, transparent 18%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 35%, transparent 65%);
}

.picture-section__frame::after {
  bottom: 0;
  height: clamp(120px, 18vh, 220px);
  background: linear-gradient(0deg, #020303 0%, rgba(2, 3, 3, 0.82) 28%, rgba(2, 3, 3, 0) 100%);
}

.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(64px, 10vw, 128px) 0;
  background: var(--color-bg);
}

.contact__ghost {
  position: absolute;
  left: 50%;
  bottom: clamp(72px, 9.5vh, 96px);
  width: clamp(78px, 13.125vw, 148px);
  height: clamp(78px, 13.125vw, 148px);
  transform: translateX(-50%);
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.76fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact__kicker {
  margin-bottom: 18px;
  color: var(--color-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.contact h2,
.not-found h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.contact__copy {
  max-width: 560px;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.contact__details {
  display: grid;
  gap: 16px;
}

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-row:first-child {
  border-top: 1px solid var(--color-border);
}

.contact-row__label {
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contact-row a {
  width: fit-content;
  color: var(--color-text);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(159, 214, 191, 0.38);
  text-underline-offset: 5px;
}

.contact-row a:hover {
  color: var(--color-accent);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 26px 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.not-found {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 80px 0;
}

.not-found__content {
  width: min(100%, 680px);
}

.not-found p {
  max-width: 420px;
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.not-found .button {
  margin-top: 30px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .picture-section__image {
    object-position: 50% center;
  }

  .picture-section__frame::before {
    background:
      linear-gradient(180deg, rgba(2, 3, 3, 0.62) 0%, transparent 14%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 32%, transparent 65%);
  }

  .picture-section__statement {
    inset: auto 24px calc(48px + env(safe-area-inset-bottom)) 24px;
    width: auto;
    transform: none;
  }

  .picture-section__ghost {
    left: 50%;
    top: 50%;
    width: clamp(53px, 15vw, 78px);
    height: clamp(53px, 15vw, 78px);
  }

  .contact__ghost {
    width: clamp(64px, 18vw, 84px);
    height: clamp(64px, 18vw, 84px);
  }

  .picture-section__label {
    max-width: 260px;
    margin-bottom: 16px;
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
    line-height: 1.35;
  }

  .picture-section__headline {
    max-width: 520px;
    font-size: clamp(2rem, 9.5vw, 2.375rem);
    line-height: 1.08;
  }

  .picture-section__headline span {
    display: inline;
    white-space: normal;
  }

  .picture-section__headline span + span::before {
    content: " ";
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container-width));
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 36px 12px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 18vw, 5.8rem);
  }

  .hero__brand {
    --hero-ghost-slot-size: clamp(53px, 15vw, 78px);
    --hero-brand-gap: 2px;
    width: min(92vw, 390px);
  }

  .hero__logo {
    width: min(58vw, 300px);
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  .picture-section {
    height: auto;
  }

  .picture-section__frame {
    position: relative;
  }

  .picture-section__image {
    opacity: 1;
    transform: none;
  }
}
