:root {
  --ink: #16120e;
  --ink-soft: #3a342c;
  --paper: #f3eee4;
  --paper-2: #e8e0d2;
  --wood: #b0894f;
  --wood-deep: #8c6230;
  --forest: #24382b;
  --moss: #3d5a44;
  --clay: #a45a38;
  --muted: #6e675c;
  --line: rgba(22, 18, 14, 0.12);
  --line-strong: rgba(22, 18, 14, 0.28);
  --white: #faf7f1;
  --shadow: 0 24px 60px rgba(22, 18, 14, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --nav-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  text-wrap: pretty;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.custom-logo {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--wood);
  z-index: 80;
  transform-origin: left;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  height: var(--nav-h);
  color: var(--white);
  mix-blend-mode: normal;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), backdrop-filter 0.4s;
}

.is-front .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent;
  color: var(--white);
  border-bottom: 0;
  backdrop-filter: none;
}

.site-header.is-scrolled,
.site-header.is-open,
body:not(.is-front) .site-header {
  background: rgba(243, 238, 228, 0.92);
  color: var(--ink);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: 0.18em;
}

.brand-ja {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.brand-en {
  font-size: 10px;
  letter-spacing: 0.42em;
  opacity: 0.7;
  text-transform: uppercase;
}

.nav-primary {
  justify-self: center;
}

.nav-primary ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  font-size: 13px;
  letter-spacing: 0.16em;
  position: relative;
  padding: 6px 0;
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-primary a:hover::after,
.nav-primary .current-menu-item a::after {
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-tel {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 12px;
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  padding: calc(var(--nav-h) + 40px) 56px 56px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 28s var(--ease) infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2%, -1%, 0); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 14, 11, 0.78) 0%, rgba(16, 14, 11, 0.28) 52%, rgba(16, 14, 11, 0.45) 100%),
    linear-gradient(180deg, rgba(16, 14, 11, 0.25) 0%, transparent 30%, rgba(16, 14, 11, 0.55) 100%);
}

.hero-copy,
.hero-aside {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 1.05;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 18px;
  max-width: 28ch;
  color: rgba(250, 247, 241, 0.82);
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid currentColor;
  background: transparent;
  letter-spacing: 0.18em;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-fill {
  background: var(--wood);
  border-color: var(--wood);
  color: var(--ink);
}

.btn-fill:hover {
  background: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.hero-aside {
  justify-self: end;
  align-self: end;
  text-align: right;
  max-width: 280px;
}

.hero-year {
  font-family: var(--display);
  font-size: clamp(72px, 12vw, 140px);
  line-height: 0.85;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-year-label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.32em;
  opacity: 0.75;
}

.hero-scroll {
  position: absolute;
  left: 56px;
  bottom: 28px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.4em;
  opacity: 0.7;
}

/* Sections */
.wrap {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}

.section,
.contact-band,
.manifesto,
.page-hero {
  scroll-margin-top: var(--nav-h);
}

.section {
  padding: 120px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-index {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--wood-deep);
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.2;
}

.section-more {
  font-size: 12px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

/* Manifesto split */
.manifesto {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 70vh;
}

.manifesto-visual {
  background: var(--forest);
  position: relative;
  overflow: hidden;
}

.manifesto-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  min-height: 520px;
}

.manifesto-body {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.manifesto-body h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.35;
  margin: 0 0 28px;
}

.motto {
  display: flex;
  gap: 28px;
  margin: 8px 0 32px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.4em;
  color: var(--wood);
}

.manifesto-body p {
  color: rgba(243, 238, 228, 0.78);
  max-width: 42ch;
}

.sign {
  margin-top: 36px;
  font-size: 13px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}

.fact:last-child { border-right: 0; }

.fact dt {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 10px;
}

.fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* Works mosaic */
.works-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  color: var(--ink);
}

.chip.is-on,
.chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.works-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 12px;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  display: block;
}

