/* =========================================================
   Olga Kolgusheva — personal site styles
   Palette and type from the "Vibe Designer" light hero:
   warm off-white, ink, one raspberry accent; Freight Big Pro over DM Sans.
   ========================================================= */

@font-face {
  font-family: 'Freight Big Pro';
  src: url('/_astro/freight-big-pro-regular.BXgi6PtD.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Freight Big Pro';
  src: url('/_astro/freight-big-pro-italic.Bj2hqw5E.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* dark concept from the "Vibe Designer" canvas, without the pink accent */
  --bg: #0E0610;          /* deep aubergine-black page */
  --surface: #1A1120;     /* form card */
  --field: #120914;       /* inputs */
  --ink: #FBF1F4;         /* text + filled button (17.6:1 on --bg) */
  --ink-2: #E4D6DC;       /* body copy (13:1) */
  --muted: #B4A3AB;       /* small print (8:1) */
  --on-ink: #170812;      /* text on the light button */
  --accent: #FBF1F4;      /* no colour accent: italics carry the emphasis */
  --error: #FFB07A;       /* error text/borders (10:1) */
  --line: rgba(251, 241, 244, 0.14);
  --line-strong: rgba(251, 241, 244, 0.45);   /* form field borders: 3:1+ */
  --shadow-btn: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 30px 70px -30px rgba(0, 0, 0, 0.7);

  --serif: 'Freight Big Pro', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans Variable', 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --r-btn: 16px;
  --r-card: 28px;
  --gutter: clamp(24px, 5vw, 72px);
  --container: 1400px;    /* content width on big screens: logo, menu, text, photo and footer all align to it */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #fff; }
picture { display: contents; }
picture > source { display: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto; overflow: visible; white-space: normal; background: var(--ink); color: var(--on-ink); border-radius: 10px; font-weight: 600; }
main:focus { outline: none; }

/* ---------- Page frame ---------- */
.p-site { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: clip; }   /* the gradient's glow never adds scrolling */
.p-nav {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(16px, 2.8vh, 28px) var(--gutter);
  font-size: 16px; font-weight: 500;
}
.p-brand { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.p-main { flex: 1; display: flex; flex-direction: column; }
.p-foot {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(14px, 2.4vh, 28px) var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px;
  font-size: 14px; color: var(--muted); text-align: center;
}

/* ---------- Phone menu ---------- */
.burger { display: none; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; color: var(--ink); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.burger span { display: block; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.menu {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; gap: 40px;
  padding: clamp(16px, 2.8vh, 28px) var(--gutter) 40px; background: var(--bg);   /* phone menu: full width */
  opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-close { width: 48px; height: 48px; margin-right: -10px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 44px; line-height: 1.1; text-decoration: none; }
.menu-links a:hover { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: var(--r-btn);
  font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-dark { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-btn); }
.btn-dark:hover { color: var(--on-ink); background: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5); }
.btn-dark:active { transform: translateY(0); }
.btn-small { min-height: 48px; padding: 0 22px; font-size: 16px; box-shadow: none; }
.btn-outline { border-color: rgba(251, 241, 244, 0.4); background: transparent; color: var(--ink); }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }


/* ---------- Home: one section, text left / photo right ---------- */
.hero {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center; gap: clamp(32px, 4.5vw, 72px);   /* stops growing at 72px */
  padding: 0 var(--gutter) clamp(16px, 2.5vh, 32px);
  max-width: calc(var(--container) + 2 * var(--gutter)); width: 100%; margin: 0 auto;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.8vh, 30px); max-width: 640px; }
.hero h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, min(5.6vw, 7.2vh), 104px); line-height: 0.92; letter-spacing: -0.025em;   /* scales with the screen's width AND height */
}
.eyebrow { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 calc(-1 * clamp(4px, 1vh, 12px)); padding: 0; list-style: none; font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.eyebrow li { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow svg { flex: none; color: #FFC7A6; }
.hero h1 em { font-style: italic; color: var(--accent); }
.h-line { display: block; }
.hero .lead { margin: 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; line-height: 1.45; color: var(--ink-2); max-width: 520px; }
.bio { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 14px); max-width: 620px; }
.bio p { margin: 0; font-size: clamp(14px, 1.75vh, 17.5px); line-height: 1.52; color: var(--ink-2); }
.bio a { color: var(--ink); text-decoration-color: rgba(251, 241, 244, 0.45); text-underline-offset: 3px; }
.bio a:hover { color: #fff; text-decoration-color: currentColor; }
.p-links { display: flex; align-items: center; gap: 28px; }
.p-link { text-decoration: none; font-weight: 500; position: relative; }
.p-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.p-link:hover::after { transform: scaleX(1); }
/* small peach "New" label next to a menu item */
.new-label { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: #FFC7A6; color: #170812; font-family: var(--sans); font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; position: relative; top: -2px; }
.menu-links .new-label { height: 24px; font-size: 12px; top: -8px; margin-left: 10px; }
.p-foot a { color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.hero-note { font-size: 15px; color: var(--muted); }

.hero { position: relative; }
.hero-copy { position: relative; z-index: 1; }

/* glowing colour field behind the photo (rose pink → peach → apricot), drifting slowly */
.hero-gradient { position: absolute; inset: -22% -30% -22% 12%; pointer-events: none; z-index: 0; filter: blur(48px); }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.blob-1 { width: 64%; aspect-ratio: 1; left: 14%; top: 6%; background: radial-gradient(circle, rgba(232, 108, 150, 0.9) 0%, rgba(232, 108, 150, 0.32) 42%, rgba(232, 108, 150, 0) 70%); }
.blob-2 { width: 66%; aspect-ratio: 1; left: 36%; top: 22%; background: radial-gradient(circle, rgba(255, 158, 128, 0.88) 0%, rgba(255, 158, 128, 0.3) 44%, rgba(255, 158, 128, 0) 70%); }
.blob-3 { width: 58%; aspect-ratio: 1; left: 48%; top: 44%; background: radial-gradient(circle, rgba(255, 196, 150, 0.7) 0%, rgba(255, 196, 150, 0.2) 45%, rgba(255, 196, 150, 0) 70%); }

.hero-art { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; }   /* photo lines up with the menu on the right */
/* as tall as the screen allows (minus the top bar and footer); width follows the photo's shape */
.photo { position: relative; height: min(calc(100svh - 150px), 1000px); width: auto; max-width: 100%; aspect-ratio: 2 / 3; border-radius: 20px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* the photo stays hidden until the particles have assembled it (public/js/particles.js).
   Safety net: it appears anyway after 2s if the script doesn't run. */
.photo img { opacity: 0; animation: show 0s 2s forwards; }
.photo.is-ready img { opacity: 1; animation: none; transition: opacity .35s ease; }
.photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s ease; }
.photo.is-ready canvas { opacity: 0; }

/* social icons */
.social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-link {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(251, 241, 244, 0.3); background: rgba(251, 241, 244, 0.04); color: var(--ink);
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.p-foot { align-items: center; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { text-decoration: none; padding: 12px 0; }   /* 44px tap height */
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.social-link:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); color: var(--on-ink); }

/* ---------- Contact ---------- */
.contact {
  flex: 1; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto;
  padding: 24px var(--gutter) 72px;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: start;
}
.contact-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 24px; }
.contact h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: .92; letter-spacing: -0.025em; }
.contact h1 em { color: var(--accent); }
.contact-intro p { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 440px; }
.contact-steps { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 16px; color: var(--ink-2); }
.contact-steps li { display: flex; gap: 12px; align-items: baseline; }
.contact-steps .n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 22px; min-width: 22px; }

.card { background: var(--surface); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field);
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 140px; padding: 14px 16px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(251, 241, 244, 0.14); }
.is-error .input, .is-error .select, .is-error .textarea { border-color: var(--error); }
.err { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--error); }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }
.form-status { margin: 0; padding: 14px 18px; border: 1px solid var(--error); border-radius: 12px; font-weight: 500; }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* ---------- Simple message pages (thank you, 404) ---------- */
.message { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 24px var(--gutter) 96px; max-width: 760px; }
.message h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7vw, 96px); line-height: .95; letter-spacing: -0.02em; }
.message h1 em { color: var(--accent); }
.message p { margin: 0; font-size: 19px; color: var(--ink-2); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 4%) scale(1.08); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(5%, -5%) scale(.94); } }

