/* ================= TOKENS ================= */
:root {
  /* brand colours (Wazid Hussain brand kit) */
  --red: #EF1836;
  --red-dark: #C8102B;
  --red-soft: #FDE8EB;
  --ink: #131922;
  --text: #2b2b31;
  --muted: #6b6b76;
  --line: #ececef;
  --bg: #ffffff;
  --panel: #fafafa;
  /* surfaces & neutrals — redefined for dark mode below */
  --dark: #131922;          /* dark bands (CTA, "Let's talk", mobile menu) in both modes */
  --surface: #ffffff;       /* cards, sidebar, bars, inputs */
  --surface-2: #f4f4f5;     /* tabs, tags */
  --panel-top: #fbfbfb;
  --track: #f1f1f3;         /* skill ring / bar tracks */
  --soft-line: #e4e4e7;
  --subtle: #55555f;
  --faint: #a1a1aa;
  --dot: #d4d4d8;
  --pink-line: #f3b3b9;
  --logo-muted: #b4b4bb;
  --tag-text: #52525b;
  --mock-a: #f4f4f5;
  --mock-b: #e9e9ec;
  --header-bg: rgba(255,255,255,.92);
  --side: 210px;
  --bottom: 58px;
  --right: 70px;
  --ease: cubic-bezier(.77, 0, .18, 1);
  color-scheme: light;
}

/* ================= DARK MODE ================= */
html[data-theme="dark"] {
  --ink: #f1f3f7;
  --text: #c3c9d4;
  --muted: #8d96a5;
  --line: #232c3a;
  --bg: #0e131b;
  --panel: #151b25;
  --red-soft: rgba(239, 24, 54, .14);
  --dark: #161e2b;
  --surface: #151c27;
  --surface-2: #1d2532;
  --panel-top: #111722;
  --track: #232c3a;
  --soft-line: #2c3646;
  --subtle: #aab2c0;
  --faint: #6b7483;
  --dot: #3a4453;
  --pink-line: rgba(239, 24, 54, .45);
  --logo-muted: #4b5566;
  --tag-text: #c3c9d4;
  --mock-a: #1a2230;
  --mock-b: #111722;
  --header-bg: rgba(14, 19, 27, .9);
  color-scheme: dark;
}
/* the hero banner has a white background: show it as a soft light card instead of blending */
html[data-theme="dark"] .hero-banner { mix-blend-mode: normal; border-radius: 24px; }
html[data-theme="dark"] .wordmark { mix-blend-mode: normal; background: #fff; border-radius: 8px; padding: 4px 8px; }
html[data-theme="dark"] .intro-band, html[data-theme="dark"] .side-cta { border: 1px solid #253043; }
html[data-theme="dark"] .t-initial { color: #ff5a70; }
/* smooth switch between modes (not on first paint) */
html.wh-mode-anim, html.wh-mode-anim *, html.wh-mode-anim *::before { transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.77, 0, .18, 1) !important; }

/* ================= LIGHT / DARK SWITCH ================= */
.theme-switch {
  position: relative; flex-shrink: 0; width: 58px; height: 30px; border-radius: 999px; padding: 0 7px;
  border: 1px solid var(--line); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: space-between;
}
.theme-switch svg { position: relative; z-index: 1; width: 14px; height: 14px; color: var(--faint); transition: color .3s; }
.theme-switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); box-shadow: 0 4px 10px -4px var(--red); transition: transform .35s var(--ease);
}
.theme-switch .tt-sun { color: #fff; }
html[data-theme="dark"] .theme-switch::before { transform: translateX(28px); }
html[data-theme="dark"] .theme-switch .tt-sun { color: var(--faint); }
html[data-theme="dark"] .theme-switch .tt-moon { color: #fff; }
.side-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.topbar-switch { display: none; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Poppins", system-ui, sans-serif; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
/* The one-page home is a fixed, full-screen stage; other pages scroll normally. */
html:has(body.wh-onepage), body.wh-onepage { height: 100%; }
body.wh-onepage { overflow: hidden; }

/* WordPress helpers */
.screen-reader-text {
  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:focus {
  clip: auto; width: auto; height: auto; margin: 0; z-index: 100000; top: 8px; left: 8px;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
/* illustrations define their own fills/strokes */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; }
.red { color: var(--red); }
.muted { color: var(--muted); }

/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50; background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 0 22px;
}
/* Logo + two-line "WordPress / Developer" lockup, text centred beside the logo */
.brand { display: flex; align-items: stretch; gap: 12px; height: 52px; margin-left: 22px; }
.brand img { width: 52px; height: 52px; flex-shrink: 0; filter: drop-shadow(0 8px 12px rgba(239, 24, 54, .3)); transition: transform .25s; }
.brand:hover img { transform: translateY(-2px); }
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; font: 700 19px/1.05 "Poppins", sans-serif; letter-spacing: -0.02em; }
.brand-text b { font-weight: 700; color: var(--ink); }
.brand-text b + b { color: var(--red); }
.menu-toggle { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.side-nav a {
  display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 24px; font-size: .86rem; font-weight: 500;
  color: var(--subtle); position: relative; transition: color .25s, background .25s;
}
.side-nav a svg { width: 16px; height: 16px; }
.side-nav a:hover { color: var(--red); }
.side-nav a.active { color: var(--red); background: linear-gradient(90deg, var(--red-soft), transparent); font-weight: 600; }
.side-nav a.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--red); }
/* Sidebar footer: CTA card, social row, copyright */
.side-foot { margin-top: auto; padding: 0 22px; display: flex; flex-direction: column; gap: 16px; }
.side-cta {
  display: block; background: var(--dark); color: #fff; border-radius: 10px; padding: 14px 16px; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.side-cta::after { content: ""; position: absolute; right: -22px; top: -22px; width: 70px; height: 70px; border-radius: 50%; border: 12px solid rgba(239, 24, 54, .35); }
.side-cta small { display: block; font-size: .68rem; color: #aab0bb; margin-bottom: 2px; }
.side-cta b { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; }
.side-cta b svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--red); transition: transform .25s; }
.side-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(19, 25, 34, .6); }
.side-cta:hover b svg { transform: translateX(3px); }

