/* ═══════════════════════════════════════════════════════════════
   IVAN SANDHAS — styles.css FINAL · PIXEL PERFECT
   Quiet Luxury · Private Gallery · Progressive House
   Palette : #000000 · #FFFFFF · #1A1A1A (only)
   Type    : Jost · letter-spacing 0.16em (Tracking +160) GLOBAL
   Layout  : 15%+ side margins desktop · 10% mobile · breathes
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* STRICT PALETTE — only these three real colors */
  --black:  #000000;
  --white:  #ffffff;
  --line:   #1a1a1a;        /* dividers / sub-borders */
  --depth:  #0f0f0f;         /* gradient depth tone */

  /* White at opacities — still counts as #FFFFFF */
  --w-95: rgba(255,255,255,.95);
  --w-72: rgba(255,255,255,.72);
  --w-50: rgba(255,255,255,.5);
  --w-32: rgba(255,255,255,.32);
  --w-20: rgba(255,255,255,.2);
  --w-10: rgba(255,255,255,.1);
  --w-05: rgba(255,255,255,.05);

  /* Type */
  --font: 'Jost', 'Futura', 'Century Gothic', 'Trebuchet MS', system-ui, sans-serif;
  --tk:   0.16em;            /* core tracking · ALL TEXT */
  --tk-w: 0.24em;            /* labels */
  --tk-x: 0.32em;            /* micro-labels */

  /* Layout */
  --max-narrow: 720px;       /* bio / music / dates / contact */
  --max-wide:  1080px;       /* releases / gallery */

  /* Side gutter — desktop ≈8vw on 1440 = 115px = 16% margin */
  --side: clamp(24px, 8vw, 120px);

  /* Section breathing room */
  --gap-xxl: 220px;
  --gap-xl:  140px;
  --gap-lg:  80px;
  --gap-md:  48px;
  --gap-sm:  24px;

  /* Easing */
  --ease:    cubic-bezier(.25,.46,.45,.94);
  --ease-o:  cubic-bezier(.16,1,.3,1);
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevent any horizontal overflow at root */
  overflow-x: hidden;
  width: 100%;
}
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: var(--tk);          /* global +160 tracking */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  min-height: 100vh;
  width: 100%;
  position: relative;
}
@media (hover: none) { body { cursor: auto; } }
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit; letter-spacing: inherit; color: inherit;
}
:focus-visible { outline: 1px solid var(--w-50); outline-offset: 4px; }
::selection { background: var(--white); color: var(--black); }
hr.div {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0 var(--side);
  position: relative; z-index: 2;
}

/* ── CUSTOM CURSOR (desktop only) ──────────────────────────── */
.cur-dot {
  position: fixed; width: 4px; height: 4px;
  background: var(--white); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  will-change: left,top;
  transition: opacity .3s;
  opacity: 0;
}
.cur-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid var(--w-20); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  will-change: left,top;
  transition: width .3s var(--ease), height .3s var(--ease),
              border-color .3s, opacity .3s;
  opacity: 0;
}
.cur-ring.hov { width: 56px; height: 56px; border-color: var(--w-50); }
@media (hover: none) { .cur-dot, .cur-ring { display: none; } }

/* ── ATMOSPHERIC BACKGROUND ────────────────────────────────── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
/* Animated gradient between #000 and #0F0F0F — Cattaneo depth */
.bg-gradient {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 70% 60% at 30% 30%, var(--depth) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 70%, var(--depth) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--depth) 0%, transparent 60%);
  animation: bg-drift 32s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes bg-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);   opacity: 0.85; }
  33%      { transform: translate3d(2%, -1%, 0) scale(1.04); opacity: 1; }
  66%      { transform: translate3d(-2%, 1%, 0) scale(0.98); opacity: 0.9; }
}
/* Fine SVG film grain overlay */
.bg-grain {
  position: absolute; inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* ── FLOATING NAV (top-left) ───────────────────────────────── */
.float-nav {
  position: fixed;
  top: 40px; left: 40px;
  z-index: 90;
  display: flex; gap: 32px;
}
.float-nav a {
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tk-w);
  text-transform: uppercase;
  color: var(--w-50);
  padding: 4px 0; position: relative;
  transition: color .35s var(--ease);
}
.float-nav a::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-o);
}
.float-nav a:hover, .float-nav a.active { color: var(--white); }
.float-nav a:hover::after, .float-nav a.active::after { transform: scaleX(1); }

