/* Page sections. */

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-art, .hero-piece { position: absolute; inset: 0; }
.hero-art { z-index: -2; background: var(--wall-2); }
.hero-piece { opacity: 0; }
.hero-piece.is-on, .hero-piece.is-under { opacity: 1; }
.hero-piece.is-on { z-index: 2; }
.hero-piece picture, .hero-piece img { width: 100%; height: 100%; }
.hero-piece img { object-fit: cover; }
[data-motion="full"] .hero-piece.is-on img { animation: drift 16s ease-out both; }
@keyframes drift { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .58) 38%, rgba(var(--scrim), 0) 72%), linear-gradient(0deg, rgba(var(--scrim), 1) 0%, rgba(var(--scrim), 0) 36%), linear-gradient(180deg, rgba(var(--scrim), .6) 0%, rgba(var(--scrim), 0) 20%); }
.hero-tide { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: -1; pointer-events: none; }
.hero-copy { padding-top: calc(var(--head) + 40px); padding-bottom: clamp(90px, 15vh, 170px); }
.hero h1 { max-width: 13ch; }
.hero h1 .line { overflow: hidden; padding-bottom: .08em; }
.hero-things { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--accent); }
.hero-things span { display: inline-flex; align-items: center; gap: 10px; }
.hero-things .ico { width: 30px; height: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }
.hero-placard { position: absolute; right: var(--gutter); bottom: 30px; text-align: right; font-family: var(--serif); font-size: 1.05rem; }
.hero-placard a { display: none; }
.hero-placard a.is-on { display: block; }
.hero-placard a:hover { color: var(--accent); }
.hero-placard span { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(0deg, rgba(var(--scrim), 1) 4%, rgba(var(--scrim), .72) 46%, rgba(var(--scrim), .1) 78%), linear-gradient(180deg, rgba(var(--scrim), .6), rgba(var(--scrim), 0) 18%); }
  .hero-placard { position: static; text-align: left; padding: 0 var(--gutter) 26px; margin-top: -60px; }
}

/* ---------- the leaf story ---------- */
.leaf-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(30px, 7vw, 120px); align-items: start; padding-block: clamp(80px, 12vw, 180px); }
.leaf-art { position: sticky; top: calc(var(--head) + 30px); }
.leaf-art .hang { transform: rotate(-1.6deg); }
.leaf-poem h2 { font-style: italic; margin-bottom: 1.1em; }
@media (max-width: 860px) {
  .leaf-story { grid-template-columns: 1fr; }
  .leaf-art { position: static; max-width: 420px; }
}

/* ---------- statement ---------- */
.statement { padding-block: clamp(40px, 6vw, 90px); }
.statement-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 110px); padding-top: clamp(40px, 6vw, 90px); }
.statement-lead { font-family: var(--serif); font-size: clamp(1.7rem, 3.3vw, 2.9rem); line-height: 1.16; }
.deeds { display: grid; gap: 30px; }
.deeds li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.deeds .ico { width: 38px; height: 38px; color: var(--water); stroke-width: 1.2; }
.deeds h3 { margin-bottom: 4px; }
.deeds p { color: var(--ink-2); }
.statement > .wrap > .verse-large { max-width: 22ch; margin: clamp(40px, 6vw, 90px) 0 34px; }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }

/* ---------- tide table (rooms) ---------- */
.rooms-home { padding-top: clamp(60px, 9vw, 130px); }
.rooms-home h2 { margin-bottom: clamp(20px, 3vw, 40px); }
.tide { position: relative; isolation: isolate; padding-block: clamp(10px, 2vw, 30px) clamp(40px, 6vw, 90px); }
.tide-wall { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tide-flood { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease), transform 1.4s var(--ease); transform: scale(1.06); }
.tide-flood picture, .tide-flood img { width: 100%; height: 100%; }
.tide-flood img { object-fit: cover; }
.tide-flood.is-on { opacity: .5; transform: none; }
.tide-wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--scrim), .92), rgba(var(--scrim), .35) 60%, rgba(var(--scrim), .7)), linear-gradient(180deg, var(--wall), transparent 16%, transparent 84%, var(--wall)); }
.tide-list a { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 20px; padding: clamp(12px, 1.7vw, 22px) 0; border-bottom: 1px solid var(--line); }
.tide-name { font-family: var(--serif); font-size: clamp(1.55rem, 4.3vw, 3.9rem); line-height: 1.04; letter-spacing: -.015em; transition: transform .5s var(--ease), color .3s, font-style 0s; }
.tide-count { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; transition: color .3s; }
.tide-strip { display: none; }
@media (hover: hover) {
  .tide-list:hover a:not(:hover) .tide-name { color: var(--ink-3); }
  .tide-list a:hover .tide-name, .tide-list a:focus-visible .tide-name { transform: translateX(clamp(10px, 2vw, 34px)); font-style: italic; color: var(--ink); }
  .tide-list a:hover .tide-count, .tide-list a:focus-visible .tide-count { color: var(--accent); }
}
@media (hover: none), (max-width: 700px) {
  .tide-wall { display: none; }
  .tide-list a { grid-template-columns: 1fr; gap: 6px; padding: 16px 0 18px; }
  .tide-strip { display: block; order: -1; height: clamp(84px, 24vw, 150px); overflow: hidden; border-radius: var(--leaf); margin-bottom: 8px; }
  .tide-strip picture, .tide-strip img { width: 100%; height: 100%; }
  .tide-strip img { object-fit: cover; }
}

