/* Deepak Kushwah — Midnight Blue
   Layout: one composed hero screen with the portrait embedded on the right;
   detail pages open with a large serif title over banknote-style guilloche. */

:root {
  /* Midnight Blue — dark-to-light navy journey, electric blue + cyan light, silver-fade type */
  --bg-top: #01071A; --bg-bot: #040E2E;
  --bg: #040E2E; --bg-rgb: 4, 14, 46; --bg-2: #061238; --surface: #0A1A45; --surface-2: #10225A;
  --ink: #FFFFFF; --silver: #D6DEF5; --muted: #9AA8CF; --dim: #8593BD;
  --line-rgb: 255, 255, 255; --line: rgba(var(--line-rgb), 0.10); --line-2: rgba(var(--line-rgb), 0.20);
  --accent: #0047FF; --accent-rgb: 0, 117, 255; --accent-hover: #1A5CFF; --accent-text: #5CC8FF;
  --accent-glow: rgba(0, 117, 255, 0.35); --on-accent: #FFFFFF;
  --head-bg: rgba(2, 9, 32, 0.62); --feature: #0D2669;
  --grain: 0.035;
  color-scheme: dark;
  --metal: linear-gradient(90deg, rgba(255,255,255,0.42) 0%, #FFFFFF 47%, rgba(255,255,255,0.34) 100%);
  --cyan: linear-gradient(120deg, #5CC8FF 0%, #00F0FF 50%, #3D8BFF 100%);
  --btn: linear-gradient(135deg, #0047FF 0%, #0075FF 60%, #00A3FF 100%);
  --bg-grad: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bot) 100%);
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  --ring: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 45%, rgba(0, 194, 255, 0.40));
  --rosette-op: 0.06;

  --f-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* fine film grain for depth */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 55; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.label {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.label-accent { color: var(--accent-text); }

/* ---------------- Header ---------------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--head-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; flex-shrink: 0; }
.mono {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line-2);
  font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: 0.04em;
}
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; }
.nav { display: flex; gap: 2.1rem; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; color: var(--silver);
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; padding-block: 6px;
  transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent); transition: right 0.3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.head-cta {
  flex-shrink: 0; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 10px 18px; border: 1px solid rgba(var(--accent-rgb), 0.7); color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}
.head-cta:hover, .head-cta[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.menu-btn {
  display: none; margin-left: auto; width: 42px; height: 42px; background: none;
  border: 1px solid var(--line-2); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.25s, background 0.25s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 16px 28px; font: 600 15px/1 var(--f-body); letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.25s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 40px -12px rgba(var(--accent-rgb), 0.7); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 16px 50px -12px rgba(var(--accent-rgb), 0.85); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--silver); }
.arrow { display: inline-block; transition: transform 0.25s ease; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------------- Entrance motion ---------------- */
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0.001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.draw { animation: draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0.5s); transform-origin: left; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
.rise, .draw { animation: none !important; }
  .arrow, .btn { transition: none; }
}

/* ---------------- Home hero ---------------- */
.hero { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 3rem; align-items: center; padding-block: 4.5rem 3.5rem;
}
.hero-copy { min-width: 0; }
.hero-name {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(4rem, 9.4vw, 8.6rem); line-height: 0.86; letter-spacing: -0.02em;
  margin: 1.6rem 0 1.9rem;
}
.hero-name em { display: block; font-style: italic; color: var(--silver); padding-left: 0.42em; }
.rule { width: 76px; height: 2px; background: var(--accent); margin-bottom: 1.6rem; }
.hero-role { font-size: 20px; font-weight: 600; margin: 0; }
.hero-org { font-size: 20px; color: var(--silver); margin: 0.2rem 0 0; }
.hero-sum { max-width: 54ch; color: var(--muted); font-size: 17px; line-height: 1.7; margin: 1.4rem 0 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.portrait { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 430px; }
.photo {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 54% 38%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 78% at 54% 38%, #000 52%, transparent 100%);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: grayscale(0.2) contrast(1.06) brightness(0.96); }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(var(--bg-rgb), 0.55), transparent 40%);
}
.portrait-tag {
  position: relative; z-index: 2; margin-top: -3.2rem; padding-left: 1.4rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line);
}
.fact { padding: 1.6rem 1.5rem 1.6rem 0; }
.fact + .fact { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.fact-val { font-family: var(--f-display); font-weight: 500; font-size: 58px; line-height: 1; font-variant-numeric: lining-nums; }
.fact-val sup { font-size: 0.5em; color: var(--accent-text); vertical-align: 0.75em; margin-left: 2px; }
.fact .label { display: block; margin-top: 0.6rem; }

.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 3rem 4.5rem; }
.door {
  position: relative; display: flex; flex-direction: column; gap: 0.6rem; min-height: 170px;
  padding: 1.6rem 1.5rem; background: var(--bg); text-decoration: none; overflow: hidden;
  transition: background 0.3s;
}
.door::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.door:hover { background: var(--surface); }
.door:hover::before { transform: scaleX(1); }
.door-title { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1.05; margin-top: auto; }
.door-desc { font-size: 14px; color: var(--muted); }
.door .arrow { position: absolute; right: 1.4rem; top: 1.45rem; color: var(--accent-text); font-size: 18px; }

/* ---------------- Detail pages ---------------- */
.page-hero { position: relative; padding-block: 5rem 3rem; border-bottom: 1px solid var(--line-2); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.page-title {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.9; letter-spacing: -0.02em; margin: 1.2rem 0 1.4rem;
}
.page-title em { font-style: italic; color: var(--silver); }
.page-intro { max-width: 58ch; color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.page-stat { text-align: right; }
.page-stat b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.85; color: var(--ink); }
.page-stat b i { font-style: normal; color: var(--accent-text); }
.page-body { padding-block: 1rem 2rem; }

/* Experience */
.role { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 3rem; padding-block: 2.4rem; border-bottom: 1px solid var(--line); }
.role-when { font-family: var(--f-mono); font-size: 13px; color: var(--silver); letter-spacing: 0.04em; }
.role-when .label { display: block; margin-top: 0.45rem; }
.role.current .role-when { color: var(--accent-text); }
.role h2 { font-family: var(--f-display); font-weight: 600; font-size: 38px; line-height: 1.05; margin: 0; }
.role-title { margin: 0.35rem 0 1rem; color: var(--silver); font-weight: 500; }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; max-width: 70ch; }
.role li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.role li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 9px; height: 1px; background: var(--accent); }
.arc { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-top: 2rem; }
.arc span { font-size: 14px; color: var(--silver); }
.arc i { font-style: normal; color: var(--accent-text); }

