/* =========================================================
   David M Gilbert — personal site front-end stylesheet
   Dark, bold, techy theme. Forked from the Your Local Tech
   Solutions CMS, fully redesigned front-end.
   Hand-written, zero build step. Loaded directly via <link>.
   Single web font family (Sora, 3 weights) for fast loading —
   body text uses the system font stack (no extra request).
   ========================================================= */

/* Font is loaded via a <link> tag in layouts/front.blade.php, not @import —
   @import blocks the browser from discovering the font request until this
   whole file is parsed, which is slower than a parallel <link>. */

:root {
  color-scheme: dark;
  /* Brand accent — sampled from the supplied logo mark (#11689B),
     brightened slightly so it pops against a dark background.
     These stay constant across both light and dark themes. */
  --color-primary: #2BA9E0;
  --color-primary-deep: #11689B;
  --color-primary-dark: #0C4F76;
  --color-primary-light: rgba(43, 169, 224, 0.14);
  --color-accent: #F2B53D;
  --color-accent-dark: #D6911F;
  --color-success: #34C77B;
  --color-warning: #F2B53D;
  --color-white: #FFFFFF;

  /* "Ink" tokens — always dark, regardless of site theme. Used only by
     deliberately-branded dark zones (hero, page-header band, CTA banner,
     the terminal "readout" card, floating skill chips) so those keep
     their bold look even when a visitor switches to light mode. */
  --ink-bg: #0A0E13;
  --ink-bg-deep: #060809;
  --ink-surface: #12181F;
  --ink-surface-2: #181F28;
  --ink-border: rgba(255, 255, 255, 0.09);
  --ink-border-strong: rgba(255, 255, 255, 0.16);
  --ink-text: #E7ECF1;
  --ink-text-muted: #93A1AE;
  --ink-text-dim: #5B6672;

  /* Switchable tokens — these are the ones [data-theme="light"] below
     overrides. Dark is the default (no attribute needed). */
  --color-navy: #0A0E13;
  --bg: var(--color-navy);
  --bg-deep: #060809;
  --surface: #12181F;
  --surface-2: #181F28;
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-text: #E7ECF1;
  --color-text-muted: #93A1AE;
  --color-text-dim: #5B6672;
  --color-heading: #FFFFFF;
  --header-bg: rgba(10, 14, 19, 0.72);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.55);

  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, 'Liberation Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --glow-primary: 0 0 0 1px rgba(43, 169, 224, 0.3), 0 10px 30px rgba(43, 169, 224, 0.22);
  --glow-accent: 0 0 0 1px rgba(242, 181, 61, 0.3), 0 10px 30px rgba(242, 181, 61, 0.18);
  --container-w: 1180px;
}

/* Light theme — applied when the visitor picks "Light" with the nav
   toggle (persisted in localStorage). Only the "page chrome and content"
   tokens change; the hero, page-header band, CTA banner, the terminal
   readout card and the floating skill chips stay on the --ink-* tokens
   above by design, so the brand moments keep their bold dark look. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F8FA;
  --bg-deep: #ECF0F3;
  --surface: #FFFFFF;
  --surface-2: #EFF2F5;
  --color-border: rgba(13, 26, 38, 0.10);
  --color-border-strong: rgba(13, 26, 38, 0.18);
  --color-text: #2A333B;
  --color-text-muted: #5C6B76;
  --color-text-dim: #8E9BA6;
  --color-heading: #121B24;
  --header-bg: rgba(255, 255, 255, 0.78);
  --shadow-sm: 0 2px 10px rgba(20, 30, 40, 0.07);
  --shadow-md: 0 14px 34px rgba(20, 30, 40, 0.10);
  --shadow-lg: 0 26px 64px rgba(20, 30, 40, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--color-primary); outline-offset: 2px; }
::selection { background: var(--color-primary); color: var(--color-white); }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--surface); }
.section--navy { background: var(--bg-deep); color: var(--color-text-muted); }
.section--navy h2, .section--navy h3 { color: var(--color-white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.eyebrow--on-dark { color: var(--color-accent); }
.eyebrow--on-dark::before { background: var(--color-accent); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); }
.section-head p { color: var(--color-text-muted); margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  color: var(--color-white);
}
.btn-primary:hover { box-shadow: var(--glow-primary); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--color-border-strong); color: var(--color-heading); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-light { background: var(--color-white); color: var(--ink-bg); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--surface-2); color: var(--color-white); border-color: var(--color-border-strong); }
.btn-navy:hover { border-color: var(--color-primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* =========================================================
   Header / nav — single slim glass bar (no top info bar)
   ========================================================= */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { width: auto; }
