/* Palette taken from the live fairydust.vc site */
:root {
  --white: #ffffff;
  --brown-900: #361a0c;
  --brown-800: #451809;
  --brown-700: #582110;
  --rose: #b35a53;
  --pink: #ffaea3;
  --blush: #edc2b4;
  --orange: #ff7143;
  --rust: #be522f;
  --maroon: #4f0600;

  --line-dark: rgba(237, 194, 180, 0.18);
  --radius: 20px;
  --max: 1120px;
  --display: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --gutter: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--brown-900);
  color: var(--blush);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--pink); line-height: 1; white-space: nowrap; font-size: 22px; }
.logo svg { width: 1.45em; height: 1.45em; flex: none; }
.wm { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; }
.wm-v { font-weight: 400; letter-spacing: -0.02em; margin-left: .28em; opacity: .78; }

/* =====================================================================
   Components. Every interactive element shares the same motion rules:
   - hover (mouse only): lift 2px, shadow appears, colors shift
   - press (mouse + touch): sink back, scale .97, quick
   - keyboard: a clear ring, never shown on mouse click
   ===================================================================== */
:root {
  --ease: cubic-bezier(.2, .7, .3, 1);
  --t: .22s;
  --lift: translateY(-2px);
  --press: translateY(0) scale(.97);
}

/* ---------- Nav (pink pill, as on the original) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 12px 0; padding-top: max(12px, env(safe-area-inset-top)); transition: padding var(--t) var(--ease); }
.nav-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 174, 163, 0.92);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 8px 8px 8px 18px;
  box-shadow: 0 6px 24px -8px rgba(54, 26, 12, 0.22);
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease), padding var(--t) var(--ease);
}
.nav.scrolled { padding-top: max(8px, env(safe-area-inset-top)); }
.nav.scrolled .nav-pill { background: rgba(255, 174, 163, 0.97); box-shadow: 0 14px 40px -12px rgba(54, 26, 12, 0.4); }

/* Logo link: the stars twinkle on hover */
.logo-link { display: inline-flex; border-radius: 999px; padding: 6px 4px; transition: transform var(--t) var(--ease); }
.nav .logo { color: var(--brown-800); }
.logo .mark path { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .logo-link:hover .mark path:nth-child(1) { transform: scale(.88); }
  .logo-link:hover .mark path:nth-child(2) { transform: scale(1.3); }
  .logo-link:hover .mark path:nth-child(3) { transform: scale(1.5); }
}
.logo-link:active { transform: var(--press); }

.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
/* A soft pill slides under whichever link you point at */
.nav-ind {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px;
  background: rgba(79, 6, 0, 0.1); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s ease;
}
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--maroon); font-size: 16px; font-weight: 500;
  transition: color var(--t) var(--ease), transform .12s ease;
}
.nav-link:active { transform: var(--press); }
/* Current page: a small star beside the label */
.nav-link[aria-current="page"] { font-weight: 700; }
.nav-link[aria-current="page"]::before {
  content: ""; width: 8px; height: 8px; background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.nav-links .btn { margin-left: 6px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--brown-800); color: var(--pink); cursor: pointer;
  align-items: center; justify-content: center;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.menu-toggle:active { transform: var(--press); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle path { transition: transform .3s var(--ease), opacity .2s ease; transform-origin: 12px 12px; }
.menu-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
/* Variants only set colors; all behavior lives on .btn so every button feels the same */
.btn {
  --bg: var(--brown-700); --fg: var(--pink); --bd: transparent;
  --bg-h: var(--brown-800); --fg-h: var(--fg); --bd-h: var(--bd);
  --ic-bg: var(--pink); --ic-fg: var(--brown-800);
  --sh: rgba(54, 26, 12, .55);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 12px 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
  box-shadow: 0 2px 6px -2px var(--sh);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn-ic {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--ic-bg); color: var(--ic-fg);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.btn-ic svg { width: 14px; height: 14px; transition: transform var(--t) var(--ease); }
.btn:active { transform: var(--press); box-shadow: 0 1px 2px -1px var(--sh); transition-duration: .08s; }

.btn-brown { /* defaults */ }
.btn-pink {
  --bg: var(--pink); --fg: var(--brown-800); --bg-h: #ffc2b9;
  --ic-bg: var(--brown-800); --ic-fg: var(--pink);
  --sh: rgba(255, 113, 67, .55);
}
.btn-outline {
  --bg: transparent; --fg: var(--brown-700); --bd: rgba(88, 33, 16, .3);
  --bg-h: var(--brown-700); --fg-h: var(--pink); --bd-h: var(--brown-700);
  --ic-bg: rgba(88, 33, 16, .1); --ic-fg: var(--brown-700);
  --sh: rgba(54, 26, 12, .45);
  box-shadow: none;
}
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 8px 0 18px; gap: 10px; }
.btn-sm .btn-ic { width: 28px; height: 28px; }

@media (hover: hover) {
  .btn:hover { transform: var(--lift); background: var(--bg-h); color: var(--fg-h); border-color: var(--bd-h); box-shadow: 0 14px 28px -12px var(--sh); }
  .btn:hover .btn-ic svg { transform: translateX(2px); }
  .btn:hover .btn-ic { transform: rotate(-45deg); }
  .btn-outline:hover .btn-ic { background: var(--pink); color: var(--brown-700); }
  .btn:active { transform: var(--press); box-shadow: 0 1px 2px -1px var(--sh); }
  .menu-toggle:hover { transform: var(--lift); box-shadow: 0 10px 20px -10px rgba(54, 26, 12, .6); }
}

/* Current-page state for a button in the nav */
.btn[aria-current="page"] { box-shadow: 0 0 0 3px rgba(88, 33, 16, .18); }

/* Keyboard focus: visible ring only when tabbing */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 999px; }
.magic :focus-visible, .sprinklers :focus-visible, .boring :focus-visible, .motto :focus-visible, footer :focus-visible, .cta-card :focus-visible { outline-color: var(--pink); }
.field :focus-visible { outline: none; }

.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ---------- Text links: underline grows in from the left ---------- */
.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .35s var(--ease), color var(--t) var(--ease);
}
@media (hover: hover) { .link:hover { background-size: 100% 1.5px; } }
.link:active { opacity: .7; }