/* Expertise */
.domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
.domain { background: var(--bg); padding: 2.2rem 2rem; min-width: 0; transition: background 0.3s; }
.domain:hover { background: var(--surface); }
.domain h2 { font-family: var(--f-display); font-weight: 600; font-size: 36px; margin: 0.7rem 0 1.3rem; line-height: 1.05; }
.domain dl { margin: 0; display: grid; gap: 0.9rem; }
.domain dt { font-weight: 600; }
.domain dd { margin: 0.15rem 0 0; color: var(--muted); font-size: 15px; }
.tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.tool { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--silver); border: 1px solid var(--line-2); padding: 7px 12px; }

/* Credentials */
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
.cert { position: relative; background: var(--bg); padding: 2rem 1.8rem 1.8rem; display: flex; flex-direction: column; gap: 0.4rem; min-height: 220px; transition: background 0.3s; }
.cert:hover { background: var(--surface); }
.cert.feature { background: linear-gradient(160deg, var(--feature) 0%, var(--bg) 62%); }
.cert-code { font-family: var(--f-display); font-weight: 600; font-size: 40px; line-height: 1; }
.cert-name { color: var(--silver); margin-top: 0.4rem; }
.cert-issuer { color: var(--muted); font-size: 14px; }
.cert-id { margin-top: auto; padding-top: 1.2rem; font-family: var(--f-mono); font-size: 12px; color: var(--dim); letter-spacing: 0.06em; }
.cert-id b { color: var(--silver); font-weight: 500; }
.section-label { margin-top: 4rem; }
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; margin-top: 1.2rem; }
.edu-item { border-top: 1px solid var(--line-2); padding-top: 1.4rem; min-width: 0; }
.edu-item h3 { font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 0.6rem 0 0.35rem; }
.edu-item p { margin: 0; color: var(--silver); }

/* Endorsements */
.quote { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3.5rem; padding-block: 3rem; border-bottom: 1px solid var(--line); }
.quote-by { display: flex; flex-direction: column; gap: 0.2rem; }
.initials {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 1rem;
  border: 1px solid var(--line-2); border-radius: 50%;
  font-family: var(--f-display); font-size: 19px; font-weight: 600;
}
.quote-name { font-weight: 600; font-size: 17px; }
.quote-pos { color: var(--silver); font-size: 14px; }
.quote-rel { color: var(--muted); font-size: 13px; margin-top: 0.4rem; }
.quote blockquote { margin: 0; position: relative; }
.quote blockquote::before {
  content: "\201C"; position: absolute; left: -0.08em; top: -0.42em;
  font-family: var(--f-display); font-size: 120px; line-height: 1; color: var(--accent); opacity: 0.85;
}
.quote blockquote p {
  font-family: var(--f-display); font-weight: 500; font-size: 27px; line-height: 1.42;
  margin: 0 0 1rem; max-width: 58ch; padding-top: 1.2rem;
}
.quote blockquote p + p { padding-top: 0; }
.li-link { display: inline-flex; gap: 0.5rem; margin-top: 2.4rem; color: var(--accent-text); font-weight: 600; text-decoration: none; font-size: 15px; }
.li-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; margin-top: 2.5rem; }
.channel { padding-block: 1.4rem; border-bottom: 1px solid var(--line); min-width: 0; }
.channel:first-child { padding-top: 0; }
.channel-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.channel-val { font-family: var(--f-display); font-size: 28px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; line-height: 1.15; }
a.channel-val:hover { color: var(--accent-text); }
.copy {
  flex-shrink: 0; background: none; border: 1px solid var(--line-2); color: var(--silver); cursor: pointer;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 12px;
}
.copy:hover { border-color: var(--accent); color: var(--ink); }
.form { display: grid; gap: 1.2rem; align-content: start; padding: 2.2rem; background: var(--surface); border: 1px solid var(--line); }
.form h2 { font-family: var(--f-display); font-weight: 600; font-size: 32px; margin: 0; }
.field { display: grid; gap: 0.5rem; }
.field input, .field textarea {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 0;
  padding: 0.85rem 0.95rem; font: 400 16px/1.5 var(--f-body); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: var(--silver); }
