@font-face {
  font-family: Space;
  src: url("../assets/fonts/space-grotesk-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("../assets/fonts/space-grotesk-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #f4f1e9;
  --ink: #24251f;
  --red: #830e19;
  --red-tint: rgba(229, 56, 59, 0.1);
  --red-glow: rgba(229, 56, 59, 0.4);
  --lime: #d7eb8e;
  --gold: #f5b82e;
  --muted: #62635a;
  --line: #cfcec4;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-fast: 160ms;
  --motion-ui: 240ms;
  --motion-collage: 600ms;
  --space: clamp(22px, 5vw, 84px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Space, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 6px;
}
::selection {
  color: var(--paper);
  background: var(--red);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
svg {
  display: block;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.wrap {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--space);
}
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.handwritten {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  line-height: 1.15;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
}
.wordmark-dot {
  color: var(--red);
}
nav {
  display: flex;
  gap: 35px;
  align-items: center;
  font-size: 15px;
}
nav a {
  padding: 12px 0;
}
nav a span {
  font-size: 10px;
  vertical-align: super;
  margin-left: 2px;
  color: var(--muted);
}
.header-contact {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 15px;
  border-bottom: 1px solid var(--ink);
  padding-block: 8px;
}
.header-contact .icon {
  width: 17px;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  min-height: 720px;
  min-height: min(820px, calc(100svh - 106px));
  padding-top: 55px;
  padding-bottom: 106px;
}
.hero-copy {
  width: min(100%, 920px);
}
.hero-art {
  position: relative;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 10px 34px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 12px 14px 0 rgba(36, 37, 31, 0.08);
  transform: rotate(2deg);
}
.hero-art-image {
  width: auto;
  height: min(62svh, 530px);
  max-width: 100%;
  object-fit: contain;
}
.hero-art figcaption {
  position: absolute;
  right: 14px;
  bottom: 11px;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.hero-art-star,
.hero-art-marks {
  position: absolute;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.hero-art-star {
  top: -28px;
  right: -34px;
  width: 67px;
  height: 58px;
  stroke: var(--red);
  stroke-width: 2.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-art-marks {
  right: -31px;
  bottom: 42px;
  width: 62px;
  height: 50px;
  stroke: var(--gold);
  stroke-width: 3.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-line {
  font-size: 18px;
  margin-bottom: 27px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.tiny-star {
  fill: var(--red);
  width: 22px;
  height: 22px;
}
.hero h1 {
  font-size: clamp(62px, 6.8vw, 105px);
  line-height: 0.99;
  letter-spacing: -0.04em;
}
.hero h1 .serif {
  display: inline-block;
  position: relative;
  color: var(--red);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.hero h1 .serif::after {
  position: absolute;
  right: 2%;
  bottom: 1px;
  left: 2%;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  transform: rotate(-1deg);
  z-index: -1;
}
.hero-description {
  font-size: 17px;
  line-height: 1.65;
  margin-top: 28px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 21px;
  margin-top: 29px;
  font-size: 15px;
}
.round-arrow {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition:
    transform var(--motion-ui) var(--ease-out),
    background var(--motion-ui),
    color var(--motion-ui);
}
.round-arrow .icon {
  width: 17px;
}
.hero-playground {
  height: 510px;
  position: relative;
  min-width: 0;
}
.card-stack {
  position: absolute;
  inset: 0;
  perspective: 1200px;
}
.collage-card {
  position: absolute;
  top: 90px;
  left: 50%;
  width: 265px;
  height: 323px;
  box-shadow: 0 14px 28px #25261e20;
  transform-origin: 50% 80%;
  transition: transform var(--motion-collage) var(--ease-out);
  will-change: transform;
}
.collage-card[data-slot="0"] {
  transform: translate(-84%, -10px) rotate(-15deg);
  z-index: 1;
}
.collage-card[data-slot="1"] {
  transform: translate(-13%, 3px) rotate(13deg);
  z-index: 2;
}
.collage-card[data-slot="2"] {
  transform: translate(-51%, 24px) rotate(-3deg);
  z-index: 3;
}
.spectrum-mini {
  background: var(--lime);
  padding: 13px;
  border-radius: 3px;
}
.mini-browser {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #24251f20;
  padding: 0 8px;
}
.mini-browser i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.mini-browser span {
  font-size: 8px;
  margin-left: auto;
}
.spectrum-mini .mini-browser {
  background: #fff;
  border-radius: 5px 5px 0 0;
}
.spectrum-mini-art {
  height: 235px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}
.spectrum-mini-art img {
  mix-blend-mode: multiply;
}
.kojonote-mini {
  padding: 13px;
  border-radius: 3px;
  background: #7042c5;
  color: #fff;
}
.kojonote-mini .mini-browser {
  border-radius: 5px 5px 0 0;
  background: #fff;
  color: #24251f;
}
.kojonote-mini-art {
  display: flex;
  height: 235px;
  padding: 28px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  background:
    radial-gradient(circle at 86% 16%, #a98bf0 0 8px, transparent 9px),
    linear-gradient(145deg, #5a28ad, #7042c5 58%, #8659d3);
}
.kojonote-mini-art > img {
  width: 88%;
  height: auto;
  filter: grayscale(1) brightness(0) invert(1);
}
.kojonote-mini-art > span {
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: lowercase;
  opacity: 0.78;
}
.kojonote-mini-dots {
  display: flex;
  gap: 7px;
}
.kojonote-mini-dots i {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.kojonote-mini-dots i:first-child {
  background: currentColor;
}
.kojonote-mini .card-caption {
  color: #fff;
}
@media (max-width: 1050px) {
  .kojonote-mini-art {
    padding: 20px 15px;
  }
}
.color-chips {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.color-chips i {
  height: 32px;
  width: 32px;
  border-radius: 7px;
  background: #d6a1de;
  transform: rotate(-5deg);
}
.color-chips i:nth-child(2) {
  background: #abc4f2;
  transform: rotate(5deg);
}
.color-chips i:nth-child(3) {
  background: #f3aa74;
  transform: rotate(-6deg);
}
.color-chips i:nth-child(4) {
  background: #dfed8c;
  transform: rotate(8deg);
}
.card-caption {
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.card-caption .icon {
  width: 12px;
  height: 12px;
}
.aetheria-mini {
  background: var(--lime);
  padding: 20px 14px;
}
.mini-label {
  font-size: 8px;
  letter-spacing: 1px;
  display: block;
}
.aetheria-mini strong {
  font-family: Georgia, serif;
  font-size: 43px;
  letter-spacing: -2px;
  display: block;
  font-weight: 400;
  margin-top: 17px;
}
.aetheria-mini img {
  width: 100%;
  height: 164px;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.aetheria-mini .card-caption {
  border-top: 1px solid #24251f40;
  padding-top: 13px;
}
.sketch-mini {
  background: #faf8f2;
  padding: 13px 15px;
  overflow: hidden;
}
.sketch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1px;
}
.sketch-top span {
  font-size: 18px;
}
.sketch-mini img {
  height: 244px;
  width: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  mix-blend-mode: multiply;
  margin-top: 8px;
}
.sketch-bottom {
  display: block;
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  padding-top: 8px;
  line-height: 1.15;
}
.contexto-mini {
  background: #fff;
}
.contexto-mini .mini-browser {
  background: #fff;
  border-radius: 5px 5px 0 0;
}
.contexto-mini-art {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  background: #fff;
}
.contexto-mini-art img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.contexto-mini-art strong {
  font-size: 25px;
  letter-spacing: -1px;
}
.contexto-answer-bars {
  display: flex;
  width: 88%;
  gap: 7px;
  margin-top: 2px;
}
.contexto-answer-bars i {
  display: block;
  height: 11px;
  flex: 1;
  border-radius: 99px;
  background: #2fbf71;
}
.contexto-answer-bars i:nth-child(2) {
  background: #48ca7c;
}
.contexto-answer-bars i:nth-child(3) {
  background: #eacb4f;
}
.contexto-answer-bars i:nth-child(4) {
  background: #ed5a4f;
}
.hero-star {
  position: absolute;
  width: 111px;
  height: 111px;
  fill: var(--red);
  right: 6%;
  top: 20px;
  z-index: 4;
  transform: rotate(12deg);
  pointer-events: none;
}
.collage-note {
  position: absolute;
  left: 0;
  bottom: 22px;
  font-size: 20px;
  transform: rotate(-9deg);
}
.shuffle-button {
  position: absolute;
  bottom: 11px;
  right: 10%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  font-size: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition:
    background var(--motion-fast),
    transform var(--motion-fast);
}
.shuffle-button .icon {
  width: 15px;
  height: 15px;
}
.shuffle-button:active {
  transform: scale(0.96);
}
.hero-bottom {
  position: absolute;
  bottom: 26px;
  left: var(--space);
  right: var(--space);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.hero-bottom a {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-bottom a span {
  font-size: 20px;
}
.work-section {
  padding-top: 102px;
  padding-bottom: 120px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
}
.section-heading h2,
.elsewhere-intro h2 {
  font-size: clamp(43px, 4.9vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.section-heading p {
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 6px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 6%;
}
.project-spectrum {
  margin-top: 134px;
}
.project-art {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 25px;
  aspect-ratio: 1.16;
  transition: transform var(--motion-ui) var(--ease-out);
}
.aetheria-art {
  background: var(--lime);
  display: flex;
  flex-direction: column;
}
.art-overline {
  font-size: 9px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
.aetheria-title {
  font-family: Georgia, serif;
  font-size: clamp(48px, 6.2vw, 88px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 29px 0 10px;
}
.aetheria-title .serif {
  font-size: 0.42em;
  vertical-align: super;
  margin-left: 5px;
}
.aetheria-art img {
  width: 130%;
  max-width: none;
  margin-left: -15%;
  height: 60%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 500ms var(--ease-out);
}
.art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.project-open {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  transition: transform var(--motion-ui) var(--ease-out);
}
.project-open .icon {
  width: 18px;
}
.spectrum-art {
  background: var(--lime);
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.06;
}
.spectrum-window {
  margin: 40px 0 29px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 12px 22px #43531017;
  transform: rotate(-6deg);
  transition: transform 500ms var(--ease-out);
  padding-bottom: 16px;
}
.spectrum-window .mini-browser {
  height: 29px;
  padding-inline: 12px;
}
.spectrum-window img {
  margin: 6px auto 0;
  width: 91%;
  height: auto;
}
.spectrum-window .color-chips {
  margin-top: -25px;
  position: relative;
}
.spectrum-window .color-chips i {
  width: 28px;
  height: 28px;
}
.spectrum-tooltip {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(36, 37, 31, 0.2);
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.95);
  pointer-events: none;
  transition:
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-ui) var(--ease-out);
}
.spectrum-tooltip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spectrum-art:focus-visible .spectrum-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 15px;
}
.project-meta h3 {
  font-size: 29px;
  letter-spacing: -1px;
  transition:
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-ui) var(--ease-out);
}
.project-meta > span {
  font-size: 8px;
  letter-spacing: 0.6px;
}
.project > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 440px;
  margin-top: 11px;
}
.underlined-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  margin-top: 19px;
}
.underlined-link .icon {
  width: 14px;
  height: 14px;
}
.about-section {
  background: var(--red);
  color: var(--paper);
  overflow: hidden;
}
.about-inner {
  padding-block: 105px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 11%;
}
.about-art {
  position: relative;
  padding: 32px 30px 34px 24px;
}
.about-art::before {
  position: absolute;
  inset: 62px 0 0 58px;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 8px,
    var(--gold) 8px 13px,
    transparent 13px 21px
  );
  content: "";
  transform: rotate(-2deg);
}
.portrait-paper {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto;
  transform: rotate(-1.5deg);
}
.portrait-paper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.about-star {
  position: absolute;
  right: -5%;
  top: -25px;
  fill: var(--gold);
  width: 115px;
  height: 115px;
  transform: rotate(8deg);
}
.about-doodle-marks {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 14%;
  width: 82px;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(10deg);
}
.about-copy h2 {
  font-size: clamp(40px, 4.7vw, 65px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 34px;
}
.about-copy h2::after {
  display: block;
  width: min(210px, 72%);
  height: 7px;
  margin-top: 17px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  transform: rotate(-1deg);
}
.about-copy > p {
  font-size: 16px;
  line-height: 1.75;
  max-width: 515px;
  margin-top: 16px;
}
.about-signoff {
  border-top: 1px solid #f4f1e94a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 33px;
  padding-top: 20px;
  font-size: 11px;
  gap: 15px;
}
.about-signoff .handwritten {
  font-size: 38px;
  transform: rotate(-9deg);
}
.elsewhere-section {
  padding-block: 125px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
}
.elsewhere-intro h2 {
  font-size: clamp(37px, 3.8vw, 54px);
}
.elsewhere-intro p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 23px;
}
.social-list {
  padding-top: 6px;
}
.social-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  transition: color var(--motion-fast);
}
.social-list a:last-child {
  border-bottom: 1px solid var(--line);
}
.social-list a > span:first-child {
  font-size: 25px;
  letter-spacing: -1px;
}
.social-detail {
  font-size: 11px;
  margin-left: auto;
  color: var(--muted);
}
.social-list .icon {
  width: 20px;
  transition: transform var(--motion-ui) var(--ease-out);
}
.footer {
  padding-top: 72px;
}
.contact-heading {
  border-top: 1px solid var(--line);
  padding-block: 75px 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-heading h2 {
  font-size: clamp(53px, 7.3vw, 108px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.contact-heading h2 a {
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 30px;
}
.contact-heading h2 .icon {
  width: 60px;
  height: 60px;
  stroke-width: 1;
  transition: transform var(--motion-ui) var(--ease-out);
}
.footer-star {
  width: 140px;
  height: 140px;
  fill: var(--red);
  transform: rotate(12deg);
}
.footer-bottom {
  padding-block: 25px 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  font-size: 11px;
}
.footer-bottom > span {
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .spectrum-art:hover .spectrum-tooltip {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  nav a:hover,
  .header-contact:hover,
  .underlined-link:hover {
    color: var(--red);
  }
  .text-link:hover .round-arrow {
    background: var(--ink);
    color: var(--paper);
    transform: rotate(45deg);
  }
  .shuffle-button:hover {
    background: #e8e5db;
  }
  .collage-card:hover {
    translate: 0 -13px;
  }
  .collage-card {
    transition:
      transform var(--motion-collage) var(--ease-out),
      translate var(--motion-ui) var(--ease-out);
  }
  .project-art:hover .project-open {
    transform: rotate(45deg);
  }
  .project-art:hover .aetheria-title + img {
    transform: scale(1.04);
  }
  .spectrum-art:hover .spectrum-window {
    transform: rotate(0deg) translateY(-5px);
  }
  .social-list a:hover {
    color: var(--red);
  }
  .social-list a:hover .icon,
  .contact-heading a:hover .icon {
    transform: translate(4px, -4px);
  }
}
@media (min-width: 1500px) {
  .hero-playground {
    height: 550px;
  }
  .collage-card {
    width: 300px;
    height: 360px;
  }
  .sketch-mini img {
    height: 277px;
  }
  .spectrum-mini-art,
  .kojonote-mini-art {
    height: 268px;
  }
  .aetheria-mini img {
    height: 198px;
  }
}
@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    gap: 24px;
    min-height: 690px;
  }
  .hero-art-image {
    height: min(54svh, 430px);
  }
  .hero h1 {
    font-size: clamp(59px, 7vw, 77px);
  }
  .hero-playground {
    height: 460px;
  }
  .collage-card {
    width: 208px;
    height: 274px;
    top: 72px;
  }
  .sketch-mini img {
    height: 197px;
  }
  .spectrum-mini-art,
  .kojonote-mini-art {
    height: 186px;
  }
  .aetheria-mini strong {
    font-size: 35px;
  }
  .aetheria-mini img {
    height: 114px;
  }
  .hero-star {
    width: 84px;
    height: 84px;
    right: 0;
    top: 6px;
  }
  .collage-note {
    font-size: 17px;
    bottom: 36px;
    left: 7px;
  }
  .shuffle-button {
    right: 2%;
    bottom: 1px;
  }
  .project-art {
    padding: 20px;
  }
  .spectrum-window {
    margin-block: 32px 23px;
  }
  .project-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .project-meta > span {
    width: 100%;
  }
  .about-inner {
    gap: 8%;
    grid-template-columns: 0.85fr 1.15fr;
  }
  .about-star {
    width: 85px;
    height: 85px;
  }
  .about-copy h2 {
    font-size: 43px;
  }
  .social-detail {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --space: 24px;
  }
  .site-header {
    height: 83px;
  }
  .wordmark {
    font-size: 38px;
  }
  nav {
    gap: 21px;
    font-size: 13px;
  }
  .header-contact {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 33px;
    padding-bottom: 81px;
    min-height: 0;
  }
  .hero-art {
    justify-self: center;
    margin-top: 20px;
  }
  .hero-art-image {
    height: min(38svh, 300px);
  }
  .hero-art-star {
    top: -22px;
    right: -23px;
    width: 51px;
    height: 45px;
  }
  .hero-art-marks {
    right: -23px;
    bottom: 35px;
    width: 47px;
    height: 39px;
  }
  .hero-copy {
    width: 100%;
  }
  .intro-line {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .hero h1 {
    font-size: clamp(49px, 10.7vw, 81px);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }
  .hero-description {
    font-size: 15px;
    margin-top: 20px;
    max-width: 330px;
  }
  .desktop-break {
    display: none;
  }
  .text-link {
    margin-top: 20px;
    font-size: 13px;
    gap: 17px;
  }
  .round-arrow {
    width: 36px;
    height: 36px;
  }
  .hero-bottom {
    bottom: 0;
    padding-bottom: 16px;
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .hero-bottom > span:last-child {
    display: none;
  }
  .hero-bottom a span {
    font-size: 16px;
  }
  .work-section {
    padding-block: 70px 76px;
  }
  .section-heading {
    margin-bottom: 33px;
    gap: 20px;
  }
  .section-heading h2 {
    font-size: 43px;
  }
  .section-heading p {
    font-size: 11px;
    line-height: 1.6;
    max-width: 120px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 49px;
  }
  .project-spectrum {
    margin-top: 0;
  }
  .project-art {
    aspect-ratio: 1.12;
    padding: 24px;
  }
  .aetheria-title {
    font-size: 70px;
  }
  .project-meta {
    flex-wrap: nowrap;
    margin-top: 20px;
  }
  .project-meta > span {
    width: auto;
    font-size: 7px;
  }
  .project-meta h3 {
    font-size: 28px;
  }
  .project > p {
    font-size: 14px;
  }
  .spectrum-window {
    max-width: 350px;
    width: 90%;
    margin: 33px auto 30px;
  }
  .spectrum-window .color-chips {
    margin-top: -22px;
  }
  .about-inner {
    padding-block: 62px;
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
  .about-art {
    width: 100%;
    max-width: 340px;
    padding: 32px 22px 30px 0;
  }
  .about-art::before {
    inset: 62px 0 0 34px;
  }
  .portrait-paper {
    max-width: 100%;
  }
  .about-star {
    right: auto;
    left: -10px;
    top: 0;
    width: 68px;
    height: 68px;
  }
  .about-doodle-marks {
    top: 8px;
    right: 20%;
    width: 60px;
  }
  .about-copy h2 {
    font-size: clamp(35px, 8.6vw, 54px);
    margin-bottom: 22px;
  }
  .about-copy > p {
    font-size: 15px;
    line-height: 1.75;
  }
  .about-signoff {
    margin-top: 25px;
    font-size: 10px;
  }
  .about-signoff .handwritten {
    font-size: 34px;
  }
  .elsewhere-section {
    padding-block: 73px 35px;
    grid-template-columns: 1fr;
    gap: 33px;
  }
  .elsewhere-intro h2 {
    font-size: clamp(33px, 8.4vw, 46px);
  }
  .elsewhere-intro p {
    margin-top: 20px;
  }
  .social-detail {
    display: block;
    font-size: 10px;
  }
  .social-list a {
    padding-block: 23px;
  }
  .social-list a > span:first-child {
    font-size: 24px;
  }
  .footer {
    padding-top: 37px;
  }
  .contact-heading {
    padding-block: 43px 48px;
    position: relative;
  }
  .contact-heading h2 {
    font-size: clamp(42px, 9.5vw, 66px);
  }
  .contact-heading h2 a {
    gap: 14px;
  }
  .contact-heading h2 .icon {
    width: 35px;
    height: 35px;
  }
  .footer-star {
    position: absolute;
    width: 49px;
    height: 49px;
    right: 0;
    bottom: 18px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 23px;
    font-size: 10px;
    padding-block: 24px;
  }
  .footer-bottom > span {
    order: 3;
    width: 100%;
  }
  .footer-bottom > a:last-child {
    margin-left: auto;
  }
}
@media (max-width: 370px) {
  :root {
    --space: 19px;
  }
  nav {
    gap: 15px;
  }
  .hero-playground {
    height: 365px;
  }
  .collage-card {
    width: 190px;
    height: 263px;
  }
  .sketch-mini img {
    height: 185px;
  }
  .spectrum-mini-art,
  .kojonote-mini-art {
    height: 177px;
  }
  .aetheria-mini img {
    height: 106px;
  }
  .aetheria-mini strong {
    font-size: 31px;
  }
  .collage-note {
    font-size: 14px;
  }
  .project-meta {
    flex-wrap: wrap;
  }
  .project-meta > span {
    width: 100%;
  }
  .social-detail {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-in 700ms var(--ease-out) both;
  }
  .hero-playground {
    animation: hero-in 800ms 60ms var(--ease-out) both;
  }
  @keyframes hero-in {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .collage-card:hover {
    translate: none;
  }
}

/* Professional portfolio hierarchy: primary case studies, selected work, side projects */
.gelato-mini {
  padding: 13px;
  border-radius: 3px;
  background: #f2671b;
  color: #241d18;
}
.gelato-mini .mini-browser {
  border-radius: 5px 5px 0 0;
  background: #fff;
}
.gelato-mini-art {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: #f2671b;
}
.gelato-mini-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(65, 24, 6, 0.78));
  content: "";
}
.gelato-mini-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gelato-mini-art strong {
  position: absolute;
  right: 14px;
  bottom: 15px;
  left: 14px;
  z-index: 1;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 0.98;
}

.case-study-facts {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-bottom: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 24%, transparent);
}
.case-study-facts > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 24%, transparent);
}
.case-study-facts dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case-study-facts dd {
  font-size: 13px;
  line-height: 1.45;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  overflow: visible;
  cursor: default;
}
.carousel-slide {
  min-width: 0;
  min-height: 0 !important;
}
.carousel-slide#aetheria,
.carousel-slide#compassbite {
  min-height: 100% !important;
}
.carousel-track-scrollbar,
.carousel-control-deck {
  display: none;
}

.side-projects {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.8fr);
  gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(72px, 9vw, 130px);
}
.side-projects-heading h3 {
  max-width: 360px;
  margin-top: 18px;
  font-size: clamp(31px, 3.1vw, 47px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.side-projects-heading p {
  max-width: 390px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.side-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.side-project {
  display: grid;
  min-width: 0;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  transition:
    transform var(--motion-ui) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out);
}
a.side-project:hover,
a.side-project:focus-visible {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-3px);
}
.side-project > img {
  width: 112px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}
.side-project-spectrum > img {
  padding: 17px;
  object-fit: contain;
  background: var(--lime);
}
.side-project > div > span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.35;
}
.side-project h4 {
  margin: 4px 0 2px;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.side-project p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Extension logos retain their native transparent backgrounds. */
.side-project > img.side-project-logo {
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.side-project-debatebuddy > img {
  width: 92px;
  height: 92px;
  justify-self: center;
  border-radius: 12px;
  object-fit: cover;
}
.side-project-social {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.02em !important;
}
.side-project-bulldogs {
  background: rgba(255, 255, 255, 0.38);
}
.side-project-bulldogs:hover,
.side-project-bulldogs:focus-visible {
  background: #fff;
}
.side-project-bulldogs > img.side-project-bulldogs-logo {
  width: 92px;
  height: 92px;
  justify-self: center;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
}

@media (min-width: 1500px) {
  .gelato-mini-art {
    height: 268px;
  }
}
@media (max-width: 1050px) {
  .gelato-mini-art {
    height: 186px;
  }
  .gelato-mini-art strong {
    font-size: 20px;
  }
  .side-projects {
    grid-template-columns: 1fr;
  }
  .side-projects-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 24px;
  }
  .side-projects-heading .section-tag {
    grid-column: 1 / -1;
  }
  .side-projects-heading h3,
  .side-projects-heading p {
    margin-top: 0;
  }
}
@media (max-width: 900px) {
  html,
  body {
    overflow-x: clip;
  }
  .header-contact {
    display: none;
  }
  .feature-pair {
    grid-template-columns: 1fr;
  }
  .campaign-hero {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .case-study-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .gelato-mini-art {
    height: 193px;
  }
  .carousel-track,
  .side-projects-grid {
    grid-template-columns: 1fr;
  }
  .side-projects-heading {
    display: block;
  }
  .side-projects-heading h3 {
    margin-top: 16px;
  }
  .side-projects-heading p {
    margin-top: 16px;
  }
}
@media (max-width: 600px) {
  .site-header {
    display: grid;
    height: 76px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
  }
  .site-nav {
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 14px;
  }
  .site-nav a {
    white-space: nowrap;
    font-size: 12px;
  }
  .site-nav a:nth-child(n + 3) {
    display: none;
  }
  .site-nav a span {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .gelato-mini-art {
    height: 177px;
  }
  .gelato-mini-art strong {
    right: 11px;
    bottom: 12px;
    left: 11px;
    font-size: 18px;
  }
  .case-study-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .side-project {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .side-project > img {
    width: 88px;
    height: 82px;
  }
}
@media (max-width: 370px) {
  .gelato-mini-art {
    height: 164px;
  }
}
/* Keep the paper fan inside narrow screens in every shuffle order. */
@media (max-width: 760px) {
  .collage-card {
    width: 190px;
    height: 263px;
  }
  .sketch-mini img {
    height: 185px;
  }
  .spectrum-mini-art,
  .kojonote-mini-art {
    height: 177px;
  }
  .aetheria-mini img {
    height: 106px;
  }
  .aetheria-mini strong {
    font-size: 31px;
  }
  .collage-card[data-slot="0"] {
    transform: translate(-65%, -10px) rotate(-15deg);
  }
  .collage-card[data-slot="1"] {
    transform: translate(-29%, 3px) rotate(13deg);
  }
}
@media (max-width: 370px) {
  .collage-card {
    width: 174px;
    height: 250px;
  }
  .sketch-mini img {
    height: 174px;
  }
  .spectrum-mini-art,
  .kojonote-mini-art {
    height: 164px;
  }
  .aetheria-mini img {
    height: 93px;
  }
  .aetheria-mini strong {
    font-size: 29px;
  }
}

.collage-card[data-slot]:focus-visible {
  z-index: 5;
}
.project {
  min-width: 0;
}
@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .aetheria-title {
    font-size: clamp(49px, 16vw, 70px);
  }
}
@media (max-width: 370px) {
  .card-stack {
    transform: scale(0.86);
    transform-origin: 50% 45%;
  }
  .section-heading p {
    max-width: 100px;
  }
  .art-footer {
    font-size: 9px;
  }
}
/* Expanded portfolio: real project assets lead each composition. */
.spectrum-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 0;
}
.spectrum-brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  mix-blend-mode: normal;
  margin: 0;
}
.spectrum-brand strong {
  font-size: 30px;
  letter-spacing: -1px;
}
.spectrum-mini-art .spectrum-brand {
  gap: 8px;
  padding: 10px 0 20px;
}
.spectrum-mini-art .spectrum-brand img {
  width: 64px;
  height: 64px;
}
.spectrum-mini-art .spectrum-brand strong {
  font-size: 21px;
}
.spectrum-window .color-chips {
  margin-top: 0;
}
.project-grid {
  row-gap: 80px;
  align-items: start;
}
.project-feature,
.project-wrap {
  grid-column: 1/-1;
}
.feature-pair {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #f2671b;
  color: #241d18;
  align-items: stretch;
}
.campaign-hero {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.feature-story {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-category {
  font-size: 10px;
  letter-spacing: 1px;
}
.feature-story h3 {
  font-size: clamp(34px, 3.6vw, 54px);
  letter-spacing: -0.04em;
  margin-top: 24px;
  line-height: 1.08;
}
.feature-story h3 .serif {
  display: block;
  margin-top: 17px;
  font-size: 0.8em;
}
.feature-story p {
  font-size: 14px;
  line-height: 1.75;
  margin-top: 24px;
}
.feature-story .underlined-link {
  align-self: flex-start;
  border-color: #241d1855;
  margin-top: 28px;
}
.kojonote-pair {
  background: #7042c5;
  color: #fff;
}
.kojonote-pair .feature-story .underlined-link {
  border-color: #ffffff80;
}
.kojonote-art {
  position: relative;
  display: flex;
  min-height: 420px;
  overflow: hidden;
  padding: 30px;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 82% 18%, #a98bf0 0 3%, transparent 3.3%),
    linear-gradient(135deg, #5a28ad 0%, #7042c5 52%, #8659d3 100%);
  color: #fff;
  text-decoration: none;
}
.kojonote-art::after {
  position: absolute;
  right: -16%;
  bottom: -35%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid #ffffff2b;
  border-radius: 50%;
  content: "";
}
.kojonote-mark,
.kojonote-ui,
.kojonote-note {
  position: relative;
  z-index: 1;
}
.kojonote-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.kojonote-mark img {
  width: min(240px, 62%);
  height: auto;
  filter: grayscale(1) brightness(0) invert(1);
}
.kojonote-mark span,
.kojonote-note {
  font-size: 9px;
  letter-spacing: 1.3px;
}
.kojonote-ui {
  width: min(88%, 460px);
  margin: 16px auto 0;
  overflow: hidden;
  border: 1px solid #e7ddff80;
  border-radius: 15px;
  background: #faf8ff;
  box-shadow: 0 22px 45px #32106a73;
  color: #2d1e4b;
  transform: rotate(-3deg);
  transition: transform var(--motion-ui) var(--ease-out), box-shadow var(--motion-ui) var(--ease-out);
}
.kojonote-topbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  border-bottom: 1px solid #e8e0f7;
  font-size: 9px;
}
.kojonote-topbar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a80d7;
}
.kojonote-topbar b {
  margin-left: 5px;
  color: #796b91;
  font-weight: 400;
}
.kojonote-ui-body { padding: 18px; }
.kojonote-subject { color: #7042c5; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.kojonote-ui-body > strong { display: block; margin: 7px 0 14px; font-size: clamp(18px, 2vw, 25px); letter-spacing: -0.04em; }
.kojonote-progress { width: 100%; height: 6px; margin-bottom: 14px; overflow: hidden; border-radius: 999px; background: #e7e0f4; }
.kojonote-progress span { display: block; width: 48%; height: 100%; border-radius: inherit; background: #7042c5; }
.kojonote-tasks { display: grid; gap: 6px; }
.kojonote-tasks p { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; margin: 0; padding: 8px; border-radius: 7px; background: #f1edf9; font-size: 9px; }
.kojonote-tasks em { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #7042c5; color: #fff; font-style: normal; }
.kojonote-tasks b { color: #6b5e82; font-size: 8px; font-weight: 500; }
.kojonote-note { text-transform: uppercase; }
.kojonote-credit { position: relative; z-index: 1; margin-top: 5px; font-size: 7px; letter-spacing: 0.8px; opacity: 0.35; }
.kojonote-art:hover .kojonote-ui { box-shadow: 0 28px 55px #32106aa8; transform: rotate(0deg) translateY(-8px); }
.project-gallery {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 35px;
}
.project-gallery summary {
  cursor: pointer;
  font-size: 13px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.project-gallery summary::-webkit-details-marker {
  display: none;
}
.project-gallery summary span {
  font-size: 19px;
  line-height: 1;
  transition: transform var(--motion-ui) var(--ease-out);
}
.project-gallery[open] summary span {
  transform: rotate(45deg);
}
.project-gallery summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
.gallery-content {
  padding-bottom: 24px;
}
.campaign-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.campaign-gallery figure {
  margin: 0;
}
.campaign-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.campaign-gallery figcaption {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
  color: var(--muted);
}
.supplied-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 32px;
}
.supplied-art > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--motion-ui) var(--ease-out);
}
.contexto-art {
  display: flex;
  flex-direction: column;
  background: var(--lime);
  aspect-ratio: 1.06;
}
.contexto-window {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  margin: 40px 0 42px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 22px #43531017;
  transform: rotate(5deg);
  touch-action: pan-y;
  transition: transform 500ms var(--ease-out);
}
.contexto-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 420ms var(--ease-out),
    transform 650ms var(--ease-out);
}
.contexto-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.contexto-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carousel-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.carousel-controls {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 6px;
}
.carousel-controls button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}
.carousel-controls .icon {
  width: 17px;
  stroke-width: 2;
}
.carousel-controls button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.contexto-store-label {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    width var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out);
}
.carousel-dots button.is-active {
  width: 22px;
  border-radius: 10px;
  background: var(--ink);
}
.carousel-dots button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.contexto-tooltip {
  position: absolute;
  left: 50%;
  top: 20px;
  bottom: auto;
  z-index: 2;
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(36, 37, 31, 0.2);
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.95);
  pointer-events: none;
  transition:
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-ui) var(--ease-out);
}
.contexto-tooltip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.compassbite-art {
  background: #e0e9f8;
  padding: 20px;
}
.supplied-art .project-open,
.contexto-art .project-open,
.wrap-art .project-open {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
.debatebuddy-gallery figcaption {
  margin-top: 9px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.debatebuddy-art {
  background: #ffd600;
}
.debatebuddy-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}
.debatebuddy-gallery figure {
  margin: 0;
}
.debatebuddy-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.wrap-art {
  padding: 0;
  aspect-ratio: 2.4;
  background: white;
}
.wrap-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 57%;
  transition: transform 600ms var(--ease-out);
}
.project-wrap > p {
  max-width: 620px;
}
.fifa-gallery figure {
  margin: 0;
}
.fifa-gallery img {
  width: 100%;
  max-width: 920px;
  aspect-ratio: 2028 / 1138;
  object-fit: cover;
}
.fifa-gallery figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .contexto-art:hover .contexto-window {
    transform: rotate(0deg) translateY(-5px);
  }
  .carousel-controls button:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
  }
  .supplied-art:hover > img {
    transform: translateY(-5px);
  }
  #compassbite .project-art:hover > img {
    transform: translateY(-7px) rotate(-1.5deg) scale(1.025);
  }
  #debatebuddy .project-art:hover > img {
    transform: translateY(-7px) rotate(1.5deg) scale(1.025);
  }
  #contexto:hover .project-meta h3,
  #compassbite:hover .project-meta h3,
  #debatebuddy:hover .project-meta h3 {
    color: var(--red);
    transform: translateX(5px);
  }
  .project-gallery summary:hover {
    color: var(--red);
  }
}
@media (max-width: 1050px) {
  .feature-story {
    padding: 28px;
  }
  .campaign-hero {
    min-height: 380px;
  }
}
@media (max-width: 760px) {
  .project-grid {
    row-gap: 48px;
  }
  .feature-pair {
    grid-template-columns: 1fr;
  }
  .campaign-hero {
    min-height: 0;
    aspect-ratio: 4/3;
  }
  .feature-story {
    padding: 28px;
  }
  .feature-story h3 {
    font-size: 39px;
  }
  .campaign-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .wrap-art {
    aspect-ratio: 1.7;
  }
  .wrap-art > img {
    object-fit: contain;
  }
  .spectrum-brand img {
    width: 80px;
    height: 80px;
  }
  .spectrum-brand strong {
    font-size: 25px;
  }
  .spectrum-mini-art .spectrum-brand img {
    width: 48px;
    height: 48px;
  }
  .spectrum-mini-art .spectrum-brand strong {
    font-size: 18px;
  }
  .spectrum-mini-art .spectrum-brand {
    padding: 3px 0 14px;
  }
  .project-feature,
  .project-wrap {
    grid-column: auto;
  }
  .contexto-art {
    aspect-ratio: 1.06;
  }
  .debatebuddy-gallery {
    grid-template-columns: 1fr;
  }
  .section-heading p {
    max-width: 155px;
  }
}


/* ==========================================================================
   PORTFOLIO REDESIGN EXTENSIONS (V3)
   - Top-Anchored Diverse Carousel
   - Tight Dense Photography Masonry (Matching User Image 1 & Malibu reference)
   - Static Non-Hovering Workflow Strip
   - Card-Only Fan Out for Editing ("Cut to the beat.")
   - Fixed Bottom-Right Floating Back-to-Top Arrow
   - Lightbox Prev/Next Navigation & Uniform Image Previews
   ========================================================================== */

/* Shared typography & badges */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  flex-wrap: wrap;
}
.site-nav a {
  position: relative;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 4px 0;
  transition: color var(--motion-fast) var(--ease-out);
}
.site-nav a:hover {
  color: var(--red);
}
.site-nav a span {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 2px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 580px;
  margin-top: 10px;
}

/* Featured section primary stack */
.featured-primary-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(30px, 4vw, 56px);
}

/* ==========================================================================
   PROJECTS HORIZONTAL CAROUSEL (TOP-ANCHORED & DIVERSE HEIGHTS)
   ========================================================================== */
.projects-section {
  padding-bottom: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.projects-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}

.projects-title-group h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.carousel-control-deck {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.carousel-drag-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(36, 37, 31, 0.04);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.carousel-drag-tip .icon {
  width: 16px;
  height: 16px;
}

.carousel-counter-pill {
  font-family: Space, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.carousel-counter-pill .sep {
  opacity: 0.4;
  margin: 0 4px;
}

.carousel-button-set {
  display: flex;
  gap: 8px;
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out), opacity var(--motion-fast) var(--ease-out);
}
.carousel-arrow:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.carousel-arrow:active:not(:disabled) {
  transform: scale(0.92);
}
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-viewport {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  align-items: flex-start; /* ALL CARDS ANCHOR TO THE TOP */
  gap: clamp(20px, 2.5vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 12px 6px 36px 6px;
  scrollbar-width: none;
  cursor: grab;
  will-change: scroll-position;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

/* Base carousel slide */
.carousel-slide {
  flex: 0 0 clamp(330px, 31vw, 440px);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  flex-direction: column;
  margin-top: 0; /* Anchored to top */
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(36, 37, 31, 0.03);
  transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 320ms cubic-bezier(0.23, 1, 0.32, 1), border-color 240ms var(--ease-out);
  will-change: transform;
}
.carousel-slide:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: 0 20px 42px -10px rgba(36, 37, 31, 0.09);
}

/* Diverse heights per project */
.carousel-slide#spectrum {
  min-height: 420px;
}
.carousel-slide#debatebuddy {
  min-height: 470px;
}
.carousel-slide#aetheria {
  min-height: 500px;
}
.carousel-slide#contexto {
  min-height: 590px;
}
.carousel-slide#compassbite {
  min-height: 640px;
}

.carousel-slide .project-art {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.carousel-slide .project-meta {
  margin-bottom: 12px;
}
.carousel-slide > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}
.slide-footer {
  margin-top: auto;
  padding-top: 12px;
}

.carousel-track-scrollbar {
  width: 100%;
  height: 4px;
  background: rgba(36, 37, 31, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
}
.carousel-track-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 16.6%;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 120ms linear;
  will-change: transform;
}

/* ==========================================================================
   PHOTOGRAPHY SECTION: TIGHT DENSE GRID & STATIC WORKFLOW STRIP
   ========================================================================== */
.photography-section {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.photography-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(24px, 3.5vw, 42px);
  flex-wrap: wrap;
}

.photography-title-block h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
/* Lightroom Hover Badge */
.lr-badge-container {
  display: flex;
  align-items: center;
}
.lr-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #00161d;
  color: #f4f1e9;
  border: 1.5px solid #1a4f66;
  border-radius: 18px;
  padding: 10px 18px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 29, 38, 0.2);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 320ms ease, border-color 240ms ease;
}
.lr-glow-aura {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(49, 168, 255, 0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.lr-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.lr-badge-info {
  display: flex;
  flex-direction: column;
}
.lr-caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #31A8FF;
}
.lr-badge-info strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}
.lr-tag {
  font-size: 11px;
  font-family: Georgia, serif;
  font-style: italic;
  background: rgba(49, 168, 255, 0.18);
  color: #8ed0ff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(49, 168, 255, 0.3);
  margin-left: 6px;
  transition: background-color 240ms, transform 240ms;
}

.lr-badge:hover,
.lr-badge:focus-visible {
  transform: translateY(-4px) scale(1.03);
  border-color: #31A8FF;
  box-shadow: 0 16px 36px rgba(49, 168, 255, 0.35);
}
.lr-badge:hover .lr-glow-aura,
.lr-badge:focus-visible .lr-glow-aura {
  opacity: 1;
}
.lr-badge:hover .lr-badge-icon,
.lr-badge:focus-visible .lr-badge-icon {
  transform: rotate(-10deg) scale(1.15);
}

/* Static Non-Hovering Workflow Strip */
.grading-mini-container {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 18px 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
  box-shadow: 0 4px 14px rgba(36, 37, 31, 0.03);
}

.grading-mini-label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.grading-mini-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.grading-mini-hint {
  font-size: 12px;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--muted);
}

