:root {
  --paper: #eee9de;
  --paper-deep: #ded6c7;
  --ink: #172026;
  --muted: #697078;
  --red: #a42e26;
  --red-dark: #75231e;
  --blue: #163d55;
  --blue-deep: #0d293a;
  --green: #4f765f;
  --green-deep: #2d503e;
  --yellow: #d7a928;
  --line: rgba(23, 32, 38, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23,32,38,.035) 1px, transparent 1px),
    linear-gradient(rgba(23,32,38,.025) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

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

.page-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.site-header {
  min-height: 108px;
  padding: 24px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #f7e9d9;
  background: var(--red);
  border-radius: 3px 3px 12px 3px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.18);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 27px;
  transform: rotate(-2deg);
}

.wordmark strong {
  display: block;
  font: 700 20px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .14em;
}

.wordmark small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .28em;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .25em;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 108px));
  padding: clamp(70px, 10vw, 145px) clamp(24px, 7vw, 102px) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -250px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(164,46,38,.18);
  border-radius: 50%;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  color: var(--red);
  font: 700 11px/1.2 Georgia, serif;
  letter-spacing: .2em;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--red);
}

.eyebrow b {
  color: var(--muted);
  font-family: "Songti SC", "STSong", serif;
  font-weight: 400;
  letter-spacing: .24em;
}

h1 {
  max-width: none;
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(46px, 4.35vw, 70px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

h1 em {
  position: relative;
  color: var(--red);
  font-style: normal;
}

h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--red), transparent);
  clip-path: polygon(0 40%, 100% 0, 98% 55%, 3% 100%);
  opacity: .55;
}

.intro {
  max-width: 720px;
  margin: 42px 0 0;
  color: #4e575e;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.95;
  text-wrap: pretty;
}

.down-link {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}

.down-link span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  transition: transform .25s ease;
}

.down-link:hover span { transform: translateY(5px); }

.time-mark {
  position: relative;
  width: min(400px, 32vw);
  aspect-ratio: 1;
  justify-self: center;
  animation: rise-in 1.1s .15s both cubic-bezier(.2,.8,.2,1);
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23,32,38,.2);
  border-radius: 50%;
}

.orbit-one::before,
.orbit-two::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--red);
  border: 5px solid var(--paper);
  border-radius: 50%;
}

.orbit-one { animation: orbit 26s linear infinite; }
.orbit-one::before { top: 16%; left: 7%; }
.orbit-two { inset: 12%; border-color: rgba(22,61,85,.3); animation: orbit-reverse 19s linear infinite; }
.orbit-two::before { right: 3%; bottom: 24%; background: var(--blue); }

.time-core {
  position: absolute;
  inset: 25%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 30px 90px rgba(23,32,38,.25);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(28px, 4vw, 54px);
}

.time-core i { width: 1px; height: 52%; background: rgba(255,255,255,.24); }

.year {
  position: absolute;
  margin: 0;
  font: italic 700 clamp(20px, 2.5vw, 34px)/1 Georgia, serif;
}

.year-old { left: 0; bottom: 18%; color: var(--ink); }
.year-now { right: -3%; top: 20%; color: var(--red); }

.projects {
  padding: 112px clamp(24px, 7vw, 102px) 128px;
  background: #e4ded1;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 30px;
  margin-bottom: 42px;
}

.section-heading p {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: var(--red);
  font: 700 11px/1 Georgia, serif;
  letter-spacing: .2em;
}

.section-heading h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 500;
}

.section-heading span { color: var(--muted); font-size: 14px; letter-spacing: .12em; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 520px;
  padding: clamp(30px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: white;
  border-radius: 4px 4px 28px 4px;
  text-decoration: none;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 2px 2px 18px 2px;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-9px);
  box-shadow: 0 34px 70px rgba(23,32,38,.24);
}

.project-guwen { background: var(--red-dark); }
.project-health { background: var(--green-deep); }
.project-nippon { background: var(--blue-deep); }

.project-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
}

.project-kicker {
  margin-top: 48px;
  color: rgba(255,255,255,.66);
  font: 700 10px/1.2 Georgia, serif;
  letter-spacing: .18em;
}

.project-card h3 {
  margin: 14px 0 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 500;
  line-height: 1.15;
}

.project-card p {
  max-width: 500px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.85;
}

.project-meta {
  margin-top: 30px;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  letter-spacing: .12em;
}

.enter {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 15px;
  font-weight: 700;
}

.enter b { font-size: 28px; font-weight: 400; transition: transform .25s ease; }
.project-card:hover .enter b { transform: translate(5px, -5px); }

.card-glyph {
  position: absolute;
  right: -18px;
  bottom: -62px;
  z-index: -1;
  color: rgba(255,255,255,.04);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 250px;
  line-height: 1;
}

.closing {
  padding: 122px clamp(24px, 12vw, 170px);
  text-align: center;
}

.capabilities {
  padding: 118px clamp(24px, 7vw, 102px) 126px;
  color: #edf0f1;
  background: var(--ink);
}

.capabilities-heading {
  max-width: 820px;
  margin-bottom: 58px;
}

.capabilities-heading > p {
  margin: 0 0 18px;
  color: var(--yellow);
  font: 700 11px/1 Georgia, serif;
  letter-spacing: .2em;
}

.capabilities-heading h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
}

.capabilities-heading > span {
  display: block;
  margin-top: 20px;
  color: #aeb6ba;
  line-height: 1.8;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.18);
}

.capability-list article {
  min-height: 290px;
  padding: 32px clamp(20px, 3vw, 42px) 36px;
  border-right: 1px solid rgba(255,255,255,.18);
}

.capability-list article:first-child { padding-left: 0; }
.capability-list article:last-child { border-right: 0; }

.capability-list article > span {
  color: var(--yellow);
  font: italic 700 13px/1 Georgia, serif;
}

.capability-list h3 {
  margin: 62px 0 18px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 34px;
  font-weight: 500;
}

.capability-list p {
  margin: 0;
  color: #aeb6ba;
  font-size: 15px;
  line-height: 1.85;
}

.closing-mark { margin: 0; color: var(--red); font: 700 68px/1 Georgia, serif; }

.closing blockquote {
  max-width: 1120px;
  margin: 8px auto 26px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.5;
  text-wrap: balance;
}

.closing blockquote span { display: block; }

.closing > p:last-child { color: var(--muted); font-size: 13px; letter-spacing: .14em; }

.site-footer {
  min-height: 98px;
  padding: 24px clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  color: #d8dee1;
  background: var(--ink);
  font-size: 11px;
  letter-spacing: .15em;
}

.site-footer span:nth-child(2) { text-align: center; }
.site-footer span:last-child { text-align: right; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-reverse { to { transform: rotate(-360deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }

@media (max-width: 1120px) and (min-width: 861px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-nippon { grid-column: 1 / -1; min-height: 430px; }
  .project-nippon p { max-width: 760px; }
}

@media (max-width: 860px) {
  .site-header { min-height: 88px; }
  .header-note { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 76px; }
  .time-mark { width: min(360px, 78vw); margin: 24px auto 0; }
  .projects { padding-top: 82px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-nippon { grid-column: auto; }
  .project-card { min-height: 470px; }
  .capability-list { grid-template-columns: 1fr; }
  .capability-list article { min-height: 0; padding: 32px 0 38px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .capability-list article:last-child { border-bottom: 0; }
  .capability-list h3 { margin-top: 28px; }
}

@media (max-width: 560px) {
  .page-shell { border: 0; }
  .site-header { padding: 18px; }
  .seal { width: 42px; height: 42px; font-size: 23px; }
  .wordmark strong { font-size: 17px; }
  .wordmark small { letter-spacing: .16em; }
  .hero { padding: 58px 20px 64px; }
  .eyebrow { flex-wrap: wrap; gap: 10px; }
  .eyebrow b { width: 100%; padding-left: 58px; }
  h1 { font-size: clamp(32px, 8.7vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
  .intro { margin-top: 34px; font-size: 16px; line-height: 1.85; }
  .time-mark { width: 82vw; }
  .projects { padding: 76px 16px 84px; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 28px; }
  .section-heading span { margin-top: 8px; }
  .project-grid { gap: 14px; }
  .project-card { min-height: 440px; padding: 30px 28px; border-radius: 3px 3px 20px 3px; }
  .project-card::before { inset: 12px; }
  .project-kicker { margin-top: 36px; }
  .project-card p { font-size: 15px; }
  .closing { padding: 86px 24px; }
  .capabilities { padding: 78px 20px 84px; }
  .closing blockquote { font-size: 29px; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .site-footer span:nth-child(2), .site-footer span:last-child { text-align: center; }
}

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