/* Charlotte Naumai · Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&display=swap');

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

:root {
  --font: 'Plus Jakarta Sans', sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --radius: 10px;
  --max-width: 1200px;
  --content-pad: max(var(--space-3), calc((100vw - var(--max-width)) / 2 + var(--space-3)));
}

/* Theme pairs: bg + accent, per brand.md */
:root[data-theme="1"] { --bg: #FFFBF7; --fg: #3d2f28; --accent: #cfe2ff; --card: #f6f6f1; --on-accent: #3d2f28; --fg-light: #dcd5ca; }
:root[data-theme="2"] { --bg: #cabd55; --fg: #34340d; --accent: #FFFBF7; --card: #d4c871; --on-accent: #34340d; --fg-light: #afa448; }
:root[data-theme="3"] { --bg: #FFFBF7; --fg: #b84e33; --accent: #851f1f; --card: #e9d3c9; --on-accent: #FFFBF7; --fg-light: #f2dbcc; }
:root[data-theme="4"] { --bg: #350316; --fg: #FFFBF7; --accent: #fff3b9; --card: #592e33; --on-accent: #350316; --fg-light: #592f3d; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  transition: background 0.35s ease, color 0.35s ease;
  min-height: 100vh;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---------- Header ---------- */

[data-include="header"] {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  background: var(--bg);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-3) var(--space-2);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-primary {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: lowercase;
}

.nav-primary a,
.nav-primary button {
  display: inline-flex;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  background: none;
  color: inherit;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-primary a:hover,
.nav-primary button:hover {
  background: var(--card);
}

.nav-primary a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-logo {
  font-family: 'Magilio', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--fg);
}

.theme-dots {
  position: fixed;
  top: 50%;
  right: var(--space-3);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 6px;
  z-index: 50;
  background: var(--bg);
}

.theme-dots button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-dots button:hover { transform: scale(1.15); }

.theme-dots button[aria-pressed="true"] {
  border-color: var(--fg);
}

.theme-dot-1 { background: #cfe2ff; }
.theme-dot-2 { background: #cabd55; }
.theme-dot-3 { background: #851f1f; }
.theme-dot-4 { background: #350316; }

/* ---------- Hero ---------- */

.hero {
  padding: var(--space-3) var(--space-3) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-greeting {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--fg);
  margin: 0 0 var(--space-2);
}

.hero-intro {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.3;
  margin: 0;
  color: var(--fg);
  max-width: 960px;
}

.hero-rotate {
  display: inline-block;
  font-family: 'Magilio', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1em;
  margin: 0 4px;
  transition: opacity 0.3s ease;
}

.hero-rotate.fade {
  opacity: 0;
}

/* ---------- Work grid ---------- */

.section-title-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.pill-label {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-3);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3) var(--space-6);
}

.work-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.work-tile img,
.work-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}


.work-tile img.alt,
.work-tile video.alt { opacity: 0; }

.work-tile:hover img.default,
.work-tile:hover video.default { opacity: 0; transform: scale(1.03); }
.work-tile:hover img.alt,
.work-tile:hover video.alt { opacity: 1; transform: scale(1.03); }

.work-tile.no-swap:hover img.default,
.work-tile.no-swap:hover video.default { opacity: 1; transform: none; }

.work-tile .work-label {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  z-index: 10;
  padding: 6px 12px;
  background: var(--bg);
  color: var(--fg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.work-tile:hover .work-label {
  opacity: 1;
  transform: translateY(0);
}

.work-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--fg);
  opacity: 0.5;
  text-align: center;
  padding: var(--space-2);
}

/* ---------- Browser-frame mockup (work tile) ---------- */

.browser-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #e9e9e9;
}

.browser-frame-bar {
  flex-shrink: 0;
  height: 26px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.browser-frame-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-frame-bar .dot:nth-child(1) { background: #ff5f57; }
.browser-frame-bar .dot:nth-child(2) { background: #febc2e; }
.browser-frame-bar .dot:nth-child(3) { background: #28c840; }

.browser-frame-url {
  margin-left: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 10px;
  color: #888;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-tile .browser-frame img {
  position: static;
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  object-position: top;
}

/* ---------- Report mockup (work tile) ---------- */

.report-mockup {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
}

.work-tile .report-mockup img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: block;
}

.report-mockup .report-back {
  transform: translate(-62%, -54%) rotate(-8deg);
  z-index: 1;
}

.report-mockup .report-front {
  transform: translate(-38%, -46%) rotate(4deg);
  z-index: 2;
}

/* ---------- Page header (Experience / About) ---------- */

.page-header {
  padding: var(--space-5) var(--space-3) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 var(--space-2);
}

.page-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 var(--space-2);
}

.page-sub {
  font-size: 18px;
  max-width: 560px;
  opacity: 0.85;
  margin: 0 0 var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  text-transform: lowercase;
  border: none;
  cursor: pointer;
}

/* ---------- Experience page ---------- */

.experience-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-5);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3) var(--space-6);
  align-items: start;
}

.sticky-col {
  position: sticky;
  top: var(--space-3);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 var(--space-3);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.timeline-item {
  background: #FFFBF7;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.timeline-role {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.timeline-meta {
  font-size: 13px;
  opacity: 0.7;
  margin: 4px 0 var(--space-2);
}

.timeline-item ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-2);
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-transform: lowercase;
}

.skills-box.tools .tag {
  background: var(--fg-light);
  color: var(--fg);
}

.skills-box {
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-3);
}

/* ---------- About page ---------- */

.about-hero-wrap {
  max-width: var(--max-width);
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-5);
}

