/* ---------- Fonts (the artist's own site fonts) ---------- */
@font-face { font-family: "Display"; src: url("../assets/fonts/1c20178492c9f73ac7b077ef6a94ed00.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Body"; src: url("../assets/fonts/d1e05006864b40cbe721a649bf161859.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Body"; src: url("../assets/fonts/7fce9e597ba229fc71339c485fc6a50c.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ----------
   The page is a gallery: each room gets a wall painted to suit the work on it.
   Gold appears only where gold appears in the paintings: hairlines and focus. */
:root {
  --ink: #0e0a0a;
  --bone: #eeeee6;
  --ash: #aba9a8;
  --gold: #c9a45c;

  --wall-elements: #1a120a;   /* ochre-black, from The Earth */
  --wall-aquarius: #0a1a2c;   /* deep water */
  --wall-gajakshi: #2a1013;   /* oxblood, from the elephant */
  --wall-aranyak:  #101a24;   /* forest at night */
  --wall-easel:    #0e0a0a;

  --wall: var(--ink);

  --display: "Display", "Cormorant Garamond", Georgia, serif;
  --body: "Body", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 78rem;
  --room-pad: clamp(4rem, 9vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; background: var(--ink); }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
p { text-wrap: pretty; }

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

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--bone); color: var(--ink); padding: .6rem 1rem; z-index: 50; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, .piece-title, .big-mail, .hero-quote, .gaj-line, .lede {
  font-family: var(--display);
  font-weight: 400;
  font-kerning: none;
  font-feature-settings: "calt" 0, "clig" 0, "liga" 0;
}
h1 { font-size: clamp(3.4rem, 8.4vw, 8rem); line-height: .92; text-transform: uppercase; }
h2 { font-size: clamp(2.8rem, 6.4vw, 5.5rem); line-height: .95; }
h3 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; }

/* ---------- Header ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.mark { font-family: var(--display); font-size: 1.35rem; text-decoration: none; font-kerning: none; }
.bar nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); font-size: .98rem; }
.bar nav a { text-decoration: none; padding-block: .25rem; border-bottom: 1px solid transparent; }
.bar nav a:hover { border-bottom-color: var(--gold); }

/* ---------- Shared: arches and pieces ---------- */
.arch {
  display: block;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  box-shadow: 0 0 0 10px var(--wall), 0 0 0 11px var(--gold);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.piece a { display: block; cursor: zoom-in; }
.piece img { width: 100%; }
.piece figcaption { margin-top: .85rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; }
.piece-title { font-size: 1.25rem; line-height: 1.2; }
.piece-meta { color: var(--ash); font-size: .94rem; }

/* ---------- Hero ----------
   The lion fills a tall arch that rises from the bottom edge of the page; the name overlaps it. */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 4rem);
  display: flex; align-items: center;
  background: radial-gradient(ellipse 55% 70% at 74% 55%, rgb(201 140 40 / .16), transparent 70%);
}
.hero-text { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter); }
.hero h1 { font-size: clamp(3.4rem, 11.2vw, 10.5rem); text-shadow: 0 2px 40px rgb(14 10 10 / .6); }
.hero-quote { margin-top: clamp(1.75rem, 4vw, 3rem); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; max-width: 17em; text-transform: uppercase; letter-spacing: .03em; }
.hero-line { margin-top: 1.5rem; max-width: 26rem; color: var(--ash); }

.hero-art {
  position: absolute; z-index: 1; bottom: 0; top: clamp(1.5rem, 4vw, 3rem);
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: min(44vw, 40rem);
}
.hero-art .arch { height: 100%; box-shadow: none; }
/* One orchestrated moment: the arch opens upward and the painting settles into it. */
@keyframes arch-open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .arch { animation: arch-open 1.5s cubic-bezier(.22,.8,.2,1) .15s both; }
  .hero-art .arch img { animation: settle 2.1s cubic-bezier(.22,.8,.2,1) .15s both; }
}