/* ── FLOATING LOGO (top-right · 40px breathing room) ───────── */
.float-logo {
  position: fixed;
  top: 40px;
  right: 40px;
  margin-top: 40px;
  margin-right: 40px;
  /* Note: with position:fixed, top/right define the offset. 
     margin reinforces the visual breathing requirement. */
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  transition: opacity .35s var(--ease), transform .35s var(--ease-o);
}
.float-logo:hover { opacity: 0.7; transform: scale(1.06); }
.float-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  /* Logo has black bg + white art — screen blend = white art floats free */
  mix-blend-mode: screen;
  filter: brightness(1.2) contrast(1.05);
  /* Keep crisp on retina */
  image-rendering: -webkit-optimize-contrast;
}

/* ── HAMBURGER (mobile only) ──────────────────────────────── */
.burger {
  display: none;
  position: fixed; top: 26px; left: 24px;
  z-index: 92;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 0;
}
.burger span {
  display: block; width: 22px; height: 1px;
  background: var(--white); transition: .35s var(--ease);
}

/* ── MOBILE MENU ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: translateY(-100%);
  transition: transform .55s var(--ease-o);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu nav {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.mobile-menu nav a {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 200;
  letter-spacing: var(--tk); text-transform: uppercase;
  color: var(--w-32); padding: 12px 32px;
  transition: color .35s var(--ease);
}
.mobile-menu nav a:hover { color: var(--white); }
.m-close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.m-close span {
  position: absolute; width: 22px; height: 1px; background: var(--white);
}
.m-close span:first-child { transform: rotate(45deg); }
.m-close span:last-child  { transform: rotate(-45deg); }
.m-mail {
  margin-top: 56px;
  font-size: 11px; letter-spacing: var(--tk);
  color: var(--w-50);
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.m-mail:hover { color: var(--white); border-color: var(--white); }

/* ── SECTION FRAMES ───────────────────────────────────────── */
.section {
  position: relative;
  padding: var(--gap-xxl) var(--side);
  padding-bottom: calc(var(--gap-xxl) + 100px);
  z-index: 2;
}
.section + .section { padding-top: 0; }
.section + hr.div + .section { padding-top: var(--gap-xxl); }

.frame {
  max-width: var(--max-narrow);
  margin: 0 auto;
}
.frame--wide { max-width: var(--max-wide); }

/* ── BIO GRID (photo + content) ───────────────────────────── */
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.bio-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  position: relative;
}
.bio-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.04) brightness(0.96);
  transition: filter .8s var(--ease), transform .8s var(--ease);
}
.bio-photo:hover img {
  filter: grayscale(0%) contrast(1.06) brightness(1);
  transform: scale(1.02);
}
.bio-content { min-width: 0; }
.bio-content .display { margin-top: 0; }

/* ── TYPE ATOMS ───────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-50);
  margin-bottom: 32px;
  position: relative; padding-left: 30px;
}
.eyebrow::before {
  content: ''; position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--w-50);
}

.s-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 200;
  letter-spacing: var(--tk);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.s-meta {
  font-size: 11px; font-weight: 300;
  letter-spacing: var(--tk-w); text-transform: uppercase;
  color: var(--w-50);
  margin-top: 14px;
}
.s-head { margin-bottom: var(--gap-lg); }

.sub-head {
  margin-top: var(--gap-lg);
  margin-bottom: var(--gap-md);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line);
}
.sub-head .eyebrow { margin-bottom: 0; }

.display {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 200;
  letter-spacing: 0.08em;             /* slightly tighter at huge sizes for readability */
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: var(--gap-md);
}
.display span { display: block; }
.display span:last-child { color: var(--w-50); }

