/* =========================
   DESIGN TOKENS
========================= */

:root {
  --bg: #0b131c;
  --bg-soft: #111e2d;
  --text: #edf3fb;
  --muted: #a9b7c7;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(175, 209, 255, 0.24);
  --accent: #29c7d8;
  --accent-2: #f39b6d;
  --focus: #b9f6ff;
  --radius: 16px;
  --pill: 999px;
  --shadow: 0 18px 48px rgba(2, 10, 18, 0.35);
}

html.light {
  --bg: #f5f8fc;
  --bg-soft: #eef3fa;
  --text: #0f172a;
  --muted: #475569;
  --surface: rgba(0, 0, 0, 0.04);
  --surface-hover: rgba(0, 0, 0, 0.08);
  --border: rgba(15, 23, 42, 0.12);
  --accent: #0891b2;
  --accent-2: #d97706;
  --focus: #0891b2;
  --shadow: 0 12px 32px rgba(30, 54, 87, 0.08);
}

html {
  color-scheme: dark;
}

html.light {
  color-scheme: light;
}

/* Accessibility Features */
:root {
  --text-scale: 1;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("/assets/fonts/OpenDyslexic-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("/assets/fonts/OpenDyslexic-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("/assets/fonts/OpenDyslexic-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("/assets/fonts/OpenDyslexic-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html {
  font-size: calc(100% * var(--text-scale));
}

html.high-contrast {
  --text: #000000;
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --muted: #1a1a1a;
  --surface: #ffffff;
  --surface-hover: #f2f2f2;
  --border: #000000;
  --accent: #0047ab;
  --accent-2: #000000;
  --focus: #000000;
  --shadow: none;
}

html.high-contrast body::before,
html.high-contrast body::after,
html.screen-reader-mode body::before,
html.screen-reader-mode body::after {
  display: none;
}

html.high-contrast .nav-glass,
html.high-contrast .card,
html.high-contrast .profile-embed,
html.high-contrast .contact-method,
html.high-contrast .contact-methods,
html.high-contrast input,
html.high-contrast textarea,
html.high-contrast .footer-links a,
html.high-contrast .stat-pill,
html.high-contrast .tag,
html.high-contrast .profile-embed__panel {
  background: #ffffff;
  box-shadow: none;
}

html.high-contrast .btn.primary,
html.high-contrast .nav-links a.active,
html.high-contrast .a11y-launcher {
  background: #000000;
  color: #ffffff;
}

html.high-contrast.light {
  --text: #000000;
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --muted: #1a1a1a;
  --surface: #ffffff;
  --surface-hover: #f2f2f2;
  --border: #000000;
  --accent: #0047ab;
  --accent-2: #000000;
  --focus: #000000;
  --shadow: none;
}

html.high-contrast {
  color-scheme: light;
}

html.reduced-motion {
  scroll-behavior: auto;
}

html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  animation-duration: 0ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}

html.screen-reader-mode {
  scroll-behavior: auto;
}

html.screen-reader-mode a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

html.screen-reader-mode .eyebrow {
  text-transform: none;
  letter-spacing: 0.04em;
}

html.screen-reader-mode .nav-glass,
html.screen-reader-mode .card,
html.screen-reader-mode .profile-embed,
html.screen-reader-mode .contact-method,
html.screen-reader-mode .profile-embed__panel,
html.screen-reader-mode footer {
  box-shadow: none;
}

html.open-dyslexic,
html.open-dyslexic body,
html.open-dyslexic button,
html.open-dyslexic input,
html.open-dyslexic textarea,
html.open-dyslexic select {
  font-family: "OpenDyslexic", "IBM Plex Sans", "Segoe UI", sans-serif !important;
}

html.open-dyslexic body * {
  font-family: inherit !important;
}

html.open-dyslexic .brand-name,
html.open-dyslexic .hero-content h1,
html.open-dyslexic .section-heading h2,
html.open-dyslexic .card h2,
html.open-dyslexic .card h3,
html.open-dyslexic .profile-embed__value,
html.open-dyslexic .a11y-panel__title {
  letter-spacing: 0.01em;
}

.bionic-word {
  display: inline;
}

.bionic-word__lead {
  font-weight: 700;
}

html.screen-reader-mode .bionic-word__lead,
html.high-contrast .bionic-word__lead {
  font-weight: 700;
}

/* =========================
   BASE
========================= */

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

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 10% 15%, rgba(41, 199, 216, 0.24), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(243, 155, 109, 0.16), transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(99, 164, 232, 0.12), transparent 50%),
    linear-gradient(140deg, var(--bg), var(--bg-soft));
}