.grading-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Strictly Static: NO HOVER ANIMATIONS */
.grading-mini-step {
  margin: 0;
  flex: 1 1 200px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  /* No hover transform or jump */
}
.step-tag-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}
.step-thumb-box {
  width: 100%;
  aspect-ratio: 4 / 2.7;
  border-radius: 8px;
  overflow: hidden;
  background: #111210;
}
.step-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grading-mini-step figcaption {
  font-size: 12px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-style: italic;
  margin-top: 6px;
}

.step-flow-arrow {
  color: var(--muted);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-flow-arrow .icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   TIGHT DENSE PHOTO GALLERY (CLOSE TOGETHER LIKE IMAGE 1 & MALIBU REFERENCE)
   ========================================================================== */
.photo-gallery-showcase .gallery-subhead {
  margin-bottom: 20px;
}
.photo-gallery-showcase .gallery-subhead h3 {
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.03em;
}
.photo-gallery-showcase .gallery-subhead h3 span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.photo-gallery-showcase .gallery-subhead p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}
.photo-gallery-showcase .gallery-subhead .mobile-gallery-hint {
  display: none;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 12px; /* Close together tight spacing */
  width: 100%;
}

.photo-card {
  margin: 0;
  position: relative;
  border-radius: 12px; /* Smooth rounded corners */
  overflow: hidden;
  background: #111210;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(36, 37, 31, 0.05);
  border: none;
  aspect-ratio: 4 / 3;
  transition: box-shadow 180ms ease;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-card:hover {
  box-shadow: 0 4px 12px rgba(36, 37, 31, 0.12);
}

/* Span modifiers for Image 1 layout */
.photo-card.photo-card-hero {
  grid-column: span 2;
  aspect-ratio: 16 / 10.5;
}
.photo-card.photo-card-vertical {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}
.photo-card.photo-card-wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

/* An Instagram-inspired grid keeps every frame in a consistent tile. */
@media (min-width: 901px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }
  .photo-card {
    border-radius: 0;
    aspect-ratio: 1;
  }
  .photo-card.photo-card-hero,
  .photo-card.photo-card-vertical,
  .photo-card.photo-card-wide {
    grid-column: auto;
    grid-row: auto;
    border-radius: 0;
    aspect-ratio: 1;
  }
}

