/* ============================================================
   OMAN SOUNDS — specimen archive
   pale lab theme · light experimental type · sigils · quiet
   ============================================================ */

@font-face {
  font-family: 'Satoshi';
  src: url('../FONTS/Satoshi-Light.woff2') format('woff2'),
       url('../FONTS/Satoshi-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../FONTS/Satoshi-LightItalic.woff2') format('woff2'),
       url('../FONTS/Satoshi-LightItalic.woff') format('woff');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../FONTS/Satoshi-Regular.woff2') format('woff2'),
       url('../FONTS/Satoshi-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../FONTS/Satoshi-Italic.woff2') format('woff2'),
       url('../FONTS/Satoshi-Italic.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}

@font-face {
  font-family: 'Arpon Display';
  src: url('../FONTS/ArponDisplay.woff2') format('woff2'),
       url('../FONTS/ArponDisplay.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Absans — Collletttivo (SIL OFL). UI / menu / label face. */
@font-face {
  font-family: 'Absans';
  src: url('../FONTS/Absans-Regular.woff2') format('woff2'),
       url('../FONTS/Absans-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Geist — Vercel × basement.studio, SIL OFL 1.1 (see FONTS/Geist-LICENSE.txt).
   Self-hosted variable font: one file covers weights 100–900. */
@font-face {
  font-family: 'Geist';
  src: url('../FONTS/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../FONTS/Geist-Variable-Italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  /* ---- type sources (installed families first, then graceful fallbacks) ---- */
  --f-arpon:   'Arpon Display', 'Geist', sans-serif;
  --f-grotesk: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* ---- type roles · hybrid system: Arpon logotype + Geist grotesk ---- */
  --wordmark: var(--f-arpon);    /* the "oman sounds" logotype */
  --display:  var(--f-arpon);  /* section headings */
  --mono:     var(--f-grotesk);  /* ui / labels */
  --body:     var(--f-grotesk);  /* running text */
  --body-weight: 400;

  --paper: #ededea;
  --ink: #141416;
  --dim: #4f4f49;
  --hair: rgba(20, 20, 22, 0.16);
  color-scheme: light;
  --pad: clamp(1.4rem, 5vw, 5rem);
}

:root[data-theme="dark"] {
  --paper: #050506;
  --ink: #e9e9e4;
  --dim: #7b7b83;
  --hair: rgba(233, 233, 228, 0.17);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: var(--body-weight);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* lenis smooth-scroll integration */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

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

.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.dim { color: var(--dim); }

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

a { color: inherit; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- background specimen ---------- */

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--paper);
}

/* ---------- sigils ---------- */

.sigil {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  fill: none;
}

.sigil path, .sigil circle, .sigil ellipse {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}

.reveal .sigil path, .reveal .sigil circle, .reveal .sigil ellipse,
.sec-head .sigil path, .sec-head .sigil circle, .sec-head .sigil ellipse {
  stroke-dashoffset: 120;
}
.reveal.in .sigil path, .reveal.in .sigil circle, .reveal.in .sigil ellipse {
  animation: sigil-draw 1.6s ease forwards;
}
@keyframes sigil-draw { to { stroke-dashoffset: 0; } }

/* ---------- cursor ---------- */

.cursor-ring { display: none; }

@media (pointer: fine) {
  /* the O logo trails the native cursor */
  .cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: difference;
    transform: translate(-100px, -100px);
  }
  .cursor-ring svg {
    width: 100%; height: 100%;
    stroke: #fff;
    stroke-width: 4.4;
    stroke-linecap: round;
    fill: none;
    transition: stroke-width 0.22s ease;
  }
  .cursor-ring.is-hover svg { stroke-width: 5.4; }
}

/* release preview follows cursor */
.preview {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 190px;
  height: 190px;
  object-fit: cover;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
@media (pointer: fine) {
  .preview { display: block; }
  .preview.on { opacity: 1; }
}

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.3rem var(--pad);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 92%, transparent), transparent);
}

.nav-name { text-decoration: none; }

.nav nav { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); }

.nav nav a {
  text-decoration: none;
  color: var(--dim);
  transition: color 0.25s ease;
}
.nav nav a:hover, .nav nav a.active { color: var(--ink); }

.theme-toggle {
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.25s ease, transform 0.5s ease;
}
.theme-toggle:hover { color: var(--ink); transform: rotate(180deg); }

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  position: relative;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}

.hero-title {
  font-family: var(--wordmark);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 10.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-title em {
  font-style: italic;
  color: var(--dim);
  margin-left: clamp(2.5rem, 10vw, 9rem);
}

.hero-sigil {
  position: absolute;
  top: 0.1em;
  right: clamp(0.5rem, 8vw, 7rem);
  width: clamp(28px, 4vw, 44px);
  height: clamp(28px, 4vw, 44px);
  stroke-width: 1.1;
  opacity: 0.65;
}

.hero-tag { margin-top: clamp(2.5rem, 7vh, 5rem); }

/* ---------- sections ---------- */

.section {
  padding: clamp(8rem, 22vh, 15rem) var(--pad) 0;
  max-width: 1200px;
}

.sec-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }

.sec-label {
  display: inline-block;
  color: var(--dim);
  margin-bottom: 1.1rem;
}

.sec-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
  line-height: 1;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1.2rem;
}

/* reveal — long expo-out easing for a fluid settle */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* index rows cascade in one after another */
.index li {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.index.in li { opacity: 1; transform: none; }
.index.in li:nth-child(2) { transition-delay: 0.08s; }
.index.in li:nth-child(3) { transition-delay: 0.16s; }
.index.in li:nth-child(4) { transition-delay: 0.24s; }
.index.in li:nth-child(5) { transition-delay: 0.32s; }

/* ---------- release index ---------- */

.index { list-style: none; }

.index li { border-bottom: 1px solid var(--hair); }

.index a {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.4rem 0;
  text-decoration: none;
  transition: padding-left 0.3s ease;
}
.index a:hover { padding-left: 0.8rem; }

.idx { color: var(--dim); flex-shrink: 0; }

.ttl {
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: font-style 0s;
}
.index a:hover .ttl { font-style: italic; }

.thin { color: var(--dim); font-size: 0.72em; }

.note { margin-left: auto; flex-shrink: 0; }

.arw {
  flex-shrink: 0;
  color: var(--dim);
  transition: transform 0.3s ease, color 0.3s ease;
}
.index a:hover .arw { transform: translate(3px, -3px); color: var(--ink); }

.stream { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: clamp(0.9rem, 2.2vw, 1.5rem); }
.stream-label { white-space: nowrap; }

/* ---------- works: scroll-driven horizontal strip ---------- */

.works-links {
  margin-top: 0;
  margin-bottom: clamp(1rem, 3vh, 2rem);
}

.hscroll {
  height: 300vh;
  width: 100vw;
  margin-left: calc(-1 * var(--pad));
}

.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(1.5rem, 6vh, 4rem);
}

.htrack {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: max-content;
  padding: 0 var(--pad);
  will-change: transform;
}

.hcard {
  display: block;
  width: min(58vh, 74vw);
  flex-shrink: 0;
  text-decoration: none;
}

.hcard img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--hair);
  filter: grayscale(0.15);
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hcard:hover img { filter: none; transform: scale(1.02); }

