:root {
  --ink: #161410;
  --paper: #f3eee4;
  --muted: #6d665b;
  --line: rgba(22, 20, 16, 0.12);
  --accent: #9a3b24;
  --card: #fffaf2;
  --shadow: 0 22px 50px rgba(22, 20, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(154, 59, 36, 0.08), transparent 55%),
    var(--paper);
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.65;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(243, 238, 228, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.mark,
nav a {
  color: inherit;
  text-decoration: none;
}

.mark {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

nav a:hover {
  color: var(--accent);
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.lang button.active {
  background: var(--ink);
  color: var(--paper);
}

.hero,
.work,
footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 36px;
}

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

h1 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1;
  font-weight: 400;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
}

.stats button {
  margin: 0;
  padding: 14px 12px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.7);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.stats button:hover {
  border-color: rgba(154, 59, 36, 0.4);
  transform: translateY(-2px);
}

.stats dt {
  color: var(--muted);
  font-size: 12px;
}

.stats dd {
  margin: 6px 0 0;
  font-family: "Instrument Serif", serif;
  font-size: 36px;
}

.hero-stage {
  position: relative;
  min-height: 420px;
}

.hero-stage .shot {
  position: absolute;
  width: 72%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  border: 1px solid rgba(255, 250, 242, 0.35);
  box-shadow: var(--shadow);
}

.hero-stage .a {
  top: 8%;
  left: 0;
  z-index: 1;
  transform: rotate(-7deg);
}

.hero-stage .b {
  top: 22%;
  right: 0;
  z-index: 2;
  width: 76%;
  transform: rotate(5deg);
}

.hero-stage .c {
  bottom: 0;
  left: 14%;
  z-index: 3;
  width: 70%;
  transform: rotate(-2deg);
}

.work {
  padding: 36px 0 88px;
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 36px;
  font-weight: 400;
}

.count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filters button {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.65);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filters button em {
  font-style: normal;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.filters button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

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

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(22, 20, 16, 0.16);
}

.thumb {
  aspect-ratio: 16 / 10;
  background: #1b1713;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s ease;
}

.card:hover .thumb img {
  transform: scale(1.05);
}

.view {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 238, 228, 0.92);
  font-size: 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.card:hover .view {
  opacity: 1;
  transform: none;
}

.fallback {
  height: 100%;
  display: flex;
  align-items: end;
  padding: 20px;
  color: #f4efe6;
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  line-height: 1.1;
  background: linear-gradient(160deg, #3a2b22, #11100e);
}

.body {
  padding: 16px 16px 18px;
}

.kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.body h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contact {
  background: #161410;
  color: #f3eee4;
  padding: 80px 0;
}

.contact-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 560px);
  gap: 56px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  max-width: 12ch;
}

.eyebrow.light,
.lead.light {
  color: #c9b8a4;
}

.lead.light {
  max-width: 440px;
}

.channels {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 12px;
}

.channels li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 238, 228, 0.14);
  border-radius: 14px;
}

.channels small {
  display: block;
  color: #c9b8a4;
  font-size: 12px;
}

.channels strong {
  font-size: 16px;
  font-weight: 500;
}

.channels a,
.channels button {
  color: #f3eee4;
  background: transparent;
  border: 1px solid rgba(243, 238, 228, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.brief {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(243, 238, 228, 0.06);
  border: 1px solid rgba(243, 238, 228, 0.12);
}

.brief label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #c9b8a4;
}

.brief input,
.brief textarea {
  width: 100%;
  border: 1px solid rgba(243, 238, 228, 0.16);
  background: rgba(22, 20, 16, 0.35);
  color: #f3eee4;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.brief button[type="submit"] {
  border: 0;
  background: #c46a3a;
  color: #fffaf2;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
}

.hint {
  margin: 0;
  color: #9c8c7a;
  font-size: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 920px;
  width: calc(100% - 32px);
}

dialog::backdrop {
  background: rgba(22, 20, 16, 0.66);
}

.sheet {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(244, 239, 230, 0.92);
  cursor: pointer;
  font: inherit;
}

.sheet-shot {
  aspect-ratio: 16 / 8;
  background: #161410;
}

.sheet-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sheet-body {
  padding: 24px 28px 32px;
}

.sheet-body h3 {
  margin: 0 0 10px;
  font-family: "Instrument Serif", serif;
  font-size: 34px;
  font-weight: 400;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.sheet-actions a {
  display: inline-block;
  margin-top: 18px;
  color: var(--paper);
  background: var(--accent);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
}

@media (max-width: 960px) {
  .hero,
  .contact-inner,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 280px;
    order: -1;
  }

  .stats dd {
    font-size: 30px;
  }

  .top {
    padding: 14px 20px;
  }

  .hero,
  .work,
  footer {
    width: min(1180px, calc(100% - 32px));
  }

  .contact-inner {
    width: min(1180px, calc(100% - 32px));
    gap: 32px;
  }

  .view {
    opacity: 1;
    transform: none;
  }

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