/* ---------- Work ---------- */
.work-intro { padding-block: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.work-intro p { max-width: 36rem; color: var(--ash); font-size: 1.15rem; }

.room { background: var(--wall); padding-block: var(--room-pad); }
.room-elements { --wall: var(--wall-elements); }
.room-aquarius { --wall: var(--wall-aquarius); }
.room-gajakshi { --wall: var(--wall-gajakshi); }
.room-aranyak  { --wall: var(--wall-aranyak); }
.room-easel    { --wall: var(--wall-easel); }

.room-head { margin-bottom: clamp(2rem, 5vw, 4rem); }
.room-head p { margin-top: .75rem; color: var(--ash); }

.triptych { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); }
.triptych img { aspect-ratio: 3 / 4; object-fit: cover; }

.aquarius { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: end; }
.aq-main img { aspect-ratio: 1255 / 880; object-fit: cover; object-position: top; }
.aq-side img { aspect-ratio: 1; object-fit: cover; }

.gajakshi { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .7fr); gap: clamp(1.25rem, 4vw, 3.5rem); align-items: start; }
.gaj-text { padding-top: .5rem; }
.gaj-line { margin-top: 1.25rem; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--bone); max-width: 16em; }
.specs { margin-top: 2.25rem; border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.specs dt { color: var(--ash); }
.specs dd { text-align: right; }
.gaj-frame { align-self: end; }

.aranyak { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: start; }
.aranyak .piece:nth-child(2) { margin-top: clamp(2rem, 8vw, 7rem); }

.room-easel { padding-block: 0; }
.easel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; max-width: none; padding: 0; }
.easel .piece { grid-column: 2; grid-row: 1; }
.easel .piece a { height: 100%; }
.easel .piece img { height: 100%; min-height: min(80vh, 46rem); object-fit: cover; object-position: 50% 20%; }
.easel-text { grid-column: 1; grid-row: 1; align-self: center; padding: var(--room-pad) clamp(1.5rem, 6vw, 6rem); max-width: 34rem; justify-self: end; }
.easel-text p { margin-top: 1rem; color: var(--ash); font-size: 1.15rem; }

