:root {
  --page: #f8f9ff;
  --ink: #202136;
  --muted: #5d6074;
  --surface: #eeebfb;
  --accent: #6046e8;
  --accent-hover: #4932bf;
  --white: #ffffff;
  --line: #ddddea;
  --contact: #29263f;
  --dark-line: #5c5874;
  --reverse-muted: #d0cde3;
  --display: "Sora", "Avenir Next", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
:root[data-theme="blue"] {
  --page: #f6f9ff; --surface: #e7efff; --accent: #2459ce; --accent-hover: #1743a2;
  --line: #d6e0f0; --contact: #182d50; --dark-line: #476186; --reverse-muted: #d0ddf2;
}
:root[data-theme="emerald"] {
  --page: #f5fbf8; --surface: #e3f2eb; --accent: #17704b; --accent-hover: #0c5235;
  --line: #d1e5da; --contact: #163c30; --dark-line: #497563; --reverse-muted: #d1e7dc;
}
:root[data-theme="rose"] {
  --page: #fff7fa; --surface: #fbe5ed; --accent: #b22958; --accent-hover: #8f1d45;
  --line: #eed6de; --contact: #482537; --dark-line: #805268; --reverse-muted: #f0d5e1;
}
:root[data-theme="amber"] {
  --page: #fffaf3; --surface: #faebd7; --accent: #965610; --accent-hover: #75420b;
  --line: #e9dbc5; --contact: #42311e; --dark-line: #796446; --reverse-muted: #f2dfc3;
}
:root[data-theme="slate"] {
  --page: #f7f9fc; --surface: #e7edf5; --accent: #475a76; --accent-hover: #2e405a;
  --line: #d8dfea; --contact: #243145; --dark-line: #556984; --reverse-muted: #d4deed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button, summary { cursor: pointer; touch-action: manipulation; }
a, button { transition: color 160ms, background-color 160ms, border-color 160ms; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--white); background: var(--accent); }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - 96px, 1240px); margin-inline: auto; }
.section { padding-block: 104px; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px 20px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font: 600 20px/1.3 var(--display); letter-spacing: -.055em; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a { min-height: 44px; display: inline-flex; gap: 12px; align-items: center; font-size: 16px; }
.main-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { color: var(--accent); font-weight: 600; }
.header-social { display: flex; align-items: center; gap: 8px; }
.header-social a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; color: var(--white); background: var(--accent); border-radius: 8px; font-size: 16px; font-weight: 600; }
.header-social a:hover { background: var(--accent-hover); }
.header-social svg { width: 18px; height: 18px; }
.header-controls { display: flex; align-items: center; gap: 8px; }
.main-nav { margin-left: auto; }
.theme-picker { position: relative; font-size: 16px; }
.theme-picker summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; list-style: none; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.theme-picker summary::-webkit-details-marker { display: none; }
.theme-picker summary:hover, .theme-picker[open] summary { background: var(--surface); border-color: var(--accent); }
.theme-picker summary > svg { color: var(--accent); }
.theme-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 264px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgb(32 33 54 / 14%); max-height: calc(100dvh - 112px); overflow-y: auto; }
.theme-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.theme-options legend { font-size: 18px; font-weight: 600; padding: 0; margin-bottom: 12px; }
.theme-options label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.theme-options label:hover { background: var(--page); }
.theme-options label:has(input:checked) { background: var(--surface); font-weight: 600; }
.theme-options label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.theme-swatch { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; }
.swatch-violet { background: #6046e8; }
.swatch-blue { background: #2459ce; }
.swatch-emerald { background: #17704b; }
.swatch-rose { background: #b22958; }
.swatch-amber { background: #965610; }
.swatch-slate { background: #475a76; }
.theme-panel > p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.menu-toggle { display: none; }
.hero { padding-block: 64px 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 96px; align-items: center; }
.hero-copy { padding-bottom: 12px; }
.hero-role { color: var(--accent); font-size: 18px; font-weight: 500; margin-bottom: 24px; }
.hero h1 { font-size: clamp(76px, 7.6vw, 110px); line-height: 1.05; letter-spacing: -.065em; font-weight: 600; }
.hero-description { color: var(--muted); max-width: 46ch; font-size: 20px; line-height: 1.6; margin-top: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 54px; padding: 12px 20px; display: inline-flex; gap: 20px; align-items: center; justify-content: space-between; border: 1px solid transparent; border-radius: 8px; font-size: 16px; font-weight: 600; }
.button-primary { color: var(--white); background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: var(--accent); color: var(--accent); }
.button-outline:hover { background: var(--surface); }
.profile { min-width: 0; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 48%; border-radius: 16px; }
.career-strip { display: grid; grid-template-columns: 156px 1fr; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px 32px; align-items: center; }
.career-strip > p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.company-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; align-items: center; }
.company-logos li { min-height: 60px; display: flex; align-items: center; justify-content: center; }
.company-logos img { width: auto; height: auto; object-fit: contain; max-height: 54px; }
.company-logos .logo-aui { width: 42px; height: 42px; }
.company-logos .logo-daloopa { width: 76px; height: 76px; max-height: none; }
.company-logos .logo-vinsent { width: 76px; }
.company-logos .logo-twist { width: 114px; }
.company-logos .logo-secretsville { width: 92px; height: 92px; max-height: none; }
.company-text { font-family: var(--sans); font-size: 22px; font-weight: 600; }
.about-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 88px; }
.section-heading h2, .experience-intro h2 { font-size: clamp(36px, 3.5vw, 50px); line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.about-copy > p { max-width: 65ch; color: var(--muted); margin-bottom: 20px; }
.about-copy .lead { font-size: 24px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.education { display: flex; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; align-items: flex-start; }
.education > svg { width: 26px; height: 26px; color: var(--accent); }
.education strong { font-size: 17px; font-weight: 600; }
.education p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.education p span { font-size: 14px; }
.experience-section { background: var(--white); }
.experience-intro { display: flex; align-items: center; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.experience-intro > p { max-width: 360px; color: var(--muted); }
.timeline { border-top: 1px solid var(--line); }
.role { --role-gap: 80px; border-bottom: 1px solid var(--line); }
.role-summary, .role-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.75fr); column-gap: var(--role-gap); }
.role-summary { align-items: center; padding-block: 36px; list-style: none; }
.role-summary::-webkit-details-marker { display: none; }
.role-summary:hover .role-toggle { color: var(--accent-hover); }
.role-meta { align-self: start; }
.role-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.role-heading h4 { font: 500 24px/1.4 var(--display); letter-spacing: -.04em; }
.role-toggle { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 14px; white-space: nowrap; }
.role-toggle svg { width: 24px; height: 24px; transition: transform 160ms ease; }
.role-hide { display: none; }
.role-details[open] .role-show { display: none; }
.role-details[open] .role-hide { display: inline; }
.role-details[open] .role-toggle svg { transform: rotate(45deg); }
.role-content { grid-column: 2; min-width: 0; padding-bottom: 36px; }
.role-content .responsibilities { margin-top: 0; }
.role-position + .role-position { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.role-position h5 { font: 500 20px/1.4 var(--display); letter-spacing: -.025em; }
.role-position > .role-date { margin-top: 8px; }
.role-position .responsibilities { margin-top: 24px; }
.employer-note { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 8px; }
.role-date { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.role-meta h3 { font-size: 28px; font-weight: 600; margin-top: 18px; line-height: 1.3; }
.employer-name { display: flex; align-items: center; gap: 12px; }
.employer-name img { flex: 0 0 auto; object-fit: contain; }
.employer-wordmark { object-fit: contain; width: 132px; height: auto; }
.employer-daloopa { width: 80px; }
.employer-vinsent { width: 70px; }
.employer-twist { width: 120px; }
.current-label { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; margin-top: 20px; color: var(--accent); background: var(--surface); border-radius: 6px; font-size: 13px; }
.current-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.responsibilities { color: var(--muted); padding-left: 20px; margin: 24px 0; max-width: 65ch; }
.responsibilities li { margin-bottom: 12px; padding-left: 4px; }
.responsibilities li::marker { color: var(--accent); }
.technology-label { margin-top: 28px; font-size: 15px; font-weight: 600; }
.role-content .tags { margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.tags li { padding: 5px 12px; background: var(--page); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; line-height: 1.5; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 16px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 16px; }
.text-link:hover { color: var(--accent-hover); }
.cv-link { margin-top: 40px; }
.skills-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 88px; }
.section-heading > p { max-width: 300px; color: var(--muted); margin-top: 20px; }
.skill-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.skill-group { padding-top: 24px; border-top: 2px solid var(--line); }
.skill-group h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.skill-group p { max-width: 65ch; color: var(--muted); font-size: 17px; }
.contact-section { color: var(--white); background: var(--contact); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 96px; align-items: center; }
.contact-section h2 { max-width: 10ch; font-size: clamp(44px, 4.4vw, 64px); line-height: 1.18; letter-spacing: -.05em; text-wrap: balance; }
.contact-section p { color: var(--reverse-muted); max-width: 380px; margin: 24px 0 32px; }
.button-light { color: var(--contact); background: var(--white); min-width: 180px; }
.button-light:hover { background: var(--surface); }
.contact-links h3 { color: var(--reverse-muted); font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.contact-links a { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--dark-line); font-size: 17px; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--reverse-muted); }
.contact-section a:focus-visible, .site-footer a:focus-visible { outline-color: var(--white); }
.site-footer { color: var(--reverse-muted); background: var(--contact); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--dark-line); padding-block: 24px; font-size: 14px; }
.back-top { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.back-top:hover { color: var(--white); }
@media (max-width: 1100px) {
  html { scroll-padding-top: 160px; }
  .header-inner { flex-wrap: wrap; gap: 12px 16px; padding-block: 12px; }
  .header-social { order: 3; width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
  .theme-panel { max-height: calc(100dvh - 180px); }
  .container { width: calc(100% - 64px); }
  .main-nav { gap: 20px; }
  .hero { gap: 56px; }
  .hero h1 { font-size: clamp(72px, 8vw, 90px); }
  .hero-description { font-size: 19px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .company-logos { grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
  .career-strip { grid-template-columns: 150px 1fr; }
  .about-section, .skills-section { gap: 48px; }
  .skills-section { grid-template-columns: .8fr 1.2fr; }
  .skill-groups { gap: 24px; }
  .role { --role-gap: 48px; }
  .contact-grid { gap: 48px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 72px; }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 0; padding-block: 16px 0; }
  .header-controls { order: 1; margin-left: auto; position: relative; }
  .main-nav { order: 3; }
  .header-social { order: 2; justify-content: flex-start; margin-top: 16px; padding-block: 12px; }
  .header-social a { flex: 1; }
  .theme-picker { position: static; }
  .theme-picker summary { width: 44px; padding: 8px; }
  .theme-trigger-label { display: none; }
  .theme-panel { right: 0; max-width: calc(100vw - 32px); }
  .wordmark { font-size: 19px; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 80px; min-height: 44px; font-size: 14px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; }
  .main-nav { width: 100%; padding-block: 12px 20px; flex-wrap: wrap; gap: 8px 24px; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  .hero-role { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(58px, 12.5vw, 90px); }
  .hero-description { font-size: 19px; margin-top: 24px; }
  .hero-description br { display: none; }
  .hero-actions { flex-direction: row; align-items: stretch; margin-top: 24px; }
  .portrait { max-height: 580px; aspect-ratio: 4 / 5; }
  .profile { width: min(100%, 470px); }
  .career-strip { grid-template-columns: 1fr; gap: 24px; }
  .career-strip p br { display: none; }
  .company-logos { gap: 20px; }
  .about-section, .skills-section { grid-template-columns: 1fr; gap: 32px; }
  .section-heading h2, .experience-intro h2 { font-size: 36px; max-width: 15ch; }
  .about-copy .lead { font-size: 23px; }
  .experience-intro { display: block; margin-bottom: 40px; }
  .experience-intro > p { margin-top: 20px; max-width: 400px; }
  .role-summary, .role-body { grid-template-columns: minmax(0, 1fr); }
  .role-summary { gap: 24px; padding-block: 28px; }
  .role-heading { align-items: flex-start; gap: 16px; }
  .role-heading h4 { font-size: 22px; }
  .role-toggle { flex-direction: column-reverse; align-items: flex-end; gap: 4px; font-size: 12px; }
  .role-content { grid-column: 1; padding-bottom: 28px; }
  .section-heading > p { max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-section h2 { font-size: 48px; max-width: 12ch; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(55px, 16.5vw, 68px); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .company-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .skill-groups { grid-template-columns: 1fr; gap: 28px; }
  .contact-section h2 { font-size: 40px; }
  .contact-section .button { width: auto; }
  .footer-inner { font-size: 13px; gap: 12px; }
  .back-top { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