/* PROSE — JUSTIFIED · MANDATORY */
.prose p,
.prose-single {
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: var(--tk);
  color: var(--w-72);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 28px;
}
.prose p:last-child,
.prose-single { margin-bottom: 0; }
.prose-single { margin-bottom: var(--gap-md); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tk-x);
  text-transform: uppercase;
  height: 52px; padding: 0 38px;
  cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; user-select: none;
  background: transparent; color: var(--white);
  transition: background .35s var(--ease),
              color .35s var(--ease),
              border-color .35s var(--ease),
              transform .25s var(--ease-o);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-fill {
  background: var(--white); color: var(--black);
  border-color: var(--white);
}
.btn-fill:hover { background: transparent; color: var(--white); }
.btn-line  { border-color: var(--line); color: var(--white); }
.btn-line:hover { border-color: var(--white); background: var(--w-05); }
.btn-block { width: 100%; }
.cta-row {
  display: flex; justify-content: center;
  margin-top: var(--gap-md);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 200px var(--side) 160px;
  text-align: center;
}

/* Stagger animations on load */
.hero-tag    { animation: rise 1.2s 0.10s var(--ease-o) both; }
.hero-name   { animation: rise 1.4s 0.25s var(--ease-o) both; }
.hero-role   { animation: rise 1.0s 0.55s var(--ease-o) both; }
.hero-genres { animation: rise 1.0s 0.70s var(--ease-o) both; }
.hero-actions{ animation: rise 1.0s 0.85s var(--ease-o) both; }
.hero-cue    { animation: fade 1.0s 1.60s var(--ease-o) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-tag {
  display: block;
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-50);
  margin-bottom: 56px;
}
.hero-name {
  font-size: clamp(54px, 9vw, 148px);
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 48px;
  width: 100%;
  max-width: 100%;
}
.hero-name span { display: block; }
.hero-name span:last-child { color: var(--w-50); }
.hero-role {
  font-size: 11px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-72);
  margin-bottom: 14px;
}
.hero-genres {
  font-size: 10px; font-weight: 300;
  letter-spacing: var(--tk-w); text-transform: uppercase;
  color: var(--w-32);
  margin-bottom: 72px;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero-cue {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 9px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-20);
}
.hero-cue i {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--w-20), transparent);
  animation: cue 2.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.3; transform: scaleY(1);   transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(0.5); transform-origin: top; }
}

