/* polished.css: site styles ("Sky" design system, see DESIGN.md).
 * Everything is scoped under [data-mode="polished"]. Tweak the tokens in the
 * first two blocks to re-skin the whole site.
 *
 * Fonts: Poppins (headings, UI) and Open Sans (body), loaded from Google Fonts
 * in index.html, with system fallbacks.
 */

/* ---------- Tokens --------------------------------------------------------- */
:root[data-mode='polished'] {
  color-scheme: light;

  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Sky areas: header, hero, contact panel (text on them is white) */
  --sky-1: #0f45ab;
  --sky-2: #1a64d6;
  --on-sky: #ffffff;
  --on-sky-muted: #eaf3ff;

  /* Light theme: sky */
  --bg: #eaf3fd;
  --surface: #ffffff;
  --surface-2: #f0f6fe;
  --fg: #0c2a55;
  --muted: #50627f;
  --border: #d4e3f7;
  --border-strong: #6f86a8;
  --accent: #1561d1;
  --accent-ink: #ffffff;
  --accent-soft: rgba(21, 97, 209, 0.1);
  --focus: #0b5ed7;
  --shadow: 0 1px 2px rgba(15, 69, 171, 0.08), 0 10px 28px -14px rgba(15, 69, 171, 0.3);
  --shadow-lift: 0 2px 4px rgba(15, 69, 171, 0.1), 0 20px 40px -18px rgba(15, 69, 171, 0.42);

  --radius: 1.125rem;
  --radius-s: 0.5rem;
  --radius-l: 1.75rem;
  --section-pad: clamp(var(--space-8), 9vw, var(--space-9));
}

/* Night sky */
:root[data-mode='polished'][data-theme='dark'] {
  color-scheme: dark;

  --sky-1: #071d44;
  --sky-2: #0d3a8f;

  --bg: #081733;
  --surface: #0f2347;
  --surface-2: #14305c;
  --fg: #e8f1ff;
  --muted: #a7b9d9;
  --border: #1f3a6b;
  --border-strong: #5d7fb8;
  --accent: #6bb8ff;
  --accent-ink: #04122e;
  --accent-soft: rgba(107, 184, 255, 0.14);
  --focus: #9cc9ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 20px 40px -18px rgba(0, 0, 0, 0.7);
}

/* ---------- Page ----------------------------------------------------------- */
[data-mode='polished'] {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

[data-mode='polished'] body {
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

[data-mode='polished'] h1,
[data-mode='polished'] h2,
[data-mode='polished'] h3,
[data-mode='polished'] h4 {
  font-family: var(--font-display);
}

[data-mode='polished'] :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[data-mode='polished'] .site-header :focus-visible,
[data-mode='polished'] .hero :focus-visible,
[data-mode='polished'] .contact__panel :focus-visible {
  outline-color: #ffffff;
}

[data-mode='polished'] ::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

[data-mode='polished'] .section {
  padding-block: var(--section-pad);
  position: relative;
}

[data-mode='polished'] .hero + .section {
  padding-top: calc(var(--section-pad) + 3.5rem);
}

[data-mode='polished'] .section-title {
  font: 600 clamp(2rem, 4.5vw, 2.75rem) / 1.15 var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

[data-mode='polished'] .section-title + .project-grid,
[data-mode='polished'] .section-title + .stack__grid {
  margin-top: var(--space-6);
}

[data-mode='polished'] .section-lead {
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.125rem;
  margin-bottom: var(--space-7);
}

/* ---------- Scroll reveals -------------------------------------------------- */
[data-mode='polished'] [data-reveal] {
  transition:
    opacity 0.7s var(--ease-out) calc(var(--i, 0) * 70ms),
    translate 0.7s var(--ease-out) calc(var(--i, 0) * 70ms),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

[data-mode='polished'] [data-reveal]:not(.is-in) {
  opacity: 0;
  translate: 0 1.5rem;
}

/* ---------- Availability bar ------------------------------------------------ */
[data-mode='polished'] .marquee {
  background: var(--sky-1);
  color: var(--on-sky);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--space-2) var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

/* ---------- Header ---------------------------------------------------------- */
[data-mode='polished'] .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sky-1);
  color: var(--on-sky);
}

[data-mode='polished'] .site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-3);
}

