/* ==========================================================================
   Base element resets. Header/footer are styled with Tailwind component
   classes (see @layer components in tailwind.input.css).
   Colors come from the uploaded theme tokens.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.15;
  color: var(--foreground);
  margin: 0 0 1rem;
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.375rem; font-weight: 600; }

/* Unlayered rules like this one beat @layer components no matter the
   specificity, so the footer's white heading color needs an explicit
   exception here rather than in tailwind.input.css. */
.site-footer h4 { color: #fff; }

p { margin: 0 0 1rem; color: var(--muted-foreground); }

:where(a) { color: var(--primary); text-decoration: none; transition: color 120ms ease; }
:where(a):hover { color: color-mix(in oklch, var(--primary) 80%, black); }

/* :where(a) above is unlayered, so it beats the .nav-link / .footer-link
   colors set in @layer components no matter their specificity — override here. */
.site-header .nav-link { color: #0c0d10; }
@media (max-width: 900px) {
  .site-header .nav .nav-link { color: #fff; }
}
.site-footer .footer-link { color: #fff; }
.hero__btn--ghost { color: #fff !important; }
.hero__btn--ghost:hover { color: var(--primary) !important; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius); }
::selection { background: var(--primary); color: var(--primary-foreground); }
hr { border: none; border-top: 1px solid var(--border); margin: 0.2rem 0; }

/* Shared layout container */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 300;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.5rem 1rem; border-radius: var(--radius); font-weight: 600;
  transition: top 200ms ease;
}
.skip-link:focus { top: 1rem; }

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

/* ==========================================================================
   Blog post / portfolio item pages, and the contact form.
   Content for these is managed in the admin panel.
   ========================================================================== */

.blog-post { max-width: 46rem; margin: 0 auto 3rem; }
.blog-post__head { margin-bottom: 1.5rem; }
.blog-post__title { font-size: 2.5rem; margin: 0.75rem 0 0.5rem; }
.blog-post__date { color: var(--muted-foreground); font-size: 0.875rem; margin: 0; }
.blog-post__hero {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 2rem; display: block;
}

/* Long-form body: the only place admin-authored HTML is rendered. */
.blog-post__body { font-size: 1.0625rem; line-height: 1.75; }
.blog-post__body > :first-child { margin-top: 0; }
.blog-post__body h2 { font-size: 1.75rem; margin: 2.25rem 0 0.75rem; }
.blog-post__body h3 { font-size: 1.375rem; margin: 1.75rem 0 0.5rem; }
.blog-post__body h4 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.blog-post__body p { margin: 0 0 1.15rem; }
.blog-post__body ul { margin: 0 0 1.15rem; padding-left: 1.35rem; list-style-type: disc; }
.blog-post__body ol { margin: 0 0 1.15rem; padding-left: 1.35rem; list-style-type: decimal; }
.blog-post__body li { margin-bottom: 0.4rem; color: var(--muted-foreground); }
.blog-post__body li::marker { color: var(--foreground); }
.blog-post__body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1rem 0; }
.blog-post__body a { text-decoration: underline; text-underline-offset: 2px; }
.blog-post__body blockquote {
  margin: 1.5rem 0; padding: 0.75rem 0 0.75rem 1.15rem;
  border-left: 3px solid var(--primary);
  color: var(--foreground); font-style: italic;
}
.blog-post__body pre {
  background: #1a1a1c; padding: 1rem; border-radius: var(--radius);
  overflow-x: auto; margin: 0 0 1.15rem;
}
.blog-post__body pre code { color: #e4e4e7; }
.blog-post__body code { font-family: var(--font-mono, monospace); font-size: 0.9em; }

/* ---------- highlight.js token colors ---------- */
.blog-post__body .hljs-keyword, .blog-post__body .hljs-selector-tag, .blog-post__body .hljs-literal,
.blog-post__body .hljs-section, .blog-post__body .hljs-link { color: #c586c0; }
.blog-post__body .hljs-string, .blog-post__body .hljs-attr, .blog-post__body .hljs-addition,
.blog-post__body .hljs-regexp { color: #ce9178; }
.blog-post__body .hljs-title, .blog-post__body .hljs-name, .blog-post__body .hljs-symbol,
.blog-post__body .hljs-bullet, .blog-post__body .hljs-built_in, .blog-post__body .hljs-selector-id { color: #dcdcaa; }
.blog-post__body .hljs-comment, .blog-post__body .hljs-quote, .blog-post__body .hljs-deletion { color: #6a9955; font-style: italic; }
.blog-post__body .hljs-number, .blog-post__body .hljs-meta, .blog-post__body .hljs-variable { color: #b5cea8; }
.blog-post__body .hljs-type, .blog-post__body .hljs-class .hljs-title { color: #4ec9b0; }
.blog-post__body .hljs-attribute, .blog-post__body .hljs-template-variable { color: #9cdcfe; }
.blog-post__body .hljs-tag { color: #569cd6; }
.blog-post__body .hljs-emphasis { font-style: italic; }
.blog-post__body .hljs-strong { font-weight: 700; }
.blog-post__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.15rem; display: block; overflow-x: auto; }
.blog-post__body th, .blog-post__body td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.blog-post__body th { background: var(--muted); font-weight: 600; }
.blog-post__foot {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.blog-post__actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.post-share { display: flex; align-items: center; gap: 0.6rem; }
.post-share__label {
  font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground);
  margin-right: 0.15rem;
}
.post-share__btn {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground);
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.post-share__btn:hover {
  color: #fff; border-color: var(--primary); background: var(--primary);
  transform: translateY(-2px);
}
.post-share__btn svg { width: 1.05rem; height: 1.05rem; }

.pill {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.6;
}
.pill--tag { background: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); }

/* ---------- contact ---------- */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem; align-items: stretch; margin-bottom: 3rem;
}
.contact-intro { height: 100%; }
.contact-intro__img {
  width: 100%; height: 100%; min-height: 22rem;
  object-fit: cover; display: block;
  border-radius: calc(var(--radius) * 2);
}

.contact-form-wrap {
  border-radius: calc(var(--radius) * 2); padding: 1.75rem;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--primary), #0c0d10) border-box;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--foreground); }
.form-field span { color: var(--primary); }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.65rem 0.8rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); color: var(--foreground);
  font: inherit; font-size: 0.9375rem;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 20%, transparent);
}

/* Honeypot — hidden from people, still reachable by bots. Not display:none,
   which better-built bots skip. */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.form-note {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.9rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem;
}
.form-note svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin-top: 0.1rem; }
.form-note p { margin: 0; font-size: 0.875rem; color: inherit; }
.form-note strong { display: block; margin-bottom: 0.15rem; }
.form-note--ok  { background: color-mix(in oklch, green 12%, transparent); color: green; border: 1px solid color-mix(in oklch, green 30%, transparent); }
.form-note--err { background: color-mix(in oklch, red 10%, transparent);   color: var(--destructive, red); border: 1px solid color-mix(in oklch, red 25%, transparent); }

/* Active nav link — accent color + underline. */
.site-header .nav-link.is-active {
  color: #0c0d10;
}
@media (max-width: 900px) {
  .site-header .nav .nav-link.is-active { color: #fff; }
}
.site-header .nav-link.is-active::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.15rem;
  height: 2px; border-radius: 2px; background: var(--primary);
}
.site-header .nav-link { position: relative; }
@media (max-width: 1024px) {
  /* mobile drawer: drop the underline, keep the fill/color */
  .site-header .nav-link.is-active::after { display: none; }
}

/* ---------- Detail page (blog post + portfolio case study) ---------- */
.blog-post { max-width: 48rem; }
.blog-post__lead {
  font-size: 1.2rem; line-height: 1.6; color: var(--muted-foreground);
  margin: 0.75rem 0 0;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.1rem;
  font-size: 0.9rem; color: var(--muted-foreground);
}
.post-meta__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-meta__item svg { width: 1rem; height: 1rem; }

/* Ghost button — secondary action next to the primary .btn-cta */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem; height: 2.5rem;
  padding: 0 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--foreground);
  transition: background-color .15s, border-color .15s;
}
.btn-ghost:hover { background: var(--muted); border-color: var(--muted-foreground); }
.btn-ghost svg { width: 1rem; height: 1rem; }

/* Portfolio case-study facts strip */
.case-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px; margin: 0 0 2rem; padding: 0;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.case-facts__item { background: var(--card, var(--background)); padding: 1rem 1.15rem; }
.case-facts dt {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted-foreground); margin-bottom: 0.3rem;
}
.case-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.case-facts dd a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--primary); }
.case-facts dd a svg { width: 0.9rem; height: 0.9rem; }

