/* =========================================================
   SELF-HOSTED FONTS
   ========================================================= */
@font-face {
  font-family: "Naughty Monster";
  src: local("Naughty Monster"), local("NaughtyMonster"), local("NaughtyMonster-Regular"),
       url("../assets/fonts/NaughtyMonster.woff") format("woff"),
       url("../assets/fonts/NaughtyMonster.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --bg: #141316;
  --bg-outer: #2b2b2b;
  --surface: #1f1f1f;
  --surface-2: #0d0d0d;
  --border: rgba(130, 130, 130, 0.14);
  --border-strong: rgba(130, 130, 130, 0.28);

  --accent: #1146f0;
  --accent-dark: #0a33c4;

  --text-head: #fafafa;
  --text: #b8b8b8;
  --text-muted: #828282;
  --text-soft: #dedede;

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Roboto", sans-serif;
  --font-script: "Caveat Brush", cursive;
  --font-display: "Naughty Monster", "Space Grotesk", sans-serif;

  --container: 1080px;
  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 14px;

  --shadow-accent:
    rgba(17, 70, 240, 0.68) 0 0.48px 0.87px -1.17px,
    rgba(17, 70, 240, 0.61) 0 1.83px 3.3px -2.33px,
    rgba(17, 70, 240, 0.3) 0 8px 14.4px -3.5px,
    rgba(255, 255, 255, 0.91) 0.32px 0.44px 0.32px -1.19px inset,
    rgba(255, 255, 255, 0.84) 0.97px 1.33px 0.99px -2.38px inset,
    rgba(255, 255, 255, 0.66) 2.55px 3.51px 2.6px -3.56px inset,
    rgba(255, 255, 255, 0.05) 8px 11px 8.16px -4.75px inset;
  --shadow-dark:
    rgba(10, 10, 10, 0.68) 0 0.48px 0.87px -1.17px,
    rgba(10, 10, 10, 0.61) 0 1.83px 3.3px -2.33px,
    rgba(10, 10, 10, 0.3) 0 8px 14.4px -3.5px,
    rgba(255, 255, 255, 0.18) 0.32px 0.44px 0.11px -1.19px inset,
    rgba(255, 255, 255, 0.17) 0.97px 1.33px 0.33px -2.38px inset,
    rgba(255, 255, 255, 0.13) 2.55px 3.51px 0.87px -3.56px inset;
}

/* =========================================================
   BASE
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* keyboard focus — only shows for keyboard users, not mouse clicks */
:focus-visible { outline: 2px solid #4d7bff; outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { display: flex; justify-content: center; }
.accent { color: var(--accent); }

.section { padding: 120px 0; border-top: 1px solid var(--border); }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--text-head);
  margin-bottom: 56px;
}

/* split-word helper (JS wraps each word) */
.word { display: inline-block; }

/* =========================================================
   BUTTONS / AVATARS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 1000px;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--surface); box-shadow: var(--shadow-dark); border: 1px solid var(--border); }
.btn-black { background: #111; box-shadow: var(--shadow-dark); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.avatar {
  --c: var(--accent);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; --c: #222; }

.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 32px; height: 32px; font-size: 10px; box-shadow: 0 0 0 2px var(--bg); }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

.stars { color: var(--accent); letter-spacing: 2px; font-size: 13px; line-height: 1; }
.happy-clients { display: flex; align-items: center; gap: 12px; }
.happy-text { color: var(--text-soft); font-size: 14px; margin-top: 4px; }
.exp-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.exp-title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.1; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 10px;
  background: rgba(31, 31, 31, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 1000px;
  box-shadow: var(--shadow-dark);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; font-size: 14px; margin-right: 120px; white-space: nowrap; }
/* overflow is hidden for the collapse animation — vertical padding gives the
   Contact button room for its hover lift + glow so they are not clipped */
.nav-links { display: flex; align-items: center; gap: 20px; overflow: hidden; white-space: nowrap; padding: 10px 0; margin: -10px 0; }
.nav-link { font-size: 14px; color: var(--text-soft); transition: color 0.25s; }
.nav-link:hover { color: #fff; }

/* desktop: burger is collapsed (width 0) — GSAP grows it when the nav compacts */
.nav-burger {
  display: flex;
  width: 0;
  height: 36px;
  opacity: 0;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.nav-burger span { width: 14px; height: 1.6px; background: #ddd; border-radius: 2px; flex-shrink: 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate; /* own stacking context: bg < THINK < photo < CREATIVELY */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 110px 0 60px;
}

/* ---- background layers ---- */
.hero-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; } /* fixed behind the whole page */
.bg-cubes { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0.45; }
/* darkens the edges and top so text stays readable over the cubes */
.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(20, 19, 22, 0.75) 100%),
    linear-gradient(180deg, rgba(20, 19, 22, 0.55), transparent 35%);
}

/* soft glow that follows the mouse (JS sets --mx/--my and fades it in) */
.bg-spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(42, 120, 255, 0.22), transparent 70%);
  mix-blend-mode: screen;
}
.bg-spotlight.is-on { opacity: 1; }

/* custom cursor (whole site, mouse devices only — JS adds .has-custom-cursor):
   a small dot that grows over links and into a label over things you can play with */