/* ---------- page heads ---------- */
.page-head { padding-top: calc(var(--head) + clamp(50px, 9vw, 130px)); padding-bottom: clamp(30px, 5vw, 70px); position: relative; }
.page-head h1 { max-width: 17ch; }
.page-head h1 .line { overflow: hidden; padding-bottom: .08em; }
.page-lead { max-width: 56ch; margin-top: 22px; font-size: 1.16rem; color: var(--ink-2); }
.page-count { margin-top: 18px; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.page-head-center { text-align: center; display: grid; justify-items: center; min-height: 72vh; align-content: center; }
.page-head-center .btn { margin-top: 30px; }

/* ---------- a room: the hang ---------- */
.wall { --rowh: clamp(160px, 17vw, 290px); display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(26px, 3.4vw, 60px) clamp(16px, 2.4vw, 40px); padding: clamp(10px, 2vw, 30px) var(--gutter) 0; }
.wall .hang { flex: var(--r) 1 calc(var(--r) * var(--rowh)); min-width: 0; max-width: 100%; }
.wall .hang:nth-child(4n+2) { margin-top: clamp(0px, 2.4vw, 44px); }
.wall .hang:nth-child(5n+4) { margin-top: clamp(0px, 1.2vw, 20px); }
.wall .hang-wide { flex: 0 0 100%; padding-inline: clamp(0px, 8vw, 150px); margin-block: clamp(10px, 3vw, 50px) !important; }
.wall-end { flex: 1000 1 0; height: 0; }
@media (max-width: 620px) {
  .wall { --rowh: 46vw; }
  .wall .hang { margin-top: 0 !important; }
  .wall .hang-wide { padding-inline: 0; }
}
.next-room { padding-top: clamp(70px, 10vw, 150px); }
.next-room .tide-line { margin-bottom: 40px; }
.next-room-link { display: inline-flex; align-items: center; gap: 22px; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 4.2rem); line-height: 1.05; }
.next-room-link .ico { width: 44px; height: 44px; color: var(--accent); transition: transform .4s var(--ease); }
.next-room-link:hover span { font-style: italic; }
.next-room-link:hover .ico { transform: translateX(12px); }

/* ---------- a piece on its own page ---------- */
.piece-page { position: relative; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 70px); padding: calc(var(--head) + 20px) var(--gutter) 0; isolation: isolate; overflow: clip; }
.piece-glow { z-index: -1; }
.piece-stage { position: sticky; top: calc(var(--head) + 16px); height: calc(100svh - var(--head) - 40px); display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.piece-stage picture { display: contents; }
.piece-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: var(--shadow); cursor: zoom-in; will-change: transform; user-select: none; -webkit-user-drag: none; }
.piece-stage.is-zoomed { touch-action: none; }
.piece-zoom { position: absolute; right: 8px; bottom: 8px; }
.piece-placard { align-self: center; padding-block: 40px; }
.piece-placard h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.piece-words { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; margin-top: 22px; color: var(--ink); }
.piece-medium { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.piece-medium .ico { color: var(--water); }
.piece-actions { margin-top: 34px; }
.piece-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--serif); }
.piece-nav a { display: flex; align-items: center; gap: 10px; color: var(--ink-2); min-width: 0; }
.piece-nav a:last-child { justify-content: flex-end; text-align: right; }
.piece-nav a:hover { color: var(--accent); }
.piece-nav .ico { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .piece-page { grid-template-columns: 1fr; }
  .piece-stage { position: relative; top: 0; height: auto; max-height: 76svh; }
  .piece-stage img { max-height: 76svh; }
  .piece-placard { padding-block: 10px 0; }
}