/* Related posts / more projects grid at the bottom of a detail page */
.post-related {
  max-width: 72rem; margin: 3.5rem auto 0;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.post-related__title { font-size: 1.5rem; margin: 0 0 1.5rem; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-intro__img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .blog-post__title { font-size: 1.875rem; }
}

/* ---------- Status page (thank-you, 404) ---------- */
.status-page { max-width: 34rem; margin: 2rem auto 5rem; text-align: center; }
.status-page__illustration {
  width: 100%; max-width: 280px; height: auto; margin: 0 auto 1.5rem; display: block;
}
.status-page__eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  font-weight: 600; color: var(--primary); margin: 0 0 0.5rem;
}
.status-page__title { font-size: 2rem; margin-bottom: 0.75rem; }
.status-page__text { max-width: 30rem; margin: 0 auto 2rem; }
.status-page__actions {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem;
}
.status-page__links {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem;
  justify-content: center; flex-wrap: wrap; font-size: 0.9rem;
}

/* ---------- Enquiry modal (homepage) ---------- */
.enquiry-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.enquiry-modal[hidden] { display: none; }
.enquiry-modal__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in oklch, black 55%, transparent);
  backdrop-filter: blur(2px);
  animation: eq-fade 200ms ease;
}
.enquiry-modal__panel {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  width: min(880px, 100%); max-height: calc(100dvh - 2rem); overflow: auto;
  border-radius: calc(var(--radius) * 2.5);
  background: #1a1a1a url('/assets/images/cta-bg.avif') center / cover no-repeat;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  animation: eq-pop 220ms cubic-bezier(0.16,1,0.3,1);
}
.enquiry-modal__close {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.15); color: #fff;
  transition: background 150ms ease;
}
.enquiry-modal__close:hover { background: rgba(255,255,255,0.28); }
.enquiry-modal__close svg { width: 1.15rem; height: 1.15rem; }