.form-note.err { color: var(--accent-text); }

/* Next page */
.next {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 3rem; padding-block: 2.2rem; border-top: 1px solid var(--line-2); text-decoration: none;
}
.next-title { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; line-height: 1; margin-top: 0.5rem; }
.next .arrow { font-size: 36px; color: var(--accent-text); }
.next:hover .next-title { color: var(--silver); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 2rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding-block: 1.6rem; }
.foot-row span, .foot-row a { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot-row a:hover { color: var(--ink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .nav { gap: 1.4rem; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .menu-btn { display: inline-flex; }
  .head-cta { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(76px + env(safe-area-inset-top, 0px)); margin: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line-2);
    padding: 0.5rem max(var(--gutter), env(safe-area-inset-right, 0px)) 1.5rem max(var(--gutter), env(safe-area-inset-left, 0px));
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.25s, visibility 0.2s;
  }
  .nav a { padding-block: 1rem; border-bottom: 1px solid var(--line); font-size: 17px; font-family: var(--f-display); font-weight: 600; }
  .nav a::after { display: none; }
  .nav .nav-contact { display: block; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 2rem 2.5rem; }
  .portrait { order: -1; justify-self: start; max-width: 300px; margin-bottom: 2rem; }
  .portrait-tag { margin-top: -2.6rem; }
  .hero-name { margin-top: 1.4rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact-val { font-size: 46px; }
  .page-hero { padding-block: 3rem 2.2rem; }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-stat { text-align: left; }
  .role, .quote { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .domains, .contact, .edu { grid-template-columns: minmax(0, 1fr); }
  .contact { gap: 3rem; }
  .edu { gap: 2rem; }
  .quote blockquote p { font-size: 22px; }
  .role h2 { font-size: 32px; }
}
@media (min-width: 901px) { .nav .nav-contact { display: none; } }
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .brand-name { font-size: 18px; }
  .head-row { height: 68px; }
  .nav { top: calc(68px + env(safe-area-inset-top, 0px)); }
  .doors, .certs { grid-template-columns: minmax(0, 1fr); }
  .door { min-height: 130px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-sum { font-size: 16px; }
  .form { padding: 1.5rem; }
  .channel-val { font-size: 23px; }
  .domain { padding: 1.7rem 1.4rem; }
}

/* =====================================================================
   Premium layer — layered grounds, metallic foil, guilloche, glass
   ===================================================================== */
body { background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed; }
.metal {
  background: var(--metal); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: foil 9s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-name em.metal { color: transparent; }
.rule { background: var(--metal); height: 2px; }
.label-accent { color: var(--accent-text); }

/* gradient hairline borders */
.ringed { position: relative; }
.ringed::after {
  content: ""; position: absolute; inset: 0; padding: 1px; pointer-events: none;
  background: var(--ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* header */
.site-head { border-bottom: 0; }
.site-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--line-rgb), 0.35) 20%, rgba(var(--accent-rgb), 0.5) 50%, rgba(var(--line-rgb), 0.35) 80%, transparent);
}
.mono { border: 0; background: var(--glass); }
.mono.ringed::after { background: var(--metal); }
.head-cta { border-color: rgba(var(--accent-rgb), 0.55); }
.head-cta:hover, .head-cta[aria-current="page"] { background: var(--btn); border-color: transparent; }

/* buttons */
.btn-primary { background: var(--btn); background-size: 160% 100%; background-position: 0% 50%; position: relative; overflow: hidden;
  box-shadow: 0 14px 40px -14px rgba(var(--accent-rgb), 0.75), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); transition: left 0.7s ease;
}
.btn-primary:hover { background: var(--btn); background-size: 160% 100%; background-position: 100% 50%; }
.btn-primary:hover::before { left: 120%; }
.btn-ghost { background: var(--glass); border-color: rgba(var(--line-rgb), 0.3); backdrop-filter: blur(6px); }

/* guilloche rosette */
.rosette {
  position: absolute; pointer-events: none; z-index: 0; aspect-ratio: 1; max-width: none;
  background: var(--metal); opacity: var(--rosette-op);
  -webkit-mask: url("rosette.svg") center / contain no-repeat; mask: url("rosette.svg") center / contain no-repeat;
  animation: spin 160s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* portrait in a metallic arch */
.portrait { max-width: 440px; }
.portrait .rosette { width: 760px; left: 50%; top: 46%; margin: -380px 0 0 -380px; }
.arch {
  position: relative; z-index: 1; padding: 10px; border-radius: 999px 999px 10px 10px;
  background: var(--metal); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(var(--line-rgb), 0.06);
}
.arch-in { border-radius: 999px 999px 4px 4px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface); position: relative; }
.arch-in img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; filter: contrast(1.04) saturate(0.92); }
.arch-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--bg-rgb), 0.55), transparent 35%); }
.portrait-tag { margin-top: 0; padding: 1.1rem 0 0; align-items: center; text-align: center; }
.seal {
  position: absolute; z-index: 2; right: -18px; bottom: 74px; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--btn);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  color: var(--on-accent);
}
.seal b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 30px; line-height: 1; }
.seal span { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }
.seal::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.45); }

