:root {
  --paper: #e6e4df;
  --paper-light: #f4f2ec;
  --paper-white: #f9f8f4;
  --paper-shadow: #d8d2c5;
  --ink: #222629;
  --oak: #b8895d;
  --berry: #7c4a5a;
  --blue: #8798bc;
  --brass: #b89a57;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
}

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

a:focus-visible {
  outline: 1px solid rgba(34, 38, 41, 0.55);
  outline-offset: 7px;
}

.home {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.folded-paper {
  position: absolute;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  background: var(--paper);
}

.paper-plane {
  position: absolute;
  top: -12%;
  bottom: -12%;
  transform: skewX(-14deg);
  transform-origin: center;
}

.paper-plane-left {
  left: -21%;
  width: 56%;
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.76) 64%, rgba(255, 255, 255, 0.18)),
    var(--paper-light);
}

.paper-plane-center {
  left: 33%;
  width: 29%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06)),
    #efeee9;
}

.paper-plane-right {
  right: -13%;
  width: 45%;
  background:
    linear-gradient(96deg, rgba(216, 210, 197, 0.48), rgba(255, 255, 255, 0.07)),
    var(--paper);
}

.fold-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  width: 1px;
  opacity: 0.55;
  background: linear-gradient(
    180deg,
    rgba(34, 38, 41, 0),
    rgba(34, 38, 41, 0.1) 48%,
    rgba(34, 38, 41, 0)
  );
}

.line-texture {
  position: absolute;
  top: clamp(160px, 23vw, 230px);
  right: clamp(-24px, 3.2vw, 46px);
  width: clamp(300px, 32vw, 460px);
  height: clamp(380px, 44vw, 500px);
  opacity: 0.06;
  transform: rotate(-24deg);
  background: repeating-linear-gradient(
    90deg,
    rgba(184, 137, 93, 0) 0,
    rgba(184, 137, 93, 0) 13px,
    rgba(184, 137, 93, 0.96) 13px,
    rgba(184, 137, 93, 0.96) 14px
  );
}

.top-nav {
  position: absolute;
  top: clamp(34px, 5.7vw, 72px);
  right: clamp(24px, 5.6vw, 78px);
  z-index: 2;
  display: flex;
  gap: clamp(26px, 3.4vw, 42px);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.top-nav a {
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 48px));
  padding-top: clamp(220px, 26.3vw, 258px);
  padding-left: clamp(24px, 5.7vw, 82px);
}

.wordmark-wrap {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.bloom {
  position: absolute;
  top: clamp(2px, 0.8vw, 8px);
  left: clamp(-28px, -2vw, -14px);
  width: clamp(236px, 24vw, 340px);
  height: clamp(138px, 14vw, 200px);
  opacity: 0.66;
  filter: blur(16px);
  background:
    radial-gradient(circle at 28% 52%, rgba(124, 74, 90, 0.62) 0 20%, rgba(124, 74, 90, 0) 47%),
    radial-gradient(circle at 60% 42%, rgba(135, 152, 188, 0.34) 0 18%, rgba(135, 152, 188, 0) 43%),
    radial-gradient(circle at 80% 44%, rgba(184, 154, 87, 0.26) 0 14%, rgba(184, 154, 87, 0) 40%);
}

.wordmark {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(92px, 14.45vw, 208px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  white-space: nowrap;
}

.intro {
  margin: clamp(22px, 2.5vw, 28px) 0 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 1.95vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.76;
}

.right-menu {
  --marker-y: 16px;
  position: absolute;
  top: clamp(316px, 36.1vw, 354px);
  right: clamp(72px, 7.8vw, 112px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 258px;
  color: var(--ink);
}

.right-menu a {
  position: relative;
  display: block;
  width: 100%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 1.95vw, 28px);
  line-height: 32px;
  opacity: 0.62;
  transition: opacity 180ms ease;
}

.right-menu a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -34px;
  width: 1px;
  height: 20px;
  opacity: 0;
  background: var(--ink);
  transform: translateY(-50%) scaleY(0.78);
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.right-menu a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -82px;
  z-index: -1;
  width: 156px;
  height: 118px;
  opacity: 0;
  filter: blur(22px);
  pointer-events: none;
  background:
    radial-gradient(circle at 44% 48%, rgba(124, 74, 90, 0.12), rgba(124, 74, 90, 0) 56%),
    radial-gradient(circle at 68% 38%, rgba(184, 154, 87, 0.07), rgba(184, 154, 87, 0) 48%);
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.right-menu:has(a:hover, a:focus-visible) a {
  opacity: 0.48;
}

.right-menu a:hover,
.right-menu a:focus-visible {
  opacity: 0.9;
}

.right-menu:has(a:hover, a:focus-visible) a:hover,
.right-menu:has(a:hover, a:focus-visible) a:focus-visible {
  opacity: 0.9;
}

.right-menu a:hover::before,
.right-menu a:focus-visible::before {
  opacity: 0.34;
  transform: translateY(-50%) scaleY(1);
}

.right-menu a:hover::after,
.right-menu a:focus-visible::after {
  opacity: 0.78;
}

.inquiries {
  position: absolute;
  right: clamp(72px, 7.8vw, 112px);
  bottom: clamp(48px, 7.14vw, 70px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 258px;
}

.inquiries::before {
  content: "";
  width: 100%;
  height: 1px;
  opacity: 0.14;
  background: var(--ink);
}

.inquiries span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.56;
}

.inquiries a {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 1.95vw, 28px);
  line-height: 32px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.inquiries a:hover,
.inquiries a:focus-visible {
  opacity: 0.72;
  transform: translateX(2px);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(140px, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(56px, 7vw, 86px) clamp(24px, 5.7vw, 82px);
  background: var(--paper-light);
  border-top: 1px solid rgba(34, 38, 41, 0.08);
}

.about-section > p {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.48;
}

.about-section > div {
  max-width: 760px;
}

.about-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
}

.about-section div p {
  max-width: 620px;
  margin: clamp(18px, 2vw, 24px) 0 0;
  color: var(--ink);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.62;
  opacity: 0.7;
}

.work-index {
  position: relative;
  padding: clamp(42px, 6vw, 78px) clamp(24px, 5.7vw, 82px) clamp(92px, 12vw, 148px);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(124, 74, 90, 0.11), rgba(124, 74, 90, 0) 28%),
    linear-gradient(180deg, var(--paper-white), var(--paper-light));
}

.work-index::before {
  content: "";
  position: absolute;
  top: 36px;
  right: -80px;
  width: min(620px, 48vw);
  height: 78%;
  opacity: 0.055;
  transform: rotate(-18deg);
  transform-origin: center;
  background: repeating-linear-gradient(
    90deg,
    rgba(184, 137, 93, 0) 0,
    rgba(184, 137, 93, 0) 12px,
    rgba(184, 137, 93, 0.98) 12px,
    rgba(184, 137, 93, 0.98) 13px
  );
}

.category-section {
  position: relative;
  z-index: 1;
}

.category-copy span {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.48;
}

.category-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 0.74fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: 1240px;
  padding: clamp(46px, 6vw, 78px) 0;
  margin: 0 auto;
  border-top: 1px solid rgba(34, 38, 41, 0.12);
}

