/* =========================================================
   Finesse Tap Card — Liquid Glass template
   Finesse Media LLC

   Per client, edit ONLY the "BRAND TOKENS" block below.
   Everything else is the shared glass system.
   ========================================================= */

@font-face{ font-family:"Display"; font-weight:600; font-style:normal; font-display:swap; src:url("../fonts/display-600.woff2") format("woff2"); }
@font-face{ font-family:"Display"; font-weight:700; font-style:normal; font-display:swap; src:url("../fonts/display-700.woff2") format("woff2"); }

/* ================= BRAND TOKENS (edit per client) ================= */
/* Deltona Wellness & Psychiatry: Playfair Display + DM Sans; sage, olive, gold, terracotta, ivory (from live site tailwind.config.js) */
@font-face{ font-family:"DM Sans"; font-weight:400; font-style:normal; font-display:swap; src:url("../fonts/dmsans-400.woff2") format("woff2"); }
@font-face{ font-family:"DM Sans"; font-weight:500; font-style:normal; font-display:swap; src:url("../fonts/dmsans-500.woff2") format("woff2"); }
@font-face{ font-family:"DM Sans"; font-weight:600; font-style:normal; font-display:swap; src:url("../fonts/dmsans-600.woff2") format("woff2"); }
@font-face{ font-family:"DM Sans"; font-weight:700; font-style:normal; font-display:swap; src:url("../fonts/dmsans-700.woff2") format("woff2"); }
body{ --sans:"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
:root{
  /* type */
  --display-font:"Display", Georgia, "Times New Roman", serif;  /* Playfair Display */
  --name-weight:700;
  --name-transform:none;
  --name-tracking:-.005em;

  /* light mode brand */
  --accent:#3F5A42;                /* sage dark: readable on the pale glass */
  --accent-soft:#7A9A7D;
  --badge-a:#EFE9DC;               /* ivory/sand to gold */
  --badge-b:#D8C27E;
  --badge-ink:#2D3228;
  --prominent:rgba(45,50,40,.92);  /* olive dark, as in the site hero */
  --prominent-ink:#FAF8F4;         /* ivory */
  --icon-ink:#2D3228;
  --field-1:#C9D9C9;               /* sage tint */
  --field-2:#EBDDAE;               /* gold tint */
  --field-3:#EDCDBB;               /* terracotta tint */
  --field-4:#E8E2D6;               /* sand */
}
/* dark mode brand */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --accent:#C4A44A;
    --prominent:rgba(250,248,244,.94); --prominent-ink:#2D3228;
    --icon-ink:#D6E2D4;
    --field-1:#3F5A42; --field-2:#7A6326; --field-3:#7A4E38; --field-4:#4A5240;
  }
}
:root[data-theme="dark"]{
  --accent:#C4A44A;
  --prominent:rgba(250,248,244,.94); --prominent-ink:#2D3228;
  --icon-ink:#D6E2D4;
  --field-1:#3F5A42; --field-2:#7A6326; --field-3:#7A4E38; --field-4:#4A5240;
}
/* Logo badge: glossy jet black so the gold mark stands out (same in light and dark) */
html body .badge-orb{
  background:
    radial-gradient(70% 55% at 34% 22%, rgba(255,255,255,.30), rgba(255,255,255,.06) 45%, rgba(255,255,255,0) 62%),
    radial-gradient(120% 120% at 50% 110%, #1a1a1a 0%, #070707 55%, #000 100%);
  -webkit-backdrop-filter:none; backdrop-filter:none;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.35),
    inset 0 -8px 16px rgba(0,0,0,.9),
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 0 0 1px rgba(196,164,74,.35),
    0 16px 30px -10px rgba(0,0,0,.55);
}
html body .badge-orb::after{ background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); opacity:.55; }
html body .badge-orb .logo{ filter:drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
html body .tile.has-img .ti{ color:#3F5A42; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) body .tile.has-img .ti{ color:#E3C877; } }
html body .tile .tile-img{ object-position:50% 28%; }
/* ---- Page background to match deltonawellnesspsychiatry.com ----
   Light: the site's ivory sections with soft sage/10, gold/10 and terracotta/5 washes, olive-dark text.
   Dark: the site's hero, olive-dark with blurred sage and gold glows. */
html:root{
  --bg:#FAF8F4; --ink:#2D3228; --ink-2:#4A5240; --ink-3:#7C8373;
  --field-o:.7;
  --field-1:#C8D8C8;   /* sage-light wash */
  --field-2:#EFE3BF;   /* gold/10 */
  --field-3:#F1DDD0;   /* terracotta/10 */
  --field-4:#E8E2D6;   /* sand */
  --glass-edge:rgba(45,50,40,.07);
  --glass-shadow:0 10px 30px -12px rgba(45,50,40,.26), 0 2px 6px -2px rgba(45,50,40,.10);
}
@media (prefers-color-scheme: dark){
  html:root:not([data-theme="light"]){
    --bg:#1B1F18; --ink:#FAF8F4; --ink-2:rgba(250,248,244,.76); --ink-3:rgba(250,248,244,.54);
    --field-o:.5;
    --field-1:#3F5A42; --field-2:#6E5A24; --field-3:#5A3C2C; --field-4:#4A5240;
    --glass-shadow:0 12px 34px -12px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.4);
  }
}
html body .photo{ background:#E8E2D6; box-shadow:0 34px 60px -26px rgba(45,50,40,.5), 0 0 0 1px rgba(255,255,255,.4); }
html body .modal{ background:rgba(45,50,40,.32); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) body .photo{ background:#2D3228; box-shadow:0 34px 60px -26px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); } }
html:root{ --motion-a:#7A9A7D; --motion-b:#C4A44A; }   /* sage + gold petals */
/* Side rail: olive dark with gold accents, like the site hero */
html:root{ --rail-bg:#2D3228; --rail-ink:#FAF8F4; --rail-accent:#D8BE6E; }
@media (prefers-color-scheme: dark){ html:root:not([data-theme="light"]){ --rail-bg:#0F120D; } }
/* ---- Palette: Evergreen & Brass (approved). Overrides the Sage & Gold tokens above. ---- */
html:root:root{
  --bg:#F5F1EA; --ink:#1D2B2A; --ink-2:#4A5A58; --ink-3:color-mix(in srgb, #4A5A58 70%, #F5F1EA);
  --accent:#2E6A64; --accent-soft:#D6B878;
  --prominent:color-mix(in srgb, #1F4A47 94%, transparent); --prominent-ink:#F5F1EA;
  --badge-a:#F3E9D2; --badge-b:#D6B878; --badge-ink:#1F4A47; --icon-ink:#1F4A47;
  --field-1:#CFE2DE; --field-2:#F0E3C4; --field-3:#E4ECE9; --field-4:#E9E1D3;
  --rail-bg:#1F4A47; --rail-ink:#F5F1EA; --rail-accent:#D9B56A;
  --motion-a:#6FA59D; --motion-b:#D9B56A;
  --glass-shadow:0 10px 30px -12px color-mix(in srgb, #1F4A47 30%, transparent), 0 2px 6px -2px color-mix(in srgb, #1F4A47 12%, transparent);
}
html body .tile.has-img .ti{ color:#2E6A64; }
html body .photo{ box-shadow:0 34px 60px -26px color-mix(in srgb, #1F4A47 55%, transparent), 0 0 0 1px rgba(255,255,255,.4); }
html body .cx-med::after{ border-color:color-mix(in srgb, #D9B56A 60%, transparent); }
html:root{ --pv-pos:50% 20%; }   /* live portrait framed exactly like the still */
/* ================= /BRAND TOKENS ================= */

/* ---------- System tokens (shared, rarely edited) ---------- */
:root{
  --bg:#F3F2F7; --ink:#141B30; --ink-2:#4A5470; --ink-3:#7D849A;
  --gold:var(--accent); --navy:var(--icon-ink);
  --field-o:.85;
  --glass:rgba(255,255,255,.34); --glass-strong:rgba(255,255,255,.55);
  --glass-rim-a:rgba(255,255,255,.95); --glass-rim-b:rgba(255,255,255,.25); --glass-edge:rgba(20,27,48,.06);
  --glass-shadow:0 10px 30px -12px rgba(28,38,64,.28), 0 2px 6px -2px rgba(28,38,64,.10);
  --spec:rgba(255,255,255,.75);
  --sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif:var(--display-font);
  --blur:blur(20px) saturate(1.9) brightness(1.06);
  --spring:cubic-bezier(.34,1.56,.64,1); --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light dark;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0C0E18; --ink:#F2F0EA; --ink-2:rgba(242,240,234,.74); --ink-3:rgba(242,240,234,.52);
    --field-o:.55;
    --glass:rgba(255,255,255,.08); --glass-strong:rgba(255,255,255,.14);
    --glass-rim-a:rgba(255,255,255,.45); --glass-rim-b:rgba(255,255,255,.06); --glass-edge:rgba(0,0,0,.25);
    --glass-shadow:0 12px 34px -12px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.4);
    --spec:rgba(255,255,255,.28);
    --blur:blur(20px) saturate(1.7) brightness(.95);
  }
}
:root[data-theme="dark"]{
  --bg:#0C0E18; --ink:#F2F0EA; --ink-2:rgba(242,240,234,.74); --ink-3:rgba(242,240,234,.52);
  --field-o:.55;
  --glass:rgba(255,255,255,.08); --glass-strong:rgba(255,255,255,.14);
  --glass-rim-a:rgba(255,255,255,.45); --glass-rim-b:rgba(255,255,255,.06); --glass-edge:rgba(0,0,0,.25);
  --glass-shadow:0 12px 34px -12px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.4);
  --spec:rgba(255,255,255,.28);
  --blur:blur(20px) saturate(1.7) brightness(.95);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ background:var(--bg); -webkit-tap-highlight-color:transparent; scroll-padding-top:env(safe-area-inset-top,0px); }
html,body{ margin:0; }
body{
  min-height:100svh;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  display:flex; justify-content:center;
  padding:
    max(12px, env(safe-area-inset-top))
    16px
    calc(118px + env(safe-area-inset-bottom));
}
button{ font:inherit; color:inherit; }
a{ color:inherit; }

/* ---------- Color fields behind the glass ---------- */
.fields{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.fields i{ position:absolute; border-radius:50%; filter:blur(64px); opacity:var(--field-o); will-change:transform; }
.fields .f1{ width:340px; height:340px; background:var(--field-1); top:-90px; left:-110px; animation:driftA 22s ease-in-out infinite alternate; }
.fields .f2{ width:300px; height:300px; background:var(--field-2); top:28%; right:-140px; animation:driftB 26s ease-in-out infinite alternate; }
.fields .f3{ width:320px; height:320px; background:var(--field-3); top:58%; left:-150px; animation:driftA 30s ease-in-out infinite alternate-reverse; }
.fields .f4{ width:260px; height:260px; background:var(--field-4); bottom:-80px; right:-60px; animation:driftB 24s ease-in-out infinite alternate-reverse; }
.fields::after{ /* fine grain so the glass has texture to refract */
  content:""; position:absolute; inset:0; opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Liquid glass material ---------- */
.glass{
  position:relative; isolation:isolate;
  background:var(--glass);
  -webkit-backdrop-filter:var(--blur);
          backdrop-filter:var(--blur);
  box-shadow:
    inset 0 1px 1px var(--glass-rim-a),
    inset 0 -1px 1px var(--glass-edge),
    var(--glass-shadow);
}
.glass::before{ /* gradient rim: bright top-left, fading, catch-light bottom-right */
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; pointer-events:none; z-index:2;
  background:linear-gradient(135deg, var(--glass-rim-a), var(--glass-rim-b) 38%, transparent 55%, var(--glass-rim-b) 75%, var(--glass-rim-a));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.glass::after{ /* specular highlight that follows the finger */
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:1;
  background:radial-gradient(120px 80px at var(--mx,30%) var(--my,0%), var(--spec), transparent 70%);
  opacity:.55; transition:opacity .3s ease;
}
.glass.lit::after{ opacity:1; }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .glass{ background:var(--glass-strong); }
}

/* pressable liquid behavior */
.press{
  cursor:pointer; border:0; text-decoration:none; user-select:none; -webkit-user-select:none; touch-action:manipulation;
  transition:transform .45s var(--spring), box-shadow .3s ease, background .3s ease;
}
.press:active, .press.down{ transform:scale(.955); transition:transform .12s ease; }
.press .drop{ /* liquid drop that swells from the touch point */
  position:absolute; z-index:0; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,.35) 45%, transparent 70%);
  animation:drop .6s var(--ease) forwards;
}
.press > *{ position:relative; z-index:3; }
.press > .drop{ position:absolute; z-index:0; }

/* ---------- Card ---------- */
.card{ position:relative; z-index:2; width:100%; max-width:430px; }

.topbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:6px 0 4px; }
.pill{
  display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 14px; border-radius:999px;
  font-size:12px; font-weight:600; letter-spacing:.01em; color:var(--ink-2);
}
.pill .dot{ width:7px; height:7px; border-radius:50%; background:#2FBF6A; box-shadow:0 0 0 3px rgba(47,191,106,.18); }
.icon-pill{ width:40px; height:40px; min-height:40px; padding:0; justify-content:center; border-radius:50%; }
.icon-pill svg{ width:18px; height:18px; }
.icon-pill[aria-pressed="false"] .wave{ display:none; }

/* ---------- Hero: portrait + logo badge ---------- */
.hero{ position:relative; margin:26px auto 30px; perspective:900px; }
.hero.portrait{ width:min(248px, 64vw); aspect-ratio:4/5; }
.tilt{
  position:absolute; inset:0; transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transform-style:preserve-3d; transition:transform .6s var(--spring); animation:float 7s ease-in-out infinite;
}
.rim{ position:absolute; inset:-8px; border-radius:42px; }
.photo{ position:absolute; inset:0; margin:0; border-radius:34px; overflow:hidden; background:#D9D6E0;
  box-shadow:0 34px 60px -26px rgba(28,38,64,.55), 0 0 0 1px rgba(255,255,255,.4); }
.photo img{ width:100%; height:100%; object-fit:cover; object-position:50% 20%; display:block; }
.photo::after{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(155deg, rgba(255,255,255,.34), rgba(255,255,255,0) 32%),
    radial-gradient(140px 90px at var(--gx,30%) var(--gy,8%), rgba(255,255,255,.28), transparent 70%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.18); }
.badge-orb, .orb{
  display:grid; place-items:center; padding:0; border-radius:50%;
  background:radial-gradient(60% 60% at 32% 26%, rgba(255,255,255,.95), rgba(255,255,255,0) 62%), var(--glass-strong);
  -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur);
  box-shadow:inset 0 2px 2px var(--glass-rim-a), inset 0 -6px 16px rgba(120,100,200,.18), inset 0 0 0 1px rgba(255,255,255,.45), 0 16px 30px -12px rgba(28,38,64,.5);
}
.badge-orb{ position:absolute; right:-22px; bottom:-22px; z-index:5; width:92px; height:92px; animation:float 7s ease-in-out infinite; animation-delay:-2s; }
.badge-orb::before, .orb::before{ content:""; position:absolute; inset:-7px; border-radius:50%; border:1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  -webkit-mask:conic-gradient(#000 0 260deg, transparent 260deg); mask:conic-gradient(#000 0 260deg, transparent 260deg); animation:spin 22s linear infinite; pointer-events:none; }
.badge-orb::after, .orb::after{ content:""; position:absolute; top:8%; left:18%; width:44%; height:20%; border-radius:50%;
  background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0)); transform:rotate(-24deg); pointer-events:none; z-index:2; opacity:.8; }
/* Logo motion "orbit": a brass comet circles the badge (12s per lap) and a glint of light sweeps
   across the glossy face every 7s. Stays within 8px of the badge, so it suits the narrow side rail.
   Color: --motion-b */
.badge-orb.motion-orbit{ animation:none; }
.badge-orb.motion-orbit::before{ display:none; }
.orbit-track{ position:absolute; inset:-6.5px; border-radius:50%; pointer-events:none; z-index:-1;
  box-shadow:0 0 0 1.5px color-mix(in srgb, var(--motion-b, var(--accent)) 22%, transparent); }
.orbit{ position:absolute; inset:-8px; border-radius:50%; pointer-events:none; z-index:-1;
  background:conic-gradient(from 0deg, transparent 0turn, transparent .62turn,
    color-mix(in srgb, var(--motion-b, var(--accent)) 25%, transparent) .8turn,
    var(--motion-b, var(--accent)) .985turn, transparent 1turn);
  -webkit-mask:radial-gradient(circle closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px), #000 calc(100% - 1px), transparent 100%);
          mask:radial-gradient(circle closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px), #000 calc(100% - 1px), transparent 100%);
  animation:orbitSpin 12s linear infinite; }
/* comet head rides an unmasked twin so it keeps its glow */
.orbit-spin{ position:absolute; inset:-8px; border-radius:50%; pointer-events:none; z-index:-1; animation:orbitSpin 12s linear infinite; }
.orbit-spin i{ position:absolute; left:50%; top:-1.75px; width:8px; height:8px; margin:0 0 0 -4px; border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #fff, var(--motion-b, var(--accent)) 60%);
  box-shadow:0 0 8px 2px color-mix(in srgb, var(--motion-b, var(--accent)) 70%, transparent); }
.badge-orb.motion-orbit::after{ z-index:4; }
.glint{ position:absolute; inset:0; border-radius:50%; overflow:hidden; pointer-events:none; z-index:5; }
.glint i{ position:absolute; top:-20%; bottom:-20%; left:-60%; width:38%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.08) 30%, rgba(255,255,255,.42) 50%, rgba(255,255,255,.08) 70%, transparent);
  transform:skewX(-18deg); animation:glintSweep 7s cubic-bezier(.55,.1,.35,1) infinite; }
@keyframes orbitSpin{ to{ transform:rotate(1turn); } }
@keyframes glintSweep{ 0%, 62%{ left:-60%; } 82%, 100%{ left:125%; } }
@media (prefers-reduced-motion: reduce){ .orbit, .orbit-spin{ animation:none; } .glint i{ animation:none; opacity:0; } }

/* Logo motion "breathe": coherent breathing (6 breaths/min). Petals open on a 4s inhale,
   hold 1s, close on a 5s exhale; ripples roll out on the exhale. Colors: --motion-a / --motion-b. */
.badge-orb.motion-breathe{ animation:none; }
.badge-orb.motion-breathe::before{ display:none; }
.bloom{ position:absolute; inset:0; pointer-events:none; z-index:-1; --cycle:10s; }
.bloom .breath{ position:absolute; inset:-9px; border-radius:50%;
  background:radial-gradient(circle, transparent 58%, color-mix(in srgb, var(--motion-b, var(--accent)) 38%, transparent) 70%, transparent 74%);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--motion-b, var(--accent)) 45%, transparent);
  animation:breathRing var(--cycle) cubic-bezier(.45,.05,.55,.95) infinite; }
.bloom .ripple{ position:absolute; inset:0; border-radius:50%; border:1px solid color-mix(in srgb, var(--motion-a, var(--accent)) 70%, transparent);
  opacity:0; animation:breathRipple var(--cycle) ease-out infinite; }
.bloom .ripple.r2{ animation-delay:1.1s; }
.bloom i{ position:absolute; left:50%; top:50%; width:9px; height:19px; margin:-9.5px 0 0 -4.5px;
  border-radius:50% 50% 50% 50% / 62% 62% 38% 38%;
  background:linear-gradient(180deg, color-mix(in srgb, var(--motion-b, var(--accent)) 95%, #fff), var(--motion-b, var(--accent)));
  box-shadow:0 2px 6px -2px rgba(0,0,0,.35);
  --r:calc(var(--i) * 45deg);
  transform:rotate(var(--r)) translateY(-52px) scale(.55); opacity:.35;
  animation:breathPetal var(--cycle) cubic-bezier(.45,.05,.55,.95) infinite; }
.bloom i:nth-child(even){ background:linear-gradient(180deg, color-mix(in srgb, var(--motion-a, var(--accent)) 80%, #fff), var(--motion-a, var(--accent))); }
@keyframes breathPetal{
  0%   { transform:rotate(var(--r)) translateY(-51px) scale(.5);  opacity:.3; }
  40%  { transform:rotate(calc(var(--r) + 8deg)) translateY(-59px) scale(.92); opacity:.95; }
  50%  { transform:rotate(calc(var(--r) + 8deg)) translateY(-59px) scale(.92); opacity:.95; }
  100% { transform:rotate(var(--r)) translateY(-51px) scale(.5);  opacity:.3; }
}
@keyframes breathRing{
  0%,100% { transform:scale(.94); opacity:.35; }
  40%,50% { transform:scale(1.1); opacity:1; }
}
@keyframes breathRipple{
  0%,50% { transform:scale(1); opacity:0; }
  55%    { opacity:.55; }
  100%   { transform:scale(1.85); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .bloom .breath, .bloom .ripple, .bloom i{ animation:none; }
  .bloom i{ transform:rotate(var(--r)) translateY(-58px) scale(.8); opacity:.7; }
}
.badge-orb .logo{ width:76%; height:76%; object-fit:contain; filter:drop-shadow(0 4px 6px rgba(28,38,64,.25)); position:relative; z-index:3; }

/* ---------- Hero: logo only (no portrait) ---------- */
.hero.logo-only{ width:min(208px, 56vw); aspect-ratio:1; }
.orb{ position:absolute; inset:0; transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:transform .6s var(--spring); animation:float 6s ease-in-out infinite;
  box-shadow:inset 0 2px 2px var(--glass-rim-a), inset 0 -8px 24px rgba(120,100,200,.18), inset 0 0 0 1px rgba(255,255,255,.35), 0 30px 50px -22px rgba(28,38,64,.45); }
.orb::before{ inset:-12px; }
.orb .logo{ width:74%; height:74%; object-fit:contain; filter:drop-shadow(0 6px 10px rgba(28,38,64,.22)); position:relative; z-index:3; }
.orb .mono{ font-family:var(--serif); font-weight:700; font-size:64px; color:var(--accent); position:relative; z-index:3; }
.halo{ position:absolute; inset:-24px; border-radius:50%; pointer-events:none; border:1px solid rgba(120,140,255,.28);
  -webkit-mask:conic-gradient(#000 0 200deg, transparent 200deg); mask:conic-gradient(#000 0 200deg, transparent 200deg); animation:spin 40s linear infinite reverse; }
.halo.h2{ display:none; }

/* identity */
h1{
  font-family:var(--serif); font-weight:var(--name-weight); font-size:clamp(38px, 11.5vw, 48px); line-height:.98;
  letter-spacing:var(--name-tracking); text-transform:var(--name-transform); text-align:center; margin:0; color:var(--ink);
}
.role{ text-align:center; font-size:13px; line-height:1.6; color:var(--ink-2); margin:12px auto 0; max-width:34ch; }
.role .r{ white-space:nowrap; }
.role .s{ color:var(--gold); padding:0 3px; }
.org{ text-align:center; margin:8px 0 22px; font-size:11px; font-weight:700; letter-spacing:.28em; text-transform:uppercase; color:var(--gold); }

/* primary + secondary capsules */
.save{
  width:100%; min-height:56px; border-radius:999px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; gap:10px;
  font-size:16px; font-weight:600; letter-spacing:.01em;
  color:var(--prominent-ink); background:var(--prominent);
}
.save .ic{ display:inline-flex; } .save svg{ width:19px; height:19px; }
.save.glass{ background:var(--prominent); }
.save.done{ background:linear-gradient(100deg, #2B8A57, #36A76A); color:#fff; }
.pair{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.cap{
  min-height:50px; border-radius:999px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-size:14px; font-weight:600; color:var(--ink);
}
.cap svg{ width:18px; height:18px; color:var(--gold); }

/* sections */
.sec{ display:flex; align-items:center; gap:10px; margin:26px 4px 10px; font-size:11px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-3); }
.sec::after{ content:""; flex:1; height:1px; background:linear-gradient(90deg, rgba(125,132,154,.35), transparent); }

.svc{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tile{ border-radius:22px; padding:14px 14px 13px; overflow:hidden; }
.tile .ti{ width:34px; height:34px; border-radius:11px; display:grid; place-items:center; margin-bottom:10px; color:var(--navy);
  background:linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.45));
  box-shadow:inset 0 1px 1px #fff, 0 3px 8px -4px rgba(28,38,64,.35); }
.tile .ti svg{ width:18px; height:18px; }
.tile b{ display:block; font-size:14px; font-weight:700; color:var(--ink); }
.tile small{ display:block; font-size:12px; color:var(--ink-2); margin-top:2px; line-height:1.35; }
.tile svg .d{ fill:currentColor; stroke:none; opacity:.16; }
/* Image tiles: photo/illustration behind the glass, scrim keeps text readable */
.tile.has-img{ position:relative; isolation:isolate; min-height:172px; display:flex; flex-direction:column; justify-content:space-between; }
.tile .tile-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; border-radius:inherit; }
.tile .tile-scrim{ position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.55) 62%, rgba(255,255,255,.86) 100%); }
.tile.has-img .ti{ margin-bottom:0; width:38px; height:38px; border-radius:12px;
  background:linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.55));
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  box-shadow:inset 0 1px 1px #fff, inset 0 0 0 1px rgba(255,255,255,.5), 0 6px 14px -6px rgba(0,0,0,.45); }
.tile.has-img .ti svg{ width:20px; height:20px; stroke-width:1.6; }
.tile.has-img .tile-tx{ display:block; }

/* link rows */
.list{ display:flex; flex-direction:column; gap:10px; }
.row{
  display:flex; align-items:center; gap:14px; min-height:64px; padding:10px 16px 10px 12px; border-radius:24px; overflow:hidden; color:var(--ink);
}
.row .badge{ width:40px; height:40px; flex:none; border-radius:50%; display:grid; place-items:center; color:var(--badge-ink);
  background:linear-gradient(135deg, var(--badge-a), var(--badge-b)); box-shadow:inset 0 1px 1px rgba(255,255,255,.8), 0 3px 8px -4px rgba(120,90,20,.5); }
.row .badge svg{ width:19px; height:19px; }
.row .tx{ flex:1; min-width:0; }
.row .tx b{ display:block; font-size:15px; font-weight:650; }
.row .tx small{ display:block; font-size:12.5px; color:var(--ink-2); margin-top:2px; }
.row .go{ width:30px; height:30px; flex:none; border-radius:50%; display:grid; place-items:center; color:var(--ink-2);
  background:rgba(255,255,255,.35); box-shadow:inset 0 1px 1px rgba(255,255,255,.8); }
.row .go svg{ width:14px; height:14px; transition:transform .35s var(--spring); }
.row.lit .go svg{ transform:translate(2px,-2px); }

footer{ margin-top:26px; text-align:center; font-size:11px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-3); }
footer a{ text-decoration:none; color:var(--gold); }
footer p{ margin:6px 0 0; font-weight:500; letter-spacing:.14em; }

/* ---------- Floating dock (Call / WhatsApp / Email) ---------- */
.dock{
  position:fixed; z-index:30; left:50%; bottom:calc(14px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(398px, calc(100% - 28px));
  display:grid; grid-template-columns:repeat(3,1fr); gap:4px;
  padding:6px; border-radius:999px;
}
.dock.glass{ background:var(--glass-strong); -webkit-backdrop-filter:blur(28px) saturate(2) brightness(1.08); backdrop-filter:blur(28px) saturate(2) brightness(1.08); }
.dock a{
  min-height:58px; border-radius:999px; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  font-size:11px; font-weight:600; color:var(--ink); text-decoration:none;
  background:transparent;
}
.dock a svg{ width:22px; height:22px; color:var(--navy); }
.dock a.wa svg{ color:#1FA855; }
.dock a.em svg{ color:var(--gold); }
.dock a.lit, .dock a:active{ background:rgba(255,255,255,.45); box-shadow:inset 0 1px 1px rgba(255,255,255,.9); }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .dock a svg{ color:var(--icon-ink); }
  :root:not([data-theme="light"]) .dock a.wa svg{ color:#3DDC84; }
  :root:not([data-theme="light"]) .dock a.em svg{ color:var(--gold); }
  :root:not([data-theme="light"]) .dock a.lit{ background:rgba(255,255,255,.12); }
  :root:not([data-theme="light"]) .tile .ti{ color:#E8ECFF; background:linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); box-shadow:inset 0 1px 1px rgba(255,255,255,.35); }
  :root:not([data-theme="light"]) .tile .tile-scrim{ background:linear-gradient(180deg, rgba(8,10,8,.05) 20%, rgba(8,10,8,.55) 60%, rgba(8,10,8,.88) 100%); }
  :root:not([data-theme="light"]) .tile.has-img .ti{ background:linear-gradient(145deg, rgba(20,22,18,.72), rgba(20,22,18,.45)); box-shadow:inset 0 1px 1px rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 14px -6px rgba(0,0,0,.6); }
  :root:not([data-theme="light"]) .row .go{ background:rgba(255,255,255,.08); box-shadow:inset 0 1px 1px rgba(255,255,255,.2); }
}


/* ---------- Top bar extras ---------- */
.tb-right{ display:flex; gap:8px; }
.lang{ width:auto; min-width:40px; padding:0 12px; font-size:12px; font-weight:700; letter-spacing:.08em; color:var(--ink-2); }
body.no-dock{ padding-bottom:max(28px, env(safe-area-inset-bottom)); }

/* ---------- Section blocks ---------- */
/* Connect panel: address plate + round link medallions (no redundant Directions/Book rows) */
.connect{ border-radius:28px; padding:20px 18px 18px; }
.cx-addr{ position:relative; padding-left:16px; }
.cx-addr::before{ content:""; position:absolute; left:0; top:2px; bottom:2px; width:2px; border-radius:2px;
  background:linear-gradient(180deg, var(--motion-b, var(--accent)), color-mix(in srgb, var(--motion-a, var(--accent)) 70%, transparent)); }
.cx-eyebrow{ display:block; font-size:10.5px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--accent); margin-bottom:6px; }
.cx-addr b{ display:block; font-family:var(--serif); font-weight:600; font-size:21px; line-height:1.15; color:var(--ink); }
.cx-addr small{ display:block; margin-top:3px; font-size:13px; color:var(--ink-2); }
.cx-rule{ display:block; height:1px; margin:18px 2px 16px;
  background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); }
.cx-row{ display:grid; grid-template-columns:repeat(var(--n,3), 1fr); gap:8px; }
.cx-item{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:4px 0; text-decoration:none; color:var(--ink); min-height:44px; border-radius:18px; }
.cx-item:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.cx-med{ position:relative; width:58px; height:58px; border-radius:50%; display:grid; place-items:center; color:var(--badge-ink);
  background:radial-gradient(60% 60% at 32% 26%, rgba(255,255,255,.9), rgba(255,255,255,0) 62%), linear-gradient(145deg, var(--badge-a), var(--badge-b));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.9), inset 0 -4px 10px rgba(0,0,0,.12), 0 10px 20px -10px rgba(0,0,0,.45);
  transition:transform .5s var(--spring); }
.cx-med::after{ content:""; position:absolute; inset:-5px; border-radius:50%; border:1px solid color-mix(in srgb, var(--motion-b, var(--accent)) 55%, transparent); opacity:.7; }
.cx-med svg{ width:22px; height:22px; }
.cx-item:hover .cx-med{ transform:translateY(-3px); }
.cx-lbl{ font-size:12px; font-weight:600; letter-spacing:.01em; color:var(--ink-2); text-align:center; line-height:1.2; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .cx-med{ box-shadow:inset 0 1px 1px rgba(255,255,255,.7), inset 0 -4px 10px rgba(0,0,0,.2), 0 10px 22px -10px rgba(0,0,0,.8); }
}
#sections > .section:first-child{ margin-top:18px; }
.section + .section{ margin-top:10px; }
.mini{
  flex:none; min-height:36px; padding:0 14px; border-radius:999px; border:0; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; font-size:13px; font-weight:650; color:var(--prominent-ink); background:var(--prominent);
  position:relative; overflow:hidden;
}
.cta{ display:flex; align-items:center; gap:14px; min-height:76px; padding:12px 12px 12px 14px; border-radius:26px; overflow:hidden; text-decoration:none; color:var(--ink);
  background:linear-gradient(120deg, color-mix(in srgb, var(--field-1) 38%, transparent), color-mix(in srgb, var(--field-3) 30%, transparent)), var(--glass); }
.cta .cta-ic{ width:46px; height:46px; flex:none; border-radius:15px; display:grid; place-items:center; color:var(--badge-ink);
  background:linear-gradient(135deg, var(--badge-a), var(--badge-b)); box-shadow:inset 0 1px 1px rgba(255,255,255,.8); }
.cta .cta-ic svg{ width:22px; height:22px; }
.cta .tx{ flex:1; min-width:0; }
.cta .tx b{ display:block; font-size:16px; font-weight:700; }
.cta .tx small{ display:block; font-size:12.5px; color:var(--ink-2); margin-top:2px; }
.cta .cta-btn{ flex:none; padding:10px 14px; border-radius:999px; font-size:13px; font-weight:700; color:var(--prominent-ink); background:var(--prominent); }

.about{ border-radius:24px; padding:16px 18px; }
.about p{ margin:0; font-size:14.5px; line-height:1.6; color:var(--ink-2); }

.loc, .pay{ display:flex; align-items:center; gap:14px; min-height:64px; padding:10px 12px; border-radius:24px; }
.loc .badge{ width:40px; height:40px; flex:none; border-radius:50%; display:grid; place-items:center; color:var(--badge-ink); background:linear-gradient(135deg, var(--badge-a), var(--badge-b)); }
.loc .badge svg{ width:19px; height:19px; }
.loc .tx{ flex:1; min-width:0; } .loc .tx b{ display:block; font-size:15px; } .loc .tx small{ display:block; font-size:12.5px; color:var(--ink-2); margin-top:2px; }

.hours{ border-radius:24px; padding:14px 16px; }
.hours .st{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700; margin-bottom:8px; }
.hours .st::before{ content:""; width:8px; height:8px; border-radius:50%; }
.hours .st.on{ color:#1F9A57; } .hours .st.on::before{ background:#2FBF6A; box-shadow:0 0 0 3px rgba(47,191,106,.18); }
.hours .st.off{ color:#C0463B; } .hours .st.off::before{ background:#E0584C; }
.hr{ display:flex; justify-content:space-between; gap:10px; padding:7px 0; font-size:13.5px; color:var(--ink-2); border-top:1px solid rgba(125,132,154,.18); }
.hr.today{ color:var(--ink); font-weight:700; }
.hn{ margin:8px 0 0; font-size:12px; color:var(--ink-3); }

.gallery{ display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 2px 10px; margin:0 -2px; scrollbar-width:none; }
.gallery::-webkit-scrollbar{ display:none; }
.shot{ flex:0 0 72%; margin:0; border-radius:24px; overflow:hidden; scroll-snap-align:start; padding:6px; }
.shot img{ width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:19px; display:block; }
.shot figcaption{ font-size:12.5px; font-weight:600; color:var(--ink-2); padding:8px 6px 4px; }

.reviews{ border-radius:24px; padding:16px; }
.rv-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.rv-head b{ font-size:18px; } .rv-head small{ font-size:12.5px; color:var(--ink-3); }
.stars{ display:inline-flex; gap:2px; } .stars i{ width:16px; height:16px; color:rgba(125,132,154,.35); } .stars i.on{ color:#E7A928; } .stars svg{ width:100%; height:100%; }
.reviews blockquote{ margin:10px 0 0; padding:10px 0 0; border-top:1px solid rgba(125,132,154,.18); }
.reviews blockquote p{ margin:0; font-size:14px; line-height:1.55; color:var(--ink); }
.reviews cite{ display:block; margin-top:4px; font-style:normal; font-size:12px; font-weight:600; color:var(--ink-3); }
.reviews .mini{ margin-top:12px; }

.video{ position:relative; display:grid; place-items:center; aspect-ratio:16/9; border-radius:24px; overflow:hidden; color:#fff; text-decoration:none;
  background:linear-gradient(135deg, color-mix(in srgb, var(--field-1) 70%, #000), color-mix(in srgb, var(--field-2) 60%, #000)); }
.video img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.video .play{ position:relative; z-index:3; width:62px; height:62px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.28);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:inset 0 1px 1px rgba(255,255,255,.8); }
.video .play svg{ width:34px; height:34px; }
.video .vt{ position:absolute; z-index:3; left:14px; bottom:12px; font-size:14px; font-weight:700; text-shadow:0 1px 8px rgba(0,0,0,.5); }

.dock a.bk svg{ color:var(--accent); }

/* ---------- Toast (drops from the top like a notification) ---------- */
#toast{
  position:fixed; z-index:70; left:50%; top:calc(10px + env(safe-area-inset-top));
  transform:translate(-50%, -140%); opacity:0; pointer-events:none;
  max-width:88vw; min-height:44px; padding:12px 18px; border-radius:999px;
  display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600; color:var(--ink); white-space:nowrap;
  background:var(--glass-strong);
  transition:transform .55s var(--spring), opacity .25s ease;
}
#toast.show{ opacity:1; transform:translate(-50%, 0); }
#toast svg{ width:16px; height:16px; color:#2FBF6A; flex:none; }

/* ---------- Sheets (QR + Share) ---------- */
.modal{
  position:fixed; inset:0; z-index:60; display:none; align-items:center; justify-content:center; padding:24px;
  background:rgba(20,27,48,.28); -webkit-backdrop-filter:blur(10px) saturate(1.3); backdrop-filter:blur(10px) saturate(1.3);
}
.modal.show{ display:flex; }
.modal .sheet{ width:100%; max-width:340px; border-radius:36px; padding:22px 20px 18px; text-align:center; background:var(--glass-strong); animation:sheetIn .5s var(--spring); }
.modal h2{ margin:0; font-family:var(--serif); font-weight:700; font-size:26px; color:var(--ink); }
.modal .u{ margin:4px 0 14px; font-size:12px; color:var(--ink-2); word-break:break-all; }
.modal .close{ width:100%; margin-top:14px; }
.qrbox{ padding:12px; border-radius:22px; background:#fff; box-shadow:inset 0 0 0 1px rgba(20,27,48,.06); }
.qrbox svg{ width:100%; height:auto; display:block; }

.urlbox{
  width:100%; margin:12px 0 14px; min-height:44px; padding:0 16px; border:0; border-radius:999px;
  font:500 13px/1 var(--sans); color:var(--ink-2); text-align:center; text-overflow:ellipsis;
  background:rgba(255,255,255,.55); box-shadow:inset 0 1px 2px rgba(20,27,48,.08), inset 0 0 0 1px rgba(20,27,48,.06);
}
.urlbox:focus{ outline:2px solid #6E8CFF; outline-offset:2px; }
.share-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.share-grid .cap{ min-height:52px; font-size:13.5px; }
.share-grid .wa-ic{ color:#1FA855; }
.share-grid .cap.ok svg{ color:#2FBF6A; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .urlbox{ background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
  :root:not([data-theme="light"]) .modal{ background:rgba(0,0,0,.4); }
}

/* ---------- Entrance ---------- */
.reveal{ opacity:0; transform:translateY(14px) scale(.98); }
.booted .reveal{ animation:rise .8s var(--spring) forwards; animation-delay:calc(var(--i,0) * 60ms); }
.dock.reveal{ transform:translate(-50%, 30px); }
.booted .dock.reveal{ animation:dockIn .8s var(--spring) forwards; animation-delay:.5s; }

:focus-visible{ outline:2px solid #6E8CFF; outline-offset:3px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes float{ 0%,100%{ translate:0 0; } 50%{ translate:0 -6px; } }
@keyframes driftA{ to{ transform:translate(70px,60px) scale(1.12); } }
@keyframes driftB{ to{ transform:translate(-60px,80px) scale(.92); } }
@keyframes drop{ from{ transform:scale(1); opacity:1; } to{ transform:scale(28); opacity:0; } }
@keyframes rise{ to{ opacity:1; transform:none; } }
@keyframes dockIn{ to{ opacity:1; transform:translate(-50%, 0); } }
@keyframes sheetIn{ from{ opacity:0; transform:scale(.9); } to{ opacity:1; transform:none; } }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
  .dock.reveal{ transform:translateX(-50%); }
}


/* =========================================================
   Layout: side rail (config layout:"rail")
   Vertical action rail with the logo on top and the org name set vertically;
   content is left-aligned with an asymmetric leaf-shaped portrait.
   Tokens: --rail-bg, --rail-ink, --rail-accent
   ========================================================= */
.rail{ position:fixed; z-index:30; top:0; bottom:0; left:0;
  width:calc(78px + env(safe-area-inset-left)); padding:max(18px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom)) env(safe-area-inset-left);
  display:flex; flex-direction:column; align-items:center; gap:22px;
  color:var(--rail-ink, var(--prominent-ink));
  background:linear-gradient(180deg, color-mix(in srgb, var(--rail-bg, #1C2640) 88%, #fff), var(--rail-bg, #1C2640) 38%);
  border-radius:0 28px 28px 0;
  box-shadow:inset -1px 0 0 rgba(255,255,255,.08), 10px 0 30px -18px rgba(0,0,0,.45); }
.rail[hidden]{ display:none; }
.rail-logo{ position:relative; width:62px; height:62px; flex:none; }
.rail .badge-orb{ position:absolute; left:50%; top:50%; right:auto; bottom:auto; width:92px; height:92px; margin:-46px 0 0 -46px; scale:.54; animation:none; }
.rail-nav{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.rail-nav a, .rail-nav button{ position:relative; overflow:hidden; width:62px; min-height:60px; border:0; border-radius:18px; padding:6px 0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  font:600 10.5px/1.1 var(--sans); letter-spacing:.02em; color:inherit; text-decoration:none; background:transparent; cursor:pointer; }
.rail-nav svg{ width:21px; height:21px; color:var(--rail-accent, currentColor); }
.rail-nav > :first-child, .rail-nav .lit{ background:rgba(255,255,255,.10); box-shadow:inset 0 1px 1px rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.06); }
.rail-nav a:focus-visible, .rail-nav button:focus-visible{ outline:2px solid var(--rail-accent, #fff); outline-offset:2px; }
.rail-org{ margin-top:auto; writing-mode:vertical-rl; transform:rotate(180deg); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-height:42vh;
  font:700 9.5px/1 var(--sans); letter-spacing:.3em; text-transform:uppercase; color:var(--rail-accent, currentColor); opacity:.85; }

body.layout-rail{ padding-left:calc(92px + env(safe-area-inset-left)); padding-right:14px; padding-bottom:max(28px, env(safe-area-inset-bottom)); }
body.layout-rail .dock{ display:none; }
body.layout-rail .hero.portrait{ width:100%; aspect-ratio:5/6; margin:14px 0 22px; perspective:none; }
body.layout-rail .tilt{ animation:none; transform:none; }
body.layout-rail .rim{ display:none; }
body.layout-rail .photo{ border-radius:18px 64px 18px 64px; }
body.layout-rail h1{ text-align:left; font-size:clamp(36px, 11vw, 46px); line-height:1.02; }
body.layout-rail .role{ text-align:left; margin:10px 0 0; }
body.layout-rail .org{ text-align:left; margin:8px 0 20px; letter-spacing:.22em; }
body.layout-rail .save{ border-radius:18px; min-height:56px; }
body.layout-rail .pair{ grid-template-columns:1fr; }
body.layout-rail #shareBtn{ display:none; }
body.layout-rail .cap{ border-radius:18px; }
body.layout-rail .sec{ margin-left:2px; }
body.layout-rail footer{ text-align:left; }
@media (min-width:600px){
  body.layout-rail{ padding-left:16px; }
  body.layout-rail .card{ margin-left:96px; }
  .rail{ left:calc(50% - 263px); top:16px; bottom:16px; border-radius:28px; padding-top:18px; padding-bottom:18px; }
}
@media (prefers-reduced-motion: reduce){ .rail .badge-orb{ scale:.54; } }

/* Live portrait video: sits over the still, fades in once its first frame is ready */
.photo .pvid{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--pv-pos, 50% 30%);
  opacity:0; transition:opacity .5s ease; pointer-events:none; }
.photo .pvid.ready{ opacity:1; }

/* "Want a card like this?" promo: a quiet chip above the footer that sells the card while people use it */
.foot-promo{ display:flex; flex-direction:column; align-items:center; gap:3px; margin:0 auto 22px; padding:12px 18px 11px; max-width:320px;
  border-radius:18px; text-decoration:none; text-transform:none; letter-spacing:normal;
  background:color-mix(in srgb, var(--ink) 5%, transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.foot-promo[hidden]{ display:none; }
.foot-promo .fp-ask{ font-size:12px; font-weight:500; color:var(--ink-2); }
.foot-promo .fp-cta{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:700; color:var(--accent); }
.foot-promo .fp-cta svg{ width:14px; height:14px; }
.foot-promo .fp-by{ font-size:9.5px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-3); margin-top:2px; }
.foot-promo:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
