/* =======================================================================
   Jacob Perez — Portfolio
   Design tokens → base → components → sections → responsive
   Dark by default, light via [data-theme="light"].
   ======================================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --accent: #6d5efc;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --max: 1160px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .6s;
}

/* Dark (default) */
:root, [data-theme="dark"] {
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .1);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #f4f5fb;
  --muted: #a2a4b8;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --glass-blur: 16px;
}

/* Light */
[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eceef6;
  --surface: rgba(255, 255, 255, .7);
  --surface-strong: rgba(255, 255, 255, .9);
  --border: rgba(15, 18, 40, .1);
  --border-strong: rgba(15, 18, 40, .16);
  --text: #14162b;
  --muted: #5a5f78;
  --shadow: 0 24px 60px -26px rgba(40, 44, 90, .25);
  --glass-blur: 14px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Animated background ---------- */
.bg-aurora, .bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-aurora {
  background:
    radial-gradient(45vw 45vw at 12% 8%, rgba(109, 94, 252, .30), transparent 60%),
    radial-gradient(40vw 40vw at 88% 22%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(50vw 50vw at 70% 95%, rgba(244, 114, 182, .18), transparent 60%);
  filter: blur(20px);
  animation: aurora 22s var(--ease) infinite alternate;
}
[data-theme="light"] .bg-aurora { opacity: .5; }
.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  opacity: .5;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-4%,0) scale(1.15); }
}

/* ---------- Glass ---------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---------- Buttons ---------- */
.btn {
  --by: 12px; --bx: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: var(--by) var(--bx);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--sm { --by: 9px; --bx: 16px; font-size: .85rem; }
.btn--lg { --by: 15px; --bx: 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(109, 94, 252, .6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(109, 94, 252, .75); }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--accent-2); background: var(--surface-strong); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: .95rem; letter-spacing: .5px;
  box-shadow: 0 8px 20px -6px rgba(109, 94, 252, .6);
}
.brand__name { font-size: 1.05rem; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--text); background: var(--surface); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform .3s var(--ease), border-color .2s, background .2s;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.05); border-color: var(--accent-2); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; }
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px var(--pad) 22px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; animation: dropIn .3s var(--ease); }
.mobile-menu a { padding: 13px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; }
.mobile-menu a:hover { background: var(--surface); color: var(--text); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(70px, 11vw, 140px) 0; position: relative; }
.section__head { max-width: 660px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.08;
  font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.02em;
}
.section__sub { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 18vh, 180px) 0 clamp(70px, 9vw, 110px); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); font-weight: 500; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); margin-bottom: 24px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 4.4rem); line-height: 1.03; letter-spacing: -.03em; }
.hero__tagline { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); margin: 24px 0 34px; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 46px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.hero__stats span { color: var(--muted); font-size: .85rem; }

.portrait { position: relative; }
.portrait__glow { position: absolute; inset: -12% -8% -8% -8%; background: var(--grad); filter: blur(60px); opacity: .35; border-radius: 50%; animation: float 8s var(--ease) infinite alternate; }
.portrait__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.portrait__ph { width: 100%; height: 100%; color: var(--text); }
.portrait__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.portrait__badge { position: absolute; bottom: 18px; left: -14px; display: flex; align-items: center; gap: 11px; padding: 12px 16px; box-shadow: var(--shadow); animation: float 6s var(--ease) infinite alternate; }
.portrait__badge-emoji { font-size: 1.3rem; }
.portrait__badge strong { display: block; font-family: var(--font-display); font-size: .92rem; }
.portrait__badge small { color: var(--muted); font-size: .78rem; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-14px); } }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; display: grid; justify-items: center; padding-top: 8px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent-2); animation: scrolly 1.6s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__body .lead { font-size: 1.25rem; color: var(--text); margin-bottom: 20px; }
.about__body p { color: var(--muted); margin-bottom: 18px; }
.about__body strong, .about__body em { color: var(--text); }
.about__points { display: grid; gap: 12px; margin-top: 26px; }
.about__points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.about__points span { color: var(--accent-2); }

