:root {
  color-scheme: light;
  --ink: #f4f1e9;
  --paper: #191a17;
  --panel: #e7e2d7;
  --soft: #706f67;
  --line: rgba(25, 26, 23, 0.16);
  --accent: #7F9FBE;
  --accent-text: #425C79;
  --accent-ink: #15191e;
  --accent-glow: rgba(127,159,190,.22);
  --copy: #454640;
  --title-faint: rgba(25,26,23,.12);
  --art-ink: #191a17;
  --orange: #ff674d;
  --blue: #8076ff;
  --pad: clamp(28px, 5.5vw, 88px);
  --display: "Archivo", Arial, sans-serif;
  --sans: "Manrope", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #090909;
  --paper: #efede7;
  --panel: #171717;
  --soft: #aaa79f;
  --line: rgba(239,237,231,.16);
  --accent: #7899BF;
  --accent-text: #C0D3E8;
  --accent-ink: #090909;
  --accent-glow: rgba(120,153,191,.3);
  --copy: #c7c5be;
  --title-faint: rgba(239,237,231,.12);
}
:root[data-theme="dark"] .art-grid {
  background-image:
    linear-gradient(rgba(239,237,231,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,237,231,.06) 1px, transparent 1px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: default;
  transition: background-color 240ms ease, color 240ms ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.site-header {
  position: relative;
  z-index: 50;
  height: 86px;
  width: calc(100% - var(--pad) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 15px; }
.brand > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.08em;
  transform: rotate(-7deg);
  transition: 300ms ease;
}
.brand:hover > span:first-child { background: var(--accent); color: var(--accent-ink); transform: rotate(7deg); }
.brand-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.brand-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.site-nav {
  grid-column: 2;
  justify-self: end;
  display: flex;
  gap: clamp(14px, 2vw, 32px);
}
.site-nav a {
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
  transition: right 240ms ease;
}
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle {
  display: none;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
}
.menu-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.menu-icon::before,
.menu-icon::after,
.menu-icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 180ms ease, bottom 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.menu-icon::before,
.menu-icon::after { content: ""; }
.menu-icon::before { top: 0; }
.menu-icon i { top: 6px; }
.menu-icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::after { bottom: 6px; transform: rotate(-45deg); }
.theme-toggle {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
  padding: 3px 7px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease, transform 180ms ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle-track {
  position: relative;
  width: 28px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--ink);
  transition: background-color 220ms ease, border-color 220ms ease;
}
.theme-toggle-track i {
  position: absolute;
  width: 10px;
  height: 10px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: var(--accent);
  transition: 220ms cubic-bezier(.16,1,.3,1);
}
.theme-toggle-label {
  min-width: 28px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
.theme-toggle.dark .theme-toggle-track i { left: 14px; }

.hero {
  min-height: calc(100vh - 86px);
  padding: 28px var(--pad) 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-meta, .project-hero-meta {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-meta p { margin: 0; }
.hero-composition {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 48px;
  align-items: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.puzzle-lockup { position: relative; z-index: 4; min-width: 0; }
.puzzle-board { display: block; width: 100%; height: auto; overflow: visible; }
.puzzle-drag-piece {
  cursor: grab;
  touch-action: none;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1), filter 220ms ease;
}
.puzzle-drag-piece.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 10px 10px rgba(25,26,23,.18));
  transition: none;
}
.puzzle-drag-piece:focus-visible { outline: none; filter: drop-shadow(0 0 5px var(--paper)); }
.puzzle-drag-piece:focus-visible .puzzle-piece-shape { stroke-width: 4; }
.puzzle-piece-shape { stroke: var(--paper); stroke-width: 2; stroke-linejoin: round; }
.puzzle-piece-ux { fill: var(--accent); }
.puzzle-piece-designer { fill: var(--panel); }
.puzzle-card-rule { stroke-width: 1; }
.puzzle-card-rule-ux { stroke: var(--accent-ink); opacity: .25; }
.puzzle-card-rule-designer { stroke: var(--paper); opacity: .25; }
.puzzle-note {
  fill: var(--accent-ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.puzzle-note-muted { fill: var(--soft); }
.puzzle-ux-word {
  fill: #191a17;
  font-family: var(--display);
  font-size: 92px;
  font-weight: 800;
  letter-spacing: -8px;
}
.puzzle-designer-word {
  fill: var(--paper);
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
}
.puzzle-supporting {
  fill: var(--soft);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1px;
}
.puzzle-name {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: baseline;
  gap: 2px 10px;
  padding: 8px 4px 0;
  color: var(--paper);
  font-family: var(--display);
  line-height: 1;
  white-space: normal !important;
}
.puzzle-name::before {
  content: "DESIGNED BY";
  grid-column: 1 / -1;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .12em;
}
.puzzle-name .name-first,
.puzzle-name .name-last {
  display: inline !important;
  white-space: normal;
  text-transform: none;
}
.name-first {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.06em;
}
.name-last {
  color: var(--soft);
  font-size: clamp(23px, 2.3vw, 32px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.06em;
  transform: translateY(-2px);
}
.puzzle-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.puzzle-controls p {
  margin: 0;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.puzzle-controls button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
  cursor: pointer;
}
.puzzle-controls button:hover { background: var(--accent); color: var(--accent-ink); }
.creative-markers {
  display: none;
}
.creative-markers span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  transition: 220ms cubic-bezier(.16,1,.3,1);
}
.creative-markers span:nth-child(2) {
  margin-left: 48px;
  background: var(--ink);
  color: var(--paper);
}
.creative-markers span:nth-child(3) {
  margin-left: 8px;
}
.creative-markers i {
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  font-style: normal;
}
.creative-markers i b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-transform: none;
}
.creative-markers span:hover {
  transform: translateX(8px) rotate(8deg);
  background: var(--accent);
  color: var(--accent-ink);
}
.portrait-slot {
  position: relative;
  z-index: 5;
  pointer-events: none;
  width: min(100%, 390px);
  aspect-ratio: 1;
  height: auto;
  right: auto;
  top: auto;
  margin: 0 0 0 -120px;
  transform: translateY(28px);
  transition: transform 600ms cubic-bezier(.16, 1, .3, 1);
}
.portrait-slot:hover { transform: translateY(20px) rotate(2deg); }
.portrait-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent),
    var(--panel);
}
.portrait-placeholder::after {
  content: "";
  position: absolute;
  width: 36%;
  height: 62%;
  border: 1px solid var(--soft);
  border-radius: 50% 50% 42% 42%;
  transform: translateY(-4%);
}
.portrait-placeholder span {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 8px;
  text-transform: uppercase;
}
.portrait-placeholder b {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  font-family: var(--display);
  font-size: 68px;
  color: var(--title-faint);
  letter-spacing: -.12em;
}
.portrait-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  border: 1px solid var(--line);
  filter: grayscale(100%) contrast(1.12);
  box-shadow: 0 22px 70px rgba(17,17,17,.16);
}
.portrait-stamp {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: 9%;
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(9deg);
}
.portrait-slot.has-photo .portrait-placeholder { display: none; }
.portrait-slot.has-photo .portrait-image { display: block; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.hero-copy { max-width: 760px; }
.hero-intro {
  width: 100%;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.025em;
}
.hero-intro em { color: var(--accent-text); font-style: normal; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 16px;
  border: 1px solid var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: 180ms ease;
}
.button-primary { background: transparent; color: var(--paper); }
.button-primary:hover { background: var(--accent); color: var(--accent-ink); }
.button-secondary { background: transparent; color: var(--paper); }
.button-secondary:hover { background: var(--paper); color: var(--ink); }
.hero-index {
  margin: 0;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.circle-link {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper);
  border-radius: 50%;
  position: relative;
  transition: 260ms cubic-bezier(.16,1,.3,1);
}
.circle-link span { font-family: var(--sans); font-size: 10px; text-transform: uppercase; }
.circle-link b { position: absolute; right: 16px; bottom: 12px; }
.circle-link:hover { background: var(--paper); color: var(--ink); transform: rotate(8deg) scale(.96); }

.section { padding: 110px var(--pad); border-top: 1px solid var(--line); }
.home-feature { padding-top: 88px; }
.page-intro {
  display: grid;
  grid-template-columns: 25% minmax(0, 1fr);
  gap: 18px 0;
  padding: 88px var(--pad) 96px;
  border-bottom: 1px solid var(--line);
}
.page-intro > .eyebrow { padding-top: 10px; }
.page-intro h1 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 9vw, 132px);
  line-height: .86;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.page-intro h1 span { color: var(--accent-text); }
.page-intro-copy {
  grid-column: 2;
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--copy);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.55;
}
.work-page .featured-case { margin-left: 0; }
.work-page .filter-row { margin-left: 0; }
.all-work-link {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
}
.all-work-link span { color: var(--accent-text); }
.about-page .about-grid { margin-top: 0; }
.contact-page { min-height: 0; }
.contact-panel {
  display: grid;
  grid-template-columns: 25% 1fr;
  align-items: end;
  gap: 24px;
}
.contact-panel .eyebrow { grid-column: 1 / -1; }
.contact-panel .social-links { grid-column: 2; }
.eyebrow {
  margin: 0;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.section-heading { display: grid; grid-template-columns: 25% 1fr; align-items: start; margin-bottom: 58px; }
.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7.8vw, 112px);
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}
.filter-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 26px 25%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.filter {
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--soft);
  padding: 9px 13px;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 180ms ease;
}
.filter span { margin-left: 7px; color: var(--paper); }
.filter:hover, .filter.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter.active span { color: var(--accent-ink); }

