:root {
  --ink: #1e211d;
  --paper: #f2f0e9;
  --warm: #d8d2c5;
  --moss: #394137;
  --line: rgba(30, 33, 29, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: auto-phrase;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  width: min(100% - 48px, 1440px);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: .78rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; }
nav { display: flex; gap: 34px; font-size: .68rem; letter-spacing: .12em; }
nav a { padding: 12px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible, nav a.nav-active { border-color: currentColor; }

.hero, .work, .statement, .studio { width: min(100% - 48px, 1440px); margin: 0 auto; }
.hero { padding: 86px 0 30px; }
.hero-copy { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 40px; align-items: start; margin-bottom: 72px; }
.eyebrow, .section-label { margin: 0; font-size: .66rem; font-weight: 600; letter-spacing: .14em; }
h1 { margin-bottom: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(3.2rem, 6.4vw, 7rem); font-weight: 400; letter-spacing: -.075em; line-height: 1.08; max-width: 900px; }
.hero-intro { max-width: 290px; font-size: .95rem; line-height: 1.9; }
.hero-image { aspect-ratio: 16 / 9; background: url("hero-courtyard.png") center / cover no-repeat; }
.hero-caption { display: flex; justify-content: space-between; padding-top: 14px; font-size: .62rem; letter-spacing: .1em; }

.statement { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; padding: 160px 0; border-bottom: 1px solid var(--line); }
.statement-copy { max-width: 980px; margin-bottom: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 3.7vw, 4.1rem); letter-spacing: -.045em; line-height: 1.4; }
.work { padding: 130px 0 160px; }
.section-heading { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; margin-bottom: 76px; }
.section-heading h2, .studio h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.6rem, 4.7vw, 5.2rem); font-weight: 400; letter-spacing: -.06em; line-height: 1.25; max-width: 850px; }
.project-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 68px 24px; }
.project:nth-child(1) { grid-column: 1 / span 7; }
.project:nth-child(2) { grid-column: 8 / span 5; margin-top: 140px; }
.project:nth-child(3) { grid-column: 3 / span 6; }
.project-image { aspect-ratio: 4 / 3; background-repeat: no-repeat; background-color: var(--warm); background-size: auto 100%; background-position: center; }
.project-image--courtyard { background-image: url("hero-courtyard.png"); }
.project-image--interior { background-image: url("apartment-interior.png"); }
.project-image--material { background-image: url("gallery-retail.png"); }
.project-meta { display: grid; grid-template-columns: 54px 1fr; padding-top: 20px; }
.project-meta > span, .project-meta p { font-size: .64rem; line-height: 1.7; letter-spacing: .08em; }
.project-meta h3 { margin-bottom: 6px; font-size: 1rem; font-weight: 500; letter-spacing: .02em; }
.project-description { max-width: 520px; margin: 14px 0 0 54px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.08rem; line-height: 1.9; }

.approach { padding: 140px max(24px, calc((100vw - 1440px) / 2)); background: var(--moss); color: var(--paper); }
.section-heading--light { padding-bottom: 70px; border-bottom: 1px solid rgba(242, 240, 233, .28); }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.approach-grid article { min-height: 330px; padding: 34px 34px 0 0; border-right: 1px solid rgba(242, 240, 233, .28); }
.approach-grid article + article { padding-left: 34px; }
.approach-grid article:last-child { border-right: 0; }
.approach-grid span { font-size: .65rem; letter-spacing: .15em; }
.approach-grid h3 { margin: 150px 0 12px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 2rem; font-weight: 400; }
.approach-grid p { max-width: 340px; font-size: .86rem; line-height: 1.9; opacity: .82; }
.studio { display: grid; grid-template-columns: 1.3fr 1fr; gap: 100px; padding: 160px 0; }
.studio .section-label { margin-bottom: 45px; }
.studio-copy { padding-top: 67px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.4rem; line-height: 1.9; }
.availability { margin-top: 50px; font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: .65rem; letter-spacing: .1em; }
footer { min-height: 150px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; background: var(--ink); color: var(--paper); }
footer p { margin: 0; font-size: .62rem; letter-spacing: .1em; text-align: center; }
footer p:last-child { text-align: right; }