/* ---------- About ---------- */
.about { padding-block: var(--room-pad); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.about-photo { --wall: var(--ink); padding: 11px; }
.about-photo .arch { aspect-ratio: 9 / 14; }
.about-text h2 { margin-bottom: 2rem; }
.about-text p { max-width: 38rem; }
.about-text p + p { margin-top: 1.1rem; }
.lede { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; margin-bottom: 1.25rem; }
.text-link { text-decoration-color: var(--gold); text-underline-offset: .25em; }
.text-link:hover { text-decoration-thickness: 2px; }

.facts { margin-top: 3rem; max-width: 38rem; border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.facts dt { color: var(--ash); }
.facts li + li { margin-top: .5rem; }

/* ---------- Commissions ---------- */
.commissions { padding-block: var(--room-pad); background: var(--ink); border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.comm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.comm-slots { margin-top: 1.25rem; display: flex; align-items: center; gap: .9rem; font-family: var(--display); font-size: 1.5rem; }
.pips { display: inline-flex; gap: .45rem; }
.pips i { display: block; width: .8rem; height: 1.1rem; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; }
.comm-copy p { max-width: 34rem; color: var(--ash); }
.button {
  display: inline-block; margin-top: 1.5rem; padding: .85rem 1.6rem;
  border: 1px solid var(--gold); color: var(--bone); text-decoration: none; font-size: 1rem;
}
.button:hover { background: var(--gold); color: var(--ink); }

.comm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.75rem); }
.comm-grid img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Contact ---------- */
.contact { padding-block: var(--room-pad); border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.big-mail { display: inline-block; margin-top: 2rem; font-size: clamp(1.2rem, 2.5vw, 2.1rem); line-height: 1.15; text-decoration-color: var(--gold); text-underline-offset: .2em; text-decoration-thickness: 1px; white-space: nowrap; }
.big-mail:hover { text-decoration-thickness: 2px; }
.contact-list > div { padding-block: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.contact-list > div:first-child { border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.contact-list dt { color: var(--ash); font-size: .94rem; }
.contact-list a { text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.contact-photo { padding: 11px; --wall: var(--ink); }
.contact-photo .arch { aspect-ratio: 9 / 14; }

.foot { padding: 2rem var(--gutter) 3rem; color: var(--ash); font-size: .9rem; border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }

/* ---------- Viewer ---------- */
#viewer { border: 0; padding: 0; background: transparent; color: var(--bone); width: 100vw; height: 100dvh; max-width: none; max-height: none; }
#viewer::backdrop { background: rgb(14 10 10 / .96); }
#viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; padding: clamp(1rem, 3vw, 2rem); gap: 1rem; }
#viewer figure { display: grid; justify-items: center; gap: .9rem; max-height: 100%; min-height: 0; }
#viewer img { max-width: min(92vw, 80rem); max-height: calc(100dvh - 11rem); width: auto; height: auto; object-fit: contain; }
#viewer figcaption { text-align: center; }
.v-title { font-family: var(--display); font-size: 1.35rem; margin-right: .6rem; }
.v-note { color: var(--ash); }
#viewer button { font: inherit; color: var(--bone); background: transparent; border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); padding: .55rem 1.1rem; cursor: pointer; }
#viewer button:hover { background: var(--gold); color: var(--ink); }
.v-close { position: absolute; top: 1rem; right: 1rem; }
.v-nav { display: flex; gap: .75rem; }

/* ---------- Small screens ---------- */
@media (max-width: 62rem) {
  .gajakshi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gaj-text { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 47.5rem) {
  .bar { flex-direction: column; gap: .35rem; padding-block: .7rem; }
  .mark { font-size: 1.15rem; }
  .bar nav { gap: 1.1rem; font-size: .92rem; }
  html { scroll-padding-top: 6rem; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; background: radial-gradient(ellipse 80% 40% at 50% 30%, rgb(201 140 40 / .16), transparent 70%); }
  .hero-art { position: relative; order: -1; top: auto; right: auto; bottom: auto; width: calc(100% - 2 * var(--gutter)); margin: 1.5rem auto 0; }
  .hero-art .arch { height: auto; aspect-ratio: 4 / 5; }
    .hero-text { margin-top: -4.5rem; padding-top: 0; padding-bottom: 3.5rem; }
  .work-intro, .comm-head, .about-grid { grid-template-columns: 1fr; }
  .easel { grid-template-columns: 1fr; }
  .easel .piece, .easel-text { grid-column: 1; grid-row: auto; }
  .easel-text { justify-self: start; padding: 3rem var(--gutter); }
  .easel .piece img { min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  .triptych { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
  .aquarius { grid-template-columns: 1fr; }
  .gajakshi { grid-template-columns: 1fr; }
  .gaj-frame { max-width: 18rem; }
  .aranyak { grid-template-columns: 1fr; }
  .aranyak .piece:nth-child(2) { margin-top: 0; }
  .about-photo { max-width: 20rem; }
  .comm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { grid-template-columns: 1fr; gap: .25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { max-width: 18rem; }
}

.piece .arch + figcaption { margin-top: 1.6rem; }

.hero-quote { max-width: 14em; }
.easel-text { max-width: 36rem; }
.easel-text h3 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; }
.easel-text p { font-size: 1.3rem; margin-top: 1.25rem; max-width: 18em; }

.room-elements .wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.room-elements .room-head { margin: 0; }
@media (max-width: 47.5rem) { .room-elements .wrap { grid-template-columns: 1fr; } .room-elements .room-head { margin-bottom: 2rem; } .triptych { max-width: none; } }