@media (max-width: 900px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .photo-card.photo-card-hero,
  .photo-card.photo-card-wide,
  .photo-card.photo-card-vertical {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 541px) and (max-width: 900px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .photo-card,
  .photo-card.photo-card-hero,
  .photo-card.photo-card-wide,
  .photo-card.photo-card-vertical {
    grid-column: auto;
    grid-row: auto;
    border-radius: 0;
    aspect-ratio: 1;
  }
}
@media (max-width: 540px) {
  .photo-gallery-showcase .gallery-subhead {
    margin-bottom: 14px;
  }
  .photo-gallery-showcase .gallery-subhead > p:not(.mobile-gallery-hint) {
    display: none;
  }
  .photo-gallery-showcase .gallery-subhead .mobile-gallery-hint {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .photo-gallery-grid {
    display: flex;
    gap: 8px;
    width: calc(100% + var(--space));
    margin-right: calc(var(--space) * -1);
    padding-right: var(--space);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0 var(--space);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .photo-gallery-grid::-webkit-scrollbar {
    display: none;
  }
  .photo-card,
  .photo-card.photo-card-hero,
  .photo-card.photo-card-wide,
  .photo-card.photo-card-vertical {
    flex: 0 0 min(78vw, 330px);
    border-radius: 12px;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .photo-card img {
    object-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
}

/* ==========================================================================
   EDITING SECTION: FAN OUT ONLY ON CARD HOVER ("Cut to the beat.")
   ========================================================================== */
.editing-section {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.editing-heading-group {
  margin-bottom: clamp(32px, 4vw, 56px);
}
.editing-heading-group h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.editing-banner-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #111210;
  color: #f4f1e9;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 20px 50px -10px rgba(18, 19, 16, 0.25);
  transition: border-color 300ms ease;
}

.editing-banner-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.editing-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: contrast(1.08) saturate(1.15);
  transition: transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
.editing-banner-card:hover .editing-banner-photo {
  transform: scale(1.03);
}

.editing-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 18, 16, 0.2) 0%,
    rgba(17, 18, 16, 0.65) 45%,
    rgba(17, 18, 16, 0.94) 100%
  );
}

.editing-banner-glass {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(28px, 4.5vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.editing-editorial {
  max-width: 620px;
}
.editing-badge-small {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-bottom: 12px;
}
.editing-editorial h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 14px;
}
.editing-editorial p {
  color: rgba(244, 241, 233, 0.82);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  margin-bottom: 28px;
}

.editing-social-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.edit-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  transition: all 260ms cubic-bezier(0.23, 1, 0.32, 1);
}
.edit-action-btn .edit-btn-icon {
  width: 20px;
  height: 20px;
}
.edit-action-btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}
.edit-action-btn:hover {
  transform: translateY(-2px);
}
.edit-action-btn:hover .icon {
  transform: translate(2px, -2px);
}

.yt-btn:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 10px 24px rgba(255, 0, 0, 0.4);
}

