:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --paper-soft: #fbfaf6;
  --ink: #1d1d1b;
  --ink-soft: #5d554a;
  --line: rgba(29, 29, 27, 0.14);
  --cinnabar: #9d2f24;
  --cinnabar-dark: #621d18;
  --lapis: #164f73;
  --malachite: #1f7a66;
  --gold: #c58f31;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(48, 32, 20, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.export-capture {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(157, 47, 36, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 79, 115, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  color: var(--ink);
  font-family:
    "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  line-height: 1.7;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

html.export-capture .site-header {
  position: absolute;
}

html.export-capture .work-card:hover {
  transform: none;
}

html.export-capture .work-card:hover .image-button img {
  transform: none;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 250, 246, 0.93);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(29, 29, 27, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  padding-block: 12px;
}

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

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  inset: 8px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.brand-mark::after {
  inset: 13px;
  border-radius: 50%;
  background: currentColor;
  transform: none;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.72;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 15px;
}

.main-nav a {
  position: relative;
  padding-block: 8px;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 88px;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 17, 19, 0.76), rgba(13, 17, 19, 0.38) 42%, rgba(13, 17, 19, 0.15)),
    linear-gradient(180deg, rgba(13, 17, 19, 0.34), rgba(13, 17, 19, 0.18) 46%, rgba(13, 17, 19, 0.74));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 10vw, 126px);
  font-weight: 600;
  line-height: 0.98;
}

.hero-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: #1b1308;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--white);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-note {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 72px);
  bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-note span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.section-pad {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.intro,
.works,
.heritage,
.contact {
  background: var(--paper);
}

.intro-grid,
.section-heading,
.heritage-layout,
.studio-layout,
.contact-panel {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 76px);
  font-weight: 560;
  line-height: 1.08;
}

.intro-copy {
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 20px;
}

.feature-strip {
  display: grid;
  width: min(100%, var(--max));
  margin: 62px auto 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip article {
  min-height: 132px;
  padding: 26px 30px 28px;
}

.feature-strip article + article {
  border-left: 1px solid var(--line);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  color: var(--cinnabar-dark);
  font-size: 19px;
}

.feature-strip span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 17px;
}

.filters {
  display: flex;
  width: min(100%, var(--max));
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 28px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  cursor: pointer;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

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

.work-grid {
  display: grid;
  width: min(100%, var(--max));
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: 0 12px 38px rgba(48, 32, 20, 0.06);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.work-card:hover {
  border-color: rgba(157, 47, 36, 0.32);
  transform: translateY(-4px);
}

.work-card.is-hidden {
  display: none;
}

.image-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-button img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 260ms ease;
}

.work-card:hover .image-button img {
  transform: scale(1.025);
}

.work-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.work-tag {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 122, 102, 0.11);
  color: var(--malachite);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.work-info h3 {
  margin: 13px 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.work-info p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.work-info a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--cinnabar);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.craft {
  background: #151717;
  color: var(--white);
}

.craft .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.process-grid {
  display: grid;
  width: min(100%, var(--max));
  margin-inline: auto;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-grid article {
  min-height: 260px;
  padding: 26px 22px 28px;
}

.process-grid article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.process-grid span {
  display: block;
  color: var(--gold);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.process-grid h3 {
  margin: 52px 0 12px;
  font-size: 25px;
  line-height: 1.2;
}

.process-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.heritage-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(36px, 8vw, 96px);
  align-items: start;
}

.heritage-layout > div:first-child p {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.heritage-points {
  display: grid;
  gap: 16px;
}

.heritage-points article {
  padding: 26px 0 26px 34px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(197, 143, 49, 0.08), transparent 68%);
}

.heritage-points h3 {
  margin: 0 0 8px;
  color: var(--cinnabar-dark);
  font-size: 24px;
}

.heritage-points p {
  margin: 0;
  color: var(--ink-soft);
}

.studio {
  background: var(--paper-soft);
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.studio-photo {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.studio-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.studio-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(21, 23, 23, 0.72);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.placeholder-panels {
  display: grid;
  gap: 18px;
}

.placeholder-panels article {
  display: flex;
  min-height: 251px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.placeholder-panels span {
  color: var(--gold);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.placeholder-panels h3 {
  margin: 14px 0 12px;
  font-size: 27px;
  line-height: 1.2;
}

.placeholder-panels p {
  margin: 0;
  color: var(--ink-soft);
}

.contact {
  padding-top: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.82fr);
  gap: 42px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(157, 47, 36, 0.94), rgba(98, 29, 24, 0.97)),
    var(--cinnabar);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-panel .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

.contact-list span {
  font-size: 14px;
  opacity: 0.7;
}

.contact-list strong {
  font-size: clamp(18px, 3vw, 24px);
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  background: #101111;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(12, 12, 10, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(100%, 920px);
  max-height: 88svh;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 80svh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-grid article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .process-grid article:nth-child(4) {
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 6px);
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(251, 250, 246, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 12px 10px;
  }

  .hero {
    min-height: 90svh;
    padding-top: 112px;
    padding-bottom: 118px;
  }

  .hero-note {
    right: 20px;
    left: 20px;
    justify-content: flex-start;
  }

  .intro-grid,
  .section-heading,
  .heritage-layout,
  .studio-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .feature-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

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

  .process-grid article,
  .process-grid article + article {
    min-height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .process-grid h3 {
    margin-top: 34px;
  }

  .studio-photo,
  .studio-photo img {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  body {
    background-size: 28px 28px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero {
    min-height: 88svh;
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(48px, 18vw, 80px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    flex: 1 1 140px;
  }

  .section-pad {
    padding-inline: 18px;
  }

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

  .image-button img {
    aspect-ratio: 3 / 4;
  }

  .placeholder-panels article {
    min-height: auto;
  }

  .studio-photo figcaption {
    position: static;
    border-radius: 0;
    background: #151717;
  }

  .contact-panel {
    padding: 28px 20px;
  }

  .contact-list a {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-list strong {
    text-align: left;
  }

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