body::after {
  z-index: -1;
  opacity: 0.4;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

a {
  color: inherit;
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  body {
    cursor: url("/assets/cursors/arrow.cur"), auto;
  }

  a,
  button,
  .brand-link,
  [role="button"] {
    cursor: url("/assets/cursors/hand.cur"), auto;
  }

  input,
  textarea,
  select,
  label {
    cursor: url("/assets/cursors/ibeam.cur"), text;
  }

  abbr[title],
  [aria-describedby] {
    cursor: url("/assets/cursors/help.cur"), help;
  }

  [disabled],
  [aria-disabled="true"] {
    cursor: url("/assets/cursors/no.cur"), not-allowed;
  }

  body.is-loading {
    cursor: url("/assets/cursors/appstarting.ani"), progress;
  }

  body.is-waiting,
  body.is-waiting * {
    cursor: url("/assets/cursors/wait.ani"), wait;
  }
}

.brand-link {
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.brand-link:focus-visible {
  border-radius: 14px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: 0 0 12px 12px;
}

.skip-link:focus {
  left: 1rem;
  z-index: 1000;
}

/* =========================
   NAVIGATION
========================= */

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0.85rem 1rem;
}

.nav-glass {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 74%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  flex-wrap: nowrap;
  width: auto !important;
  max-width: calc(100% - 2rem);
  margin: 0 auto;
}

html.light .nav-glass {
  background: rgba(255, 255, 255, 0.8);
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(30, 54, 87, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
  padding: 0.15rem 0.25rem 0.15rem 0.15rem;
  border-radius: 16px;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(41, 199, 216, 0.14);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
  display: grid;
  gap: 0.02rem;
  transform: translateY(-0.02rem);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.7rem;
  line-height: 1.18;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-left: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.42rem 0.8rem;
  border-radius: var(--pill);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a,
.theme-toggle,
.menu-toggle,
.btn,
.a11y-launcher,
.a11y-panel__action,
.a11y-panel__text button,
.a11y-panel__close {
  min-height: 44px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.nav-links a:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
.a11y-launcher:focus-visible,
.a11y-panel__action:focus-visible,
.a11y-panel__text button:focus-visible,
.a11y-panel__close:focus-visible,
.footer-links a:focus-visible,
.contact-list a:focus-visible,
.brand-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 80%, white);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent);
}

.nav-links a.active {
  color: var(--bg);
  background: linear-gradient(130deg, var(--accent), #87edf4);
}

html.light .nav-links a.active {
  color: #ffffff;
  background: linear-gradient(130deg, #0891b2, #06b6d4);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: var(--pill);
  padding: 0.42rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 160ms ease, border-color 160ms ease, transform 100ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.theme-toggle,
.menu-toggle,
.btn,
.a11y-launcher,
.a11y-panel__action,
.a11y-panel__text button,
.a11y-panel__close {
  touch-action: manipulation;
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 75%, transparent);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: all 180ms ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =========================
   MAIN LAYOUT
========================= */

main {
  display: block;
}

.hero-gradient {
  padding: 5.8rem 1rem 4.2rem;
  text-align: center;
}

.hero-content {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero-content h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.05rem, 4.1vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--pill);
  border: 1px solid transparent;
  padding: 0.62rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(130deg, var(--accent), #87edf4);
  border: none;
  padding: 0.62rem 1.2rem;
  border-radius: var(--pill);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: var(--bg);
}

.btn.secondary {
  color: var(--text);
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

html.light .btn.primary {
  background: linear-gradient(130deg, #0891b2, #06b6d4);
  color: #ffffff;
}

.cutout-text {
  position: relative;
  color: var(--bg); /* color of the "cut out" area = page background */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(130deg, var(--accent), #87edf4);
  font-weight: 600;
}

html.light .cutout-text {
  color: var(--bg);
  background-image: linear-gradient(130deg, #0891b2, #06b6d4);
}

html.light .btn.secondary {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #ffffff;
}

.section {
  padding: 0 0 2.2rem;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 1rem;
  text-align: center;
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.12;
  margin-bottom: 0.45rem;
}

.section-heading p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

html.light .card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(30, 54, 87, 0.05);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card .project-link {
  margin-top: auto;
  padding-top: 1rem;
}

.card h2,
.card h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.card .btn {
  margin-top: auto;
  padding-top: 1rem;
}

.card p,
.card li {
  color: var(--muted);
}

.cv-download {
  text-align: center;
}

.cv-download h3 {
  margin-bottom: 1rem;
}

.cv-download p {
  margin-bottom: 1rem;
}

.project-link {
  margin-top: 1rem;
}

.card ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.stat-pill {
  padding: 0.4rem 0.78rem;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  font-size: 0.8rem;
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline-item {
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  padding-left: 0.9rem;
}

.muted {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.58rem;
  border-radius: var(--pill);
  font-size: 0.72rem;
  border: 1px solid var(--border);
  color: var(--text);
}

.contact-list p,
.contact-list a {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a[href*="github.com"],
.contact-list a[href*="tryhackme.com"] {
  color: var(--text);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.contact-methods {
  display: grid;
  gap: 0.65rem;
}

.contact-method {
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.contact-method span {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-method a,
.contact-method strong {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-method a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.profile-embed {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface) 84%, transparent)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 20%, transparent), transparent 40%);
}

.profile-embed__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-embed__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #04131a;
  background: linear-gradient(145deg, var(--accent), #8deef5 60%);
  flex-shrink: 0;
}

.profile-embed__meta {
  color: var(--muted);
  margin-top: 0.2rem;
}

.profile-embed__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-embed__stat {
  padding: 0.85rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  display: grid;
  gap: 0.2rem;
}

.profile-embed__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.profile-embed__label {
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-embed__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-embed__panel {
  padding: 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.profile-embed__panel h3 {
  margin-bottom: 0.35rem;
}

.profile-embed__panel ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.profile-embed__actions {
  justify-content: flex-start;
}

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

form {
  display: grid;
  gap: 0.72rem;
}

label {
  font-size: 0.82rem;
  color: var(--muted);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  color: var(--text);
  padding: 0.62rem 0.72rem;
}

html.light input,
html.light textarea {
  background: #ffffff;
  border-color: #d1d5db;
}

textarea {
  resize: vertical;
  min-height: 7.4rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.form-hint {
  font-weight: 400;
  font-size: 0.875em;
  color: var(--muted);
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 75%, transparent);
  outline-offset: 2px;
}

html.high-contrast input:focus-visible,
html.high-contrast textarea:focus-visible,
html.high-contrast button:focus-visible,
html.high-contrast a:focus-visible {
  outline: 4px solid #000000;
  outline-offset: 3px;
}

footer {
  color: var(--muted);
  padding: 2.2rem 1rem 3.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.footer-inner > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner > div:first-child {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-inner > div p {
  margin: 0;
  font-size: 0.875rem;
}

.wcag-badge {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 160ms ease, text-decoration 160ms ease;
}

.prose-content p {
  margin-bottom: 1rem;
}

.prose-content section + section {
  margin-top: 2rem;
}

.wcag-badge:hover,
.wcag-badge:focus-visible {
  color: var(--text);
  text-decoration: underline;
}



.fade-in {
  opacity: 1;
  transform: none;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Accessibility Widget */
.a11y-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1002;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.a11y-launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 30%, #2e80e6 0%, #1554ad 56%, #0a3c7a 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(5, 14, 28, 0.28);
  pointer-events: none;
}

.a11y-launcher__icon {
  width: 88%;
  height: 88%;
  display: block;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  box-sizing: border-box;
  object-fit: contain;
}

.a11y-launcher:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.a11y-launcher:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 75%, transparent);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 75%, transparent);
}

.a11y-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.7rem;
  z-index: 1001;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 86%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.98);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

html.light .a11y-panel {
  background: rgba(255, 255, 255, 0.92);
}

.a11y-panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.a11y-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.a11y-panel__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.a11y-panel__subtitle {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.a11y-panel__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.a11y-panel__close:hover,
.a11y-panel__close:focus-visible,
.a11y-panel__action:hover,
.a11y-panel__action:focus-visible,
.a11y-panel__text button:hover,
.a11y-panel__text button:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
}

.a11y-panel__section {
  display: grid;
  gap: 0.55rem;
}

.a11y-panel__section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.a11y-panel__actions,
.a11y-panel__text {
  display: grid;
  gap: 0.5rem;
}

.a11y-panel__action,
.a11y-panel__text button {
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  cursor: pointer;
  padding: 0.55rem 0.8rem;
  font: inherit;
  text-align: left;
}

.a11y-panel__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.a11y-panel__action[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
}

.a11y-panel__text {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a11y-panel__text button {
  text-align: center;
}

.a11y-status {
  min-height: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

html.screen-reader-mode .a11y-launcher,
html.screen-reader-mode .a11y-panel,
html.high-contrast .a11y-launcher,
html.high-contrast .a11y-panel {
  box-shadow: none;
}

@media (max-width: 980px) {
  .nav-glass {
    border-radius: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1rem, 1120px);
  }

  .hero-gradient {
    padding: 3.6rem 1rem 2.6rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.08;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .eyebrow {
    font-size: 0.75rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .section-heading {
    text-align: left;
  }

  .card {
    padding: 1.2rem;
  }

  .card h2,
  .card h3 {
    font-size: 1.1rem;
  }

  .brand-sub {
    display: none;
  }

  .brand {
    flex: 1 1 auto;
    padding-right: 0;
  }

  .brand-text {
    overflow: hidden;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-wrapper {
    position: sticky;
    padding: 0.65rem 0.5rem;
  }

  .nav-glass {
    position: relative;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.6rem;
    flex-wrap: nowrap;
    width: min(100%, 1120px) !important;
    max-width: none;
    border-radius: 18px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    margin: 0;
    background: var(--bg-soft);
    backdrop-filter: blur(12px);
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    gap: 0.35rem;
    z-index: 998;
    box-shadow: var(--shadow);
  }

  html.light .nav-links {
    background: var(--bg-soft);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.7rem 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn {
    padding: 0.62rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stat-pill {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .profile-embed__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .profile-embed__stat {
    padding: 0.7rem 0.6rem;
  }

  .profile-embed__grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  input,
  textarea {
    padding: 0.62rem 0.72rem;
    min-height: 44px;
    font-size: 1rem;
  }

  textarea {
    min-height: 120px;
  }

  .btn {
    min-height: 44px;
  }

  .contact-list p,
  .contact-list a {
    font-size: 0.95rem;
  }

  footer {
    padding: 1.5rem 1rem 2rem;
    font-size: 0.85rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-gradient {
    padding: 3.2rem 0.75rem 2.2rem;
  }

  .hero-content h1 {
    font-size: clamp(1.85rem, 9.5vw, 2.45rem);
  }

  .stats {
    gap: 0.45rem;
  }

  .stat-pill {
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem;
  }

  .nav-glass {
    padding: 0.6rem 0.55rem;
    gap: 0.4rem;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .grid {
    gap: 0.75rem;
  }

  .card {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .profile-embed__stats {
    gap: 0.55rem;
  }

  .profile-embed__stat {
    padding: 0.65rem 0.55rem;
    border-radius: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-gradient {
    padding: 2.7rem 0.75rem 1.9rem;
  }

  .hero-content h1 {
    font-size: clamp(1.65rem, 10vw, 2.1rem);
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-content {
    gap: 0.8rem;
  }

  .brand-name {
    font-size: 0.85rem;
    max-width: 11rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
    border-radius: 10px;
  }

  .nav-wrapper {
    padding: 0.55rem 0.45rem;
  }

  .nav-glass {
    padding: 0.55rem 0.5rem;
    gap: 0.35rem;
    border-radius: 16px;
  }

  .menu-toggle {
    padding: 0.35rem;
  }

  .menu-toggle span {
    width: 18px;
    height: 1.5px;
  }

  .theme-toggle {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }

  .grid {
    gap: 0.7rem;
  }

  .card {
    padding: 1rem;
    border-radius: 12px;
  }

  .card h2,
  .card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .stat-pill {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }

  .profile-embed {
    padding: 0.9rem;
    gap: 0.8rem;
  }

  .profile-embed__header {
    align-items: flex-start;
    gap: 0.8rem;
  }

  .profile-embed__avatar {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 0.8rem;
    border-radius: 0.8rem;
  }

  .profile-embed__stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-method {
    padding: 0.7rem;
  }

  .profile-embed__stat {
    padding: 0.6rem 0.5rem;
    border-radius: 0.8rem;
  }

  .profile-embed__value {
    font-size: 1rem;
  }

  .profile-embed__label {
    font-size: 0.75rem;
  }

  .profile-embed__panel {
    padding: 0.8rem;
    border-radius: 0.8rem;
  }

  label {
    font-size: 0.8rem;
  }

  input,
  textarea {
    padding: 0.55rem 0.65rem;
    min-height: 40px;
    border-radius: 0.65rem;
    font-size: 1rem;
  }

  textarea {
    min-height: 100px;
    min-width: 100%;
  }

  .contact-list h3,
  .contact-list p {
    font-size: 0.9rem;
  }

  .timeline-item {
    padding-left: 0.7rem;
    border-left-width: 1.5px;
  }

  .tag-list {
    gap: 0.35rem;
    margin-top: 0.6rem;
  }

  .tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
  }

  footer {
    padding: 1.2rem 0.75rem 1.6rem;
    font-size: 0.8rem;
  }
}