:root {
  color-scheme: light;
  --paper: #faf8f4;
  --paper-warm: #f2efe9;
  --midnight: #0d1526;
  --midnight-soft: #152038;
  --ink: #11141a;
  --ink-secondary: #434854;
  --muted: #707582;
  --line: rgba(17, 20, 26, 0.11);
  --line-strong: rgba(17, 20, 26, 0.28);
  --line-dark: rgba(248, 246, 240, 0.14);
  --accent: #1d4ed8;
  --accent-light: #60a5fa;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shell {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* HEADER */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}

.wordmark-initials {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.wordmark-initials span,
.footer-mark span {
  color: var(--accent);
}

.wordmark-full {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13.5px;
  font-weight: 500;
}

.nav-links > a {
  position: relative;
  color: var(--ink-secondary);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links > a:hover {
  color: var(--ink);
}

.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links > a.nav-contact {
  color: var(--ink);
  font-weight: 600;
}

.nav-links > a.nav-contact::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  min-height: min(820px, calc(100svh - 76px));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 54%, rgba(29, 78, 216, 0.08) 0%, rgba(180, 145, 100, 0.08) 32%, transparent 64%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-halo {
  position: absolute;
  right: 4%;
  bottom: -14%;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(29, 78, 216, 0.12);
  background: radial-gradient(circle, rgba(29, 78, 216, 0.05) 0%, transparent 70%);
}

.hero-halo-inner {
  right: 10%;
  bottom: -6%;
  width: min(40vw, 520px);
  border-color: rgba(17, 20, 26, 0.07);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(28px, 4vh, 48px);
  padding-bottom: clamp(56px, 7vh, 88px);
}

.hero-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  max-width: 62%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead-dot {
  color: var(--accent);
}

.hero-copy {
  width: min(60vw, 780px);
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 28px;
}

.hero-greeting {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(72px, 8.2vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: var(--ink);
}

.hero h1 em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: 1.05em;
  color: var(--midnight);
}

.hero-editorial {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.hero-lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
}

.editorial-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.editorial-link i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.2s ease;
}

.editorial-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.editorial-link:hover i {
  transform: translate(2px, -2px);
}

.editorial-link-subtle {
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

.editorial-link-subtle:hover i {
  transform: translateY(2px);
}

.hero-notes {
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-notes dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-notes dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(46vw, 690px);
  height: 94%;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-20px 10px 38px rgba(13, 21, 38, 0.14));
}

/* SECTION HEADINGS */
.section-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label-light {
  color: var(--accent-light);
}

h2 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
}

h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.02em;
}

.section-note {
  margin: 0;
  max-width: 38ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ABOUT SECTION (DEEP SARTORIAL MIDNIGHT) */
.about-section {
  padding: 108px 0 112px;
  background: var(--midnight);
  color: #f8f6f0;
}

.about-top {
  max-width: 880px;
}

.about-top h2 {
  color: #f8f6f0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
}

.about-top h2 em {
  color: #93c5fd;
}

.about-sublead {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(248, 246, 240, 0.74);
}

.about-pillars {
  margin-top: 64px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar-row {
  padding: 36px 36px 8px 0;
  border-right: 1px solid var(--line-dark);
}

.pillar-row:nth-child(2) {
  padding-left: 36px;
}

.pillar-row:last-child {
  padding-left: 36px;
  padding-right: 0;
  border-right: 0;
}

.pillar-num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--accent-light);
}

.pillar-row h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f8f6f0;
}

.pillar-row p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: rgba(248, 246, 240, 0.7);
}

/* EXPERIENCE SECTION */
.experience-section {
  padding: 104px 0 112px;
  background: var(--paper);
}

.experience-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.experience-list {
  border-top: 1px solid var(--line-strong);
}

.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(280px, 1fr) 170px;
  align-items: center;
  column-gap: 44px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}

.experience-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.experience-item:hover {
  padding-left: 12px;
}

.experience-item:hover::after {
  transform: scaleX(1);
}

