/*
Theme Name: Ochi Reisen
Theme URI: https://www.ochireisen.com/
Author: Ochi Reisen
Description: 越智麗川公式サイト用のWordPressテーマ。静的サイトのデザインを保ちながら、作品・お知らせ・固定ページを管理画面から更新しやすい構成にしています。
Version: 1.1.15
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ochireisen
*/

:root {
  --paper: #f7f2e9;
  --paper-deep: #eee1cf;
  --ink: #141313;
  --ink-soft: #36332f;
  --muted: #746b5f;
  --line: rgba(20, 19, 19, 0.16);
  --white: #fffaf2;
  --vermillion: #a33a2d;
  --moss: #536557;
  --indigo: #222b46;
  --shadow: 0 22px 70px rgba(20, 19, 19, 0.14);
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --container: min(1160px, calc(100vw - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 0;
  color: var(--white);
  transition: background 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(247, 242, 233, 0.91);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(132px, 12vw, 164px);
  height: auto;
  transition: filter 180ms ease;
}

.site-header.is-scrolled .brand-logo,
.site-header.nav-open .brand-logo {
  filter: invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.site-nav a {
  opacity: 0.82;
  transition: opacity 160ms ease;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-cta {
  border: 1px solid currentColor;
  padding: 9px 16px;
}

.inner-page .site-header,
.blog .site-header,
.archive .site-header,
.single .site-header {
  background: rgba(247, 242, 233, 0.9);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.inner-page .brand-logo,
.blog .brand-logo,
.archive .brand-logo,
.single .brand-logo {
  filter: invert(1);
}

.entry-content,
.post-list {
  max-width: 840px;
  margin: 96px auto 0;
}

.entry-content h1,
.post-list h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.18;
}

.entry-content a,
.post-card a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.post-list {
  display: grid;
  gap: 28px;
}

/* Block editor: wide / full alignment breakout inside the 840px entry column */
.entry-content .alignwide {
  max-width: var(--container);
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* Block editor: custom block styles (SWELL風の囲み/下線見出し/アウトラインボタン/罫線表) */
.wp-block-paragraph.is-style-ochi-box {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.is-style-ochi-underline {
  position: relative;
  padding-bottom: 14px;
}

.is-style-ochi-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--vermillion);
}

.wp-block-button.is-style-ochi-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.wp-block-button.is-style-ochi-outline .wp-block-button__link:hover {
  background: var(--ink);
  color: var(--white);
}

.wp-block-table.is-style-ochi-bordered table,
.wp-block-table.is-style-ochi-bordered th,
.wp-block-table.is-style-ochi-bordered td {
  border: 1px solid var(--line);
}

.wp-block-table.is-style-ochi-bordered th {
  background: var(--paper-deep);
}

.post-card {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.post-card time {
  color: var(--vermillion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.post-card p {
  margin: 0;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-image,
.hero-veil {
  position: absolute;
}

.hero-image {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-veil {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.78) 0%, rgba(12, 12, 12, 0.5) 42%, rgba(12, 12, 12, 0.12) 100%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.64) 0%, rgba(12, 12, 12, 0) 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 144px 0 188px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--vermillion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-band .eyebrow {
  color: #d58c7f;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
}

.hero h1 span {
  display: block;
}

.nowrap {
  white-space: nowrap;
}

.hero-lead {
  max-width: 650px;
  margin: 32px 0 0;
  color: rgba(255, 250, 242, 0.86);
  font-size: clamp(16px, 1.5vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 13px 22px;
  font-size: 14px;
  line-height: 1.35;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--vermillion);
  border-color: var(--vermillion);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

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

.hero .button {
  border-color: rgba(255, 250, 242, 0.82);
}

.hero .button-dark {
  background: var(--white);
  color: var(--ink);
}

.hero .button-dark:hover {
  background: var(--vermillion);
  border-color: var(--vermillion);
  color: var(--white);
}

.hero .button-ghost {
  color: var(--white);
}

.hero .button-ghost:hover {
  background: rgba(255, 250, 242, 0.14);
  color: var(--white);
}

.hero-facts {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  width: min(720px, calc(100vw - 48px));
  margin: 0;
  color: var(--white);
}

.hero-facts div {
  padding: 18px 20px 0 0;
}

.hero-facts dt {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 13px;
}

.section {
  padding: clamp(84px, 12vw, 150px) 0;
}

.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.section-index {
  margin: 0;
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.25;
}

.statement-title {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.3;
}

.statement-title span {
  display: block;
  overflow-wrap: normal;
  word-break: keep-all;
}

.single-line-title {
  font-size: clamp(32px, 4.2vw, 58px);
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.45;
}

.section-heading p,
.statement-copy,
.lesson-item p,
.process-step p,
.profile-copy p,
.contact-panel p {
  color: var(--muted);
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
}

.statement-copy p {
  margin: 0;
}

.statement-copy p + p {
  margin-top: 18px;
}

.dark-band {
  background: var(--ink);
  color: var(--white);
}

.dark-band .section-heading p {
  color: rgba(255, 250, 242, 0.7);
}

.dark-band .button-ghost,
.art-page .button-ghost {
  border-color: rgba(255, 250, 242, 0.5);
  color: var(--white);
}

.dark-band .button-ghost:hover,
.art-page .button-ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.art-page .button-dark {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.art-page .button-dark:hover {
  border-color: var(--vermillion);
  background: var(--vermillion);
  color: var(--white);
}

.home-page .works-carousel {
  display: none;
}

.works-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 250, 242, 0.16);
  padding-top: clamp(24px, 3vw, 38px);
}

.works-entry p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 242, 0.72);
}

.work-exhibition {
  margin: 0 0 clamp(44px, 6vw, 76px);
}

.work-exhibition__wall {
  position: relative;
  display: grid;
  min-height: clamp(320px, 42vw, 560px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.12);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 250, 242, 0.18), rgba(255, 250, 242, 0) 34%),
    linear-gradient(180deg, #23201e 0%, #171514 68%, #100f0f 100%);
  box-shadow: inset 0 -80px 110px rgba(0, 0, 0, 0.35);
}

.work-exhibition__wall::after {
  position: absolute;
  right: 8%;
  bottom: 0;
  left: 8%;
  height: 18%;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.02), rgba(255, 250, 242, 0.08));
  content: "";
  transform: perspective(600px) rotateX(62deg);
  transform-origin: bottom;
}

.work-exhibition img {
  position: relative;
  z-index: 1;
  width: min(78%, 860px);
  height: auto;
  border: 1px solid rgba(255, 250, 242, 0.18);
  background: #0d0d0d;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    0 0 0 18px rgba(255, 250, 242, 0.018);
}

.work-exhibition figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  color: rgba(255, 250, 242, 0.76);
  font-family: var(--serif);
}

.work-exhibition figcaption span {
  color: #d58c7f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-exhibition figcaption b {
  font-size: 18px;
  font-weight: 400;
}

.works-carousel {
  position: relative;
  margin-inline: calc((100vw - var(--container)) / -2);
}

.works-gallery {
  display: grid;
  grid-auto-columns: clamp(176px, 18vw, 262px);
  grid-auto-flow: column dense;
  grid-template-rows: repeat(2, clamp(142px, 14vw, 198px));
  gap: clamp(14px, 1.8vw, 24px);
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 12px max(64px, calc((100vw - var(--container)) / 2 + 64px)) 34px;
  scroll-behavior: smooth;
  scroll-padding-inline: max(64px, calc((100vw - var(--container)) / 2 + 64px));
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255, 250, 242, 0.34) rgba(255, 250, 242, 0.08);
  scrollbar-width: thin;
}

.works-gallery::-webkit-scrollbar {
  height: 8px;
}

.works-gallery::-webkit-scrollbar-track {
  background: rgba(255, 250, 242, 0.08);
}

.works-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 250, 242, 0.34);
}

