/* The public front page (src/landing.js). Dark, glass and film, in the studio's black and wine.
   Modern CSS throughout, each piece degrading to a plain, readable page where a browser lacks it:
   scroll-driven animations, @property, @starting-style, view transitions, container queries. */

@font-face { font-family: 'Anton'; src: url('/fonts/anton.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('/fonts/nunito-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('/fonts/nunito-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('/fonts/nunito-sans-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

@view-transition { navigation: auto; }

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@property --glow { syntax: '<percentage>'; initial-value: 0%; inherits: false; }

:root {
  --ink: #f6eee9;
  --muted: rgb(246 238 233 / .66);
  --night: #0b0909;
  --deep: #1a1414;
  --wine: #ac4451;
  --wine-hi: #c46b77;
  --gold: #ac4451;   /* the logo has one colour for its lettering, so the gold is wine too */
  --glass: rgb(255 255 255 / .07);
  --glass-edge: rgb(255 255 255 / .14);
  --r: 28px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--ink);
  font: 400 17px/1.55 'Nunito Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgb(172 68 81 / .28), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgb(172 68 81 / .07), transparent 60%),
    var(--night);
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { text-wrap: pretty; }

/* Film grain over everything, so the flat darks feel like a photograph. */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { to { transform: translate(8%, -6%); } }

/* Liquid glass: blurred, saturated, lit along the top edge. */
.glass {
  background: linear-gradient(180deg, rgb(255 255 255 / .10), rgb(255 255 255 / .03)), var(--glass);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .25), 0 20px 60px -20px rgb(0 0 0 / .6);
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0;
  width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
  @starting-style { opacity: 0; translate: -50% -30px; }
}
/* EL SOMA as the logo sets it: hollow Anton capitals, the wine outline on the dark. */
.brand { font: 400 24px/1 'Anton', 'Arial Narrow', Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.2px var(--gold); text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.lang { text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--muted); padding: 8px 6px; }
@media (max-width: 720px) { .nav-links { display: none; } .lang { margin-left: auto; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --angle: 0deg;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 16px; color: #ffffff; isolation: isolate;
  background: linear-gradient(180deg, var(--wine-hi), var(--wine));
  box-shadow: 0 10px 30px -8px rgb(172 68 81 / .7), inset 0 1px 0 rgb(255 255 255 / .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* A slow wine light travels round the edge. */
.btn::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1; padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0 70%, var(--gold) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 4s linear infinite;
}
@keyframes orbit { to { --angle: 360deg; } }
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px -10px rgb(172 68 81 / .9), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn:active { transform: scale(.98); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-glass { background: rgb(255 255 255 / .08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-glass::before { display: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 80px);
  padding: 120px var(--pad) 80px; max-width: 1280px; margin: 0 auto;
}
/* The same film, huge and blurred, washes the whole hero in its colours. */
.hero-ambient {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  filter: blur(80px) saturate(160%) brightness(.45); opacity: .7; transform: scale(1.3);
  mask-image: radial-gradient(70% 70% at 70% 50%, #000 30%, transparent 75%);
}
.eyebrow { margin: 0 0 18px; font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.display { font-size: clamp(54px, 9.5vw, 132px); font-weight: 400; font-variation-settings: 'opsz' 144; }
.display span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.display span:nth-child(2) { animation-delay: .12s; }
.display span:nth-child(3) { animation-delay: .24s; }
.display .gold {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--gold) 20%, #ffd6dc 45%, var(--gold) 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.2s .24s var(--ease) both, shine 6s 1.6s ease-in-out infinite;
}
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(2deg); filter: blur(12px); } }
@keyframes shine { 50% { background-position: 100% 0; } }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 30ch; margin: 26px 0 34px; animation: rise 1.2s .4s var(--ease) both; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1.2s .52s var(--ease) both; }

.film {
  position: relative; margin: 0; justify-self: center; width: min(400px, 100%); aspect-ratio: 9 / 16;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, rgb(255 255 255 / .22), rgb(255 255 255 / .04) 40%, rgb(172 68 81 / .18));
  box-shadow: 0 60px 120px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .1), 0 0 120px -20px rgb(172 68 81 / .55);
  animation: float-in 1.4s .2s var(--ease) both;
}
.film video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
/* A sheen across the glass. */
.film::after { content: ''; position: absolute; inset: 10px; border-radius: 36px; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / .18), transparent 30%, transparent 70%, rgb(255 255 255 / .06)); }
@keyframes float-in { from { opacity: 0; transform: translateY(60px) rotateX(18deg) scale(.92); } }

