:root {
  --bg: #efefec;
  --text: #111111;
  --radius: 28px;
  --offwhite: #f5f5f0;
  --black: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

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

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

/* =========================
   HEADER
========================= */

.hero-header {
  display: flex;
  align-items: flex-start;
  gap: 4vw;
  padding: 2.2vw 2vw 1.5vw 2vw;
  position: relative;
  z-index: 30;
}

.logo-link {
  display: block;
  flex: 0 0 auto;
}

.hero-logo-3d {
  width: 15vw;
  max-width: 300px;
  min-width: 170px;
  height: clamp(120px, 14vw, 220px);
  display: block;
  background: transparent;
  --poster-color: transparent;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  gap: 0.3em;
  padding-top: 0.2vw;
  font-size: clamp(28px, 3.8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 300;
}

.line {
  display: flex;
  gap: 0.5em;
  flex-wrap: nowrap;
}

.hero-link {
  white-space: nowrap;
  color: var(--text);
  display: inline-block;
  transform: scale(1);
  transform-origin: left center;
  transition:
    transform 0.18s ease,
    text-decoration-color 0.18s ease,
    opacity 0.18s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 0.05em;
  transform: scale(1.05);
}

.hero-link--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.cube-icon {
  width: 0.7em;
  height: 0.7em;
  flex: 0 0 auto;
  transform: translateY(-0.02em);
}

.cube-icon path:nth-child(1) {
  fill: #111;
}

.cube-icon path:nth-child(2) {
  fill: #1b1b1b;
}

.cube-icon path:nth-child(3) {
  fill: #2a2a2a;
}

/* =========================
   HOMEPAGE EDITORIAL LAYOUT
========================= */

.home-editorial-layout {
  position: relative;
  width: min(1500px, calc(100vw - 48px));
  height: 1700px;
  margin: 10px auto 40px auto;
  padding: 0;
  z-index: 1;
}

.editorial-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  display: block;
  color: var(--text);
  text-decoration: none;
  transform: none;
  transform-origin: center center;
  transition:
    transform 0.24s ease,
    z-index 0.24s ease;
}

.editorial-item:hover,
.editorial-item:focus-visible {
  transform: scale(1.02);
  z-index: 40;
}

.editorial-figure {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 38px;
  background: #d8d8d3;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.1));
  transition: filter 0.24s ease;
}

.editorial-item:hover .editorial-figure,
.editorial-item:focus-visible .editorial-figure {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.14));
}

.editorial-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 38px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.34) 28%,
    rgba(0, 0, 0, 0.08) 54%,
    rgba(0, 0, 0, 0) 74%
  );
  z-index: 1;
  pointer-events: none;
}

.editorial-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 38px;
  transition: transform 0.34s ease;
  transform-origin: center center;
}

.editorial-item:hover .editorial-image,
.editorial-item:focus-visible .editorial-image {
  transform: scale(1.03);
}

.format-landscape {
  width: clamp(280px, 24vw, 430px);
}

.format-portrait {
  width: clamp(210px, 17vw, 300px);
}

.format-square {
  width: clamp(150px, 12vw, 220px);
}

.format-tall {
  width: clamp(220px, 18vw, 310px);
}

.editorial-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  pointer-events: none;
}

.editorial-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.editorial-category,
.editorial-year {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 13px 6px 13px;
  border-radius: 999px;
  background: rgba(245, 245, 240, 0.88);
  color: #111;
  border: 1px solid rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 500;
}

