/* ==========================================================================
   RODIN.STUDIO — design tokens
   Dark home-studio base + Soviet-retro red from the RODINA Production mark.
   ========================================================================== */

:root {
  --bg: #0c0c0e;
  --bg-elev: #16161a;
  --bg-elev-2: #1e1e23;
  --line: rgba(245, 240, 230, 0.09);

  --red: #e31e24;
  --red-deep: #9c1318;
  --red-glow: rgba(227, 30, 36, 0.35);

  --violet: #b24bff;
  --cyan: #35e0e0;

  --ink: #f3efe6;
  --ink-dim: #cfc9bd;
  --muted: #8b8884;

  --radius: 2px;
  --wrap: 1180px;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* -------------------------------------------------------------- type -- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.98; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; }
h3 { font-size: 1.15rem; letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}

p { color: var(--ink-dim); margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-dim); max-width: 46ch; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------ layout -- */

section { padding: 96px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 64px 0; }
}

/* ------------------------------------------------------------- star --- */

.star-mark {
  height: 1em;
  width: auto;
  display: inline-block;
}

/* --------------------------------------------------------------- nav -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 14, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.brand .star-mark { width: auto; height: 32px; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.main-nav a {
  color: var(--ink-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] { color: var(--ink); }
nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg-elev);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 16px 28px; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
}

/* -------------------------------------------------------------- btn -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--red);
  color: var(--ink);
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn.solid { background: var(--red); border-color: var(--red); }
.btn:hover { box-shadow: 0 0 0 1px var(--red), 0 0 30px var(--red-glow); }

/* -------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  border-top: none;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,14,0.35) 0%, rgba(12,12,14,0.55) 55%, rgba(12,12,14,0.96) 100%),
    linear-gradient(100deg, rgba(12,12,14,0.65) 0%, rgba(12,12,14,0.1) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
  width: 100%;
}

.line-red { color: var(--red); }

.hero-foot {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero--short { min-height: 52vh; }
.hero--short .hero-content { padding-bottom: 56px; }

.contact-hero { position: relative; overflow: hidden; padding-top: 64px; }
.contact-decor {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 62%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  z-index: 0;
}
.contact-hero .wrap { position: relative; z-index: 1; text-align: right; }
.contact-hero .eyebrow { flex-direction: row-reverse; }
.contact-hero .lede { margin-left: auto; }
@media (max-width: 820px) {
  .contact-decor { width: 100%; opacity: 0.5; }
  .contact-hero .wrap { text-align: left; }
  .contact-hero .eyebrow { flex-direction: row; }
  .contact-hero .lede { margin-left: 0; }
}

/* ---------------------------------------------------------- services -- */

.svc-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-row {
  background: var(--bg);
  padding: 30px 6px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: baseline;
}
.svc-row .num { font-family: var(--font-mono); color: var(--red); font-size: 0.9rem; }
.svc-row h3 { text-transform: none; font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; margin-bottom: 6px; }
.svc-row p { margin: 0; max-width: 56ch; }
.svc-row .price { font-family: var(--font-mono); color: var(--ink-dim); font-size: 0.85rem; white-space: nowrap; }

@media (max-width: 640px) {
  .svc-row { grid-template-columns: 1fr; gap: 8px; }
  .svc-row .price { order: -1; color: var(--red); }
}

/* --------------------------------------------------------------- gear -- */

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 7px 13px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ gallery -- */

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4px;
}
.gallery img { height: 100%; object-fit: cover; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- cta --- */

.cta {
  text-align: center;
  padding: 110px 0;
  position: relative;
}
.cta h2 { max-width: 18ch; margin: 0 auto 28px; }

/* ------------------------------------------------------------ contact -- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: block;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.contact-item:first-child { border-top: none; }
.contact-item .eyebrow { margin-bottom: 8px; }
.contact-item .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 0;
}
a.contact-item:hover .value { color: var(--red); }

.qr-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 14px; }
.qr-item { width: 200px; text-align: center; }
@media (max-width: 480px) {
  .qr-item { width: 140px; }
}
.qr-img { width: 100%; height: auto; display: block; }
.qr-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.qr-item a:hover .qr-label { color: var(--red); }

/* --------------------------------------------------------------- form -- */

form.booking { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* -------------------------------------------------------------- footer -- */

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
footer a:hover { color: var(--red); }

/* ----------------------------------------------------------- ambient bg -- */

.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-ambient span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
  animation: drift 24s ease-in-out infinite alternate;
}
.bg-ambient span:nth-child(1) { background: var(--red); top: -12%; left: -10%; }
.bg-ambient span:nth-child(2) {
  background: var(--violet);
  top: 26%; right: -16%;
  animation-duration: 30s;
  animation-delay: -6s;
}
.bg-ambient span:nth-child(3) {
  background: var(--cyan);
  bottom: -18%; left: 22%;
  animation-duration: 36s;
  animation-delay: -14s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6%, 8%) scale(1.18); }
}

.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* -------------------------------------------------------- hero load-in -- */

.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: lineIn 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero h1 .line:nth-child(1) { animation-delay: .15s; }
.hero h1 .line:nth-child(2) { animation-delay: .32s; }

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

.hero .eyebrow,
.hero .hero-foot {
  opacity: 0;
  animation: lineIn 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero .eyebrow { animation-delay: .02s; }
.hero .hero-foot { animation-delay: .5s; }
.hero .lede:only-child { animation: lineIn 0.9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .5s; opacity: 0; }

/* ------------------------------------------------------------- reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: .24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: .32s; }

/* ------------------------------------------------------ hover: spotlight */

.svc-row { position: relative; }
.svc-row > * { position: relative; z-index: 1; }
.svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--red-glow), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.svc-row:hover::before { opacity: 1; }

/* ------------------------------------------------------- hover: magnetic */

.btn {
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .bg-ambient { display: none; }
}

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