/* Paaher. "Paaher" is Kui for a road, a path, a way, so the page is a road
   travelled through one day: morning (the path), day (Dip Dope), evening
   (Sopaan), night (Venuska, at an evening celebration under fairy lights). The whole page is dressed as stitched cloth: skies in
   natural-dye tones (an indigo dawn, a blue day, a peacock evening with a coral
   sunset, an indigo night),
   embroidered bands where one part of the day hands over to the next, and the
   hero's palette of teal, madder and turmeric everywhere Paaher speaks. Each
   product still wears its own design and its own opening animation inside it;
   Paaher's own parts use Baloo Bhaina 2 (made in India, with Odia script) and
   Mukta. Without JS, or with reduced motion, every section paints its own sky
   and every stage shows a still. */

:root {
  /* Sky stops: top / middle / horizon. Keep in step with SKIES in paaher.js. */
  --dawn-1: #1E3563; --dawn-2: #52699E; --dawn-3: #F3AE7E;
  --day-1:  #164B82; --day-2:  #2E6FAD; --day-3:  #7FB6DD;
  --dusk-1: #0A3A5C; --dusk-2: #0E6A86; --dusk-3: #E07A5F;
  --night-1:#0B0F2E; --night-2:#1A1C5C; --night-3:#3B2384;

  /* The cloth: the hero's thread colours. */
  --teal: #2D5F5A; --madder: #A3333D; --turmeric: #D9A23A; --field: #2A2470;
  --sun: #E8B04B;        /* bright turmeric: focus, pills, the send button */
  --gold: #F2CF86;       /* turmeric on dark grounds: links, warm words */
  --ink: #1F2420;
  --paper: #FFF6EE;
  --moonlight: #EFE6D2;

  --sky-1: var(--dawn-1); --sky-2: var(--dawn-2); --sky-3: var(--dawn-3);

  --display: "Baloo Bhaina 2", "Mukta", system-ui, sans-serif;
  --text: "Mukta", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--night-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* The P is a golden rectangle (width = height / PHI): set a height, the width follows. */
/* The Paaher mark is an app-icon tile of its own (2c). On a dark sky it wears the white tile. */
.mark { display: block; flex: none; width: auto; aspect-ratio: 1; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .22)); }
.mark--on-dark { --mark-tile: #FFFFFF; --mark-road: #2A3075; }

/* ------------------------------------------------------------------ the sky */

.sky { display: none; }
.sky-on .sky {
  display: block;
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
}
.stars {
  position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%;
  opacity: var(--stars, 0);
}
/* Twinkle by opacity on a wrapper: it runs on the GPU and never repaints the sky. */
.twinkle { position: absolute; inset: 0; animation: twinkle 3.4s ease-in-out infinite alternate; will-change: opacity; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

.clouds { position: absolute; inset: 0; opacity: var(--clouds, 0); }
.cloud { position: absolute; display: block; height: auto; }
.cloud--a { width: clamp(120px, 14vw, 220px); left: 6%;  top: 16%; }
.cloud--b { width: clamp(90px, 10vw, 160px);  left: 40%; top: 9%; }
.cloud--c { width: clamp(110px, 12vw, 190px); right: 5%; top: 26%; }
@media (max-width: 700px) { .cloud--b { display: none; } .cloud--c { top: 70%; } }

/* The sun and the moon: in the page (so they scroll with it natively), under everything in
   <main> (so the cards, the bands and the hero's cloth hide them), over the fixed sky. */
.orbs { display: none; }
.sky-on .orbs { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
.orb { position: absolute; left: 0; top: 0; will-change: transform; }
.orb__body { border-radius: 50%; }
.orb--sun .orb__body {
  width: clamp(110px, 13vw, 180px); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 45%, #FFF6CF 0%, var(--sun-core, var(--sun)) 46%, var(--sun-edge, #FFB347) 100%);
  box-shadow: 0 0 80px 30px color-mix(in srgb, var(--sun-core, var(--sun)) 45%, transparent),
              0 0 220px 90px color-mix(in srgb, var(--sun-edge, #FFB347) 22%, transparent);
  animation: sunrise 2.4s cubic-bezier(.2,.7,.2,1) .2s both;
}
.orb--moon .orb__body {
  width: clamp(64px, 8vw, 104px); aspect-ratio: 1;
  background: radial-gradient(circle at 36% 36%, #FDFBF3 0%, #E3E2F2 55%, #B9BCD9 100%);
  box-shadow: 0 0 60px 14px rgba(200, 210, 255, .25);
  -webkit-mask: radial-gradient(circle at 74% 30%, transparent 34%, #000 35%);
          mask: radial-gradient(circle at 74% 30%, transparent 34%, #000 35%);
}
/* The sun climbs a little as it first shows. */
@keyframes sunrise { from { transform: translateY(70%); } to { transform: none; } }

/* ------------------------------------------------------------------ top bar */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 88px; padding: 6px var(--gutter) 22px;  /* items centred in the visible (unfaded) band */
  color: var(--bar-ink, var(--paper));
}
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky-1) 92%, transparent) 55%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent);
}
.bar__mark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1;
}
.bar__mark .mark { height: 36px; transition: transform .2s; }
.bar__mark:hover .mark { transform: rotate(-6deg) scale(1.06); }
.bar__mark:active .mark { transform: scale(.94); }
.bar__name { padding-top: .12em; }
/* With the script on, the bar shows only the icon at the top; the name docks in beside it
   once the hero's own "Paaher" has gone up under the bar. Without it the name just shows. */
.bar--dock .bar__name {
  opacity: 0; transform: translateX(-10px); visibility: hidden;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s .45s;
}
.bar--dock.is-docked .bar__name { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.bar__nav { display: flex; gap: clamp(14px, 3vw, 36px); font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.bar__nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.bar__nav a:hover { border-color: currentColor; }
.bar__nav a:active { opacity: .7; }
.bar__menu { display: none; }
@media (max-width: 640px) {
  .bar { min-height: 72px; padding-block: 4px 18px; }
  .bar__mark .mark { height: 34px; }
  .bar__nav { gap: 14px; font-size: 1.05rem; }
  /* Phones: the links fold into a menu button (the script opens it). */
  .bar--menu .bar__menu {
    display: grid; place-items: center; width: 46px; height: 46px; margin-right: -6px; padding: 0;
    border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer;
    transition: background .15s;
  }
  .bar--menu .bar__menu:hover { background: rgb(255 255 255 / .1); }
  .bar--menu .bar__menu:active { background: rgb(255 255 255 / .2); }
  .bar__menu span, .bar__menu span::before, .bar__menu span::after {
    display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), background-color .2s;
  }
  .bar__menu span { position: relative; }
  .bar__menu span::before, .bar__menu span::after { content: ""; position: absolute; left: 0; }
  .bar__menu span::before { transform: translateY(-7.5px); }
  .bar__menu span::after { transform: translateY(7.5px); }
  .bar.is-open .bar__menu span { background-color: transparent; }
  .bar.is-open .bar__menu span::before { transform: rotate(45deg); }
  .bar.is-open .bar__menu span::after { transform: rotate(-45deg); }
  .bar--menu .bar__nav {
    position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 0; padding: 8px; border-radius: 18px;
    font-size: 1.3rem; color: var(--bar-ink, var(--paper));
    background: color-mix(in srgb, var(--sky-1, #1E3563) 90%, #000 10%);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / .14); box-shadow: 0 18px 40px rgb(0 0 0 / .35);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .25s ease, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s .3s;
  }
  .bar--menu.is-open .bar__nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .bar--menu .bar__nav a { padding: 14px 16px; border: 0; border-radius: 12px; }
  .bar--menu .bar__nav a:hover, .bar--menu .bar__nav a:focus-visible { background: rgb(255 255 255 / .1); }
}
@media (prefers-reduced-motion: reduce) {
  .bar--dock .bar__name, .bar--menu .bar__nav, .bar__menu span, .bar__menu span::before, .bar__menu span::after { transition: none; }
}

/* ------------------------------------------------------------------ scenes */

.scene {
  position: relative;
  min-height: 100vh;
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(130px, 22vh, 240px);
  display: grid; align-items: center;
}
/* Static skies, each blending into the next; the moving sky replaces them. */
.scene--dawn  { color: var(--paper);     background: linear-gradient(180deg, var(--dawn-1), var(--dawn-2) 45%, var(--dawn-3) 70%); }
.scene--day   { color: var(--paper);     background: linear-gradient(180deg, var(--day-1), var(--day-2) 40%, var(--day-3) 78%, var(--dusk-3) 92%, var(--dusk-1)); }
.scene--dusk  { color: var(--paper);     background: linear-gradient(180deg, var(--dusk-1), var(--dusk-2) 50%, var(--dusk-3) 82%, var(--night-2)); }
.scene--night { color: var(--moonlight); background: linear-gradient(180deg, var(--night-2), var(--night-1)); }
.sky-on .scene { background: transparent; }

/* Where the evening hands over to the night (Venuska), an embroidered band, like the
   woven borders on a shawl, that the fairy lights hang from: the hero's indigo ground, a
   row of turmeric and madder triangles, a cream running stitch. Static. (One band only:
   between day and evening the sky's own change marks the turn.) The tile keeps clear of its own edges
   (the ground is the background colour, not part of the tile), so tiles never seam. */
.scene--night::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 26px;
  transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 26' width='36' height='26'%3E%3Cpath d='M2.5 17L9 6L15.5 17Z' fill='%23D9A23A'/%3E%3Cpath d='M20.5 17L27 6L33.5 17Z' fill='%23A3333D'/%3E%3Cpath d='M1.5 21.5h5M10.5 21.5h5M19.5 21.5h5M28.5 21.5h5' stroke='%23F3E6CC' stroke-opacity='.75' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x center / 36px 26px, var(--field);
  box-shadow: inset 0 2px 0 var(--madder), inset 0 -2px 0 var(--turmeric), 0 6px 14px -8px rgba(0, 0, 0, .45);
}

.scene__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.scene__inner--flip .copy { order: 2; }
@media (max-width: 880px) {
  .scene__inner { grid-template-columns: minmax(0, 1fr); }
  .scene__inner--flip .copy { order: 0; }
}

/* Paaher's own voice (Sopaan wears it until it has its own design) */
.copy { max-width: 34rem; }
.title {
  margin: 0 0 .1em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.2rem); line-height: 1; letter-spacing: -.01em;
}
/* Sopaan's lockup (1b): its icon beside the lowercase wordmark. */
.title--mark { display: flex; align-items: center; gap: .22em; letter-spacing: -.02em; }
.title__logo { flex: none; width: .78em; height: .78em; border-radius: 28%; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.title--mark span { padding-top: .1em; }
.lede { font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.45; margin: .4em 0 1em; font-weight: 500; }
.points { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: .5em; }
.points li { padding-left: 1.6em; position: relative; }
.points li::before {
  content: ""; position: absolute; left: .1em; top: .5em;
  width: .9em; height: .45em; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg); opacity: .85;
}
.note { opacity: .85; margin: 0; }

.status {
  display: inline-flex; align-items: center; gap: .55em;
  margin: 0 0 1.1em; padding: .3em .95em .25em .75em; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
}
.status__pip { width: .6em; height: .6em; border-radius: 50%; background: currentColor; margin-top: -.1em; }
.status--soon { background: rgba(232, 176, 75, .16); color: var(--gold); border: 1.5px dashed rgba(242, 207, 134, .7); }

/* ------------------------------------------------------------------ hero: the things we make */

.hero {
  display: flex; flex-direction: column; align-items: stretch; overflow: hidden;
  padding: clamp(112px, 15vh, 144px) var(--gutter) 0;
}
.hero__head {
  display: grid;
  width: 100%; max-width: var(--max); margin: 0 auto clamp(28px, 4vw, 48px);
}
.hero__word {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 7.2rem); line-height: .9; letter-spacing: -.015em;
}
.hero__vision {
  margin: 14px 0 6px; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.2; color: var(--gold);
}
.hero__meaning {
  max-width: 38rem; margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.6; opacity: .92;
}
.hero__meaning em { font-style: normal; font-weight: 700; color: var(--gold); }
.hero__head > * { animation: arrive 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero__head > :nth-child(2) { animation-delay: .2s; }
.hero__head > :nth-child(3) { animation-delay: .35s; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* The stage keeps its shape and sits at the foot of the first screen. On a short laptop it
   narrows (and so shortens) to keep the cloth in view. */
.stage {
  position: relative; width: min(100%, max(640px, calc((100vh - 380px) * 1.9))); max-width: var(--max);
  aspect-ratio: 16 / 8.4; margin: auto auto 0;
}
/* The cloth the things rest on: the indigo ground with a row of turmeric triangles along its
   top and a running stitch, full width. */
.stage__cloth { position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); bottom: 0; height: 26%; background: var(--field); }
.stage__cloth::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
  background: linear-gradient(135deg, transparent 50%, var(--turmeric) 50%) 0 0 / 24px 12px,
              linear-gradient(225deg, transparent 50%, var(--turmeric) 50%) 12px 0 / 24px 12px;
}
.stage__cloth::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; border-top: 2px dashed rgba(255, 246, 238, .5); }

/* The three things stand in a row on the cloth, their feet on its top edge, each name under
   it on the cloth below the stitch. That row is where they rest; at the top of the page the
   script tips them into a loose fan (--x, --y, --r) and the scroll brings them back to it.
   With no script or reduced motion they simply stand in the row. */
.thing {
  position: absolute; bottom: 26%; display: block; color: inherit; text-decoration: none; will-change: transform;
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg));
  transition: filter .2s;
}
/* Hover and press change only the light: the scroll owns transform, the arrival owns translate. */
.thing:hover { filter: brightness(1.07) drop-shadow(0 12px 22px rgba(10, 20, 40, .3)); }
.thing:active { filter: brightness(.94); }
/* Each name wears its product's logo, as an app icon beside it. */
.thing__name {
  position: absolute; left: -20px; right: -20px; top: calc(100% + 30px);
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.15; opacity: var(--label, 1);
}
/* The same thin light edge on all three, so each tile shows its full square (Dip Dope's dark
   teal tile would otherwise melt into the indigo cloth and read smaller than the other two). */
