/* ============================================================
   Ewa Doula — "Czuwanie przy świecy"
   Ciemna, świecowa, edytorialna oprawa. Ciepłe światło w cichej
   przestrzeni: aubergine + blask świecy + pergaminowa typografia.
   ============================================================ */

:root {
  /* Noc i zmierzch — tła */
  --night: #140a24;
  --night-2: #180d2a;
  --dusk: #1e1236;
  --panel: #241640;
  --panel-2: #2b1a4c;
  --panel-line: rgba(244, 214, 150, 0.14);
  --panel-line-strong: rgba(244, 214, 150, 0.26);

  /* Blask świecy — akcenty */
  --candle: #f3c66b;
  --candle-deep: #e5a544;
  --ember: #ff9a3d;
  --halo: #ffcf8a;

  /* Pergamin — tekst */
  --parchment: #f6ecda;
  --cream: #ece0cd;
  --mauve: #c4afe0;
  --mauve-dim: #9a84bb;

  --shadow: 0 34px 90px rgba(6, 2, 16, 0.6);
  --shadow-soft: 0 20px 60px rgba(6, 2, 16, 0.45);
  --glow-warm: 0 0 60px rgba(243, 198, 107, 0.28);

  --radius-lg: 30px;
  --radius-md: 20px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  position: relative;
  margin: 0;
  color: var(--cream);
  background: var(--night);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ciągła atmosfera — świetlne kałuże dryfujące za treścią */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 42% at 78% 6%, rgba(138, 84, 168, 0.22), transparent 60%),
    radial-gradient(50% 44% at 8% 24%, rgba(229, 160, 70, 0.1), transparent 62%),
    radial-gradient(60% 50% at 50% 108%, rgba(120, 66, 150, 0.18), transparent 66%),
    linear-gradient(180deg, #160b28 0%, #120920 55%, #170c22 100%);
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(243, 198, 107, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(243, 198, 107, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--candle);
  color: #201232;
  font-weight: 650;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Ambient layers ---------- */
.ambience {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  top: 8%;
  left: -6%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(243, 198, 107, 0.32), transparent 70%);
  animation: drift1 26s var(--ease) infinite;
}

.orb-2 {
  top: 42%;
  right: -10%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(150, 92, 186, 0.34), transparent 70%);
  animation: drift2 34s var(--ease) infinite;
}

.orb-3 {
  bottom: -8%;
  left: 26%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(229, 145, 62, 0.2), transparent 70%);
  animation: drift3 30s var(--ease) infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -34px); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -26px); }
}

/* Filmowe ziarno */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Halo podążające za kursorem — "niosę świecę" */
.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 197, 118, 0.16), rgba(255, 170, 90, 0.06) 40%, transparent 68%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  will-change: transform;
}

.cursor-halo.is-live {
  opacity: 1;
}

/* ---------- Layout & type helpers ---------- */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(92px, 11vw, 156px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--candle);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--candle-deep));
  content: "";
}

.section-heading .eyebrow,
.hero .eyebrow {
  justify-content: center;
}

.section-heading .eyebrow::after,
.hero .eyebrow::after {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--candle-deep), transparent);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--parchment);
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.08;
  font-optical-sizing: auto;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  line-height: 1.2;
  transition: transform 200ms var(--ease), box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #f7d078, var(--candle-deep));
  box-shadow: 0 14px 36px rgba(226, 150, 50, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #241338;
}

