/* Define the visual tokens so the entire interface can be tuned consistently. */
:root {
  /* Use an almost-black navy for the cinematic opening. */
  --ink: #07090d;
  /* Use a deep blue-black for supporting dark surfaces. */
  --ink-2: #0c1118;
  /* Use an ivory canvas for the editorial body. */
  --paper: #f3f0e9;
  /* Use a brighter paper surface for cards. */
  --paper-2: #fbfaf7;
  /* Use a dark ink color on the light sections. */
  --text: #11161d;
  /* Use a muted body text color for hierarchy. */
  --muted: #65707c;
  /* Use a quiet border color for editorial structure. */
  --line: rgba(17, 22, 29, 0.13);
  /* Use a cyan accent that connects naturally to the Earth artwork. */
  --accent: #35c8ff;
  /* Use a warm accent for recognition and creative details. */
  --warm: #d98c4b;
  /* Keep content width consistent across sections. */
  --max: 1240px;
  /* Keep section spacing generous for a premium feel. */
  --section-space: clamp(100px, 13vw, 190px);
}
/* Make sizing predictable for every element. */
* { box-sizing: border-box; }
/* Remove browser default margins that interfere with the composition. */
html, body { margin: 0; padding: 0; }
/* Enable smooth navigation while preserving the direct scroll scrub interaction. */
html { scroll-behavior: smooth; }
/* Set the page-wide typography and background. */
body { background: var(--paper); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Remove default link decoration while keeping links visibly interactive through states. */
a { color: inherit; text-decoration: none; }
/* Make images responsive and block-level. */
img { display: block; max-width: 100%; }
/* Make buttons and links inherit the page typography. */
button, a { font: inherit; }
/* Provide an accessible keyboard skip link without affecting the visual design. */
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 999px; background: #fff; color: #000; transition: top 180ms ease; }
/* Reveal the skip link when it receives keyboard focus. */
.skip-link:focus { top: 16px; }
/* Create a floating navigation shell that can adapt its contrast to the cinematic artwork beneath it. */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 24px; pointer-events: none; transition: padding 320ms cubic-bezier(.2,.8,.2,1); }
/* Align navigation content with the page grid. */
.nav-inner { width: min(calc(100% - 0px), var(--max)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Style the brand as a compact editorial signature with adaptive contrast and a subtle magnetic hover surface. */
.nav-brand { position: relative; isolation: isolate; pointer-events: auto; color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; transform: translate3d(var(--brand-x, 0px), var(--brand-y, 0px), 0) scale(var(--brand-scale, 1)); transform-origin: left center; transition: color 220ms ease, transform 180ms cubic-bezier(.2,.8,.2,1), text-shadow 220ms ease; }
/* Add glass only on interaction so the brand does not compete with the larger navigation glass pill. */
.nav-brand::before { content: ""; position: absolute; z-index: -1; inset: -9px -13px; border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; background: rgba(10,12,16,0.34); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 8px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.08); opacity: 0; transform: scale(0.96); transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), background 220ms ease, border-color 220ms ease; }
/* Reveal the brand's micro-glass surface when the cursor engages it. */
.nav-brand:hover::before, .nav-brand.magnetic-enabled:focus-visible::before { opacity: 1; transform: scale(1); }
/* Make the brand feel slightly more luminous while it is being magnified. */
.nav-brand:hover { text-shadow: 0 0 18px rgba(255,255,255,0.18); }
/* Keep navigation links in a compact glass pill with a translucent surface. */
.nav-links { position: relative; pointer-events: auto; display: flex; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; background: rgba(8,10,14,0.52); backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(20px) saturate(145%); box-shadow: 0 10px 35px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08); transition: background 220ms ease, border-color 220ms ease, box-shadow 320ms ease, transform 320ms cubic-bezier(.2,.8,.2,1); }
/* Style each navigation link as a quiet control whose scale is driven by cursor proximity. */
.nav-links a { position: relative; z-index: 1; padding: 8px 11px; border-radius: 999px; color: rgba(255,255,255,0.78); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.04em; transform: translate3d(0, var(--mag-y, 0px), 0) scale(var(--mag-scale, 1)); transform-origin: center center; will-change: transform; transition: color 180ms ease, background 180ms ease, transform 120ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease; }
/* Give navigation links a refined hover state without changing their layout footprint. */
.nav-links a:hover, .nav-links a.is-magnetic-focus { color: #fff; background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 0 5px 18px rgba(0,0,0,0.08); }
/* Keep the glass navigation shell responsive to cursor proximity without adding a second competing container. */
.nav-links.magnetic-enabled { overflow: visible; }
/* Give the active section a persistent iPhone-like floating pill. */
.nav-links a.is-active { color: #fff; background: rgba(255,255,255,0.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
/* Switch the navigation to a light surface when the Earth underneath becomes bright. */
.site-nav.nav-light-surface .nav-brand { color: #090d12; }
/* Keep navigation bright whenever it sits over one of the portfolio's intentionally dark editorial sections. */
.site-nav.nav-dark-surface .nav-brand { color: #fff; }
.site-nav.nav-dark-surface .nav-brand::before { background: rgba(10,12,16,0.38); border-color: rgba(255,255,255,0.16); box-shadow: 0 8px 24px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.08); }
.site-nav.nav-dark-surface .nav-links { background: rgba(8,10,14,0.52); border-color: rgba(255,255,255,0.18); box-shadow: 0 10px 35px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08); }
.site-nav.nav-dark-surface .nav-links a { color: rgba(255,255,255,0.78); }
.site-nav.nav-dark-surface .nav-links a.is-active, .site-nav.nav-dark-surface .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }
/* Switch the brand micro-glass surface to a light material over bright editorial backgrounds. */
.site-nav.nav-light-surface .nav-brand::before { background: rgba(255,255,255,0.46); border-color: rgba(0,0,0,0.10); box-shadow: 0 8px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.72); }
/* Keep the hover glow restrained when the brand is dark on a light surface. */
.site-nav.nav-light-surface .nav-brand:hover { text-shadow: 0 0 18px rgba(0,0,0,0.10); }
/* Increase contrast for the link row on a bright Earth region without hiding the artwork. */
.site-nav.nav-light-surface .nav-links { background: rgba(255,255,255,0.58); border-color: rgba(0,0,0,0.12); box-shadow: 0 10px 35px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.62); }
/* Make links dark when the glass sits over a light frame. */
.site-nav.nav-light-surface .nav-links a { color: rgba(9,13,18,0.72); }
/* Keep the active item visibly selected on the light glass surface. */
.site-nav.nav-light-surface .nav-links a.is-active, .site-nav.nav-light-surface .nav-links a:hover { color: #090d12; background: rgba(0,0,0,0.08); }
/* Compress the navigation into a refined floating control after the visitor begins scrolling. */
.site-nav.nav-scrolled { padding-top: 10px; padding-bottom: 10px; }
/* Slightly scale the brand like a native floating toolbar settling into place. */
.site-nav.nav-scrolled .nav-brand { transform: scale(0.96); }
/* Slightly scale the glass navigation rather than using a dramatic zoom effect. */
.site-nav.nav-scrolled .nav-links { transform: scale(0.96); box-shadow: 0 14px 45px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08); }
/* Create the tall hero runway that maps scrolling to frames. */
.hero-scroll { position: relative; height: 520vh; background: var(--ink); }
/* Pin the hero visual to the viewport while its parent scrolls. */
.hero-sticky { position: sticky; top: 0; height: 100vh; min-height: 680px; overflow: hidden; background: var(--ink); }
/* Make the canvas occupy the entire cinematic stage. */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-frame-image { z-index: 0; }
.hero-canvas-layer { z-index: 1; opacity: 0; pointer-events: none; }
/* Add a restrained gradient vignette only for readability, never to fake geographic detail. */
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 65% 50%, transparent 18%, rgba(3,5,9,0.12) 52%, rgba(3,5,9,0.78) 100%), linear-gradient(90deg, rgba(3,5,9,0.90) 0%, rgba(3,5,9,0.52) 34%, rgba(3,5,9,0.04) 65%, rgba(3,5,9,0.20) 100%); }
/* Place hero copy on the left where it remains readable against the dark globe. */
.hero-copy { position: absolute; left: max(24px, calc((100vw - var(--max)) / 2)); top: 50%; width: min(620px, 47vw); transform: translateY(-50%); color: #fff; }
/* Style the hero eyebrow as a system identifier. */
.hero-eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.20em; }
/* Make the name the dominant opening statement without a gradient text gimmick. */
.hero-copy h1 { margin: 0; max-width: 700px; font-size: clamp(4rem, 8vw, 8.8rem); line-height: 0.84; letter-spacing: -0.075em; font-weight: 850; }
/* Give the professional positioning a strong but quieter hierarchy. */
.hero-tagline { margin: 26px 0 0; max-width: 570px; color: rgba(255,255,255,0.86); font-size: clamp(0.95rem, 1.4vw, 1.22rem); line-height: 1.4; font-weight: 600; }
/* Keep the summary readable without turning the hero into a résumé wall. */
.hero-summary { margin: 22px 0 0; max-width: 560px; color: rgba(255,255,255,0.64); font-size: 0.86rem; line-height: 1.65; }
/* Align the email and LinkedIn links as a compact contact strip. */
.hero-contact { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; }
/* Style hero contact links as small, understated utilities. */
.hero-contact a { color: rgba(255,255,255,0.78); font-size: 0.72rem; border-bottom: 1px solid rgba(255,255,255,0.22); padding-bottom: 4px; }
/* Brighten contact links on hover. */
.hero-contact a:hover { color: #fff; border-color: var(--accent); }
/* Keep the location element available to assistive technology only if needed, but never display the inaccurate generated convergence label. */
.hero-location { display: none; }
/* Place the scroll cue at the lower left of the cinematic stage. */
.hero-scroll-cue { position: absolute; left: max(24px, calc((100vw - var(--max)) / 2)); bottom: 34px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.52); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.17em; }
/* Make the arrow gently pulse without competing with the Earth. */
.hero-scroll-cue span:last-child { color: var(--accent); animation: cue 1.8s ease-in-out infinite; }
/* Define the subtle scroll cue movement. */
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(5px); opacity: 1; } }
/* Use a tiny bottom progress bar as a visual explanation of the scroll mechanic. */
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.08); }
/* Scale the progress fill with transform so updates stay cheap. */
.hero-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: var(--accent); box-shadow: 0 0 16px rgba(53,200,255,0.7); }
/* Give all normal sections consistent vertical rhythm. */
.section { padding: var(--section-space) 0; background: var(--paper); }
/* Alternate a few large sections with the darker paper surface. */
.systems-section, .recognition-section, .proof-section { background: var(--paper-2); }
/* Keep the empty space around uneven grids on the exact same surface as their parent section. */
.system-grid, .award-grid, .badge-grid { background: var(--paper-2); }
/* Keep each section aligned to the same executive grid. */
.section-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
/* Build the small section index line. */
.section-kicker { display: flex; align-items: center; gap: 16px; color: #66717d; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.15em; }
/* Give the contact kicker the same structure without an extra visible line. */
.contact-kicker { justify-content: center; }
/* Create a quiet horizontal rule that carries the editorial rhythm. */
.section-rule { width: 80px; height: 1px; background: var(--line); }
/* Split each major introduction into statement and explanation. */
.split-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 70px; align-items: end; margin-top: 32px; }
/* Make section titles large and decisive. */
.section-intro h2 { margin: 0; max-width: 850px; font-size: clamp(2.8rem, 6vw, 6.5rem); line-height: 0.93; letter-spacing: -0.07em; font-weight: 820; }
/* Keep supporting explanations compact and readable. */
.section-intro > p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
/* Create the measurable-impact card matrix. */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 70px; border: 1px solid var(--line); background: var(--line); }
/* Style each metric as a quiet editorial instrument. */
.metric-card { min-height: 260px; padding: 30px; background: var(--paper-2); transition: background 220ms ease, transform 220ms ease; }
/* Add a small lift without introducing flashy motion. */
.metric-card:hover { background: #fff; transform: translateY(-3px); }
/* Make the metric number the visual anchor. */
.metric-card strong { display: block; font-size: clamp(3.2rem, 6vw, 6rem); line-height: 0.9; letter-spacing: -0.07em; font-weight: 820; }
/* Style metric labels with strong hierarchy. */
.metric-card h3 { margin: 34px 0 0; max-width: 250px; font-size: 0.92rem; line-height: 1.35; }
/* Keep metric explanations secondary. */
.metric-card p { margin: 10px 0 0; max-width: 290px; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
/* Create the horizontal field note after the metrics. */
.signal-line { display: grid; grid-template-columns: 130px 1fr; gap: 30px; margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line); }
/* Style the signal label as a technical annotation. */
.signal-line > span { color: var(--warm); font-size: 0.63rem; font-weight: 850; letter-spacing: 0.15em; }
/* Style the field note as a concise thesis. */
.signal-line p { margin: 0; max-width: 900px; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.45; letter-spacing: -0.025em; }
/* Create the selected systems grid. */
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 70px; background: var(--paper-2); border: 1px solid var(--line); }
/* Style each system as a substantial case-study teaser. */
.system-card { min-height: 500px; padding: 34px; background: var(--paper-2); display: flex; flex-direction: column; }
/* Align the system number and category. */
.system-topline { display: flex; justify-content: space-between; gap: 20px; color: #77828d; font-size: 0.62rem; font-weight: 850; letter-spacing: 0.13em; }
/* Style the system title as the dominant card element. */
.system-card h3 { margin: auto 0 20px; max-width: 650px; font-size: clamp(2rem, 3.5vw, 3.7rem); line-height: 0.94; letter-spacing: -0.06em; }
/* Style the system description. */
.system-card > p { max-width: 620px; color: var(--muted); line-height: 1.65; }
/* Separate each outcome statement visually from the description. */
.system-outcome { margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Style the outcome label. */
.system-outcome > span { color: var(--warm); font-size: 0.6rem; font-weight: 850; letter-spacing: 0.14em; }
/* Style the outcome text. */
.system-outcome p { margin: 8px 0 0; font-size: 0.86rem; line-height: 1.55; }
/* Arrange technology tags safely across lines. */
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
/* Create restrained technical pills. */
.tag { display: inline-flex; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: #55616d; font-size: 0.64rem; font-weight: 700; line-height: 1; background: rgba(255,255,255,0.35); }
/* Build the main career list as a strong editorial timeline rather than a generic vertical resume. */
.experience-list { margin-top: 75px; border-top: 1px solid var(--line); }
/* Divide each role into index, metadata, and substantive work. */
.experience-item { display: grid; grid-template-columns: 70px 220px minmax(0, 1fr); gap: 35px; padding: 58px 0; border-bottom: 1px solid var(--line); }
/* Style the numeric index. */
.experience-index { color: #9aa3ac; font: 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Stack date and company metadata. */
.experience-meta { display: grid; align-content: start; gap: 9px; color: #69737e; font-size: 0.68rem; font-weight: 800; line-height: 1.45; letter-spacing: 0.08em; }
/* Make the company name slightly darker than the date. */
.experience-meta span:last-child { color: var(--text); }
/* Style the role context annotation. */
.experience-context { margin: 0 0 12px; color: var(--warm); font-size: 0.63rem; font-weight: 850; letter-spacing: 0.12em; }
/* Make the role title prominent. */
.experience-main h3 { margin: 0; max-width: 820px; font-size: clamp(2rem, 3.6vw, 4rem); line-height: 0.96; letter-spacing: -0.06em; }
/* Style the role summary. */
.experience-description { margin: 22px 0 0; max-width: 800px; color: #4f5b66; font-size: 1rem; line-height: 1.65; }
/* Style the detailed role bullets. */
.experience-main ul { margin: 28px 0 0; padding-left: 19px; max-width: 900px; color: #596570; line-height: 1.68; }
/* Add breathing room between experience bullets. */
.experience-main li + li { margin-top: 11px; }
/* Create the early-career card matrix. */
.early-section { background: var(--ink); color: #fff; }
/* Adapt section metadata to the dark background. */
.early-section .section-kicker { color: rgba(255,255,255,0.55); }
/* Adapt the section rule to the dark surface. */
.early-section .section-rule { background: rgba(255,255,255,0.14); }
/* Adapt the section supporting text to the dark surface. */
.early-section .section-intro > p { color: rgba(255,255,255,0.55); }
/* Build the early-work grid. */
.early-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 70px; background: rgba(255,255,255,0.12); }
/* Style each early-work card. */

/* Make live project links visually distinct without overpowering the system cards. */
.system-link { display: inline-flex; align-self: flex-start; margin-top: 24px; color: var(--ink); font-size: 0.66rem; font-weight: 850; letter-spacing: 0.12em; text-decoration: none; border-bottom: 1px solid rgba(16,24,32,0.28); padding-bottom: 5px; }
/* Give early-career project links the same restrained editorial treatment. */
.early-link { display: inline-flex; align-self: flex-start; margin-top: 22px; color: #fff; font-size: 0.63rem; font-weight: 850; letter-spacing: 0.12em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.28); padding-bottom: 5px; }
.early-card { min-height: 360px; padding: 30px; background: #0a0e14; display: flex; flex-direction: column; }
/* Style early-work period metadata. */
.early-period { color: var(--accent); font-size: 0.63rem; font-weight: 850; letter-spacing: 0.12em; }
/* Style early-work role titles. */
.early-card h3 { margin: 80px 0 7px; font-size: 1.55rem; line-height: 1; letter-spacing: -0.04em; }
/* Style early-work employer names. */
.early-card h4 { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.78rem; font-weight: 650; }
/* Style early-work descriptions. */
.early-card p { margin: 22px 0 0; color: rgba(255,255,255,0.57); line-height: 1.6; }
/* Adapt tags for dark cards. */
.early-card .tag { border-color: rgba(255,255,255,0.13); color: rgba(255,255,255,0.64); background: transparent; }
/* Create the recognition matrix. */
.award-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 70px; background: var(--paper); border: 1px solid var(--line); }
/* Style each recognition artifact. */
.award-card { min-height: 280px; padding: 27px; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; transition: transform 220ms ease, background 220ms ease; }
/* Add a restrained hover lift. */
.award-card:hover { background: #fff; transform: translateY(-4px); }
/* Style award year metadata. */
.award-year { color: var(--warm); font: 0.67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Style award titles. */
.award-card h3 { margin: 20px 0 8px; font-size: 1.15rem; line-height: 1.08; letter-spacing: -0.025em; }
/* Style award issuers. */
.award-card p { margin: 0; color: #65707c; font-size: 0.72rem; font-weight: 750; }
/* Style supporting award detail. */
.award-detail { color: #7b858e; font-size: 0.72rem; line-height: 1.5; }
/* Create the achievement list with a large editorial number column. */
.achievement-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 70px; border-top: 1px solid var(--line); }
/* Style each achievement row. */
.achievement-item { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
/* Style achievement indexes. */
.achievement-item span { color: #a1aab3; font: 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Style achievement text. */
.achievement-item p { margin: 0; max-width: 520px; line-height: 1.5; }
/* Create the capability map matrix. */
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 70px; background: var(--paper-2); border: 1px solid var(--line); }
/* Style each capability group as a technical module. */
.capability-card { min-height: 240px; padding: 28px; background: var(--paper-2); }
/* Style capability group titles. */
.capability-card h3 { margin: 0; font-size: 1rem; letter-spacing: -0.02em; }
/* Create the badge gallery. */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 70px; background: var(--paper); border: 1px solid var(--line); }
/* Make each badge card clickable and editorial. */
.badge-card { background: var(--paper); min-height: 510px; display: flex; flex-direction: column; transition: background 220ms ease, transform 220ms ease; }
/* Lift badges on hover to signal verification links. */
.badge-card:hover { background: #fff; transform: translateY(-4px); }
/* Reserve a consistent stage for each supplied badge image. */
.badge-image-wrap { height: 290px; display: grid; place-items: center; padding: 28px; overflow: hidden; background: #fff; }
/* Constrain badge images without distorting them. */
.badge-image-wrap img { width: min(230px, 85%); max-height: 245px; object-fit: contain; }
/* Style badge metadata and copy. */
.badge-copy { padding: 25px; }
/* Style badge issuer metadata. */
.badge-copy > span { color: var(--warm); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.12em; }
/* Style badge titles. */
.badge-copy h3 { margin: 12px 0 0; font-size: 1.25rem; line-height: 1.08; letter-spacing: -0.035em; }
/* Style badge descriptions. */
.badge-copy p { margin: 12px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
/* Style verification metadata. */
.badge-copy small { display: block; margin-top: 22px; color: #7a858f; font-size: 0.58rem; font-weight: 850; letter-spacing: 0.09em; }
/* Create the conventional certification list. */
.certification-list { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 70px; border-top: 1px solid var(--line); }
/* Style each certification row. */
.certification-item { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
/* Style certification indexes. */
.certification-item span { color: #9aa3ac; font: 0.64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Style certification text. */
.certification-item p { margin: 0; line-height: 1.45; }
/* Create the poetry interlude as a completely different visual register. */
.creative-section { padding: clamp(130px, 18vw, 250px) 24px; background: #111216; color: #f6f0e7; text-align: center; overflow: hidden; }
/* Keep the book composition centered within the same premium editorial width as the rest of the site. */
.creative-inner { width: min(1120px, 100%); margin: 0 auto; }
/* Split the creative section between the real cover and its editorial copy. */
.creative-grid { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: clamp(45px, 7vw, 100px); align-items: center; }
/* Keep the supplied cover visually dominant without letting it overwhelm the page. */
.creative-cover-column { display: grid; justify-items: center; }
/* Give the cover a subtle gallery-like frame. */
.creative-cover-frame { width: min(420px, 100%); padding: 10px; border: 1px solid rgba(246,240,231,0.14); background: rgba(255,255,255,0.035); box-shadow: 0 35px 90px rgba(0,0,0,0.48); }
/* Render the supplied cover exactly as an image rather than rebuilding its typography in HTML. */
.creative-cover { width: 100%; height: auto; object-fit: contain; }
/* Keep the book copy aligned to the left side of its editorial column. */
.creative-copy { text-align: left; }
/* Style the book section label. */
.creative-label { display: inline-flex; color: rgba(246,240,231,0.48); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.16em; }
/* Style the requested BEYOND TECHNOLOGY kicker prominently. */
.creative-kicker { margin: 30px 0 0; color: #d98c4b; font-size: clamp(0.8rem, 1.4vw, 1rem); font-weight: 850; letter-spacing: 0.25em; }
/* Give the poetry title a literary serif contrast while keeping the technical site modern. */
.creative-copy h2 { margin: 26px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.8rem, 8vw, 8rem); line-height: 0.84; letter-spacing: -0.07em; font-weight: 400; }
/* Style the author line exactly as requested. */
.creative-author { margin: 30px 0 0; color: rgba(246,240,231,0.72); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-style: italic; }
/* Stack the two poetic lines with breathing room. */
.creative-lines { display: grid; gap: 5px; margin-top: 55px; }
/* Style each poetic statement as a deliberate pause. */
.creative-lines strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.5vw, 2.15rem); font-weight: 400; }
/* Make Coming Soon feel like a publication status rather than a button. */
.creative-status { margin: 55px 0 0; color: #fff; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.20em; text-transform: uppercase; }
/* Create the final high-contrast contact section. */
.contact-section { padding: clamp(120px, 17vw, 220px) 24px; background: #dcecf2; color: #0b141b; text-align: center; }
/* Keep the contact composition narrow. */
.contact-inner { width: min(1000px, 100%); margin: 0 auto; }
/* Make the contact title the final visual anchor. */
.contact-inner h2 { margin: 30px 0 0; max-width: 1000px; font-size: clamp(4rem, 9vw, 9rem); line-height: 0.84; letter-spacing: -0.08em; font-weight: 850; }
/* Style the contact explanation. */
.contact-inner > p { margin: 32px auto 0; max-width: 620px; color: #4c5d66; font-size: 1rem; line-height: 1.65; }
/* Create the final action button. */
.cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 30px; padding: 0 25px; border-radius: 999px; background: #0b141b; color: #fff; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.04em; transition: transform 200ms ease, box-shadow 200ms ease; }
/* Add a subtle tactile hover state to the CTA. */
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,20,27,0.18); }
/* Align the contact details beneath the CTA. */
.contact-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; color: #5c6c75; font-size: 0.7rem; }
/* Add a restrained underline to contact links. */
.contact-meta a { border-bottom: 1px solid rgba(92,108,117,0.35); }
/* Create a minimal footer that does not compete with the content. */
.site-footer { padding: 25px 24px; background: #07090d; color: rgba(255,255,255,0.46); font-size: 0.62rem; }
/* Align footer content to the same page grid. */
.footer-inner { width: min(calc(100% - 0px), var(--max)); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
/* Keep motion accessible when visitors request reduced movement. */
@media (prefers-reduced-motion: reduce) {
  /* Disable smooth scrolling for motion-sensitive visitors. */
  html { scroll-behavior: auto; }
  /* Remove floating scale transitions for motion-sensitive visitors. */
  .site-nav, .nav-brand, .nav-links, .nav-links a, .nav-brand::before { transition: none; }
  /* Disable the animated scroll cue. */
  .hero-scroll-cue span:last-child { animation: none; }
  /* Remove hover transforms when reduced motion is requested. */
  .metric-card:hover, .award-card:hover, .badge-card:hover, .cta-button:hover { transform: none; }
}
/* Collapse major grids at medium widths. */
@media (max-width: 1050px) {
  /* Reduce the navigation footprint. */
  .nav-links a:nth-child(n+6) { display: none; }
  /* Reduce the metric matrix to two columns. */
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  /* Reduce recognition to two columns. */
  .award-grid { grid-template-columns: repeat(2, 1fr); }
  /* Reduce badges to one row of two and then a third. */
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  /* Keep the third badge balanced. */
  .badge-card:last-child { grid-column: 1 / -1; }
}
/* Make the hero and editorial grids mobile-safe. */
@media (max-width: 760px) {
  /* Reduce navigation padding on small screens. */
  .site-nav { padding: 14px 16px; }
  /* Hide the wide navigation and keep the name visible. */
  .nav-links { display: none; }
  /* Shorten the hero runway slightly on mobile while keeping a cinematic scroll. */
  .hero-scroll { height: 430vh; }
  /* Allow the hero stage to fit smaller screens. */
  .hero-sticky { min-height: 620px; }
  /* Move the hero copy toward the upper portion so the Earth remains visible. */
  .hero-copy { left: 20px; right: 20px; top: 17%; width: auto; transform: none; }
  /* Reduce the name scale on phones. */
  .hero-copy h1 { font-size: clamp(3.5rem, 17vw, 6.4rem); }
  /* Reduce summary density on phones. */
  .hero-summary { max-width: 92vw; font-size: 0.78rem; }
  /* Move the scroll cue inward. */
  .hero-scroll-cue { left: 20px; bottom: 24px; }
  /* Use narrower section gutters. */
  .section-shell { width: min(calc(100% - 36px), var(--max)); }
  /* Collapse split introductions into one readable column. */
  .split-intro { grid-template-columns: 1fr; gap: 22px; }
  /* Collapse metric, system, early-work, capability, and badge grids. */
  .metric-grid, .system-grid, .early-grid, .capability-grid, .badge-grid { grid-template-columns: 1fr; }
  /* Return the third badge to normal flow after the single-column collapse. */
  .badge-card:last-child { grid-column: auto; }
  /* Collapse the experience columns into a compact editorial layout. */
  .experience-item { grid-template-columns: 45px 1fr; gap: 18px; }
  /* Move experience metadata below the index and above the main role content. */
  .experience-meta { grid-column: 2; }
  /* Put the substantive role content under the metadata. */
  .experience-main { grid-column: 2; }
  /* Stack the book cover above its editorial copy on phones. */
  .creative-grid { grid-template-columns: 1fr; gap: 55px; }
  /* Keep the book copy centered after the mobile stack. */
  .creative-copy { text-align: center; }
  /* Scale the book cover down slightly so it remains fully visible on small screens. */
  .creative-cover-frame { width: min(360px, 88vw); }
  /* Collapse achievements and certifications to one column. */
  .achievement-grid, .certification-list { grid-template-columns: 1fr; }
  /* Reduce card minimum heights so the page does not feel overly long on phones. */
  .metric-card, .system-card, .early-card, .award-card, .badge-card { min-height: auto; }
  /* Reduce system card padding on phones. */
  .system-card, .early-card, .award-card, .capability-card { padding: 24px; }
  /* Reduce the poetry title slightly to avoid overflow. */
  .creative-inner h2 { font-size: clamp(3.3rem, 15vw, 6rem); }
  /* Stack footer content vertically on phones. */
  .footer-inner { flex-direction: column; }
}
/* Make very small screens even more compact. */
@media (max-width: 420px) {
  /* Reduce the hero title to preserve the Earth composition. */
  .hero-copy h1 { font-size: clamp(3rem, 16vw, 5rem); }
  /* Reduce hero summary size slightly. */
  .hero-summary { font-size: 0.74rem; }
  /* Reduce major section title scale. */
  .section-intro h2 { font-size: clamp(2.5rem, 13vw, 4.5rem); }
}

/* Keep intentionally empty grid tracks visually continuous with their parent section instead of exposing the border color. */
.system-grid, .award-grid, .capability-grid, .badge-grid { background-color: var(--paper-2); }
/* Recognition and credential cards sit on the lighter paper surface, so their empty tracks match that surface. */
.award-grid, .badge-grid { background-color: var(--paper); }
