/* Hallmark · macrostructure: cinematic numbered route · tone: dark expedition service · anchor hue: amber orange */
* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-void);
  font-family: var(--font-body);
}

body::before,
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  content: "";
  z-index: -3;
  background: var(--color-void);
}

.ambient {
  z-index: -2;
  opacity: .54;
  background:
    linear-gradient(90deg, var(--color-void), transparent 22%, transparent 78%, var(--color-void)),
    url("./assets/images/pc-reanimatar-home-workshop-2-5.webp") center / cover no-repeat;
  filter: blur(2px) saturate(.75) brightness(.62);
  transform: scale(1.05);
}

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

button,
input {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-void);
  background: var(--color-text);
  border-radius: var(--radius-pill);
  transform: translateY(-160%);
}

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

.site-shell {
  padding: clamp(var(--space-sm), 4vw, var(--space-xl)) 0;
}

.cinema-frame {
  width: min(1180px, calc(100% - clamp(0px, 9vw, 220px)));
  margin: 0 auto;
  overflow: clip;
  border: var(--rule-hair) solid var(--color-line);
  border-radius: var(--radius-frame);
  background: var(--color-stage);
  box-shadow: 0 50px 140px var(--color-shadow);
}

.site-nav {
  position: absolute;
  inset: clamp(var(--space-md), 3vw, var(--space-xl)) clamp(var(--space-md), 4vw, var(--space-xl)) auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
}

.brand,
.language,
.site-nav nav,
.footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-void);
  background: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.site-nav nav {
  justify-content: end;
  gap: clamp(var(--space-sm), 3vw, var(--space-lg));
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-nav nav a,
.footer nav a,
.lang {
  color: var(--color-soft);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.site-nav nav a:hover,
.footer nav a:hover {
  color: var(--color-accent);
}

.language {
  gap: var(--space-2xs);
}

.lang {
  min-width: 40px;
  min-height: 40px;
  border: var(--rule-hair) solid var(--color-line);
  border-radius: var(--radius-pill);
  background: oklch(8% 0.015 90 / 44%);
}

.lang.is-active {
  color: var(--color-void);
  border-color: transparent;
  background: var(--color-accent);
}

.panel-image {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.panel-image > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05) brightness(.72);
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}

.panel-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 18%, transparent, oklch(5% 0.015 90 / 38%) 52%, oklch(3% 0.015 90 / 88%) 100%),
    linear-gradient(0deg, oklch(3% 0.015 90 / 92%), transparent 42%, oklch(3% 0.015 90 / 36%));
}

