/* ==========================================================================
   Pawan Poudel — Portfolio
   "Clean light & corporate": white canvas, navy type, one blue accent,
   structured sections on a single page. Fonts: Geist (self-hosted),
   Anek Devanagari for the name in Nepali.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2-variations"), url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2-variations"), url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Anek Devanagari";
  src: url("../fonts/anek-devanagari-name.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --surface: #ffffff;
  --ink: #0b1b36;          /* navy: headings, footer */
  --ink-2: #16305c;
  --text: #3b4a63;         /* body */
  --muted: #586880;        /* secondary text (AA on white and --bg-alt) */
  --line: #e3e8ef;
  --line-2: #cfd7e3;
  --blue: #1d4ed8;         /* the one accent */
  --blue-hover: #1e40af;
  --blue-50: #eef3ff;
  --blue-100: #dbe5ff;
  --green: #15803d;
  --green-50: #ecfdf3;
  --red: #b91c1c;
  --red-50: #fef2f2;
  --amber: #a16207;
  --amber-50: #fffbeb;
  --navy: #0b1b36;          /* always navy: footer, CTA panels */
  --mark-bg: #0b1b36;
  --offset-block: #0b1b36;
  --icon-solid: #0b1b36;
  --btn: #1d4ed8;
  --btn-hover: #1e40af;
  --header-bg: rgba(255, 255, 255, 0.92);
  --head-from: #f4f7fc;
  --media-a: #eef2f8;
  --media-b: #e3e9f3;
  --input-bg: #ffffff;
  --placeholder: #8391a7;
  --line-hover: #b5c0d1;
  --green-line: #bbe5cb;
  --green-ink: #14532d;
  --red-line: #f5c2c2;
  --red-ink: #7f1d1d;
  --amber-line: #f3dc9c;
  --amber-ink: #713f12;
  --hero-base: #f2f6fd;
  --hero-gradient: linear-gradient(160deg, #f6f9ff 0%, #edf3fd 55%, #f7f9fc 100%);
  --hero-glow-1: rgba(37, 99, 235, 0.16);
  --hero-glow-2: rgba(20, 184, 166, 0.12);
  --hero-glow-3: rgba(124, 58, 237, 0.08);
  --hero-grid: rgba(11, 27, 54, 0.05);
  --hero-title: #0b1b36;
  --hero-text: #3b4a63;
  --hero-muted: #586880;
  --hero-accent: #1d4ed8;
  --hero-name: linear-gradient(100deg, #0b1b36 0%, #1d4ed8 55%, #0f766e 100%);
  --hero-chip-bg: rgba(255, 255, 255, 0.75);
  --hero-chip-line: rgba(11, 27, 54, 0.12);
  --hero-chip-text: #3b4a63;
  --hero-btn-line: #cfd7e3;
  --hero-glass: rgba(255, 255, 255, 0.8);
  --hero-glass-shadow: 0 1px 2px rgba(11, 27, 54, 0.05), 0 12px 30px -18px rgba(11, 27, 54, 0.25);
  --hero-divider: rgba(11, 27, 54, 0.08);
  --hero-border: #e3e8ef;
  --hero-photo-shadow: 0 40px 80px -36px rgba(11, 27, 54, 0.45);
  color-scheme: light;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 54, 0.06);
  --shadow: 0 1px 2px rgba(11, 27, 54, 0.05), 0 10px 28px -14px rgba(11, 27, 54, 0.16);
  --shadow-lg: 0 30px 70px -30px rgba(11, 27, 54, 0.35);
  --header-h: 72px;
  --wrap: 1180px;
}