/* ---------- Work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.project {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.project:hover {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  border-color: var(--border-strong); box-shadow: var(--shadow);
}
/* Cursor-follow glare */
.project__glare {
  position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease); mix-blend-mode: soft-light;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .35), transparent 60%);
}
.project:hover .project__glare { opacity: 1; }

.project__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project__shot::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.28)); pointer-events: none; }
/* Shimmer sweep */
.project__shot::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); animation: shimmer 5s var(--ease) infinite;
}
@keyframes shimmer { 0% { left: -60%; } 55%, 100% { left: 135%; } }

/* Parallax layer holding the animated mock */
.shot__layer { position: absolute; inset: 0; z-index: 1; transform: translate(var(--px, 0), var(--py, 0)); transition: transform .25s var(--ease); }

/* Card 1 — landing-page wireframe */
.shot__ui { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ui-bar { height: 7px; width: 55%; border-radius: 4px; background: rgba(255,255,255,.4); }
.ui-head { height: 20px; width: 78%; border-radius: 6px; background: rgba(255,255,255,.6); margin-top: auto; }
.ui-lines { display: flex; flex-direction: column; gap: 6px; }
.ui-lines span { height: 6px; border-radius: 3px; background: rgba(255,255,255,.32); }
.ui-lines span:nth-child(1) { width: 68%; }
.ui-lines span:nth-child(2) { width: 46%; }
.ui-btn { height: 15px; width: 84px; border-radius: 8px; background: rgba(255,255,255,.9); margin-top: 4px; animation: btnPulse 2.6s var(--ease) infinite; }
@keyframes btnPulse { 0%, 100% { opacity: .82; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .55; }
.orb--1 { width: 66px; height: 66px; background: rgba(255,255,255,.4); top: 10px; right: -8px; animation: float 6s var(--ease) infinite alternate; }
.orb--2 { width: 38px; height: 38px; background: rgba(255,255,255,.28); bottom: 22px; right: 34%; animation: float 7.5s var(--ease) infinite alternate-reverse; }

/* Card 2 — brand palette swatches */
.shot__swatches { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.shot__swatches i { width: 34px; height: 34px; border-radius: 10px; background: var(--c); box-shadow: 0 6px 18px rgba(0,0,0,.28); animation: swatch 2.8s var(--ease) infinite; }
.shot__swatches i:nth-child(2) { animation-delay: .18s; }
.shot__swatches i:nth-child(3) { animation-delay: .36s; }
.shot__swatches i:nth-child(4) { animation-delay: .54s; }
@keyframes swatch { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.08); } }

/* Card 3 — small-business bar chart */
.shot__chart { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 11px; padding: 26px 22px; }
.shot__chart span { width: 15px; border-radius: 6px 6px 0 0; background: rgba(255,255,255,.62); transform-origin: bottom; animation: bar 2.6s var(--ease) infinite; }
.shot__chart span:nth-child(1) { height: 46%; animation-delay: 0s; }
.shot__chart span:nth-child(2) { height: 68%; animation-delay: .15s; }
.shot__chart span:nth-child(3) { height: 54%; animation-delay: .3s; }
.shot__chart span:nth-child(4) { height: 82%; animation-delay: .45s; }
.shot__chart span:nth-child(5) { height: 62%; animation-delay: .6s; }
@keyframes bar { 0%, 100% { transform: scaleY(.62); opacity: .6; } 50% { transform: scaleY(1); opacity: 1; } }
.shot--a { background: linear-gradient(135deg, #6d5efc, #22d3ee); }
.shot--b { background: linear-gradient(135deg, #f472b6, #6d5efc); }
.shot--c { background: linear-gradient(135deg, #22d3ee, #34d399); }
.project__browser { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 3; }
.project__browser i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.65); }
.project__shot-tag { position: absolute; bottom: 12px; right: 14px; z-index: 3; font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); }
.project__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.project__desc { color: var(--muted); font-size: .95rem; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tech li { font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); color: var(--muted); }
.project__links { display: flex; gap: 10px; margin-top: 8px; }
.btn__ext { width: .95em; height: .95em; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service { padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), border-color .35s, background .35s; }
.service:hover { transform: translateY(-8px); border-color: var(--accent-2); background: var(--surface-strong); }
.service__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 1.5rem; box-shadow: 0 12px 26px -10px rgba(109, 94, 252, .6); }
.service h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; }
.service p { color: var(--muted); font-size: .96rem; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 34px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .5; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; position: relative; }
.step__node { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-strong); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); position: relative; z-index: 2; }
.step__icon { font-size: 1.4rem; }
.step__card { padding: 22px 26px; }
.step__num { font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.step__card h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 4px 0 8px; }
.step__card p { color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.social { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; font-size: .9rem; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.social:hover { transform: translateY(-3px); border-color: var(--accent-2); background: var(--surface-strong); }

.contact__form { padding: clamp(24px, 4vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 600; font-family: var(--font-display); }
.field input, .field textarea {
  font: inherit; color: var(--text); padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109,94,252,.22); }
.field input:invalid:not(:placeholder-shown) { border-color: #f87171; }
.form__status { font-size: .9rem; min-height: 1.2em; text-align: center; }
.form__status.ok { color: #34d399; }
.form__status.err { color: #f87171; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 46px 0; margin-top: 40px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand strong { font-family: var(--font-display); display: block; }
.footer__brand small { color: var(--muted); font-size: .82rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); transition: transform .25s var(--ease), border-color .25s, color .25s; }
.footer__social a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.footer__social a:hover { transform: translateY(-3px); border-color: var(--accent-2); color: var(--accent-2); }
.footer__meta { color: var(--muted); font-size: .86rem; text-align: right; line-height: 1.8; }
.footer__built .heart { color: var(--accent-3); animation: beat 1.4s ease-in-out infinite; display: inline-block; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }

/* =======================================================================
   Concept showcase overlay + themed template mini-sites
   ======================================================================= */
.concept-modal { position: fixed; inset: 0; z-index: 1000; }
.concept-modal[hidden] { display: none; }
.concept-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 4, 10, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .3s var(--ease); }
.concept-modal__panel { position: absolute; inset: 0; overflow: auto; animation: panelIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.concept-modal__close { position: fixed; top: 16px; right: 16px; z-index: 8; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 13px; border-radius: 999px; background: rgba(10, 12, 20, .74); border: 1px solid rgba(255, 255, 255, .26); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--font-display); font-weight: 600; font-size: .9rem; cursor: pointer; transition: transform .2s var(--ease), background .25s, border-color .25s; }
.concept-modal__close:hover { background: rgba(10, 12, 20, .95); border-color: var(--accent-2); transform: translateY(-1px); }
.concept-modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
body.modal-open { overflow: hidden; }

/* Template base */
.tpl { --r: 20px; position: relative; min-height: 100vh; overflow: hidden; background: var(--bg); color: var(--ink); }
.tpl * { box-sizing: border-box; }
.tpl__wrap { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.tpl__blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; pointer-events: none; z-index: 0; }
.tpl__blob--1 { width: 42vw; height: 42vw; background: var(--c1); top: -12%; left: -8%; animation: tplfloat 16s var(--ease) infinite alternate; }
.tpl__blob--2 { width: 36vw; height: 36vw; background: var(--c2); top: 16%; right: -10%; animation: tplfloat 21s var(--ease) infinite alternate-reverse; }
.tpl__blob--3 { width: 32vw; height: 32vw; background: var(--c3); bottom: -14%; left: 32%; opacity: .34; animation: tplfloat 24s var(--ease) infinite alternate; }
@keyframes tplfloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5%, -7%, 0) scale(1.2); } }

