@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #111827;
  --text: #263241;
  --muted: #687386;
  --line: rgba(34, 49, 68, 0.14);
  --paper: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --solid: #ffffff;
  --navy: #10263c;
  --blue: #1d6fb8;
  --green: #087b68;
  --mint: #dff8ef;
  --amber: #c47a10;
  --coral: #d14f3f;
  --violet: #5b5fc7;
  --shadow-soft: 0 24px 70px rgba(24, 36, 56, 0.13);
  --shadow-lift: 0 32px 90px rgba(24, 36, 56, 0.2);
  --toggle-bg: rgba(16, 38, 60, 0.12);
  --toggle-fg: #10263c;
  --stack-line: rgba(8, 123, 104, 0.2);
}

:root[data-theme="dark"] {
  --ink: #f4f7fb;
  --text: #d8e1ee;
  --muted: #9aa9bb;
  --line: rgba(226, 235, 246, 0.15);
  --paper: #08131f;
  --surface: rgba(16, 29, 45, 0.78);
  --solid: #101d2d;
  --navy: #07111d;
  --blue: #76bfff;
  --green: #50d3b8;
  --mint: #10352f;
  --amber: #f0b454;
  --coral: #ff8b79;
  --violet: #a8a9ff;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-lift: 0 32px 90px rgba(0, 0, 0, 0.48);
  --toggle-bg: rgba(80, 211, 184, 0.22);
  --toggle-fg: #e9fff9;
  --stack-line: rgba(80, 211, 184, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(16, 38, 60, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 38, 60, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #fbfcfe 0%, #eef4f8 46%, #f8f7f2 100%);
  background-size: 52px 52px, 52px 52px, auto;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(90deg, rgba(226, 235, 246, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(226, 235, 246, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #07111d 0%, #0b1828 48%, #10151f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(132deg, transparent 0 14%, rgba(29, 111, 184, 0.09) 14% 28%, transparent 28% 100%),
    linear-gradient(42deg, transparent 0 56%, rgba(8, 123, 104, 0.1) 56% 68%, transparent 68% 100%),
    linear-gradient(168deg, transparent 0 72%, rgba(196, 122, 16, 0.08) 72% 84%, transparent 84% 100%);
}

:root[data-theme="dark"] body::before {
  background:
    linear-gradient(132deg, transparent 0 14%, rgba(29, 111, 184, 0.16) 14% 28%, transparent 28% 100%),
    linear-gradient(42deg, transparent 0 56%, rgba(80, 211, 184, 0.12) 56% 68%, transparent 68% 100%),
    linear-gradient(168deg, transparent 0 72%, rgba(240, 180, 84, 0.09) 72% 84%, transparent 84% 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.42) 48%, transparent 54% 100%);
  background-size: 260% 260%;
  animation: atmosphere 18s ease-in-out infinite;
}

:root[data-theme="dark"] body::after {
  background-image: linear-gradient(120deg, transparent 0 42%, rgba(80, 211, 184, 0.11) 48%, transparent 54% 100%);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--green);
  text-decoration: none;
}

.container {
  width: min(1240px, calc(100% - 34px));
  padding: 0;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 12px 0 26px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  box-shadow: 0 16px 45px rgba(30, 45, 65, 0.1);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(12, 24, 38, 0.78);
  border-color: rgba(226, 235, 246, 0.13);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--green));
  box-shadow: 0 12px 28px rgba(8, 123, 104, 0.28);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--ink);
  background: rgba(16, 38, 60, 0.07);
  transform: translateY(-1px);
}

:root[data-theme="dark"] .site-nav a:hover,
:root[data-theme="dark"] .site-nav a:focus {
  background: rgba(226, 235, 246, 0.08);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--toggle-fg);
  background: var(--toggle-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  width: 34px;
  height: 18px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 38, 60, 0.12);
}

.theme-toggle-orb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--amber), var(--green));
  border-radius: 50%;
  transition: transform 200ms ease;
}

:root[data-theme="dark"] .theme-toggle-orb {
  transform: translateX(16px);
}

