/* =============================================================================
   pages.css — layouts that belong to one page each
   ========================================================================== */

section { padding-block: var(--section-y); }
section.tight { padding-block: var(--section-y-tight); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 64px; flex-wrap: wrap;
}
.section-head .label { margin-bottom: 14px; display: block; }

/* ============================================================ home: tagline */

.tagline-strip { padding: 118px 0 0; text-align: center; background: var(--bg); }
.tagline {
  font-size: clamp(19px, 2.3vw, 28px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  padding: 26px 22px;
  line-height: 1.4;
}
.tagline .ch { display: inline-block; white-space: pre; }
.tagline.play .ch { animation: rjump .9s var(--ease) both; animation-delay: calc(var(--i) * 42ms); }
@keyframes rjump {
  0%   { transform: none;                color: inherit; }
  30%  { transform: translateY(-11px);   color: var(--rc); }
  62%  { transform: none;                color: var(--rc); }
  100% { transform: none;                color: inherit; }
}
.premium-link { border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; transition: opacity var(--dur-fast) var(--ease); }
.premium-link:hover { opacity: .55; }

@media (max-width: 760px) {
  .tagline-strip { padding-top: 76px; }
  .tagline { font-weight: var(--weight-med); padding: 22px var(--gutter-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .tagline.play .ch { animation: none; }
}

/* =============================================================== home: hero */

.hero {
  height: calc(100vh - 96px);
  min-height: 600px;
  position: relative;
  padding: 10px 24px 24px;
  perspective: 1600px;
}
.hero-canvas {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .1s linear;
  background: var(--bg-sunk);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-caption {
  position: absolute; bottom: 36px; inset-inline-start: var(--gutter); z-index: 5;
  color: var(--white); mix-blend-mode: difference;
}
.hero-caption .artist { font-size: 15px; font-weight: var(--weight-med); letter-spacing: .04em; }
.hero-caption .title { font-size: var(--size-sm); margin-top: 3px; opacity: .85; }
.hero-caption .meta { font-size: var(--size-2xs); margin-top: 2px; opacity: .65; }
.hero-caption .view {
  display: inline-block; margin-top: 14px; font-size: 13px; letter-spacing: .08em;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity var(--dur-fast) var(--ease);
}
.hero-caption .view:hover { opacity: .6; }
.hero-dots { position: absolute; bottom: 40px; inset-inline-end: var(--gutter); z-index: 5; display: flex; gap: 8px; }
.hero-dots button {
  width: 28px; height: 2px; border: 0; background: rgba(255, 255, 255, .9);
  mix-blend-mode: difference; opacity: .35; transition: opacity .4s var(--ease);
}
.hero-dots button.active { opacity: 1; }

@media (max-width: 760px) {
  .hero { padding: 8px 10px 10px; height: calc(100vh - 130px); min-height: 480px; }
  .hero-caption { inset-inline-start: var(--gutter-sm); bottom: 24px; }
  .hero-dots { inset-inline-end: var(--gutter-sm); bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { transform: none !important; }
}

/* ================================================== home: featured artists */

.artists-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 64px 32px; align-items: start; }
.artist-card { position: relative; overflow: hidden; display: block; }
.artist-card:nth-child(1) { grid-column: 1 / 6; }
.artist-card:nth-child(2) { grid-column: 7 / 13; margin-top: 120px; }
.artist-card:nth-child(3) { grid-column: 2 / 8;  margin-top: 40px; }
.artist-card:nth-child(4) { grid-column: 9 / 13; margin-top: -60px; }
.artist-img { overflow: hidden; background: var(--bg-sunk); }
.artist-img .ph { width: 100%; transition: transform var(--dur-slow) var(--ease); }
.artist-card:hover .artist-img .ph { transform: scale(1.02); }
.artist-name {
  margin-top: 18px; font-size: 20px; font-weight: 400;
  opacity: 0; transform: translateY(6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.artist-note {
  font-size: var(--size-xs); color: var(--text-muted); margin-top: 4px;
  opacity: 0; transition: opacity .6s var(--ease) .08s;
}
.artist-card:hover .artist-name,
.artist-card:hover .artist-note,
.artist-card:focus-within .artist-name,
.artist-card:focus-within .artist-note { opacity: 1; transform: none; }
.ph.portrait  { aspect-ratio: 3 / 4; }
.ph.landscape { aspect-ratio: 4 / 3; }

@media (max-width: 1080px) {
  .artists-grid { gap: 48px 20px; }
  .artist-card:nth-child(1) { grid-column: 1 / 7; }
  .artist-card:nth-child(2) { grid-column: 7 / 13; margin-top: 80px; }
  .artist-card:nth-child(3) { grid-column: 1 / 7; }
  .artist-card:nth-child(4) { grid-column: 7 / 13; margin-top: -40px; }
}
@media (max-width: 760px) {
  .artists-grid { display: block; }
  .artist-card { margin: 0 0 56px !important; }
  .artist-name, .artist-note { opacity: 1; transform: none; font-weight: var(--weight-bold); }
  .artist-note { font-weight: var(--weight-body); }
}

/* ================================================== home: horizontal works */

.works-scroll-outer { overflow: hidden; }
.works-scroll {
  display: flex; gap: 32px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--content)) / 2 + var(--gutter)));
  padding-bottom: 8px;
  scrollbar-width: none;
}
.works-scroll::-webkit-scrollbar { display: none; }
.works-scroll .work-card { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; }

@media (max-width: 760px) {
  .works-scroll { padding-inline: var(--gutter-sm); gap: 18px; }
}

/* ======================================================= home: collections */

.collections { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.col-card { display: block; }
.col-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-sunk); }
.col-img .ph { width: 100%; height: 100%; transition: transform var(--dur-slow) var(--ease); }
.col-card:hover .col-img .ph { transform: scale(1.02); }
.col-name { margin-top: 14px; font-size: var(--size-sm); letter-spacing: var(--track-btn); text-transform: uppercase; text-align: center; }

@media (max-width: 1080px) { .collections { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .collections { grid-template-columns: 1fr 1fr; gap: 18px; } }

/* ============================================================== home: news */

.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.news-card { display: block; }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sunk); }
.news-card:nth-child(1) .news-img { aspect-ratio: 16 / 9; }
.news-img .ph { width: 100%; height: 100%; transition: transform var(--dur-slow) var(--ease); }
.news-card:hover .news-img .ph { transform: scale(1.02); }
.news-date { margin-top: 18px; display: block; }
.news-title { font-size: 20px; font-weight: 400; margin-top: 8px; line-height: 1.35; }
.news-card:nth-child(1) .news-title { font-size: 28px; letter-spacing: -.01em; }