.site-logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}
@media (max-width: 560px) { .site-logo__text { display: none; } }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 16px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
  transition: color .15s ease;
}
.main-nav > ul > li > a:hover { color: var(--color-heading); }
.main-nav .has-children > ul {
  position: absolute; top: 100%; left: 0;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 220px;
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .15s ease;
}
.main-nav .has-children:hover > ul,
.main-nav .has-children:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .has-children ul li a { padding: 10px 12px; border-radius: 6px; display: block; font-weight: 500; color: var(--color-text); }
.main-nav .has-children ul li a:hover { background: var(--surface-2); color: var(--color-primary); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--color-border);
  color: var(--color-text); cursor: pointer; font-size: 16px; line-height: 1;
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-toggle .icon-dark { display: none; }
html[data-theme="light"] .theme-toggle .icon-dark { display: inline; }
html[data-theme="light"] .theme-toggle .icon-light { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-heading); margin: 5px 0; border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 78px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 12px; overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { padding: 16px 10px; font-size: 17px; border-bottom: 1px solid var(--color-border); }
  .main-nav .has-children > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: transparent; border: none; }
  .main-nav .has-children.is-open > ul { display: block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 120px 0 110px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(43,169,224,0.30), transparent 42%),
    radial-gradient(circle at 6% 88%, rgba(242,181,61,0.18), transparent 38%),
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.07) 1.5px, transparent 1.5px) 0 0/26px 26px,
    linear-gradient(180deg, var(--ink-bg) 0%, var(--ink-bg-deep) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-inner { max-width: 660px; }
.hero h1 { color: var(--color-white); font-size: clamp(34px, 4.8vw, 56px); letter-spacing: -0.01em; }
.hero p.lead { font-size: 19px; max-width: 560px; color: var(--ink-text-muted); }
.hero .btn-outline { color: var(--color-white); border-color: rgba(255,255,255,0.28); }
.hero .btn-outline:hover { color: var(--color-primary); border-color: var(--color-primary); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.03em; color: var(--ink-text-muted);
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: 100px; padding: 7px 14px 7px 10px; margin-bottom: 24px;
}
.hero-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); position: relative; flex-shrink: 0; }
.hero-badge__dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--color-success); opacity: 0.5;
  animation: pulse-dot 1.8s ease-out infinite;
}
@keyframes pulse-dot { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.1); opacity: 0; } }

/* Rotating hero roles ("scrolling text" effect), terminal-style */
.hero-roles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; font-family: var(--font-mono); font-size: 17px; }
.hero-roles__prefix { color: var(--ink-text-muted); margin-right: 8px; }
.hero-roles__rotator { position: relative; display: inline-grid; overflow: hidden; line-height: 1.4; vertical-align: bottom; }
.hero-roles__item {
  grid-row: 1; grid-column: 1;
  white-space: nowrap; font-weight: 600; color: var(--color-accent);
  opacity: 0; transform: translateY(100%);
  transition: opacity .45s ease, transform .45s ease;
}
.hero-roles__item.is-active { opacity: 1; transform: translateY(0); }
.hero-roles__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.hero-roles__cursor {
  display: inline-block; width: 2px; height: 1em; margin-left: 6px;
  background: var(--color-accent); vertical-align: -2px;
  animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-roles__item { opacity: 0; transform: none; display: none; }
  .hero-roles__item.is-active { opacity: 1; display: inline-block; }
  .hero-roles__cursor, .hero-badge__dot::after { animation: none; }
}

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-facts { display: flex; gap: 28px; margin-top: 52px; flex-wrap: wrap; }
.hero-fact strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--color-white); }
.hero-fact span { font-size: 13px; color: var(--ink-text-dim); letter-spacing: 0.02em; }

/* hero-media-specific tweaks (only relevant when a hero image is set) */
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 26px 64px rgba(0,0,0,0.55); border: 1px solid var(--ink-border); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; max-width: 460px; }
}

/* Decorative floating skill chips — shown only when no hero image is set */
.hero-orbit { position: relative; height: 380px; display: none; }
@media (min-width: 881px) { .hero-orbit { display: block; } }
.skill-chip {
  position: absolute; left: var(--x); top: var(--y);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--ink-text); background: var(--ink-surface);
  border: 1px solid var(--ink-border); border-radius: 100px;
  padding: 9px 16px; box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  animation: float-chip 6s ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes float-chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .skill-chip { animation: none; } }

/* =========================================================
   Services grid — bento layout
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 22px;
}
.services-grid .service-card:nth-child(6n+1) { grid-column: span 2; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--glow-primary); border-color: transparent; }
.service-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card .icon-wrap img, .service-card .icon-wrap svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.service-card p { color: var(--color-text-muted); font-size: 14.5px; margin-bottom: 14px; }
.service-card a.more { font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); }

/* Banner-style service card: featured image across the top (services listing pages) */
.service-card--banner { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card--banner .card-banner { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.service-card--banner .card-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.service-card--banner:hover .card-banner img { transform: scale(1.04); }
.service-card--banner .card-banner-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--surface-2));
}
.service-card--banner .card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card--banner h3 { font-size: 18.5px; margin-bottom: 9px; }
.service-card--banner p { color: var(--color-text-muted); font-size: 14.5px; margin-bottom: 14px; }
.service-card--banner .card-foot { margin-top: auto; }

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:nth-child(6n+1) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:nth-child(6n+1) { grid-column: span 1; }
}