.about-hero {
  background: var(--card);
  border-radius: 24px;
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.about-hero-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  margin: var(--space-2) 0 var(--space-3);
}

.about-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--fg);
  opacity: 0.6;
}

.about-photo:has(img) {
  opacity: 1;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-i-work-wrap {
  max-width: var(--max-width);
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-5);
}

.rotation-wrap {
  max-width: var(--max-width);
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-5);
}

.rotation-card {
  background: var(--card);
  border-radius: 24px;
  padding: var(--space-4);
}

.rotation-sub {
  font-size: 14px;
  opacity: 0.7;
  margin: 0 0 var(--space-4);
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.record-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  text-decoration: none;
  color: var(--fg);
}

.record-disc {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, #1c1c1c 0px, #1c1c1c 2px, #262626 3px, #1c1c1c 4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.record-item:hover .record-disc {
  animation: record-spin 2.8s linear infinite;
}

@keyframes record-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.record-label {
  width: 46%;
  height: 46%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.record-label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
  transform: translate(-50%, -50%);
}

.record-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-title {
  font-size: 14px;
  font-weight: 700;
  margin-top: var(--space-2);
  text-align: center;
}

.record-artist {
  font-size: 13px;
  opacity: 0.65;
  text-align: center;
}

.spotify-embed-holder {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 520px) {
  .records-grid { grid-template-columns: 1fr; justify-items: center; }
  .record-item { max-width: 220px; }
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.principle-card {
  background: var(--card);
  border-radius: 20px;
  padding: var(--space-3);
}

:root[data-theme="1"] .principle-card {
  background: var(--bg);
  border: 1.5px solid var(--fg);
}

:root[data-theme="1"] .about-hero {
  background: var(--fg);
}

:root[data-theme="1"] .about-hero p {
  color: var(--bg) !important;
}

:root[data-theme="1"] .rotation-card {
  background: var(--accent);
  border: 1.5px solid var(--fg);
}

:root[data-theme="2"] .principle-card {
  background: var(--accent);
  border: 1.5px solid var(--fg);
}

:root[data-theme="2"] .about-hero {
  background: var(--accent);
  border: 1.5px solid var(--fg);
}

:root[data-theme="2"] .rotation-card {
  background: var(--fg);
}

:root[data-theme="2"] .rotation-card p,
:root[data-theme="2"] .rotation-card .record-item {
  color: var(--accent) !important;
}

:root[data-theme="4"] .principle-card {
  background: var(--accent);
  color: var(--on-accent);
  border: 1.5px solid var(--on-accent);
}

:root[data-theme="3"] p:not(.hero-intro):not(.hero-greeting):not(.eyebrow):not(.project-title):not(.pill-label):not(.gallery-section-label),
:root[data-theme="3"] .timeline-item li {
  color: #3d2f28;
}

:root[data-theme="3"] .about-hero {
  background: var(--fg);
}

:root[data-theme="3"] .about-hero p {
  color: var(--bg) !important;
}

:root[data-theme="4"] .about-hero {
  background: var(--fg);
}

:root[data-theme="4"] .about-hero p {
  color: var(--bg) !important;
}

:root[data-theme="3"] .rotation-card {
  background: var(--accent);
  color: var(--bg);
}

:root[data-theme="3"] .rotation-card p,
:root[data-theme="3"] .rotation-card .record-item {
  color: var(--bg) !important;
}

:root[data-theme="3"] .principle-card {
  background: var(--bg);
  border: 1.5px solid var(--accent);
}

:root[data-theme="1"] .timeline-item,
:root[data-theme="1"] .skills-box {
  border-color: var(--fg);
}

:root[data-theme="2"] .timeline-item,
:root[data-theme="2"] .skills-box {
  border-color: var(--fg);
}

:root[data-theme="3"] .timeline-item,
:root[data-theme="3"] .skills-box {
  border-color: var(--accent);
}

:root[data-theme="4"] .timeline-item {
  border-color: var(--on-accent);
  color: var(--on-accent);
}

:root[data-theme="4"] .skills-box {
  border-color: #ffffff;
}

.principle-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.principle-card p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Project page ---------- */

.project-hero {
  padding: var(--space-2) var(--space-2) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-hero-full {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--space-6);
}

.project-hero-full.tight-top {
  padding-top: var(--space-2);
}

.project-hero-full .project-hero-frame {
  border-radius: 0;
}

.project-hero-frame {
  border-radius: 20px;
  overflow: hidden;
}

.project-hero-frame video {
  width: 100%;
  height: auto;
  display: block;
}

.project-hero-frame.match-height {
  aspect-ratio: 2860 / 1802;
}

.project-hero-frame.match-height video {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-hero-frame.website-marquee {
  height: 700px;
  background: var(--bg);
}

.website-marquee .marquee-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  height: 100%;
  animation: marquee-scroll 36s linear infinite;
}

.website-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.website-marquee .marquee-track img {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  display: block;
  border-radius: var(--radius);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .project-hero-frame.website-marquee { height: 420px; }
}

.brand-mark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  max-width: var(--max-width);
  margin: var(--space-4) auto;
  padding: 0 var(--space-3);
}