[data-mode='polished'] .brand {
  font: 600 1.25rem/1.2 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 4px;
}

[data-mode='polished'] .nav {
  order: 3;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}

[data-mode='polished'] .nav::-webkit-scrollbar {
  display: none;
}

[data-mode='polished'] .nav__list {
  display: flex;
  gap: var(--space-1);
}

[data-mode='polished'] .nav__link {
  position: relative;
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--on-sky-muted);
  font: 500 0.95rem/1.5 var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

[data-mode='polished'] .nav__link::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 2px;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

[data-mode='polished'] .nav__link:hover,
[data-mode='polished'] .nav__link[aria-current='true'] {
  color: #ffffff;
}

[data-mode='polished'] .nav__link:hover::after,
[data-mode='polished'] .nav__link[aria-current='true']::after {
  transform: scaleX(1);
}

[data-mode='polished'] .header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

[data-mode='polished'] .icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #ffffff;
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease;
}

[data-mode='polished'] .icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-12deg) scale(1.06);
}

[data-mode='polished'] .icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-mode='polished'] .theme-toggle .icon-sun {
  display: none;
}

[data-mode='polished'][data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

[data-mode='polished'][data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

@media (min-width: 860px) {
  [data-mode='polished'] .nav {
    order: 0;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  [data-mode='polished'] .site-header__inner {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  [data-mode='polished'] .nav__link {
    padding-inline: 0.55rem;
    font-size: 0.9rem;
  }

  [data-mode='polished'] .nav__link::after {
    left: 0.55rem;
    right: 0.55rem;
  }
}

/* ---------- Buttons & links ------------------------------------------------- */
[data-mode='polished'] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1.2 var(--font-display);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, filter 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

[data-mode='polished'] .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px var(--accent);
  filter: brightness(1.06);
}

[data-mode='polished'] .btn:active {
  transform: translateY(0);
}

[data-mode='polished'] .btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

/* On sky areas: white pill, blue text */
[data-mode='polished'] .site-header .btn,
[data-mode='polished'] .hero .btn,
[data-mode='polished'] .contact__panel .btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--sky-1);
}

[data-mode='polished'] .hero .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

[data-mode='polished'] .hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

[data-mode='polished'] .text-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-underline-offset 0.2s var(--ease-out);
}

[data-mode='polished'] .text-link:hover {
  color: var(--accent);
  text-underline-offset: 7px;
}

[data-mode='polished'] .contact__panel .text-link {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

[data-mode='polished'] .chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

[data-mode='polished'] .chip {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

[data-mode='polished'] .chip--lg {
  padding: 0.4rem 0.95rem;
  font-size: 0.95rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ---------- Folded-corner cards -------------------------------------------- */
[data-mode='polished'] .project-card,
[data-mode='polished'] .approach__item,
[data-mode='polished'] .role {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

[data-mode='polished'] .project-card::after,
[data-mode='polished'] .approach__item::after,
[data-mode='polished'] .role::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 1.75rem;
  height: 1.75rem;
  border-top-right-radius: var(--radius);
  border-bottom-left-radius: 0.5rem;
  background: linear-gradient(225deg, var(--bg) 0 50%, var(--surface-2) 50% 100%);
  box-shadow: -2px 2px 4px -2px rgba(15, 69, 171, 0.18);
  pointer-events: none;
}

/* ---------- Hero ------------------------------------------------------------ */
[data-mode='polished'] .hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding-block: clamp(var(--space-7), 7vw, var(--space-9)) 0;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%);
  color: var(--on-sky);
}

/* Folded-paper horizon */
[data-mode='polished'] .hero::before,
[data-mode='polished'] .hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

[data-mode='polished'] .hero::before {
  height: 9rem;
  background: rgba(255, 255, 255, 0.28);
  clip-path: polygon(0 62%, 10% 38%, 22% 58%, 36% 22%, 48% 52%, 61% 30%, 74% 56%, 88% 26%, 100% 48%, 100% 100%, 0 100%);
}

[data-mode='polished'] .hero::after {
  height: 6rem;
  background: var(--bg);
  clip-path: polygon(0 58%, 14% 30%, 27% 62%, 42% 36%, 55% 66%, 70% 34%, 84% 64%, 100% 40%, 100% 100%, 0 100%);
}

[data-mode='polished'] .hero__inner {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
}

[data-mode='polished'] .hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 40rem;
}