/* Themes */
.tpl--nimbus { --bg: #080d1c; --bg2: #0e1730; --ink: #eef2ff; --muted: #9fb0d6; --c1: #6d5efc; --c2: #22d3ee; --c3: #8b7bff; --grad: linear-gradient(120deg, #6d5efc, #22d3ee); }
.tpl--palette { --bg: #160e1c; --bg2: #241033; --ink: #fdeaf6; --muted: #d8a9c9; --c1: #f472b6; --c2: #a855f7; --c3: #fbbf24; --grad: linear-gradient(120deg, #f472b6, #a855f7 55%, #fbbf24); }
.tpl--bloom { --bg: #07130f; --bg2: #0d2019; --ink: #e8fff5; --muted: #94c9b4; --c1: #34d399; --c2: #22d3ee; --c3: #a3e635; --grad: linear-gradient(120deg, #34d399, #22d3ee 60%, #a3e635); }

.tpl__flag { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 4; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px); white-space: nowrap; }

/* Nav */
.tpl__nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 8px; }
.tpl__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.tpl__brand span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #0a0a12; font-weight: 800; font-size: .85rem; }
.tpl__navlinks { display: flex; gap: 22px; color: var(--muted); font-size: .9rem; }

/* Buttons */
.tpl__btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; padding: 12px 20px; border-radius: 999px; background: var(--grad); color: #0a0a12; border: none; cursor: pointer; box-shadow: 0 14px 32px -12px var(--c1); transition: transform .25s var(--ease); }
.tpl__btn:hover { transform: translateY(-3px); }
.tpl__btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .24); box-shadow: none; }