.profile-site,
.contact-page {
  padding-bottom: 56px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
  gap: 22px;
  align-items: stretch;
  min-height: min(760px, calc(100vh - 130px));
  padding: 14px 0 34px;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 610px;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 38, 60, 0.96), rgba(22, 86, 112, 0.92) 46%, rgba(8, 123, 104, 0.9)),
    url("/images/myPic.png") right center / auto 118% no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}

:root[data-theme="dark"] .hero-copy {
  background:
    linear-gradient(135deg, rgba(7, 17, 29, 0.97), rgba(14, 55, 78, 0.94) 48%, rgba(8, 91, 79, 0.9)),
    url("/images/myPic.png") right center / auto 118% no-repeat;
}

.hero-copy::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.hero-copy::after {
  position: absolute;
  top: 12%;
  right: -18%;
  z-index: -1;
  width: 70%;
  height: 76%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  transform: rotate(-8deg);
}

.hero-grid-lines {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: -1;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-100%);
  animation: scanline 7s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #adf0df;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 790px;
  color: #fff;
  font-size: clamp(36px, 3.7vw, 48px);
  font-weight: 900;
}

.hero-role {
  margin: 18px 0 0;
  color: #ddf7ef;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
}

.hero-summary {
  max-width: 790px;
  margin: 28px 0 0;
  color: #eefaf6;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.6;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 46px;
  padding: 10px 13px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  color: var(--navy);
  background: #e7f6f0;
}

.btn-default {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.btn-default:hover,
.btn-default:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.hero-panel,
.contact-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .hero-panel,
:root[data-theme="dark"] .contact-card {
  border-color: rgba(226, 235, 246, 0.13);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.photo-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(16, 38, 60, 0.28));
  pointer-events: none;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
  border-radius: 10px;
  transform: scale(1.01);
}

.quick-facts {
  margin: 0;
}

.quick-facts div {
  position: relative;
  padding: 18px 0 18px 18px;
  border-top: 1px solid var(--line);
}

.quick-facts div::before {
  position: absolute;
  top: 25px;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.section-icon {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 32px;
  margin-bottom: 16px;
  border: 1px solid var(--stack-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 45%, var(--stack-line) 45% 55%, transparent 55% 100%),
    linear-gradient(180deg, transparent 0 45%, var(--stack-line) 45% 55%, transparent 55% 100%);
}

.section-icon::before,
.section-icon::after {
  position: absolute;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 12%, transparent);
}

.section-icon::before {
  top: 7px;
  left: 8px;
  width: 6px;
  height: 6px;
}

.section-icon::after {
  right: 8px;
  bottom: 7px;
  width: 7px;
  height: 7px;
}

.section-icon-timeline {
  transform: rotate(90deg);
}

.section-icon-capabilities::before {
  left: 18px;
}

.section-icon-contact {
  width: 28px;
  height: 20px;
  margin: 0 10px 0 0;
  vertical-align: middle;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 18px 0 42px;
}

.signal-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 36, 56, 0.08);
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.signal-strip span:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(24, 36, 56, 0.14);
}

.tech-stack-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 10px 0 62px;
}

.tech-stack-strip::before {
  position: absolute;
  top: 28px;
  right: 0;
  left: 220px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--stack-line), transparent);
}

.stack-heading {
  position: relative;
  z-index: 1;
}

.stack-heading .eyebrow {
  margin-bottom: 0;
}

.stack-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stack-track span {
  position: relative;
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(24, 36, 56, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.stack-track span::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 58px;
  height: 58px;
  content: "";
  border: 1px solid var(--stack-line);
  border-radius: 50%;
}

.stack-track span:hover {
  border-color: color-mix(in srgb, var(--green) 38%, transparent);
  box-shadow: 0 22px 48px rgba(24, 36, 56, 0.14);
  transform: translateY(-4px);
}

.stack-track strong {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.stack-track small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.section-band,
.skills-section,
.contact-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.section-band::before,
.skills-section::before {
  position: absolute;
  top: 70px;
  left: 0;
  width: 140px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--green), transparent);
}

.section-band::after,
.skills-section::after {
  position: absolute;
  top: 64px;
  left: 130px;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 50%;
}