.work-card:nth-child(1) {
  grid-row: span 2;
  grid-column: 1;
}

.work-card:nth-child(2) {
  grid-column: 2 / span 2;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease), opacity 0.4s;
}

.work-card:hover img {
  transform: scale(1.1);
  opacity: 0.55;
}

.work-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 20px;
  transform: translateY(18px);
  opacity: 0.95;
  transition: transform 0.45s var(--ease);
  background: linear-gradient(transparent, rgba(16, 14, 11, 0.78));
}

.work-card:hover .work-meta {
  transform: translateY(0);
}

.work-year {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--wood);
  margin-bottom: 6px;
}

.work-title {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.works-lead {
  position: relative;
  display: block;
  min-height: 78vh;
  color: var(--white);
  overflow: hidden;
}

.works-lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 14, 11, 0.82) 0%, rgba(16, 14, 11, 0.28) 58%, rgba(16, 14, 11, 0.4) 100%),
    linear-gradient(180deg, rgba(16, 14, 11, 0.2) 0%, transparent 40%, rgba(16, 14, 11, 0.35) 100%);
}

.works-lead-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 72px) 56px 64px;
  max-width: 22em;
}

.works-lead h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0 0 32px;
  line-height: 1.05;
}

.works-lead-kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--wood);
  margin: 0 0 8px;
}

.works-lead h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 28px;
  line-height: 1.4;
}

.works-lead-go {
  letter-spacing: 0.22em;
  font-size: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.works-board {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 96px;
}

a.chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.works-index .works-mosaic {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(240px, 26vw);
  gap: 10px;
}

.works-index .work-card:nth-child(1),
.works-index .work-card:nth-child(2) {
  grid-column: auto;
  grid-row: auto;
}

.works-index .work-card:nth-child(6n + 1) {
  grid-column: span 7;
  grid-row: span 2;
}

.works-index .work-card:nth-child(6n + 2),
.works-index .work-card:nth-child(6n + 3) {
  grid-column: span 5;
}

.works-index .work-card:nth-child(6n + 4),
.works-index .work-card:nth-child(6n + 5),
.works-index .work-card:nth-child(6n + 6) {
  grid-column: span 4;
}

.works-index .work-meta {
  transform: none;
  opacity: 1;
}

.works-index .work-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.works-index .navigation.pagination {
  margin-top: 48px;
}

.works-index .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0;
}

.works-index .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  padding: 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.works-index .page-numbers.current,
.works-index a.page-numbers:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.works-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}

.work-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.work-row img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* News */
.news-list {
  display: grid;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.news-cat {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--wood-deep);
}

/* Contact band */
.contact-band {
  background: var(--forest);
  color: var(--paper);
  padding: 96px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.contact-band h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
}

.contact-phone {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.08em;
}

.contact-meta {
  opacity: 0.8;
  margin-top: 12px;
}

/* Page / single */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 12px 0 0;
  line-height: 1.2;
}

.entry {
  padding: 64px 0 120px;
}

.entry-body {
  font-size: 17px;
  max-width: 68ch;
}

.entry-body h2,
.entry-body h3 {
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.entry-body p {
  margin: 0 0 1.2em;
}

.gallery,
.entry-body .gallery,
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 32px 0;
}

.entry-body .gallery .gallery-item,
.entry-body .gallery br {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.entry-body .gallery br {
  display: none;
}

.entry-body p:empty,
.entry-body .wp-block-paragraph:empty {
  display: none;
}

.entry-body a {
  color: var(--wood-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-body a:hover {
  color: var(--ink);
}

.entry-body .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border: 1px solid var(--line-strong);
  padding: 16px 20px;
  margin: 0 0 14px;
  max-width: 42rem;
}

.entry-body .wp-block-file a:not(.wp-block-file__button) {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.06em;
  font-size: 18px;
}

.entry-body a.wp-block-file__button,
.entry-body .wp-block-file__button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  text-decoration: none !important;
  border-radius: 0;
  min-height: 44px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.entry-body a.wp-block-file__button:hover,
.entry-body .wp-block-file__button:hover {
  background: var(--wood-deep) !important;
  color: var(--paper) !important;
}

.single-work-hero {
  position: relative;
  height: 68vh;
  min-height: 420px;
  overflow: hidden;
  color: var(--white);
}

.single-work-hero + .page-hero {
  padding-top: 40px;
}

.single-work-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-work-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(16,14,11,.72));
}

