:root {
  --page: #121313;
  --surface: #1a1b1a;
  --surface-soft: #20211f;
  --line: rgba(241, 237, 225, 0.16);
  --line-strong: rgba(241, 237, 225, 0.31);
  --text: #f1ede1;
  --muted: #b3b1a9;
  --accent: #a56cb8;
  --accent-deep: #8c559e;
  --font-display: "Manrope", Arial, sans-serif;
  --font-mono: "DM Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 79% 18%, rgba(165, 108, 184, 0.08), transparent 24rem),
    var(--page);
  font-family: var(--font-display);
}

body.has-open-modal {
  overflow: hidden;
}

.site-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.capabilities {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(36px, 4vw, 52px) 0 clamp(72px, 10vw, 132px);
}

.section-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  position: relative;
  left: 5px;
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.language-switcher a,
.language-switcher__active {
  display: block;
  padding: 6px 7px;
  color: var(--muted);
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: var(--text);
  outline: none;
}

.language-switcher__active {
  color: var(--text);
  background: rgba(165, 108, 184, 0.22);
}

.hero {
  display: flex;
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  padding-top: clamp(34px, 5vw, 58px);
}

.hero-photo {
  width: 170px;
  height: 170px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(165, 108, 184, 0.6);
  border-radius: 50%;
}

.hero-content {
  max-width: 640px;
}

