/* ============================================================
   EFFECTS - frosted glass, shadow, borders
   Matches segmented/frosted photographic treatment in reference art
   ============================================================ */
:root {
  --glass-bg: rgba(246, 240, 230, 0.08);
  --glass-bg-strong: rgba(246, 240, 230, 0.14);
  --glass-border: rgba(246, 240, 230, 0.16);
  --blur-sm: blur(6px);
  --blur-md: blur(14px);
  --blur-lg: blur(28px);

  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow-rust: 0 0 40px rgba(169, 55, 14, 0.35);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 260ms;

  /* Motion (motion.dev) - spring presets for interactive elements */
  --spring-snappy: 420, 32, 1;   /* stiffness, damping, mass - hover/tap feedback */
  --spring-smooth: 260, 28, 1;   /* card entrances, reveals */
  --duration-slow: 480ms;
}

/* ============================================================
   GLASS (iOS style) - Raven world cards and chrome
   A frosted pane with a lit top edge and an offset shadow; never a glow.
   Hardcode values inside -webkit-backdrop-filter: custom properties do not
   resolve there in Safari.
   ============================================================ */
:root {
  --glass-light: linear-gradient(180deg, rgba(238, 246, 252, 0.16), rgba(238, 246, 252, 0.06));
  --glass-dark: linear-gradient(180deg, rgba(16, 11, 10, 0.86), rgba(7, 4, 3, 0.8));
  --glass-rim: rgba(238, 246, 252, 0.22);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  --glass-blur: blur(24px) saturate(160%);
  --radius-glass: 24px;      /* glass cards */
  --radius-glass-sm: 14px;   /* frames and media inside glass */
  --radius-panel: 32px;      /* the ice panel */
  --radius-control: 12px;    /* buttons, inputs, tap rows */
  --radius-well: 10px;       /* small media wells (year card, book covers) */
  --radius-phone: 16px;      /* phone screenshots */
  --radius-bar: 16px;        /* floating bars: the nav and the Menu button */
  --radius-bar-item: 10px;   /* items inside a bar: 16px minus its 6px padding, so the curves nest */
  /* liquid glass (owner, 15 Nov 2026), after Apple's material for controls that float over content: a light blur with
     boosted saturation, a dimming layer so text holds over bright footage, a specular top edge, a rim that catches light
     at the top left and bottom right, and a soft drop. The selected item is a solid ice lens, as Apple makes the
     selected tab opaque */
  --liquid-fill: linear-gradient(180deg, rgba(238, 246, 252, 0.09), rgba(238, 246, 252, 0.02)), rgba(7, 4, 3, 0.62);
  --liquid-blur: blur(14px) saturate(180%);
  --liquid-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.04) 58%, rgba(255, 255, 255, 0.3));
  --liquid-edge: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.08), inset 0 0 16px rgba(238, 246, 252, 0.06);
  --liquid-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.35);
  --liquid-text-shadow: 0 1px 2px rgba(7, 4, 3, 0.45);
  --liquid-hover: rgba(238, 246, 252, 0.1);
  --liquid-lens: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(222, 236, 247, 0.9));
  --liquid-lens-edge: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(7, 4, 3, 0.14), 0 6px 14px -6px rgba(0, 0, 0, 0.6);
  --glass-rim-dark: rgba(238, 246, 252, 0.16);
  --glass-edge-dark: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ============================================================
   DISSOLVE - grainy, feathered edges (owner, 9 Nov 2026: "fuzzy texture around
   the corners, not so sharp"). Fractal noise thresholded against a blurred shape,
   used as a mask. Panel: all four edges. Top: a section that grows out of the one above.
   ============================================================ */
:root {
  --mask-dissolve-panel: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'><filter id='d' x='-20%' y='-20%' width='140%' height='140%'><feGaussianBlur in='SourceGraphic' stdDeviation='34' result='b'/><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4' result='n'/><feComposite in='b' in2='n' operator='arithmetic' k2='1.7' k3='-.7' k4='-.05' result='m'/><feComponentTransfer in='m'><feFuncA type='linear' slope='3.2' intercept='-.7'/></feComponentTransfer></filter><rect x='70' y='70' width='1060' height='460' rx='60' fill='white' filter='url(%23d)'/></svg>");
  --mask-dissolve-top: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='white' stop-opacity='0'/><stop offset='.42' stop-color='white' stop-opacity='1'/></linearGradient></defs><filter id='d' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7' result='n'/><feComposite in='SourceGraphic' in2='n' operator='arithmetic' k2='1.7' k3='-.7' k4='-.05' result='m'/><feComponentTransfer in='m'><feFuncA type='linear' slope='3.2' intercept='-.7'/></feComponentTransfer></filter><rect width='1200' height='600' fill='url(%23g)' filter='url(%23d)'/></svg>");
}

/* ============================================================
   RAVEN DETAILS - values the homepage reuses (polish pass, 9 Nov 2026)
   ============================================================ */
:root {
  --ice-hairline: rgba(190, 222, 244, 0.28);    /* timeline line, field borders */
  --ice-underline: rgba(190, 222, 244, 0.45);   /* text link underline */
  --input-fill: rgba(7, 4, 3, 0.55);            /* form fields on dark glass */
  --shadow-text: 0 2px 16px rgba(7, 4, 3, 0.6); /* light type over the mesh or a photo */
  --glass-clear: linear-gradient(180deg, rgba(238, 246, 252, 0.12), rgba(238, 246, 252, 0.03)), rgba(7, 4, 3, 0.6);
  --glass-clear-rim: rgba(238, 246, 252, 0.26);
  --glass-clear-edge: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  /* pebbles: small natural stones that mark steps; ice glass at rest, a polished poppy stone for "now" */
  --pebble-fill: radial-gradient(120% 100% at 30% 24%, rgba(238, 246, 252, 0.6), rgba(238, 246, 252, 0.14) 64%, rgba(238, 246, 252, 0.06));
  --pebble-rim: rgba(238, 246, 252, 0.4);
  --pebble-edge: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(7, 4, 3, 0.3), 0 6px 14px -4px rgba(0, 0, 0, 0.7);
  --pebble-active: radial-gradient(55% 45% at 34% 26%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%), radial-gradient(130% 120% at 30% 24%, #ef6a5a, var(--poppy) 55%, var(--poppy-700));
  --pebble-rim-active: rgba(255, 255, 255, 0.4);
  /* eight stone outlines (corner radii, horizontal / vertical); .pebble[data-p] pairs each with a size and a tilt */
  --pebble-1: 62% 38% 46% 54% / 60% 44% 56% 40%;
  --pebble-2: 45% 55% 62% 38% / 52% 60% 40% 48%;
  --pebble-3: 70% 30% 45% 55% / 55% 45% 60% 40%;
  --pebble-4: 40% 60% 55% 45% / 58% 42% 58% 42%;
  --pebble-5: 52% 48% 68% 32% / 38% 58% 42% 62%;
  --pebble-6: 64% 36% 50% 50% / 50% 58% 42% 50%;
  --pebble-7: 35% 65% 42% 58% / 62% 46% 54% 38%;
  --pebble-8: 58% 42% 60% 40% / 44% 48% 52% 56%;
  --sheet-veil: radial-gradient(90% 60% at 100% 100%, rgba(208, 55, 42, 0.32), rgba(208, 55, 42, 0) 70%), rgba(7, 4, 3, 0.88); /* the phone menu over the page */
  --progress-red: linear-gradient(90deg, rgba(208, 55, 42, 0), rgba(232, 80, 63, 0.75));
  --scrim-text: radial-gradient(closest-side, rgba(7, 4, 3, 0.62), rgba(7, 4, 3, 0.38) 62%, rgba(7, 4, 3, 0)); /* soft Raven pool behind light type on the mesh */
}
