@font-face {
  font-family: "Shabnam";
  src: url("../Fonts/Shabnam-FD.woff2") format("woff2"), url("../Fonts/Shabnam-FD.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src: url("../Fonts/Shabnam-Light-FD.woff2") format("woff2"), url("../Fonts/Shabnam-Light-FD.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src: url("../Fonts/Shabnam-Bold-FD.woff2") format("woff2"), url("../Fonts/Shabnam-Bold-FD.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-deep: #062223;
  --color-green: #418B7E;
  --color-green-complement: #4E977A;
  --color-green-highlight: #7AB37C;
  --color-light: #F7F4D1;
  --page: var(--color-light);
  --paper: #fffef4;
  --ink: var(--color-deep);
  --muted: #42635c;
  --line: #d9e5d8;
  --forest: var(--color-deep);
  --forest-soft: var(--color-green);
  --sage: var(--color-green-highlight);
  --accent: var(--color-green-complement);
  --lavender: #e4eee4;
  --peach: #f1edda;
  --mint: #dfede3;
  --blue: #e1eeeb;
  --shadow: 0 24px 64px rgb(44 48 38 / 7%);
  font-family: "Shabnam", Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: var(--color-deep);
  --paper: #0d3030;
  --ink: var(--color-light);
  --muted: #b8d0c2;
  --line: #28504a;
  --forest: var(--color-deep);
  --forest-soft: var(--color-green);
  --sage: var(--color-green-highlight);
  --accent: var(--color-green-complement);
  --lavender: #193a38;
  --peach: #3a3d2e;
  --mint: #153b35;
  --blue: #163a3b;
  --shadow: 0 24px 64px rgb(0 0 0 / 24%);
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  transition: background-color 420ms cubic-bezier(.2,.7,.2,1), color 420ms cubic-bezier(.2,.7,.2,1);
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #648d42; outline-offset: 3px; box-shadow: 0 0 0 5px rgb(178 216 132 / 24%); }
::selection { color: #18251f; background: #dce8c8; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 72px)); margin-inline: auto; padding: 24px 0 28px; }
.theme-wash { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.theme-wash__light, .theme-wash__dark { position: absolute; inset: 0; transition: opacity 460ms cubic-bezier(.2,.7,.2,1); }
.theme-wash__light { background: radial-gradient(ellipse at 87% 7%, rgb(225 239 199 / 54%), transparent 26rem), radial-gradient(ellipse at 4% 52%, rgb(235 226 215 / 46%), transparent 24rem); opacity: 1; }
.theme-wash__dark { background: radial-gradient(ellipse at 87% 7%, rgb(112 148 84 / 11%), transparent 26rem), radial-gradient(ellipse at 4% 52%, rgb(119 92 70 / 9%), transparent 24rem); opacity: 0; }
:root[data-theme="dark"] .theme-wash__light { opacity: 0; }
:root[data-theme="dark"] .theme-wash__dark { opacity: 1; }
.skip-link { position: fixed; z-index: 20; top: 10px; right: 10px; padding: 8px 14px; border-radius: 14px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.topbar { position: relative; display: flex; min-height: 44px; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: #5d645d; font-size: 12px; font-weight: 700; }
.wordmark__mark { display: grid; width: 32px; aspect-ratio: 1; place-items: center; border: 1px solid #d8ddd1; border-radius: 12px; background: #fbfbf6; color: var(--forest); font-size: 15px; }
.wordmark__dot { margin: 0 3px; color: #a8ad9e; }
.dynamic-island { display: inline-flex; min-height: 36px; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 999px; background: #171c1a; box-shadow: 0 5px 15px rgb(26 34 29 / 12%); color: #f5f4ee; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.dynamic-island:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgb(26 34 29 / 20%); }
.dynamic-island__dot, .availability-dot { display: block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #c8ef94; box-shadow: 0 0 0 4px rgb(200 239 148 / 14%); }
.dynamic-island__label { font-size: 10px; line-height: 1.2; }
.dynamic-island__theme-icon { width: 15px; height: 15px; color: #d8f0b2; }
.dynamic-island.is-dark-mode .dynamic-island__dot { background: #d6f69f; box-shadow: 0 0 0 4px rgb(214 246 159 / 15%); }
.hero-card {
  position: relative;
  display: flex;
  min-height: 362px;
  align-items: center;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  margin-top: 24px;
  padding: 56px 7.1%;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 38px;
  background:
    radial-gradient(ellipse at 4% 100%, rgb(101 145 91 / 34%), transparent 42%),
    linear-gradient(115deg, #2b4334 0%, #20372c 62%, #1d3026 100%);
  box-shadow: 0 26px 62px rgb(28 49 40 / 16%);
  color: #f9f8f2;
}
.hero-card::before { position: absolute; z-index: -1; top: -175px; left: 24%; width: 460px; height: 460px; border: 1px solid rgb(234 240 216 / 8%); border-radius: 50%; content: ""; }
.hero-card::after { position: absolute; z-index: -1; top: -123px; left: calc(24% + 52px); width: 354px; height: 354px; border: 1px solid rgb(234 240 216 / 7%); border-radius: 50%; content: ""; }
.hero-card__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-card__glow--one { top: -105px; right: 9%; width: 245px; aspect-ratio: 1; background: radial-gradient(circle, rgb(167 196 127 / 15%), transparent 72%); }
.hero-card__glow--two { bottom: -185px; left: 34%; width: 350px; aspect-ratio: 1; background: radial-gradient(circle, rgb(133 165 141 / 11%), transparent 70%); }
.hero-copy { position: relative; z-index: 1; flex: 1; padding-top: 4px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: #cbdab5; font-size: 11px; letter-spacing: .02em; }
.eyebrow__line { width: 20px; height: 1px; background: #c3e892; }
.hero-copy h1 { margin: 12px 0 0; font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: -.055em; line-height: 1.3; }
.hero-copy__role { margin: 4px 0 0; color: #e0e4d9; font-size: 17px; font-weight: 400; }
.hero-copy__separator { padding-inline: 5px; color: #a9c18a; }
.hero-copy__intro { max-width: 390px; margin: 13px 0 0; color: #b8c1b8; font-size: 13px; font-weight: 300; }
.hero-meta { display: flex; align-items: center; gap: 15px; margin-top: 27px; color: #d6ded3; font-size: 11px; }
.hero-meta__item { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta__item .icon { width: 14px; height: 14px; color: #cce99f; }
.hero-meta__divider { height: 14px; width: 1px; background: rgb(255 255 255 / 19%); }
.availability-dot { width: 6px; height: 6px; margin-inline: 3px; }
.portrait-wrap { position: relative; z-index: 1; width: 225px; flex: 0 0 225px; margin-inline-start: 38px; }
.portrait-wrap__ring { position: absolute; top: -17px; right: -14px; width: 202px; aspect-ratio: 1; border: 1px solid rgb(204 223 176 / 35%); border-radius: 44% 56% 52% 48% / 53% 41% 59% 47%; transform: rotate(-12deg); }
.portrait-frame { position: relative; width: 190px; height: 225px; margin-inline: auto; overflow: hidden; border: 5px solid rgb(255 255 255 / 75%); border-radius: 32px 32px 64px 32px; background: linear-gradient(150deg, #d5e1c8, #a5b59a); box-shadow: 0 18px 38px rgb(7 18 13 / 24%); }
.portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 39%; }
.portrait-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #314237; font-size: 58px; font-weight: 700; opacity: 0; pointer-events: none; }
.portrait-frame.has-fallback .portrait { display: none; }
.portrait-frame.has-fallback .portrait-fallback { opacity: 1; }
.portrait-note { position: absolute; bottom: -16px; left: -4px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / 64%); border-radius: 14px; background: #f9f8f0; box-shadow: 0 8px 18px rgb(9 23 15 / 18%); color: #435142; font-size: 10px; white-space: nowrap; transform: rotate(-4deg); }
.portrait-note .icon { width: 13px; height: 13px; color: #769e4c; }
.hero-card__number { position: absolute; bottom: 28px; left: 35px; color: #e4eadc; font-size: 11px; letter-spacing: .06em; direction: ltr; opacity: .66; }
.hero-card__number span { color: #99a69a; }

.section-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 12px 20px; overflow: visible; }
.section-nav__link { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid #e0e7d8; border-radius: 15px; background: #fffefa; box-shadow: 0 3px 10px rgb(44 62 37 / 5%); color: #52624d; font-size: 14px; font-weight: 700; white-space: nowrap; transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 160ms ease; }
.section-nav__link:hover { transform: translateY(-2px); border-color: #a9ca83; background: #f7fbed; box-shadow: 0 7px 16px rgb(70 101 48 / 10%); color: #354b30; }
.section-nav__link.is-active, .section-nav__link[aria-current="location"] { border-color: #abd27d; background: #d9efb9; box-shadow: inset 0 0 0 1px rgb(126 166 83 / 12%); color: #263b26; }
.section-nav__link.is-active:hover, .section-nav__link[aria-current="location"]:hover { border-color: #96bd66; background: #cbe7a1; color: #20371f; }
.section-nav__link:focus-visible { outline: 3px solid #648d42; outline-offset: 3px; box-shadow: 0 0 0 5px rgb(178 216 132 / 24%); }

.resume-grid { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(260px, .83fr); gap: 20px; align-items: stretch; }
.content-card, .sidebar { min-width: 0; border-radius: 32px; corner-shape: squircle; }
.content-card { padding: 36px 39px 40px; border: 1px solid #ebeae4; background: var(--paper); box-shadow: 0 14px 42px rgb(41 45 37 / 4%); }
.sidebar { display: flex; flex-direction: column; padding: 33px 27px 24px; overflow: hidden; background: var(--forest); box-shadow: 0 20px 44px rgb(26 47 38 / 12%); color: #eff1e8; }
.resume-section { scroll-margin-top: 24px; }
.resume-copy { margin-top: 22px; color: #4e5b50; font-size: 17px; line-height: 2.15; text-align: right; }
.resume-copy p { margin: 0; }
.resume-copy p + p { margin-top: 18px; }
.resume-copy strong { color: #344d2e; font-weight: 700; }
.resume-copy em { color: #526f3f; font-style: italic; font-synthesis: style; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 20px 0 0; padding: 0; list-style: none; }
.book-card { display: flex; min-width: 0; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #deead0; border-radius: 18px; background: linear-gradient(135deg, #fcfff8, #f1f7e7); box-shadow: 0 5px 16px rgb(68 93 46 / 6%); }
.book-card__marker { width: 10px; height: 10px; flex: 0 0 auto; margin-top: .72em; border-radius: 4px 8px 4px 8px; background: #8eb75d; box-shadow: 0 0 0 4px rgb(178 213 133 / 20%); }
.book-card h3 { min-width: 0; margin: 0; color: #394a35; font-size: 17px; font-weight: 700; line-height: 1.9; overflow-wrap: anywhere; }
.brand-belief { margin: 20px 0 0; padding: 14px 17px; border-right: 3px solid #a7d26d; border-radius: 0 13px 13px 0; background: #f2f7e9; color: #40553a; font-size: 17px; font-weight: 700; line-height: 2.05; }
.brand-belief p { margin: 0; }
.section-heading { display: flex; align-items: center; gap: 13px; }
.section-heading__icon { display: grid; width: 41px; height: 41px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: var(--mint); color: #61765b; }
.section-heading__icon .icon { width: 19px; height: 19px; }
.section-heading__icon--lavender { background: var(--lavender); color: #736b95; }
.section-heading__icon--peach { background: var(--peach); color: #a57b57; }
.section-heading__icon--mint { background: var(--mint); color: #63816b; }
.section-heading__icon--blue { background: var(--blue); color: #637b98; }
.section-heading__eyebrow { margin: 0 0 -1px; color: #a1a39a; font-size: 9px; line-height: 1.5; }
.section-heading h2 { margin: 0; color: #28312c; font-size: 19px; font-weight: 700; line-height: 1.55; }
.section-heading__index { margin-inline-start: auto; color: #c3c6be; font-size: 11px; direction: ltr; }
.timeline { position: relative; margin-top: 26px; padding-right: 20px; }
.timeline::before { position: absolute; top: 8px; right: 5px; bottom: 26px; width: 1px; background: #e8eae2; content: ""; }
.timeline-item { position: relative; padding: 0 0 24px; }
.timeline-item + .timeline-item { padding-top: 2px; }
.timeline-item--last { padding-bottom: 0; }
.timeline-item__marker { position: absolute; top: 7px; right: -19px; width: 10px; height: 10px; border: 2px solid #fdfcf8; border-radius: 50%; background: #bec9b2; box-shadow: 0 0 0 1px #d9dfd2; }
.timeline-item--current .timeline-item__marker { background: #7d9c62; box-shadow: 0 0 0 4px #ecf1e6; }
.timeline-item__topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.timeline-item h3, .education-item h3 { margin: 0; color: #313a34; font-size: 13px; font-weight: 700; line-height: 1.7; }
.timeline-item__company { margin: 1px 0 0; color: #7f867e; font-size: 10px; }
.timeline-item__company span, .education-item__body p span { padding-inline: 3px; color: #b3b9ab; }
.date-chip { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 4px 9px; border: 1px solid #ecece4; border-radius: 10px; background: #fafaf6; color: #858b7e; font-size: 9px; line-height: 1.8; white-space: nowrap; }
.timeline-item__description { max-width: 560px; margin: 8px 0 0; color: #7e847c; font-size: 10px; font-weight: 300; line-height: 2; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-list span, .tool-chips span { padding: 3px 8px; border-radius: 7px; background: #f2f4ee; color: #66715f; font-size: 9px; line-height: 1.7; direction: ltr; }
.resume-section--bordered { margin-top: 31px; padding-top: 27px; border-top: 1px solid var(--line); }
.education-item { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.education-item__mark { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: #f2f0e7; color: #8b876e; font-size: 12px; font-weight: 700; }
.education-item__body { min-width: 0; }
.education-item__body p { margin: 2px 0 0; color: #858a82; font-size: 10px; }
.education-item > .date-chip { margin-inline-start: auto; }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 27px; margin-top: 32px; padding-top: 27px; border-top: 1px solid var(--line); }
.mini-section { min-width: 0; }
.section-heading--compact { gap: 11px; }
.section-heading--compact .section-heading__icon { width: 37px; height: 37px; border-radius: 13px; }
.section-heading--compact .section-heading__icon .icon { width: 17px; height: 17px; }
.section-heading--compact .section-heading__eyebrow { font-size: 8px; }
.section-heading--compact h2 { font-size: 16px; }
.skills-list { display: grid; gap: 12px; margin-top: 17px; }
.skill-row > div { display: flex; justify-content: space-between; gap: 10px; color: #747a72; font-size: 9px; line-height: 1.6; }
.skill-row b { color: #89977b; font-size: 9px; font-weight: 400; direction: ltr; }
.skill-meter { display: block; height: 5px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #eff0eb; }
.skill-meter__fill { display: block; width: var(--level); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c5e68e, #89af5f); transform: scaleX(1); transform-origin: right; transition: transform 850ms cubic-bezier(.2,.7,.2,1); }
.js-ready .skill-meter__fill { transform: scaleX(0); }
.js-ready .is-visible .skill-meter__fill { transform: scaleX(1); }
.tool-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.tool-chips span { background: #f5f3ed; color: #737260; font-size: 8px; }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.interest-list span { padding: 6px 10px; border: 1px solid #edeee8; border-radius: 11px; background: #fcfcf8; color: #6f766d; font-size: 9px; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.interest-list span:hover { transform: translateY(-2px); border-color: #d9e2ce; background: #f5f8f0; }
.mini-section--wide { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.language-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.language-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #edeee8; border-radius: 14px; background: #fcfcf8; }
.language-item > div { display: flex; align-items: center; gap: 7px; }
.language-item strong { color: #566153; font-size: 10px; }
.language-item > div > span { color: #9a9d94; font-size: 8px; }
.language-dots { display: flex; gap: 4px; direction: ltr; }
.language-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #e2e5de; }
.language-dots i.is-filled { background: #9fb485; }

.sidebar-section { position: relative; }
.sidebar-summary { padding: 3px 1px 26px; }
.sidebar-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: #a6b59f; font-size: 9px; }
.sidebar-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: #bfd795; }
.sidebar h2 { margin: 12px 0 0; color: #f5f4ec; font-size: 21px; font-weight: 700; line-height: 1.75; letter-spacing: -.035em; }
.sidebar-summary > p:last-of-type { margin: 13px 0 0; color: #b9c3b9; font-size: 10px; font-weight: 300; line-height: 2.3; }
.summary-signature { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: #dbe3d1; font-size: 10px; }
.summary-signature span { color: #c0d99b; font-size: 14px; }
.contact-section { margin-inline: -27px; padding: 25px 27px 8px; border-top: 1px solid rgb(238 242 230 / 12%); }
.contact-section h2 { margin-top: 9px; font-size: 16px; line-height: 1.8; }
.contact-link { display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.contact-link__icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(238 242 230 / 12%); border-radius: 12px; background: rgb(255 255 255 / 5%); color: #c2d5aa; transition: background 180ms ease, transform 180ms ease; }
.contact-link__icon .icon { width: 15px; height: 15px; }
.contact-link__icon--text { color: #c8d9b2; font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; }
.contact-link > span:nth-child(2) { display: grid; min-width: 0; line-height: 1.7; }
.contact-link small { color: #91a195; font-size: 8px; }
.contact-link strong { color: #e7e9df; font-size: 10px; font-weight: 400; direction: ltr; text-align: right; overflow-wrap: anywhere; }
.contact-link strong[dir="ltr"] { text-align: left; }
.contact-link__arrow { width: 13px; height: 13px; margin-inline-start: auto; color: #8d9b90; opacity: 0; transform: translate(3px, 3px); transition: opacity 180ms ease, transform 180ms ease; }
.contact-link:hover .contact-link__icon { transform: translateY(-2px); background: rgb(255 255 255 / 10%); }
.contact-link:hover .contact-link__arrow { opacity: 1; transform: translate(0, 0); }
.sidebar-note { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 15px 13px; border: 1px solid rgb(241 245 233 / 10%); border-radius: 16px; background: rgb(255 255 255 / 4%); }
.sidebar-note .icon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: #c2d69e; }
.sidebar-note p { margin: 0; color: #c2ccc1; font-size: 9px; line-height: 2; }

.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 8px 0; color: #747b72; font-size: 9px; }
.page-footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.footer-star { color: #91a77a; font-size: 13px; }
.footer-separator { padding-inline: 4px; color: #c0c3b9; }
.page-footer a { color: #6f7e66; transition: color 160ms ease; }
.page-footer a:hover { color: #394b37; }

.topbar__actions { display: flex; align-items: center; gap: 8px; }
.action-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border: 1px solid #dfe2d9; border-radius: 15px; background: rgb(255 255 255 / 62%); color: #465247; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.action-button .icon { width: 17px; height: 17px; }
.action-button:hover { transform: translateY(-2px); border-color: #c9d2c0; background: #fff; box-shadow: 0 8px 18px rgb(44 56 43 / 8%); }
.action-button:active { transform: translateY(0) scale(.98); }
.action-button--share { border-color: #263a33; background: #263a33; color: #f8f8f2; }
.action-button--share:hover { border-color: #344c40; background: #344c40; }
.action-button--share .icon { color: #d6e5bb; }
.toast { position: fixed; z-index: 30; right: 50%; bottom: max(24px, env(safe-area-inset-bottom)); display: flex; min-height: 46px; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 9px 17px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 16px; background: #1d302b; box-shadow: 0 12px 32px rgb(19 33 27 / 25%); color: #f6f7ef; font-size: 13px; line-height: 1.7; opacity: 0; pointer-events: none; transform: translate(50%, 12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #b9d28f; content: ""; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }
.wordmark__mark { width: 40px; border-radius: 13px; overflow: hidden; padding: 3px; background: #fffdf6; }
.wordmark__mark img { display: block; width: 100%; height: 100%; border-radius: 9px; object-fit: contain; }
.sidebar-brand { display: flex; align-items: center; gap: 13px; margin-top: auto; padding: 12px; border: 1px solid #e8e2d2; border-radius: 17px; background: #fbf7e9; color: #354234; }
.sidebar-brand img { display: block; width: 72px; height: 72px; flex: 0 0 auto; border-radius: 13px; background: #f2ead6; object-fit: contain; }
.sidebar-brand span { display: grid; gap: 2px; min-width: 0; }
.sidebar-brand small { color: #65715d; font-size: 12px; line-height: 1.6; }
.sidebar-brand strong { color: #394834; font-size: 14px; line-height: 1.7; }

.js-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.7,.2,1); }
.js-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.js-ready .portrait-wrap[data-reveal] { transition-delay: 110ms; }
.js-ready .timeline-item { opacity: 0; transform: translateX(9px); transition: opacity 520ms ease, transform 520ms ease; }
.js-ready .is-visible .timeline-item { opacity: 1; transform: translateX(0); }
.js-ready .is-visible .timeline-item:nth-child(2) { transition-delay: 90ms; }
.js-ready .is-visible .timeline-item:nth-child(3) { transition-delay: 170ms; }

@media (max-width: 980px) {
  .page-shell { width: min(100% - 48px, 760px); }
  .hero-card { min-height: 335px; padding-inline: 6%; }
  .portrait-wrap { width: 198px; flex-basis: 198px; margin-inline-start: 20px; }
  .portrait-frame { width: 166px; height: 205px; }
  .portrait-wrap__ring { right: -4px; width: 180px; }
  .resume-grid { grid-template-columns: minmax(0, 1.45fr) minmax(230px, .8fr); gap: 15px; }
  .content-card { padding-inline: 28px; }
  .sidebar { padding-inline: 22px; }
  .contact-section { margin-inline: -22px; padding-inline: 22px; }
  .details-grid { column-gap: 18px; }
  .language-list { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 13px; }
  .page-shell { width: min(100% - 32px, 540px); padding-top: 15px; }
  .topbar { min-height: 42px; }
  .dynamic-island { position: absolute; top: 48px; left: 50%; z-index: 3; min-height: 31px; gap: 7px; padding: 6px 11px; transform: translateX(-50%); }
  .dynamic-island:hover { transform: translateX(-50%) translateY(-2px); }
  .dynamic-island__label { font-size: 9px; }
  .print-button { min-height: 36px; padding-inline: 10px; border-radius: 12px; font-size: 10px; }
  .print-button .icon { width: 14px; height: 14px; }
  .wordmark { gap: 7px; font-size: 10px; }
  .wordmark__mark { width: 28px; border-radius: 10px; }
  .hero-card { min-height: 0; align-items: flex-start; gap: 20px; margin-top: 52px; padding: 31px 25px 29px; border-radius: 29px; }
  .hero-copy { padding-top: 12px; }
  .hero-copy h1 { margin-top: 8px; font-size: clamp(31px, 8vw, 44px); }
  .hero-copy__role { font-size: 13px; }
  .hero-copy__intro { max-width: 300px; font-size: 11px; }
  .hero-meta { flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; font-size: 9px; }
  .hero-meta__divider { display: none; }
  .portrait-wrap { width: 142px; flex: 0 0 142px; margin: 18px 0 0 0; }
  .portrait-frame { width: 132px; height: 159px; border-width: 4px; border-radius: 23px 23px 43px 23px; }
  .portrait-wrap__ring { top: -10px; right: -4px; width: 139px; }
  .portrait-note { bottom: -12px; left: -7px; gap: 4px; padding: 6px 8px; font-size: 8px; }
  .portrait-note .icon { width: 11px; height: 11px; }
  .hero-card__number { bottom: 13px; left: 19px; font-size: 9px; }
  .hero-card::before { top: -160px; left: 8%; }
  .hero-card::after { top: -110px; left: 18%; }
  .section-nav { gap: 9px; margin-inline: -2px; padding: 16px 4px 18px; overflow: visible; }
  .section-nav__link { font-size: 10px; }
  .resume-grid { grid-template-columns: 1fr; gap: 14px; }
  .content-card, .sidebar { border-radius: 26px; }
  .content-card { padding: 27px 23px 30px; }
  .sidebar { padding: 27px 24px 20px; }
  .contact-section { margin-inline: -24px; padding-inline: 24px; }
  .sidebar-summary { padding-bottom: 22px; }
  .sidebar-note { margin-top: 24px; }
  .timeline { margin-top: 22px; }
  .timeline-item__topline { gap: 7px; }
  .timeline-item h3 { font-size: 12px; }
  .timeline-item__description { font-size: 9px; }
  .date-chip { padding-inline: 7px; font-size: 8px; }
  .details-grid { gap: 22px 18px; }
  .page-footer { flex-wrap: wrap; padding-inline: 3px; font-size: 8px; }
  .page-footer > a { white-space: nowrap; }
}

@media (max-width: 460px) {
  .page-shell { width: calc(100% - 24px); }
  .hero-card { gap: 12px; padding-inline: 18px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-copy__role { max-width: 190px; font-size: 11px; }
  .hero-copy__intro { line-height: 1.9; }
  .hero-meta { display: grid; align-items: start; }
  .portrait-wrap { width: 111px; flex-basis: 111px; margin-top: 22px; }
  .portrait-frame { width: 106px; height: 137px; }
  .portrait-wrap__ring { width: 112px; }
  .portrait-note { left: -11px; font-size: 7px; }
  .hero-card__number { display: none; }
  .details-grid { grid-template-columns: 1fr; }
  .mini-section--wide { grid-column: auto; }
  .language-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .language-item { flex-wrap: wrap; justify-content: flex-start; gap: 5px; padding: 9px; }
  .language-item > div { flex-wrap: wrap; gap: 1px 6px; }
  .language-dots { gap: 3px; }
}

/* Reading scale is applied after the responsive layout rules so the mobile
   breakpoints keep the same comfortable type sizes. */
body { color: #272f29; font-size: 17px; line-height: 1.95; }
.wordmark { font-size: 14px; }
.dynamic-island__label { font-size: 13px; }
.eyebrow { font-size: 13px; }
.hero-copy h1 { font-size: clamp(42px, 5.2vw, 60px); line-height: 1.28; }
.hero-copy__role { font-size: 20px; }
.hero-copy__intro { font-size: 17px; line-height: 2; }
.hero-meta, .section-nav__link { font-size: 14px; }
.portrait-note { font-size: 13px; }
.section-heading__eyebrow, .section-heading--compact .section-heading__eyebrow { color: #626e60; font-size: 13px; }
.section-heading h2 { font-size: 24px; }
.section-heading--compact h2 { font-size: 20px; }
.section-heading__index { color: #707a6d; }
.timeline-item h3, .education-item h3 { font-size: 17px; }
.timeline-item__company, .education-item__body p { color: #596759; font-size: 14px; }
.date-chip { color: #58684e; font-size: 12px; }
.timeline-item__description { color: #4e5b50; font-size: 15px; line-height: 2; }
.tag-list span, .tool-chips span { color: #4e6047; font-size: 12px; }
.skill-row > div { color: #465449; font-size: 15px; line-height: 1.9; }
.skill-row b { color: #52733d; font-size: 13px; }
.tool-chips span { font-size: 12px; }
.interest-list span { color: #4f5e50; font-size: 14px; }
.language-item strong { color: #435440; font-size: 14px; }
.language-item > div > span { color: #59695a; font-size: 12px; }
.sidebar-kicker { font-size: 13px; }
.sidebar h2 { font-size: 25px; line-height: 1.75; }
.sidebar-summary > p:last-of-type { font-size: 15px; line-height: 2.15; }
.summary-signature { font-size: 14px; }
.contact-section h2 { font-size: 20px; }
.contact-link small { font-size: 12px; }
.contact-link strong { font-size: 14px; }
.sidebar-note p { font-size: 14px; line-height: 1.95; }
.sidebar-brand small { font-size: 12px; }
.sidebar-brand strong { font-size: 14px; }
.page-footer { color: #4f5e50; font-size: 12px; }
.action-button { font-size: 15px; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wordmark { font-size: 13px; }
  .wordmark__mark { width: 36px; }
  .dynamic-island__label { font-size: 12px; }
  .hero-copy h1 { font-size: clamp(36px, 8vw, 48px); }
  .hero-copy__role { font-size: 16px; }
  .hero-copy__intro { font-size: 15px; }
  .hero-meta, .section-nav__link { font-size: 13px; }
  .portrait-note { font-size: 11px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading--compact h2 { font-size: 19px; }
  .timeline-item h3 { font-size: 16px; }
  .timeline-item__company, .education-item__body p { font-size: 13px; }
  .timeline-item__description { font-size: 14px; }
  .resume-copy { font-size: 16px; }
  .book-card { padding: 14px; }
  .book-card h3 { font-size: 16px; }
  .date-chip { font-size: 11px; }
  .skill-row > div, .interest-list span { font-size: 14px; }
  .sidebar-summary > p:last-of-type { font-size: 14px; }
  .contact-link strong { font-size: 13px; }
  .action-button { min-height: 44px; gap: 6px; padding-inline: 9px; border-radius: 13px; font-size: 13px; }
  .action-button span { font-size: 0; }
  .action-button span::after { font-size: 13px; }
  .action-button--share span::after { content: "اشتراک"; }
  .action-button--print span::after { content: "چاپ"; }
  .page-footer { font-size: 12px; }
}

@media (max-width: 460px) {
  body { font-size: 15.5px; }
  .wordmark { font-size: 12px; }
  .wordmark__mark { width: 34px; }
  .wordmark > span:last-child { display: none; }
  .dynamic-island__label { font-size: 11px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy__role { max-width: 190px; font-size: 14px; }
  .hero-copy__intro { font-size: 14px; }
  .hero-meta { font-size: 12px; }
  .portrait-note { font-size: 10px; }
  .action-button { width: auto; min-height: 44px; gap: 6px; padding-inline: 9px; border-radius: 13px; font-size: 13px; }
  .action-button span { font-size: 0; }
  .action-button span::after { font-size: 13px; }
  .action-button--share span::after { content: "اشتراک"; }
  .action-button--print span::after { content: "چاپ"; }
  .topbar__actions { gap: 6px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading--compact h2 { font-size: 18px; }
  .timeline-item__company, .education-item__body p { font-size: 12px; }
  .timeline-item__description { font-size: 13px; }
  .resume-copy { font-size: 15.5px; line-height: 2.1; }
  .book-card { gap: 10px; padding: 13px; }
  .book-card h3 { font-size: 15px; line-height: 1.9; }
  .sidebar-summary > p:last-of-type { font-size: 13px; }
  .contact-link strong { font-size: 12px; }
  .sidebar-brand { gap: 10px; padding: 10px; }
  .sidebar-brand img { width: 62px; height: 62px; }
  .sidebar-brand strong { font-size: 13px; }
}

:root[data-theme="dark"] body {
  background-color: var(--page);
  background-image: none;
  color: var(--ink);
}
:root[data-theme="dark"] .skip-link { background: #26332b; color: #f0f4ed; }
:root[data-theme="dark"] .wordmark { color: #c2cec0; }
:root[data-theme="dark"] .wordmark__mark { border-color: #405044; background: #202d25; color: #d4edaa; }
:root[data-theme="dark"] .wordmark__dot { color: #94a18f; }
:root[data-theme="dark"] .dynamic-island { background: #0d120f; }
:root[data-theme="dark"] .section-nav__link { border-color: #39483b; background: #202d24; box-shadow: 0 3px 10px rgb(0 0 0 / 14%); color: #c7d3c3; }
:root[data-theme="dark"] .section-nav__link:hover { border-color: #718b58; background: #2b3d2e; color: #e2efda; }
:root[data-theme="dark"] .section-nav__link.is-active,
:root[data-theme="dark"] .section-nav__link[aria-current="location"] { border-color: #b9df83; background: #c7e994; box-shadow: inset 0 0 0 1px rgb(29 52 28 / 12%); color: #223522; }
:root[data-theme="dark"] .section-nav__link.is-active:hover,
:root[data-theme="dark"] .section-nav__link[aria-current="location"]:hover { border-color: #d1efa6; background: #d1efa6; color: #20331e; }
:root[data-theme="dark"] .section-nav__link:focus-visible { outline-color: #c6ea92; box-shadow: 0 0 0 5px rgb(198 234 146 / 20%); }
:root[data-theme="dark"] .content-card { border-color: #2f3c33; background: var(--paper); box-shadow: 0 14px 42px rgb(0 0 0 / 15%); }
:root[data-theme="dark"] .sidebar { background: var(--forest); box-shadow: 0 20px 44px rgb(0 0 0 / 20%); }
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .timeline-item h3,
:root[data-theme="dark"] .education-item h3 { color: #edf3eb; }
:root[data-theme="dark"] .section-heading__eyebrow,
:root[data-theme="dark"] .section-heading--compact .section-heading__eyebrow { color: #a9b7a7; }
:root[data-theme="dark"] .section-heading__index { color: #a1ad9e; }
:root[data-theme="dark"] .resume-section--bordered,
:root[data-theme="dark"] .details-grid { border-color: var(--line); }
:root[data-theme="dark"] .timeline::before { background: #3b493e; }
:root[data-theme="dark"] .timeline-item__marker { border-color: #1c2721; background: #84977b; box-shadow: 0 0 0 1px #48564a; }
:root[data-theme="dark"] .timeline-item--current .timeline-item__marker { background: #c5e994; box-shadow: 0 0 0 4px #314032; }
:root[data-theme="dark"] .timeline-item__company,
:root[data-theme="dark"] .education-item__body p { color: #b0beb0; }
:root[data-theme="dark"] .date-chip { border-color: #3c4a3f; background: #26332b; color: #c4d2bd; }
:root[data-theme="dark"] .timeline-item__description { color: #c0ccc0; }
:root[data-theme="dark"] .resume-copy { color: #d2ddd1; }
:root[data-theme="dark"] .resume-copy strong { color: #e1f2be; }
:root[data-theme="dark"] .resume-copy em { color: #c8e69d; }
:root[data-theme="dark"] .book-card { border-color: #40533b; background: linear-gradient(135deg, #26382b, #202f25); box-shadow: 0 6px 18px rgb(0 0 0 / 16%); }
:root[data-theme="dark"] .book-card h3 { color: #e4eddf; }
:root[data-theme="dark"] .book-card__marker { background: #c3e892; box-shadow: 0 0 0 4px rgb(195 232 146 / 14%); }
:root[data-theme="dark"] .brand-belief { border-color: #c1e885; background: #2b3d2c; color: #e2efd5; }
:root[data-theme="dark"] .tag-list span,
:root[data-theme="dark"] .tool-chips span { background: #2b392e; color: #cde0b8; }
:root[data-theme="dark"] .education-item__mark { background: #34392c; color: #d6dfa9; }
:root[data-theme="dark"] .skill-row > div { color: #c4d0c3; }
:root[data-theme="dark"] .skill-row b { color: #c6e39e; }
:root[data-theme="dark"] .skill-meter { background: #344137; }
:root[data-theme="dark"] .skill-meter__fill { background: linear-gradient(90deg, #d0f19a, #91c168); }
:root[data-theme="dark"] .interest-list span,
:root[data-theme="dark"] .language-item { border-color: #3a483d; background: #232f28; color: #d0dacf; }
:root[data-theme="dark"] .interest-list span:hover { border-color: #657c4f; background: #2b3c2e; }
:root[data-theme="dark"] .language-item strong { color: #e0eadb; }
:root[data-theme="dark"] .language-item > div > span { color: #aebbaa; }
:root[data-theme="dark"] .language-dots i { background: #4a574c; }
:root[data-theme="dark"] .language-dots i.is-filled { background: #c4e990; }
:root[data-theme="dark"] .contact-link__icon { border-color: rgb(238 242 230 / 18%); background: rgb(255 255 255 / 7%); color: #d2e8b4; }
:root[data-theme="dark"] .contact-link small { color: #a9b8a9; }
:root[data-theme="dark"] .contact-link strong { color: #f0f3ea; }
:root[data-theme="dark"] .sidebar-note { border-color: rgb(241 245 233 / 15%); background: rgb(255 255 255 / 6%); }
:root[data-theme="dark"] .sidebar-note p { color: #d1ddd0; }
:root[data-theme="dark"] .page-footer { color: #b4c0b2; }
:root[data-theme="dark"] .footer-separator { color: #68786a; }
:root[data-theme="dark"] .page-footer a { color: #c9e99c; }
:root[data-theme="dark"] .page-footer a:hover { color: #e0f7bd; }
:root[data-theme="dark"] .action-button { border-color: #435145; background: #26332b; color: #e3ebe0; }
:root[data-theme="dark"] .action-button:hover { border-color: #637853; background: #304033; }
:root[data-theme="dark"] .action-button--share { border-color: #c4e891; background: #c4e891; color: #1b2a1f; }
:root[data-theme="dark"] .action-button--share:hover { border-color: #d5f2a5; background: #d5f2a5; }
:root[data-theme="dark"] .action-button--share .icon { color: #27432c; }
:root[data-theme="dark"] .toast { border-color: #455343; background: #26382b; }

body, .wordmark, .wordmark__mark, .dynamic-island, .skip-link, .toast, .content-card, .sidebar,
.section-nav__link, .section-heading__icon, .timeline-item__marker, .book-card, .book-card h3, .book-card__marker,
.date-chip, .education-item__mark, .tag-list span, .tool-chips span,
.interest-list span, .language-item, .sidebar-brand, .contact-link__icon,
.action-button, .page-footer, .resume-copy, .book-grid, .brand-belief,
.section-heading h2, .timeline-item h3, .timeline-item__company,
.timeline-item__description, .contact-link small, .contact-link strong, .resume-copy strong, .resume-copy em {
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .js-ready .timeline-item { opacity: 1; transform: none; }
  .js-ready .skill-meter__fill { transform: none; }
}

/* Shared palette layer: semantic tokens keep every surface and interaction
   in the same five-color family in both themes. */
:root {
  --surface-raised: #fffef4;
  --surface-soft: #edf3e7;
  --text-primary: var(--color-deep);
  --text-secondary: #355b52;
  --text-subtle: #4c7065;
  --border-color: #d1e0d4;
  --accent-on-color: #062223;
  --hero-background: linear-gradient(120deg, #062223, #164b45 62%, #1d5b4d);
  --button-background: #418B7E;
  --button-hover: #4E977A;
}
:root[data-theme="dark"] {
  --surface-raised: #0d3030;
  --surface-soft: #153b35;
  --text-primary: var(--color-light);
  --text-secondary: #c2d8c9;
  --text-subtle: #a9c5b3;
  --border-color: #28504a;
  --accent-on-color: #062223;
  --hero-background: linear-gradient(120deg, #062223, #164b45 62%, #1d5b4d);
  --button-background: #7AB37C;
  --button-hover: #F7F4D1;
}

body { color: var(--text-primary); }
.theme-wash__light { background: radial-gradient(ellipse at 87% 7%, rgb(122 179 124 / 19%), transparent 26rem), radial-gradient(ellipse at 4% 52%, rgb(78 151 122 / 12%), transparent 24rem); }
.theme-wash__dark { background: radial-gradient(ellipse at 87% 7%, rgb(122 179 124 / 13%), transparent 26rem), radial-gradient(ellipse at 4% 52%, rgb(65 139 126 / 12%), transparent 24rem); }
button:focus-visible, a:focus-visible, .section-nav__link:focus-visible { outline-color: var(--color-green-highlight); box-shadow: 0 0 0 5px rgb(122 179 124 / 26%); }
::selection { color: var(--color-deep); background: var(--color-green-highlight); }
.skip-link { background: var(--color-light); color: var(--color-deep); }
.wordmark, .section-heading h2, .timeline-item h3, .education-item h3,
.resume-copy, .resume-copy strong, .resume-copy em, .book-card h3,
.timeline-item__company, .education-item__body p, .timeline-item__description,
.section-heading__eyebrow, .section-heading__index, .skill-row > div,
.skill-row b, .tag-list span, .tool-chips span, .interest-list span,
.language-item, .language-item strong, .language-item > div > span,
.date-chip, .page-footer, .footer-separator, .page-footer a,
.sidebar-brand, .sidebar-brand small, .sidebar-brand strong {
  color: var(--text-secondary);
}
.section-heading h2, .timeline-item h3, .education-item h3,
.book-card h3, .language-item strong, .sidebar-brand strong { color: var(--text-primary); }
.content-card, .wordmark__mark, .section-nav__link, .date-chip,
.language-item, .interest-list span, .book-card, .sidebar-brand {
  border-color: var(--border-color); background-color: var(--surface-raised);
}
.section-heading__icon, .tag-list span, .tool-chips span,
.education-item__mark, .brand-belief { background-color: var(--surface-soft); color: var(--color-green); }
.book-card { background: var(--surface-soft); }
.brand-belief { border-color: var(--color-green-highlight); color: var(--text-primary); }
.timeline::before, .timeline-item__marker { background-color: var(--color-green); }
.timeline-item__marker { border-color: var(--surface-raised); box-shadow: 0 0 0 1px var(--border-color); }
.timeline-item--current .timeline-item__marker, .language-dots i.is-filled,
.book-card__marker, .sidebar-kicker > span, .dynamic-island__dot,
.availability-dot { background-color: var(--color-green-highlight); }
.skill-meter { background-color: var(--surface-soft); }
.skill-meter__fill { background: linear-gradient(90deg, var(--color-green), var(--color-green-highlight)); }
.language-dots i { background-color: var(--border-color); }
.interest-list span:hover, .section-nav__link:hover, .action-button:hover,
.contact-link:hover .contact-link__icon { border-color: var(--color-green); background-color: var(--surface-soft); }
.section-nav__link.is-active, .section-nav__link[aria-current="location"] {
  border-color: var(--color-green); background: var(--color-green); color: var(--color-light);
}
.section-nav__link.is-active:hover, .section-nav__link[aria-current="location"]:hover {
  border-color: var(--color-green-complement); background: var(--color-green-complement); color: var(--color-light);
}
.hero-card { background: radial-gradient(ellipse at 4% 100%, rgb(122 179 124 / 24%), transparent 42%), var(--hero-background); color: var(--color-light); }
.hero-card .eyebrow, .hero-card__number, .hero-copy__role, .hero-copy__intro,
.hero-meta { color: var(--color-light); }
.hero-card .eyebrow__line, .hero-meta__item .icon, .hero-copy__separator,
.hero-card__number span { color: var(--color-green-highlight); background-color: var(--color-green-highlight); }
.portrait-note { background: var(--color-light); color: var(--color-deep); }
.portrait-note .icon { color: var(--color-green); }
.sidebar { background: var(--color-deep); color: var(--color-light); }
.sidebar h2, .contact-link strong { color: var(--color-light); }
.sidebar-kicker, .sidebar-summary > p:last-of-type, .summary-signature,
.contact-link small, .contact-link__arrow, .sidebar-note p { color: #c2d8c9; }
.contact-link__icon { border-color: rgb(247 244 209 / 25%); background: rgb(65 139 126 / 24%); color: var(--color-light); }
.sidebar-note { border-color: rgb(247 244 209 / 20%); background: rgb(65 139 126 / 18%); }
.sidebar-brand { background: var(--surface-soft); color: var(--text-primary); }
.page-footer a, .page-footer a:hover { color: var(--color-green); }
:root[data-theme="dark"] .page-footer a, :root[data-theme="dark"] .page-footer a:hover { color: var(--color-green-highlight); }
.dynamic-island { background: var(--color-deep); color: var(--color-light); }
.dynamic-island__theme-icon { color: var(--color-green-highlight); }
.action-button { border-color: var(--border-color); background: var(--surface-raised); color: var(--text-primary); }
.action-button--share { border-color: var(--button-background); background: var(--button-background); color: var(--accent-on-color); }
.action-button--share:hover { border-color: var(--button-hover); background: var(--button-hover); color: var(--color-deep); }
.action-button--share .icon { color: currentColor; }
.toast { border-color: var(--color-green); background: var(--color-deep); color: var(--color-light); }
.toast::before { background: var(--color-green-highlight); }
:root[data-theme="dark"] .skip-link { background: var(--color-light); color: var(--color-deep); }
:root[data-theme="dark"] .section-nav__link { border-color: var(--border-color); background: var(--surface-raised); color: var(--text-secondary); }
:root[data-theme="dark"] .section-nav__link:hover { border-color: var(--color-green); background: var(--surface-soft); color: var(--color-light); }
:root[data-theme="dark"] .section-nav__link.is-active,
:root[data-theme="dark"] .section-nav__link[aria-current="location"] { border-color: var(--color-green); background: var(--color-green); color: var(--color-light); }
:root[data-theme="dark"] .section-nav__link.is-active:hover,
:root[data-theme="dark"] .section-nav__link[aria-current="location"]:hover { border-color: var(--color-green-complement); background: var(--color-green-complement); color: var(--color-light); }
:root[data-theme="dark"] .content-card { border-color: var(--border-color); background: var(--surface-raised); }
:root[data-theme="dark"] .book-card { border-color: var(--border-color); background: var(--surface-soft); }
:root[data-theme="dark"] .tag-list span, :root[data-theme="dark"] .tool-chips span { background: var(--surface-soft); color: var(--text-secondary); }
:root[data-theme="dark"] .date-chip, :root[data-theme="dark"] .language-item,
:root[data-theme="dark"] .interest-list span { border-color: var(--border-color); background: var(--surface-raised); color: var(--text-secondary); }
:root[data-theme="dark"] .action-button { border-color: var(--border-color); background: var(--surface-raised); color: var(--color-light); }
:root[data-theme="dark"] .action-button:hover { border-color: var(--color-green); background: var(--surface-soft); }
:root[data-theme="dark"] .action-button--share { border-color: var(--button-background); background: var(--button-background); color: var(--color-deep); }
:root[data-theme="dark"] .action-button--share:hover { border-color: var(--button-hover); background: var(--button-hover); color: var(--color-deep); }
:root[data-theme="dark"] .toast { border-color: var(--color-green); background: var(--surface-raised); }

@media print {
  @page { size: A4; margin: 12mm; }
  :root { --page: #fff; }
  body { background: #fff; color: #202520; font-size: 10px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .page-shell { width: 100%; padding: 0; }
  .topbar, .section-nav, .page-footer, .skip-link, .theme-wash { display: none !important; }
  .hero-card { min-height: 245px; margin-top: 0; padding: 28px 40px; border-radius: 24px; box-shadow: none; }
  .hero-copy h1 { font-size: 38px; }
  .portrait-wrap { flex-basis: 170px; width: 170px; }
  .portrait-frame { width: 145px; height: 175px; }
  .resume-grid { grid-template-columns: minmax(0, 1.55fr) minmax(220px, .8fr); gap: 12px; margin-top: 10px; }
  .content-card, .sidebar { border-radius: 22px; box-shadow: none; }
  .content-card { padding: 22px; }
  .sidebar { padding: 22px 18px; }
  .toast { display: none !important; }
  .resume-section, .timeline-item, .mini-section { break-inside: avoid; }
  .js-ready [data-reveal], .js-ready .timeline-item { opacity: 1 !important; transform: none !important; }
  .js-ready .skill-meter__fill { transform: none !important; }
  a { text-decoration: none; }
}

/* Shared rose palette and accessible semantic colors for the resume themes. */
:root {
  --palette-plum: #7A0177;
  --palette-magenta: #C51B8A;
  --palette-pink: #F768A1;
  --palette-rose: #FA9FB5;
  --palette-blush: #FCC5C0;
  --palette-cream: #FEEBE2;
  --color-deep: #32132F;
  --color-green: var(--palette-plum);
  --color-green-complement: var(--palette-magenta);
  --color-green-highlight: var(--palette-pink);
  --color-light: var(--palette-cream);
  --page: var(--palette-cream);
  --paper: #FFFAF7;
  --ink: #35152F;
  --muted: #65445D;
  --line: #E8BFC9;
  --forest: #32132F;
  --forest-soft: var(--palette-magenta);
  --sage: var(--palette-pink);
  --accent: var(--palette-magenta);
  --lavender: #F9DCE5;
  --peach: #FCE1DC;
  --mint: #F9DCE5;
  --blue: #FCE1DC;
  --surface-raised: #FFFAF7;
  --surface-soft: #FCE1DC;
  --text-primary: #35152F;
  --text-secondary: #65445D;
  --text-subtle: #76586D;
  --border-color: #E8BFC9;
  --accent-on-color: #FFFFFF;
  --hero-background: linear-gradient(120deg, #7A0177, #9E126F 62%, #6D0D63);
  --button-background: #7A0177;
  --button-hover: #650160;
}

:root[data-theme="dark"] {
  --color-deep: #200B20;
  --color-light: #FEEBE2;
  --page: #200B20;
  --paper: #32152F;
  --ink: #FEEBE2;
  --muted: #E7C8D7;
  --line: #68405D;
  --forest: #200B20;
  --forest-soft: #C51B8A;
  --lavender: #43203E;
  --peach: #49252F;
  --mint: #43203E;
  --blue: #49252F;
  --surface-raised: #32152F;
  --surface-soft: #43203E;
  --text-primary: #FEEBE2;
  --text-secondary: #E7C8D7;
  --text-subtle: #DAB4C9;
  --border-color: #68405D;
  --accent-on-color: #FFFFFF;
  --hero-background: linear-gradient(120deg, #200B20, #43113D 62%, #571344);
  --button-background: #C51B8A;
  --button-hover: #F768A1;
}

body { background: var(--page); color: var(--text-primary); }
.theme-wash__light { background: radial-gradient(ellipse at 87% 7%, rgb(247 104 161 / 16%), transparent 26rem), radial-gradient(ellipse at 4% 52%, rgb(197 27 138 / 10%), transparent 24rem); }
.theme-wash__dark { background: radial-gradient(ellipse at 87% 7%, rgb(247 104 161 / 13%), transparent 26rem), radial-gradient(ellipse at 4% 52%, rgb(122 1 119 / 18%), transparent 24rem); }
button:focus-visible, a:focus-visible, .section-nav__link:focus-visible { outline: 3px solid var(--palette-pink); outline-offset: 3px; box-shadow: 0 0 0 5px rgb(247 104 161 / 25%); }
::selection { color: #32132F; background: var(--palette-rose); }
.wordmark__mark, .section-nav__link, .date-chip, .language-item, .interest-list span, .book-card, .sidebar-brand { border-color: var(--border-color); background-color: var(--surface-raised); }
.section-heading__icon, .tag-list span, .tool-chips span, .education-item__mark, .brand-belief { background-color: var(--surface-soft); color: var(--palette-plum); }
.brand-belief { color: var(--text-primary); }
.timeline::before, .timeline-item__marker { background-color: var(--palette-magenta); }
.timeline-item__marker { border-color: var(--surface-raised); box-shadow: 0 0 0 1px var(--border-color); }
.timeline-item--current .timeline-item__marker, .language-dots i.is-filled, .book-card__marker, .dynamic-island__dot, .availability-dot { background-color: var(--palette-pink); }
.skill-meter { background-color: var(--surface-soft); }
.skill-meter__fill { background: linear-gradient(90deg, var(--palette-magenta), var(--palette-pink)); }
.interest-list span:hover, .section-nav__link:hover, .action-button:hover { border-color: var(--palette-magenta); background-color: var(--surface-soft); }
.section-nav__link.is-active, .section-nav__link[aria-current="location"] { border-color: var(--palette-plum); background: var(--palette-plum); color: #fff; }
.section-nav__link.is-active:hover, .section-nav__link[aria-current="location"]:hover { border-color: var(--palette-magenta); background: var(--palette-magenta); color: #fff; }
.hero-card { background: radial-gradient(ellipse at 4% 100%, rgb(247 104 161 / 20%), transparent 42%), var(--hero-background); color: #fff; }
.hero-card .eyebrow, .hero-card__number, .hero-copy__role, .hero-copy__intro, .hero-meta { color: #FEEBE2; }
.hero-card .eyebrow__line, .hero-meta__item .icon, .hero-copy__separator, .dynamic-island__theme-icon { color: var(--palette-rose); background-color: var(--palette-rose); }
.portrait-note { background: var(--palette-cream); color: #32132F; }
.portrait-note .icon { color: var(--palette-plum); }
.sidebar { background: var(--color-deep); color: var(--palette-cream); }
.sidebar h2, .contact-link strong { color: var(--palette-cream); }
.sidebar-kicker, .sidebar-summary > p:last-of-type, .summary-signature, .contact-link small, .contact-link__arrow, .sidebar-note p { color: #E7C8D7; }
.contact-link__icon { border-color: rgb(254 235 226 / 24%); background: rgb(197 27 138 / 22%); color: var(--palette-cream); }
.sidebar-note { border-color: rgb(254 235 226 / 20%); background: rgb(197 27 138 / 16%); }
.page-footer a, .page-footer a:hover { color: var(--palette-plum); }
:root[data-theme="dark"] .page-footer a, :root[data-theme="dark"] .page-footer a:hover { color: var(--palette-rose); }
.dynamic-island { background: #32132F; color: #fff; }
.action-button { border-color: var(--border-color); background: var(--surface-raised); color: var(--text-primary); }
.action-button--share { border-color: var(--button-background); background: var(--button-background); color: var(--accent-on-color); }
.action-button--share:hover { border-color: var(--button-hover); background: var(--button-hover); color: #32132F; }
.toast { border-color: var(--palette-magenta); background: #32132F; color: var(--palette-cream); }
.toast::before { background: var(--palette-pink); }
:root[data-theme="dark"] .section-nav__link { border-color: var(--border-color); background: var(--surface-raised); color: var(--text-secondary); }
:root[data-theme="dark"] .section-nav__link:hover { border-color: var(--palette-pink); background: var(--surface-soft); color: var(--palette-cream); }
:root[data-theme="dark"] .section-nav__link.is-active, :root[data-theme="dark"] .section-nav__link[aria-current="location"] { border-color: var(--palette-magenta); background: var(--palette-magenta); color: #fff; }
:root[data-theme="dark"] .section-nav__link.is-active:hover, :root[data-theme="dark"] .section-nav__link[aria-current="location"]:hover { border-color: var(--palette-pink); background: var(--palette-pink); color: #32132F; }
:root[data-theme="dark"] .content-card { border-color: var(--border-color); background: var(--surface-raised); }
:root[data-theme="dark"] .book-card { border-color: var(--border-color); background: var(--surface-soft); }
:root[data-theme="dark"] .tag-list span, :root[data-theme="dark"] .tool-chips span { background: var(--surface-soft); color: var(--text-secondary); }
:root[data-theme="dark"] .date-chip, :root[data-theme="dark"] .language-item, :root[data-theme="dark"] .interest-list span { border-color: var(--border-color); background: var(--surface-raised); color: var(--text-secondary); }
:root[data-theme="dark"] .action-button:hover { border-color: var(--palette-pink); background: var(--surface-soft); }
:root[data-theme="dark"] .action-button--share { border-color: var(--button-background); background: var(--button-background); color: #fff; }
:root[data-theme="dark"] .action-button--share:hover { border-color: var(--button-hover); background: var(--button-hover); color: #32132F; }

/* Shared iOS inspired finish */
:root { --surface-motion: 260ms cubic-bezier(.2,.7,.2,1); }
body,.content-card,.sidebar,.section-nav__link,.action-button,.wordmark__mark,.book-card,.dynamic-island,.portrait-frame {
  transition-duration: var(--surface-motion);
}
.content-card,.sidebar,.hero-card,.portrait-frame,.wordmark__mark,.section-nav__link,.action-button,.book-card,.language-item,.date-chip,.sidebar-brand,.dynamic-island {
  corner-shape: squircle;
}
.content-card { border-radius: 30px; }
.sidebar { border-radius: 30px; }
.hero-card { border-radius: 36px; }
.section-nav__link,.action-button { border-radius: 16px; }
.book-card,.language-item { border-radius: 20px; }
.dynamic-island {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  min-height: 40px;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  overflow: hidden;
  border-color: rgb(255 255 255 / 14%);
  box-shadow: 0 7px 20px rgb(50 19 47 / 17%), inset 0 1px rgb(255 255 255 / 8%);
  transform: translateZ(0);
}
.dynamic-island:hover { transform: translateY(-1px) translateZ(0); }
.dynamic-island__dot {
  width: 9px;
  height: 9px;
  border-radius: 4px 5px 4px 5px;
  box-shadow: 0 0 0 4px rgb(247 104 161 / 15%);
}
.dynamic-island__label { flex: 1 1 auto; min-width: 0; text-align: center; white-space: nowrap; }
.dynamic-island__theme-icon { flex: 0 0 15px; }
.portrait-frame { border-radius: 30px 30px 48px 30px; }
.portrait-wrap__ring { border-radius: 46% 54% 52% 48% / 51% 43% 57% 49%; }
.hero-card,.content-card,.sidebar,.section-nav__link,.action-button,.book-card,.language-item,.interest-list span,.contact-link__icon {
  transition-property: color,background-color,border-color,box-shadow,transform;
  transition-timing-function: cubic-bezier(.2,.7,.2,1);
}
:root[data-theme="dark"] .dynamic-island {
  border-color: rgb(254 235 226 / 15%);
  box-shadow: 0 8px 22px rgb(0 0 0 / 27%), inset 0 1px rgb(255 255 255 / 7%);
}
@media (max-width: 700px) {
  .dynamic-island { width:132px; min-width:132px; max-width:132px; min-height:38px; padding:0 10px; }
  .dynamic-island__label { font-size:11px; }
  .hero-card { border-radius:30px; }
  .content-card,.sidebar { border-radius:26px; }
}
@media (max-width: 460px) {
  .dynamic-island { width:132px; min-width:132px; max-width:132px; }
  .dynamic-island__label { font-size:11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
}
