:root {
  --ink: #07111f;
  --ink-soft: #172336;
  --paper: #f2efe7;
  --paper-deep: #ded9ce;
  --blue: #7ca7d9;
  --amber: #e4a75e;
  --line: rgb(7 17 31 / 17%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --font-latin: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

svg {
  width: 1.15em;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.25rem, 4vw, 4rem);
  color: var(--paper);
}

.monogram {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgb(242 239 231 / 45%);
  border-radius: 50%;
  font-family: var(--font-latin);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: border-color 180ms ease, background 180ms ease;
}

.monogram:hover {
  border-color: var(--paper);
  background: rgb(242 239 231 / 8%);
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.75rem);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header nav a,
.text-link,
.socials a,
footer a {
  position: relative;
}

.site-header nav a::after,
.text-link::after,
.socials a::after,
footer a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.site-header nav a:hover::after,
.text-link:hover::after,
.socials a:hover::after,
footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.83fr);
  background:
    radial-gradient(circle at 18% 72%, rgb(66 103 146 / 28%), transparent 36%),
    var(--ink);
  color: var(--paper);
}

.hero::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 51%;
  width: 1px;
  height: 100%;
  background: rgb(242 239 231 / 12%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 9rem clamp(1.5rem, 7vw, 8.5rem) 6rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  margin: clamp(1.3rem, 3vh, 2.2rem) 0 1.4rem;
  color: var(--blue);
  font-family: var(--font-latin);
  font-size: clamp(6rem, 12vw, 12rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.hero-message {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  letter-spacing: 0.12em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.button {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  padding: 0 1.55rem;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button-primary {
  background: var(--paper);
  color: var(--ink);
}

.button-primary:hover {
  border-color: rgb(242 239 231 / 50%);
  background: transparent;
  color: var(--paper);
}

.text-link {
  padding-bottom: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  min-height: 100svh;
  margin: 0;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(7 17 31 / 18%), transparent 35%, rgb(7 17 31 / 40%));
  content: "";
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 1.6rem;
  bottom: 1.8rem;
  color: var(--paper);
  writing-mode: vertical-rl;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 1.7rem;
  left: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 3rem;
  height: 1px;
  overflow: hidden;
  background: rgb(242 239 231 / 30%);
}

.scroll-cue i::after {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  content: "";
  animation: scroll-line 2.4s infinite ease-in-out;
}

@keyframes scroll-line {
  0% {
    transform: translateX(-100%);
  }

  55%,
  100% {
    transform: translateX(100%);
  }
}

.running-line {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-evenly;
  gap: 1rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-latin);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-style: italic;
  white-space: nowrap;
}

.running-line i {
  color: var(--amber);
  font-size: 0.65rem;
  font-style: normal;
}

.section-shell {
  width: min(100%, 94rem);
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 6vw, 6rem);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid currentcolor;
  border-radius: 50%;
  font-size: 0.55rem;
}

.section-kicker p {
  margin: 0;
}

.about-content {
  display: grid;
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.65fr);
}

.about h2,
.work-heading h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.26;
}

.about-detail > p {
  margin: 0 0 3.5rem;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  line-height: 2.15;
}

.about-detail dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.about-detail dl div {
  display: grid;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
  grid-template-columns: 5rem 1fr;
}

.about-detail dt {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-detail dd {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 0.83rem;
}

.work {
  width: 100%;
  max-width: none;
  background: var(--ink-soft);
  color: var(--paper);
}

.work > * {
  width: min(100%, 82rem);
  margin-right: auto;
  margin-left: auto;
}

.section-kicker-light {
  color: var(--paper);
}

.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.work-heading h2 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
}

.work-heading > p {
  max-width: 25rem;
  margin: 0 0 0.75rem;
  color: rgb(242 239 231 / 64%);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  line-height: 1.9;
}

.focus-grid {
  display: grid;
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid rgb(242 239 231 / 20%);
  grid-template-columns: repeat(3, 1fr);
}

.focus-card {
  display: flex;
  min-height: 26rem;
  justify-content: space-between;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  border-right: 1px solid rgb(242 239 231 / 20%);
}

.focus-card:first-child {
  border-left: 1px solid rgb(242 239 231 / 20%);
}

.focus-number,
.focus-japanese,
.focus-body {
  margin: 0;
}

.focus-number {
  color: var(--amber);
  font-family: var(--font-latin);
  font-size: 0.75rem;
}

.focus-japanese {
  color: rgb(242 239 231 / 65%);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.focus-card h3 {
  margin: 0.5rem 0 1.8rem;
  overflow-wrap: anywhere;
  font-family: var(--font-latin);
  font-size: clamp(1.65rem, 3vw, 3.4rem);
  font-weight: 400;
}

.focus-body {
  color: rgb(242 239 231 / 72%);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 2;
}

.story-grid {
  display: grid;
  min-height: 70rem;
  background: var(--paper-deep);
  gap: 1px;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 1.15fr 0.85fr;
}

.story-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--ink);
}

.story-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-grid figure:hover img {
  transform: scale(1.025);
}

.story-stage {
  grid-row: 1 / 3;
}

.story-stage img {
  object-position: 48% center;
}

.story-studio img {
  object-position: 58% center;
}

.story-grid figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3rem 2rem 1.5rem;
  background: linear-gradient(transparent, rgb(7 17 31 / 72%));
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.story-grid figcaption span {
  margin-right: 1rem;
  color: var(--amber);
  font-family: var(--font-latin);
  font-style: italic;
}

.story-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--blue);
  color: var(--ink);
}

.story-note blockquote {
  margin: 3rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.7rem);
  line-height: 1.55;
}