/* Dark theme (chosen with the header switch; remembered per visitor) */
[data-theme="dark"] {
  --bg: #0a1220;
  --bg-alt: #0e1829;
  --surface: #121e33;
  --ink: #eef2f9;
  --ink-2: #c9d3e5;
  --text: #c3cee0;
  --muted: #98a6bd;
  --line: #22314b;
  --line-2: #33435f;
  --blue: #8ab4ff;
  --blue-hover: #b3ceff;
  --blue-50: rgba(96, 150, 250, 0.13);
  --blue-100: rgba(96, 150, 250, 0.28);
  --green: #4ade80;
  --green-50: rgba(74, 222, 128, 0.1);
  --red: #f87171;
  --red-50: rgba(248, 113, 113, 0.1);
  --amber: #fbbf24;
  --amber-50: rgba(251, 191, 36, 0.1);
  --navy: #060c17;
  --mark-bg: #2563eb;
  --offset-block: #2563eb;
  --icon-solid: #2563eb;
  --btn: #2563eb;
  --btn-hover: #3b74f0;
  --header-bg: rgba(10, 18, 32, 0.88);
  --head-from: #0f1b30;
  --media-a: #16233b;
  --media-b: #1b2a45;
  --input-bg: #0c1626;
  --placeholder: #6f7f99;
  --line-hover: #4a5b7a;
  --green-line: rgba(74, 222, 128, 0.3);
  --green-ink: #bbf7d0;
  --red-line: rgba(248, 113, 113, 0.35);
  --red-ink: #fecaca;
  --amber-line: rgba(251, 191, 36, 0.35);
  --amber-ink: #fde68a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --hero-base: #070f20;
  --hero-gradient: linear-gradient(160deg, #0b1d3d 0%, #0a1730 55%, #081226 100%);
  --hero-glow-1: rgba(37, 99, 235, 0.47);
  --hero-glow-2: rgba(20, 184, 166, 0.17);
  --hero-glow-3: rgba(124, 58, 237, 0.15);
  --hero-grid: rgba(255, 255, 255, 0.05);
  --hero-title: #ffffff;
  --hero-text: #c3cee0;
  --hero-muted: #aebbd2;
  --hero-accent: #8fb6ff;
  --hero-name: linear-gradient(100deg, #ffffff 0%, #bcd4ff 45%, #7dd3fc 75%, #5eead4 100%);
  --hero-chip-bg: rgba(255, 255, 255, 0.07);
  --hero-chip-line: rgba(255, 255, 255, 0.16);
  --hero-chip-text: #dbe4f3;
  --hero-btn-line: rgba(255, 255, 255, 0.28);
  --hero-glass: rgba(255, 255, 255, 0.06);
  --hero-glass-shadow: none;
  --hero-divider: rgba(255, 255, 255, 0.1);
  --hero-border: transparent;
  --hero-photo-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
[data-theme="dark"] .section--alt { border-color: var(--line); }
[data-theme="dark"] .footer { border-top: 1px solid var(--line); }
[data-theme="dark"] .about-snippet__media::before { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
[data-theme="dark"] .media img { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); }

/* Theme switch */
.theme-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, background-color 0.15s;
}
.theme-btn:hover { border-color: var(--line-hover); }
.theme-btn .when-dark { display: none; }
[data-theme="dark"] .theme-btn .when-dark { display: block; }
[data-theme="dark"] .theme-btn .when-light { display: none; }
@media (max-width: 960px) { .theme-btn { order: -1; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
/* Smooth scrolling for in-page links, switched on after load so that
   arriving at /#contact (e.g. after sending the form) jumps straight there. */
@media (prefers-reduced-motion: no-preference) {
  html.is-ready { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
.channel__icon, .case__icon, .skillset__icon, .service__icon, .brand__mark, .theme-btn { flex-shrink: 0; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); }
strong { color: var(--ink); font-weight: 600; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
[hidden] { display: none !important; }
::selection { background: var(--blue-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.ne { font-family: "Anek Devanagari", var(--font); }

.visually-hidden { 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: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 48px, 820px); }
@media (max-width: 560px) {
  .wrap, .wrap--narrow { width: calc(100% - 36px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.975rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn svg { transition: transform 0.15s; }
.btn:hover svg { transform: translateX(2px); }
.btn--primary { background: var(--btn); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25), 0 8px 18px -10px rgba(29, 78, 216, 0.6); }
.btn--primary:hover { background: var(--btn-hover); color: #fff; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--text { min-height: 48px; padding: 0 6px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.btn--text:hover { text-decoration-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.925rem; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.65; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 27, 54, 0.4); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--mark-bg); color: #fff; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  box-shadow: inset 0 -3px 0 var(--blue);
}
.brand__text { display: grid; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__role { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.brand--inverse, .brand--inverse:hover { color: #fff; }
.brand--inverse .brand__mark { background: #fff; color: var(--navy); }
.brand__mark.photo-mark { overflow: hidden; padding: 0; background: #dfe7f3; box-shadow: 0 0 0 2px var(--line); }
.brand--inverse .brand__mark.photo-mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); }
.photo-mark img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: scale(1.5); transform-origin: 50% 38%; }
.brand--inverse .brand__role { color: #b9c5da; font-size: 0.95rem; line-height: 1.5; margin-top: 2px; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  color: var(--text); font-weight: 500; font-size: 0.95rem; text-decoration: none; border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
}
.nav__link:hover { color: var(--ink); background: var(--bg-alt); }
.nav__link.is-active, .nav__link[aria-current="page"] { color: var(--blue); }
.nav__link.is-active::after, .nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue);
}
.nav__mobile-cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); place-items: center;
}
.menu-btn__bars { position: relative; width: 18px; height: 12px; display: block; }
.menu-btn__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s, top 0.2s; }
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 5px; }
.menu-btn__bars span:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .header__cta { display: none; }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 18px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 27, 54, 0.35);
  }
  .nav__list.is-open { display: flex; }
  .nav__link { height: 48px; font-size: 1rem; }
  .nav__link.is-active::after, .nav__link[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .nav__mobile-cta { display: block; margin-top: 10px; }
}

/* ---------- Shared type ---------- */

.section-title { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); letter-spacing: -0.03em; }
.section-lead { margin-top: 14px; font-size: 1.075rem; color: var(--muted); max-width: 640px; }
.card__title { font-size: 1.15rem; letter-spacing: -0.015em; }
.prose > * + * { margin-top: 1em; }
.prose { color: var(--text); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { border-left: 3px solid var(--blue); padding: 4px 0 4px 18px; color: var(--ink); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose pre { background: var(--navy); color: #e6ecf7; padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-alt); color: var(--ink); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; line-height: 1.3; background: var(--bg-alt); color: var(--text); border: 1px solid var(--line);
  width: fit-content;
}

.tag--green { background: var(--green-50); color: var(--green); border-color: var(--green-line); }
.tag--green::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); font-size: 0.82rem; font-weight: 500; line-height: 1.35;
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.empty { padding: 32px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty p { color: var(--muted); }

/* Scroll reveal (only when JS is running) */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal-d1 { transition-delay: 0.08s; }
html.js .reveal-d2 { transition-delay: 0.16s; }
html.js .reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .section-lead { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section--after-hero { padding-top: clamp(40px, 6vw, 64px); }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 231px; width: 2px; background: var(--line-2); }
.timeline__item { display: grid; grid-template-columns: 210px 44px minmax(0, 1fr); align-items: start; }
.timeline__when { padding-top: 22px; text-align: right; display: grid; gap: 6px; justify-items: end; }
.timeline__period { color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.timeline__type { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.timeline__dot { justify-self: center; margin-top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); position: relative; z-index: 1; }
.timeline__item.is-current .timeline__dot { border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-50); }
.timeline__card { padding: 28px; box-shadow: var(--shadow); }
.timeline__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.timeline__head .card__title { font-size: 1.25rem; }
.timeline__org { margin-top: 6px; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.timeline__org svg { display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--blue); }
.timeline__sep { color: var(--muted); }
.timeline__desc { margin-top: 16px; color: var(--text); }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 28px; font-size: 0.97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.callout {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); color: var(--ink); font-size: 0.95rem;
}
.callout svg { color: var(--blue); margin-top: 2px; }

@media (max-width: 860px) {
  .timeline::before { left: 7px; }
  .timeline__item { grid-template-columns: 16px minmax(0, 1fr); column-gap: 20px; row-gap: 10px; }
  .timeline__dot { grid-column: 1; grid-row: 1; margin-top: 4px; }
  .timeline__when { grid-column: 2; grid-row: 1; padding-top: 0; text-align: left; justify-items: start; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .timeline__card { grid-column: 2; grid-row: 2; padding: 22px; }
  .timeline__head { flex-direction: column-reverse; gap: 10px; }
}

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skillset { padding: 28px; box-shadow: var(--shadow); }
.skillset__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.skillset__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--tone-bg, var(--blue-50)); color: var(--tone-fg, var(--blue)); }
.skillset { border-top: 3px solid var(--tone-fg, var(--blue)); border-radius: 16px; }
.skillset__count { margin-left: auto; color: var(--muted); font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.skillset__list { display: grid; }
.skill { display: grid; gap: 2px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.skill:last-child { border-bottom: 0; padding-bottom: 0; }
.skill__name { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.skill__desc { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

@media (max-width: 860px) {
  .skills { grid-template-columns: 1fr; }
  .skillset { padding: 22px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.channels { display: grid; gap: 12px; margin-top: 24px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.channel:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--text); }
.channel__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.channel__text { display: grid; min-width: 0; line-height: 1.35; }
.channel__k { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.channel__v { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.form-card { padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.form-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.form-card__sub { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.form { display: grid; gap: 12px; margin-top: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 4px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink); font-weight: 600; font-size: 0.86rem; }
label.field__label { display: block; }
.req { color: var(--red); }
.field__opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.field__count { color: var(--muted); font-weight: 400; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.field__count[data-over="true"] { color: var(--red); font-weight: 600; }
.input {
  width: 100%; min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--input-bg); color: var(--ink); line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: var(--line-hover); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14); }
textarea.input { min-height: 104px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--red); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12); }
.field__error { color: var(--red); font-size: 0.85rem; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }

.choices { border: 0; padding: 0; min-width: 0; }
.choices legend { margin-bottom: 6px; width: 100%; }
.choices__grid { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 0.82rem; font-weight: 500; color: var(--text); background: var(--surface); transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.choice:hover { border-color: var(--line-hover); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice__tick { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; background: var(--input-bg); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.choice input:checked + .choice__tick { background: var(--btn); border-color: var(--btn); color: #fff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 2px; }
.form__privacy { color: var(--muted); font-size: 0.82rem; max-width: 300px; }
.form-fallback { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-size: 0.88rem; }
.form-fallback svg { color: var(--blue); flex-shrink: 0; }
.form-fallback a { font-weight: 600; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 0.95rem; }
.alert svg { margin-top: 2px; }
.alert--success { background: var(--green-50); border-color: var(--green-line); color: var(--green-ink); }
.alert--error { background: var(--red-50); border-color: var(--red-line); color: var(--red-ink); }
.alert--warning { background: var(--amber-50); border-color: var(--amber-line); color: var(--amber-ink); margin-bottom: 20px; }
.alert strong { color: inherit; }

.faq-block { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(64px, 8vw, 96px); padding-top: clamp(48px, 6vw, 64px); border-top: 1px solid var(--line); }
.faq-block__title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.025em; }
.faq-block__head p { margin-top: 10px; color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px;
  color: var(--ink); font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq__icon { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 2px; background: var(--ink); transition: transform 0.2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon { background: var(--btn); border-color: var(--btn); }
.faq details[open] .faq__icon::before, .faq details[open] .faq__icon::after { background: #fff; }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 20px 2px; color: var(--text); }

@media (max-width: 960px) {
  .contact, .faq-block { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
}

/* ==========================================================================
   Components for the multi-page layout (Home, My Journey, My Work, Contact)
   ========================================================================== */

/* Colour tones for icon tiles (services, skills, values) */
.service--blue, .skillset--blue { --tone-bg: #e8f0ff; --tone-fg: #1d4ed8; }
.service--teal, .skillset--teal { --tone-bg: #e2f6f3; --tone-fg: #0f766e; }
.service--violet, .skillset--violet { --tone-bg: #efeaff; --tone-fg: #6d28d9; }
.service--amber, .skillset--amber { --tone-bg: #fff2dc; --tone-fg: #b45309; }
[data-theme="dark"] .service--blue, [data-theme="dark"] .skillset--blue { --tone-bg: rgba(96, 150, 250, 0.15); --tone-fg: #8ab4ff; }
[data-theme="dark"] .service--teal, [data-theme="dark"] .skillset--teal { --tone-bg: rgba(45, 212, 191, 0.13); --tone-fg: #5eead4; }
[data-theme="dark"] .service--violet, [data-theme="dark"] .skillset--violet { --tone-bg: rgba(167, 139, 250, 0.15); --tone-fg: #c4b5fd; }
[data-theme="dark"] .service--amber, [data-theme="dark"] .skillset--amber { --tone-bg: rgba(251, 191, 36, 0.13); --tone-fg: #fcd34d; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue); font-size: 0.76rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow--light { background: rgba(255, 255, 255, 0.12); color: #e0e9ff; }

/* Buttons on dark backgrounds */
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; border-radius: 10px; }
.btn--glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero .btn--glass, .page-hero .btn--glass { background: var(--hero-chip-bg); color: var(--hero-title); border-color: var(--hero-btn-line); }
.hero .btn--glass:hover, .page-hero .btn--glass:hover { background: var(--hero-glass); color: var(--hero-title); border-color: var(--hero-title); }

.btn--white { background: #fff; color: #0b1b36; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.btn--white:hover { background: #eef3ff; color: #0b1b36; }

/* ---------- Navy hero (home) and page heroes ---------- */
.hero, .page-hero { position: relative; overflow: hidden; color: var(--hero-text); background: var(--hero-base); isolation: isolate; border-bottom: 1px solid var(--hero-border); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 480px at 82% 8%, var(--hero-glow-1), transparent 62%),
    radial-gradient(620px 420px at 2% 100%, var(--hero-glow-2), transparent 60%),
    radial-gradient(520px 360px at 45% 120%, var(--hero-glow-3), transparent 60%),
    var(--hero-gradient);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero h1, .hero h2, .page-hero h1 { color: var(--hero-title); }
.hero :focus-visible, .page-hero :focus-visible { outline-color: var(--hero-title); }
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 56px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(40px, 6vw, 80px); align-items: center; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; }
.pill--dark { background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-line); color: var(--hero-chip-text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }

.hero__title { margin-top: 22px; font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.6rem); line-height: 1.03; letter-spacing: -0.045em; }
.hero__name { display: inline-block; background: var(--hero-name); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.hero__role { margin-top: 16px; color: var(--hero-accent); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; }
.hero__lead { margin-top: 18px; max-width: 580px; font-size: 1.1rem; color: var(--hero-text); }
.hero__copy .actions { margin-top: 34px; }
.hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 34px; }
.hero__loc { display: inline-flex; align-items: center; gap: 8px; color: var(--hero-muted); font-size: 0.95rem; }
.social--hero { margin-top: 0; }
.social--hero .social__link { background: var(--hero-chip-bg); border-color: var(--hero-chip-line); color: var(--hero-title); }
.social--hero .social__link:hover { background: var(--btn); border-color: var(--btn); color: #fff; }

.hero__visual { position: relative; justify-self: center; width: min(100% - 40px, 420px); }
.hero__ring {
  position: absolute; inset: -18px; z-index: 0; border-radius: 34px;
  background: conic-gradient(from 210deg, #2563eb, #14b8a6, #7c3aed, #2563eb);
  opacity: 0.55; filter: blur(28px);
}
.hero__photo { position: relative; z-index: 1; aspect-ratio: 844 / 1026; border-radius: 28px; overflow: hidden; border: 1px solid var(--hero-chip-line); box-shadow: var(--hero-photo-shadow); background: var(--media-b); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

@keyframes floaty { 50% { transform: translateY(-8px); } }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid var(--hero-chip-line); border-radius: var(--radius-lg);
  background: var(--hero-glass); box-shadow: var(--hero-glass-shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 22px 26px; }
.hero-stats > div + div { border-left: 1px solid var(--hero-divider); }
.hero-stats dd { color: var(--hero-title); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stats dt { color: var(--hero-muted); font-size: 0.9rem; }
.hero-stats--inline { display: inline-grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(160px, auto); }
.hero-stats--inline > div:nth-child(n) { border-top: 0; }
.hero-stats--inline > div + div { border-left: 1px solid var(--hero-divider) !important; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); }
.page-hero--compact { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero__title { margin-top: 20px; max-width: 820px; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); line-height: 1.08; letter-spacing: -0.04em; }
.page-hero__lead { margin-top: 16px; max-width: 680px; font-size: 1.12rem; color: var(--hero-text); }
.page-hero .actions { margin-top: 30px; }
.page-hero__photo { position: relative; aspect-ratio: 844 / 1026; border-radius: 24px; overflow: hidden; border: 1px solid var(--hero-chip-line); box-shadow: var(--hero-photo-shadow), 0 0 0 10px var(--hero-chip-bg); }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .page-meta { color: var(--hero-muted); }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--hero-muted); }
.page-hero .crumbs [aria-current] { color: var(--hero-title); }
.page-hero .crumbs a:hover { color: var(--hero-title); }
.page-hero .wrap--narrow .page-hero__title { max-width: none; }
.page-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(32px, 4vw, 48px); }
.page-tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hero-chip-line); background: var(--hero-chip-bg); color: var(--hero-chip-text); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background-color 0.15s, color 0.15s; }
.page-tabs a:hover { background: var(--hero-title); color: var(--hero-base); border-color: var(--hero-title); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(100% - 80px, 320px); justify-self: start; margin-left: 40px; }
  
  
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(3) { border-left: 0; }
  .hero-stats > div:nth-child(n + 3) { border-top: 1px solid var(--hero-divider); }
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__photo { display: none; }
}
@media (max-width: 560px) {
  .hero__visual { width: 230px; margin-left: 30px; }
  
  
  
  
  
  
  .hero__copy .actions .btn { flex: 1 1 auto; }
  .hero-stats > div { padding: 16px 18px; }
}

/* ---------- Service / value cards ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone-fg); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.service:hover::before { transform: scaleX(1); }
.service__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-fg); margin-bottom: 8px; }
.service__title { font-size: 1.15rem; }
.service p { color: var(--muted); font-size: 0.96rem; }
.service__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--tone-fg); font-weight: 600; font-size: 0.93rem; text-decoration: none; }
.service__link:hover { color: var(--tone-fg); text-decoration: underline; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- Project media ---------- */
.media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--media-a), var(--media-b)); }
.media img {
  position: absolute; inset: 0; margin: auto; max-width: 74%; max-height: 72%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(11, 27, 54, 0.14)); transition: transform 0.4s ease;
}
.media--empty::after { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); opacity: 0.35; font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; }
.media--empty img { display: none; }

/* Project and post cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard, .post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pcard:hover, .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pcard:hover .media img { transform: scale(1.06); }
.pcard:focus-within, .post-card:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.pcard__media { position: relative; border-bottom: 1px solid var(--line); }
.pcard__flag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #0b1b36; color: #fff; font-size: 0.75rem; font-weight: 600; }
.pcard__flag svg { color: #fcd34d; }
.pcard__body, .post-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.pcard__title, .post-card__title { font-size: 1.2rem; letter-spacing: -0.02em; }
.pcard__link, .post-card__link { color: inherit; text-decoration: none; }
.pcard__link::after, .post-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__link:focus-visible, .post-card__link:focus-visible { outline: none; }
.pcard__desc, .post-card__excerpt { color: var(--muted); font-size: 0.95rem; }
.pcard__more, .post-card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 0.93rem; }
.pcard__more svg, .post-card__more svg { transition: transform 0.2s; }
.pcard:hover .pcard__more svg, .post-card:hover .post-card__more svg { transform: translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 0.76rem; font-weight: 600; }
.tags__more { background: var(--bg-alt) !important; color: var(--muted) !important; }
.post-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1d4ed8, #0b1b36); display: grid; place-items: center; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { color: rgba(255, 255, 255, 0.7); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.post-card__cat { padding: 3px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 600; font-size: 0.76rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cards-2 .media { aspect-ratio: 16 / 8; }
.cards--n2 { grid-template-columns: repeat(2, 1fr); }
.cards--n1 { grid-template-columns: 1fr; }
.cards--n1 .post-card { flex-direction: row; }
.cards--n1 .post-card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 240px; }
.cards--n1 .post-card__body { padding: 32px 36px; justify-content: center; }
.cards--n1 .post-card__title { font-size: 1.5rem; }
@media (max-width: 1000px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } .cards--n1 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cards-2 { grid-template-columns: 1fr; } .cards--n1 .post-card { flex-direction: column; } .cards--n1 .post-card__media { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- About snippet (home) ---------- */
.about-snippet { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-snippet__media { position: relative; max-width: 440px; margin: 0 26px 26px 0; }
.about-snippet__media::before { content: ""; position: absolute; inset: 26px -26px -26px 26px; border-radius: 28px; background: linear-gradient(135deg, #2563eb, #0b1b36); z-index: 0; }
.about-snippet__photo { position: relative; z-index: 1; aspect-ratio: 4 / 4.6; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-snippet__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.about-snippet__badge { position: absolute; z-index: 2; left: -22px; bottom: 34px; max-width: 280px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.about-snippet__badge-k { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.about-snippet__badge-v { color: var(--ink); font-weight: 650; line-height: 1.3; }
.about-snippet__badge-s { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.traits { display: grid; gap: 14px; margin: 30px 0 32px; }
.trait { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.trait:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.trait__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.trait h3 { font-size: 1.02rem; }
.trait p { color: var(--muted); font-size: 0.93rem; margin-top: 2px; }
@media (max-width: 900px) {
  .about-snippet { grid-template-columns: 1fr; }
  .about-snippet__media { max-width: 360px; margin-left: 22px; }
}

/* ---------- My Journey: story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.story .prose { margin-top: 22px; font-size: 1.06rem; }
.facts-card { position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius-lg); color: #c9d4e6; background: linear-gradient(160deg, #0b1d3d, #081226); box-shadow: var(--shadow-lg); }
.facts-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 70%); }
.facts-card__title { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: #8fb6ff; }
.facts-card__list { display: grid; gap: 18px; margin-top: 20px; position: relative; z-index: 1; }
.facts-card__list li { display: flex; gap: 14px; align-items: flex-start; }
.facts-card__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #8fb6ff; flex-shrink: 0; }
.facts-card__k { display: block; font-size: 0.8rem; color: #93a3c0; }
.facts-card__v { display: block; color: #fff; font-weight: 600; line-height: 1.35; }
.facts-card__ne { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 1.6rem; color: #fff; position: relative; z-index: 1; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

/* ---------- My Work ---------- */
.spotlight { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.spotlight__media { display: block; }
.spotlight__media .media { height: 100%; min-height: 380px; aspect-ratio: auto; }
.spotlight:hover .media img { transform: scale(1.04); }
.spotlight__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.spotlight__body .eyebrow { margin-bottom: 0; }
.spotlight__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.035em; }
.spotlight__desc { color: var(--text); font-size: 1.05rem; }
.spotlight .actions { margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 500; font-size: 0.9rem; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.filter:hover { border-color: var(--line-hover); color: var(--ink); }
.filter.is-active { background: var(--btn); border-color: var(--btn); color: #fff; }
.filter-empty { margin-top: 24px; text-align: center; color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 920px; margin-inline: auto; }
.stack__item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 550; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.stack__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stack__mono { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2563eb, #0b1b36); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
@media (max-width: 960px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media .media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(72px, 9vw, 112px); }
.section--alt + .cta-band, .section + .cta-band { padding-top: clamp(16px, 3vw, 32px); }
.section--alt + .cta-band { padding-top: clamp(72px, 9vw, 112px); }
.cta-band__box {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center;
  padding: clamp(32px, 5vw, 60px); border-radius: 28px; color: #d6e2ff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(94, 234, 212, 0.25), transparent 60%),
    linear-gradient(120deg, #1d4ed8 0%, #1e3a8a 55%, #0b1b36 100%);
  box-shadow: 0 40px 80px -40px rgba(29, 78, 216, 0.7);
}
.cta-band__box::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.cta-band__title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); letter-spacing: -0.03em; }
.cta-band__text { margin-top: 12px; max-width: 580px; color: #d6e2ff; font-size: 1.05rem; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band :focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
  .cta-band__box { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
}

/* Contact page extras */
.contact__title { font-size: 1.5rem; letter-spacing: -0.025em; }
.contact__text { margin-top: 10px; color: var(--muted); }
.channel { position: relative; }
.channel__go { margin-left: auto; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.channel:hover .channel__go { color: var(--blue); transform: translate(2px, -2px); }
.channel--whatsapp .channel__icon { background: #e7f8ee; color: #15803d; }
[data-theme="dark"] .channel--whatsapp .channel__icon { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.section--contact { padding-top: clamp(48px, 6vw, 72px); }

/* ---------- Inner pages ---------- */

.page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.035em; line-height: 1.1; }
.page-lead { margin-top: 14px; max-width: 720px; color: var(--muted); font-size: 1.12rem; }
.page-meta { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.case-study__hero .media { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 21 / 9; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: clamp(36px, 5vw, 56px); }
.case-study__hero .media { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.case__main { display: grid; gap: 40px; }
.case__section + .case__section { padding-top: 40px; border-top: 1px solid var(--line); }
.case__h { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; letter-spacing: -0.025em; margin-bottom: 14px; }
.case__icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.case__main .prose { font-size: 1.04rem; }
.steps { counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); }
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--icon-solid); color: #fff; font-size: 0.85rem; font-weight: 700;
}
.case__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.summary { padding: 24px; box-shadow: var(--shadow); }
.summary__title { font-size: 1.05rem; margin-bottom: 6px; }
.summary--cta { background: var(--navy); border-color: var(--navy); color: #c9d3e5; }
.summary--cta .summary__title { color: #fff; }
.summary--cta p { margin-bottom: 18px; font-size: 0.95rem; }
.case-nav { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.case-nav__next { display: grid; text-align: right; text-decoration: none; }
.case-nav__k { color: var(--muted); font-size: 0.85rem; }
.case-nav__v { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; }
.case-nav__next:hover .case-nav__v { color: var(--blue); }
.case-study + * { margin-top: 0; }
.section--case { padding-top: clamp(36px, 5vw, 56px); }

@media (max-width: 960px) {
  .case { grid-template-columns: 1fr; }
  .case__aside { position: static; }
  .case-study__hero .media { aspect-ratio: 16 / 9; }
}

/* Blog */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current] { background: var(--btn); color: #fff; border-color: var(--btn); }
.section--article { padding-top: clamp(40px, 6vw, 64px); }
.article { max-width: 820px; margin-inline: auto; }
.article__head { margin-bottom: 28px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.article__body { padding: clamp(24px, 4vw, 44px); font-size: 1.05rem; }
.article .actions { margin-top: 28px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Error page */
.error-page { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.error-page .page-lead { margin-inline: auto; }
.error-page .actions { justify-content: center; margin-top: 28px; }
.error-page__code { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 700; letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9c5da; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 0.9fr; gap: 40px; }
.footer__about { margin-top: 18px; max-width: 340px; font-size: 0.95rem; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social__link { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); transition: background-color 0.15s, border-color 0.15s; }
.social__link:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.footer__h { color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer__list { display: grid; gap: 10px; font-size: 0.95rem; }
.footer__list a { color: #d7deeb; text-decoration: none; overflow-wrap: anywhere; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; }
.footer__top { color: #d7deeb; text-decoration: none; }
.footer__top:hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { outline-color: #fff; }

@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .menu-btn, .form-card, .faq-block, .hero__visual::before, .hero__visual::after { display: none !important; }
  body { color: #000; }
  .section, .hero { padding: 24px 0; background: none; border: 0; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* No transitions while switching between light and dark */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }
