:root {
  --paper: #f5f0e8;
  --paper-soft: #ffffff;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e6e0d8;
  --dark: #121212;
  --dark-soft: #1c1c1c;
  --orange: #e67a3c;
  --accent-soft: #f2d2b6;
  --film-overlay: rgba(0, 0, 0, 0.35);
  --red: #8d2f23;
  --green: #2e5144;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-film: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-xxl: 80px;
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 300;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(230, 122, 60, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(28, 28, 28, 0.025) 1px, transparent 1px),
    linear-gradient(var(--paper), var(--paper));
  background-size: auto, 36px 36px, auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fffaf0;
  background: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(244, 237, 223, 0.88);
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--orange);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 14px;
  font-weight: 400;
}

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

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

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

.main-nav a.is-current {
  color: var(--orange);
}

.main-nav a.is-current::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 38px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  overflow: hidden;
}

main:focus {
  outline: none;
}

.section-paper,
.section-dark {
  margin: 16px;
  border-radius: var(--radius-md);
  scroll-margin-top: 92px;
}

.section-paper {
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 20% 0, rgba(242, 210, 182, 0.24), transparent 34rem);
  border: 1px solid rgba(88, 74, 55, 0.16);
}

.section-dark {
  color: #f7f1e6;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--dark);
  background-size: 38px 38px;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(34px, 7vw, 88px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

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

h1 {
  position: relative;
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1::after {
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 58%;
  height: 7px;
  content: "";
  background: var(--orange);
  border-radius: 99px;
  transform: rotate(-3deg);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 36px);
  font-weight: 300;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 400;
}

p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

.lead {
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
}

.hero-subtitle {
  margin-bottom: 22px;
  color: var(--orange);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
}

.hero-actions,
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.case-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: var(--ink);
  font-weight: 400;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.case-filters button:hover {
  opacity: 0.94;
  transform: translateY(-2px) scale(1.02);
}

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

.button.accent,
.case-filters .is-active {
  background: var(--orange);
}

.button.accent:hover,
.case-filters .is-active:hover {
  background: #cf6530;
}

.button.primary:hover {
  background: #0f0f0f;
}

.button.full {
  width: 100%;
}

.cta-button {
  box-shadow: none;
}

.cta-button.accent,
.cta-button.primary:hover {
  box-shadow: 0 10px 30px rgba(230, 122, 60, 0.16);
}

.hero-frame {
  position: relative;
  min-height: 620px;
  padding: 26px 26px 26px 54px;
}

.film-strip {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 20px;
  width: 22px;
  background:
    repeating-linear-gradient(to bottom, #e8d8bc 0 14px, transparent 14px 30px),
    #221f1b;
  border-radius: 10px;
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  color: #fff6e7;
  background:
    radial-gradient(circle at 60% 40%, rgba(255, 226, 158, 0.42), transparent 12rem),
    linear-gradient(110deg, var(--film-overlay), rgba(18, 18, 18, 0.82)),
    url("../docs/source-materials/homepage-reference.jpg");
  background-position: 12% 12%;
  background-size: 220%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-film);
  filter: saturate(0.9) sepia(0.18);
}

.hero-media-layer {
  position: absolute;
  inset: 0;
  background-image: var(--hero-media-image);
  background-position: center;
  background-size: cover;
}

.hero-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-layer:not(:empty),
.hero-media-layer[style*="--hero-media-image"] {
  filter: saturate(0.92) sepia(0.14);
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.12), transparent 12rem);
  background-size: 100% 3px, auto;
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.hero-image p {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  padding: 18px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  background: var(--accent-soft);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  transform: rotate(-8deg);
}

.camera-shape {
  position: absolute;
  z-index: 1;
  right: 18%;
  bottom: 24%;
  width: 180px;
  height: 130px;
  border: 8px solid rgba(255, 244, 218, 0.86);
  border-radius: 18px;
  opacity: 0.5;
}

.camera-shape::before {
  position: absolute;
  top: 32px;
  left: 48px;
  width: 58px;
  height: 58px;
  content: "";
  border: 7px solid rgba(255, 244, 218, 0.86);
  border-radius: 99px;
}

.play-button {
  position: absolute;
  bottom: 58px;
  left: 82px;
  color: #fffaf0;
  font-weight: 800;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.home-intro,
.services,
.team,
.behind,
.contact,
.cases {
  padding: clamp(36px, 6vw, 78px);
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}

.intro-copy {
  max-width: 680px;
}

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

.service-tag {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, opacity 180ms ease;
}

.service-tag:hover {
  opacity: 0.92;
  transform: translateY(-3px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.align-left {
  margin-left: 0;
  text-align: left;
}

.service-list {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(220px, 320px);
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--orange);
  font-size: 28px;
  font-weight: 300;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.service-subtitle {
  margin-bottom: 8px;
  color: var(--orange);
}

.service-thumb,
.case-thumb,
.member-photo,
.scrap-photo {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.34)),
    var(--thumb-image, linear-gradient(transparent, transparent)),
    var(--thumb-bg, #846d4e);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.case-filters {
  justify-content: center;
  margin-bottom: 24px;
}

.case-filters button {
  color: #f8efe1;
  background: transparent;
  border-color: rgba(248, 239, 225, 0.32);
}

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

.front-empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  border-radius: var(--radius-md);
}

.front-empty-state.on-dark {
  color: #f7ead8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(248, 239, 225, 0.28);
}

.front-empty-state.on-paper {
  color: var(--muted);
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(-6deg, rgba(230, 122, 60, 0.08) 0 1px, transparent 1px 11px);
  border: 1px dashed rgba(88, 74, 55, 0.22);
  box-shadow: var(--shadow);
}

.case-card {
  position: relative;
  overflow: hidden;
  background: var(--dark-soft);
  border: 1px solid rgba(248, 239, 225, 0.22);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-film);
  transition: box-shadow 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.card-work {
  min-height: 100%;
}

.case-card:hover {
  opacity: 0.94;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.24);
  transform: translateY(-7px);
}

.case-thumb {
  position: relative;
  min-height: 210px;
  border-radius: 0;
}

.work-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff8ed;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    linear-gradient(rgba(230, 122, 60, 0.16), rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.22), transparent 10rem);
  opacity: 0;
  transition: opacity 220ms ease;
}