.button-primary:hover {
  box-shadow: 0 18px 46px rgba(243, 198, 107, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #1c0f2e;
}

.button-secondary {
  border-color: rgba(243, 198, 107, 0.4);
  background: rgba(243, 198, 107, 0.06);
  color: var(--parchment);
}

.button-secondary:hover {
  border-color: rgba(243, 198, 107, 0.7);
  background: rgba(243, 198, 107, 0.12);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(243, 198, 107, 0.4);
  color: var(--parchment);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  transition: border-color 200ms ease, color 200ms ease;
}

.text-link:hover {
  border-bottom-color: var(--candle);
  color: var(--candle);
}

.text-link span {
  transition: transform 200ms var(--ease);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  color: var(--parchment);
  transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  border-color: var(--panel-line);
  background: rgba(20, 11, 34, 0.72);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border: 1px solid rgba(243, 198, 107, 0.4);
  border-radius: 50% 50% 48% 52% / 45% 52% 48% 55%;
  background: rgba(36, 22, 64, 0.7);
  box-shadow: 0 0 22px rgba(243, 198, 107, 0.22);
  transform: rotate(-2deg);
}

.brand-mark img {
  width: 37px;
  height: 37px;
  transform: rotate(2deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--parchment);
}

.brand-copy small {
  margin-top: 6px;
  color: var(--mauve);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 34px);
}

.primary-navigation > a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;
  color: rgba(236, 224, 205, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 200ms ease;
}

.primary-navigation > a:not(.nav-cta):hover,
.primary-navigation > a.is-active {
  color: var(--candle);
}

.primary-navigation > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--candle);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms var(--ease);
}

.primary-navigation > a:hover::after,
.primary-navigation > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 11px 22px;
  border: 1px solid rgba(243, 198, 107, 0.5);
  border-radius: 999px;
  color: var(--parchment);
  font-size: 0.9rem;
  font-weight: 650;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.nav-cta:hover {
  background: var(--candle);
  box-shadow: 0 0 24px rgba(243, 198, 107, 0.4);
  color: #241338;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  background: transparent;
  color: var(--parchment);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  place-items: center;
  overflow: hidden;
  padding: 150px 0 110px;
  color: var(--parchment);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-pool {
  position: absolute;
  top: 30%;
  left: 50%;
  width: min(1200px, 130vw);
  height: min(1200px, 130vw);
  background: radial-gradient(circle, rgba(255, 190, 108, 0.16) 0%, rgba(180, 110, 160, 0.08) 26%, transparent 55%);
  transform: translate(-50%, -50%);
}

.hero-sprig {
  position: absolute;
  width: clamp(280px, 34vw, 540px);
  opacity: 0.22;
  filter: brightness(0) saturate(100%) invert(83%) sepia(35%) saturate(760%) hue-rotate(340deg) brightness(101%) contrast(96%);
}

.hero-sprig-left {
  bottom: -4%;
  left: -5%;
  transform: rotate(-10deg);
}

.hero-sprig-right {
  right: -4%;
  bottom: -6%;
  transform: scaleX(-1) rotate(-6deg);
}

.mote {
  position: absolute;
  bottom: 26%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 214, 150, 0.9);
  box-shadow: 0 0 8px rgba(255, 200, 130, 0.8);
  opacity: 0;
}

.mote-1 { left: 46%; animation: rise 9s ease-in 1.5s infinite; }
.mote-2 { left: 52%; animation: rise 11s ease-in 3s infinite; }
.mote-3 { left: 49%; animation: rise 8s ease-in 0.5s infinite; }
.mote-4 { left: 55%; width: 3px; height: 3px; animation: rise 13s ease-in 5s infinite; }
.mote-5 { left: 43%; width: 3px; height: 3px; animation: rise 10s ease-in 6.5s infinite; }

@keyframes rise {
  0% { opacity: 0; transform: translateY(0) translateX(0); }
  15% { opacity: 0.85; }
  70% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-240px) translateX(18px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
}

/* Świeca */
.candle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto 6px;
}

.candle-glow {
  position: absolute;
  top: -230px;
  left: 50%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 196, 112, 0.5) 0%, rgba(255, 152, 66, 0.16) 28%, transparent 60%);
  transform: translateX(-50%);
  animation: breathe 5.5s ease-in-out infinite;
  will-change: opacity, transform;
}

.flame {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 56px;
  margin-bottom: -5px;
  transform-origin: 50% 92%;
  filter: drop-shadow(0 0 14px rgba(255, 158, 66, 0.85));
  animation: flicker 3.4s ease-in-out infinite;
  will-change: transform;
}

.flame-core {
  transform-origin: 50% 70%;
  animation: core 2.1s ease-in-out infinite;
}