.section-heading {
  position: sticky;
  top: 110px;
  align-self: start;
}

.section-heading h2,
.contact-cta h2 {
  max-width: 780px;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 900;
}

.section-content {
  max-width: 810px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
}

.section-content p {
  margin: 0;
}

.section-content p + p {
  margin-top: 20px;
}

.delivery-map,
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 10px 0 64px;
}

.delivery-map article,
.expertise-grid article,
.skills-columns > div,
.credential,
.timeline-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(24, 36, 56, 0.09);
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

:root[data-theme="dark"] .delivery-map article,
:root[data-theme="dark"] .expertise-grid article,
:root[data-theme="dark"] .skills-columns > div,
:root[data-theme="dark"] .credential,
:root[data-theme="dark"] .timeline-item,
:root[data-theme="dark"] .stack-track span {
  border-color: rgba(226, 235, 246, 0.13);
}

.delivery-map article:hover,
.expertise-grid article:hover,
.skills-columns > div:hover,
.credential:hover,
.timeline-item:hover {
  border-color: rgba(8, 123, 104, 0.36);
  box-shadow: 0 28px 70px rgba(24, 36, 56, 0.15);
  transform: translateY(-5px);
}

.delivery-map article {
  position: relative;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
}

.delivery-map article::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--amber), var(--coral));
}

.delivery-map span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.delivery-map h3 {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 900;
}

.delivery-map p {
  margin: 14px 0 0;
  color: var(--muted);
}

.expertise-grid article {
  min-height: 270px;
  padding: 30px;
}

.stat {
  display: block;
  color: var(--amber);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.expertise-grid h3,
.timeline-item h3,
.skills-columns h3,
.credential h2 {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 900;
}

.expertise-grid p,
.timeline-item li,
.credential p {
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 18px;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, var(--green), var(--amber), var(--violet));
}

.timeline-item {
  position: relative;
  padding: 30px 30px 30px 54px;
  overflow: hidden;
}

.timeline-item::before {
  position: absolute;
  top: 34px;
  left: 10px;
  width: 18px;
  height: 18px;
  content: "";
  background: var(--solid);
  border: 5px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(8, 123, 104, 0.12);
}

.timeline-date {
  margin: 0;
  color: var(--amber);
  font-weight: 900;
}

.company {
  margin: 8px 0 16px;
  color: var(--ink);
  font-weight: 800;
}

.timeline-item ul {
  margin: 0;
  padding-left: 20px;
}

.timeline-item li + li {
  margin-top: 9px;
}