.thing__logo { flex: none; width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28), 0 6px 14px -6px rgba(0, 0, 0, .5); }
.thing__name small { display: block; font-family: var(--text); font-weight: 500; font-size: .92rem; opacity: .8; }

/* Venuska: its dashboard in a browser window. */
.thing--vk { left: 31.5%; width: 37%; z-index: 1; }
.thing__frame { display: block; border-radius: 12px; overflow: hidden; background: #F6F7F2; box-shadow: 0 30px 60px -20px rgba(10, 20, 40, .6); }
.thing__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: #E2E6DB; }
.thing__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C7CCBE; }
.thing__bar img { width: 14px; height: 14px; margin-left: 8px; border-radius: 3px; }
.thing__bar span { font: 600 .72rem/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #5A6832; }
.thing__shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }

/* Dip Dope: the game's story clip on the same real phone as the download block (.phone),
   held sideways. */
.thing--phone { left: 0; width: 29%; z-index: 2; container-type: inline-size; }
/* Smaller than the download block's phone, so its bezel, corners and camera scale with its own
   width, never the window's. Corners are a flat Android flagship's (3.4 % of the long side),
   not a rounded iPhone's: rounder read as a toy. */
.thing--phone .phone { --bezel: max(2px, 1.2cqi); --corner: 3.4cqi; --cam: max(5px, 2cqi); }