.candle-body {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 104px;
  border-radius: 8px 8px 5px 5px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, #fbeecf 0%, #efd9ac 40%, #d9bd86 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.6);
}

.candle-body::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 15px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #caa976, #b18f5a);
  transform: translateX(-50%);
}

.wick {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: #3a2a1c;
  transform: translateX(-50%);
}

@keyframes flicker {
  0%, 100% { transform: rotate(-1deg) scale(1, 1); }
  20% { transform: rotate(1.4deg) scale(0.97, 1.05); }
  40% { transform: rotate(-0.8deg) scale(1.03, 0.98); }
  60% { transform: rotate(1.1deg) scale(0.98, 1.04); }
  80% { transform: rotate(-1.2deg) scale(1.02, 0.99); }
}

@keyframes core {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.72; transform: scaleY(0.9); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.82; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.07); }
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(4rem, 9.4vw, 8.8rem);
  font-weight: 340;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

.hero .eyebrow {
  color: var(--halo);
}

.hero h1 span {
  display: block;
  margin-bottom: 22px;
  color: var(--candle);
  font-size: 0.24em;
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(0.21em);
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 34px;
  color: rgba(236, 224, 205, 0.9);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-values {
  display: flex;
  justify-content: center;
  gap: 12px 34px;
  margin: 40px 0 0;
  padding: 0;
  color: var(--mauve);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
}

.hero-values li {
  position: relative;
}

.hero-values li + li::before {
  position: absolute;
  top: 50%;
  left: -18px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--candle);
  box-shadow: 0 0 8px rgba(243, 198, 107, 0.9);
  content: "";
  transform: translateY(-50%);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 50%;
  display: grid;
  width: 28px;
  height: 43px;
  place-items: start center;
  border: 1px solid rgba(243, 198, 107, 0.5);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 3px;
  height: 7px;
  margin-top: 9px;
  border-radius: 99px;
  background: var(--candle);
  animation: scrollCue 1.7s ease-in-out infinite;
}

@keyframes scrollCue {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(9px); }
}

/* ---------- Shared section glows ---------- */
.section > .container {
  position: relative;
  z-index: 1;
}

/* ---------- About ---------- */
.about::before {
  position: absolute;
  z-index: 0;
  top: -120px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 58% 42% 47% 53% / 46% 55% 45% 54%;
  background: radial-gradient(circle at 42% 42%, rgba(156, 100, 190, 0.22), transparent 66%);
  content: "";
  pointer-events: none;
  transform: rotate(-8deg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.portrait-wrap {
  position: relative;
  max-width: 500px;
}

.portrait {
  position: relative;
  overflow: hidden;
  background-color: #241640;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  filter: saturate(0.9) contrast(1.02) brightness(0.9) sepia(0.14);
}

/* ciepła poświata świecy padająca na fotografię */
.portrait::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(255, 190, 110, 0.28), transparent 55%),
    linear-gradient(180deg, transparent 45%, rgba(20, 10, 36, 0.5) 100%);
  content: "";
  mix-blend-mode: soft-light;
}

.portrait::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(243, 198, 107, 0.28);
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(10, 4, 22, 0.5);
  content: "";
}

.portrait-history {
  aspect-ratio: 540 / 523;
  border-radius: 34px 8px 34px 8px;
  background-image: url("assets/historia.jpg");
  background-position: 8.5% 68.4%;
  background-size: 296.3% auto;
}

.paper-tape {
  position: absolute;
  z-index: 4;
  top: -22px;
  right: -26px;
  width: 148px;
  height: 48px;
  background:
    radial-gradient(circle at 15px 17px, rgba(40, 20, 60, 0.3) 1.2px, transparent 1.8px) 0 0 / 25px 22px,
    linear-gradient(100deg, rgba(243, 198, 107, 0.9), rgba(229, 165, 68, 0.82));
  clip-path: polygon(3% 13%, 100% 0, 96% 87%, 0 100%);
  opacity: 0.92;
  transform: rotate(7deg);
}

