* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f0ea;
  --bg2: #ebe6de;
  --text: #24201c;
  --muted: #6e6258;
  --brown: #2a1f19;
  --walnut: #5a3424;
  --blue: #1f7182;
  --gold: #9b7a2b;
  --line: rgba(42, 31, 25, .16);
  --white: #fffdf8;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5vw;
  background: rgba(244, 240, 234, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  letter-spacing: .18em;
}

.nav {
  display: flex;
  gap: 34px;
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--muted);
}

.nav a {
  transition: color .25s ease;
}

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

.nav-toggle {
  display: none;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(32, 20, 14, .50), rgba(32, 20, 14, .62)),
    url("../images/keycase-closed.jpg") center / cover;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 11px;
  letter-spacing: .55em;
  color: rgba(255,255,255,.72);
}

.eyebrow.blue {
  color: var(--blue);
}

h1, h2, h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: .06em;
}

.hero .lead {
  margin: 32px 0 36px;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-width: 180px;
  padding: 14px 26px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: .86;
}

.btn-light {
  background: var(--white);
  color: var(--brown);
  border-color: var(--white);
}

.btn-outline {
  color: white;
}

.btn-dark {
  background: #201813;
  color: var(--white);
  border-color: #201813;
}

.btn-border-dark {
  color: var(--brown);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  z-index: 2;
  color: rgba(255,255,255,.65);
  font-size: 22px;
}

.section {
  padding: 110px 0;
}

.container {
  width: min(1180px, 88vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 88vw);
  text-align: center;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
}

.reverse {
  grid-template-columns: .9fr 1fr;
}

.image-frame {
  position: relative;
}

.image-frame::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 130px;
  height: 130px;
  border: 1px solid var(--line);
}

.image-frame img {
  aspect-ratio: 4 / 5;
}

.text-block h2,
.section-heading h2,
.purchase h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 36px;
}

.text-block p {
  color: var(--muted);
  margin: 0 0 24px;
}

.values {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: center;
}

.values strong {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
}

.values span,
.roman {
  display: block;
  font-size: 10px;
  letter-spacing: .38em;
  color: var(--muted);
}

.works {
  background: var(--bg2);
}

.section-heading {
  text-align: center;
  margin-bottom: 70px;
}

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

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.work-card {
  background: var(--bg);
  transition: transform .28s ease, box-shadow .28s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(42, 31, 25, .12);
}

.work-card img {
  aspect-ratio: 3 / 4;
}

.work-body {
  padding: 32px;
}

.work-body h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.work-body p {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 14px;
}

.dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 12px;
}

.blue-dot { background: var(--blue); }
.gold-dot { background: var(--gold); }
.brown-dot { background: var(--walnut); }

.dark {
  background:
    linear-gradient(rgba(26, 19, 15, .92), rgba(26, 19, 15, .92)),
    url("../images/keycase-closed.jpg") center / cover;
  color: var(--white);
}

.philosophy {
  padding: 150px 0;
}

.philosophy h2 {
  font-size: clamp(42px, 5vw, 74px);
  margin-bottom: 44px;
}

.philosophy p {
  color: rgba(255,255,255,.68);
}

.story {
  background: var(--bg);
}

.materials {
  background: var(--bg2);
}

.material-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.material-item {
  background: var(--bg2);
  padding: 42px;
}

.material-item span {
  color: var(--blue);
  letter-spacing: .22em;
  font-size: 12px;
}

.material-item h3 {
  margin: 18px 0;
  font-size: 26px;
}

.material-item p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 18px;
}

.gallery-grid img {
  height: 100%;
}

.gallery-grid .tall {
  grid-row: span 2;
}

.gallery-grid .wide {
  grid-column: span 2;
}

.purchase {
  min-height: 620px;
  display: grid;
  place-items: center;
}

.purchase p {
  color: var(--muted);
}

.center {
  margin: 46px 0 28px;
}

.note {
  font-size: 13px;
  color: #9a8d82;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 42px 5.5vw;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
}

.footer strong {
  display: block;
  font-family: "Noto Serif JP", serif;
  color: var(--text);
  font-size: 18px;
  letter-spacing: .18em;
}

.footer span {
  letter-spacing: .35em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

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

@media (max-width: 900px) {
  .site-header {
    height: 72px;
  }

  .nav-toggle {
    display: grid;
    gap: 6px;
    width: 34px;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .nav-toggle span {
    height: 1px;
    background: var(--text);
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(244, 240, 234, .97);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 18px 5.5vw;
    border-top: 1px solid var(--line);
  }

  .two-col,
  .reverse,
  .work-grid,
  .material-list {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .section {
    padding: 78px 0;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
  }

  .gallery-grid .wide {
    grid-column: span 2;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .brand {
    font-size: 16px;
  }

  .hero {
    text-align: left;
    place-items: end start;
  }

  .hero-content {
    padding: 120px 6vw 96px;
  }

  h1 {
    font-size: 42px;
  }

  .button-row {
    justify-content: flex-start;
  }

  .btn {
    width: 100%;
  }

  .text-block h2,
  .section-heading h2,
  .purchase h2 {
    font-size: 32px;
  }

  .work-body,
  .material-item {
    padding: 26px;
  }

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

  .gallery-grid .wide {
    grid-column: span 1;
  }
}