/* Sopaan: two job notices, hemmed with a stitch. */
.thing--slips { right: 0; width: 29.5%; z-index: 2; }
.slip {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 12px 12px 12px 16px; border-radius: 16px; background: #FFFDF7; color: var(--ink);
  box-shadow: 0 20px 40px -18px rgba(10, 20, 40, .6); outline: 1.5px dashed rgba(45, 95, 90, .35); outline-offset: -7px;
}
.slip + .slip { margin: 10px 0 0 8%; }
.slip b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.slip span { font-size: .78rem; font-weight: 700; color: var(--teal); }
.slip img { grid-row: 1 / 3; grid-column: 2; width: clamp(44px, 4vw, 56px); height: clamp(44px, 4vw, 56px); border-radius: 12px; object-fit: cover; }

/* One arrival: the window first, then the phone and the notices. (translate, not transform,
   so it never fights the scroll's transform.) */
@media (prefers-reduced-motion: no-preference) {
  .thing { animation: place 1s cubic-bezier(.2,.8,.2,1) both; }
  .thing--vk { animation-delay: .25s; }
  .thing--phone { animation-delay: .55s; }
  .thing--slips { animation-delay: .7s; }
}
@keyframes place { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* Phones, and tablets held upright: one tall arrangement, so no empty sky above it. The
   script leaves it as laid. A tablet keeps both job notices, as on a computer. */
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .stage { aspect-ratio: 4 / 4.2; }
  .thing { bottom: auto; }
  .thing--vk { left: 4%; width: 92%; top: 0; }
  .thing--phone { left: 0; width: 62%; top: 52%; }
  .thing--slips { right: 0; width: 50%; top: 44%; }
  .thing__name { display: none; }
}
@media (max-width: 700px) {
  .slip img { width: 40px; height: 40px; }
  .slip + .slip { display: none; }
}