/* ---------- Hero (white, brown headline, as on the original) ---------- */
.hero { background: var(--white); color: var(--brown-700); padding: 168px 0 112px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 40px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: min(13.8cqi, 128px); line-height: .92; letter-spacing: -0.02em; text-transform: uppercase;
}
.hero-copy { container-type: inline-size; min-width: 0; }
.hero-lead { margin-top: 28px; max-width: 34ch; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--brown-700); }
.hero-lead strong { font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Floating three-star mark */
.hero-star { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.hero-star::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 174, 163, .6), rgba(255, 174, 163, .18) 55%, rgba(255, 174, 163, 0));
  animation: breathe 6s ease-in-out infinite;
}
.hs-svg {
  position: relative; width: 88%; height: auto; overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(179, 90, 83, .28));
}
.hs-svg path, .hs-svg g { transform-box: fill-box; transform-origin: center; }
/* 1. Entrance: stars pop in one after another, then float */
.hs-svg .s1 { animation: pop .9s var(--ease) .1s both, float1 7s ease-in-out 1s infinite; }
.hs-svg .s2 { animation: pop .9s var(--ease) .35s both, float2 5.5s ease-in-out 1.25s infinite; }
.hs-svg .s3 { animation: pop .9s var(--ease) .55s both, float3 4.5s ease-in-out 1.45s infinite; }
@keyframes pop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-1px, -1.5px) scale(1.03); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(1.5px, -2px) scale(.9) rotate(12deg); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; } 50% { transform: translate(1.5px, 1px) scale(1.35); opacity: .7; } }

/* 2. Glint: a band of light sweeps across the stars every few seconds */
.hs-svg .glint { transform-box: view-box; transform-origin: 24px 24px; animation: glint 5.5s ease-in-out 1.6s infinite; }
@keyframes glint { 0% { transform: rotate(20deg) translateX(0); } 30%, 100% { transform: rotate(20deg) translateX(70px); } }

/* 3. Flares twinkle at the star tips */
.hs-svg .flare { transform-box: fill-box; opacity: 0; }
.hs-svg .f1 { animation: flare 4s ease-in-out 1.8s infinite; }
.hs-svg .f2 { animation: flare 4s ease-in-out 3.1s infinite; }
.hs-svg .f3 { animation: flare 4s ease-in-out 4.3s infinite; }
@keyframes flare { 0%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 12% { opacity: 1; scale: 1; rotate: 45deg; } 26% { opacity: 0; scale: .3; rotate: 90deg; } }

