/*
Theme Name:   Aigbedion
Theme URI:    https://github.com/
Author:       Built for Aigbedion Oghomwen
Description:  A fast, hand-coded one-page portfolio theme for a senior backend engineer. No page builder, no jQuery, no external font requests.
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  aigbedion
Tags:         one-page, portfolio, accessibility-ready, custom-colors
*/

/* ==========================================================================
   1. Design tokens
   Fonts are system stacks on purpose: no Google Fonts request, which keeps
   the site fast and avoids the GDPR exposure of leaking visitor IPs to a
   third party (a real concern for a site hosted and read in Germany).
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg:          #ffffff;
  --bg-alt:      #f4f7fb;
  --surface:     #ffffff;
  --surface-alt: #f8fafc;
  --border:      #e3e9f2;
  --border-firm: #cfd9e8;
  --text:        #0f1b2d;
  --text-muted:  #55637c;
  --accent:      #1857b6;
  --accent-hover:#134699;
  --accent-soft: #e9f0fc;
  --accent-ring: rgba(24, 87, 182, 0.28);
  --shadow-sm:   0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.05);
  --shadow-md:   0 4px 12px rgba(15, 27, 45, 0.07), 0 12px 28px rgba(15, 27, 45, 0.06);
  --shadow-lg:   0 18px 50px rgba(15, 27, 45, 0.12);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);

  --header-h: 68px;
}

/* Dark palette. Applied when the OS asks for it, unless the visitor has
   explicitly chosen light via the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0a1120;
    --bg-alt:      #0e1729;
    --surface:     #121d31;
    --surface-alt: #16233a;
    --border:      #22304a;
    --border-firm: #2f405f;
    --text:        #e8edf6;
    --text-muted:  #98a6bf;
    --accent:      #74a9f2;
    --accent-hover:#93bdf7;
    --accent-soft: #16243d;
    --accent-ring: rgba(116, 169, 242, 0.35);
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.3);
    --shadow-lg:   0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

/* Manual override always wins over the OS preference, in both directions. */
:root[data-theme="dark"] {
  --bg:          #0a1120;
  --bg-alt:      #0e1729;
  --surface:     #121d31;
  --surface-alt: #16233a;
  --border:      #22304a;
  --border-firm: #2f405f;
  --text:        #e8edf6;
  --text-muted:  #98a6bf;
  --accent:      #74a9f2;
  --accent-hover:#93bdf7;
  --accent-soft: #16243d;
  --accent-ring: rgba(116, 169, 242, 0.35);
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 18px 50px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 650;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section + .section { border-top: 1px solid transparent; }

.section__head { margin-bottom: clamp(2rem, 5vw, 3.25rem); max-width: 60ch; }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section__title { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }

.section__lede {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg); /* Fallback where color-mix() is unsupported. */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-weight: 680;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand__mark {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
}
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.905rem;
  font-weight: 520;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__link:hover { color: var(--text); background: var(--surface-alt); }
.nav__link.is-active { color: var(--accent); background: var(--accent-soft); }

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff !important;
  font-size: 0.905rem;
  font-weight: 580;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav__cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-left: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-firm); }
.theme-toggle svg { width: 17px; height: 17px; }

/*
 * The icon shows the theme you will get by clicking, not the one you are in —
 * matching the button's own label ("Switch to dark/light theme"). So light mode
 * offers a moon, and dark mode offers a sun.
 */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* The :not() keeps an explicit light choice winning over the OS preference. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__link { padding: 0.7rem 0.9rem; font-size: 1rem; }
  .nav__cta { margin: 0.5rem 0 0; text-align: center; padding: 0.75rem 1rem; }
  .header-tools { display: flex; align-items: center; gap: 0.5rem; }
}