/* ------------------------------------------------------------------ Venuska, in its own design */

.vk {
  --olive: #6F7F3E; --olive-d: #5A6832; --deep: #3D4520; --tert: #E6ECD8; --vk-ink: #1C1C1A; --vk-muted: #6B6F67;
  --vk-bg: #F6F7F2; --amber: #C48A3A; --vk-border: #E2E6DB;
  width: 100%; max-width: var(--max); margin: 0 auto;
  /* The same columns as the Dip Dope block, so the two previews are the same size. */
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(40px, 6vw, 96px);
  color: var(--vk-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.02rem;
}
@media (max-width: 880px) { .vk { grid-template-columns: minmax(0, 1fr); } }
.vk__live {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 5px 12px; border-radius: 999px; background: rgba(246, 247, 242, .7); color: var(--olive-d);
  font-weight: 600; font-size: .88rem;
}
.vk__live span { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } }
.vk__brand {
  display: flex; align-items: center; gap: 12px; margin: 0 0 .25em;
  font-family: "DM Serif Display", Georgia, serif; font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; letter-spacing: .2px;
}
.vk__mark { width: clamp(46px, 5.6vw, 62px); height: auto; border-radius: 22%; box-shadow: 0 10px 24px -10px rgba(16, 40, 80, .5); }
.vk__dot { color: var(--amber); }
.vk__lede { font-size: clamp(1.1rem, 1.8vw, 1.25rem); line-height: 1.5; margin: 0 0 1em; }
.vk__lede em { font-family: "DM Serif Display", Georgia, serif; font-style: italic; color: var(--olive-d); font-size: 1.12em; }
.vk__points { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: .6em; color: #23251F; }
.vk__points li { position: relative; padding-left: 30px; line-height: 1.5; }
.vk__points li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(246, 247, 242, .75) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.4L10 3.4' fill='none' stroke='%235A6832' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.vk__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vk__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 22px; border-radius: 12px; text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: .98rem; transition: background .2s, transform .15s, border-color .2s;
}
.vk__btn:active { transform: translateY(1px); }
.vk__btn--olive { background: var(--olive); color: #fff; }
.vk__btn--olive:hover { background: var(--olive-d); }
.vk__btn--line { background: #fff; color: var(--vk-ink); border: 1.5px solid var(--vk-border); }
.vk__btn--line:hover { border-color: var(--olive); }
.vk__shot { margin: 0; min-width: 0; }
.vk__window {
  border-radius: 18px; overflow: hidden; background: rgba(246, 247, 242, .5);
  border: 1.5px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .25), 0 30px 70px -30px rgba(16, 40, 80, .55);
}
.vk__chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(238, 241, 232, .55); border-bottom: 1px solid rgba(255, 255, 255, .5); }
.vk__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D5DACB; }
.vk__chrome span { margin-left: 10px; padding: 1px 12px; border-radius: 999px; background: #fff; color: var(--vk-muted); font-size: .78rem; }

/* The Venuska launch, cloned from the app's LIGHT splash (web/index.html + splash_screen.dart):
   ground #FAF6EE, white chip with the cream ring, the DM Serif name in ink, the gold rule
   (track #C48A3A at 22%, fill #C48A3A → #D9B37F, a glowing tip) and the italic tagline at
   the foot. The chip settles from big and low, the way every app launch opens. */
.vks { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--vk-bg); container-type: inline-size; }
.vks__app {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
  transition: transform .7s cubic-bezier(.22,1,.36,1) .32s, opacity .45s ease .3s;
}
.vks__ground { position: absolute; inset: 0; background: #FAF6EE; transition: opacity .34s ease .26s, transform .44s cubic-bezier(.4,0,.2,1) .26s; }
.vks__chip {
  position: absolute; left: 50%; top: 46%; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw;
  background: #fff url("img/venuska-icon.png") center / 100% 100% no-repeat; border-radius: 25%;
  box-shadow: inset 0 0 0 1.5px #E2E6DB, 0 4px 14px rgba(61, 69, 32, .10);
  transition: opacity .38s ease, transform .62s cubic-bezier(.22,.7,.25,1);
}
.vks__wm {
  position: absolute; left: 0; right: 0; top: calc(46% + 8.3cqw); text-align: center;
  font-family: "DM Serif Display", Georgia, serif; font-size: 6.2cqw; line-height: 1; letter-spacing: -.02em; color: var(--vk-ink);
  transition: opacity .4s ease, transform .52s cubic-bezier(.22,1,.36,1);
}
.vks__rule {
  position: absolute; left: 50%; top: calc(46% + 18cqw); width: 24cqw; height: 3px; margin-left: -12cqw;
  border-radius: 2px; background: rgba(196, 138, 58, .22);
  transition: opacity .4s ease .08s, transform .52s cubic-bezier(.22,1,.36,1) .08s;
}
.vks__fill {
  position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, #C48A3A, #D9B37F);
  transform-origin: left center; transform: scaleX(0);
}
/* The tip rides a full-width line moved by transform, so nothing is laid out per frame. */
.vks__run { position: absolute; inset: 0; transform: translateX(0); }
.vks__tip {
  position: absolute; left: -3px; top: -1.5px; width: 6px; height: 6px; border-radius: 50%;
  background: #D9B37F; box-shadow: 0 0 7px 1.2px rgba(196, 138, 58, .6);
}
.vks__tag {
  position: absolute; left: 0; right: 0; bottom: 5.5cqw; text-align: center;
  font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-size: max(11px, 2.1cqw); color: var(--vk-muted);
  transition: opacity .4s ease .16s, transform .52s cubic-bezier(.22,1,.36,1) .16s;
}
/* 0: big chip, low · 1: it settles · 2: the name, the rule, the tagline · 3: hand over to the app */
.vks[data-s="0"] .vks__chip { transform: translateY(4cqw) scale(1.35); opacity: 0; transition: none; }
.vks[data-s="0"] .vks__wm, .vks[data-s="1"] .vks__wm { opacity: 0; transform: translateY(9px); }
.vks[data-s="0"] .vks__rule, .vks[data-s="1"] .vks__rule { opacity: 0; transform: translateY(5px); }
.vks[data-s="0"] .vks__tag, .vks[data-s="1"] .vks__tag { opacity: 0; transform: translateY(7px); }
.vks[data-s="0"] .vks__app, .vks[data-s="1"] .vks__app, .vks[data-s="2"] .vks__app { opacity: 0; transform: translateY(5%); }
.vks[data-s="3"] .vks__wm, .vks[data-s="3"] .vks__tag, .vks[data-s="3"] .vks__rule { opacity: 0; transform: translateY(-6px); transition-duration: .22s; transition-delay: 0s; }
.vks[data-s="3"] .vks__chip {
  top: 2.2cqw; left: 1.6cqw; width: 4.4cqw; height: 4.4cqw; margin: 0; opacity: 0;
  transition: top .56s cubic-bezier(.65,0,.35,1), left .56s cubic-bezier(.65,0,.35,1), width .56s cubic-bezier(.65,0,.35,1),
              height .56s cubic-bezier(.65,0,.35,1), margin .56s cubic-bezier(.65,0,.35,1), opacity .2s ease .5s;
}
.vks[data-s="3"] .vks__ground { opacity: 0; transform: scale(1.04); }
.vks.is-reset, .vks.is-reset * { transition: none !important; }

/* The reel inside the app: one shot at a time, each with one slow move (b-roll).
   Shots cross-fade by opacity; the move is a transform, so nothing is redrawn. */
.vkr { overflow: hidden; background: #F6F7F2; }
.vkr__shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .6s ease; }
.vkr__shot.is-on { opacity: 1; z-index: 1; }
.vkr__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: var(--o, 50% 40%); }
.vkr__shot--scroll img { height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .vkr__shot.is-on img { animation: vkr-push var(--d, 3s) cubic-bezier(.4,0,.3,1) both; }
  .vkr__shot--scroll.is-on img { animation-name: vkr-scroll; }
}
@keyframes vkr-push { from { transform: scale(1.02); } to { transform: scale(1.14); } }
/* The home page is one tall shot; the window scrolls down it (75% = its height less one window). */
@keyframes vkr-scroll { 0%, 8% { transform: translateY(0); } 100% { transform: translateY(-75%); } }