.in { opacity: 0; animation: rise .55s var(--ease) forwards; }
.d1 { animation-delay: 0s; } .d2 { animation-delay: .08s; } .d3 { animation-delay: .16s; } .d4 { animation-delay: .24s; } .d5 { animation-delay: .32s; }
.blob-1 { animation: drift-a 14s ease-in-out infinite; }
.blob-2 { animation: drift-b 17s ease-in-out infinite; }
.blob-3 { animation: drift-a 20s -6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .in, .photo img { opacity: 1; }
  }

/* ---------- Home: a collage strip. Computers scroll it sideways, phones vertically ---------- */
.strip { position: relative; outline: none; }
.strip-track { position: relative; display: flex; flex-direction: column; gap: 56px; padding: 8px var(--gutter) 72px; }
.g { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }
.ph { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: var(--surface); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }   /* keep faces in frame */
.snip { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.snip a { color: inherit; }
.snip-lg { font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); line-height: 1.08; letter-spacing: -0.01em; }
.snip-sm { font-size: 15px; }
.snip em, .strip-h1 em, .strip-h2 em { font-style: italic; }
.snip .hl { font-family: var(--serif); font-size: 1.5em; line-height: 1; color: #FFC7A6; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-n { font-family: var(--serif); font-size: clamp(64px, 18vw, 96px); line-height: .9; letter-spacing: -0.02em; }
.stat-l { font-size: 15px; line-height: 1.45; color: var(--ink); max-width: 28ch; }
.strip-h1 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -0.02em; font-size: calc((100vw - 2 * var(--gutter)) / 6.05); }
.strip-h1 .h-line { display: block; white-space: nowrap; }
.strip-h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.02em; font-size: clamp(48px, 13vw, 80px); }
.strip-hint { display: none; }
.g-cta { align-items: flex-start; }
.cta-lead { max-width: 34ch; margin-bottom: 12px; font-size: 18px; }
.strip-progress { display: none; }
.strip-glow { inset: -4% -40% auto -20%; height: 90vh; }
.strip-glow-end { inset: -40% -40% -40% -30%; opacity: .8; }

/* phones: photos alternate between full width and a smaller, offset size for an irregular rhythm */
.ph { aspect-ratio: var(--pw, var(--w)) / var(--h); }
.g:nth-child(4n + 3) .ph { width: 78%; align-self: flex-end; }
.g:nth-child(4n + 1) .ph { width: 86%; }

/* the grow-in: each piece starts small and pops up to full size */
.pop { opacity: 0; transform: translateY(18px) scale(.8); transform-origin: 50% 70%;
  transition: opacity .5s var(--ease), transform .95s cubic-bezier(.34, 1.56, .64, 1); transition-delay: var(--d, 0s); }
.pop.is-in { opacity: 1; transform: none; }
.ph.pop img { scale: 1.25; transition: scale 1.4s var(--ease); transition-delay: var(--d, 0s); }
.ph.pop.is-in img { scale: 1; }
@media (scripting: none) { .pop { opacity: 1; transform: none; } .ph.pop img { scale: 1; } }

/* computers: one screen, the strip moves sideways between the header and the footer */
@media (min-width: 901px) and (min-height: 560px) {
  /* the strip runs the full screen height, behind the header and footer, so the glow isn't cut off;
     --nav-h / --foot-h are measured by public/js/home-scroll.js */
  .p-site:has(.strip) { --nav-h: 100px; --foot-h: 64px; position: relative; height: 100vh; height: 100svh; min-height: 0; }
  .p-site:has(.strip) .p-main { min-height: 0; }
  .p-site:has(.strip) .p-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
  .p-site:has(.strip) .p-foot { position: absolute; bottom: 0; left: 0; right: 0; z-index: 5; }
  .strip { flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; container-type: size; overscroll-behavior-x: contain; }
  .strip::-webkit-scrollbar { display: none; }
  .strip-track {
    --u: calc((100cqh - var(--nav-h) - var(--foot-h) - 14px) / 6);
    flex-direction: row; align-items: stretch; height: 100%; width: max-content; gap: calc(var(--u) * .5);
    --padx: max(var(--gutter), (100vw - var(--container)) / 2);
    padding: calc(var(--nav-h) + var(--u) * .1) var(--padx) calc(var(--foot-h) + 14px + var(--u) * .1);
  }
  .g { flex: none; width: calc(var(--w) * var(--u)); height: 100%; gap: calc(var(--u) * .2); }
  .g-top { justify-content: flex-start; }
  .g-mid { justify-content: center; }
  .g-bottom { justify-content: flex-end; }
  .g-spread { justify-content: space-between; }
  /* the title takes what's left of the first screen after the portrait, so the whole photo is visible on load */
  .g-title { justify-content: center; gap: calc(var(--u) * .3); container-type: inline-size;
    width: min(calc(6.6 * var(--u)), calc(100vw - var(--padx) - var(--gutter) - var(--u) * .5 - 3.2 * var(--u) - 8px)); }
  .ph, .g:nth-child(4n + 3) .ph, .g:nth-child(4n + 1) .ph { flex: none; aspect-ratio: auto; width: 100%; height: calc(var(--h) * var(--u)); align-self: auto; }
  .ph[style*="--pw"] { width: calc(var(--pw) * var(--u)); }
  .ph-end { align-self: flex-end !important; }
  .snip { font-size: clamp(14px, 2.2cqh, 19px); }
  .snip-lg { font-size: clamp(26px, 5.2cqh, 52px); }
  .snip-sm { font-size: clamp(13px, 1.9cqh, 16px); }
  .stat-n { font-size: clamp(56px, 11cqh, 120px); }
  .stat-l { font-size: clamp(13px, 1.9cqh, 16px); }
  .strip-h1 { font-size: 16.2cqi; }
  .strip-h2 { font-size: clamp(48px, 12cqh, 128px); }
  /* the last column is only as wide as its content, so the scroll stops as soon as the heading
     and button are fully in view; its glow stays inside it and adds no extra scroll room */
  .g-cta { gap: calc(var(--u) * .3); width: max-content; }
  .strip-glow-end { inset: -15% 0 -15% -10%; }
  .cta-lead { font-size: clamp(16px, 2.4cqh, 21px); margin-bottom: calc(var(--u) * .15); }
  .g-cta .hero-actions { margin-top: calc(var(--u) * .1); }
  .strip-hint { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; letter-spacing: .04em; color: var(--ink); }
  .strip-hint span { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
  .strip-glow { inset: -10% auto -10% calc(var(--u) * 5); width: calc(var(--u) * 9); height: auto; }
  .strip-progress { display: block; position: absolute; z-index: 5; left: 0; right: 0; bottom: var(--foot-h); height: 2px; width: 100%; max-width: calc(var(--container)); margin: 0 auto; background: var(--line); border-radius: 2px; }
  .strip-progress span { position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform-origin: left; transform: scaleX(0); }
}
@media (min-width: 901px) and (min-height: 560px) and (max-width: 1500px) {
  .strip-progress { width: calc(100% - 2 * var(--gutter)); }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ---------- Services: a big list; hovering a row shows its image ---------- */
.svc-intro, .svc-list, .svc-cta {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.svc-intro { padding-top: clamp(24px, 6vh, 72px); padding-bottom: clamp(32px, 6vh, 64px); }
.svc-intro, .svc-cta { position: relative; }
.svc-intro > :not(.hero-gradient), .svc-cta > :not(.hero-gradient) { position: relative; z-index: 1; }
.hero-gradient.svc-glow { inset: -60% -30% -10% 68%; }
.hero-gradient.svc-glow-cta { inset: -10% 10% -30% 10%; opacity: .7; }
.svc-intro h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 128px); line-height: .95; letter-spacing: -0.02em; }
.svc-intro h1 em, .svc-cta h2 em { font-style: italic; }
.svc-lede { max-width: 50%; margin: 26px 0 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: var(--ink); }

.svc-list { position: relative; z-index: 1; list-style: none; margin-top: 0; margin-bottom: 0; }
.svc-row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 360px); gap: 8px 32px;
  align-items: center; padding: clamp(22px, 3.4vh, 36px) 0; border-top: 1px solid var(--line);
  transition: opacity .4s var(--ease);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-num { align-self: start; padding-top: .9em; font-size: 14px; letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.svc-title {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.6vw, 112px); line-height: 1;
  letter-spacing: -0.02em; transition: transform .5s var(--ease), color .4s var(--ease);
}
.svc-body { font-size: 15px; line-height: 1.5; color: var(--ink); }
.svc-line { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.2; color: var(--ink); }
.svc-text { margin: 0; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.svc-tags li { padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12.5px; color: var(--ink); }

/* hover: the row under the pointer slides right, the others step back */
.svc-list.is-hovering .svc-row { opacity: .28; }
.svc-list.is-hovering .svc-row.is-active { opacity: 1; }
.svc-row.is-active .svc-title { transform: translateX(clamp(12px, 2vw, 32px)); }

/* the floating frame (computers only) */
.svc-preview {
  position: fixed; top: 0; left: 0; z-index: 0; width: clamp(220px, 17vw, 300px); aspect-ratio: 4 / 5;
  pointer-events: none; opacity: 0; scale: .7; will-change: transform;
  transition: opacity .35s var(--ease), scale .5s var(--ease);
}
.svc-preview.is-on { opacity: 1; scale: 1; }
.svc-media { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; clip-path: inset(100% 0 0 0 round 20px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.svc-media.is-on { clip-path: inset(0 0 0 0 round 20px); transition: clip-path .6s var(--ease); }
.svc-media.is-leaving { clip-path: inset(0 0 0 0 round 20px); }
/* a light dark veil so the white titles stay readable over bright parts of a photo */
.svc-media::after { content: ''; position: absolute; inset: 0; background: rgba(14, 6, 16, .38); pointer-events: none; }
.svc-media img, .svc-inline img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-media img, .svc-media .svc-ph { scale: 1.2; transition: scale .9s var(--ease); }
.svc-media.is-on img, .svc-media.is-on .svc-ph { scale: 1; }

/* stand-in tiles until the real photos are added */
.svc-ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.svc-ph span { font-family: var(--serif); font-style: italic; font-size: 96px; line-height: 1; color: rgba(255, 255, 255, .85); }
.svc-ph-0 { background: radial-gradient(120% 90% at 20% 15%, #FF9E80 0%, transparent 55%), radial-gradient(100% 80% at 85% 90%, #E86C96 0%, transparent 60%), #2A1426; }
.svc-ph-1 { background: radial-gradient(110% 90% at 80% 20%, #E86C96 0%, transparent 55%), radial-gradient(90% 80% at 15% 85%, #FFC496 0%, transparent 60%), #24111F; }
.svc-ph-2 { background: radial-gradient(120% 90% at 50% 0%, #FFC496 0%, transparent 55%), radial-gradient(100% 90% at 50% 100%, #B84A7A 0%, transparent 60%), #1F0F1C; }
.svc-ph-3 { background: radial-gradient(110% 90% at 15% 80%, #FF9E80 0%, transparent 55%), radial-gradient(90% 80% at 85% 15%, #8E5BD0 0%, transparent 60%), #1C1024; }
.svc-ph-4 { background: radial-gradient(110% 90% at 85% 85%, #FFC7A6 0%, transparent 55%), radial-gradient(100% 80% at 15% 15%, #8E5BD0 0%, transparent 60%), #1A0F22; }

.svc-inline { display: none; }

.svc-cta { padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(56px, 10vh, 120px); text-align: center; }
.svc-cta h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.5vw, 84px); line-height: 1; letter-spacing: -0.02em; }
.svc-cta p { margin: 18px auto 30px; max-width: 460px; font-size: 17px; line-height: 1.55; color: var(--ink); }

/* phones, tablets and touch screens: no hover, so each row shows its image */
@media (max-width: 900px), (hover: none) {
  .svc-preview { display: none; }
  .svc-list.is-hovering .svc-row { opacity: 1; }
  .svc-row.is-active .svc-title { transform: none; }
  .svc-inline { display: block; grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 10; margin-bottom: 14px; overflow: hidden; border-radius: 18px; }
}
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0 32px; }
  .svc-lede { max-width: none; }
  .svc-num { padding-top: 0; }
  .svc-ph span { font-size: 72px; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .svc-inline { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-media, .svc-media.is-on { transition: none; }
}

/* ---------- Laptops and up: the home page fits exactly one screen ---------- */
@media (min-width: 1100px) and (min-height: 620px) {
  :root { --ph: min(calc(100svh - 232px), 1000px); }
  /* one screen when the text fits; on short screens the page grows instead of overlapping the footer */
  /* the photo is a 3:4 portrait sized from the screen height; the text takes the rest of the
     row, so the gap between them is always 64px and the photo lines up with the menu */
  .hero { flex: 1; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; }
  .hero-copy { max-width: 760px; }
  .hero-art { min-height: 0; }
  .photo { height: var(--ph); width: calc(var(--ph) * 3 / 4); max-width: none; aspect-ratio: auto; }
}
@media (min-width: 1100px) and (min-height: 761px) and (max-height: 1050px) {
  .hero-copy { gap: 16px; }
}
@media (min-width: 1100px) and (max-height: 760px) {
  .hero-copy { gap: 14px; }
  .bio p { font-size: 14px; line-height: 1.5; }
}

/* ---------- Large tablets (901–1099px): photo fills its column in a 3:4 frame ---------- */
@media (min-width: 901px) and (max-width: 1099px) {
  .hero-art { justify-content: stretch; }
  .photo { width: 100%; height: auto; aspect-ratio: 3 / 4; max-height: calc(100svh - 150px); }
}

/* ---------- Below 1000px the menu moves into the burger ---------- */
@media (max-width: 1000px) {
  .p-links { display: none; }
  .burger { display: flex; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
  .p-nav { padding: 20px var(--gutter); }
  /* room for the fortune-cookie heart in the bottom-right corner, so it never covers the footer */
  .p-foot { padding-bottom: 84px; }
  .hero { grid-template-columns: 1fr; padding-top: 0; gap: 40px; }
  /* the headline spans the full text width: its longest line ("Digital Strategist,") is ~5.85em wide */
  .hero h1 { font-size: calc(min(100vw - 2 * var(--gutter), 620px) / 5.9); }
  .p-brand { font-size: 30px; }
  .hero-art { order: -1; padding: 8px 0 0; justify-content: stretch; }
  /* tablets and phones: the photo spans the full content width, aligned with the text */
  .photo { height: auto; width: 100%; max-width: none; aspect-ratio: 3 / 4; max-height: 86svh; }
  .hero-gradient { inset: -6% -30% 30% -10%; }
  .hero-gradient.svc-glow { inset: -30% -60% 40% 45%; }
  .hero-gradient.svc-glow-cta { inset: 0 -30% -20% -30%; }
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

.fortune[data-astro-cid-ll2niqdk] {
  --f-surface: #1f1426;
  --f-float: 0 18px 44px -12px #000000bf, 0 0 0 1px #fbf1f414;
  --f-heart: #ff8fa8;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
  font-family: var(--sans);
}

.fortune-glyph[data-astro-cid-ll2niqdk] {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--f-heart);
}

.fortune-glyph--sm[data-astro-cid-ll2niqdk] {
  width: 1rem;
  height: 1rem;
}

.fortune[data-astro-cid-ll2niqdk] .fortune-heart {
  display: block;
  width: 100%;
  height: 100%;
}

.fortune-launcher[data-astro-cid-ll2niqdk] {
  order: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: var(--f-surface);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--f-float);
  cursor: pointer;
  transition: transform .2s;
}

.fortune-launcher[data-astro-cid-ll2niqdk]:hover {
  transform: translateY(-2px);
}

.fortune-launcher[data-astro-cid-ll2niqdk]:focus-visible {
  border-radius: 50%;
}

.fortune-notice[data-astro-cid-ll2niqdk] {
  position: relative;
  order: 2;
  opacity: 0;
  transform: translateY(.375rem);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.fortune[data-astro-cid-ll2niqdk].is-noticing .fortune-notice[data-astro-cid-ll2niqdk] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fortune[data-astro-cid-ll2niqdk].is-open .fortune-notice[data-astro-cid-ll2niqdk], .fortune[data-astro-cid-ll2niqdk].is-dismissed .fortune-notice[data-astro-cid-ll2niqdk] {
  display: none;
}

.fortune-notice-btn[data-astro-cid-ll2niqdk] {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 2.125rem .625rem .875rem;
  background: var(--f-surface);
  border: 0;
  border-radius: .75rem;
  box-shadow: var(--f-float);
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
}

.fortune-notice-x[data-astro-cid-ll2niqdk] {
  position: absolute;
  top: 50%;
  right: .5rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}

.fortune-notice-x[data-astro-cid-ll2niqdk] svg[data-astro-cid-ll2niqdk] {
  width: .8125rem;
  height: .8125rem;
}

.fortune-notice-x[data-astro-cid-ll2niqdk]:hover {
  background: var(--line);
  color: var(--ink);
}

.fortune-card[data-astro-cid-ll2niqdk] {
  position: relative;
  order: 1;
  width: 19rem;
  max-width: calc(100vw - 3rem);
  padding: 1.5rem;
  background: var(--f-surface);
  border-radius: 1rem;
  box-shadow: var(--f-float);
  opacity: 0;
  transform: translateY(.5rem);
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}

.fortune[data-astro-cid-ll2niqdk].is-open .fortune-card[data-astro-cid-ll2niqdk] {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s, 0s, 0s;
}

.fortune-card[data-astro-cid-ll2niqdk]:before, .fortune-card[data-astro-cid-ll2niqdk]:after, .fortune-notice[data-astro-cid-ll2niqdk]:before, .fortune-notice[data-astro-cid-ll2niqdk]:after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  translate: -50%;
  pointer-events: none;
  background: radial-gradient(50% 50%, #e86c96b3, #ff9e8000);
}

.fortune-card[data-astro-cid-ll2niqdk]:before, .fortune-card[data-astro-cid-ll2niqdk]:after {
  width: 90%;
  height: 4.5rem;
  filter: blur(20px);
}

.fortune-card[data-astro-cid-ll2niqdk]:before {
  top: -2.875rem;
}

.fortune-card[data-astro-cid-ll2niqdk]:after {
  bottom: -2.875rem;
  background: radial-gradient(50% 50%, #ff9e80a6, #ff9e8000);
}

.fortune-notice[data-astro-cid-ll2niqdk]:before, .fortune-notice[data-astro-cid-ll2niqdk]:after {
  width: 84%;
  height: 2rem;
  filter: blur(12px);
}

.fortune-notice[data-astro-cid-ll2niqdk]:before {
  top: -1.375rem;
}

.fortune-notice[data-astro-cid-ll2niqdk]:after {
  bottom: -1.375rem;
  background: radial-gradient(50% 50%, #ff9e8099, #ff9e8000);
}

.fortune-x[data-astro-cid-ll2niqdk] {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
}

.fortune-x[data-astro-cid-ll2niqdk] svg[data-astro-cid-ll2niqdk] {
  width: .875rem;
  height: .875rem;
}

.fortune-x[data-astro-cid-ll2niqdk]:hover {
  background: var(--line);
  color: var(--ink);
}

.fortune-fortune[data-astro-cid-ll2niqdk] {
  margin: .875rem 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: pretty;
}

.fortune-sign[data-astro-cid-ll2niqdk] {
  margin: .75rem 0 0;
  font-size: 14px;
  color: var(--muted);
}

.fortune-ask[data-astro-cid-ll2niqdk] {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.fortune-ask[data-astro-cid-ll2niqdk] a[data-astro-cid-ll2niqdk] {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: .2em;
}

.fortune-ask[data-astro-cid-ll2niqdk] a[data-astro-cid-ll2niqdk]:hover {
  text-decoration-color: currentColor;
}

@media (width <= 480px) {
  .fortune[data-astro-cid-ll2niqdk] {
    right: 1rem;
    bottom: 1rem;
  }

  .fortune-card[data-astro-cid-ll2niqdk] {
    width: calc(100vw - 2rem);
    max-width: 19rem;
  }

  .fortune-notice-btn[data-astro-cid-ll2niqdk] {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fortune-notice[data-astro-cid-ll2niqdk], .fortune-card[data-astro-cid-ll2niqdk], .fortune-launcher[data-astro-cid-ll2niqdk] {
    transition-duration: .01ms;
  }

  .fortune-launcher[data-astro-cid-ll2niqdk]:hover {
    transform: none;
  }
}

@media print {
  .fortune[data-astro-cid-ll2niqdk] {
    display: none;
  }
}