.ig-btn:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  box-shadow: 0 10px 24px rgba(220, 39, 67, 0.4);
}

/* Fanning Out Software Deck: Triggered ONLY on specific card hover */
.software-fan-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 26px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  outline: none;
}

.deck-cards-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 260px;
  height: 115px;
}

.deck-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 18px;
  transition: transform 440ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 440ms ease, z-index 0ms;
  will-change: transform;
}
.deck-card img {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: block;
}
.card-capcut img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
}
.card-soft-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 280ms ease, transform 280ms ease;
  white-space: nowrap;
}

/* Default Clustered State (Centered & Balanced) */
.card-premiere {
  transform: translateX(-34px) rotate(-8deg);
  z-index: 1;
}
.card-aftereffects {
  transform: translateX(0) translateY(0) rotate(0deg);
  z-index: 2;
}
.card-capcut {
  transform: translateX(34px) rotate(8deg);
  z-index: 3;
}

/* Fan out ONLY when hovering the specific 'Cut to the beat' card or stack */
.editing-banner-card:hover .card-premiere,
.software-fan-deck:focus-within .card-premiere {
  transform: translateX(-82px) translateY(-6px) rotate(-16deg) scale(1.06);
  z-index: 4;
}
.editing-banner-card:hover .card-premiere img {
  box-shadow: 0 16px 36px rgba(0, 0, 91, 0.65);
}