/* Venuska at night: an evening celebration at a venue. The words take Venuska's own
   splash colours (cream on deep olive), and the app window glows like a lit screen. */
.scene--party .vk { position: relative; z-index: 1; color: #F3EFE2; }
.scene--party .vk__live { background: rgba(243, 239, 226, .1); color: #DCE5BE; }
.scene--party .vk__lede em { color: #C9D49A; }
.scene--party .vk__points { color: #E9E4D4; }
.scene--party .vk__points li::before {
  background: rgba(243, 239, 226, .12) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.4L10 3.4' fill='none' stroke='%23DCE5BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.scene--party .vk__btn--line { background: transparent; color: #F3EFE2; border-color: rgba(243, 239, 226, .4); }
.scene--party .vk__btn--line:hover { border-color: #F3EFE2; }
.scene--party .vk__window {
  background: rgba(246, 247, 242, .94);
  box-shadow: 0 0 0 5px rgba(255, 236, 200, .1), 0 30px 90px -30px rgba(255, 196, 110, .45);
}
/* Soft out-of-focus lights in the dark, like a lawn lit for a function. Static. */
.scene--party::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 78%, rgba(255, 200, 120, .16) 0 30px, transparent 90px),
    radial-gradient(circle at 26% 92%, rgba(255, 170, 90, .12) 0 22px, transparent 70px),
    radial-gradient(circle at 88% 84%, rgba(255, 214, 150, .14) 0 34px, transparent 100px),
    radial-gradient(circle at 70% 90%, rgba(255, 180, 110, .1) 0 26px, transparent 80px);
}

/* The fairy lights hang from the top of the night, just under the embroidered band. */
.lights { position: absolute; left: 0; right: 0; top: 14px; z-index: 1; overflow: hidden; height: clamp(110px, 14vw, 170px); pointer-events: none; }
.lights svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lights__glow { position: absolute; inset: 0; will-change: opacity; }
@media (prefers-reduced-motion: no-preference) {
  .lights__glow { animation: glow 2.6s ease-in-out infinite alternate; }
  .lights__glow--1 { animation-duration: 3.3s; animation-delay: -1.1s; }
  .lights__glow--2 { animation-duration: 2.1s; animation-delay: -.6s; }
}
@keyframes glow { from { opacity: .35; } to { opacity: 1; } }

/* ------------------------------------------------------------------ Sopaan art */

.art { margin: 0; position: relative; }
.art--study { min-height: 450px; }
.notice {
  position: absolute; width: min(78%, 320px);
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 246, 238, .97); color: var(--ink);
  box-shadow: 0 24px 50px -22px rgba(8, 20, 16, .7);
  outline: 1.5px dashed rgba(45, 95, 90, .35); outline-offset: -7px;
  display: grid; gap: 0; grid-template-columns: 1fr auto; column-gap: 14px;
}
.notice > :not(.notice__pic) { grid-column: 1; }
/* A photo of the job on the right, framed like the card's stitch. */
.notice__pic {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  width: 76px; height: 76px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 0 0 3px #FFFDF7, 0 8px 18px -10px rgba(8, 20, 16, .6);
}
.notice strong { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.notice small { opacity: .7; font-size: .98rem; }
.notice__tag {
  justify-self: start; margin-bottom: 6px; padding: 1px 10px; border-radius: 999px;
  background: #D5E6E2; color: #1F4743; font-weight: 700; font-size: .85rem;
}
.notice__tag--warm { background: #F6DCD8; color: #7E2530; }
.notice__tag--cool { background: #F7E6BF; color: #6E4C0E; }
.notice--a { left: 0;   top: 0;     transform: rotate(-4deg); }
.notice--b { left: 14%; top: 118px; transform: rotate(2deg); }
.notice--c { left: 4%;  top: 236px; transform: rotate(-1deg); }
.helper {
  position: absolute; right: 0; bottom: -24px; width: min(72%, 300px);
  display: flex; gap: 12px; align-items: flex-end;
}
.helper p {
  margin: 0; padding: 12px 16px; border-radius: 18px 18px 18px 4px;
  background: var(--sun); color: #2A1A05; font-weight: 500; line-height: 1.35;
  box-shadow: 0 18px 36px -16px rgba(8,20,16,.7);
}
.helper__face {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; padding-top: .15em;
  background: #fff; color: var(--teal); box-shadow: 0 0 0 3px var(--sun);
}
@media (max-width: 880px) { .art--study { min-height: 470px; margin-top: 8px; } }

/* ------------------------------------------------------------------ Dip Dope, in the game's own design */

.scene--game { align-items: start; }
.scene__inner--game {
  --dd-yellow: #FFD166; --dd-mint: #2FF0B6; --dd-panel: #0C2430; --dd-line: #1D3640;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); row-gap: clamp(56px, 8vw, 96px);
  font-family: Sora, "Segoe UI", system-ui, sans-serif; font-size: 1.02rem;
}
.scene__inner--game .get { grid-column: 1 / -1; }
@media (max-width: 880px) { .scene__inner--game { grid-template-columns: minmax(0, 1fr); } }

.dd { max-width: 34rem; }
.dd__status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 5px 14px; border-radius: 999px; background: rgba(47, 240, 182, .12); color: var(--dd-mint);
  font-weight: 600; font-size: .9rem;
}
.dd__status span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* One line, always: the size follows the card's own width (container units), not the window's. */
.dd { container-type: inline-size; }
.dd__title {
  display: flex; align-items: center; gap: clamp(10px, 2vw, 18px); margin: 0; white-space: nowrap;
  font-family: "Lilita One", var(--display); font-weight: 400;
  font-size: clamp(2rem, calc((100cqi - 100px) / 4.1), 5.6rem); line-height: 1; color: var(--dd-yellow);
  text-shadow: 0 5px 0 #8A5A00, 0 14px 30px rgba(0, 0, 0, .45);
}
.dd__icon { width: clamp(50px, 7vw, 72px); height: auto; flex: none; border-radius: 16px; box-shadow: 0 8px 20px -6px rgba(47,240,182,.45); }
.dd__title span { padding-top: .06em; }
.dd__tag { margin: .5em 0; font-family: "Lilita One", var(--display); font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--dd-mint); letter-spacing: .01em; }
.dd__lede { font-size: clamp(1.08rem, 1.8vw, 1.22rem); line-height: 1.55; margin: 0 0 1em; }
.dd__note { margin: 0; opacity: .78; font-size: .98rem; line-height: 1.55; }
.dd__note--small { font-size: .9rem; margin-top: 1.1em; }

/* The stage the game's loading screen mounts into (the script sets its own sea). */
.ddboot {
  position: relative; min-width: 0; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden;
  background: radial-gradient(110% 80% at 50% 0%, #0f6f8a, #06303f 55%, #031a24);
  box-shadow: 0 0 0 5px var(--dd-line), 0 30px 80px -30px rgba(47, 240, 182, .45);
}
@media (max-width: 600px) { .ddboot { aspect-ratio: 4 / 3; } }
.ddboot [data-bw], .ddboot [data-st], .ddboot [data-tip] { display: none !important; }
.ddboot__still {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding-bottom: 18%;
  font-family: "Lilita One", var(--display); color: #fff; text-align: center;
}
.ddboot__still b { font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; text-shadow: 0 4px 0 #0a3a4a; }
.ddboot__still span { font: 700 .8rem Sora, sans-serif; letter-spacing: .14em; color: #7ff5d0; }

/* The game's PLAY tile: the same drawing as the game's Home screen. */
.playtile {
  position: absolute; z-index: 5; left: 50%; bottom: 7%; width: clamp(150px, 38%, 230px);
  transform: translateX(-50%);
  display: block; border-radius: 18px; cursor: pointer;
  transition: opacity .45s ease, translate .45s cubic-bezier(.22,1,.36,1);
}
.playtile canvas { display: block; width: 100%; aspect-ratio: 440 / 168; }
.playtile canvas { transition: transform .12s, filter .2s; }
.playtile:hover canvas { transform: translateY(-2px); filter: brightness(1.08); }
.playtile:active canvas { transform: translateY(2px); filter: brightness(.95); }
.playtile:focus-visible { outline: 2px solid var(--dd-mint); outline-offset: 3px; }
/* Inside the loading scene it sits where the bar used to be (scene units, scaled with the scene). */
.playtile.in-scene { left: 90px; top: 196px; bottom: auto; width: 160px; transform: none; }
.playtile.is-waiting { opacity: 0; translate: 0 10px; pointer-events: none; }

.get {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--dd-panel) 82%, transparent);
  border: 1.5px solid var(--dd-line);
  scroll-margin-top: 104px;
}
@media (max-width: 880px) { .get { grid-template-columns: minmax(0, 1fr); } }
/* A phone held sideways: a thin, even bezel inside a metal rim, the camera punched into
   the display, and side buttons (power + volume on the top edge). The screen keeps the
   video's own shape (1120 × 500). One design, used in the hero and the download block. */
.phone {
  --bezel: clamp(4px, .5vw, 7px); --corner: clamp(22px, 2.8vw, 36px);
  display: block; position: relative; margin: 0; padding: var(--bezel);
  border-radius: var(--corner); background: #040506;
  box-shadow: 0 0 0 1.5px #4A535B, 0 0 0 2.5px #1A1F23, inset 0 0 0 1px rgba(255, 255, 255, .07), 0 26px 60px -26px rgba(0, 0, 0, .85);
}
.phone::before, .phone::after {
  content: ""; position: absolute; top: -4px; height: 2px; border-radius: 2px 2px 0 0; background: #4A535B;
}
.phone::before { right: 40%; width: 6%; }
.phone::after { right: 22%; width: 13%; }
.phone__screen {
  display: block; position: relative; overflow: hidden; border-radius: calc(var(--corner) - var(--bezel));
  aspect-ratio: 1120 / 500; background: #0C2430;
}
.phone__screen::after {
  content: ""; position: absolute; left: 2.4%; top: 50%; width: var(--cam, clamp(8px, 1vw, 12px)); aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(circle at 38% 38%, #24384A 0 14%, #05080B 42%, #000 70%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55);
}
.phone__video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The words sit on glass, so the clouds behind them never cross the letters. */
.dd {
  padding: clamp(20px, 3vw, 34px); border-radius: 28px;
  background: rgba(10, 34, 52, .34); border: 1.5px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.get__copy h3 { margin: 0 0 .8em; font-family: "Lilita One", var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: #fff; }
.dd__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 18px; white-space: nowrap;
  background: var(--dd-yellow); color: #3A2400; text-decoration: none;
  font-family: "Lilita One", var(--display); font-size: 1.25rem; letter-spacing: .01em;
  box-shadow: 0 6px 0 #C58F1F, 0 16px 30px -10px rgba(255, 209, 102, .5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.dd__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #C58F1F, 0 20px 36px -10px rgba(255, 209, 102, .6); }
.dd__btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #C58F1F, 0 8px 18px -10px rgba(255, 209, 102, .5); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 1.3em 0; }
.facts div { display: grid; }
.facts dt { font-size: .82rem; opacity: .65; }
.facts dd { margin: 0; font-weight: 700; }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: .4em; line-height: 1.5; }
.steps li::marker { color: var(--dd-yellow); font-family: "Lilita One", var(--display); }

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

.contact { position: relative; color: var(--moonlight); padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(40px, 8vh, 80px); }
.contact__inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start;
}
@media (max-width: 880px) { .contact__inner { grid-template-columns: minmax(0, 1fr); } }
.contact__title { margin: 0 0 .2em; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1; padding-top: .1em; }
.contact__intro p { margin: 0 0 1.4em; font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.5; opacity: .9; max-width: 28rem; }
.contact__ways { margin: 0; display: grid; gap: 14px; }
.contact__ways div { display: grid; gap: 0; }
.contact__ways dt { font-size: .92rem; opacity: .65; }
.contact__ways dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.3; }
.contact__ways a { color: var(--gold); text-decoration: none; border-bottom: 2px solid rgba(242, 207, 134, .35); }
.contact__ways a:hover { border-color: var(--gold); }
.contact__ways a:active { opacity: .75; }

.contact__form {
  display: grid; gap: 16px; padding: clamp(18px, 3vw, 32px); border-radius: 26px;
  background: rgba(239, 230, 210, .06); border: 1.5px dashed rgba(239, 230, 210, .3);
}
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--nope { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field > label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.field input:not([type=radio]), .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--moonlight);
  padding: 12px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, .26); border: 1.5px solid rgba(239, 230, 210, .24);
  transition: border-color .2s, box-shadow .2s;
}
.field input:not([type=radio]):hover, .field textarea:hover { border-color: rgba(239, 230, 210, .5); }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:not([type=radio]):focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 176, 75, .28); }
/* Error: red edge, red tint, a red ring even while typing, a red label, a "!" before the
   sentence, and one small shake when the error first shows. */
.field [aria-invalid=true] {
  border-color: #FF8A8A !important; background: rgba(255, 90, 90, .1) !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 138, .22) !important; animation: nudge .32s ease-in-out;
}
.field:has([aria-invalid=true]) > label { color: #FFB3B3; }
@keyframes nudge { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.field__err { margin: 0; min-height: 0; color: #FFB3B3; font-size: .95rem; line-height: 1.4; display: flex; gap: 7px; align-items: flex-start; }
.field__err::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 1.15em; height: 1.15em; margin-top: .1em;
  border-radius: 50%; background: #FF8A8A; color: #2A1030; font-weight: 800; font-size: .85em; line-height: 1;
}
.field__err:empty { display: none; }
.field--pills { display: flex; flex-wrap: wrap; gap: 8px; }
.field--pills legend { width: 100%; margin-bottom: 6px; float: left; }
.field--pills label { position: relative; cursor: pointer; }
.field--pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.field--pills span {
  display: inline-block; padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid rgba(239, 230, 210, .28); font-weight: 600; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.field--pills label:hover span { border-color: rgba(239, 230, 210, .6); background: rgba(239, 230, 210, .08); }
.field--pills label:active span { transform: scale(.96); }
.field--pills input:checked + span { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.field--pills input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.contact__send {
  justify-self: start; min-height: 52px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.15rem; padding-top: .15em;
  box-shadow: 0 10px 26px -10px rgba(232, 176, 75, .6); transition: transform .12s, box-shadow .2s;
}
.contact__send:hover { box-shadow: 0 0 0 5px rgba(232, 176, 75, .18), 0 12px 30px -10px rgba(232, 176, 75, .7); transform: translateY(-1px); }
.contact__send:active { transform: translateY(1px); box-shadow: none; }
/* Inactive until name, phone or email, and message are all written. A tap still says which
   one is missing; it just does not look ready. */
.contact__send[aria-disabled="true"], .contact__send:disabled {
  background: rgba(239, 230, 210, .14); color: rgba(239, 230, 210, .55); box-shadow: none; transform: none; cursor: not-allowed;
}
.contact__send:disabled { cursor: progress; }
.contact__out { margin: 0; line-height: 1.5; }
.contact__out:empty { display: none; }
.contact__out.is-info { padding: 12px 14px; border-radius: 14px; background: rgba(232, 176, 75, .14); color: var(--gold); }
.contact__out a { color: var(--gold); }
.contact__out.is-error { padding: 12px 14px; border-radius: 14px; background: rgba(255, 90, 90, .12); border: 1.5px solid rgba(255, 138, 138, .45); color: #FFB3B3; }
.contact__out.is-error a { color: #FFD3D3; }

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

/* The page ends with one quiet line under the contact block, on the same night. */
.foot { position: relative; color: var(--moonlight); padding: 0 var(--gutter) 28px; }
.foot__inner {
  max-width: var(--max); margin: 0 auto; padding-top: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  border-top: 1px solid rgba(239, 230, 210, .16); font-size: .95rem;
}
.foot p { margin: 0; opacity: .7; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__nav a { color: inherit; opacity: .8; text-decoration: none; border-bottom: 1px solid transparent; }
.foot__nav a:hover { opacity: 1; border-color: currentColor; }
.foot__nav a:active { opacity: .6; }

/* Share Paaher: a gold-edged pill in the footer; the menu opens above it. */
.share { position: relative; }
.share__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: .15em 18px 0;
  border: 1.5px solid var(--sun); border-radius: 999px; background: transparent; color: var(--gold); cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1rem; transition: background .2s, color .2s, box-shadow .2s, transform .12s;
}
.share__btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin-top: -.15em; }
.share__btn:hover, .share__btn[aria-expanded="true"] { background: var(--sun); color: var(--ink); }
/* Hover lifts it with the send button's glow; a press pushes it down (phones have no hover). */
.share__btn:hover { box-shadow: 0 0 0 5px rgba(232, 176, 75, .18), 0 12px 30px -10px rgba(232, 176, 75, .7); transform: translateY(-1px); }
.share__btn:active { transform: translateY(1px); box-shadow: none; }
.share__menu {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; min-width: 180px; padding: 6px;
  display: grid; border-radius: 14px; background: #FFFDF7; box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .55);
}
.share__menu[hidden] { display: none; }
/* Phone: the icon alone, round, at the right of the links row. The words stay for screen
   readers, and come back for a moment to say "Link copied". */
@media (max-width: 640px) {
  .share { margin-left: auto; }
  .share__btn { width: 44px; padding: 0; justify-content: center; }
  .share__btn svg { margin-top: 0; }
  .share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .share__btn.is-told span {
    right: 0; bottom: calc(100% + 8px); width: auto; height: auto; overflow: visible; clip-path: none;
    padding: 8px 12px 6px; border-radius: 10px; background: #FFFDF7; color: var(--ink); font-size: .95rem;
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55);
  }
}
.share__opt {
  display: block; padding: 11px 14px; border: 0; border-radius: 10px; background: none; color: var(--ink);
  font: 500 1rem var(--text); text-align: left; text-decoration: none; cursor: pointer;
  transition: background .15s, padding .15s;
}
.share__opt:hover, .share__opt:focus-visible { background: var(--sun); padding-left: 18px; outline: none; }
.share__opt:active { background: #D99A2E; }

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

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