/* ── BIO LABELS ───────────────────────────────────────────── */
.labels {
  margin-top: var(--gap-lg);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line);
}
.labels-head {
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-50);
  margin-bottom: 20px;
}
.labels ul {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.labels li {
  font-size: 10px; font-weight: 300;
  letter-spacing: var(--tk-w); text-transform: uppercase;
  color: var(--w-72);
  border: 1px solid var(--line);
  padding: 8px 16px;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.labels li:hover { border-color: var(--w-50); color: var(--white); }

/* ── PLAYERS / IFRAMES ────────────────────────────────────── */
.iframe-wrap {
  width: 100%; overflow: hidden; line-height: 0;
  border: 1px solid var(--line);
}
.iframe-wrap iframe { display: block; width: 100%; border: none; }

/* ── MIXES ────────────────────────────────────────────────── */
.mix { margin-bottom: var(--gap-md); }
.mix:last-of-type { margin-bottom: 0; }
.mix-meta {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mix-num {
  font-size: 11px; font-weight: 400;
  letter-spacing: var(--tk-w); color: var(--w-32);
  flex-shrink: 0;
}
.mix-meta h3 {
  font-size: 14px; font-weight: 400;
  letter-spacing: var(--tk); text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.mix-meta p {
  font-size: 10px; font-weight: 300;
  letter-spacing: var(--tk-w); text-transform: uppercase;
  color: var(--w-50);
}

/* ── RELEASES (3-up grid) ─────────────────────────────────── */
.releases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.release {
  background: var(--black);
  overflow: hidden;
}
.release iframe { display: block; width: 100%; border: none; }

/* ── GALLERY ──────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.g-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
/* Real images go here when added */
.g-frame > img:not(.ph-cell img) {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.92);
  transition: filter .8s var(--ease), transform .8s var(--ease);
}
.g-frame:hover > img:not(.ph-cell img) {
  filter: grayscale(60%) brightness(1);
  transform: scale(1.04);
}
.ph-cell {
  width: 100%; height: 100%;
  background: #050505;
  border: 1px dashed var(--line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  filter: grayscale(100%);
  transition: background .5s var(--ease);
}
.g-frame:hover .ph-cell { background: #0a0a0a; }
.ph-cell img {
  width: 36px; height: 36px;
  object-fit: contain;
  opacity: 0.16;
  mix-blend-mode: screen;
}
.ph-cell span {
  font-size: 9px; font-weight: 400;
  letter-spacing: var(--tk-x);
  color: var(--w-20);
}
.gallery-note {
  margin-top: 24px;
  text-align: center;
  font-size: 10px; font-weight: 300;
  letter-spacing: var(--tk-w);
  color: var(--w-20);
}

/* ── DATES ────────────────────────────────────────────────── */
.dates {
  border-top: 1px solid var(--line);
}
.date-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease);
}
.date-row:hover { padding-left: 8px; }
.date-when {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  min-width: 64px;
}
.d-month {
  font-size: 9px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-50);
}
.d-num {
  font-size: 28px; font-weight: 200;
  color: var(--white); line-height: 1;
}
.date-info h3 {
  font-size: 14px; font-weight: 400;
  letter-spacing: var(--tk); text-transform: uppercase;
  color: var(--white);
  margin-bottom: 5px;
}
.date-info p {
  font-size: 11px; font-weight: 300;
  letter-spacing: var(--tk-w); text-transform: uppercase;
  color: var(--w-50);
}
.date-link {
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .35s var(--ease);
}
.date-link:hover { border-color: var(--white); }
.dates-foot {
  margin-top: var(--gap-md);
  text-align: center;
  font-size: 11px; font-weight: 300;
  letter-spacing: var(--tk); color: var(--w-50);
}
.dates-foot a {
  color: var(--w-72);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.dates-foot a:hover { color: var(--white); border-color: var(--white); }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-block {
  text-align: center;
  padding: var(--gap-md) 0;
  margin-bottom: var(--gap-md);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ct-label {
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-50);
  margin-bottom: 14px;
}
.ct-mail {
  display: inline-block;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  letter-spacing: var(--tk);
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .35s var(--ease);
}
.ct-mail:hover { border-color: var(--white); }

/* ── FORM ─────────────────────────────────────────────────── */
.form { margin-top: var(--gap-md); }
.fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fg { margin-bottom: 18px; }
.fg label {
  display: block;
  font-size: 9px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-50);
  margin-bottom: 10px;
}
.fg input, .fg textarea, .fg select {
  display: block; width: 100%;
  background: transparent; border: none;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px; font-weight: 300;
  letter-spacing: var(--tk);
  padding: 12px 0; min-height: 46px;
  outline: none; border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .35s var(--ease);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--w-20); }
.fg input:focus, .fg textarea:focus, .fg select:focus { border-bottom-color: var(--white); }
.fg select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpolyline points='0,0 5,6 10,0' fill='none' stroke='%23808080' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 28px;
}
.fg select option { background: var(--black); color: var(--white); }
.fg textarea {
  resize: vertical; min-height: 100px; line-height: 1.7;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5); opacity: 0.5; cursor: pointer;
}
.form .btn-block { margin-top: var(--gap-md); }
.form-ok {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 11px; font-weight: 300;
  letter-spacing: var(--tk); color: var(--w-72);
}
.form-ok.show { display: block; }
.epk-row {
  margin-top: var(--gap-md);
  text-align: center;
  font-size: 10px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-32);
}
.epk-row a {
  color: var(--w-72);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.epk-row a:hover { color: var(--white); border-color: var(--white); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: var(--gap-xl) var(--side) 56px;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.f-name {
  font-size: 14px; font-weight: 400;
  letter-spacing: var(--tk-w); text-transform: uppercase;
  color: var(--white); margin-bottom: 14px;
}
.f-tag {
  font-size: 10px; font-weight: 300;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-32); margin-bottom: 56px;
}
.f-socials {
  display: flex; gap: 28px;
  margin-bottom: 56px;
}
.f-socials a {
  display: flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--w-50);
  transition: color .35s var(--ease), transform .35s var(--ease-o);
}
.f-socials a:hover {
  color: var(--white); transform: translateY(-2px);
}
.f-email {
  font-size: 12px; font-weight: 300;
  letter-spacing: var(--tk); color: var(--w-72);
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  margin-bottom: 56px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.f-email:hover { color: var(--white); border-color: var(--white); }
.f-copy {
  font-size: 9px; font-weight: 400;
  letter-spacing: var(--tk-x); text-transform: uppercase;
  color: var(--w-20);
}

/* ── REVEAL ON SCROLL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-o), transform 1s var(--ease-o);
}
.reveal.vis { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.12s; }
.rd2 { transition-delay: 0.24s; }
.rd3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .bg-gradient { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  :root {
    --gap-xxl: 160px;
    --gap-xl:  100px;
    --side:    clamp(24px, 7vw, 80px);
  }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .g-frame:nth-child(n+4) { display: none; }
}

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  :root {
    --gap-xxl: 130px;
    --gap-xl:  80px;
  }
  .float-nav { display: none; }
  .burger    { display: flex; }
  .float-logo {
    top: 24px; right: 24px;
    margin-top: 24px;
    margin-right: 24px;
    width: 40px; height: 40px;
  }
  .releases { grid-template-columns: 1fr; }
  .date-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .date-row .date-link {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 8px;
  }
  /* Bio: photo on top, then text */
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .bio-photo {
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }
}