.works-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 999px;
  background: rgba(20, 19, 19, 0.78);
  color: var(--paper);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.works-arrow:hover,
.works-arrow:focus-visible {
  border-color: rgba(255, 250, 242, 0.7);
  background: rgba(157, 61, 56, 0.92);
  transform: translateY(-50%) scale(1.04);
}

.works-arrow--prev {
  left: max(16px, calc((100vw - var(--container)) / 2));
}

.works-arrow--next {
  right: max(16px, calc((100vw - var(--container)) / 2));
}

.work-photo {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(255, 250, 242, 0.14);
  background: rgba(255, 250, 242, 0.055);
  padding: clamp(8px, 1vw, 14px);
  scroll-snap-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.work-photo figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 6;
  background: rgba(20, 19, 19, 0.68);
  color: rgba(255, 250, 242, 0.78);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 7px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.work-photo:hover,
.work-photo:focus-within {
  z-index: 5;
  border-color: rgba(255, 250, 242, 0.42);
  background: rgba(255, 250, 242, 0.1);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.46);
  transform: scale(1.05);
}

.work-photo:hover figcaption,
.work-photo:focus-within figcaption {
  opacity: 1;
}

.work-has-set {
  position: relative;
  overflow: visible;
}

.work-has-set::after {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 120;
  width: fit-content;
  max-width: calc(100% - 28px);
  background: rgba(17, 16, 16, 0.82);
  color: rgba(255, 250, 242, 0.9);
  content: "心に伝ふ10点";
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.45;
  padding: 8px 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-has-set:hover::after,
.work-has-set:focus::after,
.work-has-set:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.work-has-set .work-primary-image {
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-set {
  position: absolute;
  inset: clamp(8px, 1.4vw, 18px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(5px, 0.8vw, 10px);
  border: 1px solid rgba(255, 250, 242, 0.18);
  background: rgba(17, 16, 16, 0.86);
  padding: clamp(7px, 1vw, 12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-set img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: rgba(255, 250, 242, 0.94);
  padding: 4px;
  filter: saturate(0.98) contrast(1.03);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.work-has-set:hover .work-primary-image,
.work-has-set:focus .work-primary-image,
.work-has-set:focus-within .work-primary-image {
  opacity: 0.08;
}

.work-has-set:hover .work-set,
.work-has-set:focus .work-set,
.work-has-set:focus-within .work-set {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.work-set img:hover {
  z-index: 4;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44);
  transform: scale(1.18);
}

.work-has-set figcaption {
  display: none;
}

.work-has-set:hover figcaption,
.work-has-set:focus figcaption,
.work-has-set:focus-within figcaption {
  display: none;
}

.work-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.work-panorama {
  grid-column: span 2;
  grid-row: span 1;
}

.work-square {
  grid-column: span 1;
  grid-row: span 2;
}

.work-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.work-slim {
  grid-column: span 1;
  grid-row: span 2;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.lesson-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.lesson-links .text-link {
  margin-top: 22px;
}

.text-link:hover {
  color: var(--vermillion);
}

.lesson-list {
  display: grid;
  gap: 18px;
}

.lesson-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.lesson-item:last-child {
  border-bottom: 1px solid var(--line);
}

.lesson-item span {
  color: var(--vermillion);
  font-family: var(--serif);
  font-size: 20px;
}

.lesson-schedule {
  display: grid;
  grid-template-columns: minmax(260px, max-content) minmax(120px, 1fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: baseline;
}

.lesson-schedule b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
}

.lesson-schedule p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.55;
  white-space: nowrap;
}

.muted-band {
  background: linear-gradient(180deg, var(--paper-deep), #f5ead9);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-step {
  min-height: 280px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.62);
  padding: 30px;
}

.process-step span {
  display: block;
  margin-bottom: 42px;
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(360px, 1fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.profile-media {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 110px;
}

.portrait {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  overflow: hidden;
  margin: 0;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.portrait-main {
  min-height: 520px;
}

.portrait-sub {
  min-height: 260px;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 1;
  filter: none;
  transform: scale(1.02);
}

.portrait-main img {
  object-position: center;
}

.portrait-sub img {
  object-position: 58% center;
  opacity: 0.82;
  filter: grayscale(0.12) contrast(1.08);
  transform: scale(1.04);
}

.portrait::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 19, 19, 0.1), rgba(20, 19, 19, 0.48)),
    linear-gradient(90deg, rgba(20, 19, 19, 0.32), rgba(20, 19, 19, 0));
  content: "";
}

.portrait-main::after {
  display: none;
}

.profile-copy .lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.65;
}

.profile-history {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.profile-history h3 {
  margin-bottom: 18px;
  font-size: clamp(20px, 2vw, 28px);
}

.profile-history dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-history div {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.profile-history div:first-child {
  border-top: 0;
}

.profile-history dt,
.profile-history dd {
  margin: 0;
}

.profile-history dt {
  color: var(--vermillion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.7;
}

.profile-history dd {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.contact {
  padding-top: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 36px;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(32px, 6vw, 64px);
  box-shadow: var(--shadow);
}

.contact-panel > div {
  min-width: 0;
}

.contact-panel h2 {
  font-size: clamp(28px, 3.2vw, 46px);
}

.contact-panel h2 span {
  display: inline-block;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: var(--container);
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer__copyright {
  opacity: 0.76;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .site-header {
    padding-right: 24px;
    padding-left: 24px;
  }

  .nav-toggle {
    position: relative;
    z-index: 60;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .site-header.nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(24deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    transform: translateY(-4px) rotate(-24deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    width: 100vw;
    height: 100svh;
    min-height: 100vh;
    align-content: center;
    justify-items: start;
    gap: 24px;
    background: var(--paper);
    color: var(--ink);
    padding: 120px 32px 48px;
    font-family: var(--serif);
    font-size: 34px;
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .nav-cta {
    font-family: var(--sans);
    font-size: 18px;
  }

  .hero-content {
    padding-top: 128px;
    padding-bottom: 214px;
  }

  .hero-facts {
    left: 24px;
    right: 24px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .hero-facts div {
    padding: 12px 0;
  }

  .statement-grid,
  .two-column,
  .profile-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .profile-media {
    position: static;
  }

  .portrait-main {
    min-height: 460px;
  }

  .portrait-sub {
    min-height: 220px;
  }

  .works-gallery {
    grid-auto-columns: clamp(160px, 31vw, 230px);
    grid-template-rows: repeat(2, 136px);
  }

  .work-wide,
  .work-panorama {
    grid-column: span 2;
    grid-row: span 1;
  }

  .work-square,
  .work-tall {
    grid-column: span 1;
    grid-row: span 2;
  }

  .work-slim {
    grid-column: span 1;
    grid-row: span 2;
  }

  .work-exhibition__wall {
    min-height: 360px;
  }

  .work-exhibition img {
    width: min(88%, 760px);
  }

  .statement-grid {
    gap: 28px;
  }

  .sticky-heading {
    position: static;
  }

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

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 32px, 1160px);
  }

  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand-logo {
    width: 132px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-veil {
    background:
      linear-gradient(90deg, rgba(12, 12, 12, 0.82), rgba(12, 12, 12, 0.38)),
      linear-gradient(0deg, rgba(12, 12, 12, 0.76), rgba(12, 12, 12, 0.04) 64%);
  }

  .hero-content {
    padding-top: 108px;
    padding-bottom: 260px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .contact-panel {
    gap: 28px;
    padding: 28px 24px;
  }

  .contact-panel .single-line-title {
    font-size: clamp(31px, 8.4vw, 38px);
    line-height: 1.25;
    overflow-wrap: normal;
    white-space: normal;
    word-break: keep-all;
  }

  .contact-panel h2 span {
    display: block;
  }

  .contact-panel p {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
  }

  .button {
    width: 100%;
  }

  .works-gallery {
    grid-auto-columns: minmax(168px, 74vw);
    grid-template-rows: repeat(2, 124px);
    padding: 8px 52px 28px;
    scroll-padding-inline: 52px;
  }

  .work-wide,
  .work-panorama,
  .work-square,
  .work-tall {
    grid-column: span 1;
    grid-row: span 2;
  }

  .work-slim {
    grid-column: span 1;
    grid-row: span 2;
  }

  .work-photo:hover,
  .work-photo:focus-within {
    transform: scale(1.03);
  }

  .works-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .works-arrow--prev {
    left: 8px;
  }

  .works-arrow--next {
    right: 8px;
  }

  .work-exhibition__wall {
    min-height: 260px;
  }

  .work-exhibition figcaption {
    display: grid;
  }

  .lesson-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lesson-schedule {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .lesson-schedule b {
    font-size: clamp(18px, 5.4vw, 22px);
  }

  .lesson-schedule p {
    font-size: clamp(13px, 3.8vw, 15px);
  }

  .profile-history div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .process-step {
    min-height: 0;
  }

  .portrait {
    min-height: 420px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.art-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 250, 242, 0.12), transparent 32vw),
    linear-gradient(180deg, #151313 0%, #0f0e0e 46%, #191614 100%);
  color: var(--white);
}

.art-page .site-header {
  border-bottom: 1px solid rgba(255, 250, 242, 0.1);
  background: rgba(15, 14, 14, 0.58);
  color: var(--white);
}

.gallery-entrance {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(280px, 0.44fr) minmax(420px, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(120px, 14vw, 170px) max(24px, calc((100vw - var(--container)) / 2)) clamp(64px, 8vw, 110px);
}

.gallery-entrance__text {
  max-width: 430px;
}

.gallery-entrance h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(68px, 10vw, 150px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

.gallery-entrance__text p:not(.eyebrow) {
  margin: 26px 0 30px;
  color: rgba(255, 250, 242, 0.72);
}

.gallery-main {
  position: relative;
  margin: 0;
}

.gallery-main::before {
  position: absolute;
  top: -12%;
  right: 10%;
  left: 10%;
  height: 24%;
  background: radial-gradient(ellipse at center, rgba(255, 250, 242, 0.22), transparent 68%);
  content: "";
  filter: blur(6px);
}

.gallery-main img {
  position: relative;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 250, 242, 0.22);
  background: #050505;
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.52),
    0 0 0 20px rgba(255, 250, 242, 0.018);
}

.gallery-main figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  color: rgba(255, 250, 242, 0.74);
  font-family: var(--serif);
}

.gallery-main figcaption span,
.gallery-room-title .eyebrow {
  color: #d58c7f;
}

.gallery-floor {
  padding: clamp(80px, 10vw, 140px) max(24px, calc((100vw - var(--container)) / 2));
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.045), transparent 180px),
    #111010;
}

.gallery-room-title {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 86px);
}

.gallery-room-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6.2vw, 94px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.16;
}

.gallery-room-title p:not(.eyebrow) {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 250, 242, 0.64);
}

.art-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: stretch;
}

.art-piece {
  position: relative;
  display: grid;
  min-height: clamp(260px, 28vw, 420px);
  place-items: center;
  margin: 0;
  border: 1px solid rgba(255, 250, 242, 0.13);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 250, 242, 0.12), transparent 42%),
    rgba(255, 250, 242, 0.055);
  padding: clamp(18px, 2.4vw, 34px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.art-piece img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.96) contrast(1.04);
}

.art-piece figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  color: rgba(255, 250, 242, 0.78);
  font-family: var(--serif);
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.art-piece:hover,
.art-piece:focus-within {
  z-index: 3;
  border-color: rgba(255, 250, 242, 0.42);
  background: rgba(255, 250, 242, 0.085);
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.54);
  transform: scale(1.045);
}

.art-piece:hover figcaption,
.art-piece:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.art-piece.work-has-set {
  min-height: clamp(360px, 42vw, 620px);
}

.art-piece.work-has-set .work-set {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.art-piece.work-has-set figcaption {
  display: none;
}

.art-piece.work-has-set:hover figcaption,
.art-piece.work-has-set:focus figcaption,
.art-piece.work-has-set:focus-within figcaption {
  display: none;
}

.art-piece--wide {
  grid-column: span 6;
}

.art-piece--panorama {
  grid-column: span 8;
  min-height: clamp(210px, 20vw, 310px);
}

.art-piece--square {
  grid-column: span 4;
}

.art-piece--tall {
  grid-column: span 4;
  min-height: clamp(380px, 42vw, 560px);
}

.art-piece--slim {
  grid-column: span 3;
  min-height: clamp(420px, 46vw, 610px);
}

.gallery-return {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2)) clamp(80px, 10vw, 130px);
  background: #111010;
}

@media (max-width: 900px) {
  .works-entry,
  .gallery-entrance,
  .gallery-room-title {
    grid-template-columns: 1fr;
  }

  .works-entry {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-entrance {
    min-height: auto;
  }

  .art-piece--wide,
  .art-piece--panorama,
  .art-piece--square,
  .art-piece--tall {
    grid-column: span 6;
  }

  .art-piece--slim {
    grid-column: span 4;
  }

  .work-set {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-entrance {
    padding-top: 112px;
  }

  .gallery-main figcaption,
  .gallery-return {
    display: grid;
  }

  .art-wall {
    grid-template-columns: 1fr;
  }

  .art-piece,
  .art-piece--wide,
  .art-piece--panorama,
  .art-piece--square,
  .art-piece--tall,
  .art-piece--slim {
    grid-column: auto;
    min-height: 360px;
  }

  .art-piece--wide,
  .art-piece--panorama {
    min-height: 240px;
  }

  .art-piece:hover,
  .art-piece:focus-within {
    transform: scale(1.02);
  }

  .work-has-set .work-primary-image {
    opacity: 0.12;
  }

  .work-has-set .work-set {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .work-photo.work-has-set {
    min-height: 420px;
  }

  .work-set img:hover {
    transform: none;
  }
}

.gallery-passage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2)) clamp(70px, 8vw, 118px);
  background: #111010;
}

.gallery-passage__item {
  min-height: 230px;
  border: 1px solid rgba(255, 250, 242, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.06), rgba(255, 250, 242, 0.025)),
    #171514;
  padding: clamp(24px, 3vw, 42px);
}

.gallery-passage__item span {
  color: #d58c7f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-passage__item h2 {
  margin: 22px 0 14px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.35;
}

.gallery-passage__item p {
  margin: 0;
  color: rgba(255, 250, 242, 0.66);
}

.contact-page {
  background:
    linear-gradient(90deg, rgba(163, 58, 45, 0.035), transparent 32%),
    var(--paper);
}

.contact-page .site-header {
  background: rgba(247, 242, 233, 0.78);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.contact-page .brand-logo {
  filter: invert(1);
}

.contact-hero {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 0.7fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
  padding: clamp(118px, 12vw, 168px) max(24px, calc((100vw - var(--container)) / 2)) clamp(70px, 9vw, 120px);
}

.contact-hero__text {
  max-width: 720px;
  min-width: 0;
}

.contact-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.6vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  overflow-wrap: normal;
  word-break: keep-all;
}

.contact-hero h1 span {
  display: block;
}

.contact-hero__text p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--ink-soft);
}