.editing-banner-card:hover .card-aftereffects,
.software-fan-deck:focus-within .card-aftereffects {
  transform: translateX(0) translateY(-22px) rotate(0deg) scale(1.15);
  z-index: 5;
}
.editing-banner-card:hover .card-aftereffects img {
  box-shadow: 0 22px 46px rgba(21, 0, 44, 0.7);
}

.editing-banner-card:hover .card-capcut,
.software-fan-deck:focus-within .card-capcut {
  transform: translateX(82px) translateY(-6px) rotate(16deg) scale(1.06);
  z-index: 4;
}
.editing-banner-card:hover .card-capcut img {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
}

.editing-banner-card:hover .card-soft-name {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   DRAWINGS SECTION: CYPHER STEP-BY-STEP & ARTWORK GALLERY
   ========================================================================== */
.drawings-section {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.drawings-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 64px);
  flex-wrap: wrap;
}

.drawings-title-col h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.drawings-spontaneous-card {
  position: relative;
  background: #fffef8;
  border: 1.5px solid #dcd8c8;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 440px;
  box-shadow: 0 10px 28px -6px rgba(36, 37, 31, 0.08);
  transform: rotate(-1.5deg);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
}
.drawings-spontaneous-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 16px 36px -6px rgba(36, 37, 31, 0.12);
}
.note-pushpin {
  position: absolute;
  top: -8px;
  left: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 6px var(--red-glow);
}
.note-quote {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 8px;
}
.note-attribution {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.drawings-content-body {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 84px);
}