[data-mode='polished'] .hero__eyebrow {
  color: var(--on-sky);
  font: 600 0.8rem/1.4 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-mode='polished'] .hero h1 {
  font: 700 clamp(2.4rem, 6vw, 4.25rem) / 1.08 var(--font-display);
  letter-spacing: -0.02em;
}

[data-mode='polished'] .hero__lead {
  max-width: 36rem;
  color: var(--on-sky-muted);
  font-size: 1.15rem;
}

[data-mode='polished'] .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

[data-mode='polished'] .socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

[data-mode='polished'] .socials__link {
  color: var(--on-sky);
  font-size: 0.95rem;
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

[data-mode='polished'] .socials__link:hover {
  text-decoration-color: #ffffff;
}

/* Paper plane illustration */
[data-mode='polished'] .hero__art {
  position: absolute;
  z-index: -1;
  top: clamp(1rem, 4vw, 3rem);
  right: 0;
  width: min(46vw, 34rem);
  height: auto;
  pointer-events: none;
}

[data-mode='polished'] .plane__a { fill: #ffffff; }
[data-mode='polished'] .plane__b { fill: #d6e6fb; }
[data-mode='polished'] .plane__c { fill: #a9c8f2; }
[data-mode='polished'] .plane__d { fill: #eaf3ff; }
[data-mode='polished'] .plane__trail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
}

@media (max-width: 760px) {
  [data-mode='polished'] .hero__art {
    opacity: 0.22;
    width: 80vw;
    top: 1rem;
  }
}

/* At-a-glance bar overlapping the hero edge */
[data-mode='polished'] .glance {
  position: relative;
  z-index: 2;
  margin-bottom: -3.5rem;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift);
  padding: var(--space-3) var(--space-5);
}

[data-mode='polished'] .glance__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[data-mode='polished'] .glance__badge {
  display: none;
}

[data-mode='polished'] .facts {
  display: grid;
  gap: 0 var(--space-5);
}

@media (min-width: 640px) {
  [data-mode='polished'] .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  [data-mode='polished'] .facts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  [data-mode='polished'] .facts__row {
    padding-block: var(--space-4);
  }

  [data-mode='polished'] .facts__row + .facts__row {
    border-top: 0;
    border-left: 1px solid var(--border);
    padding-left: var(--space-5);
  }
}

[data-mode='polished'] .facts__row {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  padding-block: var(--space-3);
}

[data-mode='polished'] .facts__row + .facts__row {
  border-top: 1px solid var(--border);
}

[data-mode='polished'] .facts dt {
  color: var(--muted);
  font: 600 0.72rem/1.4 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-mode='polished'] .facts dd {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Work ------------------------------------------------------------ */
[data-mode='polished'] .project-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  [data-mode='polished'] .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[data-mode='polished'] .project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-mode='polished'] .project-card:hover,
[data-mode='polished'] .project-card:target {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

[data-mode='polished'] .project-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

[data-mode='polished'] .project-card__media--art {
  display: grid;
  place-items: center;
  aspect-ratio: 21 / 7;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2));
}

[data-mode='polished'] .project-card__media--art svg {
  width: 9rem;
  height: auto;
}

[data-mode='polished'] .project-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

[data-mode='polished'] .project-card:hover .project-card__thumb {
  transform: scale(1.04);
}

[data-mode='polished'] .project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

[data-mode='polished'] .project-card__title {
  font: 600 1.4rem/1.25 var(--font-display);
  letter-spacing: -0.01em;
}

[data-mode='polished'] .project-card__summary {
  color: var(--accent);
  font: 600 0.95rem/1.4 var(--font-display);
}

[data-mode='polished'] .project-card__desc {
  color: var(--muted);
}

[data-mode='polished'] .project-card .chips {
  margin-top: auto;
}

[data-mode='polished'] .project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ---------- AI image & video ------------------------------------------------ */
[data-mode='polished'] .ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 520px) {
  [data-mode='polished'] .ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  [data-mode='polished'] .ai-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  [data-mode='polished'] .ai-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

[data-mode='polished'] .ai-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

[data-mode='polished'] .ai-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

[data-mode='polished'] .ai-card__media {
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  overflow: hidden;
}

[data-mode='polished'] .ai-card__img,
[data-mode='polished'] .ai-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-2);
}