.editorial-title {
  margin: 0;
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(24px, 2.1vw, 36px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.title-line {
  display: block;
  margin: 0;
}

.title-sub {
  display: block;
  margin-top: 3px;
  font-size: clamp(16px, 1.2vw, 24px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* =========================
   CONTACT BLOCK
========================= */

.contact-block {
  position: relative;
  z-index: 60;
  margin-top: 0;
  padding: 48px 40px 56px 40px;
  background: #050505;
  color: #f5f5f0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 48px;
}

.contact-left {
  min-width: 0;
  overflow: visible;
}

.contact-kicker {
  margin: 0 0 28px 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-mail {
  --mx: -200px;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 32px;
  padding: 0.04em 0;
  text-decoration: none;
  font-size: clamp(24px, 3.15vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 300;
  color: #f5f5f0;
  white-space: nowrap;
  transition: transform 0.18s ease;
  will-change: transform, background-position;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  transform: scale(1.02);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .contact-mail {
    background-image: radial-gradient(
      circle 140px at var(--mx) 50%,
      #ffffff 0%,
      #ffffff 10%,
      #f5f5f0 22%,
      #cfcfc8 34%,
      #f5f5f0 52%,
      #f5f5f0 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.contact-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 245, 240, 0.72);
  color: #f5f5f0;
  background: rgba(255, 255, 255, 0.02);
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.contact-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.18),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: #f5f5f0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

.contact-pill:hover::before,
.contact-pill:focus-visible::before {
  opacity: 1;
}

.contact-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.contact-right-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.contact-note {
  margin: 0;
  width: fit-content;
  max-width: none;
  font-size: clamp(22px, 1.7vw, 34px);
  line-height: 1.02;
  font-weight: 500;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: -0.03em;
}

.contact-note span {
  display: block;
  white-space: nowrap;
}

.contact-about-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 245, 240, 0.7);
  color: #f5f5f0;
  background: rgba(255, 255, 255, 0.02);
  font-size: 18px;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-about-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-about-btn:hover,
.contact-about-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: #f5f5f0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

.contact-about-btn:hover::before,
.contact-about-btn:focus-visible::before {
  opacity: 1;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .home-editorial-layout {
    width: min(1100px, calc(100vw - 32px));
    height: 1380px;
  }

  .format-landscape {
    width: clamp(230px, 24vw, 360px);
  }

  .format-portrait {
    width: clamp(180px, 18vw, 250px);
  }

  .format-square {
    width: clamp(130px, 12vw, 180px);
  }

  .format-tall {
    width: clamp(190px, 18vw, 260px);
  }
}

@media (max-width: 900px) {
  .hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 18px;
  }

  .hero-logo-3d {
    width: 220px;
    min-width: 0;
    height: 160px;
  }

  .hero-copy {
    font-size: clamp(22px, 6vw, 40px);
    padding-top: 0;
    gap: 0.24em;
  }

  .line {
    flex-wrap: wrap;
    gap: 0.28em 0.45em;
  }

  .home-editorial-layout {
    position: relative;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0 8px 24px 8px;
    padding: 0;
  }

  .editorial-item {
    position: relative;
    left: auto;
    top: auto;
    width: 100% !important;
    transform: none !important;
  }

  .editorial-item:hover,
  .editorial-item:focus-visible {
    transform: scale(1.015) !important;
  }

  .editorial-figure {
    width: 100%;
  }

  .editorial-image {
    width: 100%;
  }

  .contact-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 18px 42px 18px;
  }

  .contact-mail {
    font-size: clamp(18px, 6vw, 32px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .contact-right {
    justify-content: flex-start;
  }

  .contact-right-inner {
    align-items: flex-start;
    gap: 22px;
  }

  .contact-note {
    width: auto;
    max-width: none;
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.04;
  }

  .contact-note span {
    white-space: normal;
  }

  .contact-pill {
    min-height: 48px;
    padding: 0 20px;
    font-size: 16px;
  }

  .contact-about-btn {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .hero-logo-3d {
    width: 180px;
    height: 138px;
  }

  .hero-copy {
    font-size: clamp(20px, 8vw, 34px);
    line-height: 0.96;
  }

  .editorial-topline {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .editorial-title {
    font-size: clamp(17px, 6vw, 22px);
  }

  .title-sub {
    font-size: clamp(12px, 4.5vw, 16px);
  }

  .contact-kicker {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .contact-mail {
    font-size: clamp(17px, 7vw, 24px);
    line-height: 1.12;
  }

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-note {
    font-size: clamp(18px, 6vw, 24px);
  }
}