/* Cypher Step-by-Step Block */
.cypher-process-block {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 6px 20px rgba(36, 37, 31, 0.03);
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.process-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.process-title-group h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
}
.process-title-group h3 span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.process-hint {
  font-size: 13px;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--muted);
}

.cypher-steps-row {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.cypher-steps-row::-webkit-scrollbar {
  display: none;
}

.step-card {
  margin: 0;
  flex: 0 0 clamp(180px, 18vw, 220px);
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(0.23, 1, 0.32, 1), border-color 240ms, box-shadow 280ms;
}
.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(36, 37, 31, 0.09);
}
.step-number-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.final-pill {
  color: var(--red);
}
.step-card-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.step-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 340ms var(--ease-out);
}
.step-card:hover .step-card-media img {
  transform: scale(1.05);
}
.step-card figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-family: Georgia, serif;
  font-style: italic;
}

.process-arrow {
  color: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}
.process-arrow .icon {
  width: 22px;
  height: 22px;
}

/* Drawings Gallery Block */
.drawings-gallery-header {
  margin-bottom: 24px;
}
.drawings-gallery-header h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.03em;
}
.drawings-gallery-header h3 span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.drawings-gallery-header p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}
.drawings-gallery-header .mobile-drawings-hint {
  display: none;
}

