:root {
  --bg: #f3f1ec;
  --ink: #111111;
  --muted: #68645d;
  --soft: #918c83;
  --line: #d8d2c8;
  --panel: #fbfaf7;
  --panel-soft: #ebe8e0;
  --focus: #111111;
  --display: Didot, "Bodoni 72", "Bodoni MT", "Bodoni 72 Smallcaps", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(155deg, #f2efe7 0%, #f8f7f3 42%, #ecefed 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

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

h1,
h2,
h3,
p {
  max-width: 100%;
  margin-top: 0;
  overflow-wrap: break-word;
}

.site-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-width: 0;
}

.is-hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-links a,
.category-jump a,
.contact-strip a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.category-jump a:hover,
.category-jump a:focus-visible,
.contact-strip a:hover,
.contact-strip a:focus-visible {
  color: var(--ink);
}

.contact-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--ink);
  color: var(--bg) !important;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.language-switcher button {
  min-width: 32px;
  min-height: 31px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.language-switcher button:last-child {
  border-right: 0;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: var(--ink);
}

.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.intro {
  display: grid;
  align-content: end;
  min-height: 34vh;
  padding: 80px 0 58px;
  border-bottom: 1px solid var(--line);
}

.metadata-intro {
  align-content: start;
  min-height: auto;
  padding: 22px 0 40px;
}

.metadata-intro .intro-copy {
  justify-self: center;
  max-width: 620px;
  margin-top: 18px;
  text-align: center;
}

.eyebrow,
.section-kicker,
.preview-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  width: 100%;
  margin: 15px 0 17px;
  font-family: var(--display);
  font-size: 5.2rem;
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: 0;
}

.metadata-intro h1 {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: clamp(2.15rem, 3.8vw, 3.85rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.intro-copy {
  width: 100%;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.work-section {
  padding: 46px 0 76px;
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  min-width: 0;
}

.section-row h2,
.info-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.category-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
}

.category-jump a {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.category-jump a:hover,
.category-jump a:focus-visible {
  border-color: var(--ink);
}

.project-sections {
  display: grid;
  gap: 84px;
}

.category-section {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
  min-width: 0;
}

.category-heading {
  position: sticky;
  top: 96px;
  align-self: start;
}

.category-heading p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 44px 28px;
  min-width: 0;
}

.project-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.project-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 8px;
}

.project-card figure {
  margin: 0;
  min-width: 0;
}

.project-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.42);
  color: #fbfaf7;
  text-align: center;
}

.project-overlay span {
  padding: 8px 12px;
  border: 1px solid rgba(251, 250, 247, 0.72);
  color: #fbfaf7;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card:hover img {
  transform: scale(1.025);
}

.project-placeholder,
.dialog-placeholder {
  display: grid;
  place-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 24px;
  color: var(--soft);
  text-align: center;
}

.project-placeholder span,
.dialog-placeholder span {
  font-family: var(--display);
  font-size: 3.1rem;
  line-height: 1;
}

