:root {
  --ink: #181715;
  --muted: #68635d;
  --paper: #f7f3ec;
  --soft: #eee7db;
  --line: rgba(24, 23, 21, 0.14);
  --deep: #143b39;
  --accent: #b34731;
  --gold: #c59a50;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(24, 23, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 16px;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  background: var(--ink);
  color: var(--paper);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.site-header.is-solid,
.site-header.nav-open {
  background: rgba(247, 243, 236, 0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.subpage .site-header {
  background: rgba(247, 243, 236, 0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  background:
    linear-gradient(135deg, transparent 48%, currentColor 49%, currentColor 51%, transparent 52%),
    linear-gradient(45deg, transparent 45%, currentColor 46%, currentColor 48%, transparent 49%);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  font-size: 11px;
  color: currentColor;
  opacity: 0.72;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.site-nav a {
  padding: 9px 12px;
  font-size: 14px;
  color: currentColor;
  opacity: 0.82;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 104px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px;
  color: currentColor;
}

.lang-option {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.lang-option.active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.site-header.is-solid .lang-option.active,
.site-header.nav-open .lang-option.active,
.subpage .site-header .lang-option.active {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 16px;
  height: 1px;
  margin: 3px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-studio.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 14, 13, 0.76) 0%, rgba(15, 14, 13, 0.44) 48%, rgba(15, 14, 13, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 14, 13, 0.56) 0%, rgba(15, 14, 13, 0.04) 48%);
}

.hero-inner {
  position: relative;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 124px 0 clamp(48px, 9vh, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c889;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.3;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: var(--white);
}

.button.secondary {
  border-color: currentColor;
  color: currentColor;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  padding: 0;
  background: var(--line);
}

.intro-strip div {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--paper);
  color: var(--muted);
}

.intro-strip .stat {
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading.compact {
  display: block;
  margin-bottom: 0;
}

.archive-hero {
  padding-top: 148px;
  padding-bottom: 44px;
}

.archive-hero h1 {
  max-width: 900px;
  color: var(--ink);
}

.archive-hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.archive-section {
  padding-top: 36px;
}

.archive-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(48px, 7vw, 84px) clamp(18px, 4vw, 56px);
  background: #ded3c4;
  color: var(--ink);
}

.archive-cta div {
  max-width: 740px;
}

.archive-cta h2 {
  margin-bottom: 12px;
}

.archive-cta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--white);
}

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

.work-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  display: grid;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  perspective: 900px;
  transform-style: preserve-3d;
  text-align: left;
}

.work-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.work-card:hover .art-frame,
.work-card:focus-visible .art-frame {
  transform: translateY(-12px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  box-shadow: var(--shadow);
}

.work-card:hover .art-frame::after,
.work-card:focus-visible .art-frame::after {
  opacity: 0.45;
  transform: translate3d(0, 12px, -44px) scale(0.92);
}

.work-card:hover .art-visual,
.work-card:focus-visible .art-visual {
  transform: translateZ(42px) scale(1.03);
}

.art-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  padding: 16px;
  background: #dfd6c9;
  transform: translateY(0) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition:
    transform 220ms cubic-bezier(0.2, 0.78, 0.2, 1),
    box-shadow 220ms ease;
  will-change: transform;
}

.art-frame::after {
  position: absolute;
  right: 14%;
  bottom: -18px;
  left: 14%;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(24, 23, 21, 0.42), transparent 68%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, -44px) scale(0.72);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.art-visual {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border: 10px solid #f9f5ee;
  box-shadow: 0 16px 40px rgba(24, 23, 21, 0.14);
  transform: translateZ(18px);
  transition:
    transform 220ms cubic-bezier(0.2, 0.78, 0.2, 1),
    box-shadow 180ms ease;
  will-change: transform;
}

.work-meta {
  display: grid;
  gap: 2px;
}

.work-meta strong {
  font-size: 18px;
}

.work-meta span {
  color: var(--muted);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-body {
  font-size: clamp(17px, 2vw, 21px);
}

.about-body p {
  color: #36322e;
}

.bio-list {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.bio-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.bio-list dt {
  color: var(--muted);
  font-size: 13px;
}

.bio-list dd {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding: clamp(56px, 9vw, 112px) clamp(18px, 4vw, 56px);
  background: var(--deep);
  color: var(--white);
}

.contact-copy {
  max-width: 720px;
}

.contact-copy .eyebrow {
  color: #f0c681;
}

.contact-copy p:last-child {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f0c681;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(18px, 4vw, 56px);
  background: #11100f;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.work-dialog {
  width: min(1040px, calc(100% - 28px));
  max-height: min(760px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.work-dialog::backdrop {
  background: rgba(13, 12, 11, 0.62);
  backdrop-filter: blur(10px);
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 0.85fr);
  min-height: 560px;
}

.dialog-art {
  min-height: 420px;
  border: 26px solid #ded3c4;
}

.dialog-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px);
}

.dialog-copy h2 {
  font-size: clamp(30px, 5vw, 52px);
}

.dialog-copy dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.dialog-copy dl div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-copy dt {
  color: var(--muted);
  font-size: 13px;
}

.dialog-copy dd {
  margin: 0;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(24, 23, 21, 0.22);
  border-radius: 999px;
  background: rgba(247, 243, 236, 0.86);
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  top: 19px;
  left: 11px;
  width: 16px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    display: none;
    width: min(280px, calc(100vw - 36px));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 18px 50px rgba(24, 23, 21, 0.16);
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .language-switch {
    min-width: 96px;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-inner {
    padding-top: 112px;
  }

  .intro-strip,
  .section-heading,
  .split-section,
  .contact-section,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .archive-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-strip div {
    min-height: 86px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switch {
    min-width: 88px;
  }

  .lang-option {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media {
    background-position: 58% center;
  }

  .intro-strip,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .bio-list div,
  .timeline li,
  .dialog-copy dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .work-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .dialog-layout {
    min-height: 100%;
  }

  .dialog-art {
    min-height: 330px;
  }
}