/* facts in a glass band */
.facts { border: 0; background: var(--glass); backdrop-filter: blur(8px); padding-inline: 1.75rem; margin-top: 1rem; }
.fact-val { background: var(--metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fact-val sup { -webkit-text-fill-color: var(--accent-text); }

/* doors and cards as glass */
.doors, .domains, .certs { background: transparent; border: 0; gap: 14px; }
.door, .domain, .cert { background: var(--glass); backdrop-filter: blur(8px); }
.door:hover, .domain:hover, .cert:hover { background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.12), rgba(var(--line-rgb), 0.02)); }
.door::before { background: var(--metal); }
.door .arrow { color: var(--accent-text); }
.cert.feature { background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.16), rgba(var(--line-rgb), 0.02) 70%); }
.cert-code { background: var(--metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* detail page hero */
.page-hero { border-bottom: 0; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--line-rgb), 0.3) 15%, rgba(var(--accent-rgb), 0.45) 50%, rgba(var(--line-rgb), 0.3) 85%, transparent); }
.page-hero .rosette { width: 720px; right: -220px; top: -260px; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-stat b { background: var(--metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-stat b i { -webkit-text-fill-color: var(--accent-text); }
.role h2 { transition: color 0.2s; }
.role:hover h2 { color: var(--silver); }
.quote blockquote::before { background: var(--metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 1; }
.initials { border: 0; background: var(--glass); }
.initials.ringed::after { border-radius: 50%; background: var(--metal); }
.form { background: var(--glass); border: 0; backdrop-filter: blur(8px); }
.next-title { transition: color 0.2s; }
.next:hover .next-title { color: transparent; background: var(--metal); -webkit-background-clip: text; background-clip: text; }

@media (prefers-reduced-motion: reduce) { .metal, .rosette, .fact-val { animation: none !important; } }
@media (max-width: 900px) {
  .portrait { max-width: 290px; justify-self: center; }
  .portrait .rosette { width: 560px; margin: -280px 0 0 -280px; }
  .seal { width: 92px; height: 92px; right: -10px; bottom: 64px; }
  .seal b { font-size: 24px; }
  .facts { padding-inline: 1.1rem; }
  .page-hero .rosette { width: 520px; right: -200px; top: -200px; }
}

/* =====================================================================
   Clean portrait + banknote security motifs
   ===================================================================== */
.photo-card {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden;
  border-radius: 14px; background: var(--surface);
  box-shadow: 0 40px 90px -35px rgba(0,0,0,0.75), 0 0 0 1px rgba(var(--line-rgb), 0.14);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; filter: contrast(1.03) saturate(0.94); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--bg-rgb), 0.45), transparent 32%); }
.portrait { max-width: 400px; }
.portrait .rosette { width: 820px; margin: -410px 0 0 -410px; }

/* Guilloche wave band — like a banknote border */
.wave {
  height: 32px; width: 100%; background: var(--metal); opacity: 0.55;
  -webkit-mask: url("wave.svg") 0 50% / 400px 32px repeat-x; mask: url("wave.svg") 0 50% / 400px 32px repeat-x;
  animation: drift 40s linear infinite;
}
@keyframes drift { to { -webkit-mask-position: 400px 50%; mask-position: 400px 50%; } }
.wave-thin { height: 22px; opacity: 0.45; -webkit-mask-size: 520px 22px; mask-size: 520px 22px; }

/* Microprint — tiny repeated text, as printed on currency */
.micro {
  overflow: hidden; white-space: nowrap; user-select: none;
  font-family: var(--f-mono); font-size: 7px; letter-spacing: 0.32em; line-height: 1; text-transform: uppercase;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.7; padding-block: 6px;
}
.micro-rule { border-top: 1px solid rgba(var(--line-rgb), 0.12); border-bottom: 1px solid rgba(var(--line-rgb), 0.12); }

/* extra rosettes */
.hero .rosette-b { width: 520px; left: -260px; bottom: -180px; animation-direction: reverse; opacity: calc(var(--rosette-op) * 0.7); }
.hero { overflow: hidden; }
.next { position: relative; overflow: hidden; }
.next .rosette { width: 380px; right: -60px; top: 50%; margin-top: -190px; opacity: calc(var(--rosette-op) * 0.8); }
.next > span { position: relative; z-index: 1; }
.site-foot { position: relative; overflow: hidden; }
.site-foot .rosette { width: 460px; left: 50%; top: 10px; margin-left: -230px; opacity: calc(var(--rosette-op) * 0.6); }
.foot-row { position: relative; z-index: 1; }
.contact-seal { position: relative; }
.contact-seal .rosette { width: 560px; right: -200px; top: -120px; }
.page-hero::after { display: none; }
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }
@media (max-width: 900px) {
  .portrait { max-width: 280px; }
  .portrait .rosette { width: 580px; margin: -290px 0 0 -290px; }
  .hero .rosette-b { display: none; }
}