.work-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 220ms ease;
}

.case-card:hover .work-preview-video {
  opacity: 1;
}

.case-card:hover .work-preview {
  opacity: 1;
}

.case-card div:last-child {
  padding: 18px;
}

.case-card small {
  display: inline-block;
  margin-top: 8px;
  color: #9f927f;
}

.text-link {
  margin-top: 8px;
  padding: 0;
  color: var(--accent-soft);
  font-size: 13px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.text-link:hover {
  color: #fff8ed;
}

.text-link:focus-visible,
.button:focus-visible,
.case-filters button:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.case-card p,
.section-dark p {
  color: #cfc3b1;
}

.case-card h3,
.member-card h3,
.scrap-card h3,
.work-dialog-copy h2,
.work-dialog-copy p,
.detail-list dd {
  overflow-wrap: anywhere;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  background: var(--orange);
  border-radius: 99px;
}

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

.member-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: box-shadow 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.card-team {
  min-height: 100%;
}

.member-card:hover {
  opacity: 0.94;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.member-photo {
  margin-bottom: 14px;
  min-height: 210px;
}

.member-card small {
  color: var(--muted);
  font-weight: 300;
}

.note {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  transform: rotate(-2deg);
}

.tag-pill {
  font-size: 15px;
}

.film-strip-card {
  border-radius: var(--radius-sm);
}

.service-thumb::after,
.case-thumb::after,
.member-photo::after,
.scrap-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 48% 32%, rgba(255, 255, 255, 0.18), transparent 8rem);
  background-size: 100% 4px, auto;
  mix-blend-mode: soft-light;
  opacity: 0.58;
}