.project-placeholder-simple small {
  color: var(--soft);
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.project-placeholder small,
.dialog-placeholder small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-card figcaption {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  min-width: 0;
}

.project-card figcaption span {
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.18;
}

.project-card figcaption small {
  display: block;
  min-width: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-card:hover figcaption span {
  font-style: italic;
}

.text-action,
.watch-link,
.close-button {
  width: fit-content;
  min-height: 38px;
  margin-top: 8px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.info-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.8fr);
  gap: 58px;
  padding: 72px 0 88px;
  border-top: 1px solid var(--line);
}

.info-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.connect-copy {
  padding-top: 18px;
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: 1.18rem !important;
  line-height: 1.32;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.contact-strip a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}

.project-dialog {
  width: min(880px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 34px 110px rgba(17, 17, 17, 0.26);
}

.project-dialog.has-player {
  width: min(1040px, calc(100% - 28px));
}

.project-dialog.has-collection {
  width: min(1080px, calc(100% - 28px));
}

.project-dialog::backdrop {
  background: rgba(17, 17, 17, 0.34);
  backdrop-filter: blur(10px);
}

.close-button {
  display: block;
  margin: 0 0 16px auto;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.project-dialog.has-player .dialog-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.project-dialog.has-collection .dialog-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
}

.dialog-media {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.dialog-media.is-player {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.dialog-media.is-video {
  align-self: center;
  min-height: 0;
  aspect-ratio: var(--media-aspect-ratio, 16 / 9);
  place-items: center;
  background: #000000;
}

.dialog-media.is-collection {
  display: block;
  min-height: 0;
  max-height: min(68vh, 620px);
  overflow-y: auto;
  padding-right: 8px;
  border: 0;
  background: transparent;
}

.media-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000000;
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(251, 250, 247, 0.58);
  background: rgba(17, 17, 17, 0.58);
  color: #fbfaf7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.dialog-media img,
.dialog-media video,
.dialog-media iframe {
  width: 100%;
  height: 100%;
}

.dialog-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.dialog-media img,
.dialog-media video {
  object-fit: cover;
}

.media-preview video {
  display: block;
  object-fit: cover;
}

.dialog-media iframe {
  border: 0;
}

.dialog-media video {
  background: #000000;
}

.clip-list {
  display: grid;
  gap: 18px;
}

.clip-card {
  display: grid;
  gap: 12px;
}

.clip-media {
  aspect-ratio: var(--clip-aspect-ratio, 16 / 9);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000000;
}

.clip-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-copy {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding-bottom: 4px;
}

.clip-copy span {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.clip-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
}

.clip-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.dialog-copy {
  min-width: 0;
  padding: 8px 4px 12px 0;
}

.dialog-copy h2 {
  margin: 10px 0 14px;
  font-family: var(--display);
  font-size: 2.55rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.dialog-copy p {
  margin: 0;
  color: var(--muted);
}

.project-facts {
  display: grid;
  gap: 12px;
  margin: 28px 0 18px;
}

.project-facts div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.project-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 24px, 720px);
  }

  .site-header,
  .section-row,
  .category-section,
  .info-section,
  .dialog-grid,
  .project-dialog.has-player .dialog-grid,
  .project-dialog.has-collection .dialog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    position: static;
    gap: 18px;
  }

  .brand {
    justify-self: start;
  }

  .nav-links,
  .category-jump {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 10px 16px;
  }

  .intro {
    min-height: auto;
    padding: 62px 0 50px;
  }

  .metadata-intro {
    padding: 26px 0 38px;
  }

  .metadata-intro h1 {
    justify-self: start;
    text-align: left;
  }

  .metadata-intro .intro-copy {
    justify-self: start;
    margin-top: 18px;
    text-align: left;
  }

  h1 {
    font-size: 3.65rem;
  }

  .category-heading {
    position: static;
  }

  .project-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .project-image {
    aspect-ratio: 4 / 5;
  }

  .dialog-media {
    min-height: 240px;
  }

  .dialog-media.is-collection {
    max-height: none;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 20px);
  }

  .nav-links {
    font-size: 0.78rem;
    gap: 9px 10px;
  }

  .contact-button {
    padding-inline: 9px;
  }

  .language-switcher button {
    min-width: 30px;
    padding-inline: 7px;
  }

  h1 {
    font-size: 3rem;
  }

  .metadata-intro h1 {
    max-width: 16ch;
    line-height: 1.02;
    white-space: normal;
  }

  .section-row h2,
  .info-section h2 {
    font-size: 2rem;
  }

  .intro-copy,
  .project-card figcaption small,
  .info-copy p {
    font-size: 0.95rem;
  }

  .intro-copy,
  .metadata-intro .intro-copy,
  .category-heading p:last-child,
  .project-card figcaption small,
  .info-copy p {
    max-width: 34ch;
  }

  .info-section h2 {
    max-width: 14ch;
  }

  .contact-strip {
    display: grid;
    gap: 10px;
  }

  .contact-strip a {
    width: fit-content;
  }

  .project-sections {
    gap: 64px;
  }

  .category-section {
    gap: 24px;
    padding-top: 28px;
  }

  .dialog-copy h2 {
    font-size: 2.05rem;
  }

  .project-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Hybrid test: stronger Claude-style typography, original work layout. */
:root {
  --bg: #edf3f5;
  --ink: #061f27;
  --muted: #566970;
  --soft: #7a8c92;
  --line: #c8d3d7;
  --panel: #f7fafb;
  --panel-soft: #e3ecef;
  --focus: #061f27;
  --accent: #006f80;
  --display: "Archivo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.86) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #eef4f6 0%, #f8f9f7 46%, #edf3f5 100%);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
}

.site-shell {
  width: min(1360px, calc(100% - 120px));
}

.site-header {
  position: static;
  min-height: 94px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  backdrop-filter: none;
}

.brand {
  gap: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brand-mark {
  display: none;
}

.nav-links {
  gap: 30px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-button {
  min-height: 43px;
  padding: 13px 22px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--bg) !important;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--accent);
  color: #ffffff !important;
}

.language-switcher {
  min-height: 34px;
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
}

.language-switcher button {
  min-width: 34px;
  min-height: 34px;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.intro.metadata-intro {
  display: block;
  padding: 90px 0 82px;
  border-bottom: 1px solid var(--line);
}

.metadata-intro h1 {
  width: min(900px, 100%);
  margin: 28px 0 28px;
  font-family: var(--display);
  font-size: clamp(4.4rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-align: left;
  text-transform: none;
}

.hero-eyebrow {
  margin: 0;
}

.metadata-intro .intro-copy {
  justify-self: start;
  max-width: 610px;
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.9;
  text-align: left;
}

.eyebrow,
.section-kicker,
.preview-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.work-section {
  padding-top: 74px;
}

.section-row h2,
.info-section h2,
.dialog-copy h2,
.project-card figcaption span,
.clip-copy h3,
.dialog-placeholder span {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-row h2,
.info-section h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.category-jump a {
  border-radius: 0;
  border-color: var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-jump a:hover,
.category-jump a:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.category-section {
  border-top-color: var(--line);
}

.category-heading p:last-child,
.project-card figcaption small,
.info-copy p,
.dialog-copy p,
.project-facts dd,
.clip-copy p {
  font-family: var(--mono);
}

.project-card figcaption span {
  font-size: 1.35rem;
  line-height: 1.08;
}

.project-card:hover figcaption span {
  font-style: normal;
}

.project-card figcaption small,
.category-heading p:last-child,
.info-copy p,
.dialog-copy p,
.clip-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.project-facts dt,
.clip-copy span,
.media-badge,
.project-overlay span,
.close-button,
.watch-link {
  font-family: var(--mono);
}

.project-dialog {
  background: var(--panel);
  color: var(--ink);
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 40px, 720px);
  }

  .site-header {
    min-height: auto;
    padding: 22px 0;
  }

  .nav-links {
    gap: 10px 16px;
    font-size: 0.66rem;
  }

  .intro.metadata-intro {
    padding: 58px 0 50px;
  }

  .metadata-intro h1 {
    max-width: 16ch;
    margin: 16px 0 20px;
    font-size: 3.55rem;
    line-height: 1;
  }

  .metadata-intro .intro-copy {
    max-width: 40rem;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 32px);
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    align-items: center;
    gap: 9px 11px;
    font-size: 0.63rem;
  }

  .language-switcher {
    width: fit-content;
  }

  .contact-button {
    padding-inline: 11px;
  }

  .metadata-intro h1 {
    max-width: 13ch;
    font-size: 3.05rem;
  }

  .metadata-intro .intro-copy {
    max-width: 30ch;
  }

  .section-row h2,
  .info-section h2 {
    font-size: 2.25rem;
  }
}
