/* Executive portfolio — dark premium */

:root {
  --bg: #080c14;
  --bg-elevated: #0f1520;
  --bg-card: #131b28;
  --bg-card-hover: #182232;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.15);
  --accent-glow: rgba(201, 169, 98, 0.35);
  --header-h: 72px;
  --container: 1120px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #0a0e14;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
  background: #d4b872;
  box-shadow: 0 6px 32px var(--accent-glow);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

/* ——— Header ——— */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  transition: background 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.header__brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
}

.header__brand-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.header__link:hover,
.header__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header__link.is-active {
  color: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__actions .btn--sm {
  display: none;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
}

.header__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.header__burger.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.header__burger.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ——— Mobile nav ——— */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav.is-open .mobile-nav__overlay {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  padding: calc(var(--header-h) + 24px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.mobile-nav__cta {
  margin-top: 16px;
  width: 100%;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(201, 169, 98, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 64px;
  align-items: center;
}

.hero__visual {
  position: relative;
}

.hero__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 64px rgba(0, 0, 0, 0.45);
}

.hero__photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 12, 20, 0.5) 100%);
  pointer-events: none;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero__badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero__badge-value {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.hero__badge-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 120px;
  line-height: 1.35;
}

.hero__content {
  min-width: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__tags {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.tag-group__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 999px;
}

.tag--outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}

.stat {
  padding: 20px 18px;
  background: var(--bg-card);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat__label {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ——— Sections ——— */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section__header {
  margin-bottom: 48px;
}

.section__header--narrow {
  max-width: 640px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ——— Timeline ——— */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline__item:first-child::before {
  background: var(--accent);
}

.timeline__period {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.timeline__role {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.timeline__company {
  font-size: 15px;
  color: var(--text-muted);
}

.career-accordion {
  width: 100%;
}

.career-accordion:not(.is-expanded) .timeline__item--extra {
  display: none;
}

.career-accordion.is-expanded .timeline__item--extra[hidden] {
  display: list-item;
}

.career-accordion.is-expanded .timeline__item--extra {
  animation: skill-card-in 0.35s var(--ease) both;
}

.timeline__item--controls {
  padding-bottom: 0;
  padding-top: 4px;
}

.timeline__item--controls::before {
  display: none;
}

.timeline__controls {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.career-accordion__toggle.btn {
  width: auto;
  min-width: 220px;
  margin: 0;
}

/* ——— Prose ——— */
.prose {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prose p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.prose p:first-child {
  font-size: 17px;
  color: var(--text);
}

.prose-accordion {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 720px;
  width: 100%;
}

.prose-accordion:not(.is-expanded) .prose__extra {
  display: none;
}

.prose-accordion.is-expanded .prose__extra[hidden] {
  display: block;
}

.prose-accordion.is-expanded .prose__extra {
  animation: skill-card-in 0.35s var(--ease) both;
}

.prose-accordion__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 24px;
}

.prose-accordion__toggle.btn {
  width: auto;
  min-width: 220px;
  margin: 0;
}

/* ——— Skills grid ——— */
.skills-accordion {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.skills-accordion:not(.is-expanded) .skill-card--extra {
  display: none;
}

.skills-accordion.is-expanded .skill-card--extra[hidden] {
  display: block;
}

.skills-accordion.is-expanded .skill-card--extra {
  animation: skill-card-in 0.35s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .skills-accordion.is-expanded .skill-card--extra {
    animation: none;
  }
}

@keyframes skill-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills-accordion__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 24px;
}

.skills-accordion__toggle.btn {
  width: auto;
  min-width: 220px;
  margin: 0;
}

.skill-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.skill-card--wide {
  grid-column: 1 / -1;
}

.skill-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.skill-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ——— Certs ——— */
.certs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.certs-list__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
}

.certs-list__item:last-child {
  border-bottom: none;
}

.certs-list__item:hover {
  background: var(--bg-card-hover);
}

.certs-list__year {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.certs-list__name {
  font-size: 15px;
  color: var(--text-muted);
}

/* ——— CTA band ——— */
.cta-band {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(201, 169, 98, 0.1) 0%, transparent 60%),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cta-band__lead {
  font-size: 15px;
  color: var(--text-muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ——— Footer ——— */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--accent);
}

/* ——— Modal ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal__eyebrow {
  margin-bottom: 8px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 28px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal__honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.modal__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal__input::placeholder {
  color: var(--text-dim);
}

.modal__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal__error {
  font-size: 14px;
  color: #f87171;
  line-height: 1.5;
}

.modal__error a {
  color: inherit;
  text-decoration: underline;
}

.modal__success {
  font-size: 14px;
  color: #4ade80;
  text-align: center;
}

.modal__submit {
  width: 100%;
  margin-top: 4px;
}

.modal__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ——— Responsive ——— */
@media (min-width: 901px) {
  .header__actions .btn--sm {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .hero__badge {
    right: 0;
    bottom: -12px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__tags {
    align-items: center;
  }

  .tags {
    justify-content: center;
  }

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

  .hero__actions {
    justify-content: center;
  }

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

  .skill-card--wide {
    grid-column: 1 / -1;
  }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 56px;
  }

  .hero__title br {
    display: none;
  }

  .hero__visual {
    max-width: 260px;
  }

  .hero__badge-value {
    font-size: 28px;
  }

  .section {
    padding: 56px 0;
  }

  .section__header {
    margin-bottom: 32px;
  }

  .certs-list__item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline__item::before {
    left: -28px;
  }

  .btn {
    width: 100%;
  }

  .hero__actions .btn,
  .cta-band__actions .btn {
    width: auto;
    flex: 1;
    min-width: 140px;
  }

  .skills-accordion__toggle.btn {
    width: auto;
  }

  .prose-accordion__toggle.btn {
    width: auto;
  }

  .career-accordion__toggle.btn {
    width: auto;
  }

  .modal__dialog {
    padding: 32px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