/* =====================================================================
   Security patterns live in the page background, not behind the photo
   ===================================================================== */
.bg-guilloche { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-guilloche .r1 { width: 1000px; left: -460px; top: 34%; }
.bg-guilloche .r2 { width: 820px; right: -380px; bottom: -420px; animation-direction: reverse; opacity: calc(var(--rosette-op) * 0.75); }
.bg-wave {
  position: absolute; left: 0; right: 0; bottom: 12%; height: 60px; background: var(--metal);
  opacity: calc(var(--rosette-op) * 1.4);
  -webkit-mask: url("wave.svg") 0 50% / 800px 60px repeat-x; mask: url("wave.svg") 0 50% / 800px 60px repeat-x;
  animation: drift 60s linear infinite;
}
main { position: relative; z-index: 1; }

/* portrait sits to one side, no halo */
.portrait { justify-self: end; max-width: 360px; }
.portrait-tag { align-items: flex-start; text-align: left; padding-left: 0; }
@media (max-width: 900px) {
  .portrait { justify-self: start; max-width: 220px; margin-bottom: 1.6rem; }
  .bg-guilloche .r1 { width: 720px; left: -420px; top: 46%; }
  .bg-guilloche .r2 { width: 600px; right: -360px; bottom: -300px; }
}

/* Portrait merges into the page: no card, edges dissolve into the ground */
.photo-card {
  border-radius: 0; box-shadow: none; background: transparent; overflow: visible;
  -webkit-mask-image: radial-gradient(ellipse 66% 60% at 50% 40%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 66% 60% at 50% 40%, #000 52%, transparent 100%);
}
.photo-card::after { display: none; }
.photo-card img { filter: contrast(1.02) saturate(0.9); }
.photo-card img { mix-blend-mode: multiply; filter: contrast(1.04) saturate(0.88) sepia(0.06); }

/* =====================================================================
   Final hero: cut-out portrait embedded on the right, bleeding into the page
   ===================================================================== */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: end; padding-block: 3.5rem 0; }
.hero-copy { padding-bottom: 3.2rem; position: relative; z-index: 2; }
.portrait { position: relative; justify-self: stretch; max-width: none; width: 100%; margin: 0 calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px))) 0 -6%; align-self: end; }
.photo-card {
  aspect-ratio: auto; max-width: 100%; border-radius: 0; box-shadow: none; background: transparent;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 26%);
          mask-image: linear-gradient(to top, transparent 0%, #000 26%);
}
.photo-card img { width: 100%; height: auto; max-height: 640px; object-fit: contain; object-position: right bottom; filter: contrast(1.03) saturate(0.92) sepia(0.05); mix-blend-mode: normal; }
.wave-hero { margin-top: -1.2rem; position: relative; z-index: 2; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 1.5rem; }
  .portrait { order: -1; margin: 0 0 -1rem auto; width: 78%; max-width: 360px; justify-self: end; }
  .photo-card img { max-height: 420px; }
  .hero-copy { padding-bottom: 2rem; }
}
.portrait { margin-left: 0; }
.photo-card img { width: auto; height: min(620px, 62vw); max-width: 100%; margin-left: auto; }
@media (max-width: 900px) { .photo-card img { height: auto; width: 100%; } }

/* Keep the portrait beside the name on laptops and tablets */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 1.5rem; align-items: start; padding-top: 2.5rem; }
  .portrait { order: 0; width: 100%; max-width: none; justify-self: end; align-self: start; margin: 1.5rem calc(-1 * var(--gutter)) 0 0; }
  .photo-card img { width: 100%; height: auto; }
  .hero-copy { padding-bottom: 2.2rem; }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 1.5rem; }
  .portrait { order: -1; width: 72%; max-width: 320px; margin: 0 0 -1rem auto; }
}