.featured-case {
  display: grid;
  grid-template-columns: 34% 66%;
  min-height: 520px;
  margin: 0 0 70px 25%;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.featured-case-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px;
  border-right: 1px solid var(--line);
}
.featured-case-copy h3 {
  margin: 20px 0 12px;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 76px);
  line-height: .88;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.featured-case-copy > p:not(.eyebrow) {
  max-width: 290px;
  margin: 0;
  color: var(--copy);
  font-size: 18px;
  line-height: 1.45;
}
.featured-case-copy dl { width: 100%; margin: auto 0 24px; }
.featured-case-copy dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
}
.featured-case-copy dt { color: var(--soft); }
.featured-case-copy dd { margin: 0; }
.featured-case-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 48px;
  background:
    radial-gradient(circle at 76% 28%, var(--accent-glow), transparent 18%),
    #171718;
}
.browser-frame {
  width: 100%;
  max-width: 650px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: #f1f0ec;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  overflow: hidden;
  transition: 500ms cubic-bezier(.16,1,.3,1);
}
.featured-case-visual:hover .browser-frame { transform: translateY(-8px) rotate(-1deg); }
.browser-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid #d5d3cd;
  color: #777;
  font-family: var(--sans);
  font-size: 8px;
}
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; }
.browser-bar span { margin: auto; }
.marketplace-screen {
  height: calc(100% - 38px);
  display: grid;
  grid-template-columns: 18% 82%;
  color: #161616;
}
.marketplace-screen aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-right: 1px solid #ddd;
  background: #e8e7e2;
}
.marketplace-screen aside b { margin-bottom: 14px; font-family: var(--display); font-size: 12px; }
.mock-nav { width: 44%; height: 5px; border-radius: 10px; background: #aaa; }
.mock-nav.active { height: 20px; border-radius: 5px; background: var(--accent); }
.marketplace-content { padding: 18px 22px; }
.mock-search {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #777;
  font-family: var(--sans);
  font-size: 8px;
}
.mock-search b { color: #161616; font-size: 16px; }
.mock-heading { width: 42%; height: 22px; margin: 22px 0 14px; background: #252525; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards i { aspect-ratio: 4 / 3; border-radius: 4px; background: #aaa9a3; }
.mock-cards i:nth-child(1) { background: #dce6f0; }
.mock-cards i:nth-child(2) { background: #a9bed4; }
.mock-cards i:nth-child(3) { background: var(--accent); }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 16px; }
.project-card { grid-column: span 6; }
.project-card:nth-child(4n + 1) { grid-column: span 7; }
.project-card:nth-child(4n + 2) { grid-column: span 5; margin-top: 90px; }
.project-card:nth-child(4n + 3) { grid-column: span 5; }
.project-card:nth-child(4n + 4) { grid-column: span 7; margin-top: 90px; }
.project-card a { display: block; }
.project-art, .detail-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--panel);
  transition: 600ms cubic-bezier(.16, 1, .3, 1);
}
.project-card:nth-child(4n + 1) .project-art,
.project-card:nth-child(4n + 4) .project-art { aspect-ratio: 16 / 10; }
.project-card a:hover .project-art { transform: scale(.985) rotate(-1deg); }
.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17,17,17,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.art-object { position: absolute; transition: 700ms cubic-bezier(.16,1,.3,1); }
.art-mark {
  position: absolute;
  right: 14px;
  bottom: 2px;
  font-family: var(--display);
  font-size: clamp(60px, 9vw, 130px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.1em;
  opacity: .1;
}
.art-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 13px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.art-story { background: #242424; }
.art-story .art-object { width: 36%; aspect-ratio: 1; left: 32%; top: 20%; background: #d9d7d0; border-radius: 50%; box-shadow: 24px 24px 0 #3a3a3a; }
.project-card a:hover .art-story .art-object { transform: translate(-10px,-8px) rotate(12deg); }
.art-touch { background: var(--accent); }
.art-touch .art-object { width: 58%; height: 58%; left: 21%; top: 21%; border: 2px solid var(--art-ink); transform: rotate(45deg); }
.art-touch .art-object::before, .art-touch .art-object::after { content: ""; position: absolute; inset: 16%; border: 2px solid var(--art-ink); }
.art-touch .art-object::after { inset: 32%; background: var(--panel); }
.project-card a:hover .art-touch .art-object { transform: rotate(58deg) scale(.9); }
.art-livestream { background: var(--accent); }
.art-livestream .art-object { width: 64%; height: 50%; left: 18%; top: 25%; border: 10px solid var(--art-ink); background: repeating-linear-gradient(135deg, var(--paper) 0 7px, var(--accent) 7px 14px); }
.art-livestream .art-object::after { content: "LIVE"; position: absolute; right: -24px; top: -26px; color: var(--accent-text); font-family: var(--sans); font-size: 8px; }
.art-identity { background: #d8d2bc; color: var(--art-ink); }
.art-identity .art-object { width: 42%; height: 42%; left: 29%; top: 29%; border: 18px solid var(--art-ink); border-radius: 50% 50% 12% 50%; transform: rotate(-18deg); }
.project-card a:hover .art-identity .art-object { border-radius: 50%; transform: rotate(14deg) scale(.92); }
.art-podcast { background: #dce6f0; }
.art-podcast .art-object { width: 44%; height: 44%; left: 28%; top: 28%; border-radius: 50%; background: repeating-radial-gradient(circle, var(--art-ink) 0 4px, #dce6f0 5px 10px); }
.project-card a:hover .art-podcast .art-object { transform: scale(.82) rotate(-15deg); }
.art-code { background: var(--accent); }
.art-code .art-object { width: 58%; height: 58%; left: 21%; top: 21%; background: conic-gradient(from 45deg, var(--art-ink) 0 25%, transparent 25% 50%, var(--art-ink) 50% 75%, transparent 75%); }
.project-card a:hover .art-code .art-object { transform: rotate(45deg) scale(.88); }
.project-photo img, .detail-media img, .detail-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.project-photo img { filter: saturate(.9) contrast(1.03); transition: 700ms cubic-bezier(.16,1,.3,1); }
.project-card a:hover .project-photo img { transform: scale(1.035); }
.project-photo .art-caption { mix-blend-mode: difference; }

.project-info {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 15px 0 18px;
}
.project-info > div { display: flex; gap: 10px; align-items: baseline; }
.project-number, .project-info p {
  color: var(--soft);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
}
.project-info h3 { margin: 0; font-family: var(--display); font-size: clamp(21px, 2vw, 32px); letter-spacing: -.05em; }
.project-info p { margin: 5px 0 0; font-size: 12px; }
.project-overview-preview {
  min-height: 58px;
  max-width: 580px;
  margin: 14px 0 0;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.5;
}
.project-arrow { font-size: 18px; transition: 180ms ease; }
.project-card a:hover .project-arrow { transform: translate(5px,-5px); color: var(--accent-text); }

.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 7vw; align-items: end; margin-top: 48px; }
.about-grid h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 100px);
  line-height: .88;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.about-grid h2 span { color: var(--accent-text); }
.about-copy p { color: var(--copy); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.58; }
.text-link {
  display: inline-flex;
  gap: 28px;
  border-bottom: 1px solid var(--paper);
  padding: 12px 0 8px;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
}
.text-link span { color: var(--accent-text); }
.education-grid {
  display: grid;
  grid-template-columns: 25% 1fr;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.education-grid article {
  display: grid;
  grid-template-columns: 100px 1.3fr 1fr;
  gap: 20px;
  align-items: baseline;
}
.education-grid h3 { margin: 0; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -.04em; }
.education-grid article p { margin: 0; color: var(--copy); }
.education-year { color: var(--soft) !important; font-family: var(--sans); font-size: 10px; text-transform: uppercase; }

.skills-list { border-top: 1px solid var(--line); }
.skills-list article {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  align-items: center;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  transition: 220ms ease;
}
.skills-list article:hover { background: var(--accent); color: var(--accent-ink); padding: 0 16px; }
.skills-list article > span { color: var(--soft); font-family: var(--sans); font-size: 10px; }
.skills-list article:hover > span, .skills-list article:hover p { color: var(--accent-ink); }
.skills-list h3 { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.35vw, 38px); letter-spacing: -.05em; }
.skills-list p { color: var(--soft); font-family: var(--sans); font-size: 12px; line-height: 1.7; }

.resume { background: var(--panel); }
.resume-grid {
  display: grid;
  grid-template-columns: 25% 1fr;
  align-items: start;
}
.resume-grid h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 100px);
  line-height: .88;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.resume-grid div > p { max-width: 620px; color: var(--copy); font-size: 18px; line-height: 1.55; }

.contact { min-height: 620px; display: flex; flex-direction: column; justify-content: space-between; }
.contact h2 {
  margin: 50px 0;
  font-family: var(--display);
  font-size: clamp(66px, 10vw, 148px);
  line-height: .78;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.contact h2 span { color: var(--accent-text); font-style: italic; }
.contact-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.contact-email { font-size: clamp(18px, 2vw, 32px); letter-spacing: -.04em; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.contact-email span { color: var(--accent-text); }
.social-links a { font-family: var(--sans); font-size: 11px; text-transform: uppercase; }

footer { width: calc(100% - var(--pad) * 2); height: 78px; display: flex; align-items: center; justify-content: space-between; margin-inline: auto; border-top: 1px solid var(--line); color: var(--soft); font-family: var(--sans); font-size: 10px; text-transform: uppercase; }

.project-header { border-bottom: 0; }
.back-link { font-family: var(--sans); font-size: 11px; text-transform: uppercase; }
.project-hero { min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px var(--pad) 45px; }
.project-hero-meta { padding-bottom: 40px; }
.project-hero h1 { margin: auto 0 0; font-family: var(--display); font-size: clamp(68px, 11vw, 158px); line-height: .78; letter-spacing: -.09em; text-transform: uppercase; }
.project-hero h1 span { color: var(--accent-text); font-style: italic; }
.detail-art { width: calc(100% - var(--pad)*2); height: auto; aspect-ratio: 16 / 8; margin: 0 var(--pad); }
.project-overview { display: grid; grid-template-columns: 1fr 2fr 1.2fr; gap: 5vw; padding: 110px var(--pad); }
.project-description { margin: 0; font-family: var(--sans); font-size: clamp(30px, 3.25vw, 50px); line-height: 1.12; letter-spacing: -.05em; }
.project-overview dl { margin: 0; }
.project-overview dl div { display: grid; grid-template-columns: 70px 1fr; border-bottom: 1px solid var(--line); padding: 12px 0; font-family: var(--sans); font-size: 10px; line-height: 1.5; }
.project-overview dt { color: var(--soft); }
.project-overview dd { margin: 0; }
.project-story { border-top: 1px solid var(--line); }
.project-story article { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 5vw; align-items: start; min-height: 260px; padding: 55px var(--pad); border-bottom: 1px solid var(--line); }
.project-story h2 { margin: 0; font-family: var(--display); font-size: clamp(32px, 3.7vw, 54px); line-height: 1; letter-spacing: -.06em; }
.project-story article > p:last-child { margin: 0; color: var(--copy); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; }
.next-project { display: flex; justify-content: space-between; align-items: center; padding: 90px var(--pad); }
.next-project a { font-family: var(--display); font-size: clamp(38px, 6vw, 82px); font-weight: 700; letter-spacing: -.07em; }
.next-project a span { color: var(--accent-text); }
.not-found { min-height: 70vh; padding: 80px var(--pad); }
.not-found h1 { max-width: 900px; font-family: var(--display); font-size: clamp(60px, 9vw, 130px); line-height: .9; letter-spacing: -.07em; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

body.page-transition-enter > header,
body.page-transition-enter main,
body.page-transition-enter > footer {
  animation: 180ms ease-out both page-content-dissolve;
}

@keyframes page-content-dissolve {
  from { opacity: .88; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .brand-status { display: none; }
  .site-nav { gap: 18px; }
  .hero { min-height: 760px; }
  .hero-composition { min-height: 360px; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 28px; }
  .portrait-slot { width: min(100%, 300px); height: auto; aspect-ratio: 1; right: auto; margin-left: -76px; transform: translateY(18px); }
  .creative-markers { left: 55%; transform: translate(-50%, -50%) scale(.78) rotate(-5deg); }
  .section-heading { grid-template-columns: 20% 1fr; }
  .page-intro { grid-template-columns: 20% minmax(0, 1fr); padding-top: 72px; padding-bottom: 76px; }
  .featured-case { grid-template-columns: 40% 60%; margin-left: 20%; }
  .featured-case-copy { padding: 28px; }
  .featured-case-visual { padding: 28px; }
  .filter-row { margin-left: 20%; }
  .project-card:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { max-width: 560px; margin-left: auto; }
  .skills-list article { grid-template-columns: 50px 1fr 1.2fr; }
  .project-overview { grid-template-columns: 1fr 2fr; }
  .project-overview dl { grid-column: 2; }
  .project-story article { grid-template-columns: 1fr 1.5fr; }
  .project-story article > p:last-child { grid-column: 2; }
}

@keyframes mobile-nav-open {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  :root { --pad: 17px; }
  .site-header {
    height: 72px;
    grid-template-columns: 1fr auto auto;
  }
  .menu-toggle { display: grid; grid-column: 3; grid-row: 1; justify-self: end; place-items: center; }
  .theme-toggle { grid-column: 2; grid-row: 1; margin-left: 0; }
  .site-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: auto;
    right: 0;
    z-index: 1;
    width: min(184px, calc(100vw - var(--pad) * 2));
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: color-mix(in srgb, var(--ink) 92%, transparent);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    backdrop-filter: blur(10px);
  }
  .site-nav.open { display: grid; animation: mobile-nav-open 180ms ease-out; }
  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px;
    border-radius: 6px;
    font-size: 10px;
  }
  .site-nav a::after { display: none; }
  .site-nav a:hover,
  .site-nav a:focus-visible { background: var(--panel); }
  .site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .site-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
  .hero { min-height: calc(100vh - 72px); padding-top: 22px; }
  .hero-meta p:last-child { display: none; }
  .hero-composition { min-height: 390px; display: grid; grid-template-columns: 1fr; gap: 20px; align-content: start; }
  .puzzle-lockup { padding-top: 32px; }
  .portrait-slot { width: clamp(190px, 62vw, 260px); max-width: 100%; height: auto; aspect-ratio: 1; right: auto; top: auto; justify-self: end; margin-left: 0; transform: none; }
  .creative-markers { left: 58%; top: 62%; transform: translate(-50%, -50%) scale(.62) rotate(-5deg); }
  .portrait-stamp { right: 0; width: 48px; }
  .hero-intro { width: 100%; font-size: 16px; }
  .hero-index { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .button { width: 100%; }
  .featured-case {
    display: block;
    margin: 0 0 50px;
  }

  .featured-case-copy {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .featured-case-visual {
    min-height: 320px;
    padding: 28px 18px;
  }
  .project-overview-preview { min-height: 0; font-size: 14px; }
  .education-grid { display: block; margin-top: 56px; }
  .education-grid article { grid-template-columns: 72px 1fr; margin-top: 24px; }
  .education-grid article > p:last-child { grid-column: 2; }
  .resume-grid { display: block; }
  .resume-grid h2 { margin-top: 30px; font-size: clamp(38px, 13vw, 52px); }
  .circle-link { width: 84px; height: 84px; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .page-intro { display: block; padding: 58px var(--pad) 64px; }
  .page-intro h1 { margin-top: 26px; font-size: clamp(42px, 13vw, 76px); }
  .page-intro-copy { margin-top: 24px; font-size: 17px; }
  .contact-panel { display: block; }
  .contact-panel .contact-email { margin-top: 28px; }
  .contact-panel .social-links { margin-top: 26px; }
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading h2 { margin-top: 28px; font-size: 54px; }
  .filter-row { margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter { flex: 0 0 auto; }
  .project-grid { display: block; }
  .project-card:nth-child(n) { margin: 0 0 38px; }
  .project-art, .project-card:nth-child(n) .project-art { aspect-ratio: 4 / 3; }
  .project-info { grid-template-columns: 1fr auto; }
  .project-info p { display: none; }
  .project-info h3 { font-size: 22px; }
  .about-grid { margin-top: 32px; gap: 32px; }
  .about-grid h2 { font-size: 45px; }
  .about-copy { margin: 0; }
  .skills-list article { grid-template-columns: 38px 1fr; min-height: 106px; }
  .skills-list h3 { font-size: 18px; }
  .skills-list p { grid-column: 2; margin: 0 0 16px; }
  .skills-list article:hover { padding: 0 8px; }
  .contact { min-height: 570px; }
  .contact h2 { margin: 30px 0; font-size: 60px; }
  .contact-footer { display: block; }
  .contact-email { display: block; font-size: 14px; margin-bottom: 25px; }
  footer { height: 70px; }
  .project-hero { min-height: 390px; }
  .project-hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .detail-art { width: calc(100% - 34px); aspect-ratio: 4 / 3; margin: 0 17px; }
  .project-overview { display: block; padding-top: 78px; padding-bottom: 78px; }
  .project-description { margin: 32px 0 44px; font-size: 29px; }
  .project-overview dl div { grid-template-columns: 78px 1fr; }
  .project-story article { display: block; min-height: 0; padding-top: 44px; padding-bottom: 44px; }
  .project-story h2 { margin: 26px 0 20px; }
  .next-project { display: block; }
  .next-project a { display: block; margin-top: 32px; font-size: 42px; }
}
