/* Quantum Sound — site styles */

:root {
  --bg: #000;
  --bg-2: #0b0a09;
  --ink: #ede4d3;          /* bone, sampled from the logo linework */
  --ink-2: #b9b0a0;
  --muted: #7d766a;
  --line: rgba(237, 228, 211, 0.14);
  --line-strong: rgba(237, 228, 211, 0.32);
  --glow: rgba(237, 228, 211, 0.08);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

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

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

::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

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

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.display em { font-style: italic; }

h2.display { font-size: clamp(40px, 6.4vw, 84px); }

.lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

p { margin: 0 0 1.1em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

/* Placeholder content still to be filled in */
.ph {
  border-bottom: 1px dashed var(--muted);
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; border-radius: 50%; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav a { color: var(--ink-2); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }

.lang {
  display: flex;
  gap: 2px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.lang a, .lang span {
  padding: 4px 8px;
  border-radius: 999px;
}
.lang span { background: var(--ink); color: var(--bg); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s;
}
.menu-toggle span + span { margin-top: 7px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: #000;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .lang { margin-top: 18px; }
  .nav .lang a, .nav .lang span { border: 0; width: auto; padding: 6px 12px; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .menu-open .header { background: #000; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 24px) 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-logo {
  width: min(540px, 86%, 75vh);
  margin: 0 auto 44px;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.012); filter: brightness(1.12); }
}

.hero h1 {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 500;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  text-transform: uppercase;
}

.tagline {
  margin: 18px 0 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1;
  color: var(--ink);
}

.subline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted);
  margin: 0 0 32px;
}

.hero-copy {
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-copy strong {
  display: block;
  font-weight: 400;
  color: var(--ink);
  font-size: 19px;
  margin-bottom: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--line-strong), transparent);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ---------- Sections ---------- */

section { position: relative; }

.section {
  padding: clamp(96px, 14vw, 180px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .num { color: var(--ink-2); }
.section-head .rule { flex: 1; height: 1px; background: var(--line); }

/* What we do */

.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.about-body { padding-top: 12px; }
.about-body p { font-size: 18px; }

.pull {
  margin: clamp(64px, 9vw, 120px) 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.pull blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.2;
  max-width: 22ch;
}

/* Services */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 64px minmax(160px, 1fr) 2fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.3s;
}
.service:hover { background: linear-gradient(90deg, var(--glow), transparent 70%); }
.service .label { padding-left: 4px; }
.service h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}
.service p { margin: 0; max-width: 54ch; }

/* Field layer */

.field {
  background: radial-gradient(ellipse 80% 60% at 20% 40%, #12100e, var(--bg) 70%);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 7vw, 120px);
}

.field-visual {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
}
.field-visual .lead { margin-top: 28px; }

.merkabah {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  color: var(--ink);
}
.merkabah .tri-a { transform-origin: 50% 50%; animation: spin 48s linear infinite; }
.merkabah .tri-b { transform-origin: 50% 50%; animation: spin 48s linear infinite reverse; }
.merkabah .orbit { transform-origin: 50% 50%; animation: spin 120s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.field-items { list-style: none; margin: 0; padding: 0; }
.field-items li {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.field-items li:last-child { border-bottom: 1px solid var(--line); }
.field-items h3 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
}
.field-items h3 .label { flex: none; }

.field-close {
  margin-top: 48px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
}

/* Symbiosis */

.symbiosis {
  overflow: hidden;
  text-align: center;
}
.symbiosis .rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.symbiosis .rings span {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  aspect-ratio: 1;
  animation: pulse 8s ease-out infinite;
  opacity: 0;
}
.symbiosis .rings span:nth-child(1) { width: 40vmax; }
.symbiosis .rings span:nth-child(2) { width: 40vmax; animation-delay: 2s; }
.symbiosis .rings span:nth-child(3) { width: 40vmax; animation-delay: 4s; }
.symbiosis .rings span:nth-child(4) { width: 40vmax; animation-delay: 6s; }

@keyframes pulse {
  0% { transform: scale(0.2); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.symbiosis .wrap { position: relative; max-width: 880px; }
.symbiosis .display { font-size: clamp(44px, 7.4vw, 104px); margin: 20px 0 36px; }
.symbiosis p { font-size: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }

.edition {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 48px;
  padding: 20px 20px 20px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}
.edition .when { font-size: 16px; color: var(--ink); }
.edition .when .label { margin-right: 10px; }

/* Contact */

.contact { text-align: left; }
.contact .display { font-size: clamp(48px, 9vw, 132px); margin-bottom: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}
.contact-grid > p { font-size: clamp(19px, 1.8vw, 22px); color: var(--ink); max-width: 30ch; }
.contact-links { display: grid; gap: 4px; }
.contact-links a {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.3;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-links a:hover { border-color: var(--ink); }
.contact-meta { margin: 28px 0 32px; }

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer .brand img { width: 40px; height: 40px; }
.footer small { color: var(--muted); font-size: 13px; }
.footer em { font-family: var(--serif); font-size: 18px; color: var(--ink-2); }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about,
  .field-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .field-visual { position: relative; top: 0; }
  .merkabah { max-width: 280px; }

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

  .service { grid-template-columns: 44px 1fr; row-gap: 8px; }
  .service p { grid-column: 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { letter-spacing: 0.2em; font-size: 12px; }
  .hero h1 { letter-spacing: 0.4em; text-indent: 0.4em; }
  .actions .btn { width: 100%; justify-content: center; }
  .edition { border-radius: 24px; padding: 24px; flex-direction: column; }
  .edition .btn { width: 100%; justify-content: center; }
  .service { grid-template-columns: 1fr; }
  .service p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .symbiosis .rings span { opacity: 1; }
  .symbiosis .rings span:nth-child(2) { width: 60vmax; }
  .symbiosis .rings span:nth-child(3) { width: 80vmax; }
  .symbiosis .rings span:nth-child(4) { width: 100vmax; }
}

/* ---------- Photography ---------- */

figure { margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: 4fr 3fr;   /* 4:3 + 1:1 images land at the same height */
  gap: 16px;
  margin-top: clamp(56px, 8vw, 104px);
}

.gallery img,
.field-media img {
  width: 100%;
  border-radius: 4px;
  background: var(--bg-2);
}

.field-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.field-media--wide { grid-template-columns: 1fr; }

.symbiosis-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.symbiosis-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.symbiosis-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)),
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0, 0, 0, 0.55), transparent);
}

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