/* Self-hosted Fontshare fonts — Clash Display & Satoshi */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
/* ============================================================
   Fahid Javid — Portfolio ’26
   ============================================================ */

:root {
  --bg: #0e0e12;
  --bg-soft: #15151b;
  --ink: #ecece6;
  --muted: #8a8a93;
  --accent: #d4ff3f;
  --line: rgba(236, 236, 230, 0.14);
  --font-display: "Clash Display", "Arial Narrow", sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --section-gap: clamp(5rem, 12vw, 11rem);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
}
.preloader__inner {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 1rem;
}
.preloader__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--muted);
}
.preloader__count {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  height: 2px; background: var(--line); overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
}

/* ============ Cursor ============ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; inset: 0; z-index: 99; pointer-events: none;
    opacity: 0; transition: opacity 0.3s ease; /* revealed on first pointermove */
  }
  .cursor--visible { opacity: 1; }
  /* Idle: invisible. Only appears as a label bubble over [data-cursor] targets. */
  .cursor__ring {
    position: absolute; top: 0; left: 0;
    width: 0; height: 0; border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: width 0.28s ease, height 0.28s ease, opacity 0.22s ease;
  }
  .cursor__label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    color: var(--bg); opacity: 0; transition: opacity 0.2s ease;
    display: flex; align-items: center; justify-content: center;
  }
  .cursor__label svg { display: block; }
  .cursor--active .cursor__ring {
    width: 52px; height: 52px;
    opacity: 1;
  }
  .cursor--active .cursor__label { opacity: 1; }
}

