:root {
  --bg: #111110;
  --text: #EDEAE4;
  --soft: #CFCBC3;
  --muted: #A8A49C;
  --faint: #8C887F;
  --line: #3A3934;
  --rule: #22211E;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

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

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav */
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 28px; padding-bottom: 28px;
}
.nav-links { display: flex; gap: 32px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-links { align-items: center; }
.nav a.nav-book {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 16px;
  margin: -9px 0;
}
.nav a.nav-book:hover { border-color: var(--muted); }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end;
  padding-top: 24px;
}
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; padding-bottom: 8px; }
.hero h1 {
  margin: 0;
  font-size: clamp(56px, 7.5vw, 112px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero p { margin: 0; max-width: 30ch; font-size: 22px; line-height: 1.4; color: var(--soft); }
.hero img {
  flex: 1 1 440px; min-width: 0; max-width: 620px; width: 100%;
  height: min(760px, calc(100vh - 140px)); min-height: 480px;
  object-fit: cover; object-position: 50% 45%; border-radius: 3px;
}

/* Work */
.work { padding-top: 140px; display: flex; flex-direction: column; gap: 56px; }
.block { display: flex; flex-direction: column; gap: 24px; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.quiet { font-size: 14px; color: var(--muted); }
.quiet:hover { color: var(--text); }

.player { border: 0; border-radius: 12px; width: 100%; height: 352px; display: block; background: #1A1917; }

.recgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px;
}
.rec a { display: flex; flex-direction: column; gap: 10px; }
.rec img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; background: #1A1917; }
.rec .t { font-size: 15px; font-weight: 500; color: var(--text); }
.rec .a { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rec a:hover img { opacity: 0.88; }
.rec[hidden] { display: none; }

.more { display: flex; justify-content: center; padding-top: 8px; }
.btn-ghost {
  font: inherit; font-weight: 500; font-size: 15px;
  padding: 14px 28px; border-radius: 3px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--muted); }

/* Studio */
.studio { padding-top: 160px; display: flex; flex-direction: column; gap: 24px; }
.studio img { width: 100%; height: 640px; object-fit: cover; object-position: 50% 55%; border-radius: 3px; }
.studio p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Contact */
.contact { padding-top: 180px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 64px; }
.contact-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact h2 {
  margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.02;
}
.contact-intro p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--soft); }

.form {
  flex: 1.3 1 480px; min-width: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--text);
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6E6A63; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }

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

.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 12px; }
.btn {
  font: inherit; font-weight: 600; font-size: 16px;
  padding: 16px 32px; border-radius: 3px; border: 0;
  background: var(--text); color: var(--bg); cursor: pointer;
}
.btn:hover { background: #fff; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.form-status { font-size: 15px; color: var(--muted); }
.form-status.ok { color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--rule); }
.footer .wrap {
  padding-top: 32px; padding-bottom: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  font-size: 14px; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Phones */
@media (max-width: 700px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 20px; }
  .hero { gap: 32px; }
  .hero p { font-size: 19px; }
  .hero img { height: 520px; }
  .work { padding-top: 96px; }
  .recgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .studio { padding-top: 112px; }
  .studio img { height: 360px; }
  .contact { padding-top: 120px; padding-bottom: 80px; gap: 40px; }
  .form { grid-template-columns: minmax(0, 1fr); }
}
