/* ============================================================================
   Dannets Atelier — vibrant watercolor / expressive editorial
   Vanilla CSS. Tokens derived from Dana's rainbow logo (needle + brush wreath).
   ============================================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* Brand rainbow (from the logo emblem) */
  --c-orange: #f39a2a;
  --c-gold:   #f6b545;
  --c-cyan:   #35b8e0;
  --c-lime:   #8fce2b;
  --c-violet: #a97fd0;
  --c-magenta:#e5397d;

  /* Warm "watercolor paper" neutral ramp */
  --n-50:  oklch(0.988 0.008 70);
  --n-100: oklch(0.972 0.010 70);
  --n-200: oklch(0.928 0.012 68);
  --n-300: oklch(0.872 0.014 66);
  --n-400: oklch(0.720 0.016 64);
  --n-500: oklch(0.560 0.018 320);
  --n-600: oklch(0.455 0.020 320);
  --n-700: oklch(0.360 0.024 322);
  --n-800: oklch(0.262 0.028 320);
  --n-900: oklch(0.205 0.030 318);
  --n-950: oklch(0.160 0.030 315);

  /* Accent = magenta (her poppy watercolor prints) */
  --accent:       oklch(0.62 0.20 349);
  --accent-hover: oklch(0.55 0.21 349);
  --accent-soft:  color-mix(in oklch, var(--accent) 14%, transparent);
  --on-accent:    #fff;

  /* Semantic (light default; dark via [data-theme]) */
  --bg:         var(--n-50);
  --bg-tint:    oklch(0.972 0.014 60);
  --surface:    #fffdf9;
  --surface-2:  var(--n-100);
  --text:       var(--n-900);
  --text-muted: var(--n-600);
  --border:     color-mix(in oklch, var(--n-300) 70%, transparent);
  --ring:       0 0 0 4px var(--accent-soft);

  /* Fluid type (1.28 ratio) */
  --step--1: clamp(0.83rem, 0.80rem + 0.16vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.26vw, 1.15rem);
  --step-1:  clamp(1.28rem, 1.17rem + 0.50vw, 1.60rem);
  --step-2:  clamp(1.60rem, 1.42rem + 0.85vw, 2.15rem);
  --step-3:  clamp(2.00rem, 1.70rem + 1.40vw, 3.05rem);
  --step-4:  clamp(2.55rem, 2.05rem + 2.35vw, 4.30rem);
  --step-5:  clamp(3.10rem, 2.30rem + 3.90vw, 6.10rem);

  /* Spacing */
  --space-2xs: clamp(0.5rem, 0.47rem + 0.16vw, 0.6rem);
  --space-xs:  clamp(0.75rem, 0.71rem + 0.24vw, 0.9rem);
  --space-s:   clamp(1rem, 0.94rem + 0.32vw, 1.2rem);
  --space-m:   clamp(1.5rem, 1.41rem + 0.48vw, 1.8rem);
  --space-l:   clamp(2rem, 1.8rem + 1vw, 2.6rem);
  --space-xl:  clamp(3rem, 2.6rem + 2vw, 4rem);
  --space-2xl: clamp(4rem, 3.2rem + 3.6vw, 6.5rem);
  --space-3xl: clamp(6rem, 4.6rem + 6vw, 10rem);

  --measure: 62ch;
  --content-max: 75rem;
  --gutter: clamp(1.1rem, 5vw, 2.5rem);

  --radius-s: 0.6rem;
  --radius:   1rem;
  --radius-l: 1.6rem;
  --radius-xl: 2.2rem;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px -1px oklch(0.3 0.05 320 / 0.12), 0 1px 2px oklch(0.3 0.05 320 / 0.06);
  --shadow:    0 4px 10px -4px oklch(0.3 0.06 320 / 0.16), 0 12px 28px -10px oklch(0.3 0.06 320 / 0.14);
  --shadow-lg: 0 12px 28px -10px oklch(0.25 0.06 320 / 0.22), 0 32px 60px -20px oklch(0.25 0.06 320 / 0.26);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 240ms;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg:         var(--n-950);
  --bg-tint:    oklch(0.185 0.032 315);
  --surface:    var(--n-900);
  --surface-2:  var(--n-800);
  --text:       var(--n-100);
  --text-muted: var(--n-400);
  --border:     color-mix(in oklch, var(--n-700) 65%, transparent);
  --accent:       oklch(0.70 0.19 349);
  --accent-hover: oklch(0.78 0.17 349);
  --surface:    oklch(0.205 0.030 318);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 600;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