.hero-name {
  margin-bottom: 5px;
  font-size: clamp(2.5rem, 4.8vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-label {
  margin-bottom: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-bio {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.intro {
  max-width: 1080px;
  padding: clamp(32px, 4vw, 48px) 0 clamp(28px, 3vw, 42px);
}

h1,
h2,
p {
  margin-top: 0;
}

.capabilities-heading {
  max-width: 1060px;
  margin-bottom: 24px;
  font-size: clamp(1.25rem, 4.7vw, 4.1rem);
  font-weight: 600;
  /* Give the display type room to breathe across the available width. */
  letter-spacing: 0;
  word-spacing: 0.1em;
  line-height: 0.98;
}

.heading-line {
  display: block;
  white-space: nowrap;
}

.capabilities-heading em {
  color: var(--accent);
  font-style: normal;
  letter-spacing: -0.025em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

/* Keep the grid edge on the four cards only, so it does not continue beside the support panel. */
.skill-card--visual {
  border-left: 1px solid var(--line);
}

.skill-card {
  position: relative;
  min-height: 350px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 72px auto;
  align-content: start;
  row-gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.018);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease, transform 180ms ease, min-height 260ms ease;
}

.skill-card:hover {
  background: var(--surface-soft);
  transform: translateY(-4px);
}

.card-index {
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.expand-button {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
  align-self: start;
  display: block;
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.icon-zone {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  width: 100%;
  height: 72px;
  justify-content: center;
  align-items: flex-end;
}

.skill-icon,
.icon-zone > svg {
  width: clamp(82px, 8.5vw, 104px);
  height: clamp(82px, 8.5vw, 104px);
  color: rgba(165, 108, 184, 0.78);
  display: block;
}

.card-content {
  grid-row: 3;
  grid-column: 1;
  transform: translateY(-20px);
}

.skill-card h2,
.website-support h2 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.skill-card p,
.website-support p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.62;
}

.expand-instruction {
  margin: 14px 0 0;
  color: rgba(241, 237, 225, 0.7);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.025em;
}

.continuation-chevron {
  position: absolute;
  bottom: 16px;
  left: 50%;
  display: block;
  width: 16px;
  height: 10px;
  color: rgba(165, 108, 184, 0.72);
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(-50%);
}

.detail-list {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 12px;
}

.detail-list li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.website-support {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 24px;
  padding: 24px 28px;
  background: rgba(165, 108, 184, 0.50);
  border: 1px solid rgba(165, 108, 184, 0.25);
  color: var(--text);
  transition: background-color 180ms ease, transform 180ms ease, min-height 260ms ease;
}

.website-support .continuation-chevron {
  bottom: 7px;
  color: rgba(241, 237, 225, 0.72);
}

.support-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(241, 237, 225, 0.42);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.website-support h2 {
  margin-bottom: 7px;
}

.website-support p {
  max-width: 930px;
  color: rgba(241, 237, 225, 0.8);
}

@media (max-width: 950px) {
  .hero-bio-break {
    display: none;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-card--marketing {
    border-left: 1px solid var(--line);
  }

  .skill-card {
    min-height: 430px;
  }

}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 40px, 1180px);
  }

  .capabilities {
    align-items: start;
    padding: 36px 0 48px;
  }

  .section-topline {
    padding-bottom: 18px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 34px;
  }

  .hero-photo {
    width: 128px;
    height: 128px;
  }

  .intro {
    padding: 44px 0 40px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 410px;
    border-left: 1px solid var(--line);
  }


  .website-support {
    gap: 14px;
    margin-top: 16px;
    padding: 22px;
  }
}

/* PT-BR cards receive one additional line of breathing room without changing
   the shared EN layout or the separate Landing Pages support panel. */
html[lang="pt-BR"] .skill-card {
  min-height: 374px;
}

@media (max-width: 950px) {
  html[lang="pt-BR"] .skill-card {
    min-height: 454px;
  }
}

@media (max-width: 560px) {
  html[lang="pt-BR"] .skill-card {
    min-height: 434px;
  }
}

@media (min-width: 901px) {
  html[lang="pt-BR"] .skill-card {
    height: 434px;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  html[lang="pt-BR"] .skill-card {
    height: 454px;
  }
}

@media (min-width: 561px) and (max-width: 950px) {
  html[lang="pt-BR"] .skill-card {
    min-height: 454px;
  }
}

@media (min-width: 951px) and (max-width: 1050px) {
  html[lang="pt-BR"] .skill-card--visual {
    padding-left: 22px;
    padding-right: 16px;
  }

  html[lang="pt-BR"] .skill-card--marketing {
    padding-right: 21px;
  }

  html[lang="pt-BR"] .skill-card--writing {
    padding-right: 21px;
  }

  html[lang="pt-BR"] .skill-card--data {
    padding-left: 22px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Optical alignment: SVG drawings have different visible bounds within their viewBoxes. */
.skill-card--writing {
  --icon-optical-offset-y: -29px;
}

.skill-card--visual {
  --icon-optical-offset-y: -24px;
}

.skill-card--marketing {
  --icon-optical-offset-y: -24px;
}

.skill-card--data {
  --icon-optical-offset-y: -27px;
}

.icon-zone > svg {
  transform: translateY(var(--icon-optical-offset-y, 0px));
}

.skill-card--writing h2,
.skill-card--data h2 {
  transform: translateY(-1px);
}

.skill-card--writing .icon-zone > svg {
  transform: translateY(calc(var(--icon-optical-offset-y, 0px) + 10px));
}

.skill-card--visual .icon-zone > svg,
.skill-card--marketing .icon-zone > svg {
  transform: translateY(calc(var(--icon-optical-offset-y, 0px) + 7px));
}

.skill-card--data .icon-zone > svg {
  transform: translateY(calc(var(--icon-optical-offset-y, 0px) + 10px));
}

@media (min-width: 901px) {
  .capabilities {
    padding-bottom: calc(clamp(72px, 10vw, 132px) - 38px);
  }

  .skill-card {
    min-height: 0;
    height: 410px;
  }

  .skill-card h2 {
    min-height: 44px;
  }

  .skill-card .card-content > p {
    min-height: 71px;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .capabilities {
    padding-bottom: calc(clamp(72px, 10vw, 132px) - 58px);
  }

  .skill-card {
    height: 430px;
  }

  .title-second-line {
    display: block;
  }

  .website-support .continuation-chevron {
    bottom: 14px;
    color: rgba(241, 237, 225, 0.72);
  }

  .website-support {
    padding-bottom: 35px;
  }
}

/* Expandable proof areas */
.website-support {
  grid-column: 1 / -1;
}

.skill-card:hover {
  background: var(--surface-soft);
  transform: translateY(-4px);
}

.website-support:hover {
  background: rgba(165, 108, 184, 0.58);
  transform: translateY(-4px);
}

.expandable-card:focus-visible {
  z-index: 1;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.proof-area {
  display: none;
}

.skills-grid.is-expanded > .expandable-card.is-active {
  position: relative;
  z-index: 2;
  grid-row: 1;
  grid-column: 2 / span 2;
  height: auto;
  min-height: 0;
  cursor: pointer;
}

.skills-grid.is-expanded {
  border-top-color: transparent;
  border-left-color: transparent;
}

.skills-grid.is-expanded > .expandable-card:not(.is-active) {
  grid-row: 3;
}

.skills-grid.is-expanded > .website-support:not(.is-active) {
  grid-row: 4;
  grid-column: 1 / -1;
}

.skills-grid.is-expanded > .proof-area.is-active {
  position: relative;
  z-index: 1;
  display: block;
  grid-row: 2;
  grid-column: 1 / -1;
  width: 100%;
  margin: 28px 0 12px;
}

.website-support.is-active {
  grid-template-columns: auto minmax(0, 1fr);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: 80vh;
}

.proof-tile {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  color: rgba(241, 237, 225, 0.62);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(165, 108, 184, 0.28);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.35;
  text-align: center;
}

.proof-tile svg {
  width: 30px;
  height: 30px;
  color: rgba(165, 108, 184, 0.82);
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Writing portfolio previews */
#writing-proof .writing-proof-grid {
  height: auto;
  grid-template-rows: none;
  gap: 12px;
}

#writing-proof .writing-proof-tile {
  min-width: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  cursor: pointer;
  place-items: stretch;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

#writing-proof .writing-proof-tile:hover {
  background: var(--surface-soft);
  border-color: rgba(165, 108, 184, 0.6);
  transform: translateY(-2px);
}

#writing-proof .writing-proof-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: var(--page);
}

#writing-proof .writing-proof-tile p {
  position: relative;
  left: 0;
  margin: 0;
  padding: 10px 12px 11px 8.47%;
  color: rgba(241, 237, 225, 0.88);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

#writing-proof .writing-proof-tile:nth-child(-n + 2) p {
  padding-left: 8.47%;
}

#writing-proof .writing-proof-tile:nth-child(n + 3) p {
  padding-left: 10.76%;
}

#writing-proof .writing-proof-tile:nth-child(3) p {
  padding-left: 11.90%;
}

/* Visual Content, Marketing & Social Media, Data Analysis, and Website Support portfolio previews */
#visual-content-proof .visual-content-proof-grid,
#marketing-social-media-proof .marketing-social-media-proof-grid,
#data-spreadsheets-proof .data-analysis-proof-grid,
#website-landing-page-support-proof .website-support-proof-grid {
  height: auto;
  grid-template-rows: none;
  gap: 12px;
}

#visual-content-proof .visual-content-proof-tile,
#marketing-social-media-proof .marketing-social-media-proof-tile,
#data-spreadsheets-proof .data-analysis-proof-tile,
#website-landing-page-support-proof .website-support-proof-tile {
  min-width: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  cursor: pointer;
  place-items: stretch;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

#visual-content-proof .visual-content-proof-tile:hover,
#marketing-social-media-proof .marketing-social-media-proof-tile:hover,
#data-spreadsheets-proof .data-analysis-proof-tile:hover,
#website-landing-page-support-proof .website-support-proof-tile:hover {
  background: var(--surface-soft);
  border-color: rgba(165, 108, 184, 0.6);
  transform: translateY(-2px);
}

#visual-content-proof .visual-content-proof-tile img,
#marketing-social-media-proof .marketing-social-media-proof-tile img,
#data-spreadsheets-proof .data-analysis-proof-tile img,
#website-landing-page-support-proof .website-support-proof-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: var(--page);
}

