:root {
  --ink: #08090a;
  --paper: #f0eadb;
  --acid: #ff5a19;
  --blue: #286cff;
  --red: #db2426;
  --line: rgba(240, 234, 219, .22);
}

@font-face {
  font-family: "Phanicom Rounded";
  src: url("assets/fonts/arial-rounded-mt-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Phanicom Checkbook";
  src: url("assets/fonts/checkbook.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Phanicom Rounded", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
.order-page { min-height: 100svh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(circle at 70% 20%, rgba(255,90,25,.14), transparent 32%), var(--ink); }
.order-panel { width: min(100%, 780px); padding: clamp(2rem, 7vw, 6rem); border: 1px solid var(--line); background: rgba(8,9,10,.92); }
.order-panel h1 { font-size: clamp(3rem, 9vw, 7rem); }
.order-panel > p:not(.eyebrow):not(.status-note) { font: 1.15rem/1.6 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--paper); color: var(--ink); padding: .8rem; }
.skip-link:focus { top: 1rem; }
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem clamp(1.2rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-family: "Phanicom Checkbook", "Phanicom Rounded", sans-serif; font-weight: 400; font-size: clamp(1.3rem, 2.5vw, 2rem); letter-spacing: .025em; text-decoration: none; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible, nav a.active { color: var(--acid); }
nav a.active { border-bottom: 1px solid currentColor; }
.nav-signal { color: var(--acid); }
.subpage-header { position: absolute; background: linear-gradient(180deg, rgba(8,9,10,.96), rgba(8,9,10,.68)); }

.hero { min-height: 100svh; position: relative; display: grid; align-items: end; padding: 9rem clamp(1.2rem, 7vw, 8rem) 7vh; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.62) 44%, rgba(0,0,0,.08) 75%); }
.hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.03); filter: contrast(1.08) saturate(1.15); }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 1.2rem; color: var(--acid); font-family: "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .82rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Phanicom Checkbook", "Phanicom Rounded", sans-serif; font-weight: 400; line-height: 1.04; }
h1 { margin-bottom: 1.5rem; max-width: 11ch; font-size: clamp(4rem, 9.2vw, 9rem); letter-spacing: .025em; text-transform: uppercase; }
.lede { max-width: 720px; margin-bottom: 1rem; font: italic clamp(1.25rem, 2.3vw, 2rem)/1.25 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; }
.hero-description { max-width: 700px; font: clamp(1rem, 1.45vw, 1.2rem)/1.55 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; color: rgba(240, 234, 219, .9); }
.button { display: inline-block; margin-top: 1.4rem; padding: 1rem 1.4rem; border: 1px solid currentColor; text-transform: uppercase; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; transition: background .2s, color .2s; }
.button.primary { background: var(--acid); border-color: var(--acid); color: #08090a; }
.button:hover, .button:focus-visible { background: var(--paper); color: var(--ink); }
.hero-index { position: absolute; right: 3vw; bottom: 4vh; writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .3em; color: rgba(255,255,255,.52); }

.current-works { padding: clamp(5rem, 10vw, 10rem) clamp(1.2rem, 6vw, 7rem); background: #0b0c0d; }
.section-intro { display: grid; grid-template-columns: .7fr 1.25fr; gap: 1.5rem clamp(2rem, 6vw, 7rem); align-items: end; margin-bottom: clamp(3rem, 7vw, 7rem); }
.section-intro .eyebrow { align-self: start; }
.section-intro h2 { margin: 0; font-size: clamp(3.4rem, 8vw, 8rem); letter-spacing: .025em; text-transform: uppercase; }
.section-intro > p:last-child { grid-column: 2; max-width: 620px; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; }
.featured-works { display: grid; gap: clamp(5rem, 10vw, 10rem); }
.work-feature { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(300px, .85fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.work-feature:nth-child(even) .work-image { order: 2; }
.work-image { min-height: 560px; overflow: hidden; border: 1px solid var(--line); background: #050606; }
.work-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.work-phantaghiro .work-image img { object-fit: contain; padding: clamp(1.2rem, 4vw, 4rem); }
.work-phaneroscape .work-image img { object-position: center; }
.phaneroscape-montage { position: relative; min-height: clamp(560px, 48vw, 760px); overflow: hidden; border: 0; background: radial-gradient(circle at 22% 18%, rgba(255, 90, 25, .2), transparent 34%), linear-gradient(145deg, #070809 8%, #16191a 62%, #08090a); isolation: isolate; }
.phaneroscape-montage::before { content: ""; position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(rgba(240,234,219,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(240,234,219,.08) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
.montage-window { position: absolute; margin: 0; overflow: hidden; border: 1px solid rgba(240, 234, 219, .42); background: #101313; box-shadow: 0 28px 60px rgba(0, 0, 0, .55); }
.montage-window figcaption { position: absolute; z-index: 2; top: 0; left: 0; padding: .55rem .8rem; background: rgba(8, 9, 10, .9); color: var(--paper); font: 700 .64rem/1 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.montage-window img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.montage-archive { z-index: 1; top: 7%; left: 4%; width: 82%; height: 66%; transform: rotate(-1.1deg); }
.montage-archive img { object-position: top left; }
.montage-room { z-index: 2; right: 3%; bottom: 5%; width: 72%; height: 53%; transform: rotate(1.5deg); border-color: rgba(105, 220, 242, .65); }
.work-phaneroscape .montage-room img { object-position: right center; }
.work-copy { max-width: 620px; }
.work-copy h3 { margin: .3em 0 .45em; font-size: clamp(3rem, 6vw, 6.8rem); letter-spacing: .025em; text-transform: uppercase; }
.work-copy h3 em { font: inherit; text-transform: none; }
.work-copy > p:not(.work-status) { font-size: 1.08rem; line-height: 1.6; }
.work-status { margin-bottom: 1.5rem; color: var(--acid); text-transform: uppercase; letter-spacing: .14em; font-size: .73rem; }
.work-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.work-actions .button { margin-top: 1rem; }
.catalogue-link { margin: clamp(4rem, 8vw, 8rem) 0 0; text-align: right; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.catalogue-link a { text-underline-offset: .4em; }

.catalogue-main { min-height: calc(100svh - 120px); padding: clamp(9rem, 14vw, 13rem) clamp(1.2rem, 6vw, 7rem) clamp(5rem, 8vw, 8rem); }
.catalogue-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 1rem clamp(2rem, 6vw, 7rem); align-items: end; margin-bottom: clamp(3rem, 7vw, 7rem); }
.catalogue-heading .eyebrow { align-self: start; }
.catalogue-heading h1 { margin: 0; font-size: clamp(4rem, 10vw, 10rem); }
.catalogue-heading > p:last-child { grid-column: 2; max-width: 600px; font-size: 1.08rem; line-height: 1.55; }
.catalogue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.catalogue-item { padding: clamp(1.2rem, 3vw, 3rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalogue-item img { width: 100%; aspect-ratio: 16 / 11; margin-bottom: 2rem; object-fit: cover; background: #050606; }
.catalogue-item:first-child img { object-fit: contain; padding: 1.5rem; }
.catalogue-item h2 { margin-bottom: .4em; font-size: clamp(2.2rem, 4vw, 4.8rem); letter-spacing: .025em; }
.catalogue-item > p:not(.work-status) { max-width: 42ch; line-height: 1.55; }

.product-hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, .75fr); padding-top: 5.4rem; }
.product-hero-art { min-height: 760px; overflow: hidden; background: #050606; }
.product-hero-art img { width: 100%; height: 100%; min-height: 760px; object-fit: cover; }
.product-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 7rem); background: #101212; }
.product-hero-copy h1 { max-width: 100%; margin-bottom: .3em; font-size: clamp(3rem, 4.4vw, 5.5rem); white-space: nowrap; }
.product-hero-copy > p:not(.eyebrow):not(.lede) { font-size: 1.05rem; line-height: 1.6; }
.product-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-facts > div { min-height: 390px; padding: clamp(2rem, 4vw, 4.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-facts h2 { font-size: clamp(2.3rem, 4vw, 4.4rem); letter-spacing: .025em; }
.product-facts p:last-child { line-height: 1.6; color: #c5c2ba; }

.release {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.2rem, 7vw, 8rem);
  background: #0b0c0d;
  color: var(--paper);
}
.release::before {
  content: "";
  position: absolute;
  inset: -2rem;
  z-index: -2;
  background: url("assets/phantaghiro-cover.png") center 38% / cover no-repeat;
  filter: blur(2px) saturate(.7) contrast(1.08);
  opacity: .24;
  transform: scale(1.04);
}
.release::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 9, .82), rgba(7, 8, 9, .94)),
    radial-gradient(circle at 62% 34%, rgba(255, 90, 25, .12), transparent 40%);
}
.release-heading { display: grid; grid-template-columns: 1fr 2fr; column-gap: 5vw; align-items: end; margin-bottom: 5rem; }
.release-heading .eyebrow { align-self: start; }
.release-heading h2 { grid-column: 2; margin: 0; font-size: clamp(3.2rem, 8vw, 8.5rem); letter-spacing: .025em; text-transform: uppercase; }
.release-heading h2 em { font-family: inherit; text-transform: none; font-weight: 400; }
.release-deck { grid-column: 2; max-width: 780px; margin-top: 2rem; font: 1.08rem/1.62 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; }
.release-deck .release-lede { font-size: clamp(1.25rem, 2vw, 1.7rem); font-style: italic; }
.release-deck .invitation { margin-top: 2rem; color: var(--acid); font-style: italic; }
.artifact-stage { position: relative; max-width: 1160px; margin: 0 auto; }
.book-shell { width: min(70vw, 680px); aspect-ratio: 1800 / 2340; margin: auto; position: relative; perspective: 1800px; filter: drop-shadow(0 30px 35px rgba(0, 0, 0, .58)); }
.book-page { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; overflow: hidden; transform-origin: left center; }
.book-page img { width: 100%; height: 100%; object-fit: cover; }
.book-page.front { z-index: 2; cursor: pointer; transition: transform 1.15s cubic-bezier(.22,.72,.16,1), filter .7s; backface-visibility: hidden; }
.book-shell.turned .front { transform: rotateY(-178deg); filter: brightness(.65); }
.book-page.beneath { z-index: 1; }
.turn-control { display: block; margin: 1.8rem auto 0; border: 0; border-bottom: 2px solid var(--paper); padding: .5rem 0; background: none; color: var(--paper); cursor: pointer; text-transform: uppercase; font-weight: 850; letter-spacing: .08em; }

.threshold { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); align-items: start; gap: clamp(2.5rem, 6vw, 7rem); padding: clamp(4rem, 7vw, 8rem) clamp(1.2rem, 5vw, 6rem); background: #121313; }
.threshold > img { position: sticky; top: 2rem; width: 100%; height: auto; object-fit: contain; object-position: center top; background: #090a0b; }
.threshold-copy { width: min(100%, 660px); padding: 0; align-self: start; }
.threshold-copy h2, .studio h2, .signal h2 { font-size: clamp(3rem, 6vw, 6.5rem); letter-spacing: .025em; }
.threshold-copy > p:not(.eyebrow):not(.status-note) { font: 1.08rem/1.62 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; max-width: 620px; }
.spec-title { margin: 3rem 0 1rem; color: var(--acid); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; }
dl { border-top: 1px solid var(--line); margin: 3rem 0 0; }
dl div { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
dt { color: #9c9c98; text-transform: uppercase; font-size: .69rem; letter-spacing: .16em; }
dd { margin: 0; }
.status-note { margin-top: 2rem; color: var(--acid); font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; }
.purchase-actions, .signal-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.purchase-actions .button { margin-top: 0; }
.button.outline { color: var(--paper); }
.button:disabled { opacity: .62; cursor: wait; }
.commerce-notice { position: fixed; z-index: 30; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(92vw, 720px); margin: 0; padding: 1rem 1.2rem; border: 1px solid var(--acid); background: var(--ink); color: var(--paper); font: .9rem/1.45 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; box-shadow: 0 1rem 3rem rgba(0,0,0,.5); }
.purchase-terms { margin-top: 1rem; font-size: .76rem; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; }
.purchase-terms a, footer a { color: inherit; }
.legal-page { background: var(--ink); color: var(--paper); }
.legal-main { width: min(900px, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(8rem, 14vw, 11rem) 0 6rem; }
.legal-main > h1 { max-width: 13ch; font-size: clamp(3.4rem, 9vw, 7.5rem); margin: .2em 0 .35em; }
.legal-updated { color: var(--acid); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }
.legal-main section { border-top: 1px solid var(--line); padding: 2rem 0; }
.legal-main section h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); margin: 0 0 .6em; }
.legal-main section p, .legal-main section li { max-width: 70ch; font-size: clamp(1rem, 2vw, 1.16rem); line-height: 1.65; }
.legal-main section a { color: var(--paper); }
.legal-main li + li { margin-top: .65rem; }
.legal-return { margin-top: 2rem; }

.studio { padding: clamp(5rem, 8vw, 8rem) clamp(1.2rem, 7vw, 8rem); }
.studio-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.studio-intro h2 { margin-bottom: 0; }
.studio-copy { max-width: 720px; font: 1.08rem/1.62 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; }
.studio-copy p:last-child { margin-bottom: 0; }
.forms { margin-top: 6rem; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.forms article { min-height: 360px; padding: clamp(2rem, 3vw, 3.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.forms h3 { margin: 0 0 1.25rem; font-size: clamp(2rem, 3vw, 3rem); letter-spacing: .025em; }
.forms p { max-width: 24ch; margin-bottom: 0; color: #b7b5ae; line-height: 1.5; }

.signal { padding: clamp(6rem, 13vw, 13rem) clamp(1.2rem, 7vw, 8rem); background: var(--ink); color: var(--paper); border-top: 1px solid var(--line); }
.signal .eyebrow { color: var(--acid); }
.signal h2 { max-width: 1100px; }
.signal-copy { max-width: 760px; font: 1.15rem/1.6 "Phanicom Rounded", "Arial Rounded MT Bold", sans-serif; }
.button.light { background: var(--paper); color: var(--ink); }
.button.dark { background: var(--ink); color: var(--paper); }
footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; padding: 2rem clamp(1.2rem, 4vw, 4.5rem); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }
.footer-forms { color: var(--paper); font-weight: 800; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; gap: 1rem; }
  .site-header nav { max-width: 68vw; overflow-x: auto; padding-bottom: .25rem; }
  .hero { min-height: 820px; }
  .release-heading, .studio-intro, .section-intro, .catalogue-heading { display: block; }
  .release-heading h2, .release-deck { grid-column: auto; }
  .section-intro > p:last-child, .catalogue-heading > p:last-child { margin-top: 1.5rem; }
  .work-feature { grid-template-columns: 1fr; }
  .work-feature:nth-child(even) .work-image { order: initial; }
  .work-image, .work-image img { min-height: 430px; }
  .phaneroscape-montage { min-height: 620px; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; padding-top: 4.8rem; }
  .product-hero-art, .product-hero-art img { min-height: 56svh; }
  .product-facts { grid-template-columns: 1fr; }
  .product-facts > div { min-height: 0; }
  .threshold { grid-template-columns: 1fr; gap: 3rem; padding: 4.5rem 1.2rem; }
  .threshold > img { position: static; max-height: none; }
  .forms { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 500px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(8, 9, 10, .92), rgba(8, 9, 10, .36) 72%, transparent);
  }
  .site-header .wordmark {
    max-width: 52vw;
    font-size: clamp(1.05rem, 6.2vw, 1.42rem);
    line-height: 1;
    letter-spacing: .025em;
    white-space: nowrap;
  }
  .site-header nav { width: 100%; max-width: 100%; gap: 1.1rem; font-size: .64rem; letter-spacing: .08em; white-space: nowrap; }
  .hero {
    min-height: 100svh;
    align-items: end;
    padding: 6.5rem 1rem max(2rem, env(safe-area-inset-bottom));
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, .26) 28%, rgba(0, 0, 0, .9) 62%, rgba(0, 0, 0, .98) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .08));
  }
  .hero-art img {
    object-position: 61% center;
    transform: none;
    filter: contrast(1.12) saturate(1.12);
  }
  .hero-copy { width: 100%; max-width: none; }
  .hero .eyebrow { margin-bottom: .75rem; font-size: .66rem; line-height: 1.35; }
  h1 { max-width: 100%; margin-bottom: 1rem; font-size: clamp(3rem, 15vw, 4rem); }
  .hero .lede { margin-bottom: .7rem; font-size: clamp(1rem, 4.7vw, 1.2rem); line-height: 1.18; }
  .hero-description { font-size: .86rem; line-height: 1.42; }
  .hero .button { width: 100%; margin-top: .85rem; padding: .9rem 1rem; text-align: center; }
  .hero-index { display: none; }
  .book-shell { width: 88vw; }
  .current-works { padding: 4.5rem 1rem; }
  .section-intro h2 { font-size: clamp(2.4rem, 12vw, 3.2rem); overflow-wrap: anywhere; }
  .work-image, .work-image img { min-height: 330px; }
  .phaneroscape-montage { min-height: 450px; }
  .montage-archive { top: 5%; left: 2%; width: 92%; height: 62%; }
  .montage-room { right: 1%; bottom: 4%; width: 88%; height: 52%; }
  .work-copy h3 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .work-actions .button { width: 100%; text-align: center; }
  .catalogue-main { padding: 9.5rem 1rem 4rem; }
  .catalogue-item { padding: 1rem; }
  .product-hero { padding-top: 7.1rem; }
  .product-hero-art, .product-hero-art img { min-height: 48svh; }
  .product-hero-copy { padding: 3rem 1rem; }
  .product-hero-copy h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .product-facts > div { padding: 3rem 1rem; }
  .forms { grid-template-columns: 1fr; }
  .forms article { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book-page.front { transition: none; }
}
