/* ==========================================================================
   PORTFÓLIO DE ALEXANDRE GARCIA PERES
   Edite este arquivo diretamente. Não existe etapa de compilação.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

button,
input {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.noscript-message {
  position: fixed;
  z-index: 1000;
  right: 15px;
  bottom: 15px;
  max-width: 420px;
  margin: 0;
  padding: 14px 17px;
  border-radius: 12px;
  background: #171715;
  color: white;
  font-size: 13px;
}

:root {
  --ink: #171715;
  --forest: #0b2f2b;
  --forest-soft: #143d38;
  --cream: #f5f0e5;
  --cream-deep: #e9e1d1;
  --paper: #fffdf8;
  --coral: #ff654f;
  --butter: #ffe398;
  --violet: #c8bdf1;
  --muted: #6c6a64;
  --line: rgba(23, 23, 21, 0.16);
  --light-line: rgba(255, 255, 255, 0.15);
  --max: 1240px;
}

/* Portfolio v4: refinements requested after the published review */

.section-label {
  gap: 20px;
}

.hero-ticker > .ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker-loop-v4 34s linear infinite;
  transform: translateZ(0);
  will-change: transform;
}

.hero-ticker .ticker-group {
  display: flex;
  min-width: max-content;
  flex: none;
  align-items: center;
}

.hero-ticker .ticker-item {
  display: flex;
  padding: 0;
  flex: none;
  align-items: center;
}

.hero-ticker .ticker-item > span {
  padding-inline: 26px;
}

.hero-ticker .ticker-item > b {
  padding: 0 5px;
}

@keyframes ticker-loop-v4 {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.333333%, 0, 0);
  }
}

.tag-content {
  top: 332px;
  left: -46px;
  background: var(--coral);
  transform: rotate(3deg);
}

.skills-grid {
  perspective: 1400px;
}

.skill-flip-card {
  position: relative;
  display: block;
  min-width: 0;
  height: 310px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
  text-align: left;
}

.skill-flip-card:focus-visible {
  border-radius: 22px;
}

.skill-flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.skill-flip-card.is-flipped .skill-flip-inner {
  transform: rotateY(180deg);
}

.skill-face {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 35px rgba(23, 23, 21, 0.06);
}

.skill-front {
  background: var(--paper);
}

.skill-flip-card:nth-child(2) .skill-front {
  background: var(--butter);
}

.skill-flip-card:nth-child(3) .skill-front {
  background: var(--violet);
}

.skill-flip-card:nth-child(4) .skill-front {
  background: var(--coral);
}

.skill-back {
  background: var(--forest);
  color: white;
  transform: rotateY(180deg);
}

.skill-flip-card:nth-child(2) .skill-back {
  background: var(--ink);
}

.skill-flip-card:nth-child(3) .skill-back {
  background: #443768;
}

.skill-flip-card:nth-child(4) .skill-back {
  background: #bd3d2e;
}

.skill-number {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 11px;
  font-weight: 850;
  opacity: 0.52;
}

.skill-action {
  display: inline-flex;
  margin-bottom: auto;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.68;
}

.skill-action i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  font-style: normal;
}

