:root {
  --ink: #14201a;
  --ink-soft: #314039;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --surface-strong: #eef2ec;
  --teal: #087f7b;
  --teal-dark: #075f5c;
  --gold: #c4912d;
  --brick: #b64b32;
  --line: #d9ded4;
  --muted: #64706a;
  --shadow: 0 20px 60px rgba(20, 32, 26, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  background: var(--gold);
  color: #111711;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-weight: 800;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background:
    linear-gradient(90deg, rgba(20, 32, 26, 0.98), rgba(13, 22, 18, 0.96)),
    repeating-linear-gradient(90deg, rgba(8, 127, 123, 0.12) 0 1px, transparent 1px 88px);
  border-bottom: 1px solid rgba(196, 145, 45, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
  color: #fff;
}

.brand-name {
  position: relative;
  font-size: 1.05rem;
  padding-left: 1rem;
}

.brand-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  bottom: 0.18rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  box-shadow: 0 0 18px rgba(8, 127, 123, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #14201a;
  color: #fff;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(20, 32, 26, 0.88), rgba(20, 32, 26, 0.66)),
    url("./assets/visuals/tech-backdrop.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 32, 26, 0), var(--paper));
}

.hero-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.2rem;
  align-items: stretch;
  padding: 2.4rem 0 5rem;
}

.identity-rail {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 127, 123, 0.16), rgba(12, 18, 15, 0.88)),
    rgba(12, 18, 15, 0.9);
  border: 1px solid rgba(196, 145, 45, 0.34);
  border-radius: 8px;
  padding: 1rem;
  align-self: stretch;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.identity-rail::before,
.identity-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.identity-rail::before {
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(8, 127, 123, 0.32) 18px 19px, transparent 19px 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 42px);
  opacity: 0.55;
}

.identity-rail::after {
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 42px rgba(8, 127, 123, 0.18);
}

.identity-header {
  position: relative;
  display: block;
  margin-bottom: 0.95rem;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: uppercase;
  font-weight: 900;
}

.identity-rail h1 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 0.92;
  font-weight: 950;
}

.name-logo {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 0.12rem 0.05rem 0.28rem;
  color: #e8f6ef;
  text-transform: none;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(4, 19, 15, 0.9),
    0 6px 14px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(8, 127, 123, 0.42),
    0 0 10px rgba(196, 145, 45, 0.3);
}

.name-logo span {
  display: block;
  width: fit-content;
  max-width: 100%;
  background:
    linear-gradient(180deg, #fff9d6 0%, #d7b759 24%, #13b9b5 48%, #0d6f70 62%, #efe1a8 83%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(11, 34, 28, 0.78);
  filter: drop-shadow(0 2px 0 rgba(196, 145, 45, 0.35));
}

.name-logo::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.12rem;
  bottom: 0.24rem;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff4b8, var(--gold), var(--teal), #dffcff);
  box-shadow:
    0 0 12px rgba(196, 145, 45, 0.7),
    0 0 22px rgba(8, 127, 123, 0.48);
}

.name-logo::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--teal), transparent);
  box-shadow: 0 0 14px rgba(8, 127, 123, 0.42);
}

.hero-location {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.prominent-links {
  position: relative;
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  z-index: 1;
}

.featured-link {
  position: relative;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 1rem 1rem 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.featured-link::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 34px;
  height: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

.featured-link:hover,
.featured-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.featured-link span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-link strong {
  font-size: 1.22rem;
  line-height: 1.2;
}

.featured-link small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  max-width: 250px;
}

.store-link {
  border-left: 5px solid var(--gold);
}

.linkedin-link {
  border-left: 5px solid var(--teal);
}

.github-link {
  border-left: 5px solid var(--brick);
}

.rail-contact {
  position: relative;
  display: grid;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 1;
}

.rail-contact span {
  color: #fff;
  font-weight: 800;
}

.rail-snapshot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.2rem 0 1rem;
  padding: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
}