.experience-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.experience-dates {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.experience-era {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
}

.experience-details h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.experience-details h3 span {
  color: var(--ink-secondary);
  font-size: 16px;
  font-weight: 400;
}

.company-name {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.experience-summary {
  margin: 10px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.company-logo {
  justify-self: end;
  width: 148px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.company-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.experience-item:hover .company-logo img {
  transform: scale(1.04);
}

/* Convert Deloitte's white SVG text to deep ink while keeping the green dot (#86BC25) */
.company-logo.deloitte-logo img {
  width: 124px;
  filter: invert(1) hue-rotate(180deg);
}

.company-logo.fis-logo img {
  width: 98px;
}

/* Blend OATI's white JPEG background seamlessly into the warm paper surface */
.company-logo.oati-logo img {
  width: 114px;
  mix-blend-mode: multiply;
}

/* CERTIFICATIONS SECTION */
.certifications-section {
  padding: 96px 0 112px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}

.certifications-list {
  border-top: 1px solid var(--line-strong);
}

.certification-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}

.certification-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.certification-item:hover {
  padding-left: 12px;
}

.certification-item:hover::after {
  transform: scaleX(1);
}

.cert-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}

.certification-info h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.certification-info p {
  margin: 6px 0 0;
  color: var(--ink-secondary);
  font-size: 14.5px;
}

.certificate-viewer {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--sans);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.certificate-viewer i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.2s ease;
}

.certificate-viewer:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.certificate-viewer:hover i {
  transform: translate(2px, -2px);
}

/* CERTIFICATE DIALOG */
.certificate-dialog {
  width: min(920px, calc(100% - 32px));
  height: min(90vh, 900px);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(13, 21, 38, 0.32);
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.certificate-dialog[open] {
  display: grid;
}

.certificate-dialog::backdrop {
  background: rgba(13, 21, 38, 0.68);
  backdrop-filter: blur(4px);
}

.certificate-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.certificate-dialog-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.certificate-dialog-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dialog-external-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  border-bottom: 1px solid transparent;
}

.dialog-external-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.certificate-dialog-close {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: 600 12.5px var(--sans);
  cursor: pointer;
}

.certificate-dialog-close:hover {
  color: var(--accent);
}

.certificate-dialog-close span {
  margin-left: 6px;
  font-size: 18px;
  vertical-align: -2px;
}

.certificate-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

/* FOOTER & CLOSING CHAPTER */
.site-footer {
  background: var(--midnight);
  color: #f8f6f0;
  padding-top: 96px;
}

.footer-editorial {
  max-width: 840px;
  padding-bottom: 72px;
}

.footer-editorial h2 {
  color: #f8f6f0;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.12;
}

.footer-editorial h2 em {
  color: #93c5fd;
}

.footer-contact-links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.footer-big-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f8f6f0;
  border-bottom: 1px solid rgba(248, 246, 240, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-big-link i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-big-link:hover {
  color: #93c5fd;
  border-bottom-color: #93c5fd;
}

.footer-big-link:hover i {
  transform: translate(3px, -3px);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-dark);
}

.footer-inner p {
  margin: 0;
  color: rgba(248, 246, 240, 0.55);
  font-size: 12.5px;
}

.footer-mark {
  gap: 0;
  font-size: 22px;
  letter-spacing: -0.05em;
  color: #f8f6f0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .shell {
    width: calc(100% - 56px);
  }

  .hero-masthead {
    max-width: 100%;
  }

  .hero-copy {
    width: 58%;
  }

  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-visual {
    width: min(48vw, 540px);
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .pillar-row,
  .pillar-row:nth-child(2),
  .pillar-row:last-child {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .pillar-row:last-child {
    border-bottom: 0;
  }

  .experience-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .experience-item {
    grid-template-columns: 160px minmax(200px, 1fr) 130px;
    column-gap: 24px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 66px;
  }

  .shell {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 66px;
  }

  .wordmark-full {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 19px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
  }

  .nav-links > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links > a::after {
    display: none;
  }

  .hero {
    min-height: 0;
    flex-direction: column;
  }

  .hero-shell {
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .hero-copy {
    width: 100%;
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(60px, 15vw, 88px);
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 400px);
    height: auto;
    margin: 8px auto 0;
  }

  .hero-visual img {
    width: 100%;
    height: auto;
  }

  .about-section,
  .experience-section,
  .certifications-section {
    padding: 68px 0;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }

  .company-logo {
    justify-self: start;
    justify-content: flex-start;
    order: -1;
    width: 110px;
    height: 36px;
  }

  .certification-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .certificate-viewer {
    justify-self: start;
  }

  .site-footer {
    padding-top: 68px;
  }

  .footer-contact-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .certificate-dialog {
    width: calc(100% - 16px);
    height: 92dvh;
    max-height: 92dvh;
    margin: auto;
  }
}

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