.category-copy {
  position: sticky;
  top: 42px;
  align-self: start;
}

.category-copy h3 {
  margin: 18px 0 14px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 4.9vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.category-copy p {
  max-width: 220px;
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.18;
  opacity: 0.62;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}

.work-grid figure {
  margin: 0;
}

.work-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.92) contrast(0.96) brightness(1.03);
}

.work-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 13px;
  color: var(--ink);
  border-top: 1px solid rgba(34, 38, 41, 0.1);
  margin-top: 13px;
}

.work-grid figcaption span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.work-grid figcaption small {
  max-width: 150px;
  font-size: 11px;
  line-height: 16px;
  text-align: right;
  opacity: 0.56;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1040px) {
  .home {
    min-height: max(860px, 100svh);
  }

  .paper-plane-left {
    left: -27%;
    width: 62%;
  }

  .paper-plane-center {
    left: 38%;
    width: 34%;
  }

  .right-menu {
    top: auto;
    right: auto;
    bottom: 168px;
    left: clamp(24px, 5.7vw, 82px);
    width: min(360px, calc(100vw - 48px));
  }

  .inquiries {
    right: auto;
    left: clamp(24px, 5.7vw, 82px);
    width: min(360px, calc(100vw - 48px));
  }

  .about-section,
  .category-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .category-copy {
    position: static;
  }

  .category-copy p {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .home {
    min-height: max(820px, 100svh);
  }

  .top-nav {
    top: 30px;
    right: auto;
    left: 24px;
    gap: 22px;
    font-size: 11px;
  }

  .hero {
    width: calc(100vw - 48px);
    padding-top: 176px;
    padding-left: 24px;
  }

  .wordmark {
    font-size: clamp(84px, 24vw, 120px);
  }

  .intro {
    margin-top: 22px;
  }

  .line-texture {
    right: -120px;
    opacity: 0.05;
  }

  .right-menu {
    bottom: 154px;
    left: 24px;
    gap: 14px;
  }

  .right-menu::before,
  .right-menu::after {
    display: none;
  }

  .right-menu a {
    font-size: 26px;
    line-height: 30px;
  }

  .right-menu a:hover,
  .right-menu a:focus-visible {
    transform: translateX(4px);
  }

  .inquiries {
    left: 24px;
    bottom: 34px;
  }

  .work-index {
    padding: 74px 24px 86px;
  }

  .about-section {
    padding: 70px 24px;
  }

  .category-section {
    padding: 42px 0 54px;
  }

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

  .work-grid figcaption {
    align-items: flex-start;
  }
}