.brand-mark-tile {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-mark-tile img {
  max-width: 55%;
  max-height: 55%;
  display: block;
}

.brand-mark-tile img.blend-multiply {
  mix-blend-mode: multiply;
  max-width: 35%;
  max-height: 35%;
}

@media (max-width: 860px) {
  .brand-mark-grid { grid-template-columns: 1fr; }
}

.report-viewer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.report-viewer-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 var(--space-2);
}

.report-viewer-frame {
  position: relative;
  aspect-ratio: 993 / 1404;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.report-viewer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.report-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #251c18;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.report-nav:hover { background: #fff; }
.report-nav:disabled { opacity: 0.3; cursor: default; }
.report-nav.prev { left: var(--space-2); }
.report-nav.next { right: var(--space-2); }

.report-page-count {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .report-viewer-grid { grid-template-columns: 1fr; }
}

.report-spread {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.report-spread-frame {
  position: relative;
}

.report-spread-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.report-spread-pair[hidden] {
  display: none;
}

.report-spread-pair.single {
  grid-template-columns: 1fr;
  max-width: calc(50% - var(--space-1));
  margin: 0 auto;
}

.report-spread-pair img {
  width: 100%;
  aspect-ratio: 1200 / 1697;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.report-spread-caption {
  display: block;
  text-align: center;
  margin-top: var(--space-2);
  font-size: 13px;
  opacity: 0.6;
}

@media (max-width: 700px) {
  .report-spread-pair { grid-template-columns: 1fr; }
  .report-spread-pair.single { max-width: 100%; }
}

.email-grid {
  display: grid;
  grid-template-columns: repeat(2, 500px);
  justify-content: center;
  gap: var(--space-2);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.email-mockup {
  width: 500px;
  height: 700px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9e9e9;
  display: flex;
  flex-direction: column;
}

.email-mockup iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 1120px) {
  .email-grid { grid-template-columns: 500px; }
}

@media (max-width: 680px) {
  .email-grid { grid-template-columns: 1fr; }
  .email-mockup { width: 100%; height: 500px; }
}

.report-download {
  display: flex;
  justify-content: flex-start;
  padding: var(--space-4) var(--space-3) 0;
}

.report-download .btn {
  padding: 13px 21px;
}

.logo-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  max-width: var(--max-width);
  margin: 0 auto var(--space-2);
  padding: 0 var(--space-3);
}

.logo-tile {
  background: #F7F5F2;
  border-radius: var(--radius);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.logo-tile img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}

.badge-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.badge-tile {
  border-radius: var(--radius);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.badge-tile img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

@media (max-width: 860px) {
  .logo-badge-grid { grid-template-columns: 1fr; }
  .logo-tile { height: 280px; }
}

.illustration-slider {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--space-3) var(--space-2);
}

.illustration-tile {
  flex: 0 0 200px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  scroll-snap-align: start;
}

.illustration-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 860px) {
  .illustration-tile { flex-basis: 150px; }
}

.palette-grid {
  display: flex;
  flex-wrap: nowrap;
  max-width: var(--max-width);
  margin: 0 auto var(--space-4);
  padding: var(--space-2) calc(var(--space-3) + 24px) var(--space-2) var(--space-3);
}

.swatch {
  flex: 1 1 0;
  aspect-ratio: 5 / 4;
  padding: var(--space-2);
  margin-right: -24px;
  border-radius: 0 18px 18px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  position: relative;
}

.swatch:last-child { margin-right: 0; }

.swatch:nth-child(1) { z-index: 20; }
.swatch:nth-child(2) { z-index: 19; }
.swatch:nth-child(3) { z-index: 18; }
.swatch:nth-child(4) { z-index: 17; }
.swatch:nth-child(5) { z-index: 16; }
.swatch:nth-child(6) { z-index: 15; }
.swatch:nth-child(7) { z-index: 14; }
.swatch:nth-child(8) { z-index: 13; }
.swatch:nth-child(9) { z-index: 12; }
.swatch:nth-child(10) { z-index: 11; }
.swatch:nth-child(11) { z-index: 10; }
.swatch:nth-child(12) { z-index: 9; }

.swatch-name {
  font-weight: 700;
  font-size: 10px;
}

.swatch-hex {
  font-size: 8px;
  font-family: monospace;
  opacity: 0.75;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .palette-grid { flex-wrap: wrap; padding: var(--space-2) var(--space-3); }
  .swatch { flex: 1 1 45%; margin-right: 0; border-radius: 14px; }
}

.project-meta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-4);
}