#visual-content-proof .visual-content-proof-tile p,
#marketing-social-media-proof .marketing-social-media-proof-tile p,
#data-spreadsheets-proof .data-analysis-proof-tile p,
#website-landing-page-support-proof .website-support-proof-tile p {
  position: relative;
  left: 0;
  margin: 0;
  padding: 10px 12px 11px 0;
  color: rgba(241, 237, 225, 0.88);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

#visual-content-proof .visual-content-proof-tile:nth-child(odd) p {
  /* Matches the current caption start at a ~437px tile width. */
  padding-left: 16.48%;
}

#visual-content-proof .visual-content-proof-tile:nth-child(even) p {
  /* Matches the current caption start at a ~437px tile width. */
  padding-left: 15.33%;
}

.proof-detail-instruction {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: rgba(241, 237, 225, 0.7);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.025em;
  text-align: center;
}

.proof-detail-instruction__arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  animation: proof-arrow-pulse 1.8s ease-in-out infinite;
}

@keyframes proof-arrow-pulse {
  50% {
    transform: translateY(-4px);
  }
}

.subskill-modal[hidden] {
  display: none;
}

.subskill-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
}

.subskill-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 8, 0.72);
}

.subskill-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(860px, calc(100svh - 64px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 52px);
  background: var(--surface);
  border: 1px solid rgba(165, 108, 184, 0.48);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  outline: none;
}