* { scrollbar-width: thin; scrollbar-color: var(--n-400) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--n-400); border-radius: var(--radius-full); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-3xl); position: relative; }
.section-head { max-width: 46rem; margin-bottom: var(--space-xl); }
.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: 0.2em;
}
.lead { font-size: var(--step-1); color: var(--text-muted); max-width: var(--measure); }
.muted { color: var(--text-muted); }

/* rainbow text used sparingly for a hero word */
.rainbow-text {
  background: linear-gradient(100deg, var(--c-magenta), var(--c-orange) 30%, var(--c-lime) 55%, var(--c-cyan) 78%, var(--c-violet));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.script-accent { font-family: var(--font-script); color: var(--accent); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: var(--step-0); line-height: 1;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in oklch, var(--accent) 40%, var(--border)); }
.btn:active { transform: translateY(-1px) scale(0.99); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: var(--space-m); height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; }
/* The header bar is 74px tall, so 56px leaves a comfortable 9px above and
   below. Shrinks on phones, where the bar also carries the language toggle,
   the theme button and the hamburger. */
.brand svg, .brand img { width: 56px; height: 56px; flex: none; }
.brand-name { font-family: var(--font-script); font-size: 1.65rem; font-weight: 700; line-height: 0.9; color: var(--text); }
.brand-name small { display: block; font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.6rem); }
.nav-links a { font-size: var(--step--1); font-weight: 550; color: var(--text-muted); padding: 0.4rem 0.2rem; position: relative; transition: color var(--dur) var(--ease); }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); border-radius:2px; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: var(--radius-full); color: var(--text-muted);
  border: 1px solid transparent; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-full); overflow: hidden; background: var(--surface); }