.next {
  position: absolute; left: -48px; bottom: 56px; z-index: 2; display: flex; gap: 14px; align-items: center;
  padding: 14px 20px 14px 16px; border-radius: 22px; text-decoration: none; max-width: 300px;
  animation: rise 1s 1.1s var(--ease) both, bob 6s 2s ease-in-out infinite;
}
.next small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.next strong { display: block; font: 500 21px/1.15 'Fraunces', serif; }
.next em { display: block; font-style: normal; font-size: 14px; color: var(--muted); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.pulse, .live { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #4dd88a; box-shadow: 0 0 0 0 rgb(77 216 138 / .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgb(77 216 138 / 0); } 100% { box-shadow: 0 0 0 0 rgb(77 216 138 / 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--glass-edge); translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 2s infinite; }
@keyframes cue { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .film { width: min(320px, 82%); order: 2; }
  .next { left: -12%; bottom: 28px; }
  .scroll-cue { display: none; }
}

/* As the page scrolls away, the hero sinks back. */
@supports (animation-timeline: scroll()) {
  .hero-copy { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes sink { to { transform: translateY(-80px); opacity: .1; filter: blur(6px); } }
}

/* ---------------------------------------------------------------- marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--glass-edge); padding: 22px 0; background: rgb(255 255 255 / .02); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 40px; width: max-content; animation: slide 40s linear infinite; font: italic 300 clamp(28px, 4vw, 48px)/1 'Fraunces', serif; white-space: nowrap; }
.track i { font-style: normal; color: var(--wine-hi); font-size: .5em; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--pad) 0; }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head h2 { font-size: clamp(38px, 5.5vw, 72px); }
.muted-on-dark { color: var(--muted); }

/* Each block eases in as it scrolls into view (scroll-driven where supported, otherwise landing.js). */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  .reveal { animation: appear linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes appear { from { opacity: 0; transform: translateY(60px) scale(.97); filter: blur(8px); } }
}
@supports not (animation-timeline: view()) {
  .js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Classes */
.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.class-card {
  --x: 50%; --y: 50%;
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end;
  background: var(--deep); isolation: isolate; border: 1px solid var(--glass-edge);
  transition: transform .5s var(--ease);
}
.class-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.8); }
.class-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(23 20 18 / .92)); }
/* A soft light follows the pointer. */
.class-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--x) var(--y), rgb(172 68 81 / .18), transparent 50%); }
.class-card:hover { transform: translateY(-6px); }
.class-card:hover img { transform: scale(1.08); filter: saturate(1) brightness(.9); }
.class-card:hover::after { opacity: 1; }
.class-body { padding: 26px; }
.class-body h3 { font-size: 34px; margin-bottom: 10px; }
.class-body p { margin: 0; color: var(--muted); }

/* This week: one glass bar per day, a chip per class, as in the app. */
.days { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); }
.day { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 26px;
  background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(14px); }