/* Portrait at 75% of its previous size */
.photo-card img { height: min(465px, 46.5vw); }
@media (max-width: 900px) { .photo-card img { width: 75%; height: auto; } }
@media (max-width: 640px) { .portrait { width: 54%; max-width: 240px; } .photo-card img { width: 100%; } }

/* Hero: copy left, portrait centred in the right column, edges dissolving into the page */
.hero-grid { align-items: center; padding-block: 3.5rem 2.5rem; }
.hero-copy { padding-bottom: 0; }
.portrait { align-self: center; justify-self: center; width: 100%; margin: 0; }
.photo-card {
  -webkit-mask-image: radial-gradient(ellipse 50% 54% at 50% 42%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 54% at 50% 42%, #000 62%, transparent 100%);
}
.photo-card img { display: block; margin: 0 auto; }
.wave-hero { margin-top: 0; }
@media (max-width: 900px) {
  .portrait { align-self: center; justify-self: end; margin: 0; }
  .photo-card img { margin: 0 0 0 auto; }
}
@media (max-width: 640px) {
  .portrait { margin: 0 0 0.5rem auto; }
}

.photo-card img { filter: contrast(1.04) saturate(0.95); }

/* =====================================================================
   Midnight Blue — mature finish inspired by the navy portfolio template
   ===================================================================== */
body { background: var(--bg-bot); background-image: var(--bg-grad); background-attachment: fixed; font-family: var(--f-body); }
.label { font-family: var(--f-body); font-weight: 700; font-size: 11.5px; letter-spacing: 0.2em; }
.label-accent { color: var(--accent-text); }

/* light: blurred glow orbs */
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(110px); }
.orb-a { width: 780px; height: 780px; right: -260px; top: -300px; background: radial-gradient(circle, rgba(0,71,255,0.75) 0%, rgba(0,71,255,0) 68%); }
.orb-b { width: 900px; height: 900px; left: -420px; bottom: -460px; background: radial-gradient(circle, rgba(0,194,255,0.38) 0%, rgba(0,117,255,0) 66%); }
.orb-c { width: 420px; height: 420px; left: 46%; top: 58%; background: radial-gradient(circle, rgba(0,48,137,0.55) 0%, rgba(3,18,46,0) 70%); filter: blur(60px); }
.bg-guilloche .rosette { opacity: var(--rosette-op); }
.bg-wave, .wave { opacity: 0.22; }
.wave-thin { opacity: 0.2; }

/* header: glass bar */
.site-head { background: var(--head-bg); }
.site-head::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18) 20%, rgba(0,194,255,0.45) 50%, rgba(255,255,255,0.18) 80%, transparent); }
.brand-name, .mono { font-family: var(--f-display); font-weight: 600; letter-spacing: 0; }
.mono { border-radius: 10px; }
.mono.ringed::after { border-radius: 10px; background: var(--ring); }
.nav a { font-family: var(--f-body); font-weight: 600; }
.head-cta { border-radius: 999px; border-color: rgba(255,255,255,0.28); background: var(--glass); }
.head-cta:hover, .head-cta[aria-current="page"] { background: var(--btn); border-color: transparent; }
.menu-btn { border-radius: 10px; }