.subskill-modal__dialog {
  scrollbar-color: rgba(165, 108, 184, 0.76) #101111;
  scrollbar-width: thin;
}

.subskill-modal__dialog::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.subskill-modal__dialog::-webkit-scrollbar-track {
  background: #101111;
}

.subskill-modal__dialog::-webkit-scrollbar-thumb {
  background: rgba(165, 108, 184, 0.76);
  border: 2px solid #101111;
  border-radius: 999px;
}

.subskill-modal__dialog::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.subskill-modal__close {
  position: sticky;
  z-index: 1;
  top: -16px;
  float: right;
  display: grid;
  width: 34px;
  height: 34px;
  margin: -16px -16px 12px 16px;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.subskill-modal__close:hover,
.subskill-modal__close:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.subskill-modal__content h2 {
  max-width: 760px;
  margin: 0 48px 16px 0;
  font-size: clamp(1.7rem, 3.6vw, 2.65rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.subskill-modal__intro {
  max-width: 750px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.subskill-modal__section + .subskill-modal__section {
  margin-top: 42px;
}

.subskill-modal__section img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.image-zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.image-zoom-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.image-zoom-trigger:disabled {
  cursor: default;
}

.image-zoom-trigger:disabled .image-zoom-trigger__icon {
  display: none;
}

.image-zoom-stage,
.image-lightbox__media {
  position: relative;
}

.image-zoom-stage {
  width: 100%;
}

.video-hotspot,
.embedded-video-player {
  position: absolute;
  left: var(--hotspot-left);
  top: var(--hotspot-top);
  width: var(--hotspot-width);
  height: var(--hotspot-height);
}

.video-hotspot {
  z-index: 2;
  display: grid;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: rgba(18, 19, 19, 0.2);
  border: 2px solid transparent;
  cursor: pointer;
}

.video-hotspot:hover,
.video-hotspot:focus-visible {
  background: rgba(18, 19, 19, 0.32);
  border-color: var(--accent);
  outline: none;
}

.video-hotspot__icon {
  display: grid;
  width: clamp(30px, 3.4vw, 48px);
  height: clamp(30px, 3.4vw, 48px);
  place-items: center;
  background: rgba(165, 108, 184, 0.94);
  border: 1px solid rgba(241, 237, 225, 0.84);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
}

.video-hotspot__icon::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  content: "";
}

.video-hotspot__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.embedded-video-player {
  z-index: 3;
  overflow: hidden;
  background: #101111;
}

.embedded-video-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.embedded-video-player__close {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: rgba(18, 19, 19, 0.88);
  border: 1px solid rgba(165, 108, 184, 0.9);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.embedded-video-player__close:hover,
.embedded-video-player__close:focus-visible {
  color: var(--accent);
  border-color: var(--text);
  outline: none;
}

.image-zoom-trigger__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--accent);
  background: rgba(18, 19, 19, 0.84);
  border: 1px solid rgba(165, 108, 184, 0.64);
  border-radius: 50%;
  opacity: 0.9;
  transform: scale(0.92);
  transition: opacity 160ms ease, transform 160ms ease;
}

.image-zoom-trigger__icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@media (hover: hover) and (pointer: fine) {
  .image-zoom-trigger__icon {
    opacity: 0;
  }

  .image-zoom-trigger:hover .image-zoom-trigger__icon,
  .image-zoom-trigger:focus-visible .image-zoom-trigger__icon {
    opacity: 1;
    transform: scale(1);
  }
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4px;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 6, 0.88);
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: fit-content;
  max-width: calc(100vw - 8px);
  max-height: calc(100svh - 8px);
  overflow: auto;
  padding: 0;
  background: #101111;
  border: 1px solid rgba(165, 108, 184, 0.48);
  outline: none;
  scrollbar-color: rgba(165, 108, 184, 0.76) #101111;
  scrollbar-width: thin;
}

.image-lightbox__image {
  display: block;
  width: auto;
  max-width: calc(100vw - 10px);
  height: auto;
  max-height: calc(100svh - 10px);
  margin: 0 auto;
  object-fit: contain;
}

.image-lightbox__media {
  width: fit-content;
  max-width: calc(100vw - 10px);
}


.image-lightbox__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: rgba(32, 33, 31, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.image-lightbox__dialog::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.image-lightbox__dialog::-webkit-scrollbar-track {
  background: #101111;
}

.image-lightbox__dialog::-webkit-scrollbar-thumb {
  background: rgba(165, 108, 184, 0.76);
  border: 2px solid #101111;
  border-radius: 999px;
}


.subskill-modal__section h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.subskill-modal__section p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.subskill-modal__project + .subskill-modal__project {
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.subskill-modal__project h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.subskill-modal__project > p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.subskill-modal__project-link a {
  color: var(--text);
  text-decoration-color: rgba(165, 108, 184, 0.7);
  text-underline-offset: 0.18em;
}

.subskill-modal__article {
  max-width: 760px;
}

.subskill-modal__article-cover {
  margin: 0 0 24px;
}

.subskill-modal__article-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
}

.subskill-modal__article h1 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.subskill-modal__article h3 {
  margin: 36px 0 10px;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.subskill-modal__article p,
.subskill-modal__article li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.subskill-modal__article p {
  margin: 0 0 18px;
}

.subskill-modal__article ol,
.subskill-modal__article ul {
  margin: 0 0 22px;
  padding-left: 1.35rem;
}

.subskill-modal__article li + li {
  margin-top: 6px;
}

.subskill-modal__article a {
  color: var(--text);
  text-decoration-color: rgba(165, 108, 184, 0.7);
  text-underline-offset: 0.18em;
}

.subskill-modal__image-item {
  margin: 26px 0 0;
}

.subskill-modal__image-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
}

.subskill-modal__image-item figcaption {
  margin-top: 10px;
  color: rgba(241, 237, 225, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
}

.subskill-modal__project-video {
  width: 100%;
  aspect-ratio: var(--project-video-aspect-ratio);
  margin-top: 26px;
  overflow: hidden;
  background: #101111;
  border: 1px solid var(--line);
}

.subskill-modal__project-video[data-video-aspect-ratio="4 / 5"] {
  width: min(100%, 560px);
  margin-right: auto;
  margin-left: auto;
}

.subskill-modal__project-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.subskill-modal__article .subskill-modal__image-item--caption-spaced {
  margin-bottom: 16px;
}

.subskill-modal__image-item--reference {
  padding: 14px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(165, 108, 184, 0.3);
}

.subskill-modal__image-item--reference img {
  border-color: var(--line-strong);
}

.subskill-modal__reference-label {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.subskill-modal__source-attribution,
.subskill-modal__cross-reference,
.subskill-modal__closing-note {
  margin: 9px 0 0;
  color: rgba(241, 237, 225, 0.66);
  font-size: 0.8rem;
  line-height: 1.55;
}

.subskill-modal__source-attribution a {
  color: var(--text);
  text-decoration-color: rgba(165, 108, 184, 0.7);
  text-underline-offset: 0.18em;
}

.subskill-modal__cross-reference {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 1px solid rgba(165, 108, 184, 0.55);
}

.subskill-modal__closing-note {
  font-size: 0.9rem;
  font-style: italic;
}

/* Keep the instruction visually distinct from the caption above it. */
.subskill-modal__project > .subskill-modal__image-item + .subskill-modal__closing-note {
  margin-top: 14px;
}

.subskill-modal__cross-reference strong {
  color: var(--text);
  font-weight: 700;
}

#marketing-social-media-proof .marketing-social-media-proof-tile:nth-child(1) p {
  padding-left: 12.36%;
}

#marketing-social-media-proof .marketing-social-media-proof-tile:nth-child(2) p {
  padding-left: 12.88%;
}

#marketing-social-media-proof .marketing-social-media-proof-tile:nth-child(3) p {
  padding-left: 13.25%;
}

#marketing-social-media-proof .marketing-social-media-proof-tile:nth-child(4) p {
  padding-left: 13.35%;
}