[data-mode='polished'] .ai-card__body {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-5);
}

[data-mode='polished'] .ai-card__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font: 600 1.1rem/1.3 var(--font-display);
}

[data-mode='polished'] .ai-card__tag {
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 0.7rem/1.6 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-mode='polished'] .ai-card__caption {
  color: var(--muted);
  font-size: 0.95rem;
}

[data-mode='polished'] .ai-card__tools {
  font-size: 0.85rem;
  font-weight: 600;
}

[data-mode='polished'] .ai-card__tools-key {
  color: var(--muted);
  font-weight: 400;
}

[data-mode='polished'] .ai__more {
  margin-top: var(--space-6);
}

/* ---------- Stack ----------------------------------------------------------- */
[data-mode='polished'] .stack__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 760px) {
  [data-mode='polished'] .stack__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-8);
  }
}

[data-mode='polished'] .stack__label {
  margin-bottom: var(--space-3);
  color: var(--muted);
  font: 600 0.75rem/1.4 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Approach -------------------------------------------------------- */
[data-mode='polished'] .approach__grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 860px) {
  [data-mode='polished'] .approach__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

[data-mode='polished'] .approach__item {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
}

[data-mode='polished'] .approach__n {
  color: var(--accent);
  font: 600 1.1rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

[data-mode='polished'] .approach__title {
  font: 600 1.25rem/1.3 var(--font-display);
}

[data-mode='polished'] .approach__item p:not(.approach__n) {
  color: var(--muted);
}

/* ---------- Experience ------------------------------------------------------ */
[data-mode='polished'] .timeline {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding-left: var(--space-6);
  max-width: 48rem;
}

[data-mode='polished'] .timeline::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border-strong);
  opacity: 0.5;
}

[data-mode='polished'] .role {
  padding: var(--space-5);
}

[data-mode='polished'] .role::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-6) - 1px + 0.05rem);
  top: 1.85rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: background-color 0.25s ease;
}

[data-mode='polished'] .role:hover,
[data-mode='polished'] .role:target {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

[data-mode='polished'] .role:hover::before {
  background: var(--accent);
}

[data-mode='polished'] .role__title {
  font: 600 1.25rem/1.3 var(--font-display);
}

[data-mode='polished'] .role__org {
  color: var(--accent);
  font: 600 1rem/1.4 var(--font-display);
}

[data-mode='polished'] .role__points {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--muted);
}

[data-mode='polished'] .role__points li {
  position: relative;
  padding-left: var(--space-4);
}

[data-mode='polished'] .role__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 2px;
  background: var(--accent);
}

/* ---------- Contact --------------------------------------------------------- */
[data-mode='polished'] .contact__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(var(--space-6), 6vw, var(--space-8));
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--sky-1), var(--sky-2));
  color: var(--on-sky);
  box-shadow: var(--shadow-lift);
}

[data-mode='polished'] .contact__panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -4rem;
  bottom: -5rem;
  width: 22rem;
  height: 16rem;
  background: rgba(255, 255, 255, 0.14);
  clip-path: polygon(0 100%, 30% 35%, 52% 70%, 76% 10%, 100% 100%);
}

[data-mode='polished'] .contact .section-title {
  max-width: 16em;
}

[data-mode='polished'] .contact .section-lead {
  color: var(--on-sky-muted);
  margin-bottom: var(--space-6);
}

[data-mode='polished'] .contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

[data-mode='polished'] .contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

/* ---------- Footer ---------------------------------------------------------- */
[data-mode='polished'] .site-footer {
  padding-block: var(--space-6);
  color: var(--muted);
  font-size: 0.9rem;
}

[data-mode='polished'] .site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

[data-mode='polished'] .site-footer__top {
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

[data-mode='polished'] .skip-link {
  background: #ffffff;
  color: var(--sky-1);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
}