/* 4. Stardust circles slowly inside the glow */
.hs-svg .dust { transform-box: view-box; transform-origin: 24px 24px; animation: orbit 40s linear infinite; }
.hs-svg .dust circle { opacity: var(--o); animation: blink 3s ease-in-out infinite; }
.hs-svg .dust circle:nth-child(2n) { animation-delay: -1.5s; }
.hs-svg .dust circle:nth-child(3n) { animation-delay: -.7s; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .15; } }

/* 5. Hover: the stars drift apart a little */
.hs-svg .g1, .hs-svg .g2, .hs-svg .g3 { transition: transform .6s var(--ease); }
@media (hover: hover) {
  .hero-star:hover .g1 { transform: translate(-1.5px, 1.5px); }
  .hero-star:hover .g2 { transform: translate(2px, -2px) rotate(15deg); }
  .hero-star:hover .g3 { transform: translate(2.5px, 2px); }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 174, 163, 0)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 22px rgba(255, 174, 163, .45)); transform: scale(1.03); }
}

/* ---------- Sections ---------- */
section { padding: 112px 0; }
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.015em;
}
.lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; }

/* Magic Logic */
.magic { background: var(--brown-900); color: var(--pink); }
.magic .h2 { color: var(--rose); }
.magic-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.magic-body { display: flex; flex-direction: column; gap: 24px; }
.magic-body .first { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; color: var(--pink); }
.magic-body p { color: var(--pink); }
.magic-body p.quiet { color: var(--blush); opacity: .9; }

/* Sprinklers */
.sprinklers { background: var(--brown-800); color: var(--blush); }
.section-head { max-width: 760px; margin-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  background: var(--brown-700); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 32px;
  /* subgrid lines up icon, title and text rows across all three cards */
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 14px; align-content: start;
}
.member .spark { width: 40px; height: 40px; color: var(--pink); margin-bottom: 18px; }
.member h3 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--blush); }
.member p { font-size: 18px; color: var(--blush); opacity: .9; }

/* Boring Work */
.boring { background: var(--brown-900); color: var(--pink); }
.boring .h2 { color: var(--pink); }

/* Sprinkles CTA card */
.cta-sec { background: var(--brown-900); padding-top: 0; }
.cta-card {
  background: var(--rose); color: var(--white); border-radius: 28px; padding: 72px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-card .h2 { color: var(--white); }

/* ---------- Subpages ---------- */
.page-hero { background: var(--white); color: var(--brown-700); padding: 160px 0 96px; }
.page-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 6vw, 80px); line-height: 1; letter-spacing: -0.015em; max-width: 980px;
}
.page-hero .lead { margin-top: 28px; max-width: 760px; color: var(--brown-700); }
.page-hero .lead strong { color: var(--rose); font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.panel { background: var(--brown-700); border: 1px solid var(--line-dark); border-radius: 24px; padding: 44px; }
.panel .h2 { font-size: clamp(34px, 4vw, 52px); color: var(--pink); }
.panel p { color: var(--blush); margin-top: 16px; }

.motto { background: var(--brown-800); text-align: center; }
.motto blockquote {
  font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 64px); line-height: 1.1;
  color: var(--pink); max-width: 960px; margin: 0 auto;
}
.motto p.body { max-width: 760px; margin: 28px auto 0; color: var(--blush); font-size: clamp(18px, 2vw, 22px); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 15px; font-weight: 500; color: var(--blush); }
.field input, .field textarea {
  /* 16px+ stops iPhone from zooming into inputs */
  font: inherit; font-size: 17px; color: var(--white); background: var(--brown-900);
  border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px 16px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(237, 194, 180, .5); }
.field input, .field textarea { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
@media (hover: hover) { .field input:hover, .field textarea:hover { border-color: rgba(237, 194, 180, .4); } }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 174, 163, .18); background: #2e150a; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 113, 67, .15); }
.field .label { font-size: 15px; font-weight: 500; color: var(--blush); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Deck upload drop zone */
.drop {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 16px; border-radius: 14px; border: 1.5px dashed rgba(237, 194, 180, .35); background: var(--brown-900);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform .12s ease;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255, 174, 163, .12); color: var(--pink); transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.drop-ic svg { width: 20px; height: 20px; }
.drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop-name { color: var(--pink); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-hint { color: var(--blush); font-size: 14px; }
@media (hover: hover) { .drop:hover { border-color: rgba(255, 174, 163, .7); } .drop:hover .drop-ic { transform: translateY(-2px); } }
.drop:active { transform: scale(.99); }
.drop.dragging { border-color: var(--pink); background: #3d1d0e; }
.drop.has-file { border-style: solid; border-color: rgba(255, 174, 163, .55); }
.drop.has-file .drop-ic { background: var(--pink); color: var(--brown-900); }
.drop:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 174, 163, .18); }
.drop.invalid { border-color: var(--orange); }

/* Form states */
.form-status { min-height: 24px; margin-top: 14px; font-size: 15px; color: var(--blush); }
.form-status.ok { color: var(--pink); font-weight: 500; }
.form-status.err { color: var(--orange); }
.form-status a { text-decoration: underline; }
.js-form.sent .field, .js-form.sent .btn { display: none; }
.js-form.sent .form-status { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--pink); }
.panel form .btn { width: 100%; }