/* Hero */
.tpl__hero { padding: clamp(34px, 7vw, 76px) 0 clamp(26px, 4vw, 46px); display: grid; gap: 22px; }
.tpl__eyebrow { justify-self: start; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); border: 1px solid rgba(255, 255, 255, .16); padding: 7px 13px; border-radius: 999px; }
.tpl__title { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; font-size: clamp(2.1rem, 5.6vw, 3.9rem); max-width: 16ch; text-wrap: balance; }
.tpl__rotator b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; transition: opacity .38s var(--ease), transform .38s var(--ease); }
.tpl__rotator b.swap { opacity: 0; transform: translateY(10px); }
.tpl__sub { color: var(--muted); font-size: 1.1rem; max-width: 54ch; }
.tpl__cta { display: flex; gap: 13px; flex-wrap: wrap; }
.tpl__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.tpl__chip { font-size: .82rem; color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); padding: 8px 14px; border-radius: 999px; animation: tplbob 4s var(--ease) infinite alternate; }
.tpl__chip:nth-child(2) { animation-delay: .5s; }
.tpl__chip:nth-child(3) { animation-delay: 1s; }
@keyframes tplbob { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* Section heads inside template */
.tpl__kicker { font-family: var(--font-display); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* Palette showcase */
.tpl__palette { padding: 34px 0; }
.tpl__swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.tpl__sw { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); transition: transform .3s var(--ease); }
.tpl__sw:hover { transform: translateY(-6px); }
.tpl__sw-color { height: 82px; }
.tpl__sw-meta { padding: 11px 14px; display: flex; flex-direction: column; gap: 2px; }
.tpl__sw-meta strong { font-family: var(--font-display); font-size: .9rem; }
.tpl__sw-meta small { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .05em; text-transform: uppercase; font-size: .72rem; }

/* Feature cards */
.tpl__features { padding: 16px 0 42px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tpl__feat { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: transform .35s var(--ease), border-color .35s, background .35s; }
.tpl__feat:hover { transform: translateY(-8px); border-color: var(--c2); background: rgba(255, 255, 255, .09); }
.tpl__feat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 1.3rem; background: var(--grad); color: #0a0a12; margin-bottom: 13px; }
.tpl__feat h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 6px; }
.tpl__feat p { color: var(--muted); font-size: .92rem; }

/* Marquee */
.tpl__marquee { position: relative; z-index: 2; margin: 6px 0 54px; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.tpl__marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 20s linear infinite; }
.tpl__marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: transparent; -webkit-text-stroke: 1px var(--muted); white-space: nowrap; opacity: .7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 720px) { .tpl__navlinks { display: none; } }
@media (max-width: 600px) { .tpl__nav > .tpl__btn { display: none; } .tpl__flag { display: none; } }