.hcard > span { display: block; margin-top: 0.7rem; }

.hcard-more {
  width: min(38vh, 56vw);
  aspect-ratio: 1;
  border: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--dim);
  line-height: 2;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.hcard-more:hover { color: var(--ink); border-color: var(--ink); }

.hprogress {
  margin: clamp(1.5rem, 4vh, 3rem) var(--pad) 0;
  height: 1px;
  background: var(--hair);
  width: min(320px, 50vw);
}
.hprogress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.text-links { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: clamp(3rem, 8vh, 5rem); }
.text-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.text-links a:hover { color: var(--dim); border-color: var(--dim); }

/* ---------- lessons ---------- */

.lessons-line {
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.lessons-note { color: var(--dim); max-width: 44ch; }

.lessons .text-links { margin-top: 2.2rem; }

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

.contact-form { max-width: 540px; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--body);
  font-weight: var(--body-weight);
  font-size: 1.05rem;
  padding: 0.45rem 0;
  outline: none;
  width: 100%;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.contact-form select { appearance: none; cursor: pointer; }
.contact-form option { background: var(--paper); color: var(--ink); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--ink); }

.send {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  padding: 0 0 2px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.send:hover { color: var(--dim); border-color: var(--dim); }
.send:disabled { color: var(--dim); border-color: var(--hair); cursor: wait; }

.form-status { margin-top: 1.4rem; min-height: 1.2em; text-transform: none; }

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

.footer {
  padding: clamp(8rem, 20vh, 14rem) var(--pad) 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.foot-links { line-height: 2.2; }
.foot-links a, .foot-line a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}
.foot-links a:hover, .foot-line a:hover { color: var(--ink); }

.foot-line { border-top: 1px solid var(--hair); padding-top: 1.4rem; }

/* ---------- impressum glass overlay ---------- */

.imp {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(520px, calc(100vw - 2.4rem));
  width: 100%;
  margin: auto;
  color: var(--ink);
}

.imp::backdrop {
  background: color-mix(in srgb, var(--paper) 30%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.imp-card {
  position: relative;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  border: 1px solid var(--hair);
  padding: clamp(1.8rem, 5vw, 3rem);
}

.imp[open] .imp-card { animation: imp-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.imp[open]::backdrop { animation: imp-fade 0.4s ease both; }
@keyframes imp-in {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes imp-fade { from { opacity: 0; } to { opacity: 1; } }

.imp-label { margin-bottom: 0.9rem; }

.imp h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1rem;
  margin-bottom: 1.6rem;
}

.imp-list { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem 1.6rem; align-items: baseline; }
.imp-list dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hair); }
.imp-list dd a:hover { border-color: var(--ink); }

.imp-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.25s ease, transform 0.4s ease;
}
.imp-close:hover { color: var(--ink); transform: rotate(90deg); }

/* ---------- social / platform icons ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.5rem);
}
.hero .socials { margin-top: clamp(1.6rem, 4vh, 2.6rem); }

.soc { display: inline-flex; line-height: 0; }
.soc img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.soc:hover img { opacity: 1; transform: translateY(-2px); }

/* black icons on the light theme, white icons on dark */
.ic-w { display: none; }
:root[data-theme="dark"] .ic-b { display: none; }
:root[data-theme="dark"] .ic-w { display: inline-block; }

.footer .socials { justify-content: center; }
.footer .foot-links { margin-top: 0.4rem; }

/* ---------- responsive ---------- */

@media (max-width: 700px) {
  .nav { padding: 1rem 1.2rem; }
  .nav-name { display: none; }
  .nav nav { width: 100%; justify-content: space-between; gap: 0.5rem; }
  .nav nav a { font-size: 0.72rem; letter-spacing: 0.08em; }
  .note { display: none; }
  .hero-sigil { top: -2.6em; right: 0.5rem; }

  /* works: swap the scroll-jacked pinned strip for a natural swipe row —
     removes the mobile scroll jank around lessons/contact and the big gap */
  .hscroll {
    height: auto;
    margin-left: 0;
    width: 100%;
  }
  .hscroll-sticky {
    position: static;
    height: auto;
    padding-top: 0;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin-left: calc(-1 * var(--pad));
    width: 100vw;
    padding-bottom: 0.5rem;
  }
  .htrack {
    transform: none !important;
    gap: 1rem;
  }
  .hcard { width: 72vw; scroll-snap-align: start; }
  .hcard-more { width: 50vw; }
  .hprogress { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .index li { opacity: 1; transform: none; transition: none; }
  .imp[open] .imp-card, .imp[open]::backdrop { animation: none; }
  .reveal .sigil path, .reveal .sigil circle, .reveal .sigil ellipse,
  .sec-head .sigil path, .sec-head .sigil circle, .sec-head .sigil ellipse {
    stroke-dashoffset: 0; animation: none;
  }
  * { transition-duration: 0.01ms !important; }
}