/* Mobile ≤ 600px — 10% lateral margin */
@media (max-width: 600px) {
  :root {
    --gap-xxl: 96px;
    --gap-xl:  64px;
    --gap-lg:  56px;
    --gap-md:  36px;
    --side:    10vw;            /* 10% lateral · honours request exactly */
  }
  body { line-height: 1.78; }

  .section {
    padding-bottom: calc(var(--gap-xxl) + 60px);
  }

  .float-logo {
    top: 20px; right: 20px;
    margin-top: 20px;
    margin-right: 20px;
    width: 36px; height: 36px;
  }
  .burger { top: 22px; left: 20px; }

  .hero {
    padding: 140px var(--side) 100px;
    min-height: 100svh;
  }
  .hero-name {
    font-size: clamp(46px, 14vw, 80px);
    letter-spacing: 0.06em;
    margin-bottom: 36px;
  }
  .hero-tag    { margin-bottom: 40px; font-size: 9px; }
  .hero-role   { font-size: 10px; }
  .hero-genres { font-size: 9px; margin-bottom: 56px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    gap: 12px;
  }
  .hero-actions .btn { width: 100%; height: 52px; }
  .hero-cue { display: none; }

  .display { font-size: clamp(40px, 12vw, 64px); }
  .prose p, .prose-single { font-size: 13px; line-height: 1.95; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }
  .gallery .g-frame:nth-child(5) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .gallery .g-frame:nth-child(n+6) { display: none; }

  .fg-row { grid-template-columns: 1fr; gap: 0; }

  .date-row {
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  .date-when { min-width: 56px; }
  .d-num { font-size: 24px; }

  .f-socials { gap: 22px; }
  .f-socials a { width: 32px; height: 32px; }
  .f-tag, .f-email { margin-bottom: 40px; }
  .site-footer { padding-bottom: 40px; }
  .eyebrow { margin-bottom: 24px; }
}

/* Very small ≤ 380px — extra protection */
@media (max-width: 380px) {
  .hero-name { letter-spacing: 0.04em; }
  .display   { letter-spacing: 0.04em; }
}

/* ═══════════════════════════════════════════════════════════════
   INSTAGRAM IN-APP BROWSER FIX
   Defensive overrides for IG WebView quirks
   Solves: viewport collapse, fixed-position breakage,
           layout overlap, reveal animations stuck invisible
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 900px) {

  /* ── 1 · ROOT GUARDRAILS ───────────────────────────────── */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
  }

  /* ── 2 · UNIVERSAL SAFE BOX ────────────────────────────── */
  /* Force everything inside main flow to respect 20px gutter */
  .section,
  .hero,
  .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .frame,
  .frame--wide,
  .footer-inner,
  .bio-grid,
  .bio-content,
  .prose,
  .form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ── 3 · FLUID HERO TITLE — never overflows ───────────── */
  .hero-name {
    font-size: clamp(36px, 13vw, 88px) !important;
    letter-spacing: 0.04em !important;
    line-height: 0.92 !important;
    width: 100% !important;
    max-width: 100% !important;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    padding: 0 !important;
  }
  .hero-name span {
    display: block !important;
    width: 100% !important;
  }

  /* Display heading (Bio "Ivan Sandhas") fluid too */
  .display {
    font-size: clamp(32px, 11vw, 64px) !important;
    letter-spacing: 0.04em !important;
    word-break: keep-all;
    width: 100% !important;
  }

  /* ── 4 · HEADER — stack only when critical ─────────────── */
  .float-nav {
    display: none !important;
  }
  .float-logo {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 90 !important;
    flex-shrink: 0;
  }
  .burger {
    position: fixed !important;
    top: 18px !important;
    left: 16px !important;
    margin: 0 !important;
    z-index: 92 !important;
  }

  /* Mobile menu — guarantee full-screen on Instagram WebView */
  .mobile-menu {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  /* ── 5 · PROSE — keep justify but never overflow ──────── */
  .prose p,
  .prose-single,
  .booking-body {
    width: 100% !important;
    max-width: 100% !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* ── 6 · IFRAMES (audio players) ──────────────────────── */
  .iframe-wrap,
  .iframe-wrap iframe,
  .release,
  .release iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ── 7 · GALLERY ───────────────────────────────────────── */
  .gallery {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ── 8 · FORM ELEMENTS ────────────────────────────────── */
  .fg input,
  .fg textarea,
  .fg select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* Stop iOS auto-zoom on focus inside Instagram WebView */
    font-size: 16px !important;
  }
  .fg-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* ── 9 · DATES — flex wrap when space is critical ─────── */
  .date-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }
  .date-when { flex-shrink: 0; }
  .date-info {
    flex: 1 1 0;
    min-width: 0;
  }
  .date-info h3,
  .date-info p {
    word-break: break-word;
  }
  .date-link {
    flex: 0 0 100%;
  }

  /* ── 10 · FOOTER SOCIALS — wrap if needed ─────────────── */
  .f-socials {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 18px !important;
  }

  /* ── 11 · REVEAL ANIMATIONS — failsafe for IG WebView ─── */
  /* Instagram's IntersectionObserver fires inconsistently;
     show all content immediately so nothing stays invisible */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* ── 12 · BACKGROUND — disable heavy fx in WebView ────── */
  .bg-gradient {
    animation: none !important;
    opacity: 0.7;
  }
}

/* ── EXTRA SAFETY · very narrow screens ≤ 380px ─────────── */
@media screen and (max-width: 380px) {
  .section,
  .hero,
  .site-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .hero-name { font-size: clamp(32px, 12vw, 72px) !important; }
  .display   { font-size: clamp(28px, 10vw, 56px) !important; }
  .hero-tag,
  .hero-genres { font-size: 8.5px !important; }
}