.pl-center { text-align: center; }
.concept-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(18px); z-index: 10; background: rgba(10, 12, 20, .92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .85rem; border: 1px solid rgba(255, 255, 255, .22); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); font-variant-numeric: tabular-nums; }
.concept-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Template 1: Nimbus (analytics SaaS) ===== */
.nb-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; padding: clamp(30px, 5vw, 60px) 0 34px; }
.nb-dash { position: relative; border-radius: 20px; padding: 20px; background: linear-gradient(160deg, var(--bg2), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .75); }
.nb-dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nb-dash__top small { color: var(--muted); font-size: .82rem; }
.nb-badge { color: #071018; background: var(--grad); font-weight: 700; font-size: .76rem; padding: 5px 10px; border-radius: 999px; }
.nb-chartwrap { position: relative; height: 150px; }
.nb-chart { width: 100%; height: 150px; display: block; }
.nb-area { fill: var(--c2); opacity: .16; }
.nb-line { fill: none; stroke: var(--c2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 150; stroke-dashoffset: 150; animation: nbdraw 1.8s var(--ease) .15s forwards; }
@keyframes nbdraw { to { stroke-dashoffset: 0; } }
.nb-dot { position: absolute; top: 16px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 0 var(--c2); animation: nbpulse 1.9s ease-out infinite; }
@keyframes nbpulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); } 100% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); } }
.nb-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.nb-mini > div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 11px 12px; }
.nb-mini strong { font-family: var(--font-display); font-size: 1.05rem; display: block; font-variant-numeric: tabular-nums; }
.nb-mini small { color: var(--muted); font-size: .72rem; }
.nb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); margin: 8px 0 34px; }
.nb-stat__num.nb-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.7rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.nb-stat__lbl { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.nb-sec { padding: 14px 0 30px; }
.nb-sec-head { text-align: center; margin-bottom: 18px; }
.nb-h { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.nb-switch { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.nb-switch em { color: var(--c2); font-style: normal; font-weight: 600; }
.nb-toggle { position: relative; width: 52px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; transition: background .25s; }
.nb-toggle.on { background: var(--grad); border-color: transparent; }
.nb-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.nb-toggle.on::after { transform: translateX(24px); }
.nb-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 640px; margin: 0 auto; }
.nb-plan { position: relative; border-radius: 18px; padding: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.nb-plan.feat { border-color: var(--c1); box-shadow: 0 24px 60px -30px var(--c1); }
.nb-tag { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #071018; background: var(--grad); padding: 4px 9px; border-radius: 999px; }
.nb-plan h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.nb-pricerow { display: flex; align-items: baseline; gap: 6px; }
.nb-price { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; font-variant-numeric: tabular-nums; }
.nb-per { color: var(--muted); font-size: .8rem; }
.nb-plan ul { margin-top: 14px; display: grid; gap: 9px; }
.nb-plan li { color: var(--muted); font-size: .9rem; padding-left: 22px; position: relative; }
.nb-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--c2); font-weight: 700; }
.nb-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0 18px; }
.nb-tab { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .88rem; transition: background .2s, color .2s, border-color .2s; }
.nb-tab.active { background: var(--grad); color: #071018; border-color: transparent; }
.nb-panel { max-width: 720px; margin: 0 auto; border-radius: 16px; padding: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--muted); }
.nb-panel h4 { font-family: var(--font-display); color: var(--ink); margin-bottom: 6px; font-size: 1.1rem; }
@media (max-width: 780px) { .nb-hero { grid-template-columns: 1fr; } .nb-stats { grid-template-columns: 1fr; text-align: center; } .nb-plans { grid-template-columns: 1fr; } }

/* ===== Template 2: Palette (creative studio) ===== */
.tpl--palette { --p1: #f472b6; --p2: #a855f7; --p3: #8b5cf6; --p4: #f59e0b; --p5: #fbbf24; }
.pl-hero { position: relative; text-align: center; padding: clamp(30px, 6vw, 70px) 0 24px; overflow: hidden; }
.pl-hero::before { content: ""; position: absolute; inset: -30% -10% 0; z-index: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--p1) 55%, transparent), transparent 62%); pointer-events: none; }
.pl-hero > * { position: relative; z-index: 1; }
.pl-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .92; font-size: clamp(2.6rem, 9vw, 6rem); }
.pl-title span { display: block; background: linear-gradient(110deg, var(--p1), var(--p3), var(--p5)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: plshift 6s linear infinite; }
@keyframes plshift { to { background-position: 220% center; } }
.pl-sub { color: var(--muted); max-width: 52ch; margin: 18px auto 22px; font-size: 1.1rem; }
.pl-controls { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pl-hint { color: var(--muted); font-size: .84rem; }
.pl-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 760px; margin: 30px auto; }
.pl-sw { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); cursor: pointer; background: transparent; padding: 0; text-align: left; transition: transform .25s var(--ease); }
.pl-sw:hover { transform: translateY(-8px) rotate(-1.5deg); }
.pl-sw__c { display: block; height: 118px; transition: background .45s var(--ease); }
.pl-sw__m { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: rgba(0, 0, 0, .28); }
.pl-sw__hex { font-size: .76rem; letter-spacing: .04em; }
.pl-sw__copy { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pl-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 18px auto 44px; }
.pl-card { border-radius: 18px; padding: 22px; min-height: 158px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255, 255, 255, .12); transition: background .45s var(--ease); }
.pl-card--1 { background: linear-gradient(150deg, var(--p1), var(--p2)); color: #12040c; }
.pl-card--2 { background: var(--bg2); }
.pl-card--3 { background: linear-gradient(150deg, var(--p4), var(--p5)); color: #1a1204; }
.pl-logo { width: 46px; height: 46px; border-radius: 13px; background: var(--p3); transition: background .45s var(--ease); }
.pl-star { font-size: 1.8rem; }
.pl-chip { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--p5); color: #1a1204; font-weight: 700; font-size: .82rem; transition: background .45s var(--ease); }
.pl-big { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
@media (max-width: 640px) { .pl-strip { grid-template-columns: repeat(5, 1fr); gap: 7px; } .pl-sw__m { display: none; } .pl-sw__c { height: 70px; } .pl-preview { grid-template-columns: 1fr; } }

/* ===== Template 3: Bloom (café) ===== */
.bl-hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 38px; align-items: center; padding: clamp(30px, 5vw, 60px) 0 30px; }
.bl-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 40%, transparent); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.bl-badge.closed { color: #fca5a5; background: rgba(252, 165, 165, .1); border-color: rgba(252, 165, 165, .34); }
.bl-heroart { position: relative; min-height: 260px; border-radius: 22px; overflow: hidden; background: linear-gradient(150deg, var(--c1), var(--c2) 55%, var(--c3)); box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .7); }
.bl-heroart::after { content: "☕"; position: absolute; right: 14px; bottom: -6px; font-size: 128px; opacity: .28; }
.bl-menu { padding: 16px 0 6px; }
.bl-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.bl-cat { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .86rem; transition: background .2s, color .2s, border-color .2s; }
.bl-cat.active { background: var(--grad); color: #06120d; border-color: transparent; }
.bl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bl-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: transform .25s var(--ease), border-color .25s; }
.bl-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 45%, transparent); }
.bl-item h5 { font-family: var(--font-display); font-size: 1rem; }
.bl-item small { color: var(--muted); font-size: .82rem; }
.bl-item b { color: var(--c1); font-family: var(--font-display); font-size: 1.05rem; }
.bl-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 28px 0; }
.bl-tile { aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.bl-tile div { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.bl-tile:hover div { transform: scale(1.14) rotate(1.5deg); }
.bl-book { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 28px; margin: 20px 0 46px; }
.bl-h { font-family: var(--font-display); font-size: 1.5rem; margin: 2px 0 4px; }
.bl-note { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.bl-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-size { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; font-family: var(--font-display); transition: background .2s, color .2s, border-color .2s; }
.bl-size.active { background: var(--grad); color: #06120d; border-color: transparent; }
.bl-field { display: grid; gap: 6px; margin-bottom: 13px; }
.bl-field label { font-size: .82rem; font-weight: 600; font-family: var(--font-display); }
.bl-field input, .bl-field select { padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid rgba(255, 255, 255, .14); color: var(--ink); font: inherit; }
.bl-field input:focus, .bl-field select:focus { outline: none; border-color: var(--c1); }
.bl-confirm { margin-top: 12px; color: var(--c1); font-weight: 600; font-size: .92rem; }
@media (max-width: 780px) { .bl-hero { grid-template-columns: 1fr; } .bl-book { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__eyebrow { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__tagline { margin-inline: auto; }
  .hero__portrait { order: -1; max-width: 340px; margin-inline: auto; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; width: 100%; }
}
@media (max-width: 560px) {
  .hero__stats { gap: 22px; }
  .project__links { flex-direction: column; }
  .project__links .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

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