.enquiry-modal__aside {
  padding: 2.25rem; display: flex; flex-direction: column;
  justify-content: center; color: #fff;
}
.enquiry-modal__img { width: 8rem; height: auto; margin-bottom: 1.25rem; }
.enquiry-modal__heading { color: #fff; font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.6rem; }
.enquiry-modal__sub { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; }

.enquiry-modal__card {
  background: var(--card, #fff);
  border-radius: calc(var(--radius) * 2);
  margin: 0.9rem; padding: 1.75rem;
}
.enquiry-modal__form .form-field { margin-bottom: 0.85rem; }

.enquiry-modal__done { text-align: center; padding: 1.5rem 0; }
.enquiry-modal__done h3 { margin: 0.75rem 0 0.4rem; }
.enquiry-modal__done p { margin: 0; color: var(--muted-foreground); }
.enquiry-modal__done-icon svg { width: 3rem; height: 3rem; color: green; }

@keyframes eq-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes eq-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .enquiry-modal__panel { grid-template-columns: 1fr; }
  .enquiry-modal__aside { padding: 1.75rem 1.75rem 0.25rem; text-align: center; align-items: center; }
  .enquiry-modal__img { width: 5.5rem; margin-bottom: 0.75rem; }
  .enquiry-modal__heading { font-size: 1.35rem; }
}

/* ---------- "What we can do for you" list ---------- */
.can-do__title {
  text-align: center; font-weight: 800; letter-spacing: -0.02em;
  text-transform: uppercase; font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 2rem; color: color-mix(in oklch, var(--muted-foreground) 70%, transparent);
}
.can-do__title span { color: var(--primary); }

.can-do {
  border-radius: calc(var(--radius) * 2.5); overflow: hidden;
  background: #0f1220; /* dark panel, same in light & dark theme */
}
.can-do__row {
  display: grid; grid-template-columns: 2.75rem 1.4fr 1.6fr;
  gap: 1rem 1.5rem; align-items: start;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color 150ms ease;
}
.can-do__row:hover { background: rgba(255,255,255,0.05); }
.can-do__icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 0.85rem; border: 1.5px solid #fff; color: #fff;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.can-do__icon svg { width: 1.3rem; height: 1.3rem; }
.can-do__row:hover .can-do__icon {
  color: var(--primary); border-color: var(--primary);
  background: color-mix(in oklch, var(--primary) 15%, transparent);
}
.can-do__row-title {
  margin: 0; color: #fff; font-weight: 700; line-height: 1.15;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
}
.can-do__row-desc {
  margin: 0.35rem 0 0; color: rgba(255,255,255,0.65);
  font-size: 0.9rem; line-height: 1.55;
}

.can-do__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  background: var(--primary);
}
.can-do__cta-label {
  color: var(--primary-foreground); font-weight: 700; margin-right: auto;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
}
.can-do__cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.6); color: #fff;
  font-weight: 600; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.03em; transition: background 150ms ease, color 150ms ease;
}
.can-do__cta-btn:hover { background: #fff; color: var(--primary); }
.can-do__cta-btn svg { width: 1rem; height: 1rem; }
.can-do__cta-worth {
  color: rgba(255,255,255,0.7); text-decoration: line-through;
  font-size: 0.85rem; font-style: italic;
}

@media (max-width: 640px) {
  .can-do__row { grid-template-columns: 2.25rem 1fr; }
  .can-do__icon { width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; }
  .can-do__icon svg { width: 1.1rem; height: 1.1rem; }
  .can-do__row-desc { grid-column: 2; }
  .can-do__cta-label { margin-right: 0; width: 100%; }
}

/* ---------- "Built on Trust" numbered-card band ---------- */
/* True full-width: rendered as a direct sibling of .container (not nested
   inside it), so it's just a 100%-wide block — no vw/negative-margin tricks
   that can trigger a horizontal scrollbar. */
.trust-section {
  width: 100%;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  background: #1a1a1a url('/assets/images/cta-bg.avif') center / cover no-repeat;
}
/* .trust-section__inner reuses .container for the same centered max-width. */
.trust-section__title {
  color: #fff; font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 0.75rem;
}
.trust-section__subtitle {
  color: rgba(255,255,255,0.85); max-width: 38rem; margin: 0 auto 2.5rem;
  font-size: 1rem; line-height: 1.6;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem; text-align: left;
}
.trust-card {
  position: relative; border-radius: calc(var(--radius) * 2);
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04);
  padding: 1.5rem 1.35rem 1.75rem;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.trust-card:hover {
  background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.35);
  transform: translateY(-3px);
}
.trust-card__num { font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1; }
.trust-card__arrow {
  position: absolute; top: 1.35rem; right: 1.35rem;
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); color: #fff;
}
.trust-card__arrow svg { width: 0.95rem; height: 0.95rem; }
.trust-card__title {
  margin: 1.1rem 0 0; color: #fff; font-weight: 700;
  font-size: 1.05rem; line-height: 1.35;
}
.trust-card__desc {
  margin: 0.5rem 0 0; color: rgba(255,255,255,0.7);
  font-size: 0.875rem; line-height: 1.55;
}
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion (native <details>/<summary>, no JS) ---------- */
.faq-list {
  max-width: 64rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem; align-items: start;
}
@media (max-width: 640px) {
  .faq-list { grid-template-columns: 1fr; }
}
.faq-item {
  border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  background: var(--card); padding: 0 1.25rem;
}
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--foreground); line-height: 1.4;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__icon {
  width: 1.15rem; height: 1.15rem; flex: 0 0 auto; color: var(--primary);
  transition: transform 200ms ease;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  margin: 0 0 1.1rem; color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.6;
}

/* ---------- About page: alternating image/copy rows ---------- */
/* .about-media is the placeholder shown until real photography is dropped in;
   swap its contents for an <img> at that point. */
.about-media {
  border-radius: calc(var(--radius) * 2.5);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, color-mix(in oklch, var(--primary) 12%, var(--card)), var(--card));
}
.about-media__ph {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 2rem;
}
.about-media__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Footer theme toggle ---------- */
.footer-theme-toggle {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.footer-theme-toggle:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
.footer-theme-toggle svg { width: 1.05rem; height: 1.05rem; }

/* ---------- Preloader (shared with admin/admin.css .editor-splash) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(90deg, #7a2e0a 0%, #3a1505 55%, #1a1a1c 100%);
  color: #fff; font-weight: 600; font-size: 14px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader--done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__morph {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #ffffff33; border-top-color: #fff;
  animation: preloader-spin .7s linear infinite;
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }
