:root {
  --washi: #efeae0;
  --ink: #1c1a17;
  --seal-red: #c1524f;
  --sumi: #a89679;
  --smoke: #5a5246;
  --line: rgba(28, 26, 23, 0.14);
  --paper: rgba(255, 255, 255, 0.26);
  --font: "Shippori Mincho", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--washi);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(193, 82, 79, 0.04) 0, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

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

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 3px;
  background: rgba(28, 26, 23, 0.08);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--seal-red);
}

.site-header {
  position: fixed;
  top: 22px;
  left: 28px;
  right: 28px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  background: rgba(239, 234, 224, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(28, 26, 23, 0.05);
}

.site-header::before {
  content: "";
  width: 9px;
  align-self: stretch;
  background: var(--seal-red);
  opacity: 0.82;
}

.brand,
.name {
  color: var(--seal-red);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--smoke);
  font-size: 14px;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--seal-red);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 34px;
  padding: 8px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--ink);
}

.strip {
  position: relative;
  min-height: 640px;
  padding: 120px 80px;
  border-bottom: 1px solid var(--line);
}

.hero {
  isolation: isolate;
  padding-top: 160px;
}

.hero-grid,
.section-head,
.stack-ledger,
.core-grid,
.build-river,
.project-list,
.tool-line,
.contact-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
  gap: 80px;
  align-items: end;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  max-width: 17ch;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  margin-top: 34px;
  font-size: 88px;
}

h2 {
  font-size: 72px;
}

h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
}

.accent {
  color: var(--seal-red);
  font-style: italic;
  font-weight: 400;
}

.role {
  margin-top: 34px;
  color: var(--smoke);
  font-size: 18px;
}

.hero .role {
  display: inline-flex;
  max-width: 100%;
  padding: 10px 18px;
  border-left: 3px solid var(--seal-red);
  background: rgba(255, 255, 255, 0.22);
}

.lede {
  max-width: 48ch;
  margin-top: 32px;
  color: var(--smoke);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.button,
.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  color: var(--seal-red);
  font-size: 15px;
  border-bottom: 1px solid rgba(193, 82, 79, 0.42);
}

.button:hover,
.contact-links a:hover {
  border-bottom-color: var(--seal-red);
}

.quiet-card {
  position: relative;
  padding: 36px 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 18px 18px 0 rgba(193, 82, 79, 0.08);
}

.quiet-card p {
  padding: 16px 0;
  color: var(--smoke);
  border-bottom: 1px solid var(--line);
}

.quiet-card p:last-child {
  border-bottom: 0;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--washi);
  background: var(--seal-red);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-3deg);
}

.quiet-card .seal {
  position: absolute;
  top: -32px;
  right: 28px;
}

.sakura-corner {
  position: absolute;
  top: 106px;
  right: 70px;
  z-index: 0;
  width: 260px;
  height: 240px;
  pointer-events: none;
  opacity: 0.9;
}

.sakura-corner::before,
.sakura-corner::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 42px;
  width: 190px;
  height: 1px;
  background: rgba(168, 150, 121, 0.58);
  transform: rotate(-31deg);
  transform-origin: right center;
}

.sakura-corner::after {
  right: 62px;
  top: 96px;
  width: 112px;
  transform: rotate(-8deg);
  opacity: 0.75;
}

.sakura-corner span {
  position: absolute;
  width: 18px;
  height: 24px;
  background: rgba(193, 82, 79, 0.32);
  border-radius: 80% 20% 80% 20%;
  transform: rotate(24deg);
}

.sakura-corner span:nth-child(1) {
  top: 18px;
  right: 22px;
}

.sakura-corner span:nth-child(2) {
  top: 48px;
  right: 72px;
  width: 15px;
  height: 20px;
  transform: rotate(-18deg);
}

.sakura-corner span:nth-child(3) {
  top: 82px;
  right: 112px;
  background: rgba(193, 82, 79, 0.24);
}

.sakura-corner span:nth-child(4) {
  top: 116px;
  right: 56px;
  width: 14px;
  height: 18px;
  transform: rotate(58deg);
}

.sakura-corner span:nth-child(5) {
  top: 148px;
  right: 146px;
  width: 13px;
  height: 17px;
  background: rgba(193, 82, 79, 0.2);
  transform: rotate(12deg);
}

.sakura-corner span:nth-child(6) {
  top: 188px;
  right: 92px;
  width: 11px;
  height: 15px;
  background: rgba(193, 82, 79, 0.18);
  transform: rotate(-28deg);
}

.vertical-caption {
  position: absolute;
  top: 140px;
  left: 32px;
  color: var(--sumi);
  font-size: 14px;
  letter-spacing: 0;
  writing-mode: vertical-rl;
}

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: 64px;
}

.stack-ledger {
  border-top: 1px solid var(--line);
}

.stack-ledger article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.stack-ledger h3,
.core-grid span,
.project-list span {
  color: var(--seal-red);
  font-size: 14px;
  font-weight: 500;
}

.stack-ledger p,
.project-list p,
.tool-line {
  color: var(--smoke);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
}

.core-grid article {
  min-height: 172px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.core-grid h3 {
  margin-top: 18px;
}

.build-river {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.build-river span {
  color: var(--smoke);
  font-size: 20px;
}

.build-river span::after {
  content: "/";
  margin-left: 28px;
  color: var(--sumi);
}

.build-river span:last-child::after {
  content: "";
  margin-left: 0;
}

.project-list {
  display: grid;
  gap: 34px;
}

.project-list article {
  display: grid;
  grid-template-columns: 180px minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 34px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.tool-line {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.contact {
  min-height: 560px;
}

.contact-inner {
  position: relative;
}

.contact-inner .seal {
  position: absolute;
  top: 0;
  right: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 80px 42px;
  color: var(--sumi);
  font-size: 14px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  animation: reveal-in 620ms ease both;
}

[data-reveal].is-visible {
  opacity: 1;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    left: 22px;
    right: 22px;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--washi);
  }

  .site-nav.is-open {
    display: flex;
  }

  .strip {
    padding: 108px 34px;
  }

  .hero-grid,
  .stack-ledger article,
  .project-list article {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 54px;
  }

  .sakura-corner {
    top: 112px;
    right: 22px;
    width: 190px;
    height: 180px;
    opacity: 0.45;
  }

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

  .contact-inner .seal {
    position: static;
    margin-bottom: 34px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .strip {
    min-height: 0;
    padding: 92px 20px;
  }

  .hero {
    padding-top: 136px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 40px;
  }

  h3,
  .build-river span,
  .tool-line {
    font-size: 18px;
  }

  .role,
  .lede {
    font-size: 15px;
  }

  .vertical-caption {
    display: none;
  }

  .sakura-corner {
    top: 98px;
    right: -28px;
    width: 150px;
    height: 150px;
    opacity: 0.34;
  }

  .sakura-corner::before {
    width: 120px;
  }

  .sakura-corner::after {
    width: 72px;
  }

  .quiet-card {
    padding: 32px 22px 22px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px 34px;
  }
}

@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;
  }
}
