:root {
  color-scheme: light;
  --background: #ffffff;
  --sidebar: #f7f7f7;
  --surface: #ffffff;
  --text: #222222;
  --muted: #606060;
  --accent: #0f79d0;
  --line: #dddddd;
  --sidebar-width: 330px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); align-items: start; margin: 0; background: var(--background); color: var(--text); font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: #0b5ed7; }
p, ul { margin: 0 0 1.25rem; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 600; margin: 0 0 .7rem; text-wrap: balance; }
h1 { font-size: 2.3rem; letter-spacing: -.04em; }
h2 { font-size: 2.3rem; letter-spacing: -.04em; }
h3 { font-size: 1.6rem; letter-spacing: -.025em; }
h4 { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
h5 { font-size: .95rem; font-weight: 400; }
img { display: block; width: auto; height: auto; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 20px; background: var(--accent); color: var(--background); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.sidebar { position: sticky; top: 0; width: var(--sidebar-width); min-height: 100dvh; padding: 42px 38px 28px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.highlights-sidebar { display: none; }
.highlight-photos { display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1.5dvh, 16px); width: 100%; height: 100%; min-height: 0; }
.highlight-link { display: flex; align-items: center; justify-content: center; flex: 0 1 auto; min-height: 0; min-width: 0; }
.highlight-image { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 8px; transition: transform .25s ease; }
.highlight-link:hover .highlight-image, .highlight-link:focus-visible .highlight-image { transform: scale(1.025); }
.profile-link { display: block; width: 100%; }
.portrait { width: 100%; height: auto; max-width: 100%; max-height: none; border-radius: 50%; border: 3px solid var(--line); margin-bottom: 25px; }
.profile-name { font-size: 2.4rem; color: var(--text); line-height: 1.2; font-weight: 650; letter-spacing: -.05em; }
.profile-heading { margin: 0; font-size: inherit; line-height: 1.2; }
.profile-role { font-size: .96rem; margin: 13px 0 2px; }
.profile-detail { font-size: .8rem; color: var(--muted); margin: 0; }
.section-nav { display: grid; gap: 4px; margin: 30px -12px; }
.section-nav a { display: flex; align-items: center; gap: 16px; padding: 7px 12px; font-size: .87rem; color: var(--muted); border-radius: 5px; border-left: 2px solid transparent; transition: background .18s, color .18s; }
.section-nav a span { font-size: .65rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--text); background: #eaf3fb; border-left-color: var(--accent); }
.section-nav a[aria-current] span { color: var(--accent); }
.sidebar-footer { margin-top: auto; padding-top: 12px; }
.sidebar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-bottom: 16px; }
.social-links { display: flex; justify-content: center; width: 100%; gap: 20px; margin-bottom: 16px; font-size: 1.5rem; }
.social-links a { color: var(--muted); }
.social-links a:hover { color: var(--accent); }
main { min-width: 0; width: 100%; padding: 40px 0 30px; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.6; text-align: justify; }
main > section, main > footer { position: relative; width: min(630px, calc(100% - 40px)); margin-inline: auto; }
main p, main ul { margin: 0 0 16px; }
main h1, main h2, main h3, main h4, main h5 { text-align: center; font-weight: bold; letter-spacing: normal; line-height: 1.2; margin: 0 0 8px; text-wrap: wrap; }
main h2 { font-size: 40px; }
main h3 { font-size: 32px; }
main h4, main .compact-heading { font-size: 22px; color: var(--text); }
main h5 { font-size: 20px; }
.content-section { scroll-margin-top: 20px; }
.overview { text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; font-size: 16px; font-weight: 400; line-height: 1.5; border: 1px solid #0d6efd; border-radius: 5px; color: #ffffff; background: #0d6efd; transition: background .18s, border-color .18s; }
.btn:hover { background: #0b5ed7; border-color: #0b5ed7; color: #ffffff; }
main .btn { display: inline-block; vertical-align: middle; margin-top: 10px; text-align: center; }
#projects > .section-heading .btn, #education > .section-heading .btn { font-size: 24px; }
.tech-stack { padding-top: 0; }
.where-ive-been { border-bottom: 2px solid #222222; padding-bottom: 30px; margin-bottom: 30px; }
.employer-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 28px; padding-top: 20px; }
.employer-link { display: flex; align-items: center; justify-content: center; max-width: 100%; }
main .employer-logo { width: auto; height: auto; max-width: 180px; max-height: 70px; }
main .employer-logo[src$=".svg"] { width: 180px; max-height: none; }
main .employer-logo[src="images/JLR.svg"] { width: 80px; }
.skills { display: grid; grid-template-columns: repeat(5, minmax(0, 120px)); justify-content: center; align-items: center; }
.skill { display: flex; align-items: center; justify-content: center; min-width: 0; }
.skill-icon { width: 120px; max-height: 120px; padding: 10px; }
.skill-icon, .employer-logo { transition: transform .5s cubic-bezier(.25, .46, .45, .94); }
.skill:hover .skill-icon, .skill:focus-visible .skill-icon,
.employer-link:hover .employer-logo, .employer-link:focus-visible .employer-logo { transform: scale(1.1); }
.section-heading { border-top: 2px solid #222222; border-bottom: 2px solid #222222; padding: 30px 0; margin: 30px 0; text-align: center; }
.section-heading .entry-meta { margin-bottom: 0; }
.section-heading .entry-meta:has(.standalone-logo) { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 64px; line-height: 1; }
.section-heading .standalone-logo { font-size: 64px; margin-right: 0; }
.entry { scroll-margin-top: 30px; overflow-wrap: anywhere; }
.entry + .entry { border-top: 1px solid #222222; margin-top: 30px; padding-top: 30px; }
.entry-meta { color: var(--text); font-size: 18px; text-align: center; }
.entry-meta .btn { margin: 10px 0 0; }
#projects .entry-meta .btn, #experience .entry-meta .btn { margin-bottom: 10px; }
.entry-meta b { font-weight: 700; }
.entry ul { padding-left: 32px; padding-right: 20px; color: var(--text); }
main img { display: inline-block; width: 100%; height: auto; vertical-align: middle; }
main .large-image, main .medium-image, main .small-image { display: block; width: auto; max-width: 100%; padding-block: 10px; margin: 0 auto; }
main .large-image { max-height: 100%; }
main .medium-image { max-height: 175px; }
main .small-image { max-height: 125px; }
main .tall-logo { max-height: 250px; }
main .conference-image, #agents .large-image, #robotics .large-image { border-radius: 50px; }
.company-logos { display: grid; grid-template-columns: 4.404fr 3.158fr; align-items: center; gap: 24px; max-width: 568px; margin-inline: auto; }
.company-logos > a { min-width: 0; }
.company-logos .medium-image { width: 100%; height: auto; }
main .skill-icon { width: 120px; }
.video-container { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.standalone-logo { font-size: 1.6rem; margin-right: 14px; }
.mobile { display: none !important; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.not-found { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 30px; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.6; text-align: center; }
.not-found-content { width: 100%; max-width: 650px; }
.not-found h1 { font-size: 40px; font-weight: bold; line-height: 1.2; letter-spacing: normal; margin-bottom: 16px; }
.not-found p { margin-bottom: 0; }
@media (min-width: 1001px) {
  .sidebar { height: 100dvh; overflow: clip; }
  .sidebar > * { flex-shrink: 0; }
  .sidebar .profile-link { display: flex; justify-content: center; align-items: flex-start; flex: 0 1 auto; min-height: 0; aspect-ratio: 1; margin-bottom: 25px; }
  .profile-link, .profile-heading, .profile-name, .profile-role, .profile-detail { text-align: center; }
  .sidebar .portrait { width: auto; height: auto; max-height: 100%; margin: 0 auto; }
}
@media (min-width: 1600px) { .sidebar { padding-left: 50px; padding-right: 45px; } :root { --sidebar-width: 360px; } }
@media (min-width: 1140px) {
  /* Reserve the full 630px body plus gutters before allocating photo space. */
  body { grid-template-columns: var(--sidebar-width) minmax(670px, 1fr) minmax(140px, var(--sidebar-width)); }
  /* Any number of photos shrink proportionally to fit, or form a centered stack. */
  .highlights-sidebar { display: flex; position: sticky; top: 0; width: 100%; height: 100dvh; padding: 24px clamp(8px, 1vw, 20px); overflow: clip; background: var(--sidebar); border-left: 1px solid var(--line); }
}
@media (max-height: 950px) and (min-width: 1001px) { .sidebar { padding-top: 24px; } .sidebar .profile-link { margin-bottom: 16px; } .section-nav { margin-top: 18px; margin-bottom: 18px; gap: 0; } .section-nav a { padding-block: 5px; } }
@media (max-height: 760px) and (min-width: 1001px) {
  .sidebar { padding-top: 16px; padding-bottom: 16px; }
  .sidebar .profile-link { margin-bottom: 12px; }
  .profile-name { font-size: 2rem; }
  .profile-role { margin-top: 8px; }
  .section-nav { margin-block: 12px; }
  .section-nav a { padding-block: 3px; }
  .sidebar-footer { padding-top: 8px; }
  .sidebar-actions { margin-bottom: 10px; }
  .social-links { margin-bottom: 0; }
}
@media (max-height: 560px) and (min-width: 1001px) {
  .sidebar { padding-block: 12px; }
  .section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; margin-block: 8px; }
  .section-nav a { gap: 6px; padding: 4px 6px; font-size: .8rem; line-height: 1.4; }
}
@media (max-height: 400px) and (min-width: 1001px) {
  .sidebar { padding-block: 8px; }
  .sidebar .profile-link { display: none; }
  .profile-name { font-size: 1.5rem; }
  .profile-role { font-size: .8rem; margin-top: 6px; }
  .profile-detail { font-size: .7rem; }
  .section-nav { margin-block: 6px; }
  .sidebar-footer { padding-top: 4px; }
  .sidebar-actions .btn { padding: 4px 8px; font-size: 14px; }
  .social-links { font-size: 1.2rem; }
}
@media (max-width: 1000px) {
  body { display: block; }
  .sidebar { position: relative; top: auto; width: 100%; min-height: 0; padding: 28px 30px 0; display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-link { float: right; width: 88px; margin-left: 15px; }
  .portrait { margin-bottom: 0; }
  .profile-name { font-size: 2rem; }
  .profile-role { margin-top: 8px; }
  .section-nav { display: flex; flex-wrap: wrap; gap: 5px; margin: 20px 0 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .section-nav a { padding: 6px 10px; font-size: .8rem; gap: 7px; }
  .sidebar-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; padding: 16px 0 22px; }
  .sidebar-actions { margin-bottom: 0; }
  .social-links { margin: 0; }
  main { margin-left: 0; width: 100%; padding: 40px 30px 24px; }
  main > section, main > footer { left: auto; width: 100%; max-width: 630px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .sidebar { padding-inline: 22px; }
  .profile-detail { max-width: 230px; }
  .section-nav a span { display: none; }
  .section-nav { gap: 3px; }
  main { padding: 40px 10px 24px; }
  .desktop { display: none !important; }
  .mobile { display: block !important; }
  a.mobile { display: inline-flex !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Retain the explicitly requested smooth logo interactions. */
  .skill-icon, .employer-logo { transition: transform .5s cubic-bezier(.25, .46, .45, .94) !important; }
}
@media print {
  :root { color-scheme: light; --text: #111; --muted: #444; --accent: #0f79d0; --background: #fff; --surface: #fff; --line: #ccc; }
  body { display: block; }
  .sidebar, .highlights-sidebar, .skip-link, .site-footer { display: none; }
  main { margin: 0; max-width: none; padding: 0; }
  main > section { left: auto; width: 100%; }
  .entry { break-inside: avoid; }
  .video-container { display: none; }
}