/* silver-fade type */
.hero-name, .page-title, .door-title, .domain h2, .cert-code, .edu-item h3, .role h2, .next-title, .channel-val, .form h2, .section-sub, .fact-val, .page-stat b {
  font-family: var(--f-display); letter-spacing: -0.02em;
}
.hero-name { font-weight: 600; font-size: clamp(3.4rem, 7.2vw, 6.4rem); line-height: 0.96; margin: 1.4rem 0 1.4rem; position: relative; z-index: 1; }
.hero-name em, .hero-name em.metal { display: block; font-style: normal; padding-left: 0; font-weight: 300; }
.metal, .page-title, .fact-val, .page-stat b, .cert-code {
  background: var(--metal); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: none;
}
.page-title { font-weight: 500; }
.page-title em { font-style: normal; font-weight: 300; }
.fact-val sup, .page-stat b i { -webkit-text-fill-color: #5CC8FF; }
.rule { background: var(--cyan); width: 64px; height: 2px; border-radius: 2px; }

/* ghost word, like the template's oversized HELLO */
.hero-copy, .page-hero .wrap > div:first-child { position: relative; }
.ghost {
  position: absolute; left: -0.04em; top: 0.1em; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(5.5rem, 15vw, 13rem); line-height: 0.8; letter-spacing: -0.03em;
  background: linear-gradient(180deg, rgba(50,64,166,0.55) 0%, rgba(3,16,53,0) 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero .ghost { top: 0.6em; }
.page-hero .label, .page-hero .page-title, .page-hero .page-intro, .hero-copy > *:not(.ghost) { position: relative; z-index: 1; }

/* glass chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 9px 16px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600; color: var(--silver); letter-spacing: 0.02em;
}
.chip.ringed::after { border-radius: 999px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #00E0A4; box-shadow: 0 0 0 0 rgba(0,224,164,0.6); animation: ping 2.4s ease-out infinite; }
.hero-role { font-family: var(--f-body); font-weight: 700; }
.hero-org, .hero-sum { font-family: var(--f-body); }
.hero-sum { color: var(--muted); }

/* buttons */
.btn { border-radius: 12px; font-family: var(--f-body); font-weight: 700; }
.btn-primary { background: var(--btn); box-shadow: 0 16px 44px -14px rgba(0, 117, 255, 0.85), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:hover { background: var(--btn); box-shadow: 0 20px 56px -14px rgba(0, 194, 255, 0.85); }
.btn-ghost { background: var(--glass); border-color: rgba(255,255,255,0.22); }

/* glass panels and cards */
.facts { border-radius: 24px; background: var(--glass); }
.facts.ringed::after, .door.ringed::after, .domain.ringed::after, .cert.ringed::after, .form.ringed::after, .quote.ringed::after { border-radius: inherit; }
.fact-val { font-weight: 500; }
.doors, .domains, .certs { gap: 16px; }
.door, .domain, .cert { border-radius: 22px; background: var(--glass); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.door:hover, .domain:hover, .cert:hover { background: linear-gradient(160deg, rgba(0, 117, 255, 0.22), rgba(255, 255, 255, 0.03)); box-shadow: 0 30px 70px -26px rgba(0, 117, 255, 0.55); }
.door::before { display: none; }
.door-title { font-weight: 600; }
.door .arrow, .next .arrow { color: #5CC8FF; }
.cert.feature { background: linear-gradient(160deg, rgba(0, 117, 255, 0.28), rgba(255, 255, 255, 0.03) 70%); }
.cert-code { font-weight: 600; }
.cert-id b { color: var(--ink); }
.tool { border-radius: 999px; background: var(--glass); border-color: rgba(255,255,255,0.16); font-family: var(--f-body); font-weight: 600; letter-spacing: 0.02em; }
.domain h2 { font-weight: 600; }

/* experience: vertical timeline with glowing milestones */
.role { position: relative; border-bottom: 0; padding-block: 1.6rem; }
.role > div:last-child { position: relative; padding: 1.6rem 1.8rem 1.6rem 2.4rem; border-radius: 22px; background: var(--glass); }
.role > div:last-child::before { content: ""; position: absolute; left: -1.55rem; top: -1.6rem; bottom: -1.6rem; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.28), rgba(255,255,255,0.05)); }
.role > div:last-child::after { content: ""; position: absolute; left: calc(-1.55rem - 5px); top: 2.2rem; width: 11px; height: 11px; border-radius: 50%; background: #0B1B4D; border: 2px solid #5CC8FF; }
.role.current > div:last-child::after { background: #5CC8FF; box-shadow: 0 0 0 6px rgba(92, 200, 255, 0.18), 0 0 24px rgba(0, 194, 255, 0.8); }
.role h2 { font-weight: 600; font-size: 32px; }
.role li::before { background: #5CC8FF; }
.role-when { font-family: var(--f-body); font-weight: 700; padding-top: 1.8rem; }
.role.current .role-when { color: #5CC8FF; }
.arc i { color: #5CC8FF; }

/* endorsements as glass cards */
.quote { border-bottom: 0; margin-block: 16px; padding: 2.4rem; border-radius: 24px; background: var(--glass); }
.quote blockquote::before { background: var(--cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.quote blockquote p { font-family: var(--f-body); font-weight: 500; font-size: 21px; line-height: 1.6; }
.initials { font-family: var(--f-display); }
.initials.ringed::after { background: var(--ring); }

/* contact */
.form { border-radius: 24px; background: var(--glass); }
.field input, .field textarea { border-radius: 12px; background: rgba(255, 255, 255, 0.04); border-color: rgba(255,255,255,0.16); font-family: var(--f-body); }
.field input:focus, .field textarea:focus { border-color: #5CC8FF; box-shadow: 0 0 0 4px rgba(92, 200, 255, 0.15); }
.channel-val { font-weight: 500; }
.copy { border-radius: 999px; font-family: var(--f-body); font-weight: 700; }
.li-link { color: #5CC8FF; }

/* page hero + next link */
.page-hero::after { display: none; }
.page-stat b { font-weight: 500; }
.next { border-top-color: rgba(255,255,255,0.14); }
.next-title { font-weight: 500; }
.next:hover .next-title { background: var(--cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* portrait on navy: soft blue rim light, edges dissolve */
.photo-card img { filter: contrast(1.04) saturate(0.96) brightness(1.02); }
.photo-card { z-index: 1; }

@media (max-width: 900px) {
  .ghost { font-size: 22vw; }
  .role > div:last-child { padding: 1.3rem 1.3rem 1.3rem 1.6rem; }
  .role > div:last-child::before, .role > div:last-child::after { display: none; }
  .role-when { padding-top: 0; }
  .quote { padding: 1.6rem; }
  .quote blockquote p { font-size: 18px; }
}
.page-hero .ghost { top: auto; bottom: 0.15em; left: auto; right: 0; font-size: clamp(6rem, 17vw, 15rem); opacity: 0.75; }
.page-hero-grid > div:first-child { position: static; }
.page-hero .wrap { position: relative; }
@media (max-width: 900px) { .page-hero .ghost { font-size: 26vw; bottom: auto; top: 0.4em; } }

/* Honeypot field for the contact form: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- QA pass: accessibility + performance ---- */
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #fff; color: #01071A; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
.orb, .rosette, .wave, .metal, .fact-val, .chip .dot { animation: none !important; }
}
/* Animating mask-position and huge masked layers repaints every frame: stop them on phones */
@media (max-width: 900px) {
  .bg-guilloche .rosette, .hero .rosette, .page-hero .rosette, .wave { animation: none; }
}
/* Email address was breaking mid-word on narrow phones */
@media (max-width: 480px) { .channel-val { font-size: clamp(15px, 4.8vw, 20px); overflow-wrap: anywhere; } .channel-row { gap: 0.6rem; } }

/* ---- Utilities that replace inline style="" (lets the CSP drop 'unsafe-inline') ---- */
.d-08 { --d: .08s; } .d-1 { --d: .1s; } .d-18 { --d: .18s; } .d-2 { --d: .2s; } .d-3 { --d: .3s; }
.d-35 { --d: .35s; } .d-36 { --d: .36s; } .d-4 { --d: .4s; } .d-42 { --d: .42s; } .d-45 { --d: .45s; }
.d-55 { --d: .55s; } .d-65 { --d: .65s; } .d-75 { --d: .75s; }
.mt-wave { margin-top: 2.6rem; }
.block { display: block; }

/* ---- Per-page background tokens (set on <html class="pg-...">) ---- */
html.pg-index, html.pg-404 { --bg-top: #01071A; --bg-bot: #040E2E; --bg: #040E2E; }
html.pg-experience { --bg-top: #020C2A; --bg-bot: #04123B; --bg: #04123B; }
html.pg-expertise { --bg-top: #04123A; --bg-bot: #06174B; --bg: #06174B; }
html.pg-credentials { --bg-top: #06174A; --bg-bot: #0D266A; --bg: #0D266A; }
html.pg-endorsements { --bg-top: #0A1F5C; --bg-bot: #163A92; --bg: #163A92; --muted: #B4C0E3; --dim: #A5B2DA; }
html.pg-contact { --bg-top: #12348A; --bg-bot: #1760C6; --bg: #1760C6; --muted: #E4EAFB; --dim: #D3DCF3; --silver: #F4F7FF; --accent-text: #C4EBFF; }

/* ---- Mobile hero (phones): name and role reach the first screen, portrait fades into the name ---- */
.lbl-short { display: none; }
@media (max-width: 640px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .hero-grid { padding-block: 1rem 1.5rem; }
  .hero .ghost { display: none; }
  .portrait { order: -1; justify-self: center; width: 64%; max-width: 250px; margin: 0 auto -1.4rem; }
  .photo-card {
    -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 52%, transparent 100%);
  }
  .photo-card img { margin: 0 auto; }
  .hero-copy { position: relative; z-index: 2; text-align: left; }
  .hero-sum { font-size: 16px; margin: 1.1rem 0 1.6rem; }
  .chips { gap: 8px; }
  .chip { padding: 7px 12px; font-size: 12px; }
}
@media (max-width: 380px) { .lbl-short { letter-spacing: 0.1em; font-size: 10.5px; } .hero-org { font-size: 18px; } }

/* Safety net for content edited in /admin: a very long word or link wraps instead of pushing the page sideways */
.role li, .role-title, .domain dt, .domain dd, .cert-name, .cert-issuer, .cert-id, .edu-item p, .quote blockquote p,
.quote-name, .quote-pos, .quote-rel, .hero-sum, .hero-org, .hero-role, .page-intro, .door-desc, .tool, .chip, .arc span, .fact .label, .channel-val { overflow-wrap: anywhere; }
.role h2, .domain h2, .cert-code, .edu-item h3 { overflow-wrap: break-word; }
/* Certificate grid: when the last row is not full its cards stretch, so there is never an empty gap */
@media (min-width: 1081px) {
  .certs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cert { grid-column: span 2; }
  .cert:last-child:nth-child(3n + 1) { grid-column: span 6; }
  .cert:nth-last-child(2):nth-child(3n + 1), .cert:last-child:nth-child(3n + 2) { grid-column: span 3; }
}
@media (min-width: 561px) and (max-width: 1080px) { .cert:last-child:nth-child(odd) { grid-column: 1 / -1; } }