.portrait-note {
  position: absolute;
  z-index: 5;
  right: -42px;
  bottom: 30px;
  width: min(270px, 70%);
  padding: 18px 22px;
  border: 1px solid var(--panel-line-strong);
  border-radius: 4px;
  background: rgba(36, 22, 64, 0.92);
  box-shadow: 0 20px 50px rgba(6, 2, 16, 0.5);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.45;
  backdrop-filter: blur(6px);
}

.portrait-note span {
  margin-right: 6px;
  color: var(--candle);
  font-style: normal;
}

.about-copy {
  max-width: 620px;
}

.lead-copy {
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 360;
  line-height: 1.55;
}

.about-copy > p:not(.eyebrow):not(.lead-copy) {
  color: var(--mauve);
}

blockquote {
  margin: 34px 0;
  padding: 22px 0 22px 28px;
  border-left: 2px solid var(--candle);
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-style: italic;
  font-weight: 340;
  line-height: 1.45;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.25fr);
  gap: clamp(60px, 10vw, 140px);
  margin-top: clamp(100px, 13vw, 175px);
  padding-top: clamp(60px, 8vw, 96px);
  border-top: 1px solid var(--panel-line);
}

.story-heading h2 {
  max-width: 510px;
  margin-bottom: 34px;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
}

.story-line {
  display: block;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, var(--candle), transparent);
}

.story-copy {
  max-width: 690px;
}

.story-copy p {
  margin-bottom: 26px;
  color: var(--mauve);
}

.story-copy p:first-child {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.1vw, 1.5rem);
  font-weight: 360;
  line-height: 1.55;
}

.story-copy p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--candle);
  font-family: var(--font-display);
  font-size: 3.6em;
  font-weight: 400;
  line-height: 0.74;
  text-shadow: 0 0 26px rgba(243, 198, 107, 0.5);
}

.story-copy .story-closing {
  margin: 36px 0 0;
  padding: 24px 28px;
  border-left: 2px solid var(--candle-deep);
  border-radius: 0 10px 10px 0;
  background: rgba(156, 100, 190, 0.12);
  color: var(--parchment);
  font-weight: 600;
}

/* ---------- Services ---------- */
.services {
  padding-bottom: clamp(120px, 13vw, 190px);
}

.services::before {
  position: absolute;
  z-index: 0;
  top: 8%;
  left: 50%;
  width: min(900px, 90vw);
  height: 420px;
  background: radial-gradient(ellipse at 50% 40%, rgba(243, 198, 107, 0.1), transparent 62%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.services-sprig {
  position: absolute;
  z-index: 0;
  right: -70px;
  bottom: 40px;
  width: 420px;
  opacity: 0.14;
  filter: brightness(0) saturate(100%) invert(83%) sepia(35%) saturate(760%) hue-rotate(340deg) brightness(101%) contrast(96%);
  transform: scaleX(-1) rotate(-14deg);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(50px, 7vw, 82px);
  text-align: center;
}

.section-heading > p:last-child {
  max-width: 630px;
  margin: 0 auto;
  color: var(--mauve);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 380px;
  padding: clamp(30px, 3vw, 42px);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(43, 26, 76, 0.6), rgba(30, 18, 54, 0.5));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 260ms ease, transform 260ms var(--ease), box-shadow 260ms ease;
}

.service-card::before {
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 198, 107, 0.6), transparent);
  content: "";
  opacity: 0;
  transition: opacity 260ms ease;
}

.service-card:hover {
  border-color: var(--panel-line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow-warm);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(243, 198, 107, 0.3);
  border-radius: 50%;
  background: rgba(243, 198, 107, 0.08);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--candle);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  min-height: 2.25em;
  margin: 0;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
}

.service-card ul {
  display: grid;
  gap: 18px;
  margin: 20px 0 0;
  padding: 27px 0 0;
  border-top: 1px solid var(--panel-line);
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 31px;
  color: var(--mauve);
  font-size: 0.91rem;
  line-height: 1.65;
}

.service-card li::before {
  position: absolute;
  top: 0.52em;
  left: 2px;
  width: 13px;
  height: 8px;
  border: 2px solid var(--candle-deep);
  border-radius: 100% 0 100% 0;
  content: "";
  transform: rotate(-28deg);
}