.drawings-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.drawing-paper-card {
  margin: 0;
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 18px 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(36, 37, 31, 0.04);
  transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 320ms ease, border-color 240ms ease;
  will-change: transform;
}
.drawing-paper-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--paper);
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
.drawing-paper-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--ink);
}
.drawing-paper-card figcaption .open-symbol {
  font-size: 14px;
  color: var(--muted);
  transition: transform 240ms ease, color 240ms ease;
}

.drawing-paper-card:hover {
  transform: translateY(-6px) rotate(0.6deg);
  border-color: var(--ink);
  box-shadow: 0 18px 36px -8px rgba(36, 37, 31, 0.12);
}
.drawing-paper-card:hover img {
  transform: scale(1.02);
}
.drawing-paper-card:hover figcaption .open-symbol {
  transform: translate(2px, -2px);
  color: var(--red);
}

@media (max-width: 540px) {
  .drawings-gallery-header {
    margin-bottom: 14px;
  }
  .drawings-gallery-header > p:not(.mobile-drawings-hint) {
    display: none;
  }
  .drawings-gallery-header .mobile-drawings-hint {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .drawings-cards-grid {
    display: flex;
    gap: 8px;
    width: calc(100% + var(--space));
    margin-right: calc(var(--space) * -1);
    padding-right: var(--space);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0 var(--space);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .drawings-cards-grid::-webkit-scrollbar {
    display: none;
  }
  .drawing-paper-card {
    flex: 0 0 min(78vw, 330px);
    border-radius: 12px;
    padding: 10px 10px 14px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .drawing-paper-card img {
    aspect-ratio: 4 / 5;
  }
}

/* ===========================================================================
   YEAH GELATO CASE STUDY
   ========================================================================== */
.campaign-page {
  min-height: 100vh;
  background: #ff5a00;
  color: #fffaf2;
}
.campaign-return {
  position: fixed;
  z-index: 100;
  top: 22px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 250, 242, 0.65);
  border-radius: 999px;
  background: rgba(42, 23, 13, 0.78);
  box-shadow: 0 8px 24px rgba(61, 24, 5, 0.2);
  color: #fffaf2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
.campaign-return:hover,
.campaign-return:focus-visible {
  background: #fffaf2;
  color: #b83208;
}
.campaign-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 130px var(--space) 96px;
}
.campaign-eyebrow {
  display: block;
  margin-bottom: 17px;
  color: #ffe2c5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.campaign-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .74fr);
  gap: clamp(38px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(44px, 7vw, 88px);
}
.campaign-intro h1 {
  max-width: 820px;
  font-size: clamp(56px, 9vw, 142px);
  letter-spacing: -0.07em;
  line-height: .82;
}
.campaign-intro h1 .serif {
  display: block;
  margin-top: 18px;
  color: #ffe2c5;
  font-size: .6em;
}
.campaign-intro p {
  max-width: 520px;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.55;
}
.campaign-hero-image {
  width: 100%;
  max-height: 760px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 28px 60px rgba(77, 23, 0, 0.24);
}
.campaign-section {
  margin-top: clamp(56px, 9vw, 128px);
}
.campaign-section-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.campaign-section-header h2 {
  font-size: clamp(34px, 4vw, 62px);
  letter-spacing: -0.05em;
}
.campaign-section-header p {
  max-width: 490px;
  color: #ffe2c5;
  line-height: 1.55;
}
.campaign-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.campaign-event-grid figure {
  margin: 0;
}
.campaign-event-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
}
.campaign-event-grid figcaption {
  margin-top: 10px;
  color: #ffe2c5;
  font-size: 13px;
}
.campaign-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.campaign-asset-grid figure,
.campaign-prints figure {
  margin: 0;
}
.campaign-asset-grid img,
.campaign-prints img {
  width: 100%;
  border-radius: 16px;
  background: #fffaf2;
}
.campaign-asset-grid img {
  aspect-ratio: 1;
  object-fit: cover;
}
.campaign-asset-grid figcaption,
.campaign-prints figcaption {
  margin-top: 10px;
  color: #ffe2c5;
  font-size: 13px;
}
.campaign-prints {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 18px;
  align-items: start;
}
.campaign-prints img {
  max-height: 820px;
  object-fit: cover;
  object-position: top;
}
.campaign-standees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.campaign-standees figure {
  margin: 0;
}
.campaign-standees img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 16px;
  background: #fffaf2;
  object-fit: contain;
}
.campaign-standees figcaption {
  margin-top: 10px;
  color: #ffe2c5;
  font-size: 13px;
}
@media (max-width: 800px) {
  .campaign-shell { padding-top: 112px; }
  .campaign-intro { grid-template-columns: 1fr; }
  .campaign-section-header { display: block; }
  .campaign-section-header p { margin-top: 12px; }
  .campaign-event-grid { grid-template-columns: 1fr; }
  .campaign-asset-grid { grid-template-columns: 1fr; }
  .campaign-prints { grid-template-columns: 1fr 1fr; }
  .campaign-standees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .campaign-prints { grid-template-columns: 1fr; }
  .campaign-standees { grid-template-columns: 1fr; }
}

/* CompassBite case study shares the project-page structure with its own palette. */
.compassbite-page {
  min-height: 100vh;
  background: #e0e9f8;
  color: #173154;
}
.compassbite-page .campaign-return {
  border-color: rgba(23, 49, 84, .28);
  background: rgba(255, 255, 255, .84);
  color: #173154;
  box-shadow: 0 8px 24px rgba(23, 49, 84, .14);
}
.compassbite-page .campaign-return:hover,
.compassbite-page .campaign-return:focus-visible {
  background: #173154;
  color: #fff;
}
.compassbite-page .campaign-eyebrow,
.compassbite-page .campaign-intro h1 .serif,
.compassbite-page .campaign-section-header p,
.compassbite-page .compassbite-interface-grid figcaption {
  color: #496c96;
}
.compassbite-page .campaign-hero-image {
  box-shadow: 0 28px 60px rgba(38, 77, 124, .2);
}
.compassbite-interface-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.compassbite-interface-grid figure {
  margin: 0;
  min-width: 0;
}
.compassbite-interface-grid img {
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(38, 77, 124, .12);
  object-fit: cover;
}
.compassbite-interface-grid figcaption {
  margin-top: 10px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .compassbite-interface-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .compassbite-interface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   ALWAYS-VISIBLE FLOATING BACK TO TOP ARROW (BOTTOM RIGHT)
   ========================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: 0 8px 24px rgba(36, 37, 31, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 95;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 200ms ease, box-shadow 260ms ease;
}
.scroll-to-top-btn:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--red);
  box-shadow: 0 14px 32px var(--red-glow);
}
.scroll-to-top-btn:active {
  transform: scale(0.92);
}
.scroll-to-top-btn .icon {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX MODAL WITH ARROWS & UNIFORM PREVIEW SIZING
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
}
.lightbox-modal[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 19, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: lightboxFadeIn 240ms ease-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lightboxZoomIn 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightboxZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform var(--motion-fast), background-color var(--motion-fast);
}
.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.08);
}