.single-work-hero .wrap {
  position: absolute;
  inset: auto 0 48px;
  z-index: 1;
}

.single-work-hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
  max-width: 18ch;
}

/* Company table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 56px;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.company-table th {
  width: 180px;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
}

.timeline li {
  padding: 0 0 28px 28px;
  position: relative;
}

.timeline li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--wood);
  position: absolute;
  left: -4px;
  top: 8px;
}

.timeline .y {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Invoice */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.jobs-list {
  margin: 48px 0 80px;
  border-top: 1px solid var(--line);
}

.job-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.job-row h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.job-row p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-soft);
}

.job-label {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--wood-deep);
  margin: 8px 0 0;
}

.job-apply {
  padding: 8px 0 48px;
}

.job-apply .btn {
  margin: 8px 12px 8px 0;
}

.job-note {
  color: var(--muted);
  font-size: 14px;
}

.dl-card {
  border: 1px solid var(--line-strong);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

a.dl-card:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.site-footer .brand-ja {
  font-size: 22px;
}

.footer-copy {
  opacity: 0.55;
  font-size: 12px;
  letter-spacing: 0.12em;
  border-top: 1px solid rgba(243,238,228,.12);
  padding-top: 18px;
}

.site-footer a:hover {
  color: var(--wood);
}

.site-footer .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pagination {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

/* Forms */
.comment-form input,
.comment-form textarea,
.search-field,
.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
  outline: none;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-submit {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.js .reveal {
  animation: none;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.page-content,
.posts {
  padding: 48px 0 96px;
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: left;
  padding: 120px 0;
}

.not-found h1 {
  font-family: var(--display);
  font-size: 72px;
  margin: 0 0 12px;
}

/* Responsive */
@media (max-width: 980px) {
  .wrap { width: min(1240px, calc(100% - 40px)); }
  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 32px) 24px 80px;
  }
  .hero-aside {
    justify-self: start;
    text-align: left;
    margin-top: 36px;
  }
  .works-lead {
    min-height: 70vh;
  }
  .works-lead-copy {
    padding: calc(var(--nav-h) + 36px) 24px 40px;
    max-width: none;
  }
  .works-board {
    width: min(1440px, calc(100% - 32px));
  }
  .works-index .works-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .works-index .work-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .works-index .work-card:nth-child(3n + 1) {
    grid-column: span 2;
    min-height: 240px;
  }
  .hero-year { font-size: clamp(64px, 22vw, 96px); }
  .hero h1 { letter-spacing: 0.08em; }
  .single-work-hero { height: 46vh; min-height: 280px; }
  .manifesto,
  .contact-grid,
  .footer-grid,
  .facts,
  .work-row,
  .job-row,
  .news-item,
  .section-head {
    grid-template-columns: 1fr;
  }
  .works-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .work-card:nth-child(1),
  .work-card:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }
  .work-card:nth-child(1) { grid-column: span 2; min-height: 280px; }
  .nav-primary { display: none; }
  .nav-primary.is-open {
    display: block;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    color: var(--ink);
    padding: 24px;
  }
  .nav-primary.is-open ul {
    flex-direction: column;
    gap: 16px;
  }
  .menu-toggle { display: block; }
  .header-tel { display: none; }
  .site-header { padding: 0 18px; grid-template-columns: 1fr auto; }
  .manifesto-body { padding: 48px 28px; }
  .dl-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .work-card img,
  .reveal {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