.contact-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.contact-hero__image {
  position: relative;
  min-height: clamp(460px, 58vw, 700px);
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 36px 90px rgba(20, 19, 19, 0.2);
}

.contact-hero__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(20, 19, 19, 0.28));
  content: "";
}

.contact-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-intent {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 92px);
  padding: clamp(76px, 10vw, 128px) max(24px, calc((100vw - var(--container)) / 2));
  background: #f0e8dc;
}

.contact-intent__heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1.18;
}

.contact-intent__grid {
  display: grid;
  gap: 18px;
}

.intent-card {
  display: grid;
  grid-template-columns: 70px 0.42fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: baseline;
  border-top: 1px solid rgba(20, 19, 19, 0.17);
  padding: 26px 0;
}

.intent-card span {
  color: var(--vermillion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.intent-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.28;
}

.intent-card p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-final {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: clamp(76px, 10vw, 128px) max(24px, calc((100vw - var(--container)) / 2));
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 250, 242, 0.12), transparent 38vw),
    var(--ink);
  color: var(--white);
  text-align: center;
}

.contact-final p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 250, 242, 0.74);
}

.contact-final .button-dark {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.contact-final .button-dark:hover {
  border-color: var(--vermillion);
  background: var(--vermillion);
  color: var(--white);
}

.official-form-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(420px, 1fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: start;
  padding: clamp(76px, 10vw, 136px) max(24px, calc((100vw - var(--container)) / 2));
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.72), rgba(255, 250, 242, 0.94)),
    var(--paper);
}

.official-form-heading {
  position: sticky;
  top: 110px;
}

.official-form-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 82px);
  font-weight: 400;
  line-height: 1.14;
}

.official-form-heading p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--ink-soft);
}

.official-contact-form {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(20, 19, 19, 0.14);
  background: rgba(255, 250, 242, 0.62);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 28px 80px rgba(20, 19, 19, 0.08);
}

.official-contact-form--cf7 .wpcf7,
.official-contact-form--cf7 .wpcf7 form {
  display: grid;
  gap: 22px;
}

.official-contact-form--cf7 .wpcf7 p {
  margin: 0;
}

.official-contact-form--cf7 .wpcf7-form-control-wrap {
  display: block;
}

.official-contact-form--cf7 .wpcf7-list-item {
  margin: 0;
}

.official-contact-form--cf7 .wpcf7-list-item label {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
}

.official-contact-form--cf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: var(--vermillion);
  font-size: 13px;
  line-height: 1.5;
}

.official-contact-form--cf7 .wpcf7-response-output {
  margin: 0;
  border: 1px solid rgba(20, 19, 19, 0.14);
  padding: 14px 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.official-contact-form--cf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
}

.form-message {
  grid-column: 2;
  margin: 0;
  border: 1px solid rgba(20, 19, 19, 0.14);
  background: rgba(255, 250, 242, 0.72);
  padding: 18px 22px;
  color: var(--ink-soft);
}

.form-message--success {
  border-color: rgba(83, 101, 87, 0.32);
}

.form-message--error {
  border-color: rgba(163, 58, 45, 0.34);
  color: var(--vermillion);
}

.form-row {
  display: grid;
  gap: 10px;
}

.form-row--hidden {
  position: absolute;
  left: -9999px;
}

.form-row label,
.form-consent {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}

.form-row label span {
  display: inline-flex;
  margin-left: 8px;
  color: var(--vermillion);
  font-family: var(--sans);
  font-size: 12px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(20, 19, 19, 0.28);
  border-radius: 0;
  background: rgba(255, 250, 242, 0.74);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  padding: 14px 12px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--vermillion);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 19, 19, 0.08);
  outline: 0;
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid rgba(20, 19, 19, 0.12);
  padding-top: 18px;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--vermillion);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

.form-actions p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.classroom-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
  min-height: 100svh;
  padding: clamp(118px, 12vw, 168px) max(24px, calc((100vw - var(--container)) / 2)) clamp(70px, 9vw, 120px);
  background:
    linear-gradient(90deg, rgba(163, 58, 45, 0.04), transparent 35%),
    var(--paper);
}

.classroom-hero__text {
  min-width: 0;
}

.classroom-hero h1,
.classroom-gallery__heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6.8vw, 108px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.classroom-hero h1 span,
.classroom-gallery__heading h2 span {
  display: inline-block;
}

.classroom-hero__text p:not(.eyebrow),
.classroom-gallery__heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--ink-soft);
}

.classroom-hero__image {
  height: clamp(380px, 48vw, 680px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 36px 90px rgba(20, 19, 19, 0.18);
}

.classroom-hero__image img,
.classroom-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.classroom-gallery {
  padding: clamp(76px, 10vw, 128px) max(24px, calc((100vw - var(--container)) / 2));
  background: #f0e8dc;
}

.classroom-gallery__heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 6vw, 76px);
}

.classroom-gallery__heading h2 {
  font-size: clamp(36px, 5.4vw, 82px);
}

.classroom-gallery__heading p:not(.eyebrow) {
  margin: 0;
}

.classroom-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}

.classroom-photo {
  display: block;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 24px 70px rgba(20, 19, 19, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.classroom-photo:hover {
  box-shadow: 0 34px 86px rgba(20, 19, 19, 0.2);
  transform: translateY(-4px);
}

.classroom-photo--wide {
  grid-column: span 6;
}

.classroom-photo--tall {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.classroom-photo--panorama {
  grid-column: span 8;
  aspect-ratio: 16 / 7;
}

.classroom-photo--square {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}

.exhibition-hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.08), transparent 36%),
    #111010;
  color: var(--white);
}