.rail-snapshot div {
  min-height: 74px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.rail-snapshot strong,
.rail-snapshot span {
  display: block;
}

.rail-snapshot strong {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.18;
}

.rail-snapshot span {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.25;
}

.rail-download {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 0.8rem;
  border-radius: 6px;
  background: var(--gold);
  color: #151711;
  text-decoration: none;
  font-weight: 950;
}

.rail-download:hover,
.rail-download:focus-visible {
  filter: brightness(1.06);
  outline: 3px solid rgba(196, 145, 45, 0.35);
  outline-offset: 2px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.hero-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 950;
}

.hero-copy p:not(.section-kicker) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

.signal-panel {
  max-width: 760px;
  margin-top: 1.6rem;
  border: 1px solid rgba(8, 127, 123, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 127, 123, 0.18), rgba(196, 145, 45, 0.08)),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 0 36px rgba(8, 127, 123, 0.13);
  overflow: hidden;
}

.signal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
}

.signal-heading span {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 900;
}

.signal-heading strong {
  font-size: 0.95rem;
}

.signal-lines {
  display: grid;
  gap: 0.05rem;
  padding: 0.85rem 1rem 1rem;
}

.signal-lines span {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding-left: 1.4rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.signal-lines span::before {
  content: "";
  position: absolute;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(8, 127, 123, 0.72);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  background: var(--gold);
  color: #151711;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.06);
  outline: 3px solid rgba(196, 145, 45, 0.35);
  outline-offset: 2px;
}

.contact-text {
  cursor: default;
  user-select: text;
}

.contact-text:hover {
  filter: none;
}

.snapshot-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.snapshot-grid div {
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.snapshot-grid strong,
.snapshot-grid span {
  display: block;
}

.snapshot-grid strong {
  font-size: 1.25rem;
  line-height: 1.2;
}

.snapshot-grid span {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.35rem;
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1.14;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 980px;
}

.profile-content p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
}

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

.expertise-grid article,
.credentials-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
  box-shadow: 0 12px 30px rgba(20, 32, 26, 0.07);
}

.expertise-grid h3,
.credentials-grid h3,
.timeline-body h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

.expertise-grid p,
.timeline-body p,
.contact-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.books-section {
  width: min(1180px, calc(100% - 2rem));
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  color: var(--ink);
  padding: 1.2rem 0 1.6rem;
  overflow: hidden;
}

.books-section .section-heading h2 {
  color: var(--ink);
  font-size: 1.55rem;
}

.books-section .section-heading {
  max-width: 760px;
  margin: 0 auto 0.6rem;
  text-align: center;
}

.book-carousel {
  width: min(100%, 884px);
  margin: 0 auto;
}

.book-carousel .splide__track {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.book-card {
  width: min(100%, 281px);
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(20, 32, 26, 0.12);
}

.book-media {
  position: relative;
  aspect-ratio: 2 / 3;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(8, 127, 123, 0.24), rgba(182, 75, 50, 0.18)),
    #17231d;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.book-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.book-fallback {
  width: 78%;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 0.8rem;
  text-align: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  font-weight: 950;
  font-size: 1rem;
  line-height: 1.15;
}

.book-body {
  padding: 0.9rem;
  text-align: center;
}

.book-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.25;
}

.book-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.splide__pagination {
  bottom: -1rem;
}

.splide__pagination__page.is-active {
  background: var(--gold);
}

.splide__arrow {
  background: var(--gold);
  opacity: 1;
  width: 2.35rem;
  height: 2.35rem;
}

.book-carousel .splide__slide {
  display: flex;
  justify-content: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 145px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 1.4rem;
}

.timeline-date {
  color: var(--teal-dark);
  font-weight: 950;
  line-height: 1.2;
  padding-top: 0.3rem;
}

.timeline-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(20, 32, 26, 0.06);
}

.timeline-body::before {
  content: "";
  position: absolute;
  left: 137px;
  width: 16px;
  height: 16px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--line);
}

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

.credentials-grid ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.credentials-grid li + li {
  margin-top: 0.42rem;
}