.now-panel {
  display: grid;
  align-items: start;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 2rem;
  grid-template-columns: 0.35fr 1fr auto;
}

.now-date {
  margin: 0;
  color: rgb(7 17 31 / 60%);
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-style: italic;
}

.now-panel h2 {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-latin);
  font-size: clamp(3rem, 6vw, 6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.now-copy {
  max-width: 33rem;
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  line-height: 2;
}

.round-link {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background 220ms ease, color 220ms ease;
}

.round-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.contact {
  display: flex;
  min-height: 42rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6rem 1.5rem;
  background:
    radial-gradient(circle at 70% 25%, rgb(124 167 217 / 20%), transparent 30%),
    var(--ink);
  color: var(--paper);
  text-align: center;
}

.contact h2 {
  margin-top: 1.4rem;
  font-size: clamp(2.7rem, 6.3vw, 6.5rem);
}

.contact > p:not(.eyebrow, .demo-help) {
  margin: 1.5rem 0 2.5rem;
  color: rgb(242 239 231 / 68%);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.button-light {
  border-color: rgb(242 239 231 / 70%);
}

.button-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 4rem;
  font-family: var(--font-latin);
  font-size: 0.76rem;
}

.demo-help {
  margin: 1.6rem 0 0;
  color: rgb(242 239 231 / 42%);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

footer {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.5rem, 4vw, 4rem);
  background: #040a12;
  color: rgb(242 239 231 / 56%);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: 56rem;
    grid-template-columns: 1fr;
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    z-index: 4;
    min-height: 56rem;
    padding-top: 8rem;
    background: linear-gradient(90deg, rgb(7 17 31 / 85%) 0%, rgb(7 17 31 / 48%) 56%, rgb(7 17 31 / 8%) 100%);
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    min-height: 56rem;
  }

  .hero-visual img {
    object-position: 62% center;
  }

  .about-content,
  .work-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .focus-card,
  .focus-card:first-child {
    min-height: 19rem;
    border-right: 1px solid rgb(242 239 231 / 20%);
    border-bottom: 1px solid rgb(242 239 231 / 20%);
    border-left: 1px solid rgb(242 239 231 / 20%);
  }

  .story-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 42rem auto 30rem;
  }

  .story-stage {
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 1.2rem;
  }

  .site-header nav {
    gap: 0.25rem;
    font-size: 0.62rem;
  }

  .site-header nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding-inline: 0.38rem;
  }

  .hero,
  .hero-copy,
  .hero-visual {
    min-height: max(42rem, 100svh);
  }

  .hero-copy {
    justify-content: flex-end;
    padding: 6.75rem 1.25rem 6.5rem;
    background:
      linear-gradient(180deg, rgb(7 17 31 / 8%) 8%, rgb(7 17 31 / 18%) 38%, rgb(7 17 31 / 92%) 80%),
      linear-gradient(90deg, rgb(7 17 31 / 45%), transparent 72%);
  }

  .hero h1 {
    margin-block: 1rem 1.15rem;
    font-size: clamp(5.4rem, 29vw, 7.8rem);
    line-height: 0.72;
  }

  .hero-message {
    font-size: 0.93rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
  }

  .text-link,
  .scroll-cue,
  .socials a,
  footer a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
  }

  .hero-visual img {
    object-position: 64% center;
  }

  .hero-visual figcaption {
    display: none;
  }

  .running-line {
    justify-content: flex-start;
    padding-inline: 1.5rem;
  }

  .running-line span:nth-of-type(n + 3),
  .running-line i:nth-of-type(n + 3) {
    display: none;
  }

  .section-shell {
    padding: 5rem 1.25rem;
  }

  .about h2,
  .work-heading h2,
  .contact h2 {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .focus-card {
    min-height: 22rem;
    padding: 1.35rem;
    border: 1px solid rgb(242 239 231 / 20%);
    scroll-snap-align: start;
  }

  .focus-card:first-child {
    border: 1px solid rgb(242 239 231 / 20%);
  }

  .focus-grid {
    width: auto;
    margin-inline: -1.25rem;
    padding: 0 1.25rem 0.75rem;
    border-top: 0;
    grid-auto-columns: minmax(16.75rem, 82vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 1.25rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .focus-grid::-webkit-scrollbar {
    display: none;
  }

  .story-grid {
    padding: 1rem 1.25rem 4rem;
    gap: 0;
    grid-template-columns: 1fr 2.75rem;
    grid-template-rows: 26rem auto 18rem;
  }

  .story-stage {
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .story-note {
    z-index: 2;
    min-height: 17rem;
    margin: -3.25rem 1rem 0;
    padding: 2rem 1.5rem;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .story-note blockquote {
    margin-top: 2rem;
    font-size: clamp(1.65rem, 8.5vw, 2.4rem);
  }

  .story-studio {
    width: 78%;
    margin-top: 1rem;
    justify-self: end;
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .story-grid figcaption {
    padding: 2.75rem 1rem 1rem;
  }

  .now-panel {
    grid-template-columns: 1fr auto;
  }

  .now-date {
    grid-column: 1 / -1;
  }

  .round-link {
    width: 3.5rem;
    height: 3.5rem;
  }

  .contact {
    min-height: 38rem;
  }

  .contact > p:not(.eyebrow, .demo-help) {
    max-width: 18rem;
    line-height: 1.8;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.6rem;
  }
}

@media (hover: none) {
  .story-grid figure:hover img {
    transform: none;
  }
}

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

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

  .scroll-cue i::after {
    animation: none;
    transform: none;
  }

  .story-grid figure:hover img {
    transform: none;
  }
}