.day-label strong { display: block; font: 500 24px/1 'Fraunces', serif; text-transform: capitalize; padding-left: 10px; }
.day-label small { display: block; padding-left: 10px; margin-top: 4px; font-weight: 800; font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; display: grid; gap: 2px; min-width: 132px; padding: 12px 16px 14px; border-radius: 18px; text-decoration: none;
  background: rgb(255 255 255 / .06); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.chip b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chip span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.chip em { font-style: normal; font-size: 12px; font-weight: 800; }
.chip .few { color: #ffb340; }
.chip .full { color: #ff7a6b; }
.chip:hover { transform: translateY(-3px); background: linear-gradient(180deg, var(--wine-hi), var(--wine)); color: #ffffff; box-shadow: 0 14px 30px -10px rgb(172 68 81 / .8); }
.chip:hover span { color: rgb(255 255 255 / .85); }
.chip.is-full { opacity: .5; border-style: dashed; background: transparent; pointer-events: none; }
@media (max-width: 600px) {
  .day { grid-template-columns: 1fr; }
  .day-label { display: flex; align-items: baseline; gap: 10px; }
  .chip { min-width: calc(50% - 5px); flex: 1; }
}

/* Weekly spot / Flex */
.way-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.way { position: relative; border-radius: var(--r); padding: 36px; padding-top: 180px; overflow: hidden; isolation: isolate; }
/* The studio behind each way, fading into the glass. */
.way::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--photo) center / cover;
  mask-image: linear-gradient(180deg, #000 10%, transparent 75%); opacity: .55; transition: transform 1.2s var(--ease), opacity .6s; }
.way:hover::before { transform: scale(1.06); opacity: .75; }
.way h3 { font-size: 40px; margin: 22px 0 12px; }
.way p { margin: 0; color: var(--muted); font-size: 18px; }
.way-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #ffffff;
  background: linear-gradient(180deg, var(--wine-hi), var(--wine)); box-shadow: 0 12px 30px -8px rgb(172 68 81 / .8); }

/* The app */
.app { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.app h2 { font-size: clamp(38px, 5.5vw, 72px); margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 14px; }
.ticks li { padding-left: 36px; position: relative; font-size: 18px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--night); background: var(--gold); }
.fine { color: var(--muted); font-size: 14px; margin-top: 22px; }
.phone { justify-self: center; width: min(320px, 90%); aspect-ratio: 9 / 19; border-radius: 48px; padding: 12px; perspective: 1200px;
  background: linear-gradient(160deg, #2a1216, #0b0909); box-shadow: 0 50px 100px -30px #000, inset 0 0 0 2px rgb(255 255 255 / .12); }
.phone-screen { height: 100%; border-radius: 38px; padding: 54px 16px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  background: linear-gradient(rgb(0 0 0 / .5), rgb(0 0 0 / .8)), url('/media/studio-poster.jpg') center / cover; }
.ps-top { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.ps-top b { font-size: 20px; }
.ps-top span { grid-column: 1; font-size: 12px; font-weight: 700; }
.ps-top i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: 13px; font-weight: 800; padding: 9px 14px; border-radius: 99px; background: var(--wine); color: #ffffff; }
.ps-switch { display: flex; padding: 4px; border-radius: 99px; background: rgb(255 255 255 / .1); border: 1px solid var(--glass-edge); }
.ps-switch span { flex: 1; text-align: center; padding: 8px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.ps-switch .on { background: var(--wine); color: #ffffff; }
.ps-day { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 20px; background: rgb(255 255 255 / .08); border: 1px solid var(--glass-edge); }
.ps-day small { width: 38px; padding-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.ps-day span { width: 64px; height: 54px; display: grid; place-items: center; border-radius: 15px; font-size: 18px; font-weight: 700; background: rgb(255 255 255 / .08); border: 1px solid var(--glass-edge); }
.ps-held { margin-top: auto; display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: rgb(255 255 255 / .1); border: 1px solid var(--glass-edge); }
.ps-held small { font-size: 12px; font-weight: 800; color: #ed9eab; }
.ps-held b { text-align: center; padding: 12px; border-radius: 99px; background: linear-gradient(180deg, var(--wine-hi), var(--wine)); color: #ffffff; font-size: 15px; }
.ps-day .on { background: var(--wine); color: #ffffff; box-shadow: 0 8px 20px -6px var(--wine); animation: tap 4s ease-in-out infinite; }
@keyframes tap { 0%, 80%, 100% { transform: none; } 88% { transform: scale(.92); } }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } }

/* Visit */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.contact { display: grid; gap: 6px; padding: 24px; border-radius: 22px; text-decoration: none; font-size: 18px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-edge); transition: background .3s, transform .3s var(--ease); }
.contact small { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.contact:hover { background: rgb(255 255 255 / .12); transform: translateY(-3px); }

/* Footer */
.foot { max-width: 1200px; margin: clamp(100px, 14vw, 180px) auto 0; padding: 48px var(--pad) 40px; border-top: 1px solid var(--glass-edge); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; font-size: 15px; }
.foot-row a { color: var(--muted); text-decoration: none; }
.foot-row a:hover { color: var(--ink); }
.foot-row .brand { margin-right: auto; }
.foot-row .version { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .6; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

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

/* Greek runs longer: a little smaller, so the headline keeps to two lines. */
:lang(el) .display { font-size: clamp(46px, 7.2vw, 100px); }