/* Lightbox Navigation Buttons (Left & Right) */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: transform 200ms ease, background-color 200ms ease, opacity 200ms ease;
}
.lightbox-nav-btn.prev-btn {
  left: -68px;
}
.lightbox-nav-btn.next-btn {
  right: -68px;
}
.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}
.lightbox-nav-btn .icon {
  width: 26px;
  height: 26px;
}

/* Uniform Preview Stage: Ensures all images display at a uniform generous scale */
.lightbox-stage {
  width: clamp(320px, 86vw, 1100px);
  height: clamp(300px, 78vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: min(520px, 100%); /* Fixes small images like 4.PNG appearing tiny */
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  color: rgba(244, 241, 233, 0.85);
  font-size: 14px;
  padding: 0 4px;
}
.lightbox-counter {
  font-size: 13px;
  opacity: 0.65;
  font-family: Space, sans-serif;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .lightbox-nav-btn.prev-btn {
    left: 8px;
  }
  .lightbox-nav-btn.next-btn {
    right: 8px;
  }
  .lightbox-image {
    min-width: unset;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    scroll-behavior: auto;
  }
  .carousel-slide,
  .photo-card,
  .drawing-paper-card,
  .deck-card,
  .lr-badge,
  .step-card,
  .scroll-to-top-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* Final layout overrides for the reduced professional work hierarchy. */
.case-study-facts dd {
  margin: 0;
}
.featured-carousel-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.work-section .section-heading h2 {
  flex: 0 0 clamp(280px, 34vw, 430px);
}
.work-section .section-heading {
  gap: clamp(20px, 3vw, 40px);
}
.work-section .section-heading p {
  max-width: 320px;
}
.featured-carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  overflow: visible;
  cursor: default;
}
.carousel-slide {
  min-width: 0;
  min-height: 100% !important;
}
@media (max-width: 900px) {
  .feature-pair,
  .carousel-track,
  .side-projects-grid {
    grid-template-columns: 1fr;
  }
  .campaign-hero {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .case-study-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.featured-primary-grid {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin-top: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.featured-primary-grid::-webkit-scrollbar {
  display: none;
}
.featured-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.featured-slide .feature-pair {
  height: 100%;
}
.aetheria-pair {
  background: var(--lime);
  color: #28233b;
}
.aetheria-pair .aetheria-art {
  box-sizing: border-box;
  min-width: 0;
  min-height: 420px;
  aspect-ratio: auto;
  padding: 30px;
  overflow: hidden;
  color: #28233b;
  text-decoration: none;
}
.aetheria-pair .aetheria-art img {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin-left: 0;
  flex: 1 1 auto;
  object-fit: contain;
}
.aetheria-pair .feature-story .underlined-link {
  border-color: #28233b80;
}
.compassbite-pair {
  background: #dce8f4;
  color: #244b75;
}
.compassbite-pair .campaign-hero {
  min-height: 420px;
  padding: 24px;
  box-sizing: border-box;
  background: #fff;
  object-fit: contain;
}
.compassbite-pair .feature-story .underlined-link {
  border-color: #244b7580;
}
.featured-title-changing #featured-title-main,
.featured-title-changing #featured-title-sub {
  animation: featured-title-swap 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes featured-title-swap {
  from {
    opacity: 0.25;
    filter: blur(3px);
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .section-heading {
    flex-wrap: wrap;
  }
  .featured-carousel-controls {
    margin-left: auto;
  }
  .work-section .section-heading p {
    max-width: 155px;
  }
  .work-section .section-heading h2 {
    flex-basis: auto;
  }
  .aetheria-pair .aetheria-art {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .compassbite-pair .campaign-hero {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-primary-grid {
    scroll-behavior: auto;
  }
  .featured-title-changing #featured-title-main,
  .featured-title-changing #featured-title-sub {
    animation: none;
  }
}
