:root {
  --ink: #111111;
  --paper: #f4f1ea;
  --white: #ffffff;
  --film: #b82132;
  --lookbook: #27615d;
  --creative: #6d55b8;
  --video: #c0742f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background: url("/media/home-cover.png") center / cover;
}

.hero-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 48px 1fr 88px;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-nav nav {
  display: flex;
  justify-content: center;
  gap: 76px;
}

.hero-nav a {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero-nav__menu {
  display: block;
  width: 18px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.hero-nav__menu::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin-top: 4px;
  background: currentColor;
}

.admin-link {
  justify-self: end;
}

.cover-title {
  display: grid;
  width: min(960px, calc(100% - 40px));
  overflow: visible;
  place-items: center;
  padding: 16px 0;
  color: var(--white);
  text-align: center;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.26);
}

.cover-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 124px;
  font-weight: 700;
  line-height: 1.08;
}

.cover-title p {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
}

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.scroll-cue i {
  display: block;
  width: 10px;
  height: 32px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewY(35deg);
}

.modules {
  min-height: 100svh;
  padding: clamp(32px, 6vw, 76px);
  background: #111111;
  color: var(--white);
}

.modules__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 20px;
}

.modules__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.modules__header h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 76px);
  line-height: 1;
}

.module-grid {
  display: grid;
  max-width: 1240px;
  min-height: min(620px, 70svh);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.module-card {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  background: #181818;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.module-card:last-child {
  border-right: 0;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.24) 54%,
      rgba(255, 255, 255, 0.42)
    );
  opacity: 0;
  backdrop-filter: blur(16px);
  transition: opacity 220ms ease;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  transition: transform 220ms ease;
}

.module-card--campaign::after {
  background-image: url("/media/campaign.jpg");
}

.module-card--look-book::after {
  background-image: url("/media/look-book.jpg");
}

.module-card--creative::after {
  background-image: url("/media/creative.jpg");
}

.module-card--video::after {
  background-image: url("/media/video.jpg");
}

.module-card:hover,
.module-card:focus-visible {
  background: #222222;
  outline: none;
  transform: translateY(-4px);
}

.module-card:hover::before,
.module-card:focus-visible::before {
  opacity: 1;
}

.module-card:hover::after,
.module-card:focus-visible::after {
  transform: scale(1.08);
}

.module-card__index,
.module-card div {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.module-card:hover .module-card__index,
.module-card:focus-visible .module-card__index,
.module-card:hover div,
.module-card:focus-visible div {
  opacity: 1;
  transform: translateY(0);
}

.module-card__index {
  width: fit-content;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.module-card div {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.26);
}

.module-card h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
}

.module-card p {
  max-width: 18rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 5vw, 56px);
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.back-home {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.back-home--dark {
  border-color: rgba(17, 17, 17, 0.22);
  color: var(--ink);
}

.back-home:hover,
.back-home:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav nav a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible,
.site-nav nav a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  outline: none;
}

.detail-page {
  min-height: 100svh;
  background: #111111;
  color: var(--white);
}

.detail-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 96px) 0;
}

.detail-hero {
  display: grid;
  min-height: 42svh;
  align-content: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.detail-hero p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(52px, 13vw, 168px);
  line-height: 0.9;
}

.detail-hero span {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.45;
}

.work-canvas {
  position: relative;
  display: flex;
  min-height: 92svh;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 34px;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  background: var(--detail-cover) center / cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.work-canvas::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: min(42%, 360px);
  background: rgba(255, 255, 255, 0.76);
}

.work-canvas span,
.work-canvas h2,
.work-canvas p {
  position: relative;
  z-index: 1;
}

.work-canvas span {
  color: rgba(17, 17, 17, 0.62);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-canvas h2 {
  max-width: 900px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 7vw, 92px);
  line-height: 1;
}

.work-canvas p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(17, 17, 17, 0.68);
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.55;
}

.works-list,
.projects-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.work-item,
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.work-item img,
.work-item video,
.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.work-item div,
.project-card div {
  padding: 16px;
}

.work-item h2,
.project-card h2 {
  margin: 0;
}

.work-item p,
.project-card p {
  color: rgba(255, 255, 255, 0.72);
}

.project-card {
  min-height: 320px;
}

.project-card img {
  height: 100%;
  min-height: 320px;
  transition: transform 260ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.04),
    rgba(17, 17, 17, 0.62)
  );
  opacity: 0.78;
  transition: opacity 220ms ease;
}

.project-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.project-card:hover,
.project-card:focus-visible {
  outline: none;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.05);
}

.project-card:hover::before,
.project-card:focus-visible::before {
  opacity: 0.95;
}

.project-page {
  min-height: 100svh;
  background: #111111;
  color: var(--white);
}

.site-nav--gallery {
  position: sticky;
}

.gallery-grid {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  columns: 3 280px;
  column-gap: 18px;
  padding: clamp(28px, 5vw, 64px) 0;
}

.gallery-media {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
}

.gallery-media img,
.gallery-media video {
  display: block;
  width: 100%;
}

.gallery-media--button {
  cursor: zoom-in;
}

.gallery-media--button img {
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.gallery-media--button:hover img,
.gallery-media--button:focus-visible img {
  filter: brightness(1.05);
  transform: scale(1.015);
}

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

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 800;
}

.admin-shell {
  min-height: 100svh;
  padding: clamp(24px, 5vw, 64px);
  background: #f4f1ea;
}

.admin-card,
.admin-list {
  max-width: 760px;
  margin: 24px auto 0;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.56);
  padding: clamp(22px, 4vw, 38px);
}

.admin-card p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-card h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1;
}

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

.admin-card label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
}

.admin-card button {
  width: fit-content;
  border: 0;
  background: #111111;
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 800;
}

.admin-card span {
  display: block;
  margin-top: 16px;
}

.admin-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  padding: 14px 0;
}

.admin-list small {
  grid-column: 1 / -1;
  color: rgba(17, 17, 17, 0.62);
}

@media (max-width: 900px) {
  .hero-nav nav {
    gap: 30px;
  }

  .cover-title h1 {
    font-size: 88px;
  }

  .modules__header {
    display: block;
  }

  .modules__header h1 {
    margin-top: 10px;
  }

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

  .module-card {
    min-height: 300px;
  }

  .module-card:nth-child(2) {
    border-right: 0;
  }

  .module-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

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

  .site-nav nav {
    justify-content: flex-start;
  }

  .work-canvas {
    min-height: 76svh;
  }

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

@media (max-width: 560px) {
  .hero {
    padding: 20px;
  }

  .hero-nav {
    grid-template-columns: 30px 1fr;
    padding: 18px 20px;
    font-size: 11px;
  }

  .hero-nav nav {
    justify-content: end;
    gap: 20px;
  }

  .admin-link {
    display: none;
  }

  .cover-title h1 {
    font-size: 54px;
  }

  .cover-title p {
    font-size: 26px;
  }

  .scroll-cue {
    right: 20px;
    bottom: 20px;
  }

  .modules {
    padding: 28px 18px;
  }

  .module-grid,
  .works-list,
  .projects-list {
    grid-template-columns: 1fr;
  }

  .module-card,
  .module-card:nth-child(2) {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .module-card:last-child {
    border-bottom: 0;
  }
}
