:root {
  --paper: #faf9f7;
  --white: #ffffff;
  --ink: #302a26;
  --charcoal-brown: #4a4039;
  --muted: #78716c;
  --line: #dedbd7;
  --light-gray: #efedea;
  --accent: #b4aaa2;
  --page-gutter: clamp(1.25rem, 5vw, 5rem);
  --content-width: 88rem;
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.85rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
}

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

.site-header,
.site-footer,
.hero,
.section-shell,
.project-inner {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 3vw, 2.5rem);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.site-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.hero {
  min-height: min(50rem, calc(100svh - 5rem));
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(21rem, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.eyebrow,
.section-number,
.status {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.17em;
}

.eyebrow {
  margin-bottom: clamp(1.7rem, 4vw, 3rem);
  color: var(--muted);
}

.hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.91rem, 1.2vw, 1.04rem);
  line-height: 2;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  z-index: -1;
  border: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-shell {
  padding-block: clamp(6rem, 13vw, 12rem);
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-number {
  padding-top: 0.55rem;
  color: var(--muted);
}

.about-content h2 {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.055em;
}

.about-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 2.15;
}

.project {
  background: var(--charcoal-brown);
  color: var(--white);
}

.project-inner {
  min-height: clamp(36rem, 72vw, 49rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
}

.project .section-number,
.project .status,
.project-content p {
  color: var(--light-gray);
}

.project-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.project-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.project-content h2 {
  margin: -0.08em 0 4rem;
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.project-content p {
  margin: 0;
  font-size: clamp(0.96rem, 1.35vw, 1.12rem);
  line-height: 2.05;
}

.site-footer {
  min-height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 800px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  .hero-visual {
    width: min(92%, 36rem);
    margin-left: auto;
  }

  .section-shell,
  .project-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-inner {
    min-height: 42rem;
  }

  .project-meta {
    min-height: 5rem;
    flex-direction: row;
    align-items: flex-start;
  }

  .project-content h2 {
    margin-bottom: 5rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 6.4rem;
    padding-block: 1.2rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 4rem;
    gap: 3.5rem;
  }

  .hero-visual {
    width: calc(100% - 0.75rem);
  }

  .hero-visual::before {
    inset: -0.65rem 0.65rem 0.65rem -0.65rem;
  }

  .desktop-break {
    display: none;
  }

  .about-content h2 {
    font-size: clamp(2.1rem, 10.5vw, 3rem);
  }

  .project-inner {
    min-height: 38rem;
  }

  .project-content h2 {
    font-size: clamp(3.5rem, 18vw, 4.8rem);
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