.contact-shell { width: min(100% - 48px, 1440px); min-height: calc(100vh - 236px); margin: 0 auto; padding: 105px 0 140px; }
.contact-intro { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 40px; align-items: start; padding-bottom: 90px; border-bottom: 1px solid var(--line); }
.contact-intro h1, .contact-success h1 { margin-bottom: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(3.2rem, 6.2vw, 6.6rem); font-weight: 400; letter-spacing: -.07em; line-height: 1.15; }
.contact-intro > p:last-child, .contact-success > p { max-width: 420px; font-size: .95rem; line-height: 1.9; }
.inquiry-form { margin-left: 25%; padding-top: 85px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 30px; }
.inquiry-form label { display: block; }
.inquiry-form label > span { display: block; margin-bottom: 13px; font-size: .64rem; font-weight: 600; letter-spacing: .1em; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.inquiry-form input, .inquiry-form select { height: 48px; }
.inquiry-form textarea { padding: 15px 0; resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-bottom-color: var(--ink); }
.inquiry-form [aria-invalid="true"] { border-bottom-color: #97473e; }
.inquiry-form small { display: block; min-height: 1.2em; margin-top: 8px; color: #97473e; font-size: .72rem; }
.message-field { margin-top: 58px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 38px; }
.form-footer p { margin: 0; font-size: .62rem; letter-spacing: .1em; }
.form-footer button, .success-actions button, .success-actions a { min-width: 170px; padding: 16px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; font-size: .66rem; letter-spacing: .1em; text-align: center; cursor: pointer; }
.form-footer button:disabled { cursor: wait; opacity: .55; }
.contact-success { min-height: 580px; display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 40px; align-content: center; }
.contact-success[hidden] { display: none; }
.success-actions { grid-column: 2 / 4; display: flex; gap: 12px; margin-top: 20px; }
.success-actions a { background: transparent; color: var(--ink); }

@media (max-width: 900px) {
  .hero-copy, .statement, .section-heading, .studio, .contact-intro, .contact-success { grid-template-columns: 1fr; }
  .inquiry-form { margin-left: 0; }
  .contact-success { align-content: start; padding-top: 70px; }
  .success-actions { grid-column: auto; }
  .hero-copy { gap: 26px; }
  .hero-intro { max-width: 520px; }
  .statement, .work, .studio { padding-top: 100px; padding-bottom: 100px; }
  .project:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .project:nth-child(3) { grid-column: 4 / span 6; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid article, .approach-grid article + article { min-height: 0; padding: 34px 0 56px; border-right: 0; border-bottom: 1px solid rgba(242, 240, 233, .28); }
  .approach-grid h3 { margin-top: 70px; }
  .studio-copy { padding-top: 0; }
}

@media (max-width: 620px) {
  .site-header, .hero, .work, .statement, .studio, .contact-shell { width: min(100% - 28px, 1440px); }
  .site-header { min-height: 70px; }
  nav { gap: 14px; }
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  .hero { padding-top: 62px; }
  .hero-copy { margin-bottom: 45px; }
  h1 { font-size: clamp(2.9rem, 13.5vw, 4.5rem); }
  .hero-image { aspect-ratio: 4 / 5; background-size: auto 100%; background-position: left center; }
  .hero-caption span:last-child { display: none; }
  .statement-copy { font-size: 2rem; }
  .project-list { display: block; }
  .project { margin-bottom: 70px !important; }
  .project-description { margin-left: 0; }
  .approach { padding-top: 90px; padding-bottom: 90px; }
  .contact-shell { padding-top: 70px; padding-bottom: 90px; }
  .contact-intro { gap: 24px; padding-bottom: 60px; }
  .inquiry-form { padding-top: 60px; }
  .form-grid { grid-template-columns: 1fr; gap: 38px; }
  .form-footer, .success-actions { align-items: stretch; flex-direction: column; }
  .form-footer button, .success-actions button, .success-actions a { width: 100%; }
  footer { min-height: 180px; grid-template-columns: 1fr; gap: 14px; padding-top: 38px; padding-bottom: 38px; }
  footer p, footer p:last-child { text-align: left; }
}

@keyframes load-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes image-reveal {
  from { opacity: 0; clip-path: inset(0 0 16% 0); transform: scale(1.025); }
  to { opacity: 1; clip-path: inset(0); transform: scale(1); }
}

@keyframes scroll-reveal {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header { opacity: 0; animation: load-up .7s cubic-bezier(.22, 1, .36, 1) .05s forwards; }
  .hero-copy > * { opacity: 0; animation: load-up .85s cubic-bezier(.22, 1, .36, 1) forwards; }
  .hero-copy > :nth-child(1) { animation-delay: .12s; }
  .hero-copy > :nth-child(2) { animation-delay: .2s; }
  .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .hero-image { opacity: 0; animation: image-reveal 1.15s cubic-bezier(.22, 1, .36, 1) .28s forwards; }
  .hero-caption { opacity: 0; animation: load-up .7s ease .55s forwards; }
  nav a, .wordmark, .form-footer button, .success-actions button, .success-actions a { transition: opacity .25s ease, border-color .25s ease, transform .25s ease, background-color .25s ease, color .25s ease; }
  .wordmark:hover { opacity: .6; }
  .project-image { transition: background-size .9s cubic-bezier(.22, 1, .36, 1), filter .5s ease; }
  .project:hover .project-image { background-size: auto 104%; filter: saturate(.92) contrast(1.025); }
  .project h3 { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
  .project:hover h3 { transform: translateX(5px); }
  .form-footer button:hover, .success-actions button:hover { transform: translateY(-2px); }
  .success-actions a:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

  @supports (animation-timeline: view()) {
    .statement-copy, .section-heading, .project, .approach-grid article, .studio > *, .inquiry-form {
      animation: scroll-reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 28%;
    }
  }
}

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