.skills-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skills-columns > div {
  padding: 28px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 11px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(223, 248, 239, 0.9), rgba(237, 243, 251, 0.9));
  border: 1px solid rgba(8, 123, 104, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

:root[data-theme="dark"] .tag-list li {
  background: linear-gradient(135deg, rgba(80, 211, 184, 0.14), rgba(118, 191, 255, 0.1));
  border-color: rgba(80, 211, 184, 0.18);
}

.compact-band {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.credential {
  min-height: 220px;
  padding: 28px;
}

.credential h2 {
  font-size: 22px;
}

.contact-cta {
  align-items: center;
  margin-top: 10px;
  padding: 52px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #164e61 52%, var(--green));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
}

.contact-cta h2 {
  color: #fff;
}

.contact-cta .eyebrow {
  color: #bff4e6;
}

.contact-links {
  margin-top: 0;
}

.contact-links a,
.contact-methods a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(24, 36, 56, 0.12);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

:root[data-theme="dark"] .contact-links a,
:root[data-theme="dark"] .contact-methods a {
  background: rgba(244, 247, 251, 0.94);
  color: #07111d;
}

.contact-links a:hover,
.contact-links a:focus,
.contact-methods a:hover,
.contact-methods a:focus {
  color: #fff;
  background: var(--navy);
  transform: translateY(-2px);
}

.contact-page {
  display: flex;
  align-items: center;
  min-height: 62vh;
}

.contact-card {
  position: relative;
  width: min(920px, 100%);
  margin: 52px auto;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}

.contact-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 123, 104, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 123, 104, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.contact-card > * {
  position: relative;
}

.contact-card h1 {
  max-width: 790px;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-methods a {
  justify-content: space-between;
  gap: 18px;
}

.contact-methods span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.reveal-ready .hero-copy,
.reveal-ready .hero-panel,
.reveal-ready .signal-strip,
.reveal-ready .tech-stack-strip,
.reveal-ready .section-band,
.reveal-ready .delivery-map,
.reveal-ready .expertise-grid,
.reveal-ready .skills-section,
.reveal-ready .compact-band,
.reveal-ready .contact-cta,
.reveal-ready .contact-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal-ready .is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes atmosphere {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes scanline {
  0%,
  38% {
    transform: translateX(-100%);
  }

  65%,
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready .hero-copy,
  .reveal-ready .hero-panel,
  .reveal-ready .signal-strip,
  .reveal-ready .tech-stack-strip,
  .reveal-ready .section-band,
  .reveal-ready .delivery-map,
  .reveal-ready .expertise-grid,
  .reveal-ready .skills-section,
  .reveal-ready .compact-band,
  .reveal-ready .contact-cta,
  .reveal-ready .contact-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .hero-section,
  .section-band,
  .skills-section,
  .contact-cta {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 560px;
  }

  .section-heading {
    position: static;
  }

  .delivery-map,
  .expertise-grid,
  .skills-columns,
  .compact-band,
  .tech-stack-strip,
  .stack-track {
    grid-template-columns: 1fr;
  }

  .tech-stack-strip::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .site-header,
  .site-footer,
  .contact-methods a {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: relative;
    top: 0;
    margin-top: 10px;
  }

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

  .theme-toggle {
    align-self: stretch;
    justify-content: space-between;
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-panel {
    padding: 14px;
  }

  .photo-frame {
    max-height: 360px;
  }

  .profile-photo {
    aspect-ratio: 1.05;
    object-position: center 18%;
  }

  .hero-copy {
    min-height: auto;
    padding: 28px;
    background:
      linear-gradient(135deg, rgba(16, 38, 60, 0.96), rgba(22, 86, 112, 0.92) 52%, rgba(8, 123, 104, 0.92));
  }

  :root[data-theme="dark"] .hero-copy {
    background:
      linear-gradient(135deg, rgba(7, 17, 29, 0.97), rgba(14, 55, 78, 0.94) 52%, rgba(8, 91, 79, 0.92));
  }

  .hero-summary,
  .section-content {
    font-size: 17px;
  }

  .hero-metrics span,
  .contact-links a {
    width: 100%;
  }

  .section-band,
  .skills-section,
  .tech-stack-strip {
    gap: 24px;
    padding: 46px 0;
  }

  .section-band::before,
  .skills-section::before,
  .section-band::after,
  .skills-section::after {
    display: none;
  }

  .stack-track {
    gap: 8px;
  }

  .stack-track span {
    min-height: 72px;
  }

  .contact-cta {
    padding: 28px;
  }

  .delivery-map,
  .expertise-grid {
    padding-bottom: 46px;
  }

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

  .timeline-item {
    padding: 26px 22px 26px 46px;
  }

  .timeline-item::before {
    left: 6px;
  }
}

/* CV refresh: sharper product-leadership presentation */
.hero-copy {
  background-position: right -18px center;
}

.hero-metrics span,
.signal-strip span,
.tag-list li {
  letter-spacing: 0.01em;
}

.timeline-item {
  border-left: 4px solid color-mix(in srgb, var(--green) 55%, transparent);
}

.timeline-item li::marker {
  color: var(--green);
}

.skills-columns > div,
.credential {
  position: relative;
  overflow: hidden;
}

.skills-columns > div::after,
.credential::after {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 118px;
  height: 118px;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 20%, transparent), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-cta {
  overflow: hidden;
}

.contact-cta::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 66%);
  border-radius: 50%;
}

.contact-cta > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 1041px) {
  .timeline-item:nth-child(even) {
    transform: translateX(10px);
  }

  .timeline-item:nth-child(even):hover {
    transform: translate(10px, -5px);
  }
}