.has-custom-cursor, .has-custom-cursor * { cursor: none !important; }
.has-custom-cursor :is(input, textarea, [contenteditable]) { cursor: text !important; }
.has-custom-cursor select { cursor: default !important; }
.site-cursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.site-cursor.is-on { opacity: 1; }
.site-cursor-dot {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(17, 70, 240, 0.6);
  transform: scale(0.18);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), scale 0.2s, background 0.25s, box-shadow 0.25s;
}
.site-cursor-label {
  font: 600 13px/1 var(--font-body);
  color: #fff;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s;
}
/* links & buttons: a soft ring */
.site-cursor[data-state="link"] .site-cursor-dot { transform: scale(0.55); background: rgba(17, 70, 240, 0.22); box-shadow: inset 0 0 0 3px #4d7bff; }
/* big headings: a white disc that inverts the letters underneath */
.site-cursor[data-state="text"] { mix-blend-mode: difference; }
.site-cursor[data-state="text"] .site-cursor-dot { transform: scale(1.1); background: #fff; box-shadow: none; }
/* hero toys: a bubble with "Flip" / "Drag" */
.site-cursor[data-state="click"] .site-cursor-dot,
.site-cursor[data-state="drag"] .site-cursor-dot { transform: scale(0.9); }
.site-cursor[data-state="click"] .site-cursor-label,
.site-cursor[data-state="drag"] .site-cursor-label { opacity: 1; }
/* form fields & project images (they have their own "View Project" pill) */
.site-cursor[data-state="hidden"] .site-cursor-dot { transform: scale(0); }
.site-cursor.is-down .site-cursor-dot { scale: 0.8; }

.hero-kicker {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border-radius: 1000px;
  background: rgba(31, 31, 31, 0.6);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); animation: hero-pulse 2s infinite; }
@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.kicker-sep { width: 1px; height: 14px; background: var(--border-strong); }
.kicker-time { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---- title (no transform on .hero-title, so the lines can layer around the photo) ---- */
.hero-title {
  font-family: var(--font-display);
  text-align: center;
  line-height: 0.8;
  user-select: none;
}
.hero-line { display: block; position: relative; }
.hero-think {
  z-index: 1;
  font-size: clamp(90px, 27vw, 440px);
  font-weight: normal; /* display font has a single weight — avoid faux bold */
  white-space: nowrap;
  color: var(--text-head);
}
.hero-creatively {
  z-index: 3;
  font-size: clamp(70px, 21vw, 360px);
  font-weight: normal;
  white-space: nowrap;
  color: var(--accent);
  text-shadow: 0 20px 60px rgba(17, 70, 240, 0.35);
}
.hero-think .char, .hero-creatively .char { display: inline-block; cursor: default; }

/* ---- portrait ---- */
.hero-photo, .hero-badge-wrap {
  --w: clamp(170px, 15.5vw, 260px);
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  margin-top: calc(var(--w) * -0.62);
}
.hero-photo { perspective: 900px; }
/* badge mirrors the deck's box but sits above CREATIVELY */
.hero-badge-wrap { z-index: 5; aspect-ratio: 3 / 4; pointer-events: none; }
.hero-badge-wrap .spin-badge { pointer-events: auto; }
/* design deck — cards are stacked absolutely; GSAP owns their transforms */
.hero-deck {
  position: relative;
  aspect-ratio: 3 / 4;
  font-size: calc(var(--w) / 10); /* card contents scale with the card */
}
.deck-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.9em 0.8em 0.8em; /* content sits in the top part — CREATIVELY covers the bottom */
  border-radius: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(17, 70, 240, 0.25);
  font-family: var(--font-head);
  line-height: 0.95;
}
.deck-card { cursor: pointer; }
/* back face — shown when a card is clicked (JS swaps it in mid-flip) */
.dc-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 1.6em 0.9em 0.8em;
  background: linear-gradient(160deg, #1f1f24, #0d0d10);
  border-top: 0.25em solid var(--c, #4d7bff);
  color: #fff;
  font-family: var(--font-body);
  z-index: 5; /* above the front's decorative layers (orb, play button, header) */
  visibility: hidden;
}
.deck-card.is-flipped .dc-back { visibility: visible; }
.dc-post { --c: #4d7bff; }
.dc-thumb { --c: #ffd60a; }
.dc-sale { --c: #ff7a2f; }
.dc-brochure { --c: #8fb0ff; }
.dc-back-kicker { font-size: 0.62em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c, #4d7bff); }
.dc-back-title { font-family: var(--font-head); font-weight: 700; font-size: 1.25em; line-height: 1.05; }
.dc-back-cta { font-size: 0.62em; color: var(--text-soft); opacity: 0.8; }
.dc-big { font-weight: 700; font-size: 2.3em; letter-spacing: -0.03em; }
.dc-mid { font-weight: 700; font-size: 0.95em; text-transform: uppercase; letter-spacing: 0.04em; }
.dc-small {
  order: -1; /* label reads as a kicker above the big text */
  margin-bottom: 0.6em;
  font-family: var(--font-body);
  font-size: 0.48em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* 1 — social post */
.dc-post { background: linear-gradient(160deg, #3d6dff 0%, #1146f0 40%, #061a6b 100%); color: #fff; }
.dc-tag {
  position: absolute;
  top: 0.8em;
  left: 0.8em;
  padding: 0.25em 0.6em;
  border-radius: 1em;
  background: #fff;
  color: #1146f0;
  font-size: 0.5em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dc-orb {
  position: absolute;
  top: 18%;
  right: -18%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9fb8ff, #1146f0 60%, transparent 61%);
  box-shadow: 0 0 60px rgba(159, 184, 255, 0.6);
}

/* 2 — YouTube thumbnail */
.dc-thumb { background: #ffd60a; color: #111; }
.dc-thumb .dc-big { font-size: 2.1em; }
.dc-thumb .dc-mid { display: inline-block; align-self: flex-start; margin-top: 0.25em; padding: 0.15em 0.35em; background: #111; color: #ffd60a; }
.dc-play {
  position: absolute;
  top: 0.8em;
  right: 0.8em;
  width: 1.6em;
  height: 1.1em;
  display: grid;
  place-items: center;
  border-radius: 0.3em;
  background: #ff0033;
  color: #fff;
  font-size: 0.8em;
}

/* 3 — sale banner */
.dc-sale { background: radial-gradient(circle at 80% 15%, #ffb36b, #ff5a1f 45%, #b3260a); color: #fff; }
.dc-sale .dc-big { font-size: 3em; }

/* 4 — brochure */
.dc-brochure { background: #f5f6fa; color: #0a1a5c; padding-top: 2.6em; }
.dc-brochure .dc-small { color: #fff; opacity: 0.9; position: relative; }
.dc-head { position: absolute; top: 0; left: 0; right: 0; height: 30%; background: linear-gradient(135deg, #1146f0, #061a6b); clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); }
.dc-lines { display: grid; gap: 0.28em; margin-top: 0.5em; }
.dc-lines i { display: block; height: 0.16em; border-radius: 1em; background: rgba(10, 26, 92, 0.25); }
.dc-lines i:nth-child(2) { width: 85%; }
.dc-lines i:nth-child(4) { width: 60%; }

.spin-badge {
  position: absolute;
  right: -46px;
  bottom: 18%;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 19, 22, 0.75);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4;
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spin-badge text { font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; fill: #fff; }
.spin-badge-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  color: #fff;
  font-size: 18px;
  transition: transform 0.3s;
}
.spin-badge:hover .spin-badge-arrow { transform: translateY(3px) scale(1.08); }

/* ---- floating tool icons ---- */
.hero-tools { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tool-float {
  position: absolute;
  width: clamp(54px, 5vw, 78px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 24%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 30px);
  border: 2px solid currentColor;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  will-change: transform;
}
.tf-ps { background: #001e36; color: #31a8ff; left: 13%; top: 30%; }
.tf-ai { background: #330000; color: #ff9a00; right: 12%; top: 24%; }
.tf-pr { background: #00005b; color: #9999ff; left: 6%; bottom: 11%; }
.tf-fg { background: #1e1e1e; color: rgba(255, 255, 255, 0.25); right: 6%; bottom: 15%; }
/* main icons can be grabbed and thrown (JS moves them with margins, springs them back) */
.tool-float:not(.tf-far) {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.tool-float.is-dragging { cursor: grabbing; z-index: 2; }
.tf-far { width: clamp(36px, 3vw, 48px); font-size: clamp(14px, 1.1vw, 18px); filter: blur(3px); opacity: 0.7; }
.tf-far-1 { left: 31%; top: 16%; right: auto; bottom: auto; }
.tf-far-2 { right: 30%; bottom: 18%; left: auto; top: auto; }

.hero-bottom {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 4;
}
.hero-tagline { max-width: 230px; color: var(--text-soft); font-size: 17px; line-height: 1.4; }

/* =========================================================
   LOGO STRIP + MARQUEE
   ========================================================= */
.logo-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.logo-strip-inner { display: flex; align-items: center; gap: 40px; }

.marquee {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }

.logo-item {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-muted);
  padding: 0 34px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s;
}
.logo-item:hover { color: #fff; }
.logo-serif { font-family: Georgia, serif; font-style: italic; font-weight: 400; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { border-top: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-bottom: 56px; }
.project-card { display: block; }
.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  cursor: none;
}
.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover .project-media::before { transform: scale(1.06); }
.project-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 44px);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02em;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover .project-ph { transform: scale(1.06); }

.view-pill {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 16px;
  border-radius: 1000px;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  white-space: nowrap;
  z-index: 2;
}

.project-meta { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 16px; }
.project-meta h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text-head); }
.project-meta p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.project-link { font-size: 13px; color: var(--text-soft); transition: color 0.25s; }
.project-card:hover .project-link { color: var(--accent); }

/* =========================================================
   SERVICES (sticky left + stacking cards)
   ========================================================= */
.services { overflow-x: clip; } /* rotated cards must not cause horizontal scroll */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.services-left { padding-top: 8px; }
.services-left .section-title { margin-bottom: 40px; }
.tools-label { color: var(--text-soft); margin-bottom: 18px; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; }
.tool {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-dark);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  transition: transform 0.3s, background 0.3s;
}
.tool:hover { transform: translateY(-4px) rotate(-6deg); background: var(--accent); }

.services-cards { display: flex; flex-direction: column; gap: 24px; }
/* desktop: JS pins the section and stacks cards on top of each other */
.services-cards.is-stacked { display: block; position: relative; }
.services-cards.is-stacked .service-card { position: absolute; top: 0; left: 0; right: 0; }
.service-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
  transition: background 0.5s ease, border-color 0.5s ease;
  transform-origin: center bottom;
}
.service-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.svc-icon { color: var(--accent); font-size: 20px; transition: color 0.5s; }
.service-card p { color: var(--text-soft); font-size: 16px; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  padding: 6px 12px;
  border-radius: 1000px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-soft);
  transition: border-color 0.5s;
}

.service-card.is-active { background: var(--accent); border-color: var(--accent); }
.service-card.is-active p { color: #fff; }
.service-card.is-active .svc-icon { color: #fff; }
.service-card.is-active .tags span { border-color: rgba(255, 255, 255, 0.6); color: #fff; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; }
.about-left { position: sticky; top: 100px; align-self: start; } /* photo stays in view while the text scrolls */
.about-photo {
  position: relative;
  aspect-ratio: 0.9;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3d6dff 0%, var(--accent) 35%, #04166b 100%);
  display: grid;
  place-items: center;
}
.about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.12);
  transform-origin: center top;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about-photo:hover .about-photo-img { transform: scale(1.18); }
/* soft accent glow at the bottom so the social icons stay readable */
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 22, 107, 0.55), transparent 40%);
  pointer-events: none;
}
.about-socials { z-index: 1; }
.about-socials { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.about-socials a {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  transition: background 0.3s;
}
.about-socials a:hover { background: #000; }
.about-name { font-family: var(--font-head); font-size: 22px; color: #fff; margin-top: 18px; }
.about-role { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

.about-right > p { color: var(--text-soft); font-size: 17px; line-height: 1.55; margin-bottom: 18px; }
.signature { width: 140px; height: 60px; margin: 10px 0 40px; }
.signature path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.history h4 { font-family: var(--font-head); font-size: 22px; color: #fff; margin-bottom: 16px; }
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.history-row strong { display: block; color: #fff; font-weight: 600; }
.history-row span { font-size: 14px; color: var(--text-muted); }
.history-year { color: var(--text-soft) !important; white-space: nowrap; flex-shrink: 0; }
.history-more { height: 0; overflow: hidden; } /* expanded by GSAP via "Show all" */
.show-all { display: inline-block; margin-top: 18px; color: #4d7bff; font-weight: 500; transition: color 0.25s; }
.show-all:hover { color: #fff; }
.history.education { margin-top: 56px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; }
.testi-head .section-title { margin-bottom: 0; }
.testi-marquee { padding: 8px 0 12px; } /* keeps the default edge fade; room for the hover lift */
.testi-marquee .marquee-track { gap: 20px; padding-right: 20px; }
.testi-card {
  position: relative;
  width: 340px;
  min-height: 270px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.testi-card:hover { border-color: var(--accent); background: rgba(17, 70, 240, 0.1); transform: translateY(-6px); }
.testi-quote {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--accent);
  font-size: 40px;
  line-height: 1;
  opacity: 0.6;
}
.testi-card .stars { order: -1; margin: 0 0 18px; }
.testi-card p { color: var(--text-soft); font-size: 15px; line-height: 1.6; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.testi-author .avatar { width: 38px; height: 38px; font-size: 11px; }
.testi-author strong { display: block; color: #fff; font-size: 14px; }
.testi-author span { font-size: 11px; color: var(--text-muted); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.faq-grid .section-title { margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; font-size: 15px; color: #fff; }
.faq-num { color: var(--text-muted); font-size: 13px; }
.faq-text { flex: 1; }
.faq-icon { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.faq-icon::before,
.faq-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1.6px; background: #fff; transition: transform 0.35s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-a { height: 0; overflow: hidden; }
.faq-a p { padding: 0 18px 18px 18px; color: var(--text); font-size: 15px; border-top: 1px solid var(--border); padding-top: 14px; }

.cta-card {
  position: sticky;
  top: 120px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  color: #fff;
}
.cta-card h3 { font-family: var(--font-head); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; margin: 22px 0 16px; letter-spacing: -0.01em; }
.cta-card p { font-size: 17px; margin-bottom: 14px; color: rgba(255, 255, 255, 0.92); }
.cta-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.cta-note { font-size: 14px; font-weight: 600; white-space: nowrap; }
.cta-note:hover { text-decoration: underline; }
.cta-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--border); padding: 100px 0 0; overflow: hidden; }
.footer-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 50px;
}
.rotator {
  position: relative;
  display: inline-block;
  height: 1.15em;
  min-width: 3.4em;
  vertical-align: bottom;
  overflow: hidden;
}
.rotator-word {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
  white-space: nowrap;
}

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-cols a { color: #fff; font-size: 17px; transition: color 0.25s; }
.footer-cols a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-size: 11px !important;
  font-weight: 700;
}
.footer-socials a:hover { color: #fff !important; transform: translateY(-2px); }

.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; padding: 18px 0; }
.footer-menu { display: flex; gap: 24px; }
.footer-menu a { color: #fff; transition: color 0.25s; }
.footer-menu a:hover { color: var(--accent); }
.copyright { font-size: 12px; color: var(--text-muted); }

.footer-giant {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-align: center;
  font-size: 15.5vw;
  margin-top: 40px;
  padding-bottom: 2vw;
}
@media (min-width: 1128px) { .footer-giant { font-size: 172px; } }
.footer-giant span { display: inline-block; }

/* =========================================================
   FLOATING "SPEAK TO ME" BAR
   ========================================================= */
.speak-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 1000px;
  background: rgba(31, 31, 31, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-dark);
  opacity: 0; /* position + reveal handled by GSAP */
}
.speak-text { display: flex; flex-direction: column; margin-right: 40px; white-space: nowrap; }
.speak-text strong { color: #fff; font-size: 14px; font-weight: 600; }
.speak-text span { font-size: 11px; color: var(--text-muted); }
.speak-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
  transition: transform 0.3s;
}
.speak-btn:hover { transform: scale(1.1); }
.speak-accent { background: var(--accent); box-shadow: var(--shadow-accent); }

/* =========================================================
   INNER PAGES (projects.html)
   ========================================================= */
.nav-link.is-current,
.footer-menu .is-current { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.page-hero { padding: 150px 0 64px; text-align: center; }
.page-hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-head);
  margin: 0 auto 22px;
  max-width: 680px;
}
.page-hero-text { font-size: 20px; line-height: 1.35; color: var(--text-soft); max-width: 560px; margin: 0 auto; }
.projects-all { padding-top: 64px; border-top: 1px solid var(--border); }

.trusted-label { flex-shrink: 0; font-size: 22px; color: var(--text-soft); white-space: nowrap; }
.trusted-label strong { color: #fff; font-weight: 600; }

.big-cta-section { border-top: 0; padding-top: 80px; }
.big-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 120px 32px;
  border-radius: var(--radius);
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  text-align: center;
  color: #fff;
}
.big-cta-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.big-cta-note { font-weight: 600; font-size: 15px; }
.big-cta-note:hover { text-decoration: underline; }

/* =========================================================
   CASE STUDY (project.html)
   --pc / --pc-dark = the project's own brand colour, set on <body>
   ========================================================= */
.cs-narrow { max-width: 640px; }
.cs-hero { text-align: left; padding-bottom: 40px; }
.cs-hero .page-hero-title { margin: 0 0 28px; max-width: none; }
.cs-back { display: inline-block; margin-bottom: 26px; font-size: 14px; color: var(--text-muted); transition: color 0.25s; }
.cs-back:hover { color: #fff; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 17px; color: #fff; margin: 0 0 28px; max-width: none; }
.cs-meta em { font-style: normal; color: var(--text-muted); margin-right: 6px; }
.cs-intro p { font-size: 18px; line-height: 1.5; color: var(--text-soft); margin-bottom: 14px; }
.cs-label { margin: 34px 0 14px; color: var(--text-muted); font-size: 15px; }
.cs-tags span { font-size: 15px; padding: 7px 14px; color: #fff; }

.cs-block { padding: 50px 0; }
.cs-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-head);
  margin-bottom: 18px;
}
.cs-text { max-width: 1000px; margin-bottom: 40px; }
.cs-text p { font-size: 18px; line-height: 1.55; color: var(--text); margin-bottom: 14px; }
.cs-text strong { color: #fff; font-weight: 600; }

.cs-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.cs-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-cover { aspect-ratio: 16 / 10; }
.cs-wide { aspect-ratio: 2 / 1; margin-top: 16px; }
.cs-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cs-grid-2 .cs-media { aspect-ratio: 4 / 3; }

/* image placeholder — swap for a real <img> */
.ph-img {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(135deg, var(--pc-dark), var(--pc));
  will-change: transform;
}
.ph-img::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 14px;
  border-radius: 1000px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  white-space: nowrap;
}

/* colour swatches */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.swatch {
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius);
  background: var(--sw);
  border: 1px solid var(--border-strong);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.swatch-light { color: #111; }
.swatch-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.swatch-hex { font-size: 14px; opacity: 0.75; letter-spacing: 0.04em; }

/* typography specimen */
.type-card { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.type-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 44px; }
.type-row + .type-row { border-top: 2px solid var(--pc); }
.type-row-primary { background: var(--pc); }
.type-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-bottom: 10px; }
.type-name { font-size: 44px; color: #fff; line-height: 1.1; }
.type-aa { font-size: clamp(110px, 13vw, 180px); font-weight: 700; color: #fff; line-height: 1; margin-top: 18px; }
.type-specs { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-content: center; color: #fff; }
.type-specs p { font-size: 17px; line-height: 1.7; }
.type-digits { margin-top: 10px; }

/* social post mockups */
.cs-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 80px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--pc) 55%, transparent), transparent 40%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--pc) 55%, transparent), transparent 40%),
    var(--surface-2);
}
.post-mock {
  position: relative;
  width: min(26%, 220px);
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 2px color-mix(in srgb, var(--pc) 70%, transparent);
}
.post-mock-mid { aspect-ratio: 9 / 16; width: min(26%, 220px); }
.post-mock .ph-img::after { white-space: normal; text-align: center; width: 80%; font-size: 11px; border-radius: 10px; }

/* "got an idea?" card */
.idea-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  aspect-ratio: 4 / 3;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.idea-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.idea-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  color: #fff;
}
.idea-card p { font-size: 20px; color: var(--text-soft); max-width: 300px; line-height: 1.35; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .tf-pr { left: 8%; bottom: 24%; }
  .tf-fg { right: 8%; bottom: 26%; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 260px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-title { margin-bottom: 36px; }

  .nav { top: 12px; }
  .nav-brand { margin-right: 40px; }
  .nav-links { display: none; }
  .nav-burger { width: 36px; opacity: 1; }
  .service-card { padding: 22px; }
  .service-card h3 { font-size: 22px; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    margin: 0;
    border-radius: 20px;
    background: #1f1f1f;
    z-index: 1;
    transform: translateZ(0); /* own layer so page text never paints over it */
    border: 1px solid var(--border);
  }

  .hero { padding-bottom: 180px; }
  .hero-think { font-size: 32vw; }
  .hero-creatively { font-size: 25vw; }
  .hero-photo, .hero-badge-wrap { --w: 29vw; }
  .hero-kicker { font-size: 12px; margin-bottom: 16px; }
  .spin-badge { display: none; }
  .spin-badge text { font-size: 10px; }
  .spin-badge-arrow { width: 28px; height: 28px; font-size: 14px; }
  .tool-float { width: 44px; font-size: 17px; }
  .tf-ps { left: 4%; top: 24%; }
  .tf-ai { right: 4%; top: 20%; }
  .tf-pr { left: 6%; bottom: 36%; }
  .tf-fg { right: 6%; bottom: 38%; }
  .tf-fg svg { width: 16px; height: 24px; }
  .tf-far { display: none; }
  .hero-bottom { flex-direction: column; align-items: center; text-align: center; gap: 18px; bottom: 40px; }
  .hero-tagline { max-width: 280px; }

  .logo-strip-inner { flex-direction: column; gap: 20px; }
  .marquee { width: 100%; }

  .project-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 40px; }
  .page-hero-text { font-size: 17px; }
  .big-cta { padding: 70px 22px; }

  .cs-intro p, .cs-text p { font-size: 16px; }
  .cs-block { padding: 34px 0; }
  .cs-grid-2 { grid-template-columns: 1fr; }
  .cs-wide { aspect-ratio: 4 / 3; }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .swatch { padding: 16px; }
  .type-row { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .type-name { font-size: 34px; }
  .type-specs { gap: 20px; }
  .type-specs p { font-size: 15px; }
  .cs-gallery { gap: 12px; padding: 44px 12px; }
  .post-mock, .post-mock-mid { width: 31%; }
  .ph-img::after { font-size: 11px; padding: 6px 10px; }
  .idea-card p { font-size: 17px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-left { max-width: 320px; position: static; }

  .testi-head { flex-direction: column; align-items: flex-start; }
  .testi-card { width: 280px; padding: 24px; }

  .faq-grid { grid-template-columns: 1fr; }
  .cta-card { position: static; }

  .footer-cols { grid-template-columns: 1fr; }
  .speak-text { margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dot { animation: none; }
}

/* =========================================================
   WORDPRESS ADDITIONS
   Real images in the slots that used placeholders on the static site,
   regular page/post content, blog list, comments and core classes.
   ========================================================= */
.project-media .project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover .project-media .project-img { transform: scale(1.06); }
.post-mock img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-grid-more { margin-top: 16px; }

.entry-section { padding-top: 0; }
.entry-content { color: var(--text); font-size: 17px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-head); color: var(--text-head); line-height: 1.2; margin-top: 1.8em; }
.entry-content h2 { font-size: clamp(26px, 3vw, 36px); }
.entry-content h3 { font-size: clamp(21px, 2.4vw, 26px); }
.entry-content a { color: #4d7bff; text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { color: var(--text-head); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--text-soft); font-style: italic; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--text-muted); margin-top: 8px; text-align: center; }
.entry-thumb { margin-bottom: 32px; aspect-ratio: 16 / 9; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.post-list { display: grid; gap: 14px; }
.post-row {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s;
}
.post-row:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post-row strong { font-family: var(--font-head); font-size: 22px; color: var(--text-head); }
.post-row-date { font-size: 13px; color: var(--text-muted); }
.post-row-excerpt { color: var(--text); }
.post-pagination .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.post-pagination .page-numbers { padding: 8px 14px; border-radius: 1000px; background: var(--surface); color: var(--text-soft); }
.post-pagination .page-numbers.current { background: var(--accent); color: #fff; }

.comments-area { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-area .comment-list { display: grid; gap: 18px; margin: 20px 0 32px; }
.comments-area .comment-body { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); }
.comments-area .children { margin: 14px 0 0 24px; display: grid; gap: 14px; }
.comment-form label { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-head);
  font: inherit;
}
.comment-form .submit { margin-top: 10px; padding: 12px 22px; border-radius: 1000px; background: var(--accent); color: #fff; font-weight: 600; border: 0; cursor: pointer; }

/* logged-in: keep the pill menu below the WordPress admin bar */
.admin-bar .nav { top: 48px; }
@media screen and (max-width: 782px) { .admin-bar .nav { top: 62px; } }