@media (max-width: 1080px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:nth-child(1) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-title { font-weight: var(--weight-med); }
  .news-card:nth-child(1) .news-title { font-weight: var(--weight-bold); }
}

/* ============================================================= home: trust */

#trust { background: var(--bg-sunk); scroll-margin-top: 70px; }
.trust-intro { max-width: 820px; }
.trust-intro p { margin-top: 22px; color: #333; font-size: var(--size-lead); max-width: 64ch; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.trust-card { border-top: 1px solid var(--ink); padding-top: 22px; }
.trust-num { font-size: var(--h2); font-weight: 400; letter-spacing: var(--track-tight); line-height: 1.1; }
.trust-card h4 { font-size: 16px; font-weight: var(--weight-bold); margin-top: 10px; }
.trust-card p { font-size: var(--size-sm); color: var(--text-muted); margin-top: 8px; }

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 40px; }
}

/* ======================================================== home: newsletter */

.newsletter { background: var(--bg-sunk); text-align: center; }
.newsletter h2 { max-width: 18ch; margin-inline: auto; }
.news-form {
  margin-top: 44px; display: flex; justify-content: center; gap: 0;
  max-width: 520px; margin-inline: auto; border-bottom: 1px solid var(--ink);
}
.news-form input {
  flex: 1; border: 0; background: transparent; padding: 16px 4px;
  font-family: var(--font-ui); font-size: 16px; color: var(--ink); outline: none;
}
.news-form input::placeholder { color: var(--text-muted); }
.news-form button {
  border: 0; background: var(--ink); color: var(--white); padding: 0 30px;
  font-size: var(--size-2xs); letter-spacing: .12em; text-transform: uppercase;
  transition: opacity var(--dur-fast) var(--ease);
}
.news-form button:hover { opacity: .75; }
.news-note { margin-top: 18px; color: var(--text-muted); font-size: 13px; }

@media (max-width: 760px) {
  .news-form { flex-direction: column; border-bottom: 0; gap: 14px; }
  .news-form input { border-bottom: 1px solid var(--ink); }
  .news-form button { padding: 15px; }
}

/* ========================================================= inner page head */

.page-head { padding: 170px 0 44px; }
.page-head .label { display: block; margin-bottom: 14px; }
.page-sub { color: var(--text-muted); font-size: 16px; margin-top: 14px; max-width: 56ch; }

@media (max-width: 760px) { .page-head { padding: 130px 0 30px; } }

/* ======================================================== artworks: grid */

.grid-section { padding: 44px 0 130px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.empty-state { padding: 90px 0; text-align: center; color: var(--text-muted); }
.empty-state .tb-btn { margin-top: 26px; }

@media (max-width: 1080px) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; } }
@media (max-width: 760px)  { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; } }

/* ==================================================== artwork detail page */

.aw { padding: 150px 0 120px; }
.aw-back { font-size: var(--size-xs); color: var(--text-muted); display: inline-block; margin-bottom: 34px; }
.aw-back:hover { color: var(--ink); }
.aw-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }

.aw-media { display: grid; gap: 16px; }
.aw-main {
  background: var(--bg-sunk); aspect-ratio: 4 / 5; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.aw-main .ph { width: 100%; height: 100%; }
.aw-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.aw-thumb { width: 84px; aspect-ratio: 1; background: var(--bg-sunk); border: 1px solid var(--rule); }

.aw-info { position: sticky; top: 120px; }
.aw-artist { font-size: 16px; font-weight: var(--weight-med); }
.aw-artist a { border-bottom: 1px solid transparent; transition: border-color var(--dur-fast) var(--ease); }
.aw-artist a:hover { border-color: var(--ink); }
.aw-title { font-size: clamp(26px, 3vw, 36px); font-weight: 400; margin-top: 8px; line-height: 1.2; letter-spacing: -.015em; }
.aw-specs { margin-top: 34px; border-top: 1px solid var(--rule); }
.aw-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: var(--size-xs);
}
.aw-row dt { color: var(--text-muted); }
.aw-row dd { text-align: end; }
.aw-price { margin-top: 30px; font-size: 26px; font-weight: 400; }
.aw-stock { margin-top: 8px; font-size: var(--size-2xs); color: var(--text-muted); }
.aw-actions { margin-top: 28px; display: grid; gap: 10px; }
.aw-note { margin-top: 18px; font-size: var(--size-2xs); color: var(--text-muted); line-height: 1.6; }
.aw-desc { margin-top: 34px; font-size: var(--size-body); color: #333; }
.aw-desc p + p { margin-top: 14px; }

.aw-related { border-top: 1px solid var(--rule); padding-top: 90px; }

@media (max-width: 1080px) {
  .aw-grid { grid-template-columns: 1fr; gap: 44px; }
  .aw-info { position: static; }
}
@media (max-width: 760px) {
  .aw { padding: 120px 0 90px; }
  .aw-artist, .aw-title { font-weight: var(--weight-bold); }
  .aw-price { font-weight: var(--weight-med); }
}

/* ========================================================== artists index */

.artist-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 32px; }
.artist-row { display: block; }
.artist-row .artist-img { aspect-ratio: 3 / 4; }
.artist-row .artist-name,
.artist-row .artist-note { opacity: 1; transform: none; }
.artist-row .link-arrow { margin-top: 14px; display: inline-block; font-size: var(--size-xs); }

@media (max-width: 1080px) { .artist-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .artist-list { grid-template-columns: 1fr; gap: 48px; } }

/* ============================================================= news index */

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 32px; padding-bottom: 130px; }
.news-list .news-img { aspect-ratio: 16 / 10; }
.news-list .news-title { font-size: 20px; }
.news-excerpt { font-size: var(--size-sm); color: var(--text-muted); margin-top: 10px; }
.news-list .link-arrow { margin-top: 14px; display: inline-block; font-size: var(--size-xs); }

@media (max-width: 1080px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .news-list { grid-template-columns: 1fr; gap: 48px; } }

/* ================================================================== forms */

.form-block { max-width: 46rem; }
.form-block h3 { max-width: 30ch; }

.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: var(--size-2xs);
  font-weight: var(--weight-med);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 12px 2px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-bottom-width: 2px; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-bottom-color: #A6432B; }

.form-error {
  border-inline-start: 2px solid #A6432B;
  padding-inline-start: 14px;
  margin-bottom: 30px;
  font-size: var(--size-sm);
}

.form-note {
  margin-top: 18px;
  font-size: var(--size-2xs);
  color: var(--text-muted);
}

/* The honeypot must be unreachable for people but present for bots, so it is
   moved off-screen rather than display:none — some bots skip hidden fields. */
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* =============================================================== socials */

.soc-section { padding: 20px 0 130px; }
.soc-group + .soc-group { margin-top: 76px; }
.soc-group > .label { display: block; margin-bottom: 26px; }
.soc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.soc-card {
  border: 1px solid var(--rule);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.soc-card:hover { border-color: var(--ink); background: var(--bg-sunk); }
.soc-card svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.soc-name { font-size: 16px; font-weight: var(--weight-med); }
.soc-handle { font-size: var(--size-xs); color: var(--text-muted); word-break: break-word; }

.visit { margin-top: 90px; border-top: 1px solid var(--ink); padding-top: 34px; }
.visit h3 { margin-bottom: 26px; }
.visit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.visit-item .label { display: block; margin-bottom: 8px; }
.visit-item p { font-size: var(--size-sm); }
.visit-note { margin-top: 44px; font-size: var(--size-sm); color: var(--text-muted); max-width: 62ch; }

@media (max-width: 1080px) {
  .soc-grid  { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .soc-grid  { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; gap: 26px; }
}