.soft-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 44px;
  padding: 28px 34px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(43, 26, 76, 0.55), rgba(30, 18, 54, 0.4));
}

.soft-note-mark {
  color: var(--candle);
  font-family: var(--font-display);
  font-size: 3.8rem;
  line-height: 0.6;
  transform: translateY(9px);
}

.soft-note p {
  margin: 0;
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-style: italic;
  font-weight: 340;
}

/* ---------- Process ---------- */
.process::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 198, 107, 0.16) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
  content: "";
  opacity: 0.4;
  pointer-events: none;
}

.process-glow {
  position: absolute;
  z-index: 0;
  top: -70px;
  right: -140px;
  width: 470px;
  height: 470px;
  border-radius: 60% 40% 52% 48% / 43% 57% 43% 57%;
  background: radial-gradient(circle at 45% 45%, rgba(243, 198, 107, 0.2), transparent 62%);
  pointer-events: none;
  transform: rotate(10deg);
}

.process-sprig {
  position: absolute;
  z-index: 0;
  bottom: -40px;
  left: -80px;
  width: 320px;
  opacity: 0.12;
  filter: brightness(0) saturate(100%) invert(83%) sepia(35%) saturate(760%) hue-rotate(340deg) brightness(101%) contrast(96%);
  pointer-events: none;
  transform: rotate(8deg);
}

.process-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: clamp(70px, 11vw, 150px);
}

.process-intro {
  align-self: start;
  position: sticky;
  top: 130px;
}

.process-intro > p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--mauve);
}

.process-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* świetlna nić czuwania łącząca kroki */
.process-list::before {
  position: absolute;
  top: 34px;
  bottom: 60px;
  left: 27px;
  width: 1px;
  background: linear-gradient(180deg, var(--candle), rgba(243, 198, 107, 0.15));
  content: "";
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 26px;
  padding: 12px 0 48px;
  border-bottom: 1px solid var(--panel-line);
}

.process-list li + li {
  padding-top: 48px;
}

.process-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(243, 198, 107, 0.35);
  border-radius: 50%;
  background: var(--dusk);
  color: var(--candle);
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: 0 0 0 6px rgba(20, 11, 34, 1);
  transition: box-shadow 500ms ease, border-color 500ms ease;
}

.process-list li.is-visible > span {
  border-color: var(--candle);
  box-shadow: 0 0 0 6px rgba(20, 11, 34, 1), 0 0 22px rgba(243, 198, 107, 0.55);
}

.process-list h3 {
  margin-bottom: 10px;
}

.process-list p {
  margin-bottom: 0;
  color: var(--mauve);
}

/* ---------- E-book ---------- */
.ebook::before {
  position: absolute;
  z-index: 0;
  top: 12%;
  left: -8%;
  width: 330px;
  height: 330px;
  border-radius: 44% 56% 61% 39% / 52% 42% 58% 48%;
  background: radial-gradient(circle at 50% 50%, rgba(243, 198, 107, 0.12), transparent 66%);
  content: "";
  transform: rotate(15deg);
}

.ebook-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: clamp(70px, 12vw, 165px);
}

.ebook-copy {
  max-width: 650px;
}

.ebook-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: 34px;
  color: var(--mauve);
}

.ebook-visual {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
}

.ebook-shadow {
  position: absolute;
  bottom: 42px;
  width: 300px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(22px);
}

.ebook-book {
  position: relative;
  display: flex;
  width: min(310px, 82vw);
  aspect-ratio: 0.74;
  justify-content: flex-end;
  flex-direction: column;
  padding: 42px 38px;
  border: 1px solid rgba(243, 198, 107, 0.22);
  border-radius: 5px 18px 18px 5px;
  background:
    radial-gradient(circle at 70% 17%, rgba(243, 198, 107, 0.2), transparent 34%),
    linear-gradient(145deg, #2c1a4c, #1c1130);
  box-shadow: -12px 12px 0 rgba(28, 16, 48, 0.9), 0 40px 80px rgba(6, 2, 16, 0.6), var(--glow-warm);
  transform: rotate(4deg);
}

.ebook-book::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
  width: 1px;
  background: rgba(243, 198, 107, 0.2);
  content: "";
}

