/* natecreates.art · New Renaissance
   One long sheet that begins as a Renaissance notebook page (parchment, ink, golden-ratio construction lines)
   and dissolves into a drafting grid and deep space. Each page sits at its own point on that journey. */
:root {
  --ink: #2a1d10;
  --sepia: #7a2e17;
  --gold: #b88a2e;
  --cosmos: #24135e;
  --star: #fbf3dc;
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "EB Garamond", "Garamond", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 20px; line-height: 1.55; position: relative; overflow-x: hidden; background: #ecd39a; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 28px; }

/* ---------- the journey: backgrounds ---------- */
body.home { background: linear-gradient(180deg, #f1e2b6 0%, #ecd39a 12%, #e3bb6c 26%, #d9a24c 36%, #b9b88a 44%, #5fbfd0 50%, #2c9ae0 58%, #2563d2 68%, #4a2fb8 80%, #3a1c8f 91%, var(--cosmos) 100%); }
body.parchment { background: linear-gradient(180deg, #f1e2b6 0%, #ecd39a 40%, #e3bb6c 80%, #d9a24c 100%); }
body.dawn { background: linear-gradient(180deg, #f1e2b6 0%, #e9c983 30%, #d9a24c 55%, #b9b88a 70%, #7fc5c9 85%, #4fb0d8 100%); }
body.cosmos { background: linear-gradient(180deg, #2c9ae0 0%, #2563d2 25%, #3b38c0 50%, #3a1c8f 78%, var(--cosmos) 100%); color: var(--star); }
body::before, body::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.08  0 0 0 0.55 0'/></filter><rect width='400' height='400' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 20% 6%, rgba(255,250,230,.55), transparent 55%);
  mix-blend-mode: multiply; opacity: .5;
}
body.home::before { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 36%, transparent 50%); mask-image: linear-gradient(180deg, #000 0%, #000 36%, transparent 50%); }
body.dawn::before { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%); }
body.cosmos::before { display: none; }
body::after {
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  display: none;
}
body.home::after { display: block; -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 42%, #000 56%); mask-image: linear-gradient(180deg, transparent 0%, transparent 42%, #000 56%); }
body.dawn::after { display: block; -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 65%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, transparent 65%, #000 100%); }
body.cosmos::after { display: block; }
.bgfx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.geo { position: absolute; fill: none; }
.geo.top { top: 110px; right: -6vw; width: min(1100px, 95vw); stroke: rgba(122, 70, 20, .33); }
.geo.bottom { bottom: 520px; right: -14vw; width: min(1100px, 100vw); stroke: rgba(255, 236, 180, .26); }
.cosmos .geo.top { stroke: rgba(255, 236, 180, .22); }
.page { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px); background: rgba(241, 226, 182, .82); border-bottom: 1px solid rgba(122, 70, 20, .25); }
.cosmos .bar { background: rgba(36, 30, 110, .78); border-bottom-color: rgba(255, 236, 190, .2); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap; }
.mark img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #f6e7bf; box-shadow: 0 0 0 1.5px var(--gold); }
.menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: currentColor; }
.menu-btn { display: none; font-family: var(--display); font-size: .8rem; letter-spacing: .1em; background: none; color: inherit; border: 1.5px solid currentColor; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
@media (max-width: 980px) {
  .menu-btn { display: inline-block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; padding: 8px 28px 18px; background: rgba(241, 226, 182, .97); border-bottom: 1px solid rgba(122, 70, 20, .25); }
  .cosmos .menu { background: rgba(36, 30, 110, .97); }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 11px 0; font-size: .9rem; }
}

/* ---------- home masthead ---------- */
.mast { padding-top: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; }
.portrait { width: 156px; height: 156px; border-radius: 50%; overflow: hidden; border: 4px solid #f6e7bf; box-shadow: 0 0 0 2px var(--gold), 0 14px 30px rgba(60, 30, 5, .35); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.name { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 9vw, 6.6rem); line-height: .92; letter-spacing: .01em; margin: 0; text-shadow: 0 1px 0 rgba(255, 245, 215, .7), 0 8px 18px rgba(70, 35, 5, .28); }
.tag { font-family: var(--display); font-weight: 600; color: var(--sepia); font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: .06em; margin: 6px 0 0; }
.disc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 18px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid rgba(122, 70, 20, .35); font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.disc li + li::before { content: "/"; margin: 0 14px; color: var(--gold); }
.disc a { text-decoration: none; }
.disc a:hover { color: var(--sepia); }

/* ---------- home sections ---------- */
.sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-block: 96px 24px; }
.sec.flip > .text { order: 2; }
.folio { font-family: var(--display); font-size: .82rem; letter-spacing: .3em; color: var(--sepia); margin: 0; text-transform: uppercase; }
.sec h2, .head h1 { font-family: var(--display); font-weight: 600; line-height: .95; margin: 8px 0 0; text-wrap: balance; text-shadow: 0 1px 0 rgba(255, 245, 215, .55), 0 10px 22px rgba(60, 30, 5, .28); }
.sec h2 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.lede { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; margin: 20px 0 0; max-width: 32em; }
.small { font-size: 1.05rem; margin: 12px 0 0; max-width: 34em; opacity: .88; }
.go { display: inline-flex; align-items: center; margin-top: 28px; border-radius: 999px; text-decoration: none; overflow: hidden; font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .06em; color: #fff; background: var(--c, #9c7424); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.go span { padding: 12px 20px 12px 26px; }
.go i { display: grid; place-items: center; width: 50px; align-self: stretch; background: rgba(0, 0, 0, .22); font-style: normal; }
.go svg { width: 22px; height: 22px; }
.go:hover { filter: brightness(1.08); }
.on-dark, .cosmos { color: var(--star); }
.on-dark .folio, .cosmos .folio { color: #ffd98a; }
.on-dark h2, .cosmos h1, .cosmos h2 { color: var(--star); text-shadow: 0 0 24px rgba(255, 210, 120, .35), 0 6px 18px rgba(10, 0, 40, .5); }

.frame { background: #f7ecd0; padding: 8px; box-shadow: 0 2px 0 rgba(255,255,255,.4) inset, 0 18px 36px rgba(50, 25, 5, .38); }
.frame img { width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pair .frame:last-child { margin-top: 40px; }
.stack { position: relative; padding-bottom: 22%; }
.stack .back { width: 86%; }
.stack .front { position: absolute; right: 0; bottom: 0; width: 60%; }
.fan { position: relative; aspect-ratio: 1 / .95; }
.fan .frame { position: absolute; padding: 6px; }
.fan .a { left: 2%; top: 2%; width: 50%; transform: rotate(-4deg); }
.fan .b { left: 20%; top: 34%; width: 42%; transform: rotate(-8deg); z-index: 2; }
.fan .c { right: 0; top: 22%; width: 46%; transform: rotate(5deg); z-index: 1; }
.device { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(5, 10, 60, .55); max-width: 420px; margin-inline: auto; }
.screen { display: block; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 240, 200, .35); box-shadow: 0 24px 50px rgba(10, 0, 50, .55); }
.screen img { width: 100%; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(251, 243, 220, .92); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); pointer-events: none; }
.play svg { width: 28px; height: 28px; fill: var(--cosmos); margin-left: 4px; }
.cap { font-size: .95rem; font-style: italic; margin-top: 10px; opacity: .85; }
.credits { list-style: none; padding: 0; margin: 22px 0 0; max-width: 32em; border-top: 1px solid rgba(255, 236, 190, .3); }
.credits li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 236, 190, .3); font-family: var(--display); font-size: 1rem; letter-spacing: .03em; }
.credits small { font-family: var(--body); font-size: .9rem; opacity: .8; letter-spacing: 0; }
.credits em { font-style: normal; color: #ffd98a; font-variant-numeric: tabular-nums; }
.parchment .credits, .parchment .credits li { border-color: rgba(122, 70, 20, .3); }

.class-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 96px; padding: 26px 30px; border-radius: 18px; background: rgba(255, 245, 220, .1); border: 1px solid rgba(255, 236, 190, .3); }
.class-band img { width: 110px; height: 110px; border-radius: 50%; background: #fff; object-fit: contain; }
.class-band h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 4px 0 0; }
.class-band p { margin: 6px 0 0; }

.quote { text-align: center; padding-block: 110px 30px; max-width: 46rem; margin: 0 auto; }
.quote p { font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; margin: 0; }
.quote cite { display: block; margin-top: 16px; font-family: var(--display); font-style: normal; font-size: .9rem; letter-spacing: .2em; color: #ffd98a; }

/* ---------- section pages ---------- */
.head { padding-block: 64px 8px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.head h1 { font-size: clamp(3rem, 8vw, 6rem); }
.head .side { font-size: 1.05rem; opacity: .9; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { font-family: var(--display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 8px 15px; border-radius: 999px; border: 1.5px solid rgba(122, 70, 20, .45); background: rgba(255, 248, 228, .45); }
.chips a:hover { background: rgba(255, 248, 228, .9); }
.chips a b { font-family: var(--body); font-weight: 500; opacity: .7; margin-left: 6px; letter-spacing: 0; }
.cosmos .chips a { border-color: rgba(255, 236, 190, .45); background: rgba(255, 255, 255, .06); }
.cosmos .chips a:hover { background: rgba(255, 255, 255, .16); }
.group { padding-top: 76px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; border-bottom: 1px solid rgba(122, 70, 20, .3); padding-bottom: 12px; }
.cosmos .group-head { border-bottom-color: rgba(255, 236, 190, .3); }
.group-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0; line-height: 1.1; }
.group-head p { margin: 0; font-size: 1.05rem; opacity: .85; max-width: 36em; }
.grid { columns: 4 230px; column-gap: 16px; margin-top: 24px; }
.grid.wide { columns: 3 300px; }
.tile { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; }
.tile img { width: 100%; background: rgba(255, 245, 220, .4); box-shadow: 0 6px 16px rgba(50, 25, 5, .22); transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover img { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(50, 25, 5, .32); }
.cosmos .tile img { box-shadow: 0 8px 22px rgba(5, 0, 40, .45); }
.tile.cover img { border-radius: 2px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.videos.land { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.vid { position: relative; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px rgba(30, 10, 0, .35); text-align: left; font: inherit; color: var(--star); }
.vid img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; opacity: .92; }
.videos.land .vid img { aspect-ratio: 16 / 9; }
.vid .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.vid .vt { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-family: var(--display); font-size: .85rem; letter-spacing: .06em; }
.feature-video { margin-top: 24px; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(10, 0, 40, .45); background: #000; }
.feature-video iframe, .feature-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.triptych figure { margin: 0; }
.triptych figcaption { font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; text-align: center; opacity: .8; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 28px; }
.split.rev > :first-child { order: 2; }
.split ul { margin: 14px 0 0; padding: 0 0 0 1.1em; }
.split li { margin: 4px 0; }
.note { margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 236, 190, .3); font-size: 1rem; }

/* ---------- contact + footer ---------- */
.contact { text-align: center; padding-block: 96px 56px; }
.contact h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0; }
.contact p { font-size: 1.2rem; max-width: 34rem; margin: 14px auto 0; }
.contact .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.contact .row a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: .05em; font-size: .95rem; border: 1.5px solid currentColor; }
.contact .row a.solid { background: var(--ink); color: var(--star); border-color: var(--ink); }
.home .contact .row a.solid, .cosmos .contact .row a.solid { background: var(--star); color: var(--cosmos); border-color: var(--star); }
.contact .row svg { width: 18px; height: 18px; }
footer { font-size: .95rem; padding-block: 24px 40px; border-top: 1px solid rgba(122, 70, 20, .25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; opacity: .85; }
.home footer, .cosmos footer { border-top-color: rgba(255, 236, 190, .2); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
dialog.lb { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: var(--star); }
dialog.lb::backdrop { background: rgba(20, 12, 40, .94); }
.lb img, .lb video { display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; }
.lb video { background: #000; }
.lb .count { text-align: center; font-family: var(--display); font-size: .8rem; letter-spacing: .14em; margin-top: 10px; opacity: .8; min-height: 1.2em; }
.lb .x, .lb .nb { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 236, 190, .4); background: rgba(36, 19, 94, .85); color: var(--star); cursor: pointer; display: grid; place-items: center; }
.lb .x { top: 16px; right: 16px; }
.lb .nb { top: 50%; margin-top: -24px; }
.lb .prev { left: 16px; } .lb .next { right: 16px; }
.lb .nb[hidden] { display: none; }
.lb svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  body { font-size: 18px; }
  .sec, .sec.flip, .head, .split, .split.rev { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sec { padding-block: 72px 16px; }
  .sec.flip > .text, .split.rev > :first-child { order: 0; }
  .mast { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: 116px; height: 116px; }
  .disc { font-size: .72rem; }
  .disc li + li::before { margin: 0 9px; }
  .class-band { grid-template-columns: minmax(0, 1fr); text-align: left; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .grid, .grid.wide { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .triptych { grid-template-columns: minmax(0, 1fr); }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .videos.land { grid-template-columns: minmax(0, 1fr); }
  .pair { gap: 14px; }
}
.home .contact, .home footer, .home .contact a { color: var(--star); }
.grid.rows { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.grid.rows .tile { margin: 0; }
@media (max-width: 860px) { .disc { display: none; } }
@media (max-width: 520px) { .grid.rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
h3.sub { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .04em; margin: 40px 0 0; }
.loops { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.loop { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px rgba(10, 0, 40, .35); }
.loop video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.loop.wide { grid-column: 1 / -1; background: #000; }
.loop.wide video { aspect-ratio: 16 / 9; background: #000; max-height: 70vh; }
.studio-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 28px; margin-top: 24px; }
.studio-vids video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 14px; box-shadow: 0 16px 34px rgba(60, 30, 0, .35); }
@media (max-width: 560px) { .studio-vids { grid-template-columns: minmax(0, 1fr); } }
.tile.cut img { background: none; box-shadow: none; filter: drop-shadow(0 8px 12px rgba(50, 25, 5, .32)); }
.tile.cut:hover img { box-shadow: none; filter: drop-shadow(0 14px 18px rgba(50, 25, 5, .4)); }
.tile.ink img { background: none; box-shadow: none; mix-blend-mode: multiply; }
.tile.ink:hover img { box-shadow: none; }
