:root {
  --bg-primary: #141210;
  --bg-secondary: #1a1714;
  --panel: rgba(45, 41, 36, 0.35);
  --line: rgba(214, 203, 185, 0.26);
  --line-soft: rgba(214, 203, 185, 0.14);
  --text-primary: #e3dbcc;
  --text-muted: #b8ae9d;
  --text-soft: #948c7f;
  --button: #d5ccba;
  --button-text: #181613;
  --max-width: 1140px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 18% 12%, #23201c 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #1b1815 0%, transparent 46%),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 7, 0.2),
    rgba(8, 8, 7, 0.55) 40%,
    rgba(8, 8, 7, 0.7)
  );
  z-index: -1;
}

.grain {
  position: fixed;
  inset: -100%;
  pointer-events: none;
  opacity: 0.14;
  z-index: -1;
  background-image: radial-gradient(#f0e9dc 0.45px, transparent 0.45px);
  background-size: 2px 2px;
  animation: grainDrift 18s steps(8) infinite;
}

.container {
  width: min(92vw, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4vw;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(6px);
  background: rgba(18, 16, 14, 0.3);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 1.4rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.45s ease;
}

.header-nav a:hover {
  color: var(--text-primary);
}

.hero {
  min-height: 98vh;
  display: grid;
  align-items: center;
  padding-top: 7rem;
  position: relative;
  overflow: clip;
}

.hero-lines {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  pointer-events: none;
}

.hero-lines svg {
  width: 100%;
  height: 100%;
}

.line-group path,
.line-group circle,
.line-group rect,
.line-group line {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1;
}

.line-group-a path {
  stroke-dasharray: 8 10;
  animation: dashShiftA 36s linear infinite;
}

.line-group-b path,
.line-group-b circle,
.line-group-b rect,
.line-group-b line {
  stroke-dasharray: 14 22;
  animation: dashShiftB 42s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.kicker {
  margin: 0;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  margin: 0;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.6rem, 8.2vw, 6.2rem);
  margin-top: 0.9rem;
  letter-spacing: 0.01em;
}

.hero-subtext {
  max-width: 620px;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.15rem;
}

.btn {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.84rem 1.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.btn-primary {
  background: var(--button);
  color: var(--button-text);
  border-color: transparent;
}

.btn-primary:hover {
  background: #e4dbcb;
}

.btn-secondary {
  color: var(--text-primary);
  background: rgba(28, 25, 22, 0.5);
}

.btn-secondary:hover {
  border-color: rgba(214, 203, 185, 0.45);
  background: rgba(34, 30, 26, 0.86);
}

section {
  padding: 7.6rem 0;
}

.section-head {
  margin-bottom: 2.7rem;
}

h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
}

.philosophy-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 46ch;
}

.philosophy-copy p + p {
  margin-top: 1.25rem;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.diagram-card {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 1rem;
  min-height: 130px;
}

.diagram-card.wide {
  grid-column: span 2;
}

.diagram-card h3 {
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}

.diagram-card svg {
  width: 100%;
  height: 68px;
}

.diagram-card svg * {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.1;
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.instrument-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(46, 42, 37, 0.45), rgba(28, 25, 22, 0.2));
  min-height: 310px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.55s ease, transform 0.55s ease;
}

.instrument-card:hover {
  border-color: rgba(214, 203, 185, 0.4);
  transform: translateY(-4px);
}

.card-index {
  color: var(--text-soft);
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  margin-bottom: 1.2rem;
}

.instrument-card h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
}

.instrument-card p {
  color: var(--text-muted);
  margin: 0.7rem 0 1.3rem;
  max-width: 30ch;
}

.instrument-card a {
  text-decoration: none;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
}

.instrument-card.placeholder {
  opacity: 0.78;
}

.practice {
  position: relative;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.practice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      120deg,
      rgba(203, 188, 168, 0.07),
      transparent 44%,
      rgba(203, 188, 168, 0.05)
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 34px,
      rgba(214, 203, 185, 0.03) 35px
    );
  pointer-events: none;
}

.practice-inner {
  position: relative;
}

blockquote {
  margin: 1.1rem 0 0;
  padding: 0;
  border: 0;
}

blockquote p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 6vw, 4.7rem);
  line-height: 1.1;
  color: #dbd2c1;
}

blockquote p + p {
  margin-top: 1.2rem;
}

.site-footer {
  padding: 3.6rem 0;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.8rem;
}

.footer-brand {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-note {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

footer nav {
  display: flex;
  gap: 1rem;
}

footer nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

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

@keyframes dashShiftA {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -420;
  }
}

@keyframes dashShiftB {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 520;
  }
}

@keyframes grainDrift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(8%, -4%);
  }
  50% {
    transform: translate(-6%, 6%);
  }
  75% {
    transform: translate(3%, -8%);
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 980px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

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

  .instrument-card {
    min-height: 230px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 5vw;
  }

  .header-nav {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 92vh;
    padding-top: 9.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .diagram-card.wide {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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