.service-thumb::before,
.case-thumb::before,
.member-photo::before,
.scrap-photo::before {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  color: rgba(255, 248, 237, 0.72);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-thumb::before {
  content: "Scene Plan";
}

.case-thumb::before {
  content: "Film Still";
}

.member-photo::before {
  content: "Crew Card";
}

.scrap-photo::before {
  content: "Backstage";
}

.team-quote {
  max-width: 920px;
  margin: 44px auto 0;
  padding: 34px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.scrap-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.scrap-card {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  translate: 0 var(--parallax-y, 0px);
  transition: box-shadow 220ms ease, opacity 180ms ease, transform 180ms ease, translate 120ms linear;
}

.scrap-card:hover {
  opacity: 0.94;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px) rotate(0deg);
}

.reveal-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-section {
    opacity: 1;
    transform: none;
  }
}

.scrap-card:nth-child(even) {
  margin-top: 36px;
  transform: rotate(2deg);
}

.scrap-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.scrap-photo {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  min-height: 180px;
}

.scrap-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.contact-list li {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.contact-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 34px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(107, 107, 107, 0.58);
}

input:focus,
textarea:focus,
select:focus {
  background: #ffffff;
  border-color: rgba(230, 122, 60, 0.62);
  box-shadow: 0 0 0 3px rgba(230, 122, 60, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.work-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-film);
}

.work-dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
}

.work-dialog-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
}

.work-dialog-cover {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.34)),
    var(--thumb-image, linear-gradient(transparent, transparent)),
    var(--thumb-bg, #846d4e);
  background-position: center;
  background-size: cover;
}

.work-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}

.work-dialog-copy {
  padding: clamp(28px, 5vw, 56px);
}

.work-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.work-share small {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.detail-list div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 13px;
}

.detail-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-page {
  min-height: 100vh;
  padding: clamp(20px, 5vw, 56px);
}

.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-shell.is-locked,
.admin-auth.is-hidden {
  display: none;
}

.admin-auth {
  max-width: 520px;
  margin: min(10vh, 90px) auto;
  padding: clamp(24px, 5vw, 44px);
}

.security-warning {
  margin: 16px 0;
  padding: 12px 14px;
  color: #6b3418;
  background: rgba(230, 122, 60, 0.13);
  border: 1px solid rgba(230, 122, 60, 0.28);
  border-radius: var(--radius-sm);
}

.security-warning.is-hidden {
  display: none;
}

