/* ==========================================================================
   ProfJero — design system
   Brand colours sampled from the logo: blue #0A60EE, navy #04236A,
   green #08BC6F, amber #FDB542.
   ========================================================================== */
:root {
  /* --brand-base is the theme colour (changed by the Customize panel / admin). Everything else derives from it. */
  --brand-base: #0A60EE;
  --brand: var(--brand-base);
  --brand-600: color-mix(in srgb, var(--brand) 86%, #000);
  --brand-700: color-mix(in srgb, var(--brand) 72%, #000);
  --brand-50: color-mix(in srgb, var(--brand) 7%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 15%, #fff);
  --brand-2: color-mix(in srgb, var(--brand) 55%, #19B4FF);
  --navy: #04236A;
  --green: #08BC6F;
  --amber: #FDB542;
  --red: #E5484D;

  --bg: #F6F8FC;
  --bg-2: #EEF2F9;
  --surface: #FFFFFF;
  --surface-2: #F3F6FB;
  --text: #0B1630;
  --text-2: #33415C;
  --muted: #5F6E8A;
  --line: #E2E8F2;
  --line-2: #D3DCEA;
  --shadow-sm: 0 1px 2px rgba(11, 22, 48, .06), 0 1px 3px rgba(11, 22, 48, .05);
  --shadow: 0 10px 30px -12px rgba(11, 22, 48, .18), 0 2px 6px rgba(11, 22, 48, .04);
  --shadow-lg: 0 30px 60px -20px rgba(4, 35, 106, .30);
  --glow: 0 10px 30px -8px color-mix(in srgb, var(--brand) 55%, transparent);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: color-mix(in srgb, var(--brand-base) 78%, #fff);
  --brand-600: color-mix(in srgb, var(--brand) 88%, #fff);
  --brand-700: color-mix(in srgb, var(--brand) 75%, #fff);
  --brand-50: color-mix(in srgb, var(--brand) 12%, #060B18);
  --brand-100: color-mix(in srgb, var(--brand) 22%, #060B18);
  --bg: #060B18;
  --bg-2: #0A1224;
  --surface: #0E172B;
  --surface-2: #131E36;
  --text: #EAF0FB;
  --text-2: #C3CEE3;
  --muted: #8E9BB5;
  --line: #1D2A45;
  --line-2: #273657;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .8);
  --glow: 0 10px 30px -8px color-mix(in srgb, var(--brand) 55%, transparent);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Never let anything widen the page sideways on phones (clip keeps sticky headers working). */
html, body { overflow-x: clip; max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: var(--text); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -120px; z-index: 1000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.grad-text { background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 60%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap; text-decoration: none; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-ghost { color: var(--text-2); background: var(--surface-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--brand); transform: translateY(-2px); }
.btn-sm { padding: 9px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: .2s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); }

/* ---------- Announcement ---------- */
.announce { background: linear-gradient(90deg, var(--navy), var(--brand)); color: #fff; font-size: .9rem; text-align: center; padding: 9px 44px; position: relative; }
.announce a { color: #fff; text-decoration: underline; }
.announce button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; opacity: .8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.nav { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: #fff; padding: 5px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.logo b { color: var(--brand); font-weight: 800; }
.logo .logo-text { color: var(--navy); }
:root[data-theme="dark"] .logo .logo-text { color: #fff; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 8px 13px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .94rem; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--brand-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; }
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
.progress-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--green)); transform: scaleX(var(--p, 0)); transform-origin: left; will-change: transform; }

@media (max-width: 1040px) {
  .nav-links { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 4px; padding: 16px; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-grid; }
  .nav-actions .btn-hire { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 15%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(500px 380px at 10% 85%, color-mix(in srgb, var(--green) 14%, transparent), transparent 70%);
}
.hero-grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 500; color: var(--text-2); }
.status-pill .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(8, 188, 111, .6); animation: pulse 2s infinite; }
.status-pill.busy .pulse { background: var(--amber); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(8, 188, 111, .55); } 70% { box-shadow: 0 0 0 10px rgba(8, 188, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(8, 188, 111, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); margin: 22px 0 14px; letter-spacing: -.035em; line-height: 1.08; }
.hero h1 .role-line { display: block; min-height: 1.15em; }
.typed { color: var(--brand); }
.typed::after { content: ""; display: inline-block; width: 3px; height: .9em; margin-left: 4px; background: var(--brand); vertical-align: -0.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: clamp(1.03rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 590px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); min-width: 120px; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--text); letter-spacing: -.03em; }
.stat strong sup { color: var(--brand); font-size: 1.1rem; top: -.5em; }
.stat > span { font-size: .82rem; color: var(--muted); }
.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-photo { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--brand), var(--navy)); box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 35, 106, .55)); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; color: var(--text); animation: float 6s ease-in-out infinite;
}
.float-card i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--brand); font-size: .95rem; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.fc-1 { top: 8%; left: -12%; }
.fc-2 { top: 46%; right: -10%; animation-delay: -2s; }
.fc-2 i { background: var(--green); }
.fc-3 { bottom: 7%; left: -6%; animation-delay: -4s; }
.fc-3 i { background: var(--amber); color: var(--navy); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-socials { display: flex; gap: 8px; margin-top: 26px; align-items: center; color: var(--muted); font-size: .85rem; }
.social { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: .2s var(--ease); }
.social:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-3px); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; width: min(78%, 340px); }
  .fc-1 { left: -8%; } .fc-2 { right: -8%; } .fc-3 { left: -4%; }
}

/* ---------- Water hero (photo background + WebGL ripples) ---------- */
.hero-water {
  --hero-bg: url("/assets/img/people/hero-bg.webp");
  --hero-bg-sm: url("/assets/img/people/hero-bg-sm.webp");
  --hero-overlay: .78;
  position: relative; z-index: 0; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - var(--header-h)), 860px); display: flex; align-items: center;
  padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 9vw, 120px);
  background-color: var(--navy); background-image: var(--hero-bg);
  background-size: cover; background-position: 72% 30%; background-repeat: no-repeat;
  color: #fff;
}
.hero-water::before { display: none; }
.hero-overlay { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--hero-overlay);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--navy) 96%, #000) 0%, color-mix(in srgb, var(--navy) 88%, transparent) 38%, color-mix(in srgb, var(--brand) 22%, transparent) 72%, transparent 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--navy) 70%, transparent) 0%, transparent 35%); }
.hero-water .hero-inner { position: relative; z-index: 1; width: min(100% - 32px, var(--container)); }
.hero-water h1, .hero-water h1 span:not(.typed) { color: #fff; }
.hero-water .typed { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.hero-water .typed::after { background: color-mix(in srgb, var(--brand) 55%, #fff); }
.hero-water .hero-lead { color: rgba(255, 255, 255, .84); }
.hero-water .status-pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.hero-water .btn-outline { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(6px); }
.hero-water .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-water .stat { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; backdrop-filter: blur(8px); }
.hero-water .stat strong { color: #fff; }
.hero-water .stat strong sup { color: color-mix(in srgb, var(--brand) 50%, #fff); }
.hero-water .stat > span { color: rgba(255, 255, 255, .72); }
.hero-water .hero-socials { color: rgba(255, 255, 255, .7); }
.hero-water .social { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.hero-water .social:hover { background: #fff; color: var(--brand); border-color: #fff; }
.hero-water .hero-visual { position: relative; align-self: stretch; min-height: 420px; width: 100%; }
.hero-water .float-card { background: rgba(255, 255, 255, .9); color: var(--navy); border-color: rgba(255, 255, 255, .5); }
:root[data-theme="dark"] .hero-water .float-card { background: rgba(14, 23, 43, .85); color: var(--text); border-color: rgba(255, 255, 255, .1); }
.hero-water .fc-1 { top: 6%; left: auto; right: -2%; }
.hero-water .fc-2 { top: 46%; right: -6%; }
.hero-water .fc-3 { bottom: 4%; left: auto; right: 10%; }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) {
  .hero-water { background-position: 68% 20%; min-height: auto; }
  .hero-water .hero-visual { display: none; }
  .hero-overlay { background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 70%, transparent) 0%, color-mix(in srgb, var(--navy) 92%, transparent) 55%, color-mix(in srgb, var(--navy) 97%, #000) 100%); }
  .scroll-cue { display: none; }
}
@media (max-width: 700px) { .hero-water { background-image: var(--hero-bg-sm); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.marquee-track i { font-size: 1.3rem; color: var(--brand); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
/* Circular portrait: gradient ring + a slowly turning dashed orbit around it. */
.about-photo { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-inline: auto; padding: 10px; border-radius: 50%; background: conic-gradient(from 210deg, var(--brand), var(--brand-2, #7C3AED), var(--green), var(--brand)); box-shadow: var(--shadow-lg); }
.about-photo::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--brand) 35%, transparent); animation: orbit 40s linear infinite; pointer-events: none; }
.about-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--bg); background: var(--brand-50); }
.about-photo .exp-badge { position: absolute; right: 2%; bottom: 6%; background: var(--brand); color: #fff; padding: 16px 18px; border-radius: 20px; box-shadow: var(--glow); text-align: center; border: 4px solid var(--bg); }
@keyframes orbit { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .about-photo::before { animation: none; } }
.exp-badge strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.exp-badge > span { font-size: .8rem; opacity: .9; display: block; margin-top: 4px; }
.about-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.about-text p { color: var(--text-2); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.info-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.info-item i { color: var(--brand); width: 18px; text-align: center; }
.info-item small { display: block; color: var(--muted); font-size: .75rem; }
.info-item span, .info-item a { font-weight: 600; font-size: .92rem; color: var(--text); overflow-wrap: anywhere; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-photo { max-width: 380px; } }
@media (max-width: 520px) { .info-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Skills ---------- */
.fullstack-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.fs-item { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fs-item i { font-size: 1.2rem; color: var(--brand); background: var(--brand-50); width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.fs-item h3 { font-size: 1rem; margin: 0 0 2px; }
.fs-item p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.skill-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .3s var(--ease); }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.skill-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skill-card h3 { font-size: 1.08rem; margin: 0; }
.skill-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--navy)); color: #fff; }
.skill-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.skill-row { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 500; margin-bottom: 6px; gap: 8px; }
.skill-pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 1.4s var(--ease); }
.in-view .bar span, .bar.in-view span { width: var(--w); }
@media (max-width: 900px) { .fullstack-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fullstack-strip { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Studios / services ---------- */
.studio-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.studio-tab { --c: var(--brand); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; color: var(--text-2); transition: .2s; }
.studio-tab i { color: var(--c); }
.studio-tab:hover { border-color: var(--c); }
.studio-tab.active { background: var(--c); color: #fff; border-color: var(--c); box-shadow: 0 10px 24px -10px var(--c); }
.studio-tab.active i { color: #fff; }
.studio-panel { --c: var(--brand); animation: fadeUp .45s var(--ease); }
.studio-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); margin-bottom: 20px; }
.studio-badge { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--c); box-shadow: 0 12px 26px -12px var(--c); }
.studio-head h3 { font-size: 1.4rem; margin: 0 0 4px; }
.studio-head h3 small { font-family: var(--font); font-size: .82rem; font-weight: 600; color: var(--c); margin-left: 6px; letter-spacing: 0; }
.studio-head p { margin: 0; color: var(--muted); }
.btn-studio { background: var(--c); color: #fff; }
.btn-studio:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.service-card { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: .3s var(--ease); overflow: hidden; display: flex; flex-direction: column; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: color-mix(in srgb, var(--c) 30%, transparent); line-height: 1; }
.service-card h4 { font-size: 1.12rem; margin: 12px 0 8px; }
.service-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.service-link { font-weight: 600; font-size: .88rem; color: var(--c); display: inline-flex; gap: 8px; align-items: center; }
.service-link i { transition: transform .2s; }
.service-link:hover { color: var(--c); }
.service-link:hover i { transform: translateX(4px); }
@media (max-width: 720px) { .studio-head { grid-template-columns: minmax(0, 1fr); text-align: left; } .studio-tab span { font-size: .9rem; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.process-step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.process-step > i { font-size: 1.4rem; color: var(--brand); margin-bottom: 14px; display: block; }
.process-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--brand-100); }
.process-step h3 { font-size: 1.1rem; }
.process-step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Projects ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; color: var(--text-2); transition: .2s; }
.chip span { font-size: .75rem; background: var(--surface-2); color: var(--muted); padding: 1px 8px; border-radius: 99px; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.active span { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.project-card.hide { display: none; }
.project-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 75% 45%), var(--navy)); }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: #fff; padding: 20px; }
.project-fallback i { font-size: 2rem; opacity: .7; }
.project-fallback span { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.project-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: rgba(255, 255, 255, .92); color: var(--navy); backdrop-filter: blur(6px); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.pill-video { background: rgba(4, 35, 106, .85); color: #fff; }
.pill-featured { position: absolute; top: 12px; left: 12px; background: var(--amber); color: var(--navy); }
.play-btn { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--brand); font-size: 1.3rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: .25s var(--ease); }
.play-btn::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: ring 2s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--brand); color: #fff; }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-meta { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.project-meta span + span::before { content: "•"; margin-right: 10px; }
.project-body h3 { font-size: 1.22rem; margin-bottom: 6px; }
.project-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 16px; }
.tags span { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.project-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 400px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Experience timeline ---------- */
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tl-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 20px; }
.tl-col h3 i { color: var(--brand); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.tl-item { position: relative; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tl-dot { position: absolute; left: -35px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 4px solid var(--brand); }
.tl-when { font-size: .78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.tl-item h4 { font-size: 1.05rem; margin: 4px 0 2px; }
.tl-org { font-size: .88rem; color: var(--text-2); font-weight: 500; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 820px) { .tl-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Testimonials ---------- */
.testimonials { --per: 3; --gap: 20px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 14px 2px 6px; margin: -14px -2px 0; }
.testimonials::-webkit-scrollbar { display: none; }
.testimonials > .testimonial { scroll-snap-align: start; }
@media (max-width: 1024px) { .testimonials { --per: 2; } }
@media (max-width: 680px) { .testimonials { --per: 1; grid-auto-columns: 88%; --gap: 14px; } }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.carousel-nav[hidden] { display: none; }
.carousel-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; transition: .2s var(--ease); }
.carousel-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.carousel-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 60vw; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: var(--line); transition: .3s var(--ease); }
.carousel-dots button[aria-selected="true"] { width: 26px; background: var(--brand); }
.testimonial { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: -6px; right: 20px; font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--brand-100); }
.stars { color: var(--amber); font-size: .9rem; display: flex; gap: 2px; margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 20px; color: var(--text-2); font-size: .96rem; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption strong { display: block; font-size: .96rem; }
.testimonial figcaption span { color: var(--muted); font-size: .84rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-fallback { display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem; background: linear-gradient(135deg, hsl(var(--h) 70% 50%), hsl(calc(var(--h) + 40) 70% 40%)); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 99px; white-space: nowrap; }
.price-card h3 { font-size: 1.2rem; }
.price small { display: block; color: var(--muted); font-size: .8rem; }
.price strong { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: -.03em; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; color: var(--text-2); font-size: .93rem; }
.price-card li i { color: var(--green); margin-top: 5px; font-size: .85rem; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.cover-fallback { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff;
  background: radial-gradient(circle at 85% 15%, hsl(calc(var(--h) + 30) 90% 60% / .55), transparent 45%), linear-gradient(135deg, hsl(var(--h) 75% 42%), #04236A 85%); }
.cover-fallback::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 16px 16px; }
.cover-fallback span { position: relative; z-index: 1; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .18); padding: 4px 10px; border-radius: 99px; }
.cover-fallback strong { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.post-meta > span + span::before { content: "•"; margin-right: 12px; opacity: .6; }
.post-cat { font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 3px 10px; border-radius: 99px; }
.post-body h3 { font-size: 1.15rem; line-height: 1.35; }
.post-body h3 a { color: var(--text); }
.post-body h3 a:hover { color: var(--brand); }
.post-body p { color: var(--muted); font-size: .92rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-stats { display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.post-stats b { font-weight: 600; color: var(--text-2); }
.read-more { margin-left: auto; font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.post-card-big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card-big .post-media { aspect-ratio: auto; min-height: 320px; }
.post-card-big .post-body { padding: 32px; justify-content: center; }
.post-card-big h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.post-card-big .pill-featured { position: absolute; }
@media (max-width: 820px) { .post-card-big { grid-template-columns: minmax(0, 1fr); } .post-card-big .post-media { min-height: 0; aspect-ratio: 16/9; } }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--brand); transition: transform .25s; }
.faq[open] summary i { transform: rotate(45deg); }
.faq p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.contact-card { padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy), var(--brand)); color: #fff; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; bottom: -90px; background: rgba(255, 255, 255, .08); }
.contact-card h3 { color: #fff; font-size: 1.5rem; }
.contact-card p { color: rgba(255, 255, 255, .82); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); flex: none; }
.contact-list small { display: block; opacity: .75; font-size: .78rem; }
.contact-list a, .contact-list span { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.contact-card .social { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.contact-card .social:hover { background: #fff; color: var(--brand); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.form-card { padding: clamp(22px, 4vw, 34px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--red); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: .95rem; color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); background: var(--surface); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success i { font-size: 3rem; color: var(--green); margin-bottom: 14px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px); background: linear-gradient(120deg, var(--navy), var(--brand) 70%, var(--brand-2)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: #040A1A; color: #AEB9D0; padding: 70px 0 26px; margin-top: 0; }
.site-footer a { color: #AEB9D0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer .logo { color: #fff; }
.site-footer .logo .logo-text { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer-about p { margin: 16px 0 20px; font-size: .93rem; }
.site-footer .social { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #C9D3E6; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; }
.newsletter input::placeholder { color: #7D8AA6; }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(1100px, 96vw); width: 100%; max-height: 94vh; color: var(--text); }
.modal::backdrop { background: rgba(3, 8, 20, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-box { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; max-height: 94vh; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.05rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { overflow: auto; }
.modal-body.pad { padding: 24px; }
.device-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.device-switch button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.device-switch button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.demo-stage { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--bg) 0 50%) 0 0/24px 24px; padding: 16px; display: flex; justify-content: center; height: 72vh; }
.demo-frame { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: width .35s var(--ease); box-shadow: var(--shadow); }
.demo-frame.tablet { width: 820px; }
.demo-frame.mobile { width: 390px; }
.demo-note { padding: 10px 18px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.video-wrap { background: #000; display: flex; justify-content: center; }
.video-wrap iframe, .video-wrap video { width: 100%; aspect-ratio: 16/9; border: 0; }
.video-wrap.vertical iframe, .video-wrap.vertical video { width: min(100%, 420px); aspect-ratio: 9/16; max-height: 80vh; }
.details-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; object-position: top; border-radius: var(--radius); margin-bottom: 20px; background: var(--surface-2); }
.details-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.details-side { background: var(--surface-2); border-radius: var(--radius); padding: 18px; align-self: start; display: grid; gap: 12px; font-size: .92rem; }
.details-side dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.details-side dd { margin: 0 0 6px; font-weight: 600; }
@media (max-width: 760px) { .details-grid { grid-template-columns: minmax(0, 1fr); } .demo-stage { height: 70vh; padding: 8px; } .device-switch { display: none; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 2000; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 420px); }
.toast { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 14px; background: #0B1630; color: #fff; box-shadow: var(--shadow-lg); font-size: .92rem; animation: pop .3s var(--ease); }
.toast.success i { color: var(--green); }
.toast.error i { color: #FF8A8E; }

/* ---------- Back to top ---------- */
/* Floating buttons: fixed, composited layers that only animate transform/opacity,
   so they glide without ever nudging the page. Safe-area aware on notched phones. */
@media (max-width: 1100px) {
  /* Leave room so the floating buttons never sit on the footer's last line. */
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .to-top, .wa-float, .cz-toggle { transition-property: opacity, transform, translate, visibility !important; transition-duration: .35s !important; }
  body.floats-away .wa-float, body.floats-away .to-top { translate: 0 calc(100% + 30px); }
  body.floats-away .cz-toggle { translate: -100% 0; }
}
.to-top, .wa-float, .cz-toggle { will-change: transform, opacity; backface-visibility: hidden; -webkit-tap-highlight-color: transparent; }
.to-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; box-shadow: var(--glow); opacity: 0; visibility: hidden; transform: translate3d(0, 16px, 0) scale(.9); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; }
.to-top.show { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
.to-top:hover { transform: translate3d(0, -3px, 0); }
.wa-float { position: fixed; left: max(18px, env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); transform: translate3d(0, 0, 0); transition: transform .25s var(--ease); animation: float-in .6s var(--ease) .4s both; }
.wa-float:hover { color: #fff; transform: translate3d(0, 0, 0) scale(1.08); }
@keyframes float-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.8); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Skeletons ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty i { font-size: 2rem; margin-bottom: 10px; color: var(--brand); }

/* ==========================================================================
   Blog listing
   ========================================================================== */
.page-hero { padding: clamp(40px, 6vw, 70px) 0 30px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 80% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 1.08rem; }
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.blog-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 24px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 13px 15px 13px 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.search input:focus { outline: none; border-color: var(--brand); }
.select { padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }
.blog-chips { justify-content: flex-start; margin-bottom: 26px; }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ==========================================================================
   Article page
   ========================================================================== */
/* Article hero: the cover photo full-width behind the title (branded gradient without one). */
.article-hero { --h: 220; position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(56px, 9vw, 120px) 0 clamp(28px, 4vw, 44px); min-height: clamp(380px, 62vh, 620px); display: flex; align-items: flex-end;
  background: radial-gradient(120% 90% at 85% 0%, hsl(calc(var(--h) + 40) 80% 55% / .55), transparent 60%), linear-gradient(135deg, hsl(var(--h) 75% 22%), hsl(calc(var(--h) + 25) 70% 12%)); }
.article-hero-bg { position: absolute; inset: 0; z-index: -2; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: hero-zoom 18s ease-out both; }
.article-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(6 11 24 / .35) 0%, rgb(6 11 24 / .55) 45%, rgb(6 11 24 / .88) 100%); }
.article-hero:not(.has-cover)::after { background: url("/assets/img/bg/pattern-2.png") center / 420px repeat; opacity: .08; }
@keyframes hero-zoom { from { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .article-hero-bg img { animation: none; } }
.article-wrap { width: min(100% - 32px, 760px); margin-inline: auto; }
.article-hero .article-wrap { width: min(100% - 32px, 880px); }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12; margin: 14px 0 16px; color: #fff; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.article-hero .breadcrumbs, .article-hero .breadcrumbs a { color: rgb(255 255 255 / .78); }
.article-hero .breadcrumbs a:hover { color: #fff; }
.article-hero .post-cat { background: rgb(255 255 255 / .16); color: #fff; border: 1px solid rgb(255 255 255 / .28); backdrop-filter: blur(6px); }
.article-sub { font-size: 1.15rem; color: var(--muted); }
.article-hero .article-sub { color: rgb(255 255 255 / .86); max-width: 680px; }
.author-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; }
.author-row strong { display: block; font-size: .95rem; }
.author-row span { color: var(--muted); font-size: .85rem; }
.article-hero .author-row span { color: rgb(255 255 255 / .78); }
.article-hero .author-row .avatar { border: 2px solid rgb(255 255 255 / .7); }
.author-row .follow { margin-left: auto; }
.article-hero .follow { color: #fff; border-color: rgb(255 255 255 / .55); background: rgb(255 255 255 / .08); }
.article-hero .follow:hover { background: #fff; color: var(--brand); }
@media (max-width: 640px) { .article-hero { min-height: 420px; } .author-row .follow { margin-left: 0; } }
.article-layout { display: grid; grid-template-columns: 70px minmax(0, 760px) 240px; gap: 40px; justify-content: center; width: min(100% - 32px, 1180px); margin: clamp(28px, 4vw, 48px) auto 0; }
.share-rail { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; display: grid; gap: 10px; justify-items: center; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--text-2); transition: .2s; font-size: 1.05rem; }
.rail-btn:hover { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); }
.rail-btn.liked { color: #fff; background: var(--red); border-color: var(--red); }
.rail-count { font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: -6px; margin-bottom: 6px; }
.toc { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; font-size: .88rem; max-height: calc(100vh - 140px); overflow: auto; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.toc a.lvl-3 { padding-left: 26px; font-size: .84rem; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: 60px minmax(0, 760px); } .toc { display: none; } }
@media (max-width: 760px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .share-rail { display: none; } }

.prose { font-size: 1.09rem; line-height: 1.8; color: var(--text-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 1.65rem; margin: 2em 0 .6em; color: var(--text); }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; color: var(--text); }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brand); }
.prose li.task { list-style: none; margin-left: -1.4em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 14px 14px 0; font-size: 1.12rem; color: var(--text); font-style: italic; }
.prose code { font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .12em .4em; border-radius: 6px; color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius); margin: 1.6em auto; cursor: zoom-in; }
/* Images inside articles: ![alt](url "caption"){wide|small|left|right} */
.md-figure { margin: 2em 0; }
.md-figure img { display: block; width: 100%; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface-2); }
.md-figure figcaption { margin-top: 10px; text-align: center; font-size: .88rem; color: var(--muted); }
.md-figure.is-small { max-width: 62%; margin-inline: auto; }
.md-figure.is-wide { width: min(100vw - 32px, 1040px); margin-left: 50%; transform: translateX(-50%); }
@media (min-width: 760px) {
  .md-figure.is-left { float: left; width: 46%; margin: .4em 1.6em 1em 0; }
  .md-figure.is-right { float: right; width: 46%; margin: .4em 0 1em 1.6em; }
}
.prose h2, .prose h3 { clear: both; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgb(6 11 24 / .9); }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 12px; display: block; margin: auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .15); color: #fff; font-size: 1.2rem; }
.code-block { border-radius: 14px; overflow: hidden; background: #0B1220; border: 1px solid #1E2A44; margin: 1.6em 0; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #111A2E; color: #8FA1C7; font-size: .78rem; font-family: ui-monospace, monospace; }
.copy-code { border: 0; background: rgba(255, 255, 255, .06); color: #C8D4EE; padding: 4px 10px; border-radius: 7px; font-size: .78rem; }
.copy-code:hover { background: rgba(255, 255, 255, .14); }
.code-block pre { margin: 0; padding: 16px 18px; overflow: auto; font-size: .88rem; line-height: 1.65; }
.code-block code { background: none; border: 0; padding: 0; color: #E3EAF8; font-size: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.md-video { margin: 1.6em 0; }
.md-video iframe, .md-video video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; background: #000; }
.md-video.is-vertical iframe { width: min(100%, 360px); aspect-ratio: 9/16; margin: auto; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 26px; }
.article-tags a { padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--text-2); }
.article-tags a:hover { border-color: var(--brand); color: var(--brand); }
.action-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid var(--line); margin: 20px 0 30px; }
.act { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--text-2); transition: .2s; }
.act:hover { border-color: var(--brand-100); color: var(--brand); background: var(--brand-50); }
.act.liked { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 8%, var(--surface)); }
.act.liked i { animation: heart .45s var(--ease); }
@keyframes heart { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.act-views { margin-left: auto; color: var(--muted); font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }
.author-box { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 30px 0; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box h4 { margin: 0 0 4px; }
.author-box p { color: var(--muted); font-size: .93rem; margin: 0 0 10px; }

/* share sheet */
.share-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.share-opt { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--text-2); }
.share-opt i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.2rem; }
.share-opt:hover { border-color: var(--brand-100); color: var(--text); }
.share-link { display: flex; gap: 8px; margin-top: 16px; }
.share-link input { flex: 1; min-width: 0; }

/* comments */
.comments { margin: 40px 0 20px; }
.comments-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.comments-head h2 { margin: 0; font-size: 1.4rem; }
.comments-head .select { margin-left: auto; padding: 8px 14px; font-size: .88rem; }
.composer { display: flex; gap: 12px; margin-bottom: 30px; }
.composer-main { flex: 1; min-width: 0; }
.composer textarea { width: 100%; min-height: 48px; resize: vertical; border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: 10px 2px; font-size: .97rem; color: var(--text); transition: border-color .2s; }
.composer textarea:focus { outline: none; border-bottom-color: var(--brand); }
.composer-row { display: none; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.composer.active .composer-row { display: flex; }
.composer-row input { flex: 1; min-width: 160px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); }
.composer-row .spacer { flex: 1; }
.composer-row small { color: var(--muted); font-size: .78rem; }
.comment { display: flex; gap: 12px; padding: 12px 0; }
.comment .avatar { width: 40px; height: 40px; font-size: .8rem; }
.comment-main { flex: 1; min-width: 0; }
.comment-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.comment-top strong { font-size: .9rem; }
.comment-top time { color: var(--muted); }
.author-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; }
.pinned-badge { color: var(--muted); font-size: .76rem; display: inline-flex; gap: 5px; align-items: center; }
.comment-text { margin: 4px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: .96rem; }
.comment-actions { display: flex; gap: 4px; align-items: center; }
.c-act { border: 0; background: none; padding: 6px 10px; border-radius: 99px; color: var(--muted); font-size: .84rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.c-act:hover { background: var(--surface-2); color: var(--text); }
.c-act.liked { color: var(--brand); }
.replies { margin-top: 4px; }
.replies .comment .avatar { width: 30px; height: 30px; font-size: .7rem; }
.reply-toggle { color: var(--brand); }
.reply-box { margin-top: 8px; }
.more-comments { margin: 10px auto 0; display: flex; }

.related { padding: 50px 0 80px; }
.newsletter-card { margin: 30px 0; padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-50), var(--surface)); border: 1px solid var(--brand-100); }
.newsletter-card h4 { margin-bottom: 4px; }
.newsletter-card p { color: var(--muted); margin-bottom: 14px; font-size: .94rem; }
.newsletter-card form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-card input { flex: 1; min-width: 200px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: linear-gradient(90deg, var(--brand), var(--green)); transform: scaleX(var(--p, 0)); transform-origin: left; will-change: transform; }

/* ==========================================================================
   Appearance: boxed layout, backgrounds, overlay, Customize panel
   ========================================================================== */
:root[data-layout="boxed"] body { background-color: var(--bg-2); }
:root[data-layout="boxed"] .page-wrap { max-width: 1320px; margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(0, 0, 0, .45); position: relative; }
:root[data-layout="boxed"] .site-header { max-width: 1320px; margin-inline: auto; }
@media (min-width: 1360px) { :root[data-layout="boxed"] .page-wrap { margin: 24px auto; border-radius: 22px; overflow: clip; } :root[data-layout="boxed"] .site-header { top: 0; } }
:root[data-layout="boxed"][data-bg^="pattern-"] body { background-repeat: repeat; background-attachment: fixed; }
:root[data-layout="boxed"][data-bg^="image-"] body { background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
:root[data-layout="boxed"][data-bg="pattern-1"] body { background-image: url(/assets/img/bg/pattern-1.png); }
:root[data-layout="boxed"][data-bg="pattern-2"] body { background-image: url(/assets/img/bg/pattern-2.png); }
:root[data-layout="boxed"][data-bg="pattern-3"] body { background-image: url(/assets/img/bg/pattern-3.png); }
:root[data-layout="boxed"][data-bg="pattern-4"] body { background-image: url(/assets/img/bg/pattern-4.png); }
:root[data-layout="boxed"][data-bg="pattern-5"] body { background-image: url(/assets/img/bg/pattern-5.png); }
:root[data-layout="boxed"][data-bg="image-1"] body { background-image: url(/assets/img/bg/bg-1.webp); }
:root[data-layout="boxed"][data-bg="image-2"] body { background-image: url(/assets/img/bg/bg-2.webp); }
:root[data-layout="boxed"][data-bg="image-3"] body { background-image: url(/assets/img/bg/bg-3.webp); }
:root[data-layout="boxed"][data-bg="image-4"] body { background-image: url(/assets/img/bg/bg-4.webp); }
:root[data-layout="boxed"][data-bg="image-5"] body { background-image: url(/assets/img/bg/bg-5.webp); }
:root[data-layout="boxed"][data-bg="image-6"] body { background-image: url(/assets/img/bg/bg-6.webp); }
:root[data-layout="boxed"][data-bg="image-7"] body { background-image: url(/assets/img/bg/bg-7.webp); }
:root[data-layout="boxed"][data-bg="image-8"] body { background-image: url(/assets/img/bg/bg-8.webp); }
:root[data-layout="boxed"][data-bg="image-9"] body { background-image: url(/assets/img/bg/bg-9.webp); }
:root[data-layout="boxed"][data-bg="image-10"] body { background-image: url(/assets/img/bg/bg-10.webp); }
:root[data-layout="boxed"][data-overlay="1"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(160deg, color-mix(in srgb, var(--navy) 70%, transparent), rgba(0, 0, 0, .72)); pointer-events: none; }
:root[data-layout="boxed"][data-overlay="1"] body { position: relative; z-index: 0; }

.cz-toggle { position: fixed; z-index: 120; left: 0; top: 42%; width: 46px; height: 46px; border: 0; border-radius: 0 14px 14px 0; background: var(--brand); color: #fff; box-shadow: var(--glow); display: grid; place-items: center; font-size: 1.15rem; transition: transform .25s var(--ease); }
.cz-toggle i { transition: transform .6s var(--ease); }
@media (max-width: 1100px) { .cz-toggle { width: 32px; height: 40px; font-size: .95rem; border-radius: 0 12px 12px 0; top: 50%; opacity: .92; } }
.cz-toggle:hover i, .cz-toggle[aria-expanded="true"] i { transform: rotate(120deg); }
.cz-toggle:hover { transform: translate3d(3px, 0, 0); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cz-toggle i { animation: none; } }
.customizer { position: fixed; z-index: 130; top: 0; left: 0; bottom: 0; width: min(340px, 92vw); background: var(--surface); border-right: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(-104%); transition: transform .3s var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.customizer.open { transform: none; visibility: visible; }
.cz-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cz-head strong { font-family: var(--font-display); font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.cz-head strong i { color: var(--brand); }
.cz-body { padding: 18px; overflow-y: auto; display: grid; gap: 22px; }
.cz-body h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; font-family: var(--font); }
.cz-body h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cz-colors { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cz-colors button, .cz-custom { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--c); position: relative; cursor: pointer; transition: transform .15s; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.cz-colors button:hover { transform: scale(1.1); }
.cz-colors button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }
.cz-colors button[aria-pressed="true"]::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; }
.cz-custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); display: grid; place-items: center; color: #fff; font-size: .75rem; overflow: hidden; }
.cz-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.cz-seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.cz-seg button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.cz-seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.cz-bgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.cz-bgs button { aspect-ratio: 4/3; border-radius: 10px; border: 2px solid var(--line); background-size: cover; background-position: center; cursor: pointer; padding: 0; transition: transform .15s; }
.cz-bgs button:hover { transform: scale(1.05); }
.cz-bgs button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.cz-bgs .cz-none { background: var(--surface-2); font-size: .72rem; font-weight: 700; color: var(--muted); }
.cz-switch { font-size: .9rem; }

/* ---------- Pricing (tabs) ---------- */
.pricing-top { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.pricing-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pricing-tabs button { border: 0; background: none; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .9rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: .2s; }
.pricing-tabs button:hover { color: var(--text); }
.pricing-tabs button.active { background: var(--brand); color: #fff; box-shadow: var(--glow); }
.pricing[data-ppanel]:not([hidden]) { animation: fadeUp .4s var(--ease); }
.price-card h3 { margin-bottom: 4px; }
.price-tagline { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price small { width: 100%; }
.price em { font-style: normal; color: var(--muted); font-weight: 600; font-size: .9rem; }
.price-delivery { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; padding: 5px 11px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: .8rem; align-self: flex-start; }
.price-card.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, var(--surface)), var(--surface) 40%); }
.price-flag { display: inline-flex; gap: 6px; align-items: center; }
.pricing-note { display: flex; gap: 10px; max-width: 820px; margin: 28px auto 0; color: var(--muted); font-size: .9rem; text-align: left; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px dashed var(--line-2); }
.pricing-note i { color: var(--brand); margin-top: 4px; }
@media (max-width: 560px) { .pricing-tabs { width: 100%; justify-content: center; } .pricing-tabs button { padding: 9px 12px; font-size: .84rem; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo { position: relative; aspect-ratio: 1 / .92; overflow: hidden; background: linear-gradient(160deg, var(--brand-100), var(--surface-2)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-photo .avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; }
.team-socials { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 16px); opacity: 0; display: flex; gap: 8px; transition: .3s var(--ease); }
.team-card:hover .team-socials, .team-card:focus-within .team-socials { transform: translate(-50%, 0); opacity: 1; }
.team-socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.team-socials a:hover { background: var(--brand); color: #fff; }
@media (hover: none) { .team-socials { opacity: 1; transform: translate(-50%, 0); } }
.team-body { padding: 18px 20px 22px; text-align: center; }
.team-studio { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: 4px 10px; border-radius: 99px; margin-bottom: 10px; }
.team-body h3 { font-size: 1.15rem; margin: 0 0 2px; }
.team-role { color: var(--text-2); font-weight: 600; font-size: .9rem; margin: 0 0 8px; }
.team-bio { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Toggle switch (shared with admin) ---------- */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
@media (max-width: 700px) { .cz-toggle { top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); width: 40px; height: 40px; font-size: 1rem; opacity: .92; } }

/* Pop-ups ignore clicks on the empty space around them; a small shake shows that. */
dialog.nudge > * { animation: nudge .32s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 100% { transform: none; } }


/* Sale pricing — show the original amount crossed out and the active price prominently. */
.price .price-was { display: block; margin-bottom: 3px; color: var(--muted); font-size: .86rem; font-weight: 500; text-decoration: line-through; }
.price .price-sale { display: inline-block; color: var(--text); font-size: 1.14em; font-weight: 900; }
.price .price-discount { display: inline-flex; margin-left: 7px; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); font-size: .62rem; font-weight: 850; letter-spacing: .06em; vertical-align: middle; }