.header-tools { display: flex; align-items: center; gap: 0.4rem; }

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 6.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 12%, var(--accent-soft) 0%, transparent 62%),
    radial-gradient(45% 45% at 8% 88%, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.hero > .container { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.83rem;
  font-weight: 520;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.hero__status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.hero__name {
  font-size: clamp(2.4rem, 6.2vw, 4rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero__role {
  margin-top: 0.7rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 560;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero__pitch {
  margin-top: 1.15rem;
  max-width: 52ch;
  font-size: 1.075rem;
  color: var(--text-muted);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta-item svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.945rem;
  font-weight: 570;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-firm);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Portrait */
.hero__portrait { position: relative; justify-self: center; width: min(100%, 360px); }

.hero__portrait-frame {
  position: relative;
  z-index: 1; /* Sits above the offset accent rule below. */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-alt);
}
.hero__portrait-frame img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
}

/* Offset accent rule behind the photo — quiet visual anchor, no gimmick. */
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: 0.35;
  z-index: 0; /* Not -1: that would escape this stacking context and hide behind the hero gradient. */
}

/* Credibility strip */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
}
.stat__value {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  font-weight: 690;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat__label {
  margin-top: 0.3rem;
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { grid-row: 1; width: min(100%, 240px); justify-self: start; }
  .hero__portrait::after { inset: 1rem -1rem -1rem 1rem; }
}
@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ==========================================================================
   6. About
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
.about__body { font-size: 1.05rem; color: var(--text-muted); }
.about__body strong { color: var(--text); font-weight: 600; }

.facts {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
}
.facts li:last-child { border-bottom: 0; }
.facts dt, .facts .facts__key {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.facts .facts__val { font-weight: 570; text-align: right; }

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

/* ==========================================================================
   7. Skills
   ========================================================================== */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.1rem;
}

.skill-card {
  padding: 1.5rem 1.5rem 1.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.skill-card:hover {
  border-color: var(--border-firm);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.99rem;
  font-weight: 620;
  margin-bottom: 1.05rem;
}
.skill-card__title svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; }
.tags li {
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 0.785rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   8. Experience timeline
   ========================================================================== */

.timeline { list-style: none; position: relative; }

.timeline__item {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
}
.timeline__item:last-child { padding-bottom: 0; }

/* Vertical rail */
.timeline__item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: 0;
  width: 1px;
  background: var(--border-firm);
}
.timeline__item:last-child::before { display: none; }

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline__item:first-child .timeline__marker {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}
.timeline__period { color: var(--accent); font-weight: 600; }
.timeline__meta-sep { opacity: 0.4; }

.timeline__role { font-size: clamp(1.1rem, 2.3vw, 1.3rem); }

.timeline__company {
  margin-top: 0.3rem;
  font-size: 0.985rem;
  font-weight: 560;
  color: var(--text-muted);
}

.timeline__blurb {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  padding-left: 0.9rem;
  border-left: 2px solid var(--border-firm);
}

.timeline__points { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.6rem; }
.timeline__points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.955rem;
  color: var(--text-muted);
}
.timeline__points li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.timeline__points strong { color: var(--text); font-weight: 620; }

/* ==========================================================================
   9. Credentials (certifications + education)
   ========================================================================== */

.creds {
  display: grid;
  /*
   * 300px gives three columns in the 1040px content width, so five credentials
   * land as 3 + 2 rather than the lopsided 4 + 1 a narrower minimum produces.
   * It also leaves room for a badge image alongside the title.
   */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.1rem;
}

.cred-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cred-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cred-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cred-card__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.cred-card__icon svg { width: 18px; height: 18px; }

.cred-card__year {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
}

.cred-card__badge {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}

.cred-card__title { font-size: 1rem; font-weight: 620; line-height: 1.35; }
.cred-card__issuer { font-size: 0.895rem; color: var(--text-muted); }

/* Pushed to the bottom so cards of differing text length align on this row. */
.cred-card__verify {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.83rem;
  font-weight: 550;
  color: var(--accent);
  text-decoration: none;
}
.cred-card__verify:hover { text-decoration: underline; }
.cred-card__verify svg { width: 14px; height: 14px; }

/* ==========================================================================
   10. Contact
   ========================================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.contact__aside p { color: var(--text-muted); font-size: 1.03rem; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
  list-style: none;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-firm);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.915rem;
  font-weight: 540;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

/* Form */
.form {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.field label {
  font-size: 0.855rem;
  font-weight: 570;
  color: var(--text);
}
.field .req { color: var(--accent); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border-firm);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 132px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 0.65; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Honeypot — hidden from people, visible to naive bots. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form__note {
  margin-top: 0.9rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.form__submit { width: 100%; justify-content: center; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.35rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  border: 1px solid;
}
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 0.15rem; }
.notice--ok {
  background: rgba(22, 163, 74, 0.1);
  background: color-mix(in srgb, #16a34a 10%, transparent);
  border-color: rgba(22, 163, 74, 0.35);
  border-color: color-mix(in srgb, #16a34a 35%, transparent);
  color: #15803d;
}
.notice--err {
  background: rgba(220, 38, 38, 0.1);
  background: color-mix(in srgb, #dc2626 10%, transparent);
  border-color: rgba(220, 38, 38, 0.35);
  border-color: color-mix(in srgb, #dc2626 35%, transparent);
  color: #b91c1c;
}
:root[data-theme="dark"] .notice--ok { color: #4ade80; }
:root[data-theme="dark"] .notice--err { color: #f87171; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notice--ok { color: #4ade80; }
  :root:not([data-theme="light"]) .notice--err { color: #f87171; }
}

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

/* ==========================================================================
   10b. Prose (standalone pages)
   ========================================================================== */

.prose {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.prose h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.25rem;
  color: var(--text);
}
.prose h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.05rem;
  color: var(--text);
}
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.25rem; padding-left: 0.5rem; }
.prose li { margin-bottom: 0.45rem; padding-left: 0.25rem; }
.prose strong { color: var(--text); font-weight: 620; }
.prose a { text-decoration: underline; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
  padding-block: 2.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__links { display: flex; gap: 1.25rem; list-style: none; }

/* ==========================================================================
   12. Scroll reveal
   ========================================================================== */

/*
 * Scoped to .js deliberately. The content must be readable when scripting is
 * unavailable, blocked, or simply broken — hiding it by default would mean a
 * blank page for anyone whose JavaScript never runs, including some crawlers.
 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Motion-sensitive visitors get the content, not the choreography. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   13. WordPress admin bar offset & print
   ========================================================================== */

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media print {
  .site-header, .site-footer, .hero__actions, .form, .theme-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1.5rem; break-inside: avoid; }
  a { text-decoration: none; color: #000; }
}