.exhibition-hero .classroom-hero__text p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.68);
}

.exhibition-gallery {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.04), transparent 180px),
    #111010;
  color: var(--white);
}

.exhibition-gallery .classroom-gallery__heading p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.64);
}

.exhibition-gallery .classroom-photo {
  border: 1px solid rgba(255, 250, 242, 0.1);
  background: rgba(255, 250, 242, 0.05);
}

.exhibition-gallery-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 56px);
}

@media (max-width: 900px) {
  .gallery-passage,
  .contact-hero,
  .contact-intent,
  .official-form-section,
  .classroom-hero,
  .classroom-gallery__heading {
    grid-template-columns: 1fr;
  }

  .form-message {
    grid-column: auto;
  }

  .contact-hero {
    min-height: auto;
  }

  .official-form-heading {
    position: static;
  }

  .classroom-hero {
    min-height: auto;
  }

  .intent-card {
    grid-template-columns: 52px 1fr;
  }

  .intent-card p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding-top: 108px;
    padding-inline: 20px;
  }

  .classroom-hero {
    padding-top: 108px;
    padding-inline: 20px;
  }

  .classroom-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .contact-hero h1 {
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.2;
  }

  .contact-hero h1 span,
  .classroom-hero h1 span,
  .classroom-gallery__heading h2 span {
    display: block;
  }

  .gallery-passage__item {
    min-height: 0;
  }

  .contact-page-actions {
    display: grid;
  }

  .form-actions {
    display: grid;
    justify-content: stretch;
  }

  .contact-hero__image {
    min-height: 420px;
  }

  .classroom-hero__image {
    height: 420px;
  }

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

  .classroom-photo,
  .classroom-photo--wide,
  .classroom-photo--tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .classroom-photo--tall {
    aspect-ratio: 3 / 4;
  }

  .intent-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intent-card p {
    grid-column: auto;
  }
}