/* ---------- Footer ---------- */
footer { position: relative; background: var(--brown-900); border-top: 1px solid var(--line-dark); padding: 80px 0 max(32px, env(safe-area-inset-bottom)); color: var(--blush); overflow: hidden; }
footer::before {
  content: ""; position: absolute; right: -180px; top: 10%; width: 560px; height: 560px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(179, 90, 83, .22), transparent);
}
.foot-top { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.foot-top .logo { font-size: 26px; }
.foot-mail {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 28px;
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.1; color: var(--pink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; padding-bottom: 6px;
  transition: background-size .45s var(--ease), color var(--t) var(--ease);
}
.foot-mail .btn-ic { --ic-bg: var(--pink); --ic-fg: var(--brown-900); width: 44px; height: 44px; }
.foot-mail .btn-ic svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .foot-mail:hover { background-size: 100% 3px; }
  .foot-mail:hover .btn-ic { transform: rotate(-45deg); }
}
.foot-mail:active { opacity: .8; }

.foot-nav { display: flex; gap: 2px; margin-right: -12px; }
.foot-nav .nav-link { color: var(--blush); }
.foot-nav .nav-ind { background: rgba(237, 194, 180, .1); }

.foot-bottom {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 113, 67, .3);
  font-size: 15px;
}
.foot-addr { color: var(--orange); }
.copyright { color: var(--orange); }
.to-top {
  --bg: transparent; --fg: var(--pink); --bd: rgba(255, 174, 163, .35); --bg-h: var(--pink); --fg-h: var(--brown-900); --bd-h: var(--pink); --sh: rgba(0,0,0,.5);
  width: 44px; min-height: 44px; padding: 0; box-shadow: none;
}
.to-top svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
@media (hover: hover) { .to-top:hover svg { transform: translateY(-2px); } }

/* ---------- Reveal (only when JS runs, so content never hides without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* ---------- Sparkle motif (from the logo) ---------- */
.tw { position: absolute; color: var(--pink); pointer-events: none; }
.tw svg { width: 100%; height: 100%; }
.tw1 { width: 42%; top: 12%; right: 10%; animation: twinkle 5s ease-in-out infinite; }
.tw2 { width: 20%; top: 46%; left: 14%; opacity: .7; animation: twinkle 6s ease-in-out -2s infinite; }
.tw3 { width: 12%; top: 8%; left: 24%; opacity: .5; animation: twinkle 4.5s ease-in-out -1s infinite; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .95; }
  50% { transform: scale(.86) rotate(8deg); opacity: .55; }
}

/* ---------- Hero magic ---------- */
.hero .wrap { position: relative; z-index: 1; }
.shimmer {
  background: linear-gradient(100deg, var(--brown-700) 0 38%, var(--rose) 45%, var(--orange) 50%, var(--pink) 54%, var(--brown-700) 62% 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out 1s infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  28%, 100% { background-position: 0% 0; }
}
.sparkle-fx { position: fixed; pointer-events: none; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.sparkle-fx svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px currentColor); }

/* ---------- Services marquee ---------- */
.marquee { background: var(--pink); color: var(--brown-800); overflow: hidden; border-block: 1px solid rgba(69, 24, 9, .12); }
.marquee-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 24px; padding: 22px var(--gutter); max-width: var(--max); margin: 0 auto; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); white-space: nowrap; }
.marquee i { width: 22px; height: 22px; display: inline-flex; color: var(--rose); }
.marquee i svg { width: 100%; height: 100%; }

/* ---------- Editorial list for The Boring Work ---------- */
.work-list { border-top: 1px solid var(--line-dark); }
.work-list .work {
  display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line-dark); border-left: 0;
  transition: padding .35s ease, background .35s ease;
}
.work-n { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--blush); letter-spacing: .04em; }
.work-list .work h3 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; color: var(--pink); }
.work-list .work p { font-size: 18px; color: var(--blush); max-width: 520px; }