.skill-front > strong {
  max-width: 360px;
  margin: 30px 0 24px;
  font-size: clamp(30px, 3.2vw, 43px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.skill-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.skill-pills small {
  padding: 7px 10px;
  border: 1px solid rgba(23, 23, 21, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.skill-back > small {
  margin: 27px 0 13px;
  color: var(--butter);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-back > strong {
  max-width: 510px;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.skill-back > span:last-child {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.55;
}

.skills-hint {
  display: flex;
  margin-top: 15px;
  padding: 14px 17px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(23, 23, 21, 0.28);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.skills-hint > span {
  font-size: 19px;
}

.skills-hint p {
  margin: 0;
  font-size: 11px;
}

.solo-sites-section {
  overflow: hidden;
  border-top: 3px solid var(--forest);
  background: var(--paper);
}

.solo-sites-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  gap: clamp(45px, 8vw, 110px);
  align-items: end;
}

.solo-sites-intro h2 {
  margin: 0;
  font-size: clamp(48px, 6.4vw, 86px);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.solo-sites-intro h2 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.solo-sites-intro > div:last-child {
  padding-bottom: 6px;
}

.solo-sites-intro > div:last-child strong {
  display: block;
  margin-bottom: 14px;
  color: var(--forest);
  font-size: 13px;
}

.solo-sites-intro > div:last-child p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.solo-sites-grid {
  display: grid;
  margin-top: 70px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.solo-site-card {
  display: grid;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--cream);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.solo-site-card:hover {
  box-shadow: 0 24px 54px rgba(11, 47, 43, 0.13);
  transform: translateY(-5px);
}

.solo-browser {
  overflow: hidden;
  border: 1px solid rgba(23, 23, 21, 0.18);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 13px 28px rgba(23, 23, 21, 0.1);
}

.solo-browser-bar {
  display: flex;
  min-height: 36px;
  padding: 7px 10px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(23, 23, 21, 0.14);
  background: rgba(255, 255, 255, 0.56);
}

.solo-browser-bar > span {
  display: flex;
  gap: 4px;
}

.solo-browser-bar i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.34;
}

.solo-browser-bar small {
  overflow: hidden;
  color: rgba(23, 23, 21, 0.57);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-browser-page {
  position: relative;
  display: flex;
  min-height: 285px;
  padding: clamp(28px, 4.6vw, 62px);
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--forest);
  background-size: 36px 36px;
  color: white;
}

.solo-browser-page > span {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 11px;
  font-weight: 850;
  opacity: 0.55;
}

.solo-browser-page > strong {
  max-width: 470px;
  font-size: clamp(28px, 3.7vw, 48px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.solo-browser-page > i {
  align-self: flex-start;
  margin-top: 30px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.solo-communica .solo-browser-page {
  background-color: #101f45;
}

.solo-academic .solo-browser-page {
  background-color: #6c274f;
}

.solo-vina .solo-browser-page {
  background-color: #ec522f;
}

.solo-site-copy {
  display: grid;
  padding: 23px 12px 12px;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
}

.solo-site-copy > div:first-child > small {
  color: var(--coral);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solo-site-copy h3 {
  margin: 3px 0 0;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.solo-site-copy > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.solo-site-copy > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.solo-site-copy > div:last-child {
  display: flex;
  grid-column: 1 / -1;
  gap: 7px;
  flex-wrap: wrap;
}

.solo-site-copy > div:last-child small {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}

.portfolio-shelf {
  min-height: 535px;
}

.portfolio-modal-backdrop {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(9, 20, 18, 0.84);
  backdrop-filter: blur(12px);
}

.portfolio-modal {
  display: flex;
  width: min(1420px, 100%);
  max-height: calc(100svh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  flex-direction: column;
}

.portfolio-modal > header {
  display: flex;
  min-height: 94px;
  padding: 20px 25px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--forest);
  color: white;
}

.portfolio-modal > header span {
  display: block;
  color: var(--butter);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-modal > header h2 {
  margin: 4px 0 0;
  font-size: clamp(27px, 3vw, 43px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.portfolio-modal > header button {
  min-height: 42px;
  padding-inline: 15px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.portfolio-modal > header button:hover {
  background: var(--coral);
  color: var(--ink);
}

.portfolio-modal-content {
  padding: 0 25px 27px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.portfolio-modal .detail-gallery {
  padding-bottom: 20px;
}

.portfolio-modal .detail-page {
  width: min(72vw, 710px);
  height: min(650px, 66vh);
}

.portfolio-modal .detail-image {
  max-height: none;
}

.portfolio-modal .detail-image img {
  max-height: none;
}

.portfolio-modal .script-reader {
  margin-bottom: 5px;
}

.case-section {
  position: relative;
  overflow: hidden;
  border-top: 16px solid var(--coral);
  background:
    radial-gradient(circle at 88% 5%, rgba(200, 189, 241, 0.16), transparent 30%),
    var(--ink);
  color: white;
}

.case-section::before {
  position: absolute;
  top: 110px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 120px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
}

.case-chapter {
  position: relative;
  z-index: 2;
  display: grid;
  margin-bottom: clamp(75px, 10vw, 130px);
  padding-bottom: 25px;
  grid-template-columns: 1fr auto;
  gap: 7px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.case-chapter > span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-chapter > strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--butter);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(66px, 9vw, 124px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.7;
}

.case-chapter > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 13px;
}

.case-title {
  position: relative;
  z-index: 2;
}

.case-title h2 {
  color: white;
}

.case-title h2 span {
  color: var(--coral);
}

.case-title > div > p {
  color: rgba(255, 255, 255, 0.62);
}

.case-framing article {
  background: var(--coral);
  color: var(--ink);
}

.case-framing article:nth-child(2) {
  background: var(--butter);
}

.case-framing article > span,
.case-framing article:nth-child(2) > span {
  color: var(--forest);
}

.case-framing article p,
.case-framing article:nth-child(2) p {
  color: rgba(23, 23, 21, 0.7);
}

.case-comparison-grid {
  padding: clamp(25px, 4vw, 55px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  background: var(--paper);
  color: var(--ink);
}

.comparison-after {
  z-index: 1;
  border-right: 0;
}

.comparison-before {
  z-index: 2;
  overflow: hidden;
  border-right: 2px solid white;
}

.comparison-handle,
.comparison-label,
.comparison-stage input {
  z-index: 4;
}

.case-results article:nth-child(3) {
  background: var(--violet);
  color: var(--ink);
}

.case-results article:nth-child(3) > span,
.case-results article:nth-child(3) p {
  color: rgba(23, 23, 21, 0.62);
}

.education-primary {
  padding-left: 27px !important;
}

@media (max-width: 1040px) {
  .tag-content {
    left: -8px;
  }

  .solo-browser-page {
    min-height: 250px;
  }
}

@media (max-width: 820px) {
  .solo-sites-intro,
  .solo-sites-grid {
    grid-template-columns: 1fr;
  }

  .solo-sites-intro {
    gap: 30px;
  }

  .portfolio-shelf {
    min-height: 0;
  }

  .case-title {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section-label {
    gap: 18px;
  }

  .tag-content {
    top: 245px;
    left: 0;
  }

  .skill-flip-card {
    height: 300px;
  }

  .skill-face {
    padding: 22px;
  }

  .skill-front > strong {
    margin-top: 27px;
    font-size: 31px;
  }

  .solo-sites-grid {
    margin-top: 45px;
  }

  .solo-browser-page {
    min-height: 235px;
    padding: 31px;
  }

  .solo-site-copy {
    padding-inline: 7px;
  }

  .portfolio-modal-backdrop {
    padding: 0;
  }

  .portfolio-modal {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .portfolio-modal > header {
    min-height: 78px;
    padding: 14px 15px;
  }

  .portfolio-modal > header h2 {
    font-size: 25px;
  }

  .portfolio-modal-content {
    padding: 0 15px 20px;
  }

  .portfolio-modal .detail-context {
    grid-template-columns: 1fr;
  }

  .portfolio-modal .detail-page {
    width: 84vw;
    height: 62vh;
  }

  .case-chapter {
    grid-template-columns: 1fr auto;
  }

  .case-chapter > p {
    max-width: 210px;
  }

  .case-comparison-grid {
    padding: 18px;
    border-radius: 24px;
  }

  .education-primary {
    padding-left: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker > .ticker-track {
    animation-play-state: paused;
  }

  .skill-flip-inner {
    transition-duration: 0.01ms;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body,
button {
  font-family:
    "Segoe UI", Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

::selection {
  background: var(--butter);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--butter);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(92px, 10vw, 150px);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: 50%;
  display: flex;
  width: min(calc(100% - 64px), var(--max));
  min-height: 62px;
  padding: 8px 10px 8px 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(11, 47, 43, 0.96);
  box-shadow: 0 12px 35px rgba(11, 30, 28, 0.16);
  color: white;
  transform: translateX(50%);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: -0.04em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 42px);
  font-size: 13px;
  font-weight: 700;
}

.site-header nav > a:not(.nav-contact) {
  opacity: 0.76;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.site-header nav > a:not(.nav-contact):hover {
  color: var(--butter);
  opacity: 1;
}

.nav-contact {
  display: inline-flex;
  min-height: 44px;
  padding-inline: 20px;
  align-items: center;
  gap: 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.nav-contact:hover {
  background: var(--butter);
}

.hero {
  position: relative;
  min-height: 850px;
  padding-top: 118px;
  overflow: hidden;
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(23, 23, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 21, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
}

.hero-shell {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-block: 60px 90px;
}

.section-label {
  display: flex;
  margin: 0 0 24px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.section-label i {
  display: inline-block;
  width: 19px;
  height: 10px;
  border-radius: 99px 0 0 99px;
  background: var(--ink);
  box-shadow: 10px 0 0 var(--coral);
}

.section-label.light {
  color: rgba(255, 255, 255, 0.68);
}

.section-label.light i {
  background: var(--paper);
  box-shadow: 10px 0 0 var(--coral);
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(62px, 7.6vw, 110px);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.89;
}

.hero h1 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 650px;
  margin: 38px 0 0;
  color: #454640;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -0.02em;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  margin-top: 40px;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 10px 19px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 170ms ease,
    background 170ms ease,
    color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-coral {
  background: var(--coral);
  color: var(--ink);
}

.button-coral:hover {
  background: var(--forest);
  color: white;
}

.button-ghost {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

.button-ghost:hover {
  background: var(--ink);
  color: white;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  align-self: end;
  min-height: 660px;
}

.portrait-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 520px);
  aspect-ratio: 0.82;
  overflow: hidden;
  border: 10px solid var(--paper);
  border-radius: 180px 180px 24px 24px;
  background: var(--forest);
  box-shadow: 0 20px 70px rgba(11, 47, 43, 0.19);
}

.portrait-frame::before {
  position: absolute;
  z-index: 2;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 150px 150px 14px 14px;
  content: "";
  pointer-events: none;
}

.portrait-frame img,
.about-photo img {
  object-fit: cover;
}

.portrait-note {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 20px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(23, 23, 21, 0.76);
  color: white;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.floating-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  min-height: 36px;
  padding-inline: 14px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 4px 5px 0 var(--ink);
  font-size: 12px;
  font-weight: 850;
  transform: rotate(-4deg);
}

.tag-copy {
  top: 90px;
  left: -28px;
  background: var(--butter);
}

.tag-seo {
  top: 205px;
  right: -38px;
  background: var(--violet);
  transform: rotate(5deg);
}

.tag-web {
  right: -20px;
  bottom: 178px;
  background: var(--coral);
  transform: rotate(-3deg);
}

.tag-product {
  bottom: 95px;
  left: -50px;
  transform: rotate(4deg);
}

.hero-copy > * {
  animation: enter-up 640ms both;
}

.hero-copy > h1 {
  animation-delay: 80ms;
}

.hero-copy > p {
  animation-delay: 150ms;
}

.hero-copy > .hero-actions {
  animation-delay: 210ms;
}

.hero-portrait {
  animation: enter-portrait 760ms 130ms both;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes enter-portrait {
  from {
    opacity: 0;
    transform: translateY(36px) rotate(1deg);
  }
}

.hero-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border-top: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  background: var(--forest);
  color: white;
}

.hero-ticker > div {
  display: flex;
  width: max-content;
  min-height: 62px;
  align-items: center;
  animation: ticker 32s linear infinite;
}

.hero-ticker span {
  padding-inline: 32px;
  font-size: clamp(18px, 2.1vw, 27px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-ticker b {
  color: var(--coral);
  font-size: 16px;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section-intro h2,
.portfolio-intro h2,
.about-copy h2,
.case-title h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(48px, 6.4vw, 86px);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-intro h2 span,
.case-title h2 span {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.6fr);
  gap: 80px;
  align-items: end;
}

.split-intro > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.service-list {
  display: grid;
  margin-top: 70px;
  gap: 12px;
}

.service-list article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition:
    color 200ms ease,
    background 200ms ease,
    border-color 200ms ease;
}

.service-list article.open {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.service-list article > button {
  display: grid;
  width: 100%;
  min-height: 82px;
  padding: 18px 22px;
  grid-template-columns: 60px 1fr 44px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.service-list article > button > span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
}

.service-list article > button strong {
  font-size: clamp(23px, 3vw, 36px);
  letter-spacing: -0.045em;
}

.service-list article > button i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-size: 22px;
  font-style: normal;
}

.service-detail {
  display: grid;
  max-height: 0;
  padding: 0 80px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr);
  gap: 50px;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 300ms ease,
    opacity 220ms ease,
    padding 300ms ease;
}

.service-list .open .service-detail {
  max-height: 280px;
  padding-block: 4px 32px;
  opacity: 1;
}

.service-detail p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.service-detail > div {
  display: flex;
  align-content: flex-start;
  gap: 7px;
  flex-wrap: wrap;
}

.service-detail > div span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--butter);
  font-size: 11px;
  font-weight: 750;
}

.about-section {
  padding-block: clamp(90px, 11vw, 155px);
  border-top: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  background: var(--forest);
  color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(60px, 9vw, 130px);
  align-items: center;
}

.about-photo {
  position: relative;
  aspect-ratio: 0.84;
  overflow: hidden;
  border-radius: 28px 160px 28px 28px;
  background: var(--cream);
}

.about-photo::after {
  position: absolute;
  z-index: 2;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px 140px 18px 18px;
  content: "";
}

.about-photo > span {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.about-copy h2 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.about-lead {
  margin: 38px 0 24px;
  color: white;
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 630;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.about-copy > p:not(.about-lead) {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 16px;
  line-height: 1.72;
}

.button-butter {
  margin-top: 24px;
  background: var(--butter);
  color: var(--ink);
}

.button-butter:hover {
  background: var(--coral);
}

.centered {
  text-align: center;
}

.centered .section-label {
  justify-content: center;
}

.skills-grid {
  display: grid;
  margin-top: 65px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skills-grid article {
  position: relative;
  min-height: 260px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.skills-grid article:nth-child(2) {
  background: var(--butter);
}

.skills-grid article:nth-child(3) {
  background: var(--violet);
}

.skills-grid article:nth-child(4) {
  background: var(--coral);
}

.skills-grid article > span {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(23, 23, 21, 0.44);
  font-size: 12px;
  font-weight: 850;
}

.skills-grid h3 {
  max-width: 300px;
  margin: 0 0 74px;
  font-size: clamp(30px, 3.2vw, 43px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.skills-grid article > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.skills-grid small {
  padding: 7px 10px;
  border: 1px solid rgba(23, 23, 21, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.language-line {
  display: flex;
  margin-top: 16px;
  padding: 24px 26px;
  align-items: center;
  gap: 13px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--forest);
  color: white;
  flex-wrap: wrap;
}

.language-line strong {
  margin-right: auto;
  color: var(--butter);
}

.language-line span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.portfolio-section {
  overflow: hidden;
  border-top: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  background: var(--forest);
  color: white;
}

.portfolio-intro {
  margin-bottom: 80px;
}

.portfolio-intro > div {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 80px;
  align-items: end;
}

.portfolio-intro h2 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.portfolio-intro > div > p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  line-height: 1.65;
}

.portfolio-rails {
  display: grid;
  gap: 100px;
}

.portfolio-rail-section {
  width: 100%;
}

.rail-heading {
  display: grid;
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto 25px;
  grid-template-columns: minmax(310px, 0.95fr) minmax(250px, 0.8fr) auto;
  gap: 40px;
  align-items: end;
}

.rail-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.rail-heading > div:first-child > span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 850;
}

.rail-heading h3 {
  margin: 0;
  font-size: clamp(31px, 4vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.rail-heading > p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.rail-controls {
  display: flex;
  gap: 7px;
}

.rail-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.rail-controls button:hover {
  background: var(--coral);
  color: var(--ink);
  transform: translateY(-2px);
}

.portfolio-rail {
  display: flex;
  padding: 4px max(32px, calc((100vw - var(--max)) / 2)) 24px;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-left: max(32px, calc((100vw - var(--max)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--coral) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.portfolio-rail::-webkit-scrollbar {
  height: 5px;
}

.portfolio-rail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.portfolio-rail::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--coral);
}

.project-card {
  width: clamp(300px, 35vw, 450px);
  padding: 0;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
}

.project-cover {
  position: relative;
  display: block;
  aspect-ratio: 1.38;
  overflow: hidden;
  border-radius: 20px;
  background: var(--cream);
}

.project-cover::after {
  position: absolute;
  inset: 0;
  background: rgba(11, 47, 43, 0.05);
  content: "";
  transition: background 220ms ease;
}

.project-cover img {
  object-fit: cover;
  transition: transform 380ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.project-open {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.project-card:hover .project-cover img {
  transform: scale(1.035);
}

.project-card:hover .project-cover::after {
  background: rgba(11, 47, 43, 0.18);
}

.project-card:hover .project-open {
  opacity: 1;
  transform: translateY(0);
}

.project-card-copy {
  display: flex;
  padding: 17px 3px 0;
  flex-direction: column;
}

.project-card-copy small {
  color: var(--coral);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-copy strong {
  margin-top: 5px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.project-card-copy > span {
  max-width: 420px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.55;
}

.case-title {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.case-title h2 {
  max-width: 960px;
}

.case-story {
  display: grid;
  margin-top: 70px;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 25px;
}

.case-visual {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
}

.case-visual img {
  object-fit: cover;
  object-position: top;
}

.case-narrative {
  display: grid;
  gap: 12px;
}

.case-narrative article {
  display: flex;
  padding: 26px;
  flex-direction: column;
  justify-content: center;
  border-radius: 22px;
  background: var(--paper);
}

.case-narrative article:nth-child(2) {
  background: var(--butter);
}

.case-narrative article:nth-child(3) {
  background: var(--violet);
}

.case-narrative span {
  margin-bottom: 13px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-narrative p {
  margin: 0;
  font-size: 15px;
  line-height: 1.64;
}

.case-results {
  display: grid;
  margin-top: 25px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-results article {
  min-height: 290px;
  padding: 25px;
  border-radius: 22px;
  background: var(--forest);
  color: white;
}

.case-results article:nth-child(2) {
  background: var(--coral);
  color: var(--ink);
}

.case-results article:nth-child(3) {
  background: var(--ink);
}

.case-results article > span {
  display: block;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.case-results article:nth-child(2) > span {
  color: rgba(23, 23, 21, 0.68);
}

.case-results strong {
  display: flex;
  margin: 35px 0 22px;
  align-items: center;
  gap: 12px;
  font-size: clamp(42px, 5vw, 65px);
  letter-spacing: -0.07em;
  line-height: 1;
}

.case-results strong i {
  color: var(--butter);
  font-size: 25px;
  font-style: normal;
}

.case-results article:nth-child(2) strong i {
  color: var(--forest);
}

.case-results p {
  max-width: 290px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.case-results article:nth-child(2) p {
  color: rgba(23, 23, 21, 0.66);
}

.case-link {
  display: flex;
  margin-top: 26px;
  padding: 22px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.case-link span {
  color: var(--coral);
  font-size: 24px;
}

.journey {
  border-top: 3px solid var(--coral);
  background: var(--paper);
}

.journey-grid {
  display: grid;
  margin-top: 70px;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}

.journey-card {
  padding: 28px;
  border-radius: 26px;
}

.education-card {
  background: var(--butter);
}

.work-card {
  background: var(--forest);
  color: white;
}

.journey-card > header {
  display: flex;
  margin-bottom: 35px;
  align-items: center;
  gap: 13px;
}

.journey-card > header > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
}

.journey-card h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.journey-card article {
  padding: 24px 0;
  border-top: 1px solid rgba(23, 23, 21, 0.17);
}

.work-card article {
  border-color: rgba(255, 255, 255, 0.14);
}

.journey-card article > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.journey-card article > div > strong {
  font-size: 17px;
}

.journey-card article > div > span {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-card article > div > span {
  color: var(--butter);
}

.journey-card h4 {
  margin: 7px 0 4px;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.journey-card p {
  margin: 0;
  color: rgba(23, 23, 21, 0.65);
  font-size: 13px;
  line-height: 1.55;
}

.work-card p {
  color: rgba(255, 255, 255, 0.58);
}

.resume-cta {
  display: flex;
  margin-top: 18px;
  padding: 24px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
}

.resume-cta p {
  margin: 0;
  color: var(--muted);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-dark:hover {
  background: var(--coral);
  color: var(--ink);
}

.contact-section {
  padding-block: clamp(95px, 11vw, 155px);
  border-top: 3px solid var(--coral);
  background: var(--forest);
  color: white;
}

.contact-section h2 {
  max-width: 1050px;
}

.contact-section h2 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.contact-email {
  display: flex;
  max-width: 1080px;
  margin-top: 72px;
  padding-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.84);
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 750;
  letter-spacing: -0.045em;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.contact-email span {
  color: var(--butter);
}

.contact-email:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.contact-meta {
  display: flex;
  margin-top: 28px;
  gap: 14px 40px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  flex-wrap: wrap;
}

.contact-meta a:hover {
  color: var(--butter);
}

footer {
  display: flex;
  padding: 26px max(32px, calc((100vw - var(--max)) / 2));
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer a {
  color: var(--butter);
}

.modal-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(7, 18, 17, 0.82);
  backdrop-filter: blur(14px);
}

.project-modal {
  display: flex;
  width: min(1180px, 100%);
  max-height: calc(100svh - 40px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  background: var(--cream);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.project-modal > header {
  display: flex;
  min-height: 92px;
  padding: 17px 22px 17px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.project-modal > header span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal > header h2 {
  margin: 3px 0 0;
  font-size: clamp(25px, 3.5vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.project-modal > header button {
  min-height: 42px;
  padding-inline: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.project-modal > header button:hover {
  background: var(--coral);
  color: var(--ink);
}

.modal-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 270px;
  overflow: hidden;
}

.modal-body > aside {
  padding: 25px;
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.modal-body > aside p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.modal-body > aside a {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.viewer-pdf,
.viewer-gallery,
.viewer-image,
.viewer-video {
  min-height: 0;
  overflow: auto;
  background: #d9d5cc;
}

.viewer-pdf {
  display: flex;
  min-height: 670px;
  flex-direction: column;
}

.viewer-pdf iframe {
  width: 100%;
  min-height: 620px;
  flex: 1;
  border: 0;
}

.viewer-pdf > a {
  display: none;
  padding: 15px;
  background: var(--forest);
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.viewer-gallery {
  padding: 20px;
}

.viewer-gallery img,
.viewer-image img {
  width: min(100%, 900px);
  height: auto;
  margin: 0 auto 14px;
  background: white;
  box-shadow: 0 4px 20px rgba(23, 23, 21, 0.13);
}

.viewer-image {
  padding: 20px;
}

.viewer-video {
  display: grid;
  padding: 20px;
  place-items: center;
  background: #090909;
}

.viewer-video video {
  width: 100%;
  max-height: 72svh;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Portfolio v3: infinite ticker, stacked work shelves and contextual case */

.brand-mark {
  font-size: 10px;
}

.hero-ticker > .ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker-loop 26s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  flex: none;
  align-items: center;
}

.hero-ticker .ticker-item {
  display: flex;
  flex: none;
  align-items: center;
}

.hero-ticker .ticker-item > span {
  padding-inline: 25px;
}

.hero-ticker .ticker-item > b {
  padding-inline: 4px;
}

@keyframes ticker-loop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.mba-highlight {
  display: grid;
  margin: 28px 0;
  padding: 22px 24px;
  gap: 4px;
  border: 1px solid rgba(255, 227, 152, 0.38);
  border-radius: 20px;
  background: rgba(255, 227, 152, 0.1);
}

.mba-highlight > span {
  color: var(--butter);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mba-highlight > strong {
  color: white;
  font-size: clamp(21px, 2.4vw, 29px);
  letter-spacing: -0.035em;
}

.mba-highlight > p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 13px;
}

.portfolio-section {
  overflow: visible;
  border-top-color: var(--forest);
  border-bottom: 0;
  background:
    linear-gradient(rgba(23, 23, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 21, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 54px 54px;
  color: var(--ink);
}

.portfolio-intro {
  margin-bottom: 72px;
}

.portfolio-intro .section-label {
  color: var(--muted);
}

.portfolio-intro > div > p {
  color: var(--muted);
}

.portfolio-intro h2 em {
  color: var(--coral);
}

.portfolio-stack {
  display: grid;
  width: min(calc(100% - 64px), 1380px);
  margin-inline: auto;
  gap: 92px;
}

.portfolio-shelf {
  position: sticky;
  z-index: calc(10 + var(--stack-index));
  top: calc(92px + var(--stack-index) * 11px);
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(23, 23, 21, 0.2);
  border-radius: 34px;
  box-shadow:
    0 26px 70px rgba(12, 31, 28, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.22) inset;
}

.tone-forest {
  background: var(--forest);
  color: white;
}

.tone-coral {
  background: var(--coral);
  color: var(--ink);
}

.tone-butter {
  background: var(--butter);
  color: var(--ink);
}

.tone-violet {
  background: var(--violet);
  color: var(--ink);
}

.tone-ink {
  background: var(--ink);
  color: white;
}

.shelf-heading {
  display: grid;
  margin-bottom: 28px;
  grid-template-columns: auto minmax(270px, 0.85fr) minmax(260px, 0.75fr) auto;
  gap: 18px 28px;
  align-items: end;
}

.shelf-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  align-self: start;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
  opacity: 0.72;
}

.shelf-heading > div:nth-child(2) > span {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  opacity: 0.62;
  text-transform: uppercase;
}

.shelf-heading h3 {
  margin: 0;
  font-size: clamp(31px, 4.2vw, 58px);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.shelf-heading > p {
  max-width: 440px;
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.68;
}

.portfolio-shelf .rail-controls button {
  border-color: currentColor;
  color: currentColor;
  opacity: 0.72;
}

.portfolio-shelf .rail-controls button:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
}

.tone-forest .rail-controls button:hover,
.tone-ink .rail-controls button:hover {
  border-color: var(--coral);
  background: var(--coral);
}

.shelf-rail {
  display: flex;
  padding: 3px 0 20px;
  gap: 14px;
  cursor: grab;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: currentColor transparent;
  scrollbar-width: thin;
}

.shelf-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.shelf-rail::-webkit-scrollbar {
  height: 4px;
}

.shelf-rail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
}

.shelf-rail::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: currentColor;
}

.shelf-project {
  width: clamp(250px, 27vw, 340px);
  padding: 0 0 8px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
}

.shelf-cover {
  position: relative;
  display: block;
  aspect-ratio: 1.42;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 17px;
  background: var(--paper);
}

.tone-butter .shelf-cover,
.tone-coral .shelf-cover,
.tone-violet .shelf-cover {
  border-color: rgba(23, 23, 21, 0.18);
}

.shelf-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(11, 47, 43, 0.48));
  content: "";
  opacity: 0.58;
  transition: opacity 180ms ease;
}

.shelf-cover img {
  object-fit: cover;
  transition: transform 380ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.shelf-cover > span {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 9px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.shelf-project:hover .shelf-cover img,
.shelf-project.selected .shelf-cover img {
  transform: scale(1.035);
}

.shelf-project:hover .shelf-cover > span,
.shelf-project.selected .shelf-cover > span {
  opacity: 1;
  transform: translateY(0);
}

.shelf-project.selected .shelf-cover {
  box-shadow: 0 0 0 3px currentColor inset;
}

.shelf-project > small {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  opacity: 0.6;
  text-transform: uppercase;
}

.shelf-project > strong {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.inline-project-detail {
  margin-top: 20px;
  padding: clamp(20px, 2.5vw, 34px);
  max-height: min(680px, 68vh);
  overflow: auto;
  border: 1px solid rgba(23, 23, 21, 0.16);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 15px 42px rgba(23, 23, 21, 0.14);
  color: var(--ink);
  scrollbar-color: var(--coral) transparent;
}

.inline-project-detail > header {
  display: flex;
  padding-bottom: 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.inline-project-detail > header span,
.detail-context small {
  display: block;
  margin-bottom: 5px;
  color: var(--forest);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.inline-project-detail > header h4 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.inline-project-detail > header button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.inline-project-detail > header button:hover {
  background: var(--ink);
  color: white;
}

.detail-context {
  display: grid;
  padding: 20px 0 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: start;
}

.detail-context p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.detail-context a {
  display: inline-flex;
  min-height: 42px;
  padding-inline: 15px;
  align-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.asset-note {
  display: inline-flex;
  margin: 0 0 15px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--butter);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.detail-gallery {
  display: flex;
  padding: 2px 2px 12px;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
}

.detail-page {
  position: relative;
  width: min(74vw, 570px);
  height: 440px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  scroll-snap-align: start;
}

.detail-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.detail-page > span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 9px;
  font-weight: 800;
}

.detail-image {
  display: grid;
  max-height: 470px;
  place-items: center;
  overflow: auto;
  border-radius: 15px;
  background: var(--cream);
}

.detail-image img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.detail-video {
  display: grid;
  padding: 20px;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
}

.detail-video video {
  width: min(100%, 820px);
  max-height: 470px;
  border-radius: 12px;
}

.script-reader {
  padding: clamp(20px, 3vw, 36px);
  border-radius: 17px;
  background: var(--cream);
}

.script-intro {
  max-width: 720px;
  margin: 0 0 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.script-scenes {
  display: grid;
  gap: 9px;
}

.script-scenes article {
  display: grid;
  padding: 16px 18px;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 5px 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.script-scenes article > span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.script-scenes article > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
}

.script-scenes article > small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.case-title > div > p {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.65;
}

.case-framing {
  display: grid;
  margin-top: 70px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-framing article {
  min-height: 330px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: var(--forest);
  color: white;
}

.case-framing article:nth-child(2) {
  background: var(--butter);
  color: var(--ink);
}

.case-framing article > span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-framing article:nth-child(2) > span {
  color: var(--forest);
}

.case-framing h3 {
  max-width: 490px;
  margin: 42px 0 18px;
  font-size: clamp(27px, 3.4vw, 45px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.case-framing p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.65;
}

.case-framing article:nth-child(2) p {
  color: rgba(23, 23, 21, 0.68);
}

.case-comparison-grid {
  display: grid;
  margin-top: 80px;
  grid-template-columns: minmax(290px, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
}

.case-comparison-grid > div:first-child h3 {
  margin: 0 0 22px;
  font-size: clamp(31px, 4vw, 54px);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.case-comparison-grid > div:first-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.case-comparison-grid ul {
  display: grid;
  margin: 25px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.case-comparison-grid li {
  position: relative;
  padding-left: 21px;
  font-size: 13px;
  font-weight: 700;
}

.case-comparison-grid li::before {
  position: absolute;
  top: 0.46em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.comparison-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(11, 47, 43, 0.16);
  user-select: none;
}

.comparison-before,
.comparison-after {
  position: absolute;
  inset: 0;
}

.comparison-before {
  display: grid;
  padding: 30px;
  place-items: center;
  background:
    linear-gradient(rgba(23, 23, 21, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 21, 0.04) 1px, transparent 1px),
    #d8d4cc;
  background-size: 34px 34px;
}

.legacy-browser {
  width: min(92%, 560px);
  padding: 0 34px 48px;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 21, 0.22);
  border-radius: 12px;
  background: #efede7;
  box-shadow: 0 15px 28px rgba(23, 23, 21, 0.14);
  color: #514f4a;
}

.legacy-browser > div {
  display: flex;
  height: 38px;
  margin: 0 -34px 46px;
  padding-inline: 14px;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(23, 23, 21, 0.15);
  background: #dedbd4;
}

.legacy-browser i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa69e;
}

.legacy-browser > span {
  display: block;
  margin-bottom: 15px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.legacy-browser strong {
  display: block;
  max-width: 390px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.06;
}

.legacy-browser p {
  max-width: 380px;
  margin: 18px 0 30px;
  color: #77736c;
  font-size: 12px;
}

.legacy-browser small {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
}

.comparison-after {
  overflow: hidden;
  border-right: 2px solid white;
}

.comparison-after-canvas {
  position: absolute;
  inset: 0;
}

.comparison-after img {
  object-fit: cover;
  object-position: top center;
}

.comparison-handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 5px 22px rgba(23, 23, 21, 0.28);
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.comparison-label {
  position: absolute;
  z-index: 5;
  top: 16px;
  padding: 7px 10px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.before-label {
  left: 16px;
  background: var(--ink);
  color: white;
}

.after-label {
  right: 16px;
  background: var(--coral);
  color: var(--ink);
}

.comparison-stage input {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.comparison > p {
  margin: 13px 4px 0;
  color: var(--muted);
  font-size: 10px;
}

.education-primary {
  border-left: 4px solid var(--coral);
  background: rgba(255, 227, 152, 0.26);
}

@media (max-width: 1050px) {
  .site-header .brand > span:last-child {
    font-size: 12px;
  }

  .shelf-heading {
    grid-template-columns: auto 1fr auto;
  }

  .shelf-heading > p {
    grid-column: 2 / 3;
  }

  .shelf-heading .rail-controls {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

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

  .detail-context > a {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .case-comparison-grid {
    grid-template-columns: 1fr;
  }

  .case-comparison-grid > div:first-child {
    max-width: 730px;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 28px);
  }

  .site-header .brand > span:last-child {
    display: none;
  }

  .hero-ticker .ticker-item > span {
    padding-inline: 17px;
  }

  .portfolio-section {
    padding-bottom: 80px;
  }

  .portfolio-stack {
    width: calc(100% - 24px);
    gap: 20px;
  }

  .portfolio-shelf {
    position: relative;
    top: auto;
    padding: 22px 16px;
    border-radius: 24px;
  }

  .shelf-heading {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .shelf-number {
    width: 34px;
    height: 34px;
  }

  .shelf-heading > p {
    grid-column: 1 / -1;
    margin-top: 5px;
  }

  .shelf-heading .rail-controls {
    grid-column: 3;
    grid-row: 1;
  }

  .shelf-heading h3 {
    font-size: 30px;
  }

  .shelf-project {
    width: 76vw;
  }

  .inline-project-detail {
    max-height: 70vh;
    padding: 17px;
  }

  .inline-project-detail > header {
    align-items: flex-start;
  }

  .inline-project-detail > header button {
    font-size: 0;
  }

  .inline-project-detail > header button::after {
    font-size: 18px;
    content: "×";
  }

  .detail-context {
    grid-template-columns: 1fr;
  }

  .detail-context > a {
    grid-column: 1;
  }

  .detail-page {
    width: 80vw;
    height: 380px;
  }

  .script-reader {
    padding: 15px;
  }

  .script-scenes article {
    grid-template-columns: 1fr;
  }

  .script-scenes article > small {
    grid-column: 1;
  }

  .case-framing {
    grid-template-columns: 1fr;
  }

  .case-framing article {
    min-height: 0;
  }

  .case-framing h3 {
    margin-top: 28px;
  }

  .comparison-stage {
    min-height: 450px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker > .ticker-track {
    animation-play-state: paused;
  }
}

@media (max-width: 1040px) {
  .hero {
    min-height: 800px;
  }

  .hero-shell {
    min-height: 610px;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(58px, 8.3vw, 86px);
  }

  .hero-portrait {
    min-height: 600px;
  }

  .floating-tag {
    font-size: 10px;
  }

  .tag-copy,
  .tag-product {
    left: -10px;
  }

  .tag-seo,
  .tag-web {
    right: -10px;
  }

  .case-story {
    grid-template-columns: 1fr;
  }

  .case-visual {
    min-height: 640px;
  }

  .case-narrative {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-narrative article {
    min-height: 230px;
  }

  .modal-body {
    grid-template-columns: 1fr 220px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 40px), var(--max));
  }

  .site-header {
    top: 12px;
    width: calc(100% - 28px);
  }

  .site-header nav > a:not(.nav-contact) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
  }

  .hero-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 55px 0 25px;
  }

  .hero h1 {
    max-width: 690px;
    font-size: clamp(58px, 12vw, 90px);
  }

  .hero-portrait {
    width: min(100%, 570px);
    min-height: 650px;
    margin-inline: auto;
  }

  .hero-ticker {
    position: relative;
    margin-top: 30px;
  }

  .split-intro,
  .portfolio-intro > div,
  .case-title {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split-intro > p,
  .portfolio-intro > div > p {
    max-width: 650px;
  }

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

  .about-photo {
    width: min(100%, 550px);
  }

  .rail-heading {
    width: calc(100% - 40px);
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .rail-heading > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .rail-controls {
    grid-column: 2;
    grid-row: 1;
  }

  .portfolio-rail {
    padding-inline: 20px;
    scroll-padding-left: 20px;
  }

  .case-narrative,
  .case-results,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .case-results article {
    min-height: 235px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-body > aside {
    order: -1;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .viewer-pdf {
    min-height: 620px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 30px), var(--max));
  }

  .site-header {
    min-height: 56px;
    padding: 6px 7px 6px 10px;
  }

  .brand > span:last-child {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-contact {
    min-height: 40px;
    padding-inline: 15px;
  }

  .hero {
    padding-top: 82px;
  }

  .hero-copy {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(52px, 16.3vw, 78px);
  }

  .hero-copy > p {
    margin-top: 28px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-portrait {
    min-height: 500px;
  }

  .portrait-frame {
    right: 50%;
    width: calc(100% - 10px);
    border-width: 7px;
    border-radius: 130px 130px 20px 20px;
    transform: translateX(50%);
  }

  .floating-tag {
    min-height: 31px;
    padding-inline: 10px;
    box-shadow: 3px 4px 0 var(--ink);
    font-size: 9px;
  }

  .tag-copy {
    top: 70px;
    left: 0;
  }

  .tag-seo {
    top: 155px;
    right: 0;
  }

  .tag-web {
    right: 0;
    bottom: 135px;
  }

  .tag-product {
    bottom: 75px;
    left: 0;
  }

  .section-pad {
    padding-block: 82px;
  }

  .section-intro h2,
  .portfolio-intro h2,
  .about-copy h2,
  .case-title h2,
  .contact-section h2 {
    font-size: clamp(42px, 13.3vw, 63px);
  }

  .service-list {
    margin-top: 45px;
  }

  .service-list article > button {
    min-height: 72px;
    padding: 14px;
    grid-template-columns: 38px 1fr 35px;
  }

  .service-list article > button strong {
    font-size: 21px;
  }

  .service-list article > button i {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .service-detail {
    padding-inline: 52px 18px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-list .open .service-detail {
    max-height: 450px;
    padding-block: 2px 25px;
  }

  .about-grid {
    gap: 55px;
  }

  .about-lead {
    margin-top: 30px;
    font-size: 20px;
  }

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

  .skills-grid article {
    min-height: 230px;
  }

  .language-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-line strong {
    margin-right: 0;
  }

  .portfolio-intro {
    margin-bottom: 65px;
  }

  .portfolio-rails {
    gap: 82px;
  }

  .rail-heading {
    width: calc(100% - 30px);
  }

  .rail-heading > div:first-child {
    gap: 10px;
  }

  .rail-heading h3 {
    font-size: 29px;
  }

  .rail-controls button {
    width: 36px;
    height: 36px;
  }

  .portfolio-rail {
    padding-inline: 15px;
    scroll-padding-left: 15px;
  }

  .project-card {
    width: 84vw;
  }

  .project-open {
    opacity: 1;
    transform: none;
  }

  .case-story {
    margin-top: 45px;
  }

  .case-visual {
    min-height: 450px;
  }

  .case-results strong {
    font-size: 51px;
  }

  .journey-grid {
    margin-top: 45px;
  }

  .journey-card {
    padding: 21px;
  }

  .journey-card article > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .resume-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-email {
    margin-top: 52px;
    overflow-wrap: anywhere;
    font-size: 24px;
  }

  footer {
    padding-inline: 15px;
    flex-direction: column;
  }

  footer span:nth-child(2) {
    display: none;
  }

  .modal-backdrop {
    padding: 0;
  }

  .project-modal {
    max-height: 100svh;
    height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .project-modal > header {
    min-height: 78px;
    padding: 14px 15px;
  }

  .project-modal > header button {
    flex-shrink: 0;
  }

  .modal-body > aside {
    padding: 18px;
  }

  .viewer-pdf {
    min-height: 560px;
  }

  .viewer-pdf iframe {
    min-height: 500px;
  }

  .viewer-pdf > a {
    display: block;
  }

  .viewer-gallery,
  .viewer-image {
    padding: 8px;
  }
}

/* Keep the v4 refinements after legacy responsive rules. */

.section-label {
  gap: 20px;
}

.hero-ticker > .ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker-loop-v4 34s linear infinite;
  transform: translateZ(0);
  will-change: transform;
}

.hero-ticker .ticker-group {
  display: flex;
  min-width: max-content;
  flex: none;
}

.hero-ticker .ticker-item {
  display: flex;
  padding: 0;
  flex: none;
  align-items: center;
}

.hero-ticker .ticker-item > span {
  padding-inline: 26px;
}

.hero-ticker .ticker-item > b {
  padding: 0 5px;
}

.case-title > div > p {
  color: rgba(255, 255, 255, 0.62);
}

.case-framing article,
.case-framing article:nth-child(2) {
  color: var(--ink);
}

.case-framing article {
  background: var(--coral);
}

.case-framing article:nth-child(2) {
  background: var(--butter);
}

.case-framing article > span,
.case-framing article:nth-child(2) > span {
  color: var(--forest);
}

.case-framing article p,
.case-framing article:nth-child(2) p {
  color: rgba(23, 23, 21, 0.7);
}

.comparison-after {
  z-index: 1;
  border-right: 0;
}

.comparison-before {
  z-index: 2;
  overflow: hidden;
  border-right: 2px solid white;
}

.case-results article:nth-child(3) {
  background: var(--violet);
  color: var(--ink);
}

.case-results article:nth-child(3) > span,
.case-results article:nth-child(3) p {
  color: rgba(23, 23, 21, 0.62);
}

@media (max-width: 620px) {
  .section-label {
    gap: 18px;
  }

  .tag-content {
    top: 245px;
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker > .ticker-track {
    animation-play-state: paused;
  }
}


/* Sprint editorial e de narrativa */

.languages-panel {
  margin-top: 44px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(190px, .72fr) 2fr;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(23, 23, 21, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .66);
}

.languages-heading > span,
.resume-cta > div > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--coral-dark, #bd4637);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.languages-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.04;
}

.language-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.language-cards article {
  min-width: 0;
  padding: 14px;
  display: flex;
  gap: 11px;
  align-items: center;
  border-radius: 18px;
  background: var(--paper, #f7f4ed);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 21, .08);
}

.language-flag {
  font-size: 1.55rem;
  line-height: 1;
}

.language-cards div {
  display: grid;
  gap: 2px;
}

.language-cards strong {
  font-size: .92rem;
}

.language-cards small {
  color: rgba(23, 23, 21, .58);
}

.solo-browser-page {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  background: #ece9e1;
}

.solo-browser-page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.solo-site-card:hover .solo-browser-page img {
  transform: scale(1.035);
}

.case-framing {
  align-items: stretch;
}

.case-flip-card {
  min-height: 380px;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  perspective: 1200px;
}

.case-flip-inner {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: block;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2, .72, .2, 1);
}

.case-flip-card.is-flipped .case-flip-inner {
  transform: rotateY(180deg);
}

.case-face {
  position: absolute;
  inset: 0;
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 26px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.case-problem-card .case-front,
.case-solution-card .case-back {
  background: var(--coral);
}

.case-solution-card .case-front,
.case-problem-card .case-back {
  background: var(--butter);
}

.case-back {
  transform: rotateY(180deg);
}

.case-face small {
  color: var(--forest);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-face strong {
  max-width: 660px;
  margin: 34px 0 14px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: .98;
}

.case-face > span {
  color: rgba(23, 23, 21, .7);
  font-size: .96rem;
  line-height: 1.55;
}

.case-face i {
  margin-top: auto;
  padding-top: 22px;
  color: var(--forest);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.journey-grid {
  align-items: start;
}

.journey-card {
  position: relative;
  overflow: hidden;
}

.journey-card article,
.journey-card article.education-primary {
  position: relative;
  margin-left: 13px;
  padding: 0 0 34px 36px;
  border: 0;
}

.journey-card article::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -1px;
  width: 15px;
  height: 15px;
  border: 4px solid currentColor;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .28);
  z-index: 2;
}

.journey-card article::after {
  content: "";
  position: absolute;
  top: 17px;
  bottom: -3px;
  left: 6px;
  width: 2px;
  background: currentColor;
  opacity: .26;
}

.journey-card article:last-child::after {
  display: none;
}

.journey-card article > div {
  align-items: flex-start;
  gap: 16px;
}

.education-card article {
  color: var(--ink);
}

.work-card article {
  color: var(--butter);
}

.work-card article h4,
.work-card article p,
.work-card article strong {
  color: white;
}

.resume-cta {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  border-radius: 30px;
  background: var(--forest);
  color: white;
}

.resume-cta::after {
  content: "PDF";
  position: absolute;
  top: -28px;
  right: 34%;
  color: rgba(255, 255, 255, .05);
  font-family: var(--display);
  font-size: 9rem;
  line-height: 1;
  pointer-events: none;
}

.resume-cta h3 {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1;
}

.resume-cta p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, .68);
}

.resume-cta .button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  background: var(--coral);
  color: var(--ink);
}

@media (max-width: 920px) {
  .languages-panel {
    grid-template-columns: 1fr;
  }

  .language-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .resume-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .languages-panel {
    padding: 20px;
  }

  .language-cards {
    grid-template-columns: 1fr;
  }

  .case-flip-card,
  .case-flip-inner {
    min-height: 390px;
  }

  .solo-browser-page {
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-flip-inner,
  .solo-browser-page img {
    transition: none;
  }
}

/* Sprint de desempenho, acessibilidade e contato */

:root {
  --coral-text: #bd3d2e;
  --muted-strong: #4c4a45;
}

/* Contraste WCAG em fundos claros e coloridos */

.section-intro h2 span,
.portfolio-intro h2 em,
.solo-sites-intro h2 em {
  color: var(--coral-text);
}

.service-list article:not(.open) > button > span,
.solo-site-copy > div:first-child > small {
  color: var(--coral-text);
}

.service-list article.open > button > span {
  color: var(--coral);
}

.skill-front .skill-number,
.skill-front .skill-action {
  color: #292825;
  opacity: 1;
}

.skill-back .skill-number,
.skill-back .skill-action,
.skill-back > small {
  color: white;
  opacity: 0.92;
}

.skill-back > span:last-child {
  color: rgba(255, 255, 255, 0.86);
}

.skill-flip-card:nth-child(4) .skill-back {
  background: #86291f;
}

.shelf-number,
.shelf-heading > div:nth-child(2) > span,
.shelf-heading > p,
.shelf-project > small {
  opacity: 0.86;
}

.tone-butter .shelf-number,
.tone-butter .shelf-heading > div:nth-child(2) > span,
.tone-butter .shelf-heading > p,
.tone-butter .shelf-project > small,
.tone-coral .shelf-number,
.tone-coral .shelf-heading > div:nth-child(2) > span,
.tone-coral .shelf-heading > p,
.tone-coral .shelf-project > small,
.tone-violet .shelf-number,
.tone-violet .shelf-heading > div:nth-child(2) > span,
.tone-violet .shelf-heading > p,
.tone-violet .shelf-project > small {
  color: #292825;
  opacity: 1;
}

.case-results article > span,
.case-results p {
  color: rgba(255, 255, 255, 0.84);
}

.case-results article:nth-child(2) > span,
.case-results article:nth-child(2) p,
.case-results article:nth-child(3) > span,
.case-results article:nth-child(3) p {
  color: #292825;
}

.legacy-browser p,
.solo-browser-bar small {
  color: var(--muted-strong);
}

.resume-cta > div > span {
  color: #ff9b89;
}

/* Idiomas de trabalho e repertório em desenvolvimento */

.languages-panel {
  grid-template-columns:
    minmax(210px, 0.82fr)
    minmax(310px, 1.2fr)
    minmax(250px, 0.82fr);
  gap: 30px;
}

.language-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.language-primary article,
.language-secondary article {
  min-width: 0;
  padding: 14px;
  display: flex;
  gap: 11px;
  align-items: center;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 21, 0.1);
}

.language-flag {
  width: 36px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(23, 23, 21, 0.14);
}

.language-primary article > div,
.language-secondary article > div {
  display: grid;
  gap: 2px;
}

.language-primary strong,
.language-secondary strong {
  font-size: 0.92rem;
}

.language-primary small,
.language-secondary small {
  color: #45433f;
}

.language-secondary {
  min-width: 0;
  padding-left: 30px;
  display: grid;
  gap: 10px;
  border-left: 1px solid rgba(23, 23, 21, 0.18);
}

.language-secondary > span {
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.language-secondary > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.language-secondary article {
  padding: 10px 11px;
  border-radius: 14px;
  background: transparent;
}

.language-secondary .language-flag {
  width: 30px;
  height: 23px;
}

/* Abertura do portfólio com melhor ocupação horizontal */

.portfolio-intro-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  gap: clamp(54px, 7vw, 112px);
  align-items: end;
}

.portfolio-intro-aside {
  display: grid;
  gap: 26px;
}

.portfolio-intro-aside > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.65;
}

.portfolio-intro-aside ul {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  list-style: none;
}

.portfolio-intro-aside li {
  padding: 10px 0;
  border-top: 1px solid rgba(23, 23, 21, 0.18);
  color: #34332f;
  font-size: 0.78rem;
  font-weight: 750;
}

.portfolio-intro-aside li span {
  margin-right: 8px;
  color: var(--coral-text);
  font-size: 0.66rem;
  font-weight: 900;
}

/* Atalho de WhatsApp com mensagem discreta */

.whatsapp-contact {
  position: fixed;
  z-index: 120;
  right: clamp(18px, 2.6vw, 38px);
  bottom: clamp(18px, 2.6vw, 38px);
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.whatsapp-button {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #1f9d55;
  box-shadow: 0 14px 34px rgba(11, 47, 43, 0.28);
  pointer-events: auto;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  box-shadow: 0 18px 40px rgba(11, 47, 43, 0.36);
  transform: translateY(-3px);
}

.whatsapp-button img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

.whatsapp-button > span {
  position: absolute;
  top: -3px;
  right: -2px;
  display: none;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  background: #c62828;
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
}

.whatsapp-message {
  position: relative;
  width: min(310px, calc(100vw - 34px));
  padding: 18px 42px 18px 19px;
  border: 1px solid rgba(11, 47, 43, 0.18);
  border-radius: 18px 18px 5px 18px;
  background: white;
  box-shadow: 0 18px 48px rgba(11, 47, 43, 0.2);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: right bottom;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.whatsapp-message strong,
.whatsapp-message span {
  display: block;
}

.whatsapp-message strong {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.whatsapp-message span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.45;
}

.whatsapp-message button {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  pointer-events: auto;
}

.whatsapp-contact.has-message .whatsapp-message {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.whatsapp-contact.has-message .whatsapp-button > span {
  display: grid;
}

/* Notebook: somente larguras intermediárias com viewport baixo */

@media (min-width: 921px) and (max-width: 1440px) and (max-height: 900px) {
  .section-pad,
  .about-section,
  .contact-section {
    padding-block: clamp(58px, 8vh, 76px);
  }

  .hero {
    min-height: 100svh;
    padding-top: 92px;
  }

  .hero-shell {
    min-height: calc(100svh - 124px);
  }

  .hero-copy h1 {
    font-size: clamp(58px, 6vw, 76px);
  }

  .hero-copy > p:not(.section-label) {
    margin-top: 22px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .service-list,
  .skills-grid,
  .solo-sites-grid {
    margin-top: 42px;
  }

  .service-list article > button {
    min-height: 68px;
    padding-block: 12px;
  }

  .service-list .open .service-detail {
    padding-bottom: 22px;
  }

  .about-grid {
    gap: clamp(45px, 7vw, 90px);
  }

  .about-photo {
    max-height: calc(100svh - 150px);
  }

  .about-lead {
    margin: 24px 0 18px;
  }

  .skill-flip-card {
    height: 250px;
  }

  .skill-face {
    padding: 21px;
  }

  .skill-front > strong {
    margin: 20px 0 18px;
    font-size: clamp(27px, 2.7vw, 36px);
  }

  .skill-back > small {
    margin-top: 15px;
  }

  .skill-back > strong {
    font-size: clamp(17px, 1.75vw, 22px);
  }

  .skill-back > span:last-child {
    padding-top: 12px;
  }

  .portfolio-intro {
    margin-bottom: 44px;
  }

  .portfolio-intro h2 {
    font-size: clamp(58px, 5.8vw, 76px);
  }

  .portfolio-stack {
    gap: 64px;
  }

  .portfolio-shelf {
    padding: 28px;
  }

  .shelf-heading {
    margin-bottom: 20px;
  }

  .solo-browser-page {
    min-height: 190px;
  }

  .journey-card {
    padding: 28px;
  }

  .resume-cta {
    padding: 34px 40px;
  }
}

@media (max-width: 920px) {
  .languages-panel,
  .portfolio-intro-layout {
    grid-template-columns: 1fr;
  }

  .language-secondary {
    padding: 22px 0 0;
    border-top: 1px solid rgba(23, 23, 21, 0.18);
    border-left: 0;
  }

  .portfolio-intro-layout {
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .language-primary,
  .language-secondary > div,
  .portfolio-intro-aside ul {
    grid-template-columns: 1fr;
  }

  .whatsapp-button {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-button,
  .whatsapp-message {
    transition: none;
  }
}