/* Social icon squares — shared by the sidebar and the Contact page */
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink); background: var(--surface); transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.socials svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.side-social { justify-content: space-between; }
.side-copy { font-size: .68rem; color: var(--muted); line-height: 1.5; }

/* On short screens drop the CTA card so nothing overlaps */
@media (max-height: 700px) and (min-width: 901px) {
  .side-cta { display: none; }
  .side-nav { margin-top: 28px; }
}

/* ================= FIXED EXTRAS ================= */
.avail {
  position: fixed; top: 18px; right: 22px; z-index: 40; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .72rem; font-weight: 500;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,.2);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

.indicator {
  position: fixed; right: 0; top: 0; bottom: var(--bottom); width: var(--right); z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; pointer-events: none;
}
.ind-num { font-weight: 700; color: var(--red); font-size: .9rem; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.ind-dots { display: flex; flex-direction: column; gap: 9px; pointer-events: auto; }
.ind-dots button { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); transition: .3s; }
.ind-dots button.active { background: var(--red); transform: scale(1.5); }
.indicator > svg { color: var(--faint); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* Bottom bar: previous page · journey progress · next page */
.bottom-bar {
  position: fixed; left: var(--side); right: 0; bottom: 0; height: var(--bottom); z-index: 45; background: var(--surface);
  border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 0 calc(var(--right) + 40px) 0 70px;
}
.bb-step { display: flex; align-items: center; gap: 12px; min-width: 150px; text-align: left; transition: color .2s, opacity .3s; }
.bb-next { justify-content: flex-end; text-align: right; }
.bb-step.hidden { opacity: 0; pointer-events: none; }
.bb-step small { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.bb-step b { font-size: .85rem; font-weight: 600; color: var(--ink); transition: color .2s; }
.bb-step svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; border: 1px solid var(--pink-line); color: var(--red); transition: .25s; }
.bb-step:hover b { color: var(--red); }
.bb-step:hover svg { background: var(--red); color: #fff; border-color: var(--red); }
.bb-prev:hover svg { transform: translateX(-3px); }
.bb-next:hover svg { transform: translateX(3px); }
.bb-progress { flex: 1; max-width: 680px; display: flex; gap: 6px; }
.bb-seg { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 8px 0; }
/* --p (0–100%) is set from JS: how far through that page you've scrolled */
.bb-seg i {
  display: block; height: 3px; border-radius: 3px;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 0 / var(--p, 0%) 100%, var(--line);
  transition: background-size .25s ease;
}
.bb-seg span { font-size: .66rem; font-weight: 500; color: var(--faint); text-align: left; transition: color .2s; white-space: nowrap; }
.bb-seg:hover span { color: var(--ink); }
.bb-seg.done span { color: #6b6b76; }
.bb-seg.active span { color: var(--red); font-weight: 600; }

/* ================= STAGE / HORIZONTAL TRACK ================= */
.stage { position: fixed; top: 0; left: var(--side); right: 0; bottom: var(--bottom); overflow: hidden; }
.track { display: flex; width: 100%; height: 100%; transition: transform 1s var(--ease); will-change: transform; }
.panel { flex: 0 0 100%; height: 100%; position: relative; background: linear-gradient(180deg, var(--panel-top), var(--bg) 60%); }
.panel-scroll {
  height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 70px calc(var(--right) + 40px) 70px 70px;
}
.panel-scroll::-webkit-scrollbar { display: none; }

/* entrance animation when a panel becomes active */
.panel .panel-scroll > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.panel.in .panel-scroll > * { opacity: 1; transform: none; }
.panel.in .panel-scroll > *:nth-child(2) { transition-delay: .1s; }
.panel.in .panel-scroll > *:nth-child(3) { transition-delay: .2s; }
.panel.in .panel-scroll > *:nth-child(4) { transition-delay: .3s; }
.panel.in .panel-scroll > *:nth-child(n+5) { transition-delay: .4s; }

/* ================= SHARED ================= */
.eyebrow {
  display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 22px; }
.subtitle { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.script { font-family: "Caveat", cursive; color: var(--subtle); font-size: 1.6rem; line-height: 1.1; transform: rotate(-8deg); }
.block { margin-top: 90px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; font-size: .85rem; font-weight: 600;
  border-radius: 4px; transition: .25s; border: 1.5px solid transparent;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 24px -12px var(--red); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn.full { width: 100%; justify-content: center; }
.link-red { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: .8rem; font-weight: 600; }
.link-red svg { width: 14px; height: 14px; transition: transform .2s; }
.link-red:hover svg { transform: translateX(4px); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col.align-start { align-items: start; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; }
.head-row .title { margin-bottom: 0; }
.head-note { font-size: .8rem; color: var(--muted); text-align: right; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; transition: .3s; }
.mini:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.2); }
.mini h4 { font-size: 1rem; margin-bottom: 6px; }
.mini p { font-size: .85rem; color: var(--muted); }
.mini-red { background: var(--red); border-color: var(--red); }
.mini-red h4, .mini-red p { color: #fff; }
.numbered b { display: block; color: var(--red); font-size: .85rem; margin-bottom: 10px; }
.next-hint { margin-top: 70px; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.next-hint svg { color: var(--red); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ================= 01 HOME ================= */
/* text column grows with the screen but is capped, so the image stays close to the text on wide monitors */
.hero { display: grid; grid-template-columns: minmax(0, clamp(380px, 30vw, 520px)) minmax(0, 1fr); gap: 40px; align-items: center; min-height: calc(100vh - var(--bottom) - 250px); }
.kicker { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.rdot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero-name { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: .005em; }
.hero-name span { display: block; }
.hero-role { font-size: 1.15rem; font-weight: 500; color: var(--ink); margin: 18px 0 14px; }
.hero-desc { max-width: 430px; font-size: .9rem; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 14px 20px; margin-top: 34px; flex-wrap: wrap; }
.play { display: flex; align-items: center; gap: 12px; text-align: left; font-size: .78rem; line-height: 1.3; color: var(--ink); }
.play small { color: var(--muted); }
.play span {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--red);
  box-shadow: 0 8px 22px -8px rgba(239,24,54,.45); transition: transform .25s;
}
.play span svg { color: var(--red); width: 18px; height: 18px; transition: transform .25s; }
.play:hover span svg { transform: translateY(2px); }
.play:hover span { transform: scale(1.1); }
.hero-visual { position: relative; }
.desk { width: 100%; height: auto; max-height: 62vh; }
/* Banner image has a white background; multiply blends it into the panel */
.hero-banner {
  /* crop the empty space under the desk; stay inside the column and cap the size on wide screens */
  width: 100%; max-width: 900px; height: auto; aspect-ratio: 1536 / 900; object-fit: cover; object-position: 50% 30%;
  mix-blend-mode: multiply;
  /* soften the image edges so there's no visible box */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 48%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 48%, #000 70%, transparent 100%);
}
.s-hero { position: absolute; left: 4%; top: 2%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 20px; padding: 30px 0 0; border-top: 1px solid var(--line); margin-top: 30px; align-items: center; }
.stats strong { display: block; font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.stats small { font-size: .78rem; color: var(--muted); }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.scroll-hint small { font-family: "Caveat"; font-size: .9rem; line-height: 1; }
.mouse { width: 20px; height: 32px; border: 2px solid var(--ink); border-radius: 12px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; background: var(--red); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 60% { transform: translateY(8px); opacity: 0; } }

.logo-row { display: flex; flex-wrap: wrap; gap: 14px 42px; }
.logo-row span { font-size: 1.2rem; font-weight: 700; color: var(--logo-muted); transition: color .2s; }
.logo-row span:hover { color: var(--red); }
/* Home CTA: text + buttons on the left, workspace image on the right */
.intro-band {
  background: var(--dark); color: #c4c9d2; padding: 54px; border-radius: 10px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center;
}
.intro-band::after { content: ""; position: absolute; left: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(239,24,54,.14); }
.cta-text { position: relative; z-index: 1; }
.intro-band h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
.intro-band p { font-size: .92rem; margin-bottom: 28px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.intro-band .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.intro-band .btn-outline:hover { background: #fff; color: var(--dark); }
/* soft light behind the image so the dark laptop and mug stand out from the dark band */
.cta-visual { position: relative; margin: -34px -44px -40px 0; }
.cta-visual::before {
  content: ""; position: absolute; inset: 4% 6%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(239,24,54,.10) 55%, transparent 100%);
}
.cta-visual img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); transition: transform .5s ease; }
.intro-band:hover .cta-visual img { transform: translateY(-6px) rotate(-.5deg); }

/* ================= 02 ABOUT ================= */
.ticks { list-style: none; display: grid; gap: 12px; margin: 24px 0 30px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.ticks svg { color: var(--red); width: 16px; height: 16px; }
.about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.portrait-wrap { position: relative; }
/* full illustration (transparent background, has its own red swirl) — slightly larger than its column */
.about-art { width: 110%; max-width: none; height: auto; margin: -10px -5% 0; }
/* note and badge sit in the illustration's empty corners */
.s-about { position: absolute; left: -2%; top: -18px; font-size: 1.4rem; z-index: 1; }
.exp-card { position: absolute; right: 0; bottom: -6px; z-index: 1; background: var(--surface); padding: 18px 22px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); border-radius: 8px; border-left: 4px solid var(--red); }
.exp-card strong { display: block; font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1; }
.exp-card small { font-size: .75rem; color: var(--muted); }
.quote-band { border-left: 4px solid var(--red); padding: 10px 0 10px 30px; max-width: 820px; }

/* ================= 03 SERVICES ================= */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); padding: 26px 22px 60px; position: relative; transition: .3s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.25); border-color: transparent; }
.svc-ic {
  width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; background: var(--ic); color: #fff; margin-bottom: 18px;
  font-size: .78rem; font-weight: 800;
}
.svc-ic svg { width: 22px; height: 22px; }
.svc h4 { font-size: .95rem; margin-bottom: 8px; }
.svc p { font-size: .8rem; color: var(--muted); }
.svc-go {
  position: absolute; right: 18px; bottom: 18px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--pink-line);
  color: var(--red); display: grid; place-items: center; transition: .25s;
}
.svc-go svg { width: 13px; height: 13px; }
.svc:hover .svc-go { background: var(--red); color: #fff; border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; font-size: .82rem; font-weight: 500; border-radius: 999px; transition: .2s; }
.chips span:hover { border-color: var(--red); color: var(--red); }

/* ================= 04 SKILLS ================= */
.skills-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: start; margin-top: 20px; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 20px; }
.ring { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ring svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--track); stroke-width: 5; }
.ring .arc { stroke: var(--red); stroke-dasharray: 213.6; stroke-dashoffset: 213.6; transition: stroke-dashoffset 1.6s var(--ease); }
.ring b { position: absolute; top: 42px; font-size: 1.05rem; color: var(--ink); }
.ring span { font-size: .85rem; font-weight: 600; color: var(--ink); }
.bars h4 { font-size: .95rem; margin-bottom: 18px; }
.bar { margin-bottom: 22px; }
.bar span { font-size: .78rem; color: var(--text); display: block; margin-bottom: 8px; }
.bar i { display: block; height: 3px; background: var(--track); position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--red); transition: width 1.4s var(--ease); }
.toolkit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.toolkit div { background: var(--surface); padding: 24px; }
.toolkit h4 { font-size: .9rem; margin-bottom: 6px; }
.toolkit p { font-size: .8rem; color: var(--muted); }

/* ================= 05 PORTFOLIO ================= */
.project { background: var(--surface); border: 1px solid var(--line); }
.devices {
  position: relative; background: linear-gradient(135deg, var(--mock-a), var(--mock-b)); height: 360px; display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: 36px; overflow: hidden; transition: opacity .4s;
}
.devices.fade { opacity: 0; }
.laptop { width: min(520px, 70%); }
.laptop .screen { background: #111; border-radius: 10px 10px 0 0; padding: 10px; aspect-ratio: 16 / 10; }
.laptop .base { height: 14px; background: linear-gradient(#d4d4d8, #a1a1aa); border-radius: 0 0 14px 14px; margin: 0 -7%; }
.site { width: 100%; height: 100%; background: #fff; border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.m-nav { height: 10%; flex-shrink: 0; display: flex; align-items: center; gap: 6%; padding: 0 5%; border-bottom: 1px solid #eee; }
.m-nav i { height: 4px; width: 8%; background: #e4e4e7; border-radius: 2px; }
.m-nav i:first-child { width: 16%; background: var(--c1); }
.m-hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 6%; gap: 6%; background: linear-gradient(120deg, #fff, var(--c3)); }
.m-hero strong { display: block; font-size: clamp(.7rem, 1.3vw, 1.05rem); color: var(--c1); line-height: 1.15; }
.m-hero small { font-size: .5rem; color: #71717a; display: block; margin-top: 4px; }
.m-hero em { display: inline-block; margin-top: 8px; font-style: normal; font-size: .45rem; color: #fff; background: var(--c1); padding: 3px 8px; border-radius: 2px; }
.m-art { height: 70%; border-radius: 6px; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.m-art::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 60%; background: rgba(255,255,255,.25); border-radius: 40% 40% 0 0; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 4% 6%; height: 26%; flex-shrink: 0; }
.m-cards i { background: #f4f4f5; border-radius: 3px; }
.phone { position: absolute; right: calc(50% - min(260px, 35%) - 10px); bottom: 30px; width: 88px; height: 170px; background: #111; border-radius: 14px; padding: 6px; box-shadow: -12px 20px 30px -16px rgba(0,0,0,.4); }
.site.small { border-radius: 9px; }
.site.small .m-hero { grid-template-columns: 1fr; padding-top: 10%; }
.site.small .m-hero strong { font-size: .55rem; }
.site.small .m-cards { grid-template-columns: 1fr 1fr; }
.proj-info { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px 10px; }
.proj-info h3 { font-size: 1.4rem; }
.proj-info .muted { font-size: .82rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-size: .7rem; background: var(--surface-2); padding: 4px 10px; border-radius: 3px; color: var(--tag-text); }
.proj-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 30px 26px; }
/* autoplay timer bar — JS moves to the next project on animationend */
.proj-timer { flex: 1; max-width: 220px; height: 2px; background: var(--line); margin-right: auto; overflow: hidden; }
.proj-timer i { display: block; height: 100%; width: 0; background: var(--red); }
.proj-timer i.run { animation: projTimer 5s linear forwards; }
.project:hover .proj-timer i, .project:focus-within .proj-timer i,
.project.paused .proj-timer i, .project.hidden-tab .proj-timer i { animation-play-state: paused; }
@keyframes projTimer { to { width: 100%; } }
.counter { font-size: .85rem; color: var(--muted); }
.counter b { color: var(--ink); }
.proj-nav div { display: flex; gap: 10px; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--pink-line); color: var(--red); display: grid; place-items: center; transition: .2s; }
.round.solid, .round:hover { background: var(--red); color: #fff; border-color: var(--red); }
.small-head { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.built { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.built li { display: flex; gap: 10px; font-size: .86rem; }
.built li::before { content: ""; width: 6px; height: 6px; background: var(--red); margin-top: 8px; flex-shrink: 0; }
.tcard { background: var(--surface); border: 1px solid var(--line); padding: 26px; }
.stars { color: var(--red); letter-spacing: 3px; margin-bottom: 12px; }
.tcard blockquote { font-size: .9rem; color: var(--text); margin-bottom: 18px; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; }
.tcard b { display: block; font-size: .88rem; color: var(--ink); }
.tcard small { font-size: .75rem; color: var(--muted); }
.t-photo, .t-initial { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.t-initial { display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 700; }
/* Project screenshot: a browser window filling the whole block. Hovering slowly scrolls through the page. */
.shot { display: none; }
/* height follows the window height so the project name and buttons stay on screen */
.devices.has-shot { height: clamp(240px, 42vh, 420px); padding: 0; display: block; background: var(--surface-2); }
.devices.has-shot .laptop, .devices.has-shot .phone { display: none; }
.devices.has-shot .shot { position: absolute; inset: 0; display: flex; flex-direction: column; }
.shot-bar {
  flex-shrink: 0; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; }
.shot-bar i:nth-child(3) { background: #28c840; }
.shot-url {
  margin-left: 14px; flex: 0 1 360px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px;
}
.shot-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.shot-view img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: object-position 1.2s ease;
}
.project:hover .shot-view img, .project:focus-within .shot-view img { object-position: center bottom; transition: object-position 9s linear; }
.shot-hint {
  position: absolute; right: 16px; bottom: 16px; background: rgba(19, 25, 34, .78); color: #fff; font-size: .7rem; font-weight: 500;
  padding: 5px 12px; border-radius: 999px; pointer-events: none; transition: opacity .3s;
}
.project:hover .shot-hint { opacity: 0; }
@media (hover: none) { .shot-hint { display: none; } }
@media (max-width: 560px) { .devices.has-shot { height: auto; aspect-ratio: 4 / 3; } .shot-bar { height: 30px; } }
.project.single .proj-info { padding-bottom: 26px; }

/* ================= 06 EXPERIENCE ================= */
.exp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 50px; align-items: center; }
.tabs { display: inline-flex; background: var(--surface-2); padding: 4px; margin-bottom: 30px; }
.tabs button { padding: 8px 26px; font-size: .78rem; font-weight: 600; color: var(--muted); transition: .2s; }
.tabs button.active { background: var(--red); color: #fff; }
.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--pink-line); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 4px solid var(--red); }
.timeline b { font-size: .8rem; color: var(--ink); }
.timeline h4 { font-size: .98rem; margin: 2px 0; color: var(--red); font-weight: 600; }
.timeline p { font-size: .8rem; color: var(--muted); }
/* career-path illustration (transparent background) beside the timeline */
.journey-visual { position: relative; }
.journey-visual img { width: 112%; max-width: none; height: auto; margin: -30px -6% -20px; }
.s-journey { position: absolute; left: 0; top: -6px; font-size: 1.35rem; z-index: 1; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 30px; border-top: 2px solid var(--line); }
.process div { padding: 26px 20px 0 0; position: relative; }
.process div::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.process b { font-size: 1.6rem; color: var(--soft-line); font-weight: 700; }
.process h4 { font-size: .95rem; margin: 6px 0; }
.process p { font-size: .8rem; color: var(--muted); }

/* ================= 07 CONTACT ================= */
/* wide screens: details · form · illustration; narrower: illustration moves to its own row (see media queries) */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: center;
  grid-template-areas: "info form art";
}
.c-info { grid-area: info; }
.c-form { grid-area: form; }
.contact-art { grid-area: art; position: relative; }
.contact-art img { width: 110%; max-width: none; height: auto; margin-left: -5%; }
.c-list { list-style: none; display: grid; gap: 16px; margin: 28px 0; font-size: .85rem; }
.c-list li { display: flex; align-items: center; gap: 14px; }
.c-list svg { color: var(--red); }
.c-list a:hover { color: var(--red); }
.c-social a { width: 40px; height: 40px; }
.c-social svg { width: 16px; height: 16px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .85rem; padding: 13px 16px; border: 1px solid var(--soft-line); background: var(--surface); color: var(--ink);
  border-radius: 2px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,24,54,.12); }
textarea { resize: vertical; }
.c-form { display: grid; gap: 14px; }
.form-note { font-size: .82rem; color: #16a34a; min-height: 1em; }
.form-note.is-error { color: var(--red); }
.c-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
.s-contact { position: absolute; right: -4%; bottom: -34px; font-size: 1.3rem; }
.panel-foot { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 30px; }
/* the wordmark PNG has empty space on the right; crop it to just the logo + name */
.wordmark { width: 230px; height: auto; aspect-ratio: 1130 / 360; object-fit: cover; object-position: left center; flex-shrink: 0; mix-blend-mode: multiply; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ================= SMALL LAPTOP / TABLET LANDSCAPE: stack the hero so the image stays a useful size ================= */
@media (min-width: 901px) and (max-width: 1150px) {
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { max-width: 560px; }
  .intro-band { grid-template-columns: 1fr; }
  .cta-visual { margin: 0 -20px -30px; max-width: 600px; }
  .about-intro, .exp-layout { grid-template-columns: 1fr; }
  .portrait-wrap, .journey-visual { max-width: 620px; }
}

/* ================= LAPTOP-SIZE TWEAKS ================= */
@media (max-width: 1280px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; grid-template-areas: "info form" "art art"; align-items: start; }
  .contact-art { justify-self: center; width: min(560px, 100%); margin-top: 10px; }
  .contact-art img { width: 100%; margin: 0; }
  .s-contact { right: -12%; bottom: 10%; }
  .bottom-bar { gap: 24px; padding-left: 40px; }
  .bb-step { min-width: 0; }
  .bb-seg span { display: none; }
}

/* ================= MOBILE OFF-CANVAS MENU (shown only ≤900px) ================= */
.mm { display: none; }
@media (max-width: 900px) {
  body.menu-open { overflow: hidden; }
  .mm {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100; overflow-y: auto; overflow-x: hidden;
    background: var(--dark); color: #fff; padding: 0 20px calc(24px + env(safe-area-inset-bottom));
    transform: translateX(100%); visibility: hidden;
    transition: transform .55s var(--ease), visibility 0s linear .55s;
  }
  .mm.open { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
  /* decorative brand ring */
  .mm::before {
    content: ""; position: absolute; right: -150px; top: -130px; width: 340px; height: 340px; border-radius: 50%;
    border: 60px solid rgba(239, 24, 54, .12); pointer-events: none;
  }
  .mm-head { position: relative; flex-shrink: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mm .brand { height: 42px; margin: 0; gap: 10px; }
  .mm .brand img { width: 42px; height: 42px; }
  .mm .brand-text { font-size: 15px; }
  .mm .brand-text b:first-child { color: #fff; }
  .mm-close {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff;
    display: grid; place-items: center; transition: background .25s, border-color .25s, transform .35s var(--ease);
  }
  .mm-close svg { width: 20px; height: 20px; }
  .mm-close:hover, .mm-close:focus-visible { background: var(--red); border-color: var(--red); transform: rotate(90deg); }

  /* big numbered links, staggered in when the menu opens */
  .mm-nav { position: relative; display: flex; flex-direction: column; margin: 22px 0 auto; }
  .mm-nav a {
    display: flex; align-items: baseline; gap: 16px; padding: 11px 0; color: #fff;
    font: 600 clamp(1.5rem, min(7.5vw, 5.4vh), 2.6rem)/1.15 "Poppins", sans-serif; letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255,255,255,.06);
    opacity: 0; transform: translateX(40px); transition: opacity .35s ease, transform .5s var(--ease), color .2s;
  }
  .mm.open .mm-nav a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .05s), calc(.18s + var(--i) * .05s), 0s; }
  .mm-nav a span { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,.4); min-width: 22px; transition: color .2s; }
  .mm-nav a:hover, .mm-nav a:focus-visible, .mm-nav a.active { color: var(--red); }
  .mm-nav a.active span { color: var(--red); }
  .mm-nav a.active::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: auto; align-self: center; }

  .mm-foot { position: relative; display: grid; gap: 16px; padding-top: 26px; opacity: 0; transition: opacity .35s ease; }
  .mm.open .mm-foot { opacity: 1; transition-delay: .5s; }
  .mm-foot .btn { justify-content: center; }
  .mm-mail { color: #c4c9d2; font-size: .95rem; text-align: center; }
  .mm-mail:hover { color: #fff; }
  .mm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .mm .socials a { background: transparent; border-color: rgba(255,255,255,.18); color: #fff; }
  .mm .socials a:hover { background: var(--red); border-color: var(--red); }
  .mm-avail { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #c4c9d2; }
}

/* ================= TABLET / MOBILE: normal vertical page ================= */
@media (max-width: 900px) {
  body.wh-onepage { overflow: auto; }
  body.wh-onepage.menu-open { overflow: hidden; }
  .sidebar { inset: 0 0 auto 0; width: 100%; height: 64px; flex-direction: row; align-items: center; padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { height: 42px; margin: 0; gap: 10px; }
  .brand img { width: 42px; height: 42px; }
  .brand-text { font-size: 15px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 10px; }
  .topbar-switch { display: inline-flex; margin-left: auto; }
  .topbar-switch + .menu-toggle { margin-left: 6px; }
  .menu-toggle span { width: 22px; height: 2px; background: var(--ink); }
  .side-nav { display: none; }   /* replaced by the off-canvas menu below */
  .side-foot, .indicator, .bottom-bar { display: none; }
  .avail { top: auto; bottom: 16px; right: 16px; }
  .stage { position: static; }
  .track { display: block; transform: none !important; }
  .panel { height: auto; }
  .panel-scroll { height: auto; overflow: visible; padding: 90px 16px 60px; }
  .panel .panel-scroll > * { opacity: 1; transform: none; }
  .next-hint { display: none; }
  .hero, .two-col, .skills-layout, .exp-layout, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .scroll-hint { display: none; }
  .services, .grid-3 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 20px; border-top: 0; }
  .process div::before { display: none; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .head-note { text-align: left; }
  .block { margin-top: 64px; }
  .intro-band { padding: 32px 24px; grid-template-columns: 1fr; }
  .cta-visual { margin: 0 -10px -10px; }
  .panel-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .about-art, .journey-visual img { width: 100%; margin: 0; }
  .s-journey { font-size: 1.1rem; }
  .s-about { top: -24px; font-size: 1.2rem; }
  .exp-card { padding: 8px 12px; bottom: -18px; }
  .exp-card strong { font-size: 1.3rem; }
  .exp-card small { font-size: .65rem; }
  .contact { grid-template-areas: "info" "form" "art"; }
  .s-contact { right: 0; bottom: -18px; font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .services, .grid-3, .rings, .built, .process { grid-template-columns: 1fr; }
  .rings { grid-template-columns: 1fr 1fr; }
  .devices { height: 240px; }
  .phone { display: none; }
  .laptop { width: 88%; }
  .proj-info { flex-direction: column; align-items: flex-start; }
}

/* ================= WORDPRESS ADMIN BAR (logged-in users) =================
   The theme turns off WordPress's html margin and offsets its fixed parts instead. */
body { --wpab: 0px; }
body.admin-bar { --wpab: 32px; }
@media (max-width: 782px) { body.admin-bar { --wpab: 46px; } }
.admin-bar .sidebar, .admin-bar .stage, .admin-bar .indicator, .admin-bar .mm { top: var(--wpab); }
.admin-bar .avail { top: calc(18px + var(--wpab)); }
@media (max-width: 900px) {
  .admin-bar .avail { top: auto; }
  .admin-bar .panel-scroll { padding-top: calc(90px + var(--wpab)); }
}

/* ================= INNER PAGES (project pages, pages, posts, 404) ================= */
.inner-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.inner-wrap.narrow { max-width: 820px; }
.inner-wrap.center { text-align: center; }
.inner-header {
  position: sticky; top: var(--wpab); z-index: 50; background: var(--header-bg);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.inner-header .inner-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.inner-header .brand { margin: 0; height: 44px; }
.inner-header .brand img { width: 44px; height: 44px; }
.inner-header .brand-text { font-size: 16px; }
.inner-actions { display: inline-flex; align-items: center; gap: 18px; }
.inner-back { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink); transition: color .2s; }
.inner-back:hover { color: var(--red); }
.inner-main { padding: 70px 0 100px; min-height: 60vh; }
.inner-head { margin-bottom: 28px; }
.inner-head .title { margin-bottom: 10px; }
.lead-sub { font-size: 1.1rem; }
.entry-image img { width: 100%; height: auto; border-radius: 12px; margin: 6px 0 30px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); }
.entry .tags { margin: 0 0 26px; }
.entry-content { font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content img { height: auto; border-radius: 8px; }
.entry-content blockquote { border-left: 4px solid var(--red); padding-left: 20px; color: var(--ink); font-style: italic; }
.entry .small-head { margin-top: 44px; }
.entry-cta { margin-top: 44px; }
.post-list { display: grid; gap: 40px; }
.post-card { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.post-card:not(:has(.post-thumb)) { grid-template-columns: 1fr; }
.post-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.post-card h2 { font-size: 1.4rem; margin: 4px 0 10px; }
.post-card h2 a:hover { color: var(--red); }
.post-card p { color: var(--muted); margin-bottom: 12px; }
.post-date { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: .88rem; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--red); border-color: var(--red); color: #fff; }
.big-404 { font-family: "Anton", Impact, sans-serif; font-size: clamp(6rem, 18vw, 10rem); line-height: 1; color: var(--red); }
.inner-wrap.center .btn { margin-top: 26px; }
.comments { margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; display: grid; gap: 20px; margin-bottom: 30px; }
.comment-list .children { list-style: none; padding-left: 24px; margin-top: 16px; }
.comment-body { background: var(--panel); border-radius: 8px; padding: 16px 18px; font-size: .92rem; }
.comment-form { display: grid; gap: 14px; }
.comment-form .submit { background: var(--red); color: #fff; border: 0; padding: 13px 24px; border-radius: 4px; font: 600 .85rem "Poppins", sans-serif; cursor: pointer; }
.inner-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.inner-footer .inner-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
  .inner-back { font-size: 0; gap: 0; }
  .inner-back svg { width: 22px; height: 22px; }
  .inner-main { padding: 44px 0 70px; }
}
