:root {
  color-scheme: light;
  --paper: #f3eee2;
  --paper-deep: #e8dfcf;
  --ink: #161616;
  --charcoal: #202020;
  --bone: #f5f0e7;
  --orange: #f05a28;
  --yellow: #d8d74a;
  --line: #b8b1a5;
  --graphite: #4b4a46;
  --font-display: "DM Serif Display", "Instrument Serif", Georgia, serif;
  --font-sans: Manrope, Inter, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --max: 1340px;
  --outer: clamp(18px, 3.5vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 18% 12%, rgb(255 255 255 / 44%), transparent 24rem),
    radial-gradient(circle at 78% 22%, rgb(184 177 165 / 16%), transparent 22rem),
    linear-gradient(90deg, rgb(22 22 22 / 3%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(22 22 22 / 3%) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: .07em;
  text-underline-offset: .24em;
}

a:hover {
  color: var(--orange);
}

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

.archive-container {
  width: calc(100% - (var(--outer) * 2));
  max-width: var(--max);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--bone);
  padding: .7rem 1rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgb(243 238 226 / 88%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
  text-decoration: none;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-primary {
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.4vw, 2.7rem);
  font-size: .96rem;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-height: 44px;
}

.language-switcher button {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 36px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  padding: .25rem .38rem;
}

.language-switcher button[aria-pressed="true"] {
  border-color: var(--ink);
  background: rgb(22 22 22 / 6%);
}

.flag {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgb(22 22 22 / 24%);
  box-shadow: 0 0 0 1px rgb(245 240 231 / 20%) inset;
}

.flag-es {
  background: linear-gradient(#c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75%);
}

.flag-en {
  background:
    linear-gradient(90deg, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(transparent 38%, #c8102e 38% 62%, transparent 62%),
    linear-gradient(90deg, transparent 34%, #fff 34% 66%, transparent 66%),
    linear-gradient(transparent 30%, #fff 30% 70%, transparent 70%),
    #012169;
}

.flag-ja {
  background: radial-gradient(circle at 50% 50%, #bc002d 0 32%, transparent 33%), #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: .8rem;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.mobile-status-dot {
  display: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.hero {
  padding-block: clamp(2.3rem, 6vw, 5.3rem) clamp(1.4rem, 4vw, 2rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.hero-copy {
  max-width: min(660px, 100%);
}

.eyebrow,
.work-number,
.project-line,
.section-kicker,
.work-meta h4 {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 .85rem;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

h1 {
  max-width: 12ch;
  margin-bottom: .8rem;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: .98;
}

.accent-rule {
  display: block;
  width: 18px;
  height: 2px;
  margin: .95rem 0;
  background: var(--orange);
}

.hero-support {
  max-width: 520px;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.button,
.cv-link,
.project-link,
.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.button {
  border: 1px solid var(--ink);
  padding: .72rem 1.55rem;
  font-weight: 700;
}

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

.button-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bone);
}

.cv-link {
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}

.hero-index {
  border-left: 1px solid var(--line);
  padding-left: clamp(2rem, 6vw, 5rem);
}

.hero-index ol {
  display: grid;
  gap: 0;
  max-width: 360px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-index a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1.8rem;
  min-height: 54px;
  align-items: center;
  border-bottom: 1px dotted var(--line);
  text-decoration: none;
}

.hero-index span {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
}

.hero-index li:first-child span {
  color: var(--orange);
}

.hero-index strong {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.selected-work {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.work-panel,
.image-feature,
.mycelium-card {
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}

.neo-feature {
  display: grid;
  grid-template-columns: minmax(320px, .52fr) minmax(0, .9fr);
  min-height: 315px;
  border: 1px solid var(--ink);
}

.neo-info {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.work-number {
  margin-bottom: .7rem;
}

.neo-info h3,
.image-overlay h3 {
  margin-bottom: .65rem;
  color: var(--bone);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.project-line {
  margin-bottom: .8rem;
}

.work-summary {
  max-width: 390px;
  margin: 1.2rem 0 2.1rem;
  color: var(--bone);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  overflow-wrap: break-word;
}

.work-meta {
  display: grid;
  grid-template-columns: 1.25fr .8fr;
  gap: 1.5rem;
  max-width: 520px;
}

.work-meta > div + div {
  border-left: 1px solid rgb(245 240 231 / 52%);
  padding-left: 1.5rem;
}

.work-meta p {
  margin-bottom: 0;
  color: rgb(245 240 231 / 88%);
  font-size: .9rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin: .95rem 0 0;
  padding: 0;
  list-style: none;
}

.tech-tags li,
.tech-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgb(245 240 231 / 26%);
  padding: .16rem .45rem;
  color: rgb(245 240 231 / 78%);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.tech-tags.on-paper li,
.tech-tags.on-paper span {
  border-color: rgb(37 37 34 / 20%);
  color: var(--graphite);
}

.project-link {
  margin-top: 1.2rem;
  color: var(--bone);
  font-weight: 800;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.4rem;
  row-gap: .2rem;
}

.project-link.subtle {
  color: rgb(245 240 231 / 78%);
}

.project-link.yellow {
  color: var(--yellow);
}

.neo-visual {
  min-height: 100%;
  border-left: 1px solid rgb(245 240 231 / 16%);
  background:
    linear-gradient(90deg, rgb(22 22 22 / 64%), transparent 22%),
    radial-gradient(circle at 72% 34%, rgb(240 90 40 / 10%), transparent 24rem),
    #101010;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.feature-video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border: 1px solid rgb(245 240 231 / 18%);
  background: #050505;
}

.neo-placeholder {
  display: grid;
  min-height: 100%;
  align-content: center;
  border: 1px solid rgb(245 240 231 / 18%);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 4%) 1px, transparent 1px),
    #171717;
  background-size: 48px 48px;
  color: var(--bone);
  padding: 2rem;
}

.neo-placeholder span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: .85rem;
}

.neo-placeholder strong {
  margin-top: .5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
}

.neo-placeholder small {
  color: rgb(245 240 231 / 70%);
  font-family: var(--font-mono);
}

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: 0;
  border-inline: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.image-feature,
.mycelium-main {
  position: relative;
  min-height: 320px;
}

.archive-feature {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgb(245 240 231 / 8%) 1px, transparent 1px),
    radial-gradient(circle at 78% 22%, rgb(240 90 40 / 22%), transparent 10rem),
    radial-gradient(circle at 24% 86%, rgb(216 215 74 / 16%), transparent 12rem),
    #181816;
  background-size: 34px 34px, auto, auto, auto;
  color: var(--bone);
}

.image-feature img,
.archive-feature img,
.mycelium-main img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.image-feature::after,
.mycelium-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 72%), rgb(0 0 0 / 12%) 58%, transparent);
}

.archive-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 70%), rgb(0 0 0 / 20%) 62%, transparent),
    linear-gradient(180deg, transparent, rgb(0 0 0 / 24%));
}

.archive-feature img {
  opacity: .84;
}

.image-overlay {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: min(72%, 360px);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.mycelium-main .image-overlay {
  width: min(58%, 300px);
}

.image-overlay h3 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.image-overlay p:not(.work-number) {
  color: var(--bone);
  font-weight: 600;
  overflow-wrap: break-word;
}

.archive-feature-mark {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1;
  border: 1px solid rgb(245 240 231 / 48%);
  color: rgb(245 240 231 / 78%);
  padding: .6rem .75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: .9;
  text-align: center;
}

.mycelium-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, .58fr);
  border-left: 1px solid var(--paper);
}

.compact-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-inline: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.compact-feature-grid.single {
  grid-template-columns: 1fr;
}

.compact-feature-grid.single .compact-feature {
  min-height: 250px;
}

.compact-feature {
  min-height: 230px;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgb(245 240 231 / 7%) 1px, transparent 1px),
    radial-gradient(circle at 86% 24%, rgb(216 215 74 / 18%), transparent 10rem),
    #171715;
  background-size: 32px 32px, auto, auto;
}

.compact-feature + .compact-feature {
  border-left: 1px solid rgb(245 240 231 / 28%);
}

.compact-feature.muted {
  background:
    linear-gradient(135deg, rgb(245 240 231 / 5%) 1px, transparent 1px),
    radial-gradient(circle at 84% 30%, rgb(240 90 40 / 14%), transparent 9rem),
    #1e1d1a;
  background-size: 32px 32px, auto, auto;
}

.compact-feature h3 {
  margin-bottom: .65rem;
  color: var(--bone);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.compact-feature p:not(.work-number) {
  max-width: 520px;
  margin-bottom: 1rem;
  color: rgb(245 240 231 / 88%);
  overflow-wrap: break-word;
}

.mycelium-gallery {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-height: 320px;
  border-left: 1px solid rgb(245 240 231 / 28%);
}

.thumb-pending {
  display: grid;
  place-items: center;
  min-height: 90px;
  border-bottom: 1px solid rgb(245 240 231 / 28%);
  background:
    radial-gradient(circle at 30% 35%, rgb(216 215 74 / 18%), transparent 6rem),
    #211f1a;
  color: rgb(245 240 231 / 72%);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-align: center;
  padding: .8rem;
  text-decoration: none;
}

.thumb-pending:last-child {
  border-bottom: 0;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding-top: 1.25rem;
  align-items: start;
}

.lower-grid > * + * {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.2rem, 2.6vw, 2.2rem);
}

.profile-panel {
  grid-column: 1 / -1;
  border-left: 0 !important;
  padding-left: 0 !important;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.section-kicker {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: .55rem;
}

.section-kicker h2,
.notes-panel h2,
.profile-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .95rem;
  text-transform: uppercase;
}

.archive-list ul,
.profile-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.archive-list a {
  display: grid;
  grid-template-columns: minmax(190px, .95fr) minmax(220px, 1fr) minmax(230px, 1.05fr) minmax(86px, max-content) 24px;
  column-gap: clamp(.85rem, 1.8vw, 1.35rem);
  row-gap: .35rem;
  align-items: center;
  min-height: 48px;
  border-top: 1px dotted var(--line);
  color: var(--ink);
  text-decoration: none;
}

.archive-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.archive-list span,
.archive-list time,
.notes-panel p,
.profile-panel p,
.profile-links {
  color: var(--graphite);
}

.archive-list span,
.archive-list time {
  font-size: .88rem;
}

.archive-list time {
  justify-self: end;
  min-width: 86px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.archive-list .tech-tags {
  margin: 0;
  gap: .25rem;
  justify-self: start;
}

.archive-list .tech-tags span {
  min-height: 21px;
  padding: .12rem .34rem;
  font-size: .62rem;
}

.notes-panel p {
  max-width: 38ch;
}

.diagram {
  margin: 2rem 0 0;
  color: var(--graphite);
}

.diagram text {
  fill: currentColor;
  font-family: var(--font-mono);
  font-size: 18px;
}

.profile-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 620px) auto;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}

.profile-photo {
  width: clamp(140px, 13vw, 180px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.placeholder-photo {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d8d0c2, #f5f0e7);
  color: var(--orange);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2.4rem;
}

.profile-body h3 {
  margin-bottom: .4rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.profile-links {
  display: grid;
  gap: .28rem;
  margin-top: .8rem;
  font-size: .9rem;
}

.profile-links a {
  min-height: 28px;
}

.signature {
  align-self: end;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: .3rem .42rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: .86;
  text-align: center;
}

.contact-strip {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.contact-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.contact-strip h2 {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--bone);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.contact-links a {
  border-bottom: 1px solid rgb(245 240 231 / 55%);
}

.site-footer {
  background: var(--ink);
  color: rgb(245 240 231 / 82%);
  border-top: 1px solid rgb(245 240 231 / 16%);
  padding-block: 1.4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
}

.footer-inner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.case-main {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.case-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .48fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.hero-layout > *,
.neo-feature > *,
.work-row > *,
.lower-grid > *,
.case-grid > *,
.case-section > * {
  min-width: 0;
}

.case-kicker,
.case-meta dt {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.case-title {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: .96;
  hyphens: auto;
}

.case-summary {
  max-width: 760px;
  color: var(--graphite);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  overflow-wrap: break-word;
}

.case-meta {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.case-meta dl {
  margin: 0;
}

.case-meta div {
  border-bottom: 1px dotted var(--line);
  padding-block: .8rem;
}

.case-meta dd {
  margin: .25rem 0 0;
  color: var(--graphite);
}

.case-visual {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.case-visual img,
.case-visual video,
.case-visual iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-visual iframe {
  display: block;
  height: auto;
  min-height: clamp(220px, 54vw, 720px);
  border: 0;
}

.case-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
}

.case-video-card {
  display: grid;
  align-content: start;
  margin: 0;
  background: #111;
  color: var(--bone);
}

.case-video-card.featured {
  grid-column: 1 / -1;
}

.case-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
}

.case-video-card figcaption {
  border-top: 1px solid rgb(245 240 231 / 16%);
  padding: .75rem .9rem;
  color: rgb(245 240 231 / 78%);
  font-family: var(--font-mono);
  font-size: .78rem;
}

.playable-frame {
  display: grid;
  gap: 1rem;
  background: var(--ink);
  padding: clamp(.8rem, 2vw, 1.2rem);
}

.playable-frame iframe {
  width: 100%;
  min-height: clamp(360px, 58vw, 720px);
  border: 1px solid rgb(245 240 231 / 18%);
  background: #050505;
}

.playable-note {
  margin: 0;
  color: rgb(245 240 231 / 72%);
  font-family: var(--font-mono);
  font-size: .82rem;
}

.playable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  align-items: center;
}

.playable-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

.case-placeholder {
  display: grid;
  min-height: 320px;
  place-items: center;
  background:
    linear-gradient(90deg, rgb(245 240 231 / 5%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(245 240 231 / 5%) 1px, transparent 1px),
    var(--ink);
  background-size: 40px 40px;
  color: var(--bone);
  font-family: var(--font-mono);
  text-align: center;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(1.5rem, 4vw, 2.6rem);
}

.case-section h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .95rem;
  text-transform: uppercase;
}

.case-section p,
.case-section li {
  color: var(--graphite);
}

.case-section ul {
  margin-top: 0;
}

.case-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.redirect-card {
  max-width: 680px;
  margin: clamp(4rem, 12vw, 8rem) auto;
  border: 1px solid var(--line);
  background: rgb(245 240 231 / 54%);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.reveal-on-scroll,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

@media (max-width: 1199px) {
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-status-dot {
    display: none;
    justify-self: end;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: .7rem;
  }

  .site-nav {
    position: fixed;
    inset: 68px var(--outer) auto var(--outer);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 1rem;
    box-shadow: 0 24px 60px rgb(22 22 22 / 18%);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    font-size: 1.4rem;
  }

  .language-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: .4rem;
  }

  .language-switcher button {
    justify-content: center;
    min-height: 44px;
    border-color: var(--line);
  }

  .site-nav .status-dot {
    margin-top: .6rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
    gap: 2rem;
  }

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

  .case-meta {
    border-left: 0;
    padding-left: 0;
  }

  .neo-feature {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .neo-visual {
    border-left: 0;
    border-top: 1px solid rgb(245 240 231 / 16%);
  }

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

  .archive-list {
    grid-column: 1 / -1;
  }

  .profile-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .archive-container {
    width: auto;
    max-width: none;
    margin-inline: 16px;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: clamp(1.25rem, 7vw, 1.65rem);
  }

  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-nav {
    inset: 64px 16px auto 16px;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-layout,
  .work-row,
  .lower-grid,
  .contact-inner,
  .case-section {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    display: grid;
  }

  h1 {
    max-width: min(100%, 12.5ch);
    font-size: clamp(2.1rem, 9vw, 3.35rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-index {
    border-left: 0;
    padding-left: 0;
    padding-top: .6rem;
  }

  .hero-index a {
    grid-template-columns: 38px 1fr;
    gap: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: .8rem;
    max-width: 320px;
  }

  .hero-support,
  .work-summary {
    max-width: 22rem;
  }

  .button,
  .cv-link {
    justify-content: center;
  }

  .work-row {
    border-inline: 1px solid var(--ink);
  }

  .work-meta {
    grid-template-columns: 1fr;
  }

  .work-meta > div + div {
    border-left: 0;
    border-top: 1px solid rgb(245 240 231 / 52%);
    padding-top: 1rem;
    padding-left: 0;
  }

  .mycelium-card {
    grid-template-columns: 1fr;
    border-left: 0;
    border-top: 1px solid var(--paper);
  }

  .compact-feature-grid {
    grid-template-columns: 1fr;
  }

  .compact-feature + .compact-feature {
    border-top: 1px solid rgb(245 240 231 / 28%);
    border-left: 0;
  }

  .mycelium-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    min-height: 110px;
    border-left: 0;
    border-top: 1px solid rgb(245 240 231 / 28%);
  }

  .thumb-pending {
    border-right: 1px solid rgb(245 240 231 / 28%);
    border-bottom: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .image-feature,
  .mycelium-main,
  .image-feature img,
  .mycelium-main img {
    min-height: 270px;
  }

  .image-overlay {
    width: min(92%, 380px);
  }

  .archive-list {
    background: var(--ink);
    color: var(--bone);
    padding: 1rem;
  }

  .archive-list .section-kicker h2,
  .archive-list a,
  .archive-list span,
  .archive-list time {
    color: var(--bone);
  }

  .archive-list a {
    grid-template-columns: minmax(0, 1fr) auto 20px;
    gap: .2rem 1rem;
    padding-block: .7rem;
  }

  .archive-list strong,
  .archive-list a > span {
    grid-column: 1;
  }

  .archive-list .tech-tags {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: .35rem;
  }

  .archive-list time {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .archive-list a > span[aria-hidden="true"] {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .lower-grid > * + * {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
  }

  .profile-body {
    grid-template-columns: minmax(96px, 140px) 1fr;
  }

  .signature {
    grid-column: 2;
    justify-self: end;
  }

  .contact-inner {
    display: grid;
    align-items: start;
  }

  .contact-links {
    justify-content: flex-start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-title {
    max-width: min(100%, 14ch);
    font-size: clamp(2.1rem, 9vw, 3.8rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .case-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .playable-frame iframe {
    min-height: 420px;
  }

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

  .case-video-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .archive-container {
    margin-inline: 14px;
  }

  .brand {
    gap: .35rem;
    font-size: clamp(1rem, 5.3vw, 1.16rem);
  }

  h1 {
    max-width: min(100%, 13ch);
    font-size: clamp(2rem, 8.6vw, 2.45rem);
  }

  .brand span:last-child {
    max-width: 8.5rem;
  }

  .profile-body {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: min(100%, 220px);
  }

  .signature {
    grid-column: 1;
  }

  .neo-info,
  .compact-feature,
  .image-overlay {
    padding: 1.15rem;
  }

  .image-overlay {
    width: 100%;
  }

  .archive-feature-mark {
    display: none;
  }

  .mycelium-gallery {
    grid-template-columns: 1fr;
  }

  .thumb-pending {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid rgb(245 240 231 / 28%);
  }

  .playable-frame {
    margin-inline: -14px;
    border-inline: 0;
  }

  .playable-frame iframe {
    min-height: 330px;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .hero-layout,
  .work-row,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .hero-index {
    border-left: 0;
    padding-left: 0;
  }

  .lower-grid > * + * {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
  }

  .profile-panel {
    grid-column: auto;
  }
}

@media (min-width: 1400px) {
  .archive-container {
    max-width: min(var(--max), calc(100vw - 104px));
  }
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