/* ---------- Card polish ---------- */
.member {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(179, 90, 83, .35), rgba(88, 33, 15, .9) 55%), var(--brown-700);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
@media (hover: hover) { .member:hover { border-color: rgba(255, 174, 163, .3); } }
.member .spark { transition: transform .5s ease; }
@media (hover: hover) { .member:hover .spark { transform: rotate(12deg); } }

.cta-card { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #c4685f, var(--rose) 55%, #9e4c46); }
.cta-card .tw { color: var(--pink); opacity: .35; animation: none; }
.cta-card .tw1 { width: 220px; top: -40px; right: 6%; }
.cta-card .tw2 { width: 90px; top: auto; bottom: 18px; left: auto; right: 34%; }
.cta-card .h2, .cta-card .btn { position: relative; z-index: 1; }
.cta-card .h2 { font-size: clamp(44px, 7vw, 104px); }

.magic-grid .h2 { position: sticky; top: 120px; }
.magic .h2 { font-size: clamp(48px, 7vw, 104px); }

.motto-by { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 17px; color: var(--blush); }
.motto-by::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.aside { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--blush); margin-top: 24px; max-width: 460px; }
.motto blockquote::before { content: "“"; display: block; font-size: 1.6em; line-height: .6; color: var(--rose); margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  .tw, .shimmer, .hero-star::before, .hs-svg path, .hs-svg .glint, .hs-svg .dust, .hs-svg .dust circle { animation: none; }
  .hs-svg .flare { display: none; }
  .hs-svg { transition: none; }
  .btn, .btn-ic, .nav-links a { transition: none; }
  .shimmer { color: var(--brown-700); background: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-star { order: -1; width: 180px; justify-self: end; margin: -24px -12px -32px 0; }
  .magic-grid .h2 { position: static; }
  .work-list .work { grid-template-columns: 56px 1fr; }
  .work-list .work p { grid-column: 2; }
  .magic-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .team { grid-template-columns: 1fr; }
}

/* ---------- iPhone ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  :root { --gutter: 16px; }
  section { padding: 72px 0; }
  .nav { padding-left: 0; padding-right: 0; }
  .nav-pill { padding: 6px 6px 6px 16px; }
  .nav .logo { font-size: 19px; }
  .menu-toggle { display: inline-flex; }
  .nav-pill .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--pink); border-radius: 24px; padding: 10px;
    box-shadow: 0 20px 44px -12px rgba(54, 26, 12, .45);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; visibility: hidden;
    transition: opacity .22s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav-pill .nav-links.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-pill .nav-links .nav-link { font-size: 18px; min-height: 52px; padding: 0 18px; }
  .nav-pill .nav-links .btn { margin: 6px 0 0; min-height: 52px; font-size: 17px; justify-content: space-between; padding: 0 10px 0 20px; }
  .nav-pill .nav-ind { display: none; }
  .nav-pill .nav-link[aria-current="page"] { background: rgba(79, 6, 0, .08); }

  .hero { padding: 120px 0 64px; }
  .hero-ctas { flex-direction: column; margin-top: 32px; }
  .hero-ctas .btn { width: 100%; }

  .section-head { margin-bottom: 36px; }
  .member { padding: 26px 22px; }
  .member .spark { width: 32px; height: 32px; margin-bottom: 8px; }
  .member { grid-row: auto; grid-template-rows: auto; }
  .member h3 { font-size: 28px; }

  .work-list .work { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .work-list .work p { grid-column: 1; }
  .work-list .work h3 { font-family: var(--display); font-weight: 700; font-size: 32px; }
  .marquee-track { padding: 16px var(--gutter); gap: 6px 16px; }
  .marquee span { font-size: 19px; }
  .marquee i { width: 16px; height: 16px; }
  .cta-card .tw1 { width: 150px; top: -30px; right: -20px; }

  .cta-card { padding: 44px 24px; border-radius: 24px; flex-direction: column; align-items: stretch; text-align: left; }
  .cta-card .btn { width: 100%; }

  .page-hero { padding: 120px 0 64px; }
  .panel { padding: 28px 20px; border-radius: 20px; }

  footer { padding-top: 56px; }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .foot-mail { font-size: 28px; gap: 12px; }
  .foot-mail .btn-ic { width: 36px; height: 36px; }
  .foot-nav { margin: 0 0 0 -16px; flex-wrap: wrap; }
  .foot-bottom { flex-direction: column; align-items: flex-start; margin-top: 36px; gap: 14px; }
  .to-top { order: 3; }
}
