/* ============================================
   CARLOS TARRATS PORTFOLIO
   Clean Type Scale
   ============================================ */

@font-face {
  font-family: 'TASA Orbiter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/TASAOrbiter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'TASA Orbiter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/TASAOrbiter-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'TASA Orbiter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/TASAOrbiter-Semibold.ttf') format('truetype');
}

/* ============================================
   PRELOADER
   ============================================ */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #252525;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader__label {
  font-family: Baskerville, 'Baskerville Old Face', serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.preloader__stack {
  position: relative;
  width: 200px;
  height: 160px;
}

.preloader__card {
  position: absolute;
  width: 180px;
  height: 120px;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transform-origin: center center;
}

.preloader__card::before,
.preloader__card::after {
  content: '';
  position: absolute;
  filter: blur(14px);
}

/* Card 1 & 6 - warm terracotta */
.preloader__card:nth-child(1),
.preloader__card:nth-child(6) {
  background: linear-gradient(180deg, #f0c4a0 0%, #e0a080 35%, #c07858 60%, #a05a40 100%);
  left: 10px; top: 14px;
}
.preloader__card:nth-child(1) { z-index: 1; animation: preloader-card1 12s ease-in-out infinite; }
.preloader__card:nth-child(6) { z-index: 6; animation: preloader-card6 12s ease-in-out infinite; }
.preloader__card:nth-child(1)::before,
.preloader__card:nth-child(6)::before {
  width: 60px; height: 40px;
  top: 10px; left: 15px;
  background: rgba(255, 220, 160, 0.5);
  border-radius: 50%;
}
.preloader__card:nth-child(1)::after,
.preloader__card:nth-child(6)::after {
  width: 120px; height: 35px;
  bottom: 5px; left: 30px;
  background: rgba(20, 8, 3, 0.6);
  border-radius: 40%;
}

/* Card 2 & 7 - muted sage */
.preloader__card:nth-child(2),
.preloader__card:nth-child(7) {
  background:
    radial-gradient(ellipse 70px 30px at 30% 30%, rgba(200, 220, 170, 0.5) 0%, transparent 100%),
    linear-gradient(185deg, #d0e0b8 0%, #a8c498 25%, #80aa75 50%, #6a9a60 70%, #508548 100%);
  left: 4px; top: 20px;
}
.preloader__card:nth-child(2) { z-index: 2; animation: preloader-card2 12s ease-in-out infinite; }
.preloader__card:nth-child(7) { z-index: 7; animation: preloader-card7 12s ease-in-out infinite; }
.preloader__card:nth-child(2)::before,
.preloader__card:nth-child(7)::before {
  width: 140px; height: 35px;
  bottom: 20px; left: -5px;
  background: rgba(22, 40, 18, 0.45);
  border-radius: 60% 80% 40% 30%;
}
.preloader__card:nth-child(2)::after,
.preloader__card:nth-child(7)::after {
  width: 100px; height: 28px;
  bottom: 35px; right: -10px;
  background: rgba(30, 55, 25, 0.35);
  border-radius: 50% 70% 50% 40%;
}

/* Card 3 & 8 - dusty blue */
.preloader__card:nth-child(3),
.preloader__card:nth-child(8) {
  background: linear-gradient(175deg, #c0d8e8 0%, #90b8d0 40%, #70a0b8 55%, #5a8aa0 100%);
  left: 16px; top: 10px;
}
.preloader__card:nth-child(3) { z-index: 3; animation: preloader-card3 12s ease-in-out infinite; }
.preloader__card:nth-child(8) { z-index: 8; animation: preloader-card8 12s ease-in-out infinite; }
.preloader__card:nth-child(3)::before,
.preloader__card:nth-child(8)::before {
  width: 90px; height: 25px;
  top: 15px; left: 50px;
  background: rgba(210, 225, 240, 0.45);
  border-radius: 50%;
}
.preloader__card:nth-child(3)::after,
.preloader__card:nth-child(8)::after {
  width: 140px; height: 30px;
  bottom: 10px; left: 20px;
  background: rgba(25, 50, 65, 0.45);
  border-radius: 50% 50% 30% 30%;
}

/* Card 4 & 9 - warm ochre — horizon bands */
.preloader__card:nth-child(4),
.preloader__card:nth-child(9) {
  background: linear-gradient(135deg, #e8d080 0%, #d8b860 30%, #c0a048 60%, #a88838 100%);
  left: 2px; top: 18px;
}
.preloader__card:nth-child(4) { z-index: 4; animation: preloader-card4 12s ease-in-out infinite; }
.preloader__card:nth-child(9) { z-index: 9; animation: preloader-card9 12s ease-in-out infinite; }
.preloader__card:nth-child(4)::before,
.preloader__card:nth-child(9)::before {
  width: 200px; height: 35px;
  bottom: 10px; left: -10px;
  background: rgba(40, 25, 8, 0.4);
  border-radius: 40% 60% 0 0;
}
.preloader__card:nth-child(4)::after,
.preloader__card:nth-child(9)::after {
  width: 200px; height: 20px;
  top: 0; left: -10px;
  background: rgba(255, 230, 160, 0.35);
  border-radius: 0 0 50% 50%;
}

/* Card 5 & 10 - soft mauve */
.preloader__card:nth-child(5),
.preloader__card:nth-child(10) {
  background:
    radial-gradient(ellipse 80px 50px at 65% 40%, rgba(200, 170, 190, 0.5) 0%, transparent 100%),
    linear-gradient(140deg, #d4b8cc 0%, #b898b0 40%, #a08098 70%, #886880 100%);
  left: 12px; top: 16px;
}
.preloader__card:nth-child(5)  { z-index: 5;  animation: preloader-card5  12s ease-in-out infinite; }
.preloader__card:nth-child(10) { z-index: 10; animation: preloader-card10 12s ease-in-out infinite; }
.preloader__card:nth-child(5)::before,
.preloader__card:nth-child(10)::before {
  width: 60px; height: 45px;
  top: 25px; left: 20px;
  background: rgba(150, 110, 140, 0.45);
  border-radius: 40%;
}
.preloader__card:nth-child(5)::after,
.preloader__card:nth-child(10)::after {
  width: 50px; height: 40px;
  top: 30px; right: 25px;
  background: rgba(220, 195, 210, 0.4);
  border-radius: 50%;
}

/* Stacking keyframes — 10 cards over 12s, fade out staggered at end */
@keyframes preloader-card1 {
  0%   { opacity: 0; transform: translateY(30px) rotate(-1.5deg); }
  4%   { opacity: 1; transform: translateY(0) rotate(-1.5deg); }
  88%  { opacity: 1; transform: translateY(0) rotate(-1.5deg); }
  96%  { opacity: 0; transform: translateY(0) rotate(-1.5deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card2 {
  0%   { opacity: 0; }
  9%   { opacity: 0; transform: translateY(30px) rotate(2.5deg); }
  13%  { opacity: 1; transform: translateY(0) rotate(2.5deg); }
  89%  { opacity: 1; transform: translateY(0) rotate(2.5deg); }
  97%  { opacity: 0; transform: translateY(0) rotate(2.5deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card3 {
  0%   { opacity: 0; }
  18%  { opacity: 0; transform: translateY(30px) rotate(-2deg); }
  22%  { opacity: 1; transform: translateY(0) rotate(-2deg); }
  90%  { opacity: 1; transform: translateY(0) rotate(-2deg); }
  97%  { opacity: 0; transform: translateY(0) rotate(-2deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card4 {
  0%   { opacity: 0; }
  27%  { opacity: 0; transform: translateY(30px) rotate(1.8deg); }
  31%  { opacity: 1; transform: translateY(0) rotate(1.8deg); }
  90%  { opacity: 1; transform: translateY(0) rotate(1.8deg); }
  97%  { opacity: 0; transform: translateY(0) rotate(1.8deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card5 {
  0%   { opacity: 0; }
  36%  { opacity: 0; transform: translateY(30px) rotate(-2.5deg); }
  40%  { opacity: 1; transform: translateY(0) rotate(-2.5deg); }
  91%  { opacity: 1; transform: translateY(0) rotate(-2.5deg); }
  98%  { opacity: 0; transform: translateY(0) rotate(-2.5deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card6 {
  0%   { opacity: 0; }
  45%  { opacity: 0; transform: translateY(30px) rotate(-1.5deg); }
  49%  { opacity: 1; transform: translateY(0) rotate(-1.5deg); }
  91%  { opacity: 1; transform: translateY(0) rotate(-1.5deg); }
  98%  { opacity: 0; transform: translateY(0) rotate(-1.5deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card7 {
  0%   { opacity: 0; }
  54%  { opacity: 0; transform: translateY(30px) rotate(2.5deg); }
  58%  { opacity: 1; transform: translateY(0) rotate(2.5deg); }
  92%  { opacity: 1; transform: translateY(0) rotate(2.5deg); }
  98%  { opacity: 0; transform: translateY(0) rotate(2.5deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card8 {
  0%   { opacity: 0; }
  63%  { opacity: 0; transform: translateY(30px) rotate(-2deg); }
  67%  { opacity: 1; transform: translateY(0) rotate(-2deg); }
  93%  { opacity: 1; transform: translateY(0) rotate(-2deg); }
  99%  { opacity: 0; transform: translateY(0) rotate(-2deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card9 {
  0%   { opacity: 0; }
  72%  { opacity: 0; transform: translateY(30px) rotate(1.8deg); }
  76%  { opacity: 1; transform: translateY(0) rotate(1.8deg); }
  94%  { opacity: 1; transform: translateY(0) rotate(1.8deg); }
  99%  { opacity: 0; transform: translateY(0) rotate(1.8deg); }
  100% { opacity: 0; }
}
@keyframes preloader-card10 {
  0%   { opacity: 0; }
  81%  { opacity: 0; transform: translateY(30px) rotate(-2.5deg); }
  85%  { opacity: 1; transform: translateY(0) rotate(-2.5deg); }
  95%  { opacity: 1; transform: translateY(0) rotate(-2.5deg); }
  100% { opacity: 0; transform: translateY(0) rotate(-2.5deg); }
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #252525;
  color: #ffffff;
  font-family: system-ui, sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

/* Skip Link - Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #252525;
  padding: 12px 24px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  border-radius: 4px;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ============================================
   TYPE SCALE
   h1: 123px - Hero, Section titles
   h2: 55px - Project titles, Portfolio name
   .body: 30px - Bio, descriptions
   .label: 36px - Contact, Portfolio label
   ============================================ */

h1 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 90px;
  line-height: 88px;
  letter-spacing: -1px;
  margin-bottom: 30px;
}

h2 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 58px;
  letter-spacing: -0.5px;
}

.body {
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.6px;
}

.label {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.italic {
  font-style: italic;
}

.center {
  text-align: center;
}

.half-width {
  width: calc(50% - 15px);
}

.align-right {
  margin-left: auto;
}

/* Colors */
.color--control {
  color: #cbe8ff;
}

.color--adaptiveshop {
  color: #ffcbcc;
}

.color--lineform {
  color: #ffcbd4;
}

.color--dds {
  color: #f5ffcb;
}

.color--eloquii {
  color: #cdcbff;
}

.color--rankbee {
  color: #cdcbff;
}

.color--thayer {
  color: #ffcbd4;
}

.color--kikoff {
  color: #cdcbff;
}

html[data-theme="peach"] .color--lineform,
html[data-theme="peach"] .project-header__title-name--lineform,
html[data-theme="pink"] .color--lineform,
html[data-theme="pink"] .project-header__title-name--lineform,
html[data-theme="mint"] .color--lineform,
html[data-theme="mint"] .project-header__title-name--lineform,
html[data-theme="yellow"] .color--lineform,
html[data-theme="yellow"] .project-header__title-name--lineform,
html[data-theme="lavender"] .color--lineform,
html[data-theme="lavender"] .project-header__title-name--lineform {
  color: #1a1a1a !important;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */

.page {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.intro {
  margin-bottom: 60px;
}

@media (min-width: 1001px) {
  .intro {
    display: grid;
    grid-template-columns: calc(50% - 15px) calc(50% - 15px);
    gap: 30px;
    align-items: start;
  }

  .intro .hero,
  .intro__copy {
    margin-bottom: 0;
  }
}

.intro__body {
  margin-bottom: 20px;
}

.intro__body:last-child {
  margin-bottom: 0;
}

.career {
  padding-top: 80px;
}

.career .location-line {
  margin-top: 0;
}

.career__body {
  margin-bottom: 20px;
  padding-left: 1.25em;
}

.career__body::before {
  content: "•";
  display: inline-block;
  width: 1.25em;
  margin-left: -1.25em;
}

.career__col:last-child .career__body:last-child {
  margin-bottom: 0;
}

@media (min-width: 1001px) {
  .career__copy {
    display: grid;
    grid-template-columns: calc(50% - 15px) calc(50% - 15px);
    gap: 30px;
    align-items: start;
  }

  .career__col .career__body:last-child {
    margin-bottom: 0;
  }
}

.hero {
  position: relative;
  padding-top: 0;
  margin-bottom: 30px;
}

.hero h1 {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 32px;
  line-height: 36px;
  font-style: italic;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.hero-flicker {
  position: absolute;
  top: 50px;
  right: 0;
  width: 297px;
  height: 198px;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-flicker.is-loaded {
  background: transparent;
}

.hero-flicker__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero-flicker__img.is-active {
  opacity: 1;
}

.hero .label:not(.contact-link) {
  color: #cbe3ff;
  margin-left: 20px;
}

.portfolio-line {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  color: #ffcbcc;
  margin-top: -8px;
  margin-bottom: 30px;
}

.contact-link {
  color: #cccccc !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.7;
}

.linkedin-link {
  color: #cccccc;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.65em;
  margin-right: 0.65em;
  margin-bottom: 4px;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

.linkedin-link:hover {
  opacity: 0.7;
}

.selected-projects-text {
  color: #ffe4cb !important;
  font-size: 24px;
}

.see-more-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-style: normal;
  font-size: 14px;
  font-weight: 200;
  line-height: 18px;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 100px;
  text-decoration: none;
  margin-left: 0.5em;
  vertical-align: middle;
  transition: background 0.2s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: background;
  contain: paint;
}

.see-more-tag:hover {
  background: rgba(255, 255, 255, 0.25);
}

.see-more-tag svg {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}

.project-kind-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-style: normal;
  font-weight: 200;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.5px;
  color: var(--project-accent, rgba(255, 255, 255, 0.72));
  background: color-mix(in srgb, var(--project-accent, #fff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--project-accent, #fff) 58%, transparent);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}

.project-row--adaptiveshop {
  --project-accent: #ffcbcc;
}

.project-row--dds {
  --project-accent: #f5ffcb;
}

.project-row--control {
  --project-accent: #cbe8ff;
}

.project-row--rankbee {
  --project-accent: #cdcbff;
}

.project-row--frank {
  --project-accent: #ffcbd4;
}

.project-row--lineform {
  --project-accent: #ffcbd4;
}

.tagline {
  text-align: right;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  color: #ffcbcc;
}

.location-line {
  text-align: left;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  color: #ffffff;
  margin-top: -30px;
  margin-bottom: 24px;
}

/* ============================================
   BIO
   ============================================ */

.page > .body {
  margin-bottom: 60px;
}

/* ============================================
   PROJECT ROW - Two columns with float
   ============================================ */

.project-row {
  margin-bottom: 60px;
}

.project-row::after {
  content: '';
  display: table;
  clear: both;
}

.project-row > .card {
  float: left;
  width: calc(50% - 15px);
}

.project-row > h2 {
  float: right;
  width: calc(50% - 15px);
}

.project-row > .project-row__copy {
  float: right;
  width: calc(50% - 15px);
}

.project-row__copy > h2 {
  margin-top: 10px;
}

.project-row--reverse > h2 {
  float: left;
}

.project-row--reverse > .project-row__copy {
  float: left;
}

.project-row--reverse > .card {
  float: right;
}

.project-row--cards > .card {
  float: left;
  width: calc(50% - 15px);
}

.project-row--cards > .card + .card {
  float: right;
}

.project-row--cards {
  margin-bottom: 30px;
}

/* ============================================
   PROJECT STACK - Vertical layout
   ============================================ */

.project-stack {
  margin-bottom: 60px;
}

.project-stack > h2 {
  margin-bottom: 30px;
}

/* ============================================
   PROJECT PAIR - Control + RankBee side by side
   ============================================ */

.project-pair {
  display: grid;
  grid-template-columns: calc(50% - 15px) calc(50% - 15px);
  grid-template-rows: auto auto auto;
  column-gap: 30px;
  row-gap: 30px;
  margin-bottom: 60px;
}

.project-pair__item--control {
  grid-column: 1;
  display: contents;
}

.project-pair__item--control > h2 {
  grid-column: 1;
  grid-row: 1;
}

.project-pair__item--control > .card {
  grid-column: 1;
  grid-row: 2;
}

.project-pair__item--rankbee {
  grid-column: 2;
  display: contents;
}

.project-pair__item--rankbee > .card {
  grid-column: 2;
  grid-row: 2;
}

.project-pair__item--rankbee > h2 {
  grid-column: 2;
  grid-row: 3;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  display: block;
}

.card--control {
  aspect-ratio: 1.5;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card--control.is-loaded {
  background: #444444;
}

.card--adaptiveshop {
  aspect-ratio: 1.5;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card--adaptiveshop.is-loaded {
  background: #444444;
}

.card--lineform {
  aspect-ratio: 1.5;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card--lineform.is-loaded {
  background: #444444;
}

.card--dds {
  aspect-ratio: 1.5;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card--dds.is-loaded {
  background: #444444;
}

.card--eloquii {
  aspect-ratio: 1.5;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card--eloquii.is-loaded {
  background: #444444;
}

.card--thayer {
  aspect-ratio: 1.5;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card--thayer.is-loaded {
  background: #444444;
}

.card--rankbee {
  aspect-ratio: 1.5;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card--rankbee.is-loaded {
  background: #444444;
}

.card--frank {
  aspect-ratio: 1.5;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.card--frank.is-loaded {
  background: #444444;
}

/* Card images */
.card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card.is-loaded img {
  opacity: 1;
}

/* Card videos */
.card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card.is-loaded video {
  opacity: 1;
}

/* ============================================
   COOL BUTTON (from Figma SVG export)
   Size: 65x65px, centered in 125x125 for shadow
   ============================================ */

.cool-button {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 58px;
  height: 58px;
  cursor: pointer;
  filter: drop-shadow(0 0 15px rgba(0, 84, 255, 0.1));
  z-index: 1;
  transform: translateZ(0);
}

.cool-button svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cool-button svg * {
  shape-rendering: geometricPrecision;
}

.cool-button__static {
  z-index: 2;
}

.cool-button__hover {
  z-index: 1;
  visibility: hidden;
}

/* Card media hover — subtle dim on image/video only, not the SVG button */
.card:hover img,
.card:hover video {
  opacity: 0.85;
}

.card:hover .cool-button__static {
  visibility: hidden;
}

.card:hover .cool-button__hover {
  visibility: visible;
}

@media (max-width: 1000px) {
  .cool-button {
    width: 39px;
    height: 39px;
    bottom: 10px;
    left: 10px;
  }
}

/* ============================================
   SECTION TITLES (h1.center)
   ============================================ */

h1.center {
  margin-bottom: 35px;
  text-decoration: none;
}

/* h1.section-brand - REMOVED 2026-02-05
h1.section-brand {
  margin-top: 110px;
}
*/

/* ============================================
   BRAND CAROUSEL (REMOVED 2026-02-05)
   Recover from git: git show HEAD~1:styles.css
   ============================================ */

/*
.brand-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 80px 0 100px;
  background: transparent;
  position: relative;
}

.brand-carousel-wrapper::before,
.brand-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 10;
  pointer-events: none;
}

.brand-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #252525 0%, transparent 100%);
}

.brand-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #252525 0%, transparent 100%);
}

.brand-carousel {
  width: 100%;
  transform-style: preserve-3d;
  perspective: 8000px;
  transform: rotateX(-15deg);
}

.brand-carousel__track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 40px 0;
  animation: scroll-left 120s linear infinite;
  width: max-content;
  transform-style: preserve-3d;
}

.brand-carousel__item {
  flex-shrink: 0;
  transform: rotateY(-50deg);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  cursor: pointer;
  background: linear-gradient(-90deg, #2e2e2e 0%, #383838 50%, #2e2e2e 100%);
  background-size: 400% 400%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  min-width: 356px;
  min-height: 200px;
}

.brand-carousel__item.is-loaded {
  animation: none;
  background: none;
  min-width: auto;
  min-height: auto;
}

.brand-carousel__item.is-hovered {
  transform: rotateY(0deg) translateY(-70px) scale(1.1);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 20;
}

.brand-carousel__item img {
  display: block;
  height: 200px;
  width: auto;
  box-shadow:
    8px 12px 24px rgba(0, 0, 0, 0.08),
    20px 30px 60px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-carousel__item.is-loaded img {
  opacity: 1;
}

.brand-carousel__item iframe {
  display: block;
  width: 356px;
  height: 200px;
  box-shadow:
    8px 12px 24px rgba(0, 0, 0, 0.08),
    20px 30px 60px rgba(0, 0, 0, 0.06);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
*/

/* ============================================
   COPYRIGHT
   ============================================ */

.contact-section {
  padding-top: 80px;
}

.contact-section__title {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 16px;
}

.contact-section__links {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding-left: 4px;
}

.contact-section__links .linkedin-link {
  margin: 0;
}

.contact-section__note {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 12px;
}

.contact-link--icon {
  display: inline-flex;
  color: #cccccc;
  transition: opacity 0.2s ease;
}

.contact-link--icon:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .contact-section {
    padding-top: 80px;
  }

  .contact-section__title {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
  }

  .contact-section__links {
    flex-wrap: wrap;
  }

  .contact-section__note {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
  }
}

.page > .body.center {
  margin-top: 120px;
  padding-bottom: 0;
}

/* ============================================
   PROJECT DETAIL PAGES
   ============================================ */

.detail-page {
  min-height: 100vh;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.detail-nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 50px;
}

.back-link {
  display: block;
  width: fit-content;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  color: #ffffff;
  background-color: #3a3a3a;
  padding: 5px 35px;
  border-radius: 100px;
  margin: 0;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.7;
}

.external-link {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.external-link:hover {
  opacity: 0.7;
}

.external-link svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.external-link .arrow-icon {
  margin-right: -4px;
}

.external-link--control {
  color: #cbe8ff;
}

.external-link--adaptiveshop {
  color: #ffcbcc;
}

.external-link--lineform {
  color: #ffcbd4;
}

.external-link--eloquii {
  color: #cdcbff;
}

.external-link--rankbee {
  color: #cdcbff;
}

.external-link--dds {
  color: #f5ffcb;
}

.external-link--frank {
  color: #ffcbd4;
}

.content-card {
  max-width: 100%;
}

.project-header {
  display: table;
  width: 100%;
  margin-bottom: 60px;
}

.project-header__title {
  display: table-cell;
  width: 45%;
  vertical-align: top;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 58px;
  letter-spacing: -0.5px;
}

.project-header__title-name {
  font-style: italic;
}

.project-header__title-name--control {
  color: #cbe8ff;
}

.project-header__title-name--adaptiveshop {
  color: #ffcbcc;
}

.project-header__title-name--lineform {
  color: #ffcbd4;
}

.project-header__title-name--eloquii {
  color: #cdcbff;
}

.project-header__title-name--rankbee {
  color: #cdcbff;
}

.project-header__title-name--dds {
  color: #f5ffcb;
}

.project-header__title-name--kikoff {
  color: #cdcbff;
}

.project-header__title-name--loca {
  color: #cbe8ff;
}

.project-header__title-name--print-media {
  color: #f5ffcb;
}

.project-header__title-dash {
  font-style: italic;
}

.project-header__description {
  display: table-cell;
  vertical-align: top;
  padding-left: 60px;
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.6px;
}

.project-header__description p {
  margin-bottom: 20px;
}

.project-header__description p:last-child {
  margin-bottom: 0;
}

.project-images {
  margin-bottom: 30px;
  transition: opacity 0.2s ease;
}

/* ============================================
   VIEW TOGGLE (Visual / Text)
   ============================================ */

.view-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  width: fit-content;
}

.view-toggle__btn {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 24px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.view-toggle__btn:first-child {
  border-radius: 100px 0 0 100px;
  border-right: none;
}

.view-toggle__btn:last-child {
  border-radius: 0 100px 100px 0;
}

.view-toggle__btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.view-toggle__btn.active {
  color: #ffffff;
  background-color: #3a3a3a;
  border-color: #3a3a3a;
}

.view-toggle__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Text mode toggling */
.project-text {
  display: none;
  margin-bottom: 30px;
  transition: opacity 0.2s ease;
}

.is-text-mode .project-images {
  display: none;
}

.is-text-mode .project-text {
  display: block;
}

.project-text__section {
  margin-bottom: 48px;
}

.project-text__section:last-child {
  margin-bottom: 0;
}

.project-text__heading {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  color: #ffffff;
  margin-bottom: 12px;
}

.project-text__body {
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.project-text__body + .project-text__body,
.project-text__body + .project-text__list,
.project-text__list + .project-text__body {
  margin-top: 20px;
}

.project-text__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.project-text__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

.project-text__list li:last-child {
  margin-bottom: 0;
}

.project-text__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
}

/* Skeleton loading animation */
@keyframes skeleton-pulse {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -135% 0%;
  }
}

.project-images__item {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  background: #1a1a1a;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-images__item.is-loaded {
  opacity: 1;
  background: none;
}

.project-images__item:last-child {
  margin-bottom: 0;
}

.project-images__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 30px;
  background: #1a1a1a;
}

.project-images__placeholder:last-child {
  margin-bottom: 0;
}

.project-images__video {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  background: #1a1a1a;
}

.project-images__video.is-loaded {
  background: none;
}

.project-images__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-images__video video {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-images__video.is-loaded video {
  opacity: 1;
}

.dds-video__play:not([hidden]) {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #06f;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.dds-video__play svg {
  width: 28px;
  height: 28px;
}

.dds-video__play:focus-visible {
  outline: 3px solid #06f;
  outline-offset: 3px;
}

/* Project images grid - 2x2 layout for desktop */
.project-images__grid {
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 15px));
  gap: 30px;
  margin-bottom: 30px;
}

.project-images__grid .project-images__video {
  margin-bottom: 0;
}

.project-images__grid .project-images__item {
  margin-bottom: 0;
}

.project-images__grid:last-child {
  margin-bottom: 0;
}

/* Image enlarge wrapper */
.project-images__img-wrap {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

.project-images__img-wrap:last-child {
  margin-bottom: 0;
}

.project-images__img-wrap .project-images__item {
  margin-bottom: 0;
}

.project-images__grid .project-images__img-wrap {
  margin-bottom: 0;
}

.project-images__section-intro {
  display: table;
  width: 100%;
  margin: 60px 0 45px;
}

.project-images__section-title {
  display: table-cell;
  width: 45%;
  vertical-align: top;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 50px;
  line-height: 58px;
  color: rgba(255,255,255,0.4);
  letter-spacing: -0.5px;
  text-align: left;
  margin: 0;
}

.project-images__section-copy {
  display: table-cell;
  vertical-align: top;
  padding-left: 60px;
}

.print-media-production {
  margin: 0 0 30px;
}

.print-media-production__intro {
  display: table;
  width: 100%;
  margin: 60px 0 45px;
}

.print-media-production__title {
  display: table-cell;
  width: 45%;
  vertical-align: top;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 50px;
  line-height: 58px;
  letter-spacing: -0.5px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.print-media-production__copy {
  display: table-cell;
  vertical-align: top;
  padding-left: 60px;
}

.print-media-production__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
}

.print-media-production__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Expand button on project images */
.project-images__expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.project-images__expand:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
  background: rgba(0,0,0,0.7);
}

.project-images__expand svg {
  width: 16px;
  height: 16px;
}

/* Project lightbox */
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.project-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-lightbox__content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-lightbox img {
  max-width: 82vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.project-lightbox.is-open img {
  transform: scale(1);
}

.project-lightbox video {
  max-width: 82vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: none;
}

.project-lightbox.is-open video {
  transform: scale(1);
}

.project-lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgb(30,30,30);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 210;
}

.project-lightbox__close:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

/* Lightbox navigation arrows (desktop only) */
.project-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgb(30,30,30);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 210;
}

.project-lightbox__nav:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.project-lightbox__nav--prev {
  left: 24px;
}

.project-lightbox__nav--next {
  right: 24px;
}

@media (min-width: 769px) {
  .project-lightbox.is-open .project-lightbox__nav {
    display: flex;
  }
}

/* Archive section */
.archive {
  padding-top: 0;
}

.archive__title {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 24px;
}

.archive__list {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.archive__row {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.archive__link {
  position: relative;
  display: grid;
  grid-template-columns: 160px 100px 1fr 110px auto;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
  text-decoration: none;
}

.archive__link > :not(.archive__preview) {
  transition: opacity 0.2s ease;
}

.archive__link:hover > :not(.archive__preview),
.archive__link:focus-visible > :not(.archive__preview) {
  opacity: 0.7;
}

.archive__preview {
  position: fixed;
  left: var(--archive-preview-x, 50vw);
  top: var(--archive-preview-y, 50vh);
  z-index: 20;
  width: min(400px, 42vw);
  aspect-ratio: 2624 / 2122;
  object-fit: cover;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.archive__preview--contain {
  object-fit: contain;
  box-sizing: border-box;
  padding: 24px;
  background: #fff;
}

.archive__link:hover .archive__preview,
.archive__link:focus-visible .archive__preview {
  opacity: 1;
  transform: scale(1);
}

.see-more-tag--disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  pointer-events: none;
  cursor: not-allowed;
}

.see-more-tag--disabled:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.archive__company {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 22px;
  color: rgba(255,255,255,0.85);
}

.archive__purpose {
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 20px;
  color: rgba(255,255,255,0.5);
}

.archive__kind {
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  white-space: nowrap;
}

.archive__status {
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 300;
  font-size: 20px;
  color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.archive__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.archive__dot--published {
  background: #4CAF50;
}

.archive__dot--paused {
  background: #FF9800;
}

.archive__dot--in-progress {
  background: #448AFF;
}

@media (max-width: 768px) {
  .archive {
    padding-top: 20px;
  }

  .archive__title {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
  }

  .archive__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .archive__company {
    width: 100%;
    font-size: 18px;
  }

  .archive__kind {
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.7px;
  }

  .archive__purpose {
    width: 100%;
    font-size: 16px;
  }

  .archive__status {
    font-size: 16px;
  }

  .archive__link .see-more-tag {
    margin-left: auto;
  }

  .archive__preview {
    display: none;
  }
}

/* ============================================
   LIBRARY SECTION
   ============================================ */

.library {
  padding-top: 80px;
}

.library__title {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 24px;
}

.library__scroll {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  padding-top: 6px;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.library__scroll:active {
  cursor: grabbing;
}

.library__scroll.is-dragging,
.library__scroll.is-dragging * {
  cursor: grabbing;
}

.library__scroll img,
.library__scroll * {
  user-select: none;
  -webkit-user-drag: none;
}

.library__scroll::-webkit-scrollbar {
  display: none;
}

.library__label {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
  flex-shrink: 0;
}

.library__book {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 120px;
  outline: none;
  cursor: help;
}

.library__book:focus .library__cover,
.library__book:focus-visible .library__cover {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

.library__tooltip {
  position: fixed;
  left: 24px;
  top: 24px;
  z-index: 30;
  width: min(260px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(18, 18, 18, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-size: 14px;
  font-weight: 200;
  line-height: 19px;
  letter-spacing: 0.35px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.library__tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.library__cover {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.library__book-title {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.library__book-author {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library__more {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
  align-self: flex-start;
  margin-top: 80px;
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 8px;
}

@media (max-width: 768px) {
  .library {
    padding-top: 80px;
  }

  .library__title {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
  }

  .library__book {
    width: 100px;
  }

  .library__cover {
    width: 100px;
    height: 150px;
  }

  .library__book-title {
    font-size: 12px;
  }

  .library__book-author {
    font-size: 11px;
  }
}

/* ============================================
   VINYL SECTION
   ============================================ */

.vinyl {
  padding-top: 120px;
}

.vinyl__title {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 50px;
  line-height: 58px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

.vinyl__scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.vinyl__scroll:active {
  cursor: grabbing;
}

.vinyl__scroll::-webkit-scrollbar {
  display: none;
}

.vinyl__label {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
  flex-shrink: 0;
}

.vinyl__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  margin-right: 20px;
}

.vinyl__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 240px;
}

.vinyl__cover {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.vinyl__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vinyl__album {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vinyl__artist {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .vinyl {
    padding-top: 80px;
  }

  .vinyl__title {
    font-size: 28px;
    line-height: 34px;
  }

  .vinyl__item {
    min-width: 200px;
  }
}

/* ============================================
   PHOTOS SECTION
   ============================================ */

.photos {
  padding-top: 120px;
}

.photos__title {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 50px;
  line-height: 58px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

.photos__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.photos__scroll:active {
  cursor: grabbing;
}

.photos__scroll img {
  user-select: none;
  -webkit-user-drag: none;
}

.photos__scroll::-webkit-scrollbar {
  display: none;
}

.photos__img {
  height: 340px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
}

@media (max-width: 768px) {
  .photos {
    padding-top: 40px;
  }

  .photos__title {
    font-size: 28px;
    line-height: 34px;
  }

  .photos__img {
    height: 260px;
  }
}

.detail-footer {
  padding: 40px 0;
  text-align: center;
}

.detail-footer__copyright {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #ffffff;
}

/* ============================================
   RESPONSIVE - TABLET (1000px breakpoint)
   All fonts 20% smaller
   ============================================ */


@media (max-width: 1000px) and (min-width: 801px) {
  h1 {
    font-size: 70px;
    line-height: 62px;
    letter-spacing: -0.5px;
  }

  .hero h1 {
    max-width: 720px;
  }

  h2 {
    font-size: 35px;
    line-height: 40px;
    letter-spacing: 0px;
  }

  .label,
  .portfolio-line,
  .tagline,
  .location-line {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 0.25px;
  }

  .branding-image {
    width: 384px;
  }

  .back-link {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 0.25px;
  }

  .project-header__title {
    font-size: 35px;
    line-height: 40px;
    letter-spacing: 0px;
  }

  .project-images__section-title {
    font-size: 35px;
    line-height: 40px;
    letter-spacing: 0px;
  }

  .print-media-production__intro {
    margin: 50px 0 36px;
  }

  .print-media-production__title {
    font-size: 35px;
    line-height: 40px;
    letter-spacing: 0px;
  }

  .detail-footer__copyright {
    font-size: 20px;
    line-height: 28px;
  }

  .location-line {
    padding-top: 0;
  }

  /* Project images grid stacks on tablet */
  .project-images__grid {
    display: block;
    margin-bottom: 30px;
  }

  .project-images__grid:last-child {
    margin-bottom: 0;
  }

  .project-images__grid .project-images__video {
    margin-bottom: 30px;
  }

  .project-images__grid .project-images__video:last-child {
    margin-bottom: 0;
  }

  .project-images__grid .project-images__item {
    margin-bottom: 30px;
  }

  .project-images__grid .project-images__item:last-child {
    margin-bottom: 0;
  }

  .project-images__grid .project-images__img-wrap {
    margin-bottom: 30px;
  }

  .project-images__grid .project-images__img-wrap:last-child {
    margin-bottom: 0;
  }

  .view-toggle__btn {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.75px;
    padding: 5px 20px;
  }

  .project-text__heading {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 0.25px;
  }

  .see-more-tag {
    font-size: 12px;
    line-height: 16px;
    padding: 5px 12px;
    gap: 4px;
  }

  .project-kind-tag {
    font-size: 12px;
    line-height: 16px;
    padding: 3px 9px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (800px breakpoint)
   All fonts 20% smaller than tablet
   ============================================ */

@media (max-width: 800px) {
  .page {
    padding: 0 20px;
  }

  .body {
    font-size: 16px;
    line-height: 24px;
  }

  h1 {
    font-size: 44px;
    line-height: 39px;
    letter-spacing: 0px;
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
  }

  .label,
  .portfolio-line,
  .tagline,
  .location-line {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
  }

  .branding-image {
    width: 384px;
  }

  /* Brand carousel media queries (REMOVED 2026-02-05)
  .brand-carousel__item {
    min-width: 249px;
    min-height: 140px;
  }

  .brand-carousel__item img {
    height: 140px;
  }

  .brand-carousel__item iframe {
    width: 249px;
    height: 140px;
  }

  .brand-carousel-wrapper::before,
  .brand-carousel-wrapper::after {
    width: 60px;
  }

  .brand-carousel__track {
    animation-duration: 100s;
  }
  */

  .detail-page {
    padding: 0 20px;
  }

  .detail-nav {
    justify-content: flex-start;
    margin: 20px 0 20px;
  }

  .back-link {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
    padding: 8px 30px;
    margin: 0;
  }

  .external-link {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
  }

  .external-link svg {
    width: 16px;
    height: 16px;
  }

  .external-link .arrow-icon {
    margin-right: -2px;
  }

  .content-card {
    padding: 0;
    border-radius: 0;
  }

  .project-header {
    display: block;
    margin-bottom: 40px;
  }

  .project-header__title {
    display: block;
    width: 100%;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
  }

  .project-header__description {
    display: block;
    width: 100%;
    padding-left: 0;
    font-size: 16px;
    line-height: 24px;
  }

  .project-images__section-intro {
    display: block;
    margin: 40px 0 30px;
  }

  .project-images__section-title {
    display: block;
    width: 100%;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
  }

  .project-images__section-copy {
    display: block;
    width: 100%;
    padding-left: 0;
  }

  .print-media-production__intro {
    display: block;
    margin: 40px 0 30px;
  }

  .print-media-production__title {
    display: block;
    width: 100%;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
  }

  .print-media-production__copy {
    display: block;
    width: 100%;
    padding-left: 0;
  }

  .detail-footer__copyright {
    font-size: 16px;
    line-height: 24px;
  }

  /* Project images grid stacks on mobile */
  .project-images__grid {
    display: block;
    margin-bottom: 30px;
  }

  .project-images__grid:last-child {
    margin-bottom: 0;
  }

  .project-images__grid .project-images__video {
    margin-bottom: 30px;
  }

  .project-images__grid .project-images__video:last-child {
    margin-bottom: 0;
  }

  .project-images__grid .project-images__item {
    margin-bottom: 30px;
  }

  .project-images__grid .project-images__item:last-child {
    margin-bottom: 0;
  }

  .project-images__grid .project-images__img-wrap {
    margin-bottom: 30px;
  }

  .project-images__grid .project-images__img-wrap:last-child {
    margin-bottom: 0;
  }

  /* Hero reorder for mobile */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero h1 {
    order: 1;
  }

  .hero .label {
    order: 2;
    margin-bottom: 30px;
  }

  .hero-flicker {
    position: relative;
    top: auto;
    right: auto;
    order: 3;
    width: 100%;
    max-width: 250px;
    height: 167px;
    margin-bottom: 30px;
  }

  .portfolio-line {
    order: 4;
    margin-top: 4px;
    margin-bottom: 0px;
  }

  .selected-projects-text {
    display: block;
  }

  .tagline {
    order: 5;
  }

  .location-line {
    order: 6;
    margin-bottom: 30px;
  }

  /* Control: text above, card below */
  .project-row {
    display: flex;
    flex-direction: column;
  }

  .project-row > h2,
  .project-row > .project-row__copy {
    order: 1;
    float: none;
    width: 100%;
    margin-bottom: 30px;
  }

  .project-row__copy > h2 {
    margin-top: 8px;
  }

  .project-row > .card {
    order: 2;
    float: none;
    width: 100%;
  }

  /* Control + RankBee stack on mobile */
  .project-pair {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .project-pair__item--control,
  .project-pair__item--rankbee {
    display: flex;
    flex-direction: column;
  }

  .project-pair__item--control {
    margin-bottom: 60px;
  }

  .project-pair__item--control > h2,
  .project-pair__item--rankbee > h2 {
    margin-bottom: 30px;
  }

  .view-toggle__btn {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 1px;
    padding: 5px 18px;
  }

  .project-text__heading {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
  }

  .project-text__body {
    font-size: 16px;
    line-height: 24px;
  }

  .project-text__list {
    font-size: 16px;
    line-height: 24px;
  }

  .project-text__body + .project-text__body,
  .project-text__body + .project-text__list,
  .project-text__list + .project-text__body {
    margin-top: 16px;
  }

  .project-text__section {
    margin-bottom: 36px;
  }

  .see-more-tag {
    font-size: 10px;
    line-height: 12px;
    padding: 3px 8px;
    gap: 3px;
  }

  .project-kind-tag {
    font-size: 10px;
    line-height: 12px;
    padding: 2px 7px;
  }
}

/* ============================================
   2026 PORTFOLIO REFRESH
   A quiet, text-led portfolio with a single typeface and white canvas.
   ============================================ */

html,
html[data-theme],
html[data-theme] body,
body {
  background: #ffffff !important;
  color: #151515 !important;
}

body,
body * {
  font-family: 'TASA Orbiter', Arial, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: -0.035em;
}

body {
  min-width: 320px;
  line-height: 1.25;
  transition: none;
}

button,
input,
textarea {
  font: inherit;
}

.top-bar {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  min-height: 68px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff !important;
  border: 0;
  z-index: 2;
}

.site-name,
.site-nav {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.site-name:hover,
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  opacity: 0.55;
}

.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-bar__colors,
.chat-trigger,
.preloader,
.silk-shader-canvas {
  display: none !important;
}

.page {
  max-width: 1440px;
  padding: 0 32px 96px;
}

.portfolio-hero {
  max-width: 790px;
  padding: 150px 0 170px;
  margin: 0;
}

.portfolio-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #161616;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.065em;
}

.portfolio-hero .intro__copy {
  max-width: 540px;
  margin: 30px 0 0;
  display: grid;
  gap: 12px;
}

.portfolio-hero .intro__copy p {
  margin: 0;
  color: #747474;
  font-size: 18px;
  line-height: 1.3;
}

.location-line {
  margin: 0 0 16px;
  color: #161616;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-line span {
  color: #8e8e8e;
  letter-spacing: 0.04em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 24px;
}

.work-grid .project-row,
.work-grid .project-row--reverse {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.work-grid .project-row .card {
  width: 100%;
  height: auto;
  aspect-ratio: 1.43 / 1;
  margin: 0 0 14px;
  display: block;
  overflow: hidden;
  background: #f2f2f2 !important;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.work-grid .project-row .card:hover {
  transform: translateY(-3px);
  border-color: #a0a0a0;
}

.work-grid .project-row .card img,
.work-grid .project-row .card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1 !important;
  transform: none !important;
}

.work-grid .project-row__copy {
  width: auto;
  margin: 0;
  padding: 0;
}

.work-grid .project-kind-tag {
  display: none;
}

.work-grid .project-row__copy h2 {
  max-width: 590px;
  margin: 0;
  color: #161616;
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.work-grid .project-row__copy h2 span {
  color: #161616 !important;
}

.work-grid .see-more-tag {
  margin: 10px 0 0;
  padding: 0;
  display: block;
  color: #777 !important;
  font-size: 15px;
  letter-spacing: -0.04em;
  background: transparent !important;
  border: 0;
}

.work-grid .see-more-tag svg {
  display: none;
}

.archive,
.career,
.library,
.contact-section,
.back-to-top,
.chat-overlay,
.lightbox,
.preloader {
  display: none !important;
}

/* Project pages: a continuous written case study, not a visual/text switch. */
.detail-page {
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 32px 100px;
  background: #fff !important;
  color: #151515 !important;
}

.detail-nav {
  width: 100%;
  margin: 0;
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.back-link,
.external-link {
  padding: 0;
  color: #151515 !important;
  font-size: 15px;
  line-height: 1;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
}

.back-link::before { content: '← '; }
.back-link:hover,
.external-link:hover { opacity: 0.55; }
.external-link svg { display: none; }

.content-card {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.case-study {
  padding-top: 118px;
}

.case-study__intro {
  max-width: 860px;
  padding-bottom: 46px;
}

.case-study__eyebrow,
.editorial-kicker {
  margin: 0 0 22px;
  color: #777;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.project-header {
  margin: 0;
  padding: 0;
}

.project-header__title {
  max-width: 900px;
  margin: 0;
  color: #151515;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.project-header__title-name,
.project-header__title-dash {
  color: inherit !important;
}

.project-header__description {
  max-width: 575px;
  margin: 30px 0 0;
  color: #747474;
  font-size: 18px;
  line-height: 1.35;
}

.project-header__description p { margin: 0 0 12px; }

.case-study__hero-media,
.case-study__media {
  overflow: hidden;
}

.case-study__hero-media {
  margin: 0 0 140px;
  background: #f4f4f4;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
}

.case-study__hero-media > * { margin: 0 !important; }

.case-study__hero-media img,
.case-study__hero-media video,
.case-study__hero-media iframe {
  width: 100%;
  max-height: 780px;
  display: block;
  object-fit: cover;
}

.case-study__chapter {
  padding: 58px 0 112px;
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  gap: 46px;
  border-top: 1px solid #dedede;
}

.case-study__copy {
  min-width: 0;
}

.case-study__copy::before {
  content: '0' attr(data-step);
}

.case-study__chapter::before {
  content: attr(data-step);
  color: #969696;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.case-study__chapter .project-text__section {
  margin: -16px 0 0;
  padding: 0;
}

.case-study__chapter .project-text__heading {
  margin: 0 0 14px;
  color: #151515;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.case-study__chapter .project-text__body,
.case-study__chapter .project-text__list {
  max-width: 470px;
  color: #626262;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.case-study__chapter .project-text__body { margin: 0 0 14px; }
.case-study__chapter .project-text__list { margin: 0; padding-left: 19px; }
.case-study__chapter .project-text__list li { margin: 0 0 7px; }
.case-study__chapter .project-text__list li::before { display: none; }

.case-study__media {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-study__media > * {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
}

.case-study__media > :only-child,
.case-study__media > .project-images__img-wrap:has(img[src*='hero']) {
  grid-column: 1 / -1;
}

.case-study__media img,
.case-study__media video,
.case-study__media iframe {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 1 !important;
}

.case-study__media .project-images__expand { display: none; }
.case-study-ready .view-toggle,
.case-study-ready .project-images,
.case-study-ready .project-text { display: none !important; }

.detail-footer {
  margin: 0;
  padding: 28px 0 0;
  color: #777;
  border-top: 1px solid #dedede;
}

/* Dedicated About and Contact pages. */
.editorial-page { min-height: 100vh; }

.editorial-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 160px 32px 100px;
}

.editorial-content h1 {
  max-width: 890px;
  margin: 0;
  color: #151515;
  font-size: clamp(46px, 5.5vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.editorial-columns {
  max-width: 880px;
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.editorial-columns p,
.editorial-list p {
  margin: 0 0 18px;
  color: #626262;
  font-size: 19px;
  line-height: 1.42;
}

.editorial-list {
  max-width: 880px;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid #dedede;
}

.editorial-list h2 {
  margin: 0 0 14px;
  color: #151515;
  font-size: 23px;
  line-height: 1;
}

.contact-page h1 { max-width: 760px; }

.contact-links {
  max-width: 800px;
  margin-top: 106px;
  border-top: 1px solid #dedede;
}

.contact-links a {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  color: #151515;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.06em;
  border-bottom: 1px solid #dedede;
}

.contact-links a:hover { color: #7a7a7a; }

@media (max-width: 800px) {
  .top-bar { min-height: 60px; padding: 18px 20px; }
  .site-name, .site-nav { font-size: 14px; }
  .site-nav { gap: 16px; }
  .page { padding: 0 20px 64px; }
  .portfolio-hero { padding: 92px 0 110px; }
  .portfolio-hero .intro__copy p { font-size: 16px; }
  .work-grid { grid-template-columns: 1fr; gap: 42px; }
  .work-grid .project-row .card { border-radius: 10px; }
  .work-grid .project-row__copy h2 { font-size: 22px; }
  .detail-page { padding: 0 20px 72px; }
  .detail-nav { padding-top: 20px; }
  .case-study { padding-top: 82px; }
  .case-study__intro { padding-bottom: 34px; }
  .case-study__hero-media { margin-bottom: 80px; border-radius: 10px; }
  .case-study__chapter { padding: 34px 0 68px; grid-template-columns: 1fr; gap: 26px; }
  .case-study__chapter .project-text__section { margin: 0; }
  .case-study__chapter::before { margin-bottom: -12px; }
  .case-study__media { grid-template-columns: 1fr; }
  .editorial-content { padding: 100px 20px 72px; }
  .editorial-columns { margin-top: 64px; grid-template-columns: 1fr; gap: 8px; }
  .editorial-columns p, .editorial-list p { font-size: 17px; }
  .contact-links { margin-top: 72px; }
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  position: relative;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.top-bar__colors {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar__swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.2s ease;
}

.top-bar__swatch.active {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

html[data-theme="peach"] .top-bar__swatch.active,
html[data-theme="pink"] .top-bar__swatch.active,
html[data-theme="mint"] .top-bar__swatch.active,
html[data-theme="yellow"] .top-bar__swatch.active,
html[data-theme="lavender"] .top-bar__swatch.active {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.top-bar__swatch--default {
  background: #252525;
}

.top-bar__swatch[data-theme="peach"] {
  background: #ffe4cb;
}

.top-bar__swatch[data-theme="pink"] {
  background: #ffcbcc;
}

.top-bar__swatch[data-theme="mint"] {
  background: #cbfff7;
}

.top-bar__swatch[data-theme="yellow"] {
  background: #f5ffcb;
}

.top-bar__swatch[data-theme="lavender"] {
  background: #cdcbff;
}

@media (min-width: 801px) {
  .top-bar {
    margin-bottom: 20px;
  }
}

@media (max-width: 800px) {
  .top-bar {
    padding: 14px 20px 34px;
  }
}


/* ============================================
   COLOR THEME OVERRIDES
   ============================================ */

html[data-theme="peach"] body { background-color: #ffe4cb; color: #1a1a1a; }
html[data-theme="pink"] body { background-color: #ffcbcc; color: #1a1a1a; }
html[data-theme="mint"] body { background-color: #cbfff7; color: #1a1a1a; }
html[data-theme="yellow"] body { background-color: #f5ffcb; color: #1a1a1a; }
html[data-theme="lavender"] body { background-color: #cdcbff; color: #1a1a1a; }

/* Preloader bg */
html[data-theme="peach"] .preloader { background-color: #ffe4cb; }
html[data-theme="pink"] .preloader { background-color: #ffcbcc; }
html[data-theme="mint"] .preloader { background-color: #cbfff7; }
html[data-theme="yellow"] .preloader { background-color: #f5ffcb; }
html[data-theme="lavender"] .preloader { background-color: #cdcbff; }

/* Preloader label */
html[data-theme="peach"] .preloader__label,
html[data-theme="pink"] .preloader__label,
html[data-theme="mint"] .preloader__label,
html[data-theme="yellow"] .preloader__label,
html[data-theme="lavender"] .preloader__label {
  color: rgba(0, 0, 0, 0.5);
}

/* Accent text colors → dark */
html[data-theme="peach"] .portfolio-line,
html[data-theme="peach"] .tagline,
html[data-theme="peach"] .location-line,
html[data-theme="peach"] .selected-projects-text,
html[data-theme="peach"] .contact-link,
html[data-theme="peach"] .linkedin-link,
html[data-theme="peach"] .color--control,
html[data-theme="peach"] .color--adaptiveshop,
html[data-theme="peach"] .color--dds,
html[data-theme="peach"] .color--eloquii,
html[data-theme="peach"] .color--rankbee,
html[data-theme="peach"] .color--thayer,
html[data-theme="peach"] .color--kikoff,
html[data-theme="peach"] .project-header__title-name--control,
html[data-theme="peach"] .project-header__title-name--adaptiveshop,
html[data-theme="peach"] .project-header__title-name--eloquii,
html[data-theme="peach"] .project-header__title-name--rankbee,
html[data-theme="peach"] .project-header__title-name--dds,
html[data-theme="peach"] .project-header__title-name--kikoff,
html[data-theme="peach"] .project-header__title-name--loca,
html[data-theme="peach"] .project-header__title-name--print-media,
html[data-theme="pink"] .portfolio-line,
html[data-theme="pink"] .tagline,
html[data-theme="pink"] .location-line,
html[data-theme="pink"] .selected-projects-text,
html[data-theme="pink"] .contact-link,
html[data-theme="pink"] .linkedin-link,
html[data-theme="pink"] .color--control,
html[data-theme="pink"] .color--adaptiveshop,
html[data-theme="pink"] .color--dds,
html[data-theme="pink"] .color--eloquii,
html[data-theme="pink"] .color--rankbee,
html[data-theme="pink"] .color--thayer,
html[data-theme="pink"] .color--kikoff,
html[data-theme="pink"] .project-header__title-name--control,
html[data-theme="pink"] .project-header__title-name--adaptiveshop,
html[data-theme="pink"] .project-header__title-name--eloquii,
html[data-theme="pink"] .project-header__title-name--rankbee,
html[data-theme="pink"] .project-header__title-name--dds,
html[data-theme="pink"] .project-header__title-name--kikoff,
html[data-theme="pink"] .project-header__title-name--loca,
html[data-theme="pink"] .project-header__title-name--print-media,
html[data-theme="mint"] .portfolio-line,
html[data-theme="mint"] .tagline,
html[data-theme="mint"] .location-line,
html[data-theme="mint"] .selected-projects-text,
html[data-theme="mint"] .contact-link,
html[data-theme="mint"] .linkedin-link,
html[data-theme="mint"] .color--control,
html[data-theme="mint"] .color--adaptiveshop,
html[data-theme="mint"] .color--dds,
html[data-theme="mint"] .color--eloquii,
html[data-theme="mint"] .color--rankbee,
html[data-theme="mint"] .color--thayer,
html[data-theme="mint"] .color--kikoff,
html[data-theme="mint"] .project-header__title-name--control,
html[data-theme="mint"] .project-header__title-name--adaptiveshop,
html[data-theme="mint"] .project-header__title-name--eloquii,
html[data-theme="mint"] .project-header__title-name--rankbee,
html[data-theme="mint"] .project-header__title-name--dds,
html[data-theme="mint"] .project-header__title-name--kikoff,
html[data-theme="mint"] .project-header__title-name--loca,
html[data-theme="mint"] .project-header__title-name--print-media,
html[data-theme="yellow"] .portfolio-line,
html[data-theme="yellow"] .tagline,
html[data-theme="yellow"] .location-line,
html[data-theme="yellow"] .selected-projects-text,
html[data-theme="yellow"] .contact-link,
html[data-theme="yellow"] .linkedin-link,
html[data-theme="yellow"] .color--control,
html[data-theme="yellow"] .color--adaptiveshop,
html[data-theme="yellow"] .color--dds,
html[data-theme="yellow"] .color--eloquii,
html[data-theme="yellow"] .color--rankbee,
html[data-theme="yellow"] .color--thayer,
html[data-theme="yellow"] .color--kikoff,
html[data-theme="yellow"] .project-header__title-name--control,
html[data-theme="yellow"] .project-header__title-name--adaptiveshop,
html[data-theme="yellow"] .project-header__title-name--eloquii,
html[data-theme="yellow"] .project-header__title-name--rankbee,
html[data-theme="yellow"] .project-header__title-name--dds,
html[data-theme="yellow"] .project-header__title-name--kikoff,
html[data-theme="yellow"] .project-header__title-name--loca,
html[data-theme="yellow"] .project-header__title-name--print-media,
html[data-theme="lavender"] .portfolio-line,
html[data-theme="lavender"] .tagline,
html[data-theme="lavender"] .location-line,
html[data-theme="lavender"] .selected-projects-text,
html[data-theme="lavender"] .contact-link,
html[data-theme="lavender"] .linkedin-link,
html[data-theme="lavender"] .color--control,
html[data-theme="lavender"] .color--adaptiveshop,
html[data-theme="lavender"] .color--dds,
html[data-theme="lavender"] .color--eloquii,
html[data-theme="lavender"] .color--rankbee,
html[data-theme="lavender"] .color--thayer,
html[data-theme="lavender"] .color--kikoff,
html[data-theme="lavender"] .project-header__title-name--control,
html[data-theme="lavender"] .project-header__title-name--adaptiveshop,
html[data-theme="lavender"] .project-header__title-name--eloquii,
html[data-theme="lavender"] .project-header__title-name--rankbee,
html[data-theme="lavender"] .project-header__title-name--dds,
html[data-theme="lavender"] .project-header__title-name--kikoff,
html[data-theme="lavender"] .project-header__title-name--loca,
html[data-theme="lavender"] .project-header__title-name--print-media {
  color: #1a1a1a !important;
}

/* Baskervville body text → pure black */
html[data-theme="peach"] .body,
html[data-theme="peach"] .project-header__description,
html[data-theme="pink"] .body,
html[data-theme="pink"] .project-header__description,
html[data-theme="mint"] .body,
html[data-theme="mint"] .project-header__description,
html[data-theme="yellow"] .body,
html[data-theme="yellow"] .project-header__description,
html[data-theme="lavender"] .body,
html[data-theme="lavender"] .project-header__description {
  color: #000000;
}

/* Back link → dark */
html[data-theme="peach"] .back-link,
html[data-theme="pink"] .back-link,
html[data-theme="mint"] .back-link,
html[data-theme="yellow"] .back-link,
html[data-theme="lavender"] .back-link {
  color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.08);
}

/* External link → dark */
html[data-theme="peach"] .external-link,
html[data-theme="pink"] .external-link,
html[data-theme="mint"] .external-link,
html[data-theme="yellow"] .external-link,
html[data-theme="lavender"] .external-link {
  color: #1a1a1a;
}

/* See more tag → dark */
html[data-theme="peach"] .see-more-tag,
html[data-theme="pink"] .see-more-tag,
html[data-theme="mint"] .see-more-tag,
html[data-theme="yellow"] .see-more-tag,
html[data-theme="lavender"] .see-more-tag {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}

html[data-theme="peach"] .see-more-tag:hover,
html[data-theme="pink"] .see-more-tag:hover,
html[data-theme="mint"] .see-more-tag:hover,
html[data-theme="yellow"] .see-more-tag:hover,
html[data-theme="lavender"] .see-more-tag:hover {
  background: rgba(0, 0, 0, 0.18);
}

/* Skeleton fallback → lighter for light themes */
html[data-theme="peach"] .card--control,
html[data-theme="peach"] .card--adaptiveshop,
html[data-theme="peach"] .card--dds,
html[data-theme="peach"] .card--eloquii,
html[data-theme="peach"] .card--thayer,
html[data-theme="peach"] .card--rankbee,
html[data-theme="peach"] .project-images__item,
html[data-theme="peach"] .project-images__video,
html[data-theme="peach"] .project-images__placeholder,
html[data-theme="pink"] .card--control,
html[data-theme="pink"] .card--adaptiveshop,
html[data-theme="pink"] .card--dds,
html[data-theme="pink"] .card--eloquii,
html[data-theme="pink"] .card--thayer,
html[data-theme="pink"] .card--rankbee,
html[data-theme="pink"] .project-images__item,
html[data-theme="pink"] .project-images__video,
html[data-theme="pink"] .project-images__placeholder,
html[data-theme="mint"] .card--control,
html[data-theme="mint"] .card--adaptiveshop,
html[data-theme="mint"] .card--dds,
html[data-theme="mint"] .card--eloquii,
html[data-theme="mint"] .card--thayer,
html[data-theme="mint"] .card--rankbee,
html[data-theme="mint"] .project-images__item,
html[data-theme="mint"] .project-images__video,
html[data-theme="mint"] .project-images__placeholder,
html[data-theme="yellow"] .card--control,
html[data-theme="yellow"] .card--adaptiveshop,
html[data-theme="yellow"] .card--dds,
html[data-theme="yellow"] .card--eloquii,
html[data-theme="yellow"] .card--thayer,
html[data-theme="yellow"] .card--rankbee,
html[data-theme="yellow"] .project-images__item,
html[data-theme="yellow"] .project-images__video,
html[data-theme="yellow"] .project-images__placeholder,
html[data-theme="lavender"] .card--control,
html[data-theme="lavender"] .card--adaptiveshop,
html[data-theme="lavender"] .card--dds,
html[data-theme="lavender"] .card--eloquii,
html[data-theme="lavender"] .card--thayer,
html[data-theme="lavender"] .card--rankbee,
html[data-theme="lavender"] .project-images__item,
html[data-theme="lavender"] .project-images__video,
html[data-theme="lavender"] .project-images__placeholder {
  background: rgba(0,0,0,0.06);
}

html[data-theme="peach"] .card--lineform,
html[data-theme="pink"] .card--lineform,
html[data-theme="mint"] .card--lineform,
html[data-theme="yellow"] .card--lineform,
html[data-theme="lavender"] .card--lineform {
  background: rgba(0,0,0,0.06);
}

/* Card loaded bg → lighter */
html[data-theme="peach"] .card--control.is-loaded,
html[data-theme="peach"] .card--adaptiveshop.is-loaded,
html[data-theme="peach"] .card--dds.is-loaded,
html[data-theme="peach"] .card--eloquii.is-loaded,
html[data-theme="peach"] .card--thayer.is-loaded,
html[data-theme="peach"] .card--rankbee.is-loaded,
html[data-theme="pink"] .card--control.is-loaded,
html[data-theme="pink"] .card--adaptiveshop.is-loaded,
html[data-theme="pink"] .card--dds.is-loaded,
html[data-theme="pink"] .card--eloquii.is-loaded,
html[data-theme="pink"] .card--thayer.is-loaded,
html[data-theme="pink"] .card--rankbee.is-loaded,
html[data-theme="mint"] .card--control.is-loaded,
html[data-theme="mint"] .card--adaptiveshop.is-loaded,
html[data-theme="mint"] .card--dds.is-loaded,
html[data-theme="mint"] .card--eloquii.is-loaded,
html[data-theme="mint"] .card--thayer.is-loaded,
html[data-theme="mint"] .card--rankbee.is-loaded,
html[data-theme="yellow"] .card--control.is-loaded,
html[data-theme="yellow"] .card--adaptiveshop.is-loaded,
html[data-theme="yellow"] .card--dds.is-loaded,
html[data-theme="yellow"] .card--eloquii.is-loaded,
html[data-theme="yellow"] .card--thayer.is-loaded,
html[data-theme="yellow"] .card--rankbee.is-loaded,
html[data-theme="lavender"] .card--control.is-loaded,
html[data-theme="lavender"] .card--adaptiveshop.is-loaded,
html[data-theme="lavender"] .card--dds.is-loaded,
html[data-theme="lavender"] .card--eloquii.is-loaded,
html[data-theme="lavender"] .card--thayer.is-loaded,
html[data-theme="lavender"] .card--rankbee.is-loaded {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="peach"] .card--lineform.is-loaded,
html[data-theme="pink"] .card--lineform.is-loaded,
html[data-theme="mint"] .card--lineform.is-loaded,
html[data-theme="yellow"] .card--lineform.is-loaded,
html[data-theme="lavender"] .card--lineform.is-loaded {
  background: rgba(0, 0, 0, 0.08);
}

/* Skip link → inverted */
html[data-theme="peach"] .skip-link,
html[data-theme="pink"] .skip-link,
html[data-theme="mint"] .skip-link,
html[data-theme="yellow"] .skip-link,
html[data-theme="lavender"] .skip-link {
  background: #1a1a1a;
  color: #ffffff;
}

/* Archive → dark */
html[data-theme="peach"] .archive__title,
html[data-theme="pink"] .archive__title,
html[data-theme="mint"] .archive__title,
html[data-theme="yellow"] .archive__title,
html[data-theme="lavender"] .archive__title,
html[data-theme="peach"] .project-images__section-title,
html[data-theme="pink"] .project-images__section-title,
html[data-theme="mint"] .project-images__section-title,
html[data-theme="yellow"] .project-images__section-title,
html[data-theme="lavender"] .project-images__section-title {
  color: #000000;
}

html[data-theme="peach"] .archive__list,
html[data-theme="pink"] .archive__list,
html[data-theme="mint"] .archive__list,
html[data-theme="yellow"] .archive__list,
html[data-theme="lavender"] .archive__list {
  border-top-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="peach"] .archive__row,
html[data-theme="pink"] .archive__row,
html[data-theme="mint"] .archive__row,
html[data-theme="yellow"] .archive__row,
html[data-theme="lavender"] .archive__row {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="peach"] .archive__company,
html[data-theme="pink"] .archive__company,
html[data-theme="mint"] .archive__company,
html[data-theme="yellow"] .archive__company,
html[data-theme="lavender"] .archive__company {
  color: #000000;
}

html[data-theme="peach"] .archive__purpose,
html[data-theme="pink"] .archive__purpose,
html[data-theme="mint"] .archive__purpose,
html[data-theme="yellow"] .archive__purpose,
html[data-theme="lavender"] .archive__purpose {
  color: #000000;
}

html[data-theme="peach"] .archive__status,
html[data-theme="pink"] .archive__status,
html[data-theme="mint"] .archive__status,
html[data-theme="yellow"] .archive__status,
html[data-theme="lavender"] .archive__status {
  color: rgba(0, 0, 0, 0.25);
}


/* Library → dark */
html[data-theme="peach"] .library__title,
html[data-theme="pink"] .library__title,
html[data-theme="mint"] .library__title,
html[data-theme="yellow"] .library__title,
html[data-theme="lavender"] .library__title {
  color: #000000;
}

html[data-theme="peach"] .library__label,
html[data-theme="pink"] .library__label,
html[data-theme="mint"] .library__label,
html[data-theme="yellow"] .library__label,
html[data-theme="lavender"] .library__label {
  color: #000000;
}

html[data-theme="peach"] .library__book-title,
html[data-theme="pink"] .library__book-title,
html[data-theme="mint"] .library__book-title,
html[data-theme="yellow"] .library__book-title,
html[data-theme="lavender"] .library__book-title {
  color: rgba(0, 0, 0, 0.85);
}

html[data-theme="peach"] .library__book-author,
html[data-theme="pink"] .library__book-author,
html[data-theme="mint"] .library__book-author,
html[data-theme="yellow"] .library__book-author,
html[data-theme="lavender"] .library__book-author {
  color: rgba(0, 0, 0, 0.4);
}

html[data-theme="peach"] .library__more,
html[data-theme="pink"] .library__more,
html[data-theme="mint"] .library__more,
html[data-theme="yellow"] .library__more,
html[data-theme="lavender"] .library__more {
  color: rgba(0, 0, 0, 0.3);
}

html[data-theme="peach"] .project-kind-tag,
html[data-theme="pink"] .project-kind-tag,
html[data-theme="mint"] .project-kind-tag,
html[data-theme="yellow"] .project-kind-tag,
html[data-theme="lavender"] .project-kind-tag {
  color: #1a1a1a;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="peach"] .archive .see-more-tag,
html[data-theme="pink"] .archive .see-more-tag,
html[data-theme="mint"] .archive .see-more-tag,
html[data-theme="yellow"] .archive .see-more-tag,
html[data-theme="lavender"] .archive .see-more-tag {
  background: rgba(0, 0, 0, 0.14);
  color: #000000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

html[data-theme="peach"] .archive .see-more-tag:hover,
html[data-theme="pink"] .archive .see-more-tag:hover,
html[data-theme="mint"] .archive .see-more-tag:hover,
html[data-theme="yellow"] .archive .see-more-tag:hover,
html[data-theme="lavender"] .archive .see-more-tag:hover {
  background: rgba(0, 0, 0, 0.22);
}

html[data-theme="peach"] .archive .see-more-tag--disabled,
html[data-theme="pink"] .archive .see-more-tag--disabled,
html[data-theme="mint"] .archive .see-more-tag--disabled,
html[data-theme="yellow"] .archive .see-more-tag--disabled,
html[data-theme="lavender"] .archive .see-more-tag--disabled,
html[data-theme="peach"] .archive .see-more-tag--disabled:hover,
html[data-theme="pink"] .archive .see-more-tag--disabled:hover,
html[data-theme="mint"] .archive .see-more-tag--disabled:hover,
html[data-theme="yellow"] .archive .see-more-tag--disabled:hover,
html[data-theme="lavender"] .archive .see-more-tag--disabled:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: rgba(0, 0, 0, 0.45) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

html[data-theme="peach"] .archive__kind,
html[data-theme="pink"] .archive__kind,
html[data-theme="mint"] .archive__kind,
html[data-theme="yellow"] .archive__kind,
html[data-theme="lavender"] .archive__kind {
  color: rgba(0, 0, 0, 0.4);
}

/* Contact section → dark */
html[data-theme="peach"] .contact-section__title,
html[data-theme="pink"] .contact-section__title,
html[data-theme="mint"] .contact-section__title,
html[data-theme="yellow"] .contact-section__title,
html[data-theme="lavender"] .contact-section__title {
  color: #000000;
}

html[data-theme="peach"] .contact-section__note,
html[data-theme="pink"] .contact-section__note,
html[data-theme="mint"] .contact-section__note,
html[data-theme="yellow"] .contact-section__note,
html[data-theme="lavender"] .contact-section__note {
  color: #000000;
}

/* Vinyl → dark */
html[data-theme="peach"] .vinyl__label,
html[data-theme="pink"] .vinyl__label,
html[data-theme="mint"] .vinyl__label,
html[data-theme="yellow"] .vinyl__label,
html[data-theme="lavender"] .vinyl__label {
  color: #000000;
}

html[data-theme="peach"] .vinyl__title,
html[data-theme="pink"] .vinyl__title,
html[data-theme="mint"] .vinyl__title,
html[data-theme="yellow"] .vinyl__title,
html[data-theme="lavender"] .vinyl__title {
  color: #000000;
}

html[data-theme="peach"] .vinyl__album,
html[data-theme="pink"] .vinyl__album,
html[data-theme="mint"] .vinyl__album,
html[data-theme="yellow"] .vinyl__album,
html[data-theme="lavender"] .vinyl__album {
  color: rgba(0, 0, 0, 0.85);
}

html[data-theme="peach"] .vinyl__artist,
html[data-theme="pink"] .vinyl__artist,
html[data-theme="mint"] .vinyl__artist,
html[data-theme="yellow"] .vinyl__artist,
html[data-theme="lavender"] .vinyl__artist {
  color: rgba(0, 0, 0, 0.4);
}

/* Photos → dark */
html[data-theme="peach"] .photos__title,
html[data-theme="pink"] .photos__title,
html[data-theme="mint"] .photos__title,
html[data-theme="yellow"] .photos__title,
html[data-theme="lavender"] .photos__title {
  color: #000000;
}

/* Detail footer → dark */
html[data-theme="peach"] .detail-footer__copyright,
html[data-theme="pink"] .detail-footer__copyright,
html[data-theme="mint"] .detail-footer__copyright,
html[data-theme="yellow"] .detail-footer__copyright,
html[data-theme="lavender"] .detail-footer__copyright {
  color: #1a1a1a;
}

/* View toggle → dark */
html[data-theme="peach"] .view-toggle__btn,
html[data-theme="pink"] .view-toggle__btn,
html[data-theme="mint"] .view-toggle__btn,
html[data-theme="yellow"] .view-toggle__btn,
html[data-theme="lavender"] .view-toggle__btn {
  color: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="peach"] .view-toggle__btn:hover,
html[data-theme="pink"] .view-toggle__btn:hover,
html[data-theme="mint"] .view-toggle__btn:hover,
html[data-theme="yellow"] .view-toggle__btn:hover,
html[data-theme="lavender"] .view-toggle__btn:hover {
  color: rgba(0, 0, 0, 0.7);
}

html[data-theme="peach"] .view-toggle__btn.active,
html[data-theme="pink"] .view-toggle__btn.active,
html[data-theme="mint"] .view-toggle__btn.active,
html[data-theme="yellow"] .view-toggle__btn.active,
html[data-theme="lavender"] .view-toggle__btn.active {
  color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="peach"] .view-toggle__btn:focus-visible,
html[data-theme="pink"] .view-toggle__btn:focus-visible,
html[data-theme="mint"] .view-toggle__btn:focus-visible,
html[data-theme="yellow"] .view-toggle__btn:focus-visible,
html[data-theme="lavender"] .view-toggle__btn:focus-visible {
  outline-color: #1a1a1a;
}

/* Project text → dark */
html[data-theme="peach"] .project-text__heading,
html[data-theme="pink"] .project-text__heading,
html[data-theme="mint"] .project-text__heading,
html[data-theme="yellow"] .project-text__heading,
html[data-theme="lavender"] .project-text__heading,
html[data-theme="peach"] .print-media-production__title,
html[data-theme="pink"] .print-media-production__title,
html[data-theme="mint"] .print-media-production__title,
html[data-theme="yellow"] .print-media-production__title,
html[data-theme="lavender"] .print-media-production__title {
  color: #1a1a1a;
}

html[data-theme="peach"] .project-text__body,
html[data-theme="pink"] .project-text__body,
html[data-theme="mint"] .project-text__body,
html[data-theme="yellow"] .project-text__body,
html[data-theme="lavender"] .project-text__body,
html[data-theme="peach"] .project-text__list,
html[data-theme="pink"] .project-text__list,
html[data-theme="mint"] .project-text__list,
html[data-theme="yellow"] .project-text__list,
html[data-theme="lavender"] .project-text__list {
  color: #000000;
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(26, 26, 26, 0.65);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) translateZ(0);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) translateZ(0);
}

.back-to-top:hover {
  background: rgba(26, 26, 26, 0.88);
  border-color: rgba(255, 255, 255, 0.42);
}

.back-to-top svg {
  display: block;
  flex: 0 0 22px;
  pointer-events: none;
}

html[data-theme="peach"] .back-to-top,
html[data-theme="pink"] .back-to-top,
html[data-theme="mint"] .back-to-top,
html[data-theme="yellow"] .back-to-top,
html[data-theme="lavender"] .back-to-top {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
}

html[data-theme="peach"] .back-to-top:hover,
html[data-theme="pink"] .back-to-top:hover,
html[data-theme="mint"] .back-to-top:hover,
html[data-theme="yellow"] .back-to-top:hover,
html[data-theme="lavender"] .back-to-top:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

/* ============================================
   CHAT PANEL
   ============================================ */

.chat-trigger {
  background: none;
  border: none;
  color: #ffffff;
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-style: normal;
  font-size: 14px;
  font-weight: 200;
  line-height: 18px;
  letter-spacing: 0.5px;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-trigger__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, 0.5);
}

html[data-theme="peach"] .chat-trigger__avatar,
html[data-theme="pink"] .chat-trigger__avatar,
html[data-theme="mint"] .chat-trigger__avatar,
html[data-theme="yellow"] .chat-trigger__avatar,
html[data-theme="lavender"] .chat-trigger__avatar {
  outline-color: #000000;
}

.chat-trigger:hover {
  opacity: 0.7;
}

/* Light theme overrides for trigger */
html[data-theme="peach"] .chat-trigger,
html[data-theme="pink"] .chat-trigger,
html[data-theme="mint"] .chat-trigger,
html[data-theme="yellow"] .chat-trigger,
html[data-theme="lavender"] .chat-trigger {
  color: #000000;
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.chat-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.chat-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.8);
}

.chat-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: calc(33.33vw - 32px);
  background: rgb(240, 240, 240);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10001;
  box-shadow: 0 0 0 1px rgb(240, 240, 240);
  transform: translateX(calc(100% + 16px));
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.chat-overlay.is-open .chat-panel {
  transform: translateX(0);
  opacity: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 96px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.chat-msg {
  max-width: 90%;
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 18px;
}

.chat-msg--user {
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.85);
  border-bottom-right-radius: 4px;
}

.chat-msg--bot {
  align-self: flex-start;
  background: none;
  color: #000;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: 8px;
}

.chat-welcome__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.2);
  vertical-align: middle;
  margin-right: 10px;
}

.chat-welcome__text {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0px;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 16px;
  display: inline;
}

.chat-welcome__hint {
  color: rgba(0, 0, 0, 0.7);
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-size: 14px;
  font-weight: 200;
  line-height: 18px;
  letter-spacing: 0.5px;
  margin: 4px 0 14px;
}

.chat-starters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-starter {
  background: none;
  border: 1px dashed rgba(0, 0, 0, 0.3);
  color: #000;
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.chat-starter:hover {
  color: rgba(0, 0, 0, 0.9);
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.4);
}

.chat-input-area {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 30px 20px 28px;
  background: linear-gradient(to bottom, transparent, rgba(208, 208, 208, 0.6) 40%, rgba(208, 208, 208, 0.95));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%);
  mask-image: linear-gradient(to bottom, transparent, black 40%);
}

.chat-actions {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.chat-action {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.chat-action:hover {
  color: rgba(0, 0, 0, 0.7);
  outline: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 4px 4px 4px 18px;
}

.chat-input {
  flex: 1;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.85);
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.5px;
  outline: none;
  padding: 8px 0;
}

.chat-input:focus-visible {
  outline: none;
}

.chat-input-wrap:focus-within {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.25);
}

.chat-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.chat-send {
  background: rgba(0, 0, 0, 0.08);
  border: none;
  color: rgba(0, 0, 0, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.chat-send:hover {
  background: #5eead4;
  color: #000000;
}

.chat-send:not(:disabled) {
  background: #99f6e4;
  color: #000000;
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  animation: chat-dot 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-dot {
  0%, 80%, 100% { opacity: 0.25; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.1); }
}

.chat-error {
  color: rgba(200, 50, 50, 0.8);
  font-family: 'Baskervville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-weight: 200;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0.5px;
}

@media (max-width: 1000px) and (min-width: 801px) {
  .chat-trigger,
  .chat-starter {
    font-size: 12px;
    line-height: 16px;
  }
  .chat-input {
    font-size: 16px;
    line-height: 20px;
  }
  .chat-welcome__text {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 0.25px;
  }
}

@media (max-width: 800px) {
  .chat-trigger {
    font-size: 10px;
    line-height: 12px;
  }
  .chat-starter {
    font-size: 12px;
    line-height: 16px;
  }
  .chat-input {
    font-size: 16px;
    line-height: 20px;
  }
  .chat-welcome__text {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.5px;
  }
  .chat-trigger__suffix {
    display: none;
  }
  .chat-panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
  }
  .chat-close {
    top: 16px;
    right: 16px;
  }
}

/* ============================================
   FOCUS-VISIBLE STYLES
   ============================================ */

.chat-trigger:focus-visible,
.chat-close:focus-visible,
.chat-starter:focus-visible,
.chat-send:focus-visible,
.chat-action:focus-visible,
.top-bar__swatch:focus-visible,
.contact-link:focus-visible,
.linkedin-link:focus-visible,
.see-more-tag:focus-visible,
.back-link:focus-visible,
.external-link:focus-visible,
.card:focus-visible,
.view-toggle__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.top-bar__swatch:focus-visible {
  outline-offset: 3px;
  border-radius: 50%;
}

.card:focus-visible {
  outline-offset: 4px;
  border-radius: 16px;
}

/* Keep the portfolio refresh last so it cleanly replaces the legacy theme. */
html,
html[data-theme],
html[data-theme] body,
body,
.detail-page,
.top-bar,
.preloader {
  background: #fff !important;
  color: #151515 !important;
}

body,
body * {
  font-family: 'TASA Orbiter', Arial, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Supporting reading text needs a touch more density than display type. */
p,
li,
.body,
.project-header__description,
.project-text__body,
.project-text__list,
.work-grid .see-more-tag,
.portfolio-hero .intro__copy,
.editorial-columns,
.editorial-list,
.contact-section__note {
  font-weight: 500 !important;
}

.site-name,
.site-nav a {
  font-weight: 500 !important;
}

/* Small interface and reading text share the 500 weight. */
body,
body * {
  font-weight: 500 !important;
}

h1,
h1 *,
h2,
h2 *,
h3,
h3 *,
h4,
h4 *,
h5,
h5 *,
h6,
h6 * {
  font-weight: 400 !important;
}

.work-grid .see-more-tag {
  display: none !important;
}

.work-grid .project-row .card:hover {
  transform: none !important;
  border-color: #e8e8e8 !important;
}

.work-grid .project-row .card img,
.work-grid .project-row .card video {
  transition: opacity 180ms ease !important;
}

.work-grid .project-row .card:hover img,
.work-grid .project-row .card:hover video {
  opacity: 0.86 !important;
}

/* Restore the existing secondary work and reading library on the white site. */
.archive,
.library {
  display: block !important;
  margin-top: 150px !important;
  padding-top: 0 !important;
}

.library { margin-top: 110px !important; }

.archive__title,
.library__title {
  margin: 0 0 16px !important;
  color: #151515 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.archive__list { border-top-color: #dedede !important; }
.archive__row { border-bottom-color: #dedede !important; }
.archive__link { padding: 17px 0 !important; }
.archive__company { color: #151515 !important; font-size: 20px !important; }
.archive__purpose { color: #666 !important; font-size: 16px !important; }
.archive__kind,
.archive__status { color: #8a8a8a !important; font-size: 12px !important; }
.archive .see-more-tag { display: none !important; }

.library__label { color: #8a8a8a !important; }
.library__book-title { color: #151515 !important; }
.library__book-author,
.library__more { color: #777 !important; }
.library__tooltip {
  color: #151515 !important;
  background: #fff !important;
  border-color: #dedede !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 800px) {
  .archive,
  .library { margin-top: 90px !important; }
  .archive__link { display: grid !important; grid-template-columns: 1fr auto !important; gap: 6px 16px !important; }
  .archive__company { font-size: 18px !important; }
  .archive__purpose { grid-column: 1 / -1 !important; font-size: 15px !important; }
  .archive__kind { grid-column: 1 !important; }
  .archive__status { grid-column: 2 !important; grid-row: 2 !important; justify-self: end !important; }
}

.top-bar {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 68px !important;
  padding: 20px 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 0 !important;
}

.site-name,
.site-nav { font-size: 15px !important; line-height: 1 !important; letter-spacing: -0.04em !important; }
.site-nav { display: flex !important; gap: 28px !important; }
.top-bar__colors,
.chat-trigger,
.preloader,
.silk-shader-canvas,
.archive,
.career,
.library,
.contact-section,
.back-to-top,
.chat-overlay,
.lightbox { display: none !important; }

.page { max-width: 1440px !important; padding: 0 32px 96px !important; }
.portfolio-hero { max-width: 790px !important; padding: 150px 0 170px !important; margin: 0 !important; }
.portfolio-hero h1 { margin: 0 !important; color: #151515 !important; font-size: clamp(42px, 4vw, 64px) !important; line-height: 1.03 !important; letter-spacing: -0.065em !important; }
.portfolio-hero .intro__copy { max-width: 540px !important; margin: 30px 0 0 !important; display: grid !important; gap: 12px !important; }
.portfolio-hero .intro__copy p { margin: 0 !important; color: #747474 !important; font-size: 18px !important; line-height: 1.3 !important; }
.location-line { margin: 0 0 16px !important; color: #151515 !important; font-size: 12px !important; line-height: 1.2 !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; }
.location-line span { color: #8e8e8e !important; }

.work-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 54px 24px !important; }
.work-grid .project-row,
.work-grid .project-row--reverse { display: flex !important; flex-direction: column !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; }
.work-grid .project-row .card { position: relative !important; width: 100% !important; height: auto !important; aspect-ratio: 1.43 / 1 !important; margin: 0 0 14px !important; display: block !important; overflow: hidden !important; background: #f2f2f2 !important; border: 1px solid #e8e8e8 !important; border-radius: 14px !important; }
.work-grid .project-row .card { order: 1 !important; }
.work-grid .project-row .card:hover { transform: translateY(-3px) !important; border-color: #a0a0a0 !important; }
.work-grid .project-row .card img,
.work-grid .project-row .card video { width: 100% !important; height: 100% !important; display: block !important; object-fit: cover !important; opacity: 1 !important; transform: none !important; }
.work-grid .project-row__copy { width: auto !important; order: 2 !important; margin: 0 !important; padding: 0 !important; }
.work-grid .project-row__copy { transition: opacity 0.2s ease; }
.work-grid .project-row__copy:hover,
.work-grid .project-row__copy:focus-visible { opacity: 0.7; }
.work-grid .project-kind-tag {
  display: block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #8e8e8e !important;
  font-family: 'TASA Orbiter', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
.work-grid .project-row__copy h2 { max-width: 590px !important; margin: 0 !important; color: #151515 !important; font-size: clamp(20px, 1.6vw, 25px) !important; line-height: 1.14 !important; letter-spacing: -0.05em !important; }
.work-grid .project-row__copy h2 span { color: #151515 !important; }
.work-grid .see-more-tag { margin: 10px 0 0 !important; padding: 0 !important; display: block !important; color: #777 !important; font-size: 15px !important; background: transparent !important; border: 0 !important; }
.work-grid .see-more-tag svg { display: none !important; }

.detail-page { max-width: 1440px !important; min-height: 100vh !important; margin: 0 auto !important; padding: 0 32px 100px !important; }
.detail-nav { width: 100% !important; margin: 0 !important; padding: 24px 0 0 !important; display: flex !important; justify-content: space-between !important; gap: 16px !important; }
.back-link,
.external-link { padding: 0 !important; color: #151515 !important; font-size: 15px !important; line-height: 1 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
.back-link::before { content: '← '; }
.external-link svg { display: none !important; }
.content-card { max-width: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.case-study { padding-top: 118px !important; }
.case-study__intro { max-width: 860px !important; padding-bottom: 46px !important; }
.case-study__eyebrow { margin: 0 0 22px !important; color: #777 !important; font-size: 12px !important; line-height: 1 !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; }
.project-header { margin: 0 !important; padding: 0 !important; }
.project-header__title { max-width: 900px !important; margin: 0 !important; color: #151515 !important; font-size: clamp(42px, 5vw, 74px) !important; line-height: 1.02 !important; letter-spacing: -0.07em !important; }
.project-header__title-name,
.project-header__title-dash { color: inherit !important; }
.project-header__description { max-width: 575px !important; margin: 30px 0 0 !important; color: #747474 !important; font-size: 18px !important; line-height: 1.35 !important; }
.project-header__description p { margin: 0 0 12px !important; }
.case-study__hero-media { margin: 0 0 140px !important; overflow: hidden !important; background: #f4f4f4 !important; border: 1px solid #e6e6e6 !important; border-radius: 16px !important; }
.case-study__hero-media > * { margin: 0 !important; }
.case-study__hero-media img,
.case-study__hero-media video,
.case-study__hero-media iframe { width: 100% !important; max-height: 780px !important; display: block !important; object-fit: cover !important; }
.case-study__chapter { padding: 58px 0 112px !important; display: grid !important; grid-template-columns: 35px minmax(220px, 0.68fr) minmax(0, 1.32fr) !important; gap: 46px !important; border-top: 1px solid #dedede !important; }
.case-study__chapter::before { content: attr(data-step) !important; color: #969696 !important; font-size: 13px !important; line-height: 1 !important; }
.case-study__chapter .project-text__section { margin: -16px 0 0 !important; padding: 0 !important; }
.case-study__chapter .project-text__heading { margin: 0 0 14px !important; color: #151515 !important; font-size: 25px !important; line-height: 1.05 !important; letter-spacing: -0.05em !important; }
.case-study__chapter .project-text__body,
.case-study__chapter .project-text__list { max-width: 470px !important; color: #626262 !important; font-size: 16px !important; line-height: 1.45 !important; letter-spacing: -0.025em !important; }
.case-study__chapter .project-text__body { margin: 0 0 14px !important; }
.case-study__chapter .project-text__list { margin: 0 !important; padding-left: 19px !important; }
.case-study__chapter .project-text__list li { margin: 0 0 7px !important; }
.case-study__chapter .project-text__list li::before { display: none !important; }
.case-study__media { min-width: 0 !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; overflow: visible !important; }
.case-study__media > * { min-width: 0 !important; margin: 0 !important; overflow: hidden !important; background: #f4f4f4 !important; border: 1px solid #e6e6e6 !important; border-radius: 10px !important; }
.case-study__media > :only-child { grid-column: 1 / -1 !important; }
.case-study__media img,
.case-study__media video,
.case-study__media iframe { width: 100% !important; height: auto !important; display: block !important; object-fit: cover !important; opacity: 1 !important; }
.case-study__media .project-images__expand { display: none !important; }
.case-study-ready .view-toggle,
.case-study-ready .project-images,
.case-study-ready .project-text { display: none !important; }
.detail-footer { margin: 0 !important; padding: 28px 0 0 !important; color: #777 !important; border-top: 1px solid #dedede !important; }

/* A smaller, single-statement hero keeps the Work page editorial and calm. */
.portfolio-hero { max-width: 1080px !important; padding: 150px 0 170px !important; display: block !important; }
.portfolio-hero h1 { max-width: 1080px !important; font-size: clamp(36px, 3.25vw, 48px) !important; line-height: 1.14 !important; }
.portfolio-hero h1 .hero__muted { color: #8b8b8b !important; }
.portfolio-hero__note { max-width: 620px !important; margin: 28px 0 0 !important; color: #747474 !important; font-size: 18px !important; line-height: 1.35 !important; letter-spacing: -0.02em !important; }
.portfolio-hero .intro__copy { display: none !important; }
.project-header__title,
.editorial-content h1 { font-size: clamp(36px, 3.25vw, 48px) !important; line-height: 1.14 !important; }
h1 { font-size: clamp(36px, 3.25vw, 48px) !important; line-height: 1.14 !important; }

@media (max-width: 800px) {
  .top-bar { min-height: 60px !important; padding: 18px 20px !important; }
  .site-name, .site-nav { font-size: 14px !important; }
  .site-nav { gap: 16px !important; }
  .page { padding: 0 20px 64px !important; }
  .portfolio-hero { padding: 92px 0 110px !important; }
  .portfolio-hero h1,
  .project-header__title,
  .editorial-content h1,
  h1 { font-size: 28px !important; line-height: 1.12 !important; }
  .portfolio-hero .intro__copy p { font-size: 16px !important; }
  .portfolio-hero__note { margin-top: 24px !important; font-size: 16px !important; }
  .work-grid { grid-template-columns: 1fr !important; gap: 42px !important; }
  .work-grid .project-row .card { border-radius: 10px !important; }
  .work-grid .project-row__copy h2 { font-size: 22px !important; }
  .detail-page { padding: 0 20px 72px !important; }
  .detail-nav { padding-top: 20px !important; }
  .case-study { padding-top: 82px !important; }
  .case-study__intro { padding-bottom: 34px !important; }
  .case-study__hero-media { margin-bottom: 80px !important; border-radius: 10px !important; }
  .case-study__chapter { padding: 34px 0 68px !important; grid-template-columns: 1fr !important; gap: 26px !important; }
  .case-study__chapter .project-text__section { margin: 0 !important; }
  .case-study__chapter::before { margin-bottom: -12px !important; }
  .case-study__media { grid-template-columns: 1fr !important; }
}

/* Final type, interaction, and secondary-content overrides. */
body,
body * {
  font-weight: 500 !important;
}

h1,
h1 *,
h2,
h2 *,
h3,
h3 *,
h4,
h4 *,
h5,
h5 *,
h6,
h6 * {
  font-weight: 400 !important;
}

/* Interface labels use the stronger 600 weight. */
#selected-work,
#selected-work *,
.archive__status {
  font-weight: 600 !important;
}

.site-name,
.site-nav a,
.archive__kind {
  font-weight: 500 !important;
}

.work-grid .see-more-tag,
.archive .see-more-tag {
  display: none !important;
}

.work-grid .project-row .card:hover {
  transform: none !important;
  border-color: #e8e8e8 !important;
}

.work-grid .project-row .card img,
.work-grid .project-row .card video {
  transition: opacity 180ms ease !important;
}

.work-grid .project-row .card:hover img,
.work-grid .project-row .card:hover video {
  opacity: 0.86 !important;
}

.archive,
.library {
  display: block !important;
}

.back-to-top {
  display: inline-flex !important;
}

h2.archive__title,
h2.library__title {
  margin: 0 0 32px !important;
  color: #151515 !important;
  font-size: clamp(36px, 3.25vw, 48px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.055em !important;
  text-transform: none !important;
}

.archive__row--removed {
  display: none !important;
}

/* About and Contact share the Work page's content column and hero rhythm. */
.editorial-content {
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 150px 32px 100px !important;
}

.editorial-content h1 {
  max-width: 1080px !important;
}

.editorial-content .editorial-columns,
.editorial-content .editorial-list {
  max-width: none !important;
}

.editorial-content .editorial-list {
  margin-top: 44px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.editorial-content .work-history {
  margin-top: 140px !important;
}

.work-history__list {
  position: relative;
  min-width: max-content;
  min-height: 196px;
  display: flex;
  gap: 0;
  padding: 34px 40px 0 0;
}

.work-history__viewport {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8c8c8 transparent;
}

.work-history__viewport:focus-visible {
  outline: 2px solid #151515;
  outline-offset: 5px;
}

.work-history__rail {
  position: absolute;
  top: 67px;
  left: 0;
  right: 40px;
  height: 1px;
  border-top: 1px dashed #cfcfcf;
}

.work-history__item {
  position: relative;
  width: 210px;
  flex: 0 0 210px;
  padding-right: 24px;
}

.work-history__tick {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 0;
  width: 1px;
  height: 12px;
  background: #aeb0b8;
}

.work-history__details h3 {
  margin: 43px 0 6px;
  color: #151515 !important;
  font-size: 16px !important;
  line-height: 1.14 !important;
  letter-spacing: 0;
}

.work-history__item p {
  margin: 0 !important;
  color: #777 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
}

.work-history__dates {
  white-space: nowrap;
  color: #151515 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
}

.work-history__details p {
  color: #8a8a8a !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em;
}

.editorial-content .library {
  margin-top: 150px !important;
}

.contact-page .contact-links {
  max-width: 500px !important;
}

.github-activity {
  position: relative;
  margin-top: 150px;
}

.github-activity__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.github-activity__header .library__title {
  margin-bottom: 0 !important;
}

.github-activity__summary {
  margin: 30px 0 18px !important;
  color: #151515 !important;
  font-size: 16px !important;
}

.github-activity__scroll {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.github-activity__months,
.github-activity__grid {
  width: 100%;
  min-width: 720px;
  display: grid;
  grid-template-columns: repeat(53, minmax(8px, 1fr));
  column-gap: 4px;
}

.github-activity__months {
  min-height: 18px;
  margin-bottom: 5px;
  color: #777;
  font-size: 11px;
}

.github-activity__month {
  white-space: nowrap;
}

.github-activity__grid {
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  row-gap: 4px;
}

.github-activity__day,
.github-activity__legend i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #eeeeec;
}

.github-activity [data-level="1"] { background: #d4d4cf; }
.github-activity [data-level="2"] { background: #a7a7a0; }
.github-activity [data-level="3"] { background: #686863; }
.github-activity [data-level="4"] { background: #191919; }

.github-activity__day {
  border: 0;
  padding: 0;
  cursor: default;
}

.github-activity__day:focus-visible {
  outline: 2px solid #151515;
  outline-offset: 2px;
}

.github-activity__legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 12px;
  color: #777;
  font-size: 11px;
}

.github-activity__legend i {
  width: 11px;
}

.github-activity__tooltip {
  position: fixed;
  z-index: 20;
  display: none;
  pointer-events: none;
  padding: 7px 9px;
  border-radius: 5px;
  background: #151515;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.github-activity__tooltip.is-visible { display: block; }

.contact-page .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
  margin-top: 106px;
}

.contact-page .contact-grid .contact-links {
  max-width: none !important;
  margin-top: 0;
}

.contact-video {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #f4f4f4;
}

.contact-video picture,
.contact-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-metamorphosis {
  position: relative;
  background: #fff;
}

.contact-metamorphosis__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 800px) {
  .editorial-content {
    padding: 92px 20px 72px !important;
  }

  .editorial-content .library {
    margin-top: 90px !important;
  }

  .editorial-content .work-history {
    margin-top: 90px !important;
  }

  .work-history__list {
    min-height: 184px;
    padding-top: 28px;
  }

  .work-history__rail {
    top: 61px;
  }

  .work-history__tick {
    top: 27px;
  }

  .work-history__item {
    width: 180px;
    flex-basis: 180px;
    padding-right: 20px;
  }

  .github-activity {
    margin-top: 90px;
  }

}

/* Reading copy stays black on editorial and case-study pages. */
.editorial-content :is(p, li),
.detail-page :is(p, li) {
  color: #151515 !important;
}

.editorial-content .work-history__details p {
  color: #8a8a8a !important;
}

.editorial-content .work-history__dates {
  color: #8a8a8a !important;
}

/* Walkthroughs use the same site navigation and place their project link under the title. */
.project-header__title-group {
  min-width: 0;
}

.project-header__title {
  font-weight: 400 !important;
}

/* Let walkthrough titles use the full width of their existing header column. */
.case-study__intro .project-header__title {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

.project-header .project-link {
  position: static !important;
  width: fit-content !important;
  margin: 22px 0 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #151515 !important;
  font-size: clamp(24px, 3vw, 40px) !important;
  line-height: 1 !important;
  letter-spacing: -0.06em !important;
  text-decoration: none !important;
}

.project-link__label {
  text-decoration: underline;
}

.project-link__arrow {
  margin-left: 0.14em;
  display: inline-block;
  text-decoration: none;
}

.text-arrow {
  font-variant-emoji: text;
}

/* Arrows stay at the regular weight even when their surrounding text is 500 or 600. */
.back-link::before,
.project-link__arrow,
.text-arrow {
  font-weight: 400 !important;
}

/* The walkthrough header uses the same generous two-column measure as About. */
.case-study__intro {
  max-width: none !important;
  padding-top: 32px !important;
}

.case-study__intro .project-header {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 64px !important;
  align-items: start !important;
}

.case-study__intro .project-header__description {
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 800px) {
  .case-study__intro .project-header {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Keep the walkthrough narrative open: no rules or chapter numbers. */
.case-study__hero-media,
.case-study__media > *,
.case-study__chapter,
.detail-footer {
  border: 0 !important;
}

.case-study__chapter {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 64px !important;
}

.case-study__chapter::before,
.case-study__copy::before {
  content: none !important;
  display: none !important;
}

.case-study__chapter .project-text__section {
  margin: 0 !important;
}

.case-study__media {
  grid-column: 2 / -1 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.case-study__hero-media {
  margin-bottom: 80px !important;
}

.case-study__content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
}

.case-study__copy {
  display: grid !important;
  gap: 42px !important;
}

.case-study__content--copy-only .case-study__copy {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 24px !important;
}

.case-study__copy .project-text__section {
  margin: 0 !important;
  padding: 0 !important;
}

.case-study__copy .project-text__heading {
  margin: 0 0 14px !important;
  color: #151515 !important;
  font-size: 25px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.05em !important;
}

.case-study__copy .project-text__body,
.case-study__copy .project-text__list {
  max-width: none !important;
  margin-top: 0 !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  letter-spacing: -0.025em !important;
}

.case-study__media .project-images__expand {
  display: flex !important;
}

.case-study__resource {
  display: block;
  color: #151515 !important;
  text-decoration: none !important;
  background: #f4f4f4 !important;
  border-radius: 10px;
}

.case-study__resource img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
}

.case-study__resource-body {
  display: grid;
  gap: 6px;
  padding: 14px 16px 17px;
}

.case-study__resource-source {
  color: #151515;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.case-study__resource-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.case-study__resource:hover img {
  opacity: 0.82 !important;
}

.case-study__resource--counter-drone {
  order: -1;
}

.case-study__resource--spotify {
  order: 1;
}

.case-study .project-images__video:has(iframe) {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  overflow: hidden;
  background: #000;
  border-radius: 10px;
}

.case-study .project-images__video iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.detail-footer {
  margin: 80px 0 0 !important;
  padding: 0 !important;
}

.detail-footer .body {
  margin: 0 !important;
}

.about-inline-chat {
  position: relative;
  display: flex;
  align-self: start;
  min-height: 500px;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 16px;
}

.about-inline-chat :is(.chat-msg, .chat-welcome__text, .chat-welcome__hint, .chat-starter, .chat-input, .chat-error) {
  font-family: 'TASA Orbiter', sans-serif;
}

.about-inline-chat .chat-messages {
  padding: 76px 20px 100px;
}

.about-inline-chat .chat-input-area {
  background: linear-gradient(to bottom, transparent, rgba(224, 224, 224, 0.5) 24%, rgba(224, 224, 224, 0.94) 62%);
}

.about-inline-chat .chat-welcome__text {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.about-inline-chat .chat-msg {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.about-inline-chat .chat-welcome__hint,
.about-inline-chat .chat-starter,
.about-inline-chat .chat-input {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

@media (max-width: 800px) {
  .case-study__content {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .case-study__media {
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
  }

  .case-study__content--copy-only .case-study__copy {
    grid-template-columns: 1fr;
    gap: 42px !important;
  }

  .about-inline-chat {
    min-height: 480px;
  }

  .contact-page .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 72px;
  }

}

/* Supporting media captions match the Eloquii checkout case study. */
.case-study__media > .case-study__figure {
  background: transparent !important;
  border-radius: 0 !important;
}

.case-study__figure > .project-images__img-wrap,
.case-study__figure > .project-images__video {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.case-study__figure figcaption {
  padding: 15px 0 12px;
  color: #626262;
  font-size: 14px;
  line-height: 1.45;
}

.case-study__caption-title {
  display: block;
  margin-bottom: 5px;
  color: #151515;
  font-size: 16px;
}

/* Personal labels sit beside project types or names. */
.project-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.work-grid .project-row__meta .project-kind-tag {
  margin: 0 !important;
}

.personal-tag {
  display: inline-block;
  font-family: 'TASA Orbiter', Arial, sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #767676;
  border: 1px solid #767676;
  border-radius: 100px;
  padding: 2px 3px;
  white-space: nowrap;
}

.work-grid .personal-tag {
  color: #8e8e8e;
  border-color: currentColor;
}

.archive__company {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 801px) {
  .archive__list {
    display: grid;
    grid-template-columns: minmax(160px, max-content) 100px minmax(0, 1fr) 110px auto;
    column-gap: 32px;
  }

  .archive__row,
  .archive__link {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }

  .archive__company {
    white-space: nowrap;
  }
}

/* Homepage project types share the Publicly shareable label size. */
.archive__row:not(.archive__row--removed) .archive__kind {
  font-size: 12px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  white-space: normal;
}
