/* Art Nest × Sentio · a dark room where the light is the work */
:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #111215;
  --line: #24262c;
  --text: #ece6dc;
  --soft: #d3cbbf;
  --muted: #a39b8f;
  --dim: #6f695f;
  --warm: #e0a062;
  --cold: #8fb6e3;
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.mono { font-family: var(--mono); font-size: .76rem; color: var(--muted); }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 13px; }
.brand { font-family: var(--display); font-size: 1.4rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.brand span { color: var(--warm); margin-inline: .18em; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { font-size: .84rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--text); }
.top nav a.key { color: var(--text); border: 1px solid color-mix(in srgb, var(--warm) 70%, transparent); border-radius: 999px; padding: 6px 14px; }
.top nav a.key:hover { background: color-mix(in srgb, var(--warm) 14%, transparent); }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding-block: 72px 64px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(3.4rem, 8.4vw, 7.4rem); line-height: .92; letter-spacing: -.01em; margin: 16px 0 26px; }
.hero h1 span { display: block; color: var(--warm); font-style: italic; font-size: .62em; margin: .06em 0 .04em .04em; }
.lede { font-size: 1.12rem; color: var(--soft); max-width: 38ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-family: inherit; }
.btn.solid { background: var(--warm); border-color: var(--warm); color: #17110a; }
.btn.solid:hover { background: #ebb47d; }
.btn:not(.solid):hover { border-color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: #000; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.mosaic .tall { aspect-ratio: 4 / 5; }
.mosaic figcaption { position: absolute; left: 10px; bottom: 9px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(8, 9, 11, .72); padding: 3px 8px; border-radius: 3px; }

/* sections */
section { padding-block: 76px; border-top: 1px solid var(--line); }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 32px; }
.head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.08; }
.head h2 em { font-family: var(--display); font-weight: 500; color: #d8cfc1; font-size: 1.16em; margin-left: .2em; }

/* work cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.card .pic { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; background: #000; border: 1px solid var(--line); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .card img { transition: none; } .card:hover img { transform: none; } }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.9rem; line-height: 1.05; }
.card p { font-size: .92rem; color: var(--soft); }
.card .mono { display: block; margin-bottom: 6px; }
.card .more { font-size: .84rem; color: var(--warm); font-weight: 600; }

/* client access panel */
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.access h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; margin: 12px 0 16px; }
.access p { color: var(--soft); max-width: 44ch; }
.pwform { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--warm); border-radius: 10px; padding: 28px; display: grid; gap: 14px; }
.pwform label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pwform input { width: 100%; font: inherit; font-size: 1.05rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; }
.pwform input:focus { border-color: var(--warm); outline: none; }
.pwform .btn { justify-content: center; }
.pwform .note { font-size: .82rem; color: var(--dim); }
.msg { font-size: .9rem; padding: 10px 12px; border-radius: 6px; border: 1px solid; }
.msg.bad { color: #f2c3a0; border-color: color-mix(in srgb, var(--warm) 50%, transparent); background: color-mix(in srgb, var(--warm) 10%, transparent); }
.msg.ok { color: var(--soft); border-color: var(--line); }

/* about */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.who { border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.who h3 { font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1; }
.who .role { color: var(--warm); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.who.cold .role { color: var(--cold); }
.who p { color: var(--soft); font-size: .96rem; }
.who ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.who li { position: relative; padding-left: 16px; font-size: .9rem; color: #ddd5c8; }
.who li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.who .artnest-link { justify-self: start; color: var(--warm); font-size: .9rem; font-weight: 600; text-decoration: none; }
.who .artnest-link:hover { text-decoration: underline; }

/* project pages */
.back { display: inline-block; margin-top: 30px; font-size: .86rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.phead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; padding-block: 26px 36px; }
.phead h1 { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .95; margin-top: 14px; }
.phead .lede { max-width: 52ch; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: none; padding-bottom: 0; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-size: .95rem; color: #ddd5c8; }
.lead-img { margin: 0 0 14px; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.lead-img img { width: 100%; max-height: 78vh; object-fit: cover; }
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery .item { break-inside: avoid; margin: 0 0 14px; border-radius: 6px; overflow: hidden; background: #000; border: 1px solid var(--line); position: relative; }
.gallery button.item { display: block; width: 100%; padding: 0; cursor: zoom-in; font: inherit; color: inherit; }
.gallery img, .gallery video { width: 100%; height: auto; }
.gallery .tag { position: absolute; left: 10px; top: 10px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(8, 9, 11, .78); color: #fff; padding: 3px 8px; border-radius: 3px; }
.credits { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 32px; }
.credits p { font-size: .95rem; }
.credits span { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); }
.next a { text-decoration: none; display: grid; gap: 4px; }
.next a:last-child { text-align: right; margin-left: auto; }
.next .mono { color: var(--dim); }
.next b { font-family: var(--display); font-weight: 500; font-size: 1.7rem; }
.next a:hover b { color: var(--warm); }

/* lightbox */
dialog.lb { padding: 0; border: none; background: rgba(4, 5, 6, .96); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog.lb::backdrop { background: rgba(4, 5, 6, .96); }
dialog.lb img { position: absolute; inset: 56px 64px; width: calc(100% - 128px); height: calc(100% - 112px); object-fit: contain; }
dialog.lb button { position: absolute; background: rgba(17, 18, 21, .8); color: var(--text); border: 1px solid var(--line); border-radius: 999px; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
dialog.lb .x { top: 14px; right: 14px; }
dialog.lb .prev { left: 10px; top: 50%; transform: translateY(-50%); }
dialog.lb .nxt { right: 10px; top: 50%; transform: translateY(-50%); }

/* client login page */
.login { max-width: 520px; padding-block: 80px 96px; }
.login h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; margin: 12px 0 14px; }
.login > p { color: var(--soft); margin-bottom: 26px; }
.login .help { margin-top: 18px; font-size: .86rem; color: var(--muted); }

footer.end { border-top: 1px solid var(--line); }
footer.end .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 28px 40px; font-size: .82rem; color: var(--dim); }
footer.end a { color: var(--muted); }

@media (max-width: 900px) {
  .hero, .access, .phead { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-block: 44px 40px; }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .top .wrap { flex-wrap: wrap; gap: 10px 16px; }
  .top nav { gap: 14px; margin-left: auto; }
  .top nav a:not(.key):not(.artnest-home) { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card .pic { aspect-ratio: 4 / 3; }
  section { padding-block: 56px; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery .item { margin-bottom: 10px; }
  dialog.lb img { inset: 64px 8px; width: calc(100% - 16px); height: calc(100% - 128px); }
  dialog.lb .prev, dialog.lb .nxt { top: auto; bottom: 10px; transform: none; }
  .pwform, .who { padding: 22px; }
}