.lang-toggle button { padding: 0.35rem 0.7rem; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.lang-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: var(--step-1); margin-block: 1.2em 1.8em; color: var(--text-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag { font-size: var(--step--1); font-weight: 600; padding: 0.4rem 0.9rem; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.tag > span:first-child { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:0.5em; vertical-align: 1px; }

/* Watercolor blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: 0.5; z-index: -1; pointer-events: none; mix-blend-mode: multiply; }
[data-theme="dark"] .blob { mix-blend-mode: screen; opacity: 0.35; }
.blob-1 { width: 42vw; height: 42vw; background: var(--c-magenta); top: -12vw; right: -8vw; }
.blob-2 { width: 34vw; height: 34vw; background: var(--c-cyan); bottom: -14vw; left: -10vw; }
.blob-3 { width: 26vw; height: 26vw; background: var(--c-gold); top: 30%; left: 40%; opacity: 0.35; }

/* Hero collage */
.hero-collage { position: relative; aspect-ratio: 1; }
.hero-collage .frame { position: absolute; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid var(--surface); }
.hero-collage .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .f1 { inset: 0 22% 26% 0; z-index: 2; }
.hero-collage .f2 { width: 46%; aspect-ratio: 3/4; right: 0; top: 8%; z-index: 3; }
.hero-collage .f3 { width: 42%; aspect-ratio: 1; right: 8%; bottom: 0; z-index: 4; }
.hero-emblem { position: absolute; left: -6%; bottom: 4%; width: 34%; z-index: 5; filter: drop-shadow(0 8px 18px oklch(0.3 0.06 320 / 0.28)); animation: floaty 7s var(--ease) infinite; }

@keyframes floaty { 0%,100%{ transform: translateY(0) rotate(-4deg);} 50%{ transform: translateY(-12px) rotate(2deg);} }
.spin-slow { animation: spin 26s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee strip ---------- */
.strip { background: var(--text); color: var(--bg); padding-block: 0.9rem; overflow: hidden; }
[data-theme="dark"] .strip { background: var(--surface-2); color: var(--text); }
.marquee { display: flex; gap: 2.5rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: var(--step-1); font-style: italic; display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip:hover .marquee { animation-play-state: paused; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-portrait { position: relative; }
/* The portrait is a 2:3 shot; forcing it into 4:5 clipped either her hair or
   the embroidered apron logo, so the frame follows the photo instead. */
.about-portrait img { border-radius: var(--radius-l); box-shadow: var(--shadow-lg); width: 100%; height: auto; display: block; }
.about-portrait .sticker {
  position: absolute; right: -1rem; bottom: -1.2rem; background: var(--surface);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; box-shadow: var(--shadow-lg);
  font-family: var(--font-script); font-size: 1.5rem; color: var(--accent); line-height: 1; transform: rotate(-4deg);
  border: 1px solid var(--border);
}
.about-portrait .sticker small { display:block; font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-top: 0.3rem; }
.signature { font-family: var(--font-script); font-size: 2.2rem; color: var(--accent); margin-top: 0.4em; line-height: 1; }

/* ---------- Services / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); }
.svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: var(--space-m); position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.svc { display: block; }   /* the cards are <a> now, and <a> is inline */
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* affordance: the whole card links into its album */
.svc-go {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem;
  font-size: var(--step--1); font-weight: 650; color: var(--accent);
}
.svc-go svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.svc:hover .svc-go svg { transform: translateX(4px); }
.svc-ico { width: 54px; height: 54px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: var(--space-s); color: #fff; }
.svc-ico svg { width: 28px; height: 28px; }
.svc h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.svc p { font-size: var(--step--1); color: var(--text-muted); }
.svc::before { content:""; position:absolute; inset:0 auto auto 0; width:100%; height:4px; opacity:0; transition: opacity var(--dur); }
.svc.c1 { grid-column: span 2; } /* first card wider */
.svc.c1 { background: linear-gradient(150deg, color-mix(in oklch, var(--c-magenta) 12%, var(--surface)), var(--surface)); }
.i-paint { background: linear-gradient(140deg, var(--c-magenta), var(--c-orange)); }
.i-embroidery { background: linear-gradient(140deg, var(--c-cyan), var(--c-violet)); }
.i-print { background: linear-gradient(140deg, var(--c-lime), var(--c-cyan)); }
.i-gift { background: linear-gradient(140deg, var(--c-violet), var(--c-magenta)); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-l); }
.chip { padding: 0.5rem 1.1rem; border-radius: var(--radius-full); border: 1.5px solid var(--border); font-size: var(--step--1); font-weight: 600; color: var(--text-muted); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.gallery { columns: 3; column-gap: clamp(0.7rem, 1.6vw, 1.1rem); }
.gallery .item { break-inside: avoid; margin-bottom: clamp(0.7rem, 1.6vw, 1.1rem); position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.gallery .item img { width: 100%; transition: transform 600ms var(--ease); }
.gallery .item:hover img { transform: scale(1.05); }
.gallery .item .cap { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem 0.9rem; background: linear-gradient(transparent, oklch(0.2 0.04 320 / 0.72)); color: #fff; font-weight: 600; font-size: var(--step--1); opacity: 0; transform: translateY(8px); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.gallery .item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery .item.hide { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: oklch(0.15 0.03 315 / 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: none; place-items: center; padding: 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; color: #fff; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: oklch(1 0 0 / 0.12); transition: background var(--dur); }
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: oklch(1 0 0 / 0.25); }
.lightbox .lb-close { top: 4vw; right: 4vw; }
.lightbox .lb-nav.prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 26px; height: 26px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step .num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent); font-weight: 600; margin-bottom: 0.2em; display: block; }
.step h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.step p { font-size: var(--step--1); color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--border); padding: var(--space-s) 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq details p { color: var(--text-muted); margin-top: var(--space-xs); max-width: var(--measure); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-card {
  background: linear-gradient(155deg, color-mix(in oklch, var(--c-magenta) 16%, var(--surface)), color-mix(in oklch, var(--c-cyan) 10%, var(--surface)));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem); text-align: center; box-shadow: var(--shadow-lg);
}
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: var(--space-l); }
.social-btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur);
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.social-btn.fb:hover { color: #1877f2; }
.social-btn.ig:hover { color: #e1306c; }
.social-btn.tt:hover { color: var(--text); }
.contact-meta { margin-top: var(--space-l); color: var(--text-muted); font-size: var(--step--1); }
.contact-meta a { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-xl) var(--space-l); margin-top: var(--space-2xl); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-l); align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand svg { width: 40px; height: 40px; }
.foot-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.foot-cols h5 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8rem; }
.foot-cols a { display: block; color: var(--text-muted); padding: 0.25rem 0; transition: color var(--dur); font-size: var(--step--1); }
.foot-cols a:hover { color: var(--accent); }
.foot-bottom { margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--text-muted); font-size: var(--step--1); }

/* ---------- Reveal animation (only when JS is active; content is visible otherwise) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* Content you land on directly (deep link, reload mid-page) must be painted at
   once — fading it in depends on frames arriving and is pointless for something
   already under the reader's eyes. */
.js .reveal.in-now { opacity: 1; transform: none; transition: none; }
.js .reveal.d1 { transition-delay: 80ms; } .js .reveal.d2 { transition-delay: 160ms; }
.js .reveal.d3 { transition-delay: 240ms; } .js .reveal.d4 { transition-delay: 320ms; }

/* ---------- Language visibility ---------- */
[data-lang-en] { display: none; }
html[data-lang="en"] [data-lang-ro] { display: none; }
html[data-lang="en"] [data-lang-en] { display: revert; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 30rem; margin-inline: auto; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 26rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc.c1 { grid-column: span 2; }
  .gallery { columns: 2; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}
/* The five nav links stop fitting around 680px — below that the bar overflowed
   horizontally (it did even before the logo was enlarged). Collapse to the
   hamburger at 767px so there is real margin, rather than at 640px. */
@media (max-width: 1050px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 74px; left: 0; right: 0; padding: 1.2rem var(--gutter) 1.6rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    gap: 0.4rem;
  }
  .nav-links.open a { font-size: var(--step-1); }
  .nav-toggle { display: inline-grid; }
}

@media (max-width: 640px) {
  .brand svg, .brand img { width: 46px; height: 46px; }
  .bento { grid-template-columns: 1fr; }
  .svc.c1 { grid-column: span 1; }
  .gallery { columns: 1; }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   In-page navigation: anchor offset, section dot-rail, back-to-top.
   Shared by index.html and galerie.html (galerie loads this file first).
   ============================================================================ */

/* Anchored jumps must clear the sticky 74px header, otherwise the heading
   lands underneath it and the section looks like it did not scroll. */
:where(main section[id], header[id]) { scroll-margin-top: 92px; }

/* ---- Section dot-rail: jump to any section without hunting by scroll ---- */
.section-nav {
  position: fixed; right: 1.15rem; top: 50%; transform: translateY(-50%);
  z-index: 55; display: grid; gap: 0.8rem; align-content: center;
}
.section-nav a {
  position: relative; display: block; width: 11px; height: 11px;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--text) 28%, transparent);
  transition: background var(--dur) var(--ease), height var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.section-nav a::after {
  content: attr(data-label);
  position: absolute; right: calc(100% + 0.65rem); top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--text); color: var(--bg);
  font-size: 0.72rem; font-weight: 650; white-space: nowrap;
  padding: 0.3rem 0.65rem; border-radius: var(--radius-full);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.section-nav a:hover { background: var(--accent); transform: scale(1.2); }
.section-nav a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.section-nav a[aria-current="true"] { background: var(--accent); height: 26px; }
.section-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Back to top ---- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent-hover); transform: translateY(-3px); }
.to-top svg { width: 21px; height: 21px; }

/* The dot-rail would sit on top of the back-to-top button on short/narrow
   screens; the hamburger menu already covers section jumps there. */
@media (max-width: 900px), (max-height: 560px) {
  .section-nav { display: none; }
}

/* A compact image-led introduction on small screens. */
.skip-link { position: fixed; z-index: 200; left: 1rem; top: 1rem; padding: .7rem 1rem; background: var(--surface); color: var(--text); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 640px) {
  .hero { padding-block: 1.4rem 2.5rem; }
  .hero-grid { gap: 1.25rem; }
  .hero-collage { width: 100%; max-width: none; height: 190px; aspect-ratio: auto; order: -1; }
  .hero-collage .frame { border-width: 3px; }
  .hero-collage .f1 { inset: 0 36% 0 0; }
  .hero-collage .f2 { width: 40%; height: 90%; top: 5%; right: 0; aspect-ratio: auto; }
  .hero-collage .f3, .hero-emblem { display: none; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.2rem); line-height: 1.05; }
  .hero .lead { font-size: 1rem; line-height: 1.5; margin-block: .8rem 1.2rem; }
  .hero-tags { margin-top: 1rem; }
  .blob { opacity: .2; }
}

/* Landing page: the warm paper tone from Despre, with delicate watercolor washes. */
[data-theme="light"] .landing-page #main {
  background-color: #fbf7f3;
  background-image:
    radial-gradient(ellipse 42rem 30rem at 5% 7%, rgba(229, 110, 152, .16), transparent 75%),
    radial-gradient(ellipse 34rem 32rem at 95% 19%, rgba(232, 180, 123, .16), transparent 74%),
    radial-gradient(ellipse 36rem 30rem at 8% 42%, rgba(137, 194, 189, .15), transparent 75%),
    radial-gradient(ellipse 42rem 35rem at 92% 62%, rgba(218, 165, 195, .15), transparent 76%),
    radial-gradient(ellipse 40rem 32rem at 8% 82%, rgba(241, 194, 138, .16), transparent 75%),
    linear-gradient(180deg, #fdf8f5, #f9f4ef 48%, #fcf7f3);
}
[data-theme="dark"] .landing-page #creatii { background: var(--bg-tint); }
[data-theme="light"] .landing-page .site-footer {
  background: radial-gradient(ellipse at 90% 20%, rgba(218,165,195,.13), transparent 60%), #faf5f1;
}