.project-meta .eyebrow { text-align: center; }

.project-client {
  font-size: clamp(32px, 5vw, 48px);
  font-family: 'Magilio', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  margin: 4px 0 var(--space-3);
}

.project-project-eyebrow { margin-top: var(--space-3); }

.project-title {
  font-family: 'Magilio', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  margin: 4px 0 var(--space-3);
}

.project-divider {
  width: 1px;
  height: 32px;
  background: currentColor;
  opacity: 0.4;
  margin: 0 auto var(--space-3);
}

.project-desc {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 var(--space-3);
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-gallery > .gallery-full:first-child {
  margin-top: var(--space-4);
}

.gallery-full { width: 100%; background: var(--card); text-align: center; border-radius: var(--radius); overflow: hidden; }
.gallery-full img, .gallery-full video { width: 100%; display: block; height: auto; }
.gallery-full.contain video { max-width: 420px; margin: 0 auto; }

.project-gallery.padded {
  padding: 0 var(--space-3);
}

.gallery-row {
  display: grid;
  gap: 4px;
}

.gallery-row.cols-2 { grid-template-columns: 1fr 1fr; }
.gallery-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

.gallery-row .gallery-full { height: 100%; }
.gallery-row .gallery-full img { height: 100%; object-fit: cover; }

@media (max-width: 700px) {
  .gallery-row.cols-2, .gallery-row.cols-3 { grid-template-columns: 1fr; }
  .gallery-row .gallery-full { aspect-ratio: auto !important; height: auto; }
  .gallery-row .gallery-full img { height: auto; object-fit: initial; }
}

.gallery-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.gallery-split img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-section-label {
  text-align: center;
  padding: var(--space-4) var(--space-3) var(--space-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
}

.gallery-section-label.pill {
  display: table;
  margin: 90px auto var(--space-2);
  padding: 8px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  text-transform: lowercase;
  font-weight: 500;
}

.gallery-section-label.pill.left {
  margin: 90px auto var(--space-2) var(--content-pad);
}

.gallery-section-desc {
  max-width: var(--max-width);
  margin: 0 0 var(--space-3) var(--content-pad);
  padding-right: var(--space-3);
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
}

.social-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 4px;
}

.social-mosaic img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .social-mosaic { grid-template-columns: repeat(2, 1fr); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0 4px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--card);
}