.ebook-book img {
  position: absolute;
  top: 42px;
  right: 38px;
  width: 76px;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(243, 198, 107, 0.4));
}

.ebook-book span {
  margin-bottom: 9px;
  color: var(--candle);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ebook-book strong {
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 380;
  line-height: 1.1;
}

.ebook-book i {
  width: 76px;
  height: 1px;
  margin-top: 22px;
  background: var(--candle-deep);
}

/* ---------- FAQ ---------- */
.faq::after {
  position: absolute;
  z-index: 0;
  right: -7%;
  bottom: -230px;
  width: 500px;
  height: 500px;
  border-radius: 44% 56% 58% 42% / 52% 39% 61% 48%;
  background: radial-gradient(circle at 50% 50%, rgba(156, 100, 190, 0.2), transparent 64%);
  content: "";
}

.faq-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(450px, 1fr);
  gap: clamp(60px, 10vw, 140px);
}

.faq-intro > p:last-child {
  max-width: 470px;
  color: var(--mauve);
}

.accordion {
  border-top: 1px solid var(--panel-line);
}

.accordion details {
  border-bottom: 1px solid var(--panel-line);
  transition: border-color 260ms ease;
}

.accordion details[open] {
  border-bottom-color: var(--panel-line-strong);
}

.accordion summary {
  position: relative;
  padding: 24px 54px 24px 0;
  color: var(--parchment);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  font-weight: 380;
  line-height: 1.3;
  list-style: none;
  transition: color 200ms ease;
}

.accordion summary:hover {
  color: var(--candle);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before,
.accordion summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 1px;
  background: var(--candle);
  content: "";
  transition: transform 220ms var(--ease);
}

.accordion summary::after {
  transform: rotate(90deg);
}

.accordion details[open] summary::after {
  transform: rotate(0);
}

.accordion details p {
  max-width: 680px;
  margin: -4px 50px 24px 0;
  color: var(--mauve);
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact-shell {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(480px, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: stretch;
}

.contact-visual {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  background: rgba(43, 26, 76, 0.4);
  box-shadow: var(--shadow);
}

.wash {
  position: absolute;
  filter: blur(26px);
}

.wash-contact {
  top: -6%;
  left: -16%;
  width: clamp(240px, 60%, 360px);
  height: 42%;
  border-radius: 34% 66% 49% 51% / 50% 28% 72% 50%;
  background: linear-gradient(145deg, rgba(243, 198, 107, 0.5), rgba(229, 165, 68, 0.14));
  opacity: 0.7;
  transform: rotate(8deg);
}

.portrait-contact {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(78%, 380px);
  aspect-ratio: 487 / 603;
  border-radius: 22px;
  background-image: url("assets/kontakt.jpg");
  background-position: 88.2% 44.1%;
  background-size: 328.5% auto;
  box-shadow: 0 24px 50px rgba(6, 2, 16, 0.55);
  transform: translate(-50%, -50%);
}

.contact-sprig {
  position: absolute;
  z-index: 0;
  bottom: -26px;
  left: -34px;
  width: 320px;
  opacity: 0.4;
  filter: brightness(0) saturate(100%) invert(83%) sepia(35%) saturate(760%) hue-rotate(340deg) brightness(101%) contrast(96%);
  transform: rotate(-16deg);
}

.contact-copy {
  position: relative;
  z-index: 3;
  padding: clamp(50px, 7vw, 90px) clamp(34px, 7vw, 90px);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(43, 26, 76, 0.75), rgba(26, 15, 46, 0.7));
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--mauve);
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label:not(.consent) {
  display: grid;
  gap: 8px;
}

.contact-form label > span:first-child {
  color: var(--parchment);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.contact-form .label-optional {
  color: var(--mauve-dim);
  font-weight: 500;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(243, 198, 107, 0.2);
  border-radius: 12px;
  outline: none;
  background: rgba(16, 8, 30, 0.55);
  color: var(--parchment);
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.contact-form input:not([type="checkbox"]) {
  height: 52px;
  padding: 0 15px;
}

.contact-form textarea {
  min-height: 138px;
  padding: 13px 15px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--mauve-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--candle);
  background: rgba(16, 8, 30, 0.8);
  box-shadow: 0 0 0 4px rgba(243, 198, 107, 0.14);
}

.contact-form .is-invalid {
  border-color: #d98a8a !important;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 4px 0 0;
  accent-color: var(--candle-deep);
}

.consent span {
  color: var(--mauve);
  font-size: 0.76rem !important;
  font-weight: 400 !important;
}

.contact-form .button {
  width: fit-content;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--candle) !important;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Support ---------- */
.support-section {
  padding: 0 0 clamp(88px, 10vw, 140px);
}

.support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 50px);
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 20%, rgba(243, 198, 107, 0.18), transparent 30%),
    linear-gradient(125deg, rgba(43, 26, 76, 0.7), rgba(26, 15, 46, 0.6));
  box-shadow: var(--shadow-soft);
}