.hero {
  min-height: 760px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-center {
  display: grid;
  justify-items: center;
  gap: var(--space-xs);
  padding: var(--space-xl) var(--space-md);
}

.kicker,
.mini {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  display: grid;
  justify-items: center;
  font-size: var(--text-display);
  line-height: .9;
  text-shadow: 0 18px 56px var(--color-shadow);
}

.hero h1 span {
  display: block;
  max-width: 100%;
  min-width: 0;
}

.hero-center > p:last-of-type {
  color: var(--color-text);
  font-family: var(--font-mono);
  letter-spacing: .34em;
  text-transform: uppercase;
}

.down-link {
  display: grid;
  gap: 0;
  margin-top: var(--space-lg);
  padding: var(--space-xs);
}

.down-link span {
  width: 22px;
  height: 22px;
  border-right: 3px solid var(--color-text);
  border-bottom: 3px solid var(--color-text);
  transform: rotate(45deg);
}

.intro {
  display: grid;
  justify-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  background: var(--color-stage);
}

.section-title {
  display: grid;
  justify-items: center;
  gap: var(--space-xs);
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: .04em;
  text-transform: none;
}

.section-title i,
.scene-copy .mini::after {
  display: block;
  width: 180px;
  height: 2px;
  background: var(--color-accent);
}

.section-title i {
  content: "";
}

.intro > p {
  max-width: 720px;
  color: var(--color-soft);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.75;
  letter-spacing: .04em;
}

.wide-photo {
  min-height: 520px;
}

.service-stack {
  background:
    linear-gradient(90deg, oklch(14% 0.015 100 / 72%), oklch(18% 0.015 100 / 82%)),
    var(--color-stage);
}

.service-scene {
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: clamp(var(--space-lg), 6vw, var(--space-2xl));
}

.service-scene > img {
  filter: saturate(.82) contrast(1.12) brightness(.58);
}

.scene-copy {
  position: relative;
  width: min(460px, 100%);
  display: grid;
  gap: var(--space-sm);
}

.scene-right .scene-copy {
  margin-left: auto;
  text-align: right;
  justify-items: end;
}

.scene-left .scene-copy {
  margin-right: auto;
}

.number {
  position: absolute;
  z-index: -1;
  top: -4.7rem;
  color: oklch(100% 0 0 / 10%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 13vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.scene-right .number {
  right: 0;
}

.scene-left .number {
  left: 0;
}

.scene-copy h2 {
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.scene-copy > p:not(.mini) {
  max-width: 390px;
  color: var(--color-soft);
  line-height: 1.7;
  letter-spacing: .035em;
}

.scene-copy a {
  width: fit-content;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.scene-copy a::after {
  content: " ->";
}

.service-pill {
  display: inline-flex;
  overflow: clip;
  width: fit-content;
  border: var(--rule-hair) solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-ghost);
}

.service-pill strong {
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-display);
}

.service-pill strong + strong {
  border-left: var(--rule-hair) solid var(--color-line);
}

.request {
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.request::after {
  background:
    radial-gradient(circle at 50% 38%, transparent, oklch(3% 0.015 90 / 50%) 58%, oklch(3% 0.015 90 / 96%) 100%),
    linear-gradient(0deg, oklch(3% 0.015 90 / 88%), transparent 45%);
}

.request-box {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: var(--space-md);
}

.request h2 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.05;
}

.request p {
  max-width: 560px;
  color: var(--color-soft);
  line-height: 1.65;
}

form {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--space-sm);
}

label {
  position: relative;
}

label span {
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  color: var(--color-soft);
  font-size: var(--text-sm);
  transform: translateY(-50%);
  pointer-events: none;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 var(--space-sm);
  color: var(--color-text);
  border: var(--rule-hair) solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: oklch(100% 0 0 / 8%);
}

input:focus + span {
  color: var(--color-accent);
}

form button {
  min-height: 54px;
  padding: 0 var(--space-lg);
  color: var(--color-void);
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px oklch(71% 0.16 54 / 32%);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) clamp(var(--space-md), 5vw, var(--space-2xl));
  background: oklch(11% 0.014 100);
}

.footer-logo {
  color: var(--color-accent);
  font-family: var(--font-script);
  font-size: 1.7rem;
}

.footer nav {
  justify-content: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer p {
  justify-self: end;
  max-width: 260px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .panel-image:hover > img {
    transform: scale(1.035);
    filter: saturate(.95) contrast(1.08) brightness(.78);
  }
}

@media (max-width: 900px) {
  .site-shell {
    padding: var(--space-sm) 0;
  }

  .cinema-frame {
    width: calc(100% - var(--space-sm));
    border-radius: 2rem;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-nav nav {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .service-scene {
    min-height: 620px;
    align-items: end;
  }

  .scene-right .scene-copy,
  .scene-left .scene-copy {
    margin: 0;
    text-align: left;
    justify-items: start;
  }

  .scene-right .number,
  .scene-left .number {
    left: 0;
    right: auto;
  }

  form,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer,
  .footer p {
    text-align: center;
    justify-items: center;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .site-nav {
    inset: var(--space-sm) var(--space-sm) auto;
  }

  .brand span:last-child {
    font-size: .9rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    width: min(100%, 360px);
    font-size: clamp(2.35rem, 13.4vw, 3.85rem);
    letter-spacing: .04em;
  }

  .hero h1 span:last-child {
    font-size: .78em;
    letter-spacing: .035em;
  }

  .hero-center > p:last-of-type {
    font-size: .78rem;
    letter-spacing: .18em;
  }

  .intro {
    padding: var(--space-xl) var(--space-sm);
  }

  .wide-photo {
    min-height: 360px;
  }

  .service-scene {
    min-height: 560px;
    padding: var(--space-xl) var(--space-sm);
  }

  .scene-copy {
    max-width: 340px;
  }

  .number {
    top: -3.4rem;
    font-size: 5.7rem;
  }

  .scene-copy h2,
  .request h2 {
    letter-spacing: .05em;
  }

  .request {
    min-height: 600px;
  }

  input,
  form button {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: var(--dur-reduced) !important;
    scroll-behavior: auto !important;
    transition-duration: var(--dur-reduced) !important;
  }
}