.auth-form {
  margin-top: 24px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.import-button {
  position: relative;
  overflow: hidden;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-import-status {
  margin: -10px 0 20px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.dashboard-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.dashboard-card span,
.dashboard-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-card strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 300;
  line-height: 1;
}

.launch-check-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.launch-check-heading span {
  padding: 7px 10px;
  color: var(--ink);
  font-size: 12px;
  background: rgba(230, 122, 60, 0.12);
  border: 1px solid rgba(230, 122, 60, 0.22);
  border-radius: 999px;
}

.launch-check-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.launch-check-item {
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(230, 122, 60, 0.24);
  border-radius: var(--radius-sm);
}

.launch-check-item.is-ok {
  border-color: var(--line);
}

.launch-check-item strong {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  background: rgba(230, 122, 60, 0.1);
  border-radius: 999px;
}

.launch-check-item.is-ok strong {
  color: var(--muted);
  background: rgba(245, 240, 232, 0.86);
}

.launch-check-item h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.launch-check-item p {
  color: var(--muted);
  font-size: 13px;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-library {
  margin-top: 20px;
}

.admin-panel {
  margin: 0 0 24px;
  padding: clamp(20px, 4vw, 38px);
}

.admin-section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-section-heading p:not(.eyebrow) {
  color: var(--muted);
}

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

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.media-picker {
  margin-top: 4px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(-6deg, rgba(230, 122, 60, 0.08) 0 1px, transparent 1px 10px);
}

.media-picker:disabled {
  color: rgba(107, 107, 107, 0.62);
  cursor: not-allowed;
  background: rgba(245, 240, 232, 0.72);
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.checkbox-field input {
  width: auto;
}

.admin-content-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.admin-content-card.is-referenced {
  border-color: rgba(230, 122, 60, 0.42);
}

.backup-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.backup-card h3 {
  overflow-wrap: anywhere;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.activity-item span,
.activity-item small {
  color: var(--muted);
  font-size: 12px;
}

.activity-item strong {
  color: var(--ink);
  font-weight: 500;
}

.admin-media,
.admin-media-placeholder,
.admin-swatch {
  width: 100%;
  min-height: 132px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  object-fit: cover;
}

.admin-swatch {
  display: grid;
  place-items: center;
  color: #fff8ed;
  font-size: 13px;
  letter-spacing: 0.06em;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.28)),
    var(--thumb-bg, #7d6547);
}

.admin-media-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.upload-preview {
  display: block;
}

.upload-preview:empty {
  display: none;
}

.upload-preview .admin-media,
.upload-preview .admin-media-placeholder {
  min-height: 150px;
  margin-top: 2px;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.admin-meta span:not(.tag) {
  padding: 4px 8px;
  background: rgba(245, 240, 232, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.media-reference {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.media-reference strong {
  color: var(--ink);
  font-weight: 500;
}

.media-reference span {
  padding: 4px 8px;
  background: rgba(230, 122, 60, 0.1);
  border: 1px solid rgba(230, 122, 60, 0.18);
  border-radius: 999px;
}

.media-reference.is-unused {
  display: block;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inquiry-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.inquiry-card p {
  margin-bottom: 8px;
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 220px;
  gap: 36px;
  align-items: center;
  padding: 48px clamp(18px, 4vw, 52px);
  color: #fff7ea;
  background: #090807;
}

.site-footer p {
  max-width: 360px;
  color: #bdb09f;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.clapboard {
  padding: 16px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.5;
  background: #eadfc9;
  transform: rotate(3deg);
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    display: none;
    width: min(280px, calc(100vw - 36px));
    padding: 18px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    gap: 4px;
  }

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

  .main-nav a.is-current {
    padding-left: 10px;
    background: rgba(230, 122, 60, 0.1);
    border-radius: var(--radius-sm);
  }

  .menu-button {
    display: block;
  }

  .hero,
  .home-intro,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 440px;
  }

  .hero-image {
    min-height: 420px;
  }

  .service-item {
    grid-template-columns: 56px 1fr;
  }

  .service-thumb {
    grid-column: 1 / -1;
  }

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

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

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

  .site-footer {
    grid-template-columns: 1fr;
  }

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

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

  .admin-content-card {
    grid-template-columns: 1fr;
  }

  .admin-section-heading,
  .backup-card,
  .activity-item {
    display: grid;
  }

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

  .work-dialog-cover {
    min-height: 280px;
  }

  .work-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
}

@media (max-width: 620px) {
  .section-paper,
  .section-dark {
    margin: 10px;
  }

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

  .brand {
    font-size: 19px;
  }

  .hero,
  .home-intro,
  .services,
  .team,
  .behind,
  .contact,
  .cases {
    padding: 26px 18px;
  }

  .hero-frame {
    padding: 18px 18px 18px 42px;
  }

  .hero-image {
    min-height: 330px;
  }

  .case-grid,
  .team-grid,
  .service-tags,
  .scrap-wall,
  .admin-dashboard,
  .launch-check-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .work-dialog-cover {
    min-height: 220px;
  }

  .work-dialog-copy {
    padding: 24px 18px;
  }

  .work-share .button {
    width: 100%;
  }

  .launch-check-heading {
    display: grid;
  }

  .scrap-card:nth-child(n) {
    margin-top: 0;
    transform: none;
  }
}