#data-spreadsheets-proof .data-analysis-proof-tile p {
  padding-left: 12.36%;
}

#data-spreadsheets-proof .data-analysis-proof-tile:nth-child(1) p {
  padding-left: 13.596%;
}

#data-spreadsheets-proof .data-analysis-proof-tile:nth-child(2) p,
#data-spreadsheets-proof .data-analysis-proof-tile:nth-child(3) p {
  padding-left: 14.832%;
}

#website-landing-page-support-proof .website-support-proof-tile p {
  padding-left: 12.36%;
}

#website-landing-page-support-proof .website-support-proof-tile:nth-child(3) p {
  padding-left: 18.54%;
}

@media (max-width: 950px) {
  .skills-grid.is-expanded > .expandable-card.is-active {
    grid-column: 1 / -1;
    width: calc(100vw - 64px);
    justify-self: stretch;
  }

  .skills-grid.is-expanded > .proof-area.is-active {
    /* The tablet grid has exactly two tracks. Use an explicit span here:
       the negative grid line was collapsing this panel to its first track. */
    grid-column: 1 / span 2;
    justify-self: stretch;
    width: calc(100vw - 64px);
  }

  /* Let the three remaining skill cards wrap across the two-column grid. */
  .skills-grid.is-expanded > .expandable-card:not(.is-active):not(.website-support) {
    grid-row: auto;
  }

  .skills-grid.is-expanded > .website-support:not(.is-active) {
    grid-row: 5;
  }

  .proof-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* At narrow desktop widths the four primary skills move to two tracks before
   their copy becomes constrained. Cards remain content-led rather than fixed. */
@media (min-width: 561px) and (max-width: 950px) {
  .skill-card {
    height: auto;
    min-height: 430px;
  }

  .skill-card h2,
  .skill-card .card-content > p {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .skills-grid.is-expanded > .expandable-card.is-active,
  .skills-grid.is-expanded > .website-support:not(.is-active) {
    grid-column: 1;
  }

  .skills-grid.is-expanded > .expandable-card.is-active {
    width: calc(100vw - 40px);
  }

  .skills-grid.is-expanded > .website-support:not(.is-active) {
    grid-row: auto;
  }

  /* The proof panel must keep spanning the grid; otherwise it collapses into
     the first column on phones and leaves an empty column to its right. */
  .skills-grid.is-expanded > .proof-area.is-active {
    grid-column: 1;
    width: calc(100vw - 40px);
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(110px, 1fr));
    height: auto;
  }

  #writing-proof .writing-proof-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  #visual-content-proof .visual-content-proof-grid,
  #marketing-social-media-proof .marketing-social-media-proof-grid,
  #data-spreadsheets-proof .data-analysis-proof-grid,
  #website-landing-page-support-proof .website-support-proof-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .subskill-modal {
    padding: 12px;
  }

  .subskill-modal__dialog {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 28px 22px 32px;
  }

  .subskill-modal__close {
    top: -10px;
    margin: -10px -8px 10px 12px;
  }

  .subskill-modal__content h2 {
    margin-right: 40px;
    font-size: clamp(1rem, 5.4vw, 1.65rem);
  }

  .subskill-modal__intro {
    margin-bottom: 28px;
  }

  .subskill-modal__section + .subskill-modal__section {
    margin-top: 32px;
  }

  .image-lightbox {
    padding: 4px;
  }

  .image-lightbox__dialog {
    max-height: calc(100svh - 8px);
    padding: 0;
  }

  .image-lightbox__image {
    max-height: calc(100svh - 10px);
  }

  .image-zoom-trigger__icon {
    top: 10px;
    right: 10px;
  }
}