/* Service detail page — image caption under the top-aligned featured image */
.service-detail-media { position: sticky; top: 100px; }
.service-image-caption {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border-left: 3px solid var(--color-primary);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
@media (max-width: 880px) { .service-detail-media { position: static; } }

/* =========================================================
   Feature / contact split section
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); position: relative; }
.feature-list { list-style: none; margin-top: 24px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Terminal-style "readout" card — default About visual when no photo is set */
.readout-card {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 64px rgba(0,0,0,0.55);
  font-family: var(--font-mono);
}
.readout-card__bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--ink-surface-2); border-bottom: 1px solid var(--ink-border); }
.readout-card__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-border-strong); }
.readout-card__bar span:nth-child(1) { background: #E0605A; }
.readout-card__bar span:nth-child(2) { background: #E0B23E; }
.readout-card__bar span:nth-child(3) { background: #46B870; }
.readout-card__body { padding: 28px; display: grid; gap: 16px; }
.readout-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.readout-key { color: var(--ink-text-dim); }
.readout-key::before { content: '$ '; color: var(--color-primary); }
.readout-val { color: var(--ink-text); text-align: right; }
.readout-val--accent { color: var(--color-success); }

/* =========================================================
   Forms
   ========================================================= */
.form-card { background: var(--surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--color-heading); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--bg);
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px var(--color-primary-light); }
.field-error { color: #F08A7E; font-size: 12.5px; margin-top: 5px; }
.field-hint { color: var(--color-text-muted); font-size: 12.5px; margin-top: 5px; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 14.5px; border: 1px solid transparent; }
.alert-success { background: rgba(52, 199, 123, 0.12); color: var(--color-success); border-color: rgba(52, 199, 123, 0.3); }
.alert-error { background: rgba(240, 138, 126, 0.12); color: #F08A7E; border-color: rgba(240, 138, 126, 0.3); }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: 100%;
  position: relative;
}
.testimonial-card .stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p.quote { color: var(--color-text); font-size: 15px; }
.testimonial-person { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.testimonial-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 14.5px; color: var(--color-heading); }
.testimonial-person span { font-size: 12.5px; color: var(--color-text-muted); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px; font-family: var(--font-display); font-weight: 600; color: var(--color-heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 20px; color: var(--color-primary); transition: transform .2s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 4px 20px; color: var(--color-text-muted); }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary-deep) 0%, var(--ink-bg-deep) 60%, var(--color-accent-dark) 130%);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--color-white);
}
.cta-banner h3 { color: var(--color-white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; }

/* =========================================================
   Blog
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: var(--surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--color-border-strong); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px; }
.post-card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-dim); margin-bottom: 8px; }
.post-card h3 { font-size: 17px; margin-bottom: 8px; }
.post-card h3 a { color: var(--color-heading); }
.post-card p { font-size: 14px; color: var(--color-text-muted); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body img { border-radius: var(--radius-md); margin: 24px 0; border: 1px solid var(--color-border); }
.article-body h2 { margin-top: 1.6em; }
.article-body p { color: var(--color-text); }
.article-body blockquote { border-left: 4px solid var(--color-primary); padding-left: 18px; color: var(--color-text-muted); font-style: italic; margin: 24px 0; }

.tag-pill { display: inline-block; background: var(--color-primary-light); color: var(--color-primary); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 100px; margin: 2px; }

/* =========================================================
   Pagination
   ========================================================= */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: 14px; color: var(--color-text); }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--bg-deep); color: var(--color-text-muted); position: relative; overflow: hidden; border-top: 1px solid var(--color-border); }
.site-footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.footer-grid h4 { color: var(--color-heading); font-size: 15px; margin-bottom: 18px; }
.footer-logo img { margin-bottom: 16px; }
.footer-grid p { font-size: 14px; color: var(--color-text-muted); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--color-text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--color-heading); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-heading); }
.footer-social a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid var(--color-border); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-heading); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--glow-primary); border-color: transparent; }
.portfolio-card__thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.portfolio-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.portfolio-card:hover .portfolio-card__thumb img { transform: scale(1.06); }
.portfolio-card__fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 38px; }
.portfolio-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,8,9,0.92) 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 18px; opacity: 0; transition: opacity .2s ease;
}
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card__overlay span { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--color-white); }
.portfolio-card__badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  background: var(--color-accent); color: var(--ink-bg);
  padding: 5px 10px; border-radius: 100px;
}
.portfolio-card__body { padding: 22px; }
.portfolio-card__body h3 { font-size: 17px; margin-bottom: 8px; }
.portfolio-card__body p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 12px; }
.portfolio-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 960px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* Homepage "Featured Work" strip reuses .portfolio-card inside a tighter grid */
.featured-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .featured-work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .featured-work-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Generic page / utility
   ========================================================= */
.page-header { position: relative; overflow: hidden; padding: 64px 0; text-align: center; background: var(--ink-bg-deep); }
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--color-white); margin-bottom: 8px; }
.page-header .breadcrumb { font-family: var(--font-mono); font-size: 13px; color: var(--ink-text-dim); }
.page-header .breadcrumb a { color: var(--ink-text-muted); }
.page-header .breadcrumb a:hover { color: var(--color-primary); }
.lazy-fade { opacity: 0; transition: opacity .4s ease; }
.lazy-fade.is-loaded { opacity: 1; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