/* ============ WordPress admin bar ============ */
/* Fixed elements ignore the html margin WP adds, so offset them explicitly. */
.admin-bar .nav,
.admin-bar .menu { top: 32px; }
.admin-bar .hero { min-height: calc(100svh - 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .nav,
  .admin-bar .menu { top: 46px; }
  .admin-bar .hero { min-height: calc(100svh - 46px); }
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.5rem) var(--pad);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}
.nav--scrolled {
  background: rgba(14, 14, 18, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 0.42em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__logo-dot {
  width: 0.3em; height: 0.3em; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__logo:hover .nav__logo-dot { transform: scale(1.5); }
.nav__links {
  display: flex; gap: clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(236, 236, 230, 0.07);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 99px;
  padding: 0.65rem 1.6rem;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.nav--scrolled .nav__links {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 0.25rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--accent);
}
.nav__cta {
  font-size: 0.92rem; font-weight: 700; color: #000;
  background: #fff; border-radius: 99px;
  padding: 0.6rem 1.3rem;
}
.nav__burger {
  display: none;
  background: rgba(236, 236, 230, 0.07);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 50%; cursor: pointer;
  width: 48px; height: 48px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ Mobile menu ============ */
.menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--bg-soft);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--pad) + 4.5rem) var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; gap: 0.25rem; }
.menu__links a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 1.15; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 1rem;
}
.menu__links a em {
  font-family: var(--font-body); font-style: normal;
  font-size: 0.9rem; color: var(--accent);
}
.menu__links a[aria-current="page"] { color: var(--accent); }
.menu__foot {
  display: flex; flex-direction: column; gap: 0.4rem;
  color: var(--muted); font-size: 0.95rem;
}
.menu__foot a { color: var(--ink); }
.menu__cta {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  background: var(--accent); color: var(--bg) !important;
  font-weight: 700; font-size: 1rem;
  border-radius: 99px;
  padding: 0.95rem 1.9rem;
  margin-bottom: 1.2rem;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad);
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, transparent 40%, rgba(14, 14, 18, 0.78) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%);
}
.hero__content { position: relative; z-index: 2; }
.hero__kicker {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.4rem, 13.5vw, 12rem);
  line-height: 0.92; letter-spacing: -0.025em;
  text-transform: uppercase;
}
.hero__row { display: block; overflow: hidden; }
.hero__row--indent { padding-left: clamp(2rem, 12vw, 11rem); }
.hero__o { color: var(--accent); display: inline-block; }
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(1.5rem, 3.5vw, 3rem);
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--muted);
}
.hero__meta p:last-child { text-align: right; color: var(--ink); }
.dot-live {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); margin-left: 0.3rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(212, 255, 63, 0); }
}
.hero__scroll {
  position: absolute; right: var(--pad); top: 42%;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll svg { animation: drift 2.2s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* lines hidden pre-animation are handled in JS to stay no-JS-safe */
.line { display: inline-block; }

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.6rem) 0;
  background: var(--bg);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  text-transform: uppercase; letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink);
}
.marquee__track i {
  font-style: normal; color: var(--accent);
  padding: 0 1.2rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ Section head ============ */
section, .contact { padding: var(--section-gap) var(--pad) 0; }
.section-head {
  display: flex; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-head__index {
  font-size: 0.85rem; color: var(--accent); font-weight: 700;
}
.section-head__label {
  font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

/* ============ About ============ */
.about__statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 3.9rem);
  line-height: 1.18; letter-spacing: -0.01em;
  max-width: 60rem;
}
.about__statement .w { color: rgba(236, 236, 230, 0.22); transition: color 0.3s; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.about__aside {
  display: flex; flex-direction: column; gap: 2.4rem;
  position: sticky; top: 8rem;
}
.about__label {
  display: block;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.about__now p {
  color: #c6c6c0;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.65;
}
.about__now strong { color: var(--ink); font-weight: 700; }
.about__status {
  margin-top: 1.1rem;
  color: var(--ink) !important;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem) !important;
}
.about__status .dot-live { margin: 0 0.4rem 0 0; }
.about__links li { border-top: 1px solid var(--line); }
.about__links li:last-child { border-bottom: 1px solid var(--line); }
.about__links a {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: clamp(1.1rem, 1.6vw, 1.5rem) 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  letter-spacing: -0.01em; line-height: 1.15;
  transition: color 0.3s ease;
}
.about__links a span {
  color: var(--muted);
  font-size: 0.85em;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s ease;
}
.about__links a:hover { color: var(--accent); }
.about__links a:hover span { transform: translateX(6px); color: var(--accent); }
.about__cred p:first-of-type {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
}
.about__cred a {
  font-weight: 700; color: var(--ink);
  transition: color 0.3s ease;
}
.about__cred a span { color: var(--muted); font-size: 0.85em; }
.about__cred a:hover { color: var(--accent); }
.about__cred a:hover span { color: var(--accent); }
.about__cred-meta {
  margin-top: 0.45rem;
  font-size: 0.9rem; color: var(--muted);
}

/* ============ Work ============ */
.work { position: relative; }
.work__list { border-top: 1px solid var(--line); }
.work__item { position: relative; border-bottom: 1px solid var(--line); }
.work__item > a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.8rem) 0;
  transition: padding-left 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.work__idx { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.work__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: 1; letter-spacing: -0.015em;
  text-transform: uppercase;
  transition: color 0.35s ease;
}
.work__tags { font-size: 0.92rem; color: var(--muted); text-align: right; }
.work__year { font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .work__item > a:hover { padding-left: 1.4rem; }
  .work__item > a:hover .work__title { color: var(--accent); }
}
.work__thumb { display: none; }
.work__preview {
  position: fixed; top: 0; left: 0; z-index: 40;
  width: clamp(260px, 26vw, 420px);
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.work__preview svg { width: 100%; height: 100%; }

/* mobile/touch: show thumbs inline instead of floating preview */
@media (hover: none), (max-width: 760px) {
  .work__preview { display: none; }
  .work__thumb {
    display: block;
    border-radius: 10px; overflow: hidden;
    margin: 0 0 1.6rem;
    border: 1px solid var(--line);
  }
}

/* ============ Services ============ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: clamp(1.8rem, 3.5vw, 3.2rem);
  transition: background-color 0.4s ease;
}
.service:hover { background: var(--bg-soft); }
.service__num { font-size: 0.85rem; color: var(--accent); font-weight: 700; }
.service h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin: 1.1rem 0 0.9rem;
  letter-spacing: -0.01em;
}
.service p { color: var(--muted); max-width: 44ch; }
.service ul {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.6rem;
}
.service ul li {
  font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 99px;
  padding: 0.35rem 0.9rem;
  color: var(--ink);
}

/* ============ Journal ============ */
.journal__list { border-top: 1px solid var(--line); }
.journal__list li { border-bottom: 1px solid var(--line); }
.journal__list a {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
}
.journal__date { font-size: 0.9rem; color: var(--muted); }
.journal__list h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.journal__arrow {
  font-size: 1.4rem; color: var(--muted);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), color 0.35s;
}
.journal__list a:hover h3 { color: var(--accent); }
.journal__list a:hover .journal__arrow { transform: translateX(8px); color: var(--accent); }
.journal__meta {
  margin-top: 0.45rem;
  font-size: 0.85rem; color: var(--muted);
}
.journal__all {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem; font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.journal__all:hover { color: var(--accent); }
.blog-featured__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1; letter-spacing: -0.015em;
  margin-top: 1rem;
}

/* ============ Contact / footer ============ */
.contact {
  padding-bottom: var(--pad);
  text-align: center;
}
.contact__kicker {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.contact__title { display: block; }
.contact__line {
  display: block; overflow: hidden;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 12vw, 10.5rem);
  line-height: 0.95; letter-spacing: -0.025em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}
.contact__line--accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.contact__line em { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; }
.contact__title:hover .contact__line { color: var(--accent); }
.contact__title:hover .contact__line--accent { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.contact__note {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--muted);
}
.contact__note em { font-style: normal; color: var(--accent); }
.contact__foot {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem; color: var(--muted);
  text-align: left;
}
.contact__col { display: flex; flex-direction: column; gap: 0.3rem; }
.contact__socials { flex-direction: row; gap: 1.4rem; }
.contact__socials a { color: var(--ink); position: relative; }
.contact__socials a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.contact__socials a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__top { color: var(--ink); }

/* ============ Post page ============ */
.post {
  padding: calc(clamp(1rem, 2.5vw, 1.75rem) + 7rem) var(--pad) 0;
}
.post__head { max-width: 56rem; margin: 0 auto; }
.post__back {
  display: inline-block;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  transition: color 0.3s ease;
}
.post__back:hover { color: var(--accent); }
.post__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.post__meta i { font-style: normal; color: var(--accent); }
.post__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 1.2rem 0 1.4rem;
}
.post__excerpt {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
  max-width: 42rem;
}
.post__cover {
  max-width: 72rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
}
.post__cover svg { width: 100%; height: auto; }
.post__body {
  max-width: 46rem; margin: 0 auto;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.8;
  color: #c6c6c0;
}
.post__body p { margin-bottom: 1.5rem; }
.post__body > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 600;
  font-size: 3.3em; line-height: 0.82;
  float: left; padding: 0.05em 0.14em 0 0;
  color: var(--accent);
}
.post__body h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: -0.01em; line-height: 1.15;
  color: var(--ink);
  margin: 3rem 0 1.2rem;
}
.post__body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.4rem;
  margin: 2.4rem 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
}
.post__body ul {
  list-style: disc;
  margin: 0 0 1.5rem 1.2rem;
}
.post__body ul li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.post__body ul li::marker { color: var(--accent); }
.post__body strong { color: var(--ink); }
.post__body pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.5rem;
  overflow-x: auto;
}
.post__body code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem; line-height: 1.7;
  color: #dbe9b9;
}
.post__body p code, .post__body li code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
}
.post__nav {
  max-width: 72rem;
  margin: var(--section-gap) auto 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr;
}
.post__nav a {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
}
.post__nav a + a {
  text-align: right; align-items: flex-end;
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}
.post__nav a:first-child { padding-right: 2rem; }
.post__nav small {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.post__nav strong {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 1.2; letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.post__nav a:hover strong { color: var(--accent); }

/* ============ Apps page ============ */
.apps-hero {
  padding: calc(clamp(1rem, 2.5vw, 1.5rem) + 7rem) var(--pad) 0;
  max-width: 72rem; margin: 0 auto;
}
.apps-hero__kicker {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
}
.apps-hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95; letter-spacing: -0.025em;
  text-transform: uppercase;
}
.apps-hero__title span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.apps-hero__intro {
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 42rem;
}
.apps-hero__stats {
  margin-top: 1.2rem;
  font-size: 0.92rem; color: var(--accent);
}
.apps { max-width: 76rem; margin: 0 auto; }
/* anchored product rows land below the fixed nav */
.app[id], .plugin[id] { scroll-margin-top: 110px; }
.app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}
.app:last-of-type { border-bottom: 0; }
.app:nth-of-type(even) .app__media { order: 2; }
.app__media {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.app__media svg { width: 100%; height: auto; }
.app__id { display: flex; align-items: center; gap: 1.1rem; }
.app__icon {
  width: 64px; height: 64px; flex: 0 0 auto;
  border-radius: 15px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.app__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.05; letter-spacing: -0.015em;
}
.app__tagline { color: var(--muted); margin-top: 0.25rem; }
.app__desc {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
  color: #c6c6c0;
  max-width: 36rem;
}
.app__features {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.4rem;
}
.app__features li {
  font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 99px;
  padding: 0.35rem 0.9rem;
}
.app__meta {
  margin-top: 1.4rem;
  font-size: 0.88rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.app__meta i { font-style: normal; color: var(--accent); padding: 0 0.35rem; }
.app__actions {
  margin-top: 1.6rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.app__download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 0.95rem;
  border-radius: 99px;
  padding: 0.85rem 1.7rem;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.app__download em { font-style: normal; opacity: 0.65; font-weight: 500; }
.app__download:hover {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 10px 35px rgba(212, 255, 63, 0.25);
}
.app__price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.app__price small { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); }
/* --- Plugin rows (WordPress page) --- */
.plugins { max-width: 76rem; margin: 0 auto; }
.plugin {
  display: grid;
  grid-template-columns: 64px 1fr minmax(17rem, 23rem);
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: start;
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}
.plugin:last-of-type { border-bottom: 0; }
.plugin__icon {
  width: 64px; height: 64px;
  border-radius: 15px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.plugin__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05; letter-spacing: -0.015em;
}
.plugin__name em {
  font-style: normal; font-family: var(--font-body);
  font-weight: 500; font-size: 0.45em;
  color: var(--accent);
  vertical-align: super;
  margin-left: 0.4rem;
}
.plugin__tagline { color: var(--muted); margin-top: 0.35rem; }
.plugin__desc {
  margin-top: 1.1rem;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  color: #c6c6c0;
  max-width: 36rem;
}
.plugin__main .app__features { margin-top: 1.2rem; }
.plugin__stats {
  display: flex; flex-direction: column; gap: 0.7rem;
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}
.plugin__stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.plugin__stats dt { font-size: 0.82rem; color: var(--muted); }
.plugin__stats dd {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; text-align: right;
  font-variant-numeric: tabular-nums;
}
.plugin__stats dd small { font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.plugin__side .app__actions {
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
}
/* keep the secondary link on one line so it wraps as a unit, not mid-phrase */
.plugin__side .plugin__pro { white-space: nowrap; }
.plugin__pro {
  font-size: 0.92rem; font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.plugin__pro em { font-style: normal; color: var(--muted); font-weight: 500; }
.plugin__pro:hover { color: var(--accent); }
.plugin__pro--free { border-bottom: 0; color: var(--accent); }

.apps-note {
  max-width: 46rem; margin: 0 auto;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}
.apps-note a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.apps-note a:hover { color: var(--accent); }

/* --- 404 --- */
.notfound {
  min-height: calc(100svh - 12rem);
  display: flex; flex-direction: column; justify-content: center;
}
.notfound__actions { margin-top: clamp(2rem, 4vw, 3rem); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__aside {
    position: static;
    max-width: 30rem;
    margin-top: 1rem;
  }
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__meta { flex-direction: column; align-items: flex-start; }
  .hero__meta p:last-child { text-align: left; }
  .hero__scroll { display: none; }
  .hero__row--indent { padding-left: 0; }

  .work__item > a {
    grid-template-columns: 2.2rem 1fr;
    grid-template-areas: "idx title" "idx tags";
    row-gap: 0.4rem;
  }
  .work__idx { grid-area: idx; }
  .work__title { grid-area: title; }
  .work__tags { grid-area: tags; text-align: left; }
  .work__year { display: none; }

  .journal__list a { grid-template-columns: 1fr auto; }
  .journal__date { grid-column: 1 / -1; }

  .contact__foot { flex-direction: column; align-items: flex-start; }
  .contact__socials { flex-wrap: wrap; }

  .app { grid-template-columns: 1fr; gap: 1.8rem; }
  .app:nth-of-type(even) .app__media { order: 0; }
  .app__actions { flex-wrap: wrap; }

  .plugin { grid-template-columns: 64px 1fr; }
  .plugin__side {
    grid-column: 1 / -1;
    border-top: 1px dashed var(--line);
    padding-top: 1.4rem;
  }
  .plugin__stats { border-left: 0; padding-left: 0; }

  .post__nav { grid-template-columns: 1fr; }
  .post__nav a + a {
    text-align: left; align-items: flex-start;
    border-left: 0; border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .post__nav a:first-child { padding-right: 0; }
}