.contact-section {
  padding-top: 1.25rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-panel h2,
.contact-panel p {
  color: #fff;
}

.contact-panel p {
  max-width: 620px;
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel .button.secondary {
  background: transparent;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .identity-rail {
    max-width: none;
  }

  .hero-copy {
    padding-top: 0;
  }

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

@media (max-width: 780px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-grid {
    padding-top: 1rem;
    padding-bottom: 4rem;
    gap: 1.6rem;
  }

  .identity-rail h1 {
    font-size: 1.95rem;
  }

  .hero-copy h2 {
    font-size: 2.2rem;
  }

  .profile-content,
  .credentials-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-left: 2rem;
  }

  .timeline-date {
    padding-top: 0;
  }

  .timeline-body::before {
    left: 1px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-nav a {
    padding: 0.45rem 0.48rem;
  }

  .site-nav {
    display: none;
  }

  .identity-rail {
    padding: 0.8rem;
  }

  .identity-rail h1 {
    font-size: 1.58rem;
  }

  .hero-copy h2,
  .section-heading h2,
  .contact-panel h2 {
    font-size: 1.7rem;
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .featured-link {
    min-height: 92px;
    padding: 0.72rem;
  }

  .featured-link strong {
    font-size: 1rem;
  }

  .featured-link small {
    font-size: 0.82rem;
  }

  .rail-snapshot {
    grid-template-columns: 1fr;
  }

  .signal-heading {
    display: grid;
  }

  .book-card {
    width: min(100%, 268px);
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .book-media {
    min-height: 0;
  }

  .button {
    width: 100%;
  }
}

/* Cyber theme enhancement layer: visual-only polish, carousel JavaScript untouched. */
:root {
  --ink: #f4fff9;
  --ink-soft: rgba(244, 255, 249, 0.78);
  --paper: #06130f;
  --surface: rgba(7, 24, 19, 0.86);
  --surface-strong: rgba(9, 35, 29, 0.96);
  --teal: #18b9ad;
  --teal-dark: #0b8c85;
  --gold: #f0c348;
  --brick: #c96842;
  --line: rgba(24, 185, 173, 0.28);
  --muted: rgba(244, 255, 249, 0.62);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(circle at 82% 12%, rgba(24, 185, 173, 0.12), transparent 32rem),
    radial-gradient(circle at 20% 72%, rgba(240, 195, 72, 0.08), transparent 28rem),
    linear-gradient(180deg, #06130f 0%, #081b16 48%, #06130f 100%);
  color: var(--ink);
}

.site-header {
  background:
    linear-gradient(90deg, rgba(2, 12, 10, 0.98), rgba(5, 20, 17, 0.96)),
    repeating-linear-gradient(90deg, rgba(24, 185, 173, 0.13) 0 1px, transparent 1px 94px);
  border-bottom: 1px solid rgba(240, 195, 72, 0.24);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.36);
}

.brand-name {
  font-size: 1.28rem;
  color: #06130f;
  text-shadow: 0 0 18px rgba(24, 185, 173, 0.28);
}

.brand-name::before {
  width: 5px;
  top: -0.12rem;
  bottom: -0.12rem;
  background: linear-gradient(180deg, #fff7b8, var(--gold), var(--teal), #e6ffff);
  box-shadow: 0 0 14px rgba(240, 195, 72, 0.62), 0 0 25px rgba(24, 185, 173, 0.42);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(24, 185, 173, 0.12);
  color: #06130f;
  box-shadow: inset 0 0 0 1px rgba(24, 185, 173, 0.22);
}

.hero {
  background: #06130f;
}

.hero-visual {
  background-image:
    linear-gradient(90deg, rgba(3, 13, 11, 0.92) 0%, rgba(5, 23, 19, 0.78) 38%, rgba(5, 23, 19, 0.38) 100%),
    radial-gradient(circle at 93% 46%, rgba(24, 185, 173, 0.46), transparent 12rem),
    url("./assets/visuals/tech-backdrop.png");
  filter: saturate(1.08) contrast(1.05);
}

.hero::after {
  height: 150px;
  background: linear-gradient(180deg, rgba(6, 19, 15, 0), #06130f);
}

.hero-grid {
  min-height: 720px;
  gap: 4.4rem;
}

.identity-rail,
.signal-panel,
.snapshot-grid div,
.profile-content p,
.expertise-grid article,
.credentials-grid article,
.timeline-body,
.contact-panel,
.book-card {
  background:
    linear-gradient(145deg, rgba(8, 36, 30, 0.94), rgba(2, 12, 10, 0.82)),
    rgba(4, 18, 15, 0.9);
  border: 1px solid rgba(24, 185, 173, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 0 34px rgba(24, 185, 173, 0.06);
}

.identity-rail {
  border-color: rgba(240, 195, 72, 0.58);
  border-radius: 14px;
  padding: 1.55rem;
}

.identity-rail::before {
  background:
    linear-gradient(90deg, transparent 0 1.25rem, rgba(24, 185, 173, 0.42) 1.25rem 1.34rem, transparent 1.34rem 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 46px);
}

.identity-header {
  padding-left: 1.65rem;
}

.identity-header::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0;
  bottom: -0.35rem;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7b8, var(--gold), var(--teal), #e6ffff);
  box-shadow: 0 0 16px rgba(240, 195, 72, 0.68), 0 0 32px rgba(24, 185, 173, 0.45);
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(240, 195, 72, 0.2);
}

.identity-header .eyebrow {
  font-size: 1.22rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.12rem;
}

.hero-location,
.hero-copy p:not(.section-kicker),
.profile-content p,
.expertise-grid p,
.timeline-body p,
.contact-panel p,
.credentials-grid ul,
.book-body p {
  color: var(--ink-soft);
}

.featured-link {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-areas:
    "icon label"
    "icon title"
    "icon caption";
  align-items: center;
  min-height: 104px;
  border-radius: 10px;
  border-color: rgba(24, 185, 173, 0.30);
  background: linear-gradient(145deg, rgba(24, 185, 173, 0.10), rgba(0, 0, 0, 0.22));
}

.featured-link::after {
  display: none;
}

.featured-link .link-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(24, 185, 173, 0.10);
  border: 1px solid rgba(24, 185, 173, 0.28);
  box-shadow: inset 0 0 18px rgba(24, 185, 173, 0.08), 0 0 18px rgba(24, 185, 173, 0.10);
}

.featured-link .link-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--teal);
}

.linkedin-link .link-icon svg { fill: #ffffff; }
.github-link .link-icon svg { fill: #ffffff; }

.featured-link span:not(.link-icon) { grid-area: label; }
.featured-link strong { grid-area: title; color: #ffffff; }
.featured-link small { grid-area: caption; color: rgba(255, 255, 255, 0.76); }

.featured-link:hover,
.featured-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 195, 72, 0.58);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), 0 0 28px rgba(24, 185, 173, 0.12);
}

.rail-snapshot {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(24, 185, 173, 0.20);
}

.rail-snapshot div {
  border-color: rgba(24, 185, 173, 0.24);
  background: linear-gradient(145deg, rgba(24, 185, 173, 0.08), rgba(0, 0, 0, 0.18));
}

.rail-snapshot strong,
.snapshot-grid strong,
.expertise-grid h3,
.credentials-grid h3,
.timeline-body h3,
.book-body h3 {
  color: var(--gold);
}

.rail-download,
.button.primary {
  background: linear-gradient(135deg, var(--teal), #1cc7b8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.10), 0 10px 25px rgba(24, 185, 173, 0.18);
}

.button.secondary {
  background: rgba(0, 0, 0, 0.18);
  color: var(--gold);
  border-color: rgba(240, 195, 72, 0.62);
}

.hero-copy h2 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.signal-panel {
  border-color: rgba(24, 185, 173, 0.48);
  border-radius: 10px;
}

.signal-lines span {
  padding-left: 0;
  gap: 0.8rem;
}

.signal-lines span::before {
  display: none;
}

.mini-icon,
.tile-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--teal);
}

.mini-icon::before,
.tile-icon::before {
  display: block;
  color: currentColor;
  filter: drop-shadow(0 0 8px rgba(24, 185, 173, 0.45));
}

.mini-icon.shield::before,
.tile-icon.shield::before { content: "🛡"; }
.mini-icon.server::before { content: "▦"; font-weight: 900; }
.mini-icon.code::before { content: "</>"; font-size: 0.78rem; font-weight: 900; }
.mini-icon.mail::before { content: "✉"; }
.mini-icon.phone::before { content: "☎"; }
.mini-icon.download::before { content: "⇩"; font-weight: 900; }
.tile-icon.briefcase::before { content: "▣"; }
.tile-icon.book::before { content: "▤"; }
.tile-icon.tools::before { content: "⚙"; }

.tile-icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.35rem;
  color: var(--teal);
  font-size: 1.25rem;
}

.rail-download,
.contact-text {
  gap: 0.55rem;
}

.contact-line {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  color: var(--teal) !important;
}

.snapshot-grid div {
  border-radius: 10px;
  text-align: center;
}

.snapshot-grid strong {
  font-size: 1.38rem;
}

.section {
  position: relative;
}

.section-heading h2,
.contact-panel h2 {
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.profile-section,
.expertise-section,
.books-section,
.experience-section,
.credentials-section,
.contact-section {
  background: transparent;
}

.expertise-grid article,
.credentials-grid article,
.timeline-body,
.book-card {
  border-radius: 10px;
}

.expertise-grid article:hover,
.credentials-grid article:hover,
.book-card:hover {
  border-color: rgba(240, 195, 72, 0.45);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34), 0 0 28px rgba(24, 185, 173, 0.09);
}

.books-section .section-heading h2 {
  color: #ffffff;
}

.book-media {
  background:
    radial-gradient(circle at 50% 20%, rgba(24, 185, 173, 0.20), transparent 12rem),
    linear-gradient(135deg, rgba(24, 185, 173, 0.16), rgba(240, 195, 72, 0.08)),
    #06130f;
}

.splide__arrow {
  background: linear-gradient(135deg, var(--gold), #ffe38a);
  box-shadow: 0 0 18px rgba(240, 195, 72, 0.32);
}

.splide__pagination__page {
  background: rgba(255, 255, 255, 0.55);
}

.splide__pagination__page.is-active {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(240, 195, 72, 0.42);
}

.timeline::before {
  background: linear-gradient(180deg, rgba(24, 185, 173, 0.2), rgba(240, 195, 72, 0.7), rgba(24, 185, 173, 0.2));
  box-shadow: 0 0 14px rgba(24, 185, 173, 0.25);
}

.timeline-date {
  color: var(--gold);
}

.timeline-body::before {
  background: var(--teal);
  border-color: #06130f;
  box-shadow: 0 0 0 2px rgba(240, 195, 72, 0.55), 0 0 22px rgba(24, 185, 173, 0.56);
}

.contact-panel {
  border-color: rgba(240, 195, 72, 0.48);
  background:
    linear-gradient(135deg, rgba(24, 185, 173, 0.18), rgba(240, 195, 72, 0.08)),
    rgba(3, 14, 12, 0.94);
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid rgba(24, 185, 173, 0.22);
}

@media (max-width: 780px) {
  .hero-grid { gap: 1.6rem; }
  .featured-link { grid-template-columns: 52px 1fr; }
  .featured-link .link-icon { width: 42px; height: 42px; }
  .featured-link .link-icon svg { width: 26px; height: 26px; }
}


.brand-cyber{
font-weight:900;
font-size:1.05rem;
line-height:.9;
letter-spacing:.08em;
background:linear-gradient(180deg,#fff7c2 0%,#d4ac43 35%,#20c8c2 70%,#b9fff8 100%);
-webkit-background-clip:text;
background-clip:text;
-webkit-text-fill-color:transparent;
text-shadow:0 0 10px rgba(32,200,194,.35);
display:inline-block;
}


/* Enhanced cyber logo */
.brand{
overflow:visible;
}
.brand-cyber{
position:relative;
display:inline-block;
font-size:2.4rem;
line-height:.82;
font-weight:1000;
letter-spacing:.06em;
padding:0.2rem 1.2rem 0.15rem 1.2rem;
background:none;
-webkit-text-fill-color:initial;
}
.brand-cyber::before{
content:"";
position:absolute;
left:-12px;
top:-8px;
right:-30px;
bottom:-10px;
border-left:2px solid rgba(0,255,255,.6);
border-bottom:2px solid rgba(255,196,0,.35);
border-radius:0 0 0 18px;
pointer-events:none;
}
.brand-cyber{
color:transparent;
background:
linear-gradient(180deg,#fff7c2 0%,#ffd45a 35%,#d4a33d 100%);
-webkit-background-clip:text;
background-clip:text;
text-shadow:0 0 8px rgba(255,212,90,.45),0 0 22px rgba(255,212,90,.25);
}
.brand-cyber br{}
.brand-cyber{
filter:drop-shadow(0 0 10px rgba(0,255,255,.15));
}
.brand-cyber::after{
content:"";
position:absolute;
left:75%;
top:10px;
width:90px;
height:40px;
background:
linear-gradient(90deg,transparent 0 15%, #ffd45a 15% 18%, transparent 18% 40%, #00e5e5 40% 43%, transparent 43%);
opacity:.8;
}
.brand-name.brand-cyber{
padding-left:1.2rem;
}
.brand-name.brand-cyber::before{
width:6px;
box-shadow:0 0 18px rgba(255,212,90,.8),0 0 25px rgba(0,229,229,.5);
}
@media(max-width:780px){
.brand-cyber{font-size:1.4rem;}
}

.logo-top{
background:linear-gradient(180deg,#fff7c2,#ffd45a,#c28b22);
-webkit-background-clip:text;background-clip:text;color:transparent;
}
.logo-bottom{
background:linear-gradient(180deg,#8ffcff,#1fe0da,#00aeb2);
-webkit-background-clip:text;background-clip:text;color:transparent;
}


/* Proper logo */
.brand{overflow:visible}
.brand-logo{
position:relative;
display:block;
padding:8px 70px 8px 28px;
line-height:.82;
}
.logo-row{
display:block;
font-weight:1000;
font-family:Segoe UI, Arial, sans-serif;
letter-spacing:.12em;
font-size:2.5rem;
}
.logo-gold{
color:#ffd45a;
text-shadow:0 0 8px rgba(255,212,90,.8),0 0 22px rgba(255,212,90,.35);
}
.logo-teal{
color:#27e0d8;
text-shadow:0 0 8px rgba(39,224,216,.8),0 0 22px rgba(39,224,216,.35);
}
.brand-logo:before{
content:"";
position:absolute;
left:0;top:0;bottom:0;
width:4px;
background:linear-gradient(#ffd45a,#27e0d8);
box-shadow:0 0 12px #27e0d8;
border-radius:4px;
}
.brand-logo:after{
content:"";
position:absolute;
right:0;top:14px;
width:90px;height:30px;
border-top:2px solid rgba(255,212,90,.8);
border-right:2px solid rgba(39,224,216,.8);
opacity:.9;
}
@media(max-width:780px){
.logo-row{font-size:1.6rem}
.brand-logo{padding-right:20px}
}


/* Final layout refinement */
.profile-section,
.expertise-section,
.experience-section,
.credentials-section,
.contact-section{
max-width:1000px;
margin-left:auto;
margin-right:auto;
}

.section-heading{
max-width:900px;
margin-left:auto;
margin-right:auto;
text-align:center;
}

.profile-content,
.expertise-grid,
.timeline,
.credentials-grid,
.contact-panel{
max-width:1000px;
margin-left:auto;
margin-right:auto;
}


/* tighten sidebar bottom gap */
.rail-contact{margin-top:0.5rem;padding-top:0.5rem;}
.identity-rail{justify-content:flex-start;}


/* Final contrast correction: bright teal buttons must use dark text/icons. */
.rail-download,
.button.primary,
.contact-panel .button.primary,
.contact-actions .button.primary,
a.rail-download {
  color: #06130f !important;
  text-shadow: none !important;
}

.rail-download .mini-icon,
.button.primary .mini-icon,
.contact-panel .button.primary .mini-icon,
.contact-actions .button.primary .mini-icon {
  color: #06130f !important;
}

.rail-download .mini-icon::before,
.button.primary .mini-icon::before,
.contact-panel .button.primary .mini-icon::before,
.contact-actions .button.primary .mini-icon::before {
  color: #06130f !important;
  filter: none !important;
}