/* ---------- poetry ---------- */
.poem-home { position: relative; margin-top: clamp(60px, 9vw, 130px); padding-block: clamp(70px, 10vw, 150px); background: radial-gradient(60% 80% at 80% 50%, color-mix(in srgb, var(--c2) 26%, transparent), transparent 70%), var(--wall-2); }
.poem-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.poem-home h2 { margin-bottom: 30px; max-width: 16ch; }
@media (max-width: 860px) { .poem-home-grid { grid-template-columns: 1fr; } }
.poem { position: relative; isolation: isolate; padding-block: clamp(80px, 12vw, 170px); overflow: hidden; }
.poem-art { position: absolute; inset: 0; z-index: -1; }
.poem-art picture, .poem-art img { width: 100%; height: 100%; }
.poem-art img { object-fit: cover; opacity: .42; }
.poem-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--scrim), .94) 0%, rgba(var(--scrim), .7) 46%, rgba(var(--scrim), .2) 100%), linear-gradient(180deg, var(--wall), transparent 14%, transparent 86%, var(--wall)); }
.poem h2 { font-style: italic; margin-bottom: 1em; max-width: 18ch; }
.poem .verse { max-width: 34ch; }
.poem-note, .poem-credit { margin-top: 22px; color: var(--ink-2); font-size: .94rem; max-width: 46ch; }
.poem-made { display: grid; grid-template-columns: minmax(0, .7fr) 1fr; gap: clamp(30px, 7vw, 110px); align-items: center; padding-top: clamp(60px, 9vw, 130px); }
.poem-made-photo { transform: rotate(-2deg); box-shadow: var(--shadow); border-radius: 2px; overflow: hidden; max-width: 420px; }
.poem-made h2 { margin-bottom: 20px; }
.poem-made p { color: var(--ink-2); max-width: 50ch; }
.poem-made p + p { margin-top: 26px; }
@media (max-width: 860px) { .poem-made { grid-template-columns: 1fr; } }

/* ---------- artists ---------- */
.artists-home { padding-top: clamp(70px, 10vw, 150px); }
.artist-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 60px); margin-block: clamp(30px, 4vw, 54px); }
.artist-row h3 { margin-top: 18px; }
.artist-row p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 700px) { .artist-row { grid-template-columns: 1fr; } .artist-row li { display: grid; grid-template-columns: 104px 1fr; column-gap: 18px; align-items: center; } .artist-row .cameo { grid-row: span 2; } .artist-row h3 { margin-top: 0; align-self: end; } .artist-row p { align-self: start; } }
.artist-list { display: grid; gap: clamp(50px, 8vw, 110px); padding-top: clamp(20px, 4vw, 50px); }
.artist { display: grid; grid-template-columns: auto minmax(0, 60ch); gap: clamp(24px, 6vw, 90px); align-items: center; }
.artist-flip { justify-content: end; }
.artist-flip .artist-face { order: 2; }
.artist-copy h2 { margin-bottom: 18px; }
.artist-copy p + p { margin-top: 12px; }
.artist-copy p:not(.eyebrow) { color: var(--ink-2); }
@media (max-width: 700px) { .artist { grid-template-columns: 1fr; } .artist-flip .artist-face { order: 0; } }

/* ---------- yours, made art ---------- */
.made { display: grid; gap: clamp(60px, 10vw, 150px); padding-top: clamp(20px, 4vw, 60px); }
.made-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); align-items: center; }
.made-row-flip .made-art { order: 2; }
.made-row .made-art .hang { transform: rotate(1.2deg); }
.made-row-flip .made-art .hang { transform: rotate(-1.4deg); }
.made-copy h2 { margin: 16px 0 18px; }
.made-copy p { color: var(--ink-2); max-width: 48ch; }
.made-copy p + p { margin-top: 14px; }
@media (max-width: 860px) { .made-row { grid-template-columns: 1fr; } .made-row-flip .made-art { order: 0; } }
.things { padding-top: clamp(70px, 10vw, 150px); }
.things .wrap { padding-top: clamp(40px, 6vw, 80px); }
.things-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-top: clamp(30px, 5vw, 70px); }
.things-list li { display: grid; justify-items: center; gap: 22px; text-align: center; }
.thing { display: block; position: relative; background-size: cover; background-position: center; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .7s var(--ease); }
.thing-board { width: min(100%, 300px); aspect-ratio: 3 / 2; border-radius: 22px 22px 22px 60px; transform: rotate(-5deg); }
.thing-board::after { content: ""; position: absolute; left: 20px; bottom: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--wall); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.thing-coaster { width: min(62%, 180px); aspect-ratio: 1; border-radius: 50%; transform: rotate(8deg); }
.thing-mat { width: min(100%, 320px); aspect-ratio: 16 / 10; border-radius: 10px; transform: rotate(3deg); }
.things-list li:hover .thing { transform: rotate(0) translateY(-8px); }
.things-note { margin-top: 34px; font-size: .86rem; color: var(--ink-3); text-align: center; }
@media (max-width: 700px) { .things-list { grid-template-columns: 1fr; } }
.media { padding-top: clamp(70px, 10vw, 150px); }
.media-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(30px, 6vw, 90px); margin-block: clamp(30px, 4vw, 54px); }
.media-list div { padding: 22px 0; border-top: 1px solid var(--line); }
.media-list dt { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }
.media-list dd { color: var(--ink-2); }
@media (max-width: 700px) { .media-list { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(34px, 7vw, 120px); padding-top: clamp(10px, 3vw, 40px); }
.contact-ways { display: grid; gap: 34px; align-content: start; }
.contact-ways h2 { font-size: 1.6rem; margin: 10px 0 6px; }
.contact-ways p { color: var(--ink-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