.gallery-carousel {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 4px;
}

.gallery-carousel img {
  flex: 0 0 240px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  scroll-snap-align: start;
  display: block;
}

.gallery-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--space-3) var(--space-2);
  scrollbar-width: thin;
}

.gallery-slider img {
  flex: 0 0 auto;
  height: 420px;
  width: auto;
  scroll-snap-align: start;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 860px) {
  .gallery-slider img { height: 240px; border-radius: 14px; }
}

.app-fan {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px var(--space-4);
}

.hidden {
  display: none !important;
}

.app-fan-item {
  width: 22%;
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.2);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  margin-left: -6.5%;
  flex-shrink: 0;
  display: block;
  position: relative;
  transition: transform 0.25s ease, z-index 0.25s;
}

.app-fan-item:first-child { margin-left: 0; }

.app-fan-item:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.5);
  z-index: 10;
}

@media (max-width: 860px) {
  .app-fan {
    justify-content: flex-start;
    overflow-x: auto;
    padding: var(--space-4) var(--space-3);
  }
  .app-fan-item {
    width: 130px;
    margin-left: -34px;
    border-radius: 16px;
  }
}

.ig-section {
  background: #ffffff;
  border-radius: 28px;
  padding: var(--space-4);
  margin: 0 4px;
  display: flex;
  justify-content: flex-end;
}

.ig-phone {
  width: 300px;
  flex-shrink: 0;
  background: #111;
  border-radius: 44px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}

.ig-notch {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #111;
  border-radius: 14px;
  z-index: 2;
}

.ig-screen {
  height: 620px;
  background: #000;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ig-status {
  flex-shrink: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 40px 16px 12px;
  border-bottom: 1px solid #222;
}

.ig-status span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.ig-feed {
  flex: 1;
  overflow-y: auto;
}

.ig-post {
  border-bottom: 1px solid #222;
}

.ig-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.ig-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #350316;
  color: #ffeb8b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.ig-username {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

.ig-menu {
  color: #999;
}

.ig-post img {
  width: 100%;
  display: block;
}

.ig-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  color: #fff;
}

.ig-spacer {
  flex: 1;
}

.ig-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .ig-section { justify-content: center; }
  .ig-phone { width: 260px; }
  .ig-screen { height: 560px; }
}

.coming-soon {
  max-width: var(--max-width);
  margin: var(--space-5) auto 0;
  padding: 0 var(--space-3);
  text-align: center;
}

.coming-soon-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin: 0 0 var(--space-2);
}

.loading-bar {
  width: 220px;
  height: 6px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--card);
  overflow: hidden;
}

.loading-bar-fill {
  width: 35%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  animation: loading-bar-slide 1.6s ease-in-out infinite;
}

@keyframes loading-bar-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(285%); }
}

.project-nav {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
  font-size: 14px;
  font-weight: 600;
}

.project-nav a:hover { opacity: 0.7; }

@media (max-width: 860px) {
  .gallery-split { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--space-4) var(--space-3) var(--space-5);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 13px;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-links button:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .site-header-inner { position: relative; gap: var(--space-2); }
  .nav-toggle { display: flex; order: 2; }
  .theme-dots { order: 3; }

  .nav-primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--space-1);
    background: var(--bg);
    border-bottom: 0 solid currentColor;
    padding: 0 var(--space-3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, border-bottom-width 0.3s ease;
  }

  .nav-primary.open {
    max-height: 480px;
    padding: var(--space-2) var(--space-3) var(--space-3);
    border-bottom-width: 1px;
    opacity: 1;
  }

  .work-grid { grid-template-columns: 1fr; }
  .experience-layout { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .sticky-col { position: static; }
}

@media (max-width: 520px) {
  .principles-grid { grid-template-columns: 1fr; }
}

/* ---------- Personal photos (About page) ---------- */

.smiley-marker {
  position: absolute;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
  z-index: 6;
}

.smiley-marker:hover {
  transform: scale(1.3) rotate(-6deg);
}

.photo-popup {
  position: fixed;
  width: 220px;
  background: var(--card);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.photo-popup.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.photo-popup-frame {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}

.photo-popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-popup-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.photo-popup-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  transition: width 0.25s ease, background 0.25s ease;
}

.photo-popup-dot.active {
  width: 18px;
  background: var(--accent);
}

@media (max-width: 700px) {
  .smiley-marker, .photo-popup { display: none; }
}