.support-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(243, 198, 107, 0.28);
  border-radius: 50%;
  background: rgba(243, 198, 107, 0.08);
}

.support-icon svg {
  width: 42px;
  fill: none;
  stroke: var(--candle);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.support-copy .eyebrow {
  margin-bottom: 10px;
}

.support-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.8vw, 3.05rem);
}

.support-copy > p:last-child {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--mauve);
  font-size: 0.92rem;
}

.coffee-button {
  gap: 10px;
  background: linear-gradient(120deg, #f7d078, var(--candle-deep));
  box-shadow: 0 14px 34px rgba(226, 150, 50, 0.24);
  color: #241338;
  white-space: nowrap;
}

.coffee-button:hover {
  box-shadow: 0 18px 44px rgba(243, 198, 107, 0.4);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 66px 0 30px;
  border-top: 1px solid var(--panel-line);
  background: #0e0620;
  color: var(--mauve);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.brand-footer .brand-mark {
  border-color: rgba(243, 198, 107, 0.35);
}

.brand-footer .brand-copy small {
  color: var(--mauve-dim);
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 30px;
  font-size: 0.9rem;
}

.footer-links a {
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--candle);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social > span {
  color: var(--mauve-dim);
  font-size: 0.79rem;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(243, 198, 107, 0.2);
  border-radius: 50%;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.social-links a:hover {
  border-color: rgba(243, 198, 107, 0.55);
  background: rgba(243, 198, 107, 0.1);
  transform: translateY(-2px);
}

.social-links svg {
  width: 19px;
  fill: var(--mauve);
}

.social-links a:hover svg {
  fill: var(--candle);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-line);
  color: var(--mauve-dim);
  font-size: 0.76rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 800ms ease, transform 800ms var(--ease), filter 800ms ease;
}

.js .reveal-delay-1 { transition-delay: 110ms; }
.js .reveal-delay-2 { transition-delay: 220ms; }
.js .reveal-delay-3 { transition-delay: 330ms; }

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .primary-navigation { gap: 18px; }
  .primary-navigation > a:not(.nav-cta) { font-size: 0.84rem; }
  .brand-copy small { display: none; }

  .about-grid {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
    gap: 70px;
  }

  .story-panel { grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1fr); gap: 70px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: 1 / -1; min-height: 0; }

  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .contact-shell { grid-template-columns: 0.62fr 1fr; }
  .contact-visual { min-height: 720px; }
  .portrait-contact { width: 86%; }
  .contact-copy { padding-inline: 58px; }
  .form-row { grid-template-columns: 1fr; }

  .support-card { grid-template-columns: auto 1fr; }
  .coffee-button { grid-column: 1 / -1; width: fit-content; margin-left: 108px; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 88px 0; }

  .header-inner { min-height: 76px; }
  .header-inner > .brand { position: relative; z-index: 102; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-mark img { width: 33px; height: 33px; }
  .menu-toggle { display: block; position: relative; z-index: 102; }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .primary-navigation {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    padding: 90px 24px 40px;
    background: rgba(18, 9, 32, 0.97);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 240ms ease, transform 240ms ease;
  }

  .primary-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-navigation > a:not(.nav-cta) {
    color: var(--parchment);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 380;
  }

  .nav-cta { margin-top: 14px; padding: 14px 26px; font-size: 0.96rem; }

  .hero { min-height: 780px; padding-top: 120px; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 6.2rem); }
  .hero h1 span { margin-bottom: 18px; letter-spacing: 0.34em; }
  .hero-actions { flex-direction: column; gap: 14px; }
  .hero-values { flex-wrap: wrap; gap: 8px 24px; }
  .hero-values li + li::before { left: -14px; }
  .hero-sprig { width: 260px; opacity: 0.16; }
  .hero-sprig-left { left: -110px; }
  .hero-sprig-right { right: -100px; }

  .about-grid,
  .story-panel,
  .process-grid,
  .faq-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .about-grid { gap: 75px; }
  .story-panel { gap: 44px; margin-top: 120px; }
  .portrait-wrap { width: min(88%, 480px); margin-inline: auto; }
  .portrait-note { right: -28px; }
  .about-copy { max-width: none; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:last-child { grid-column: auto; min-height: 0; }
  .service-card h3 { min-height: 0; }
  .services { padding-bottom: 110px; }
  .services-sprig { right: -100px; bottom: 40px; width: 260px; opacity: 0.1; }
  .soft-note { grid-template-columns: auto 1fr; }
  .soft-note .button { grid-column: 1 / -1; width: 100%; }

  .process-intro { position: static; }
  .process-grid { gap: 62px; }
  .process-sprig { width: 220px; bottom: 20px; left: -90px; opacity: 0.1; }
  .process-glow { width: 320px; right: -110px; }
  .faq-grid { gap: 40px; }

  .ebook-shell { grid-template-columns: 1fr; gap: 45px; }
  .ebook-copy { max-width: none; }
  .ebook-visual { min-height: 430px; }

  .contact-shell { gap: 30px; }
  .contact-visual { min-height: 520px; border-radius: 24px; }
  .portrait-contact { width: min(76%, 365px); }
  .contact-sprig { bottom: -18px; left: -70px; width: 240px; opacity: 0.3; }
  .contact-copy { padding: 50px 28px; border-radius: 24px; }

  .footer-main,
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }

  .support-card { grid-template-columns: 1fr; text-align: left; }
  .support-icon { width: 68px; height: 68px; }
  .coffee-button { grid-column: auto; width: 100%; margin-left: 0; white-space: normal; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 26px), var(--container)); }
  h2 { font-size: 2.6rem; }
  .hero { min-height: 720px; }
  .hero-lead { font-size: 0.96rem; }
  .hero .button { width: 100%; }
  .hero-values { display: none; }
  .scroll-cue { display: none; }

  .portrait-wrap { width: 92%; }
  .paper-tape { width: 110px; height: 38px; right: -12px; }
  .portrait-note { right: -9px; bottom: -36px; width: 84%; }

  .story-panel { margin-top: 112px; padding-top: 64px; }
  .story-copy .story-closing { padding: 20px; }

  .service-card { padding: 30px 24px; }
  .soft-note { padding: 24px 20px; }

  .process-list li { grid-template-columns: 50px 1fr; gap: 18px; }
  .process-list li > span { width: 46px; height: 46px; }
  .process-list::before { left: 22px; }

  .accordion summary { padding-right: 40px; }
  .accordion details p { margin-right: 18px; }

  .contact-visual { min-height: 450px; }
  .portrait-contact { width: min(82%, 330px); }
  .contact-copy { padding-inline: 20px; }
  .contact-form .button { width: 100%; }

  .ebook-book { width: min(280px, 78vw); }
  .support-card { padding: 30px 22px; }

  .footer-social { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 780px) {
  .cursor-halo { display: none; }
}

@media (hover: none) {
  .cursor-halo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .candle-glow { opacity: 0.9; }
  .mote { display: none; }
  .cursor-halo { display: none; }
}
