/* ============================================================
   JAMI & CORP — EDITION 03 · Chrome
   Dark. Word-purged. Crosshair cursor (tag only), shutter,
   bar nav with Contact, blue finale.
   ============================================================ */

body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--paper);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Film grain ---------- */
.grain { position: fixed; inset: -60px; z-index: 400; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite; }
@keyframes grain-shift { 0%{transform:translate(0,0)} 25%{transform:translate(-18px,12px)} 50%{transform:translate(12px,-16px)} 75%{transform:translate(-10px,-10px)} 100%{transform:translate(0,0)} }

/* ---------- Type ---------- */
.t-colossal { font-family: var(--f-disp); font-weight: 300; font-size: var(--t-colossal); line-height: 0.8; letter-spacing: -0.02em; }
.t-mega { font-family: var(--f-disp); font-weight: 300; font-size: var(--t-mega); line-height: 0.88; letter-spacing: -0.02em; }
.t-big  { font-family: var(--f-disp); font-weight: 400; font-size: var(--t-big); line-height: 0.94; letter-spacing: -0.015em; }
.t-mid  { font-family: var(--f-disp); font-weight: 400; font-size: var(--t-mid); line-height: 1.02; }
/* accent voice: same family, light weight, no italics */
em, .it { font-family: var(--f-disp); font-style: normal; font-weight: 300; letter-spacing: 0; }
.mono { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.04em; }
.deva { font-family: var(--f-deva); font-style: normal; }
.blue { color: var(--blue-hi); }
.dim { color: var(--paper-45); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gut); }
.band { padding-block: var(--band); position: relative; }
.panel { background: var(--panel); }

/* ---------- Bar nav: floating glossy pill ---------- */
.bar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 110;
  display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.4rem);
  padding: 0.65rem 1.4rem; border-radius: 999px;
  background: linear-gradient(180deg, #1B1B22 0%, #0C0C10 55%, #08080B 100%);
  box-shadow: inset 0 1px 0 rgba(242, 239, 232, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 14px 40px -12px rgba(0, 0, 0, 0.85); }
.bar__brand { display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.06em; }
/* the loading-screen logo, cropped to a clean strip so it reads at nav size */
.bar__logo { width: clamp(108px, 13vw, 132px); height: 28px; object-fit: cover;
  object-position: center; display: block; background: none; }
.bar__links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.bar__links a { font-family: var(--f-mono); font-size: var(--t-label); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--paper-70); padding: 0.35em 0; position: relative;
  transition: color var(--ui) var(--ease-out); }
.bar__links a:hover, .bar__links a[aria-current="page"] { color: var(--paper); }
.bar__links a[aria-current="page"] { font-weight: 600; }
/* small glowing tab above the active item */
.bar__links a::after { content: ""; position: absolute; left: 50%; top: -0.72rem;
  width: 16px; height: 3px; margin-left: -8px; border-radius: 0 0 3px 3px;
  background: var(--paper); box-shadow: 0 2px 10px rgba(242, 239, 232, 0.8);
  transform: scaleX(0); transition: transform var(--ui) var(--ease-out); }
.bar__links a:hover::after, .bar__links a[aria-current="page"]::after { transform: scaleX(1); }
.bar__burger { display: none; font-family: var(--f-mono); font-size: var(--t-label);
  text-transform: uppercase; letter-spacing: 0.2em; cursor: pointer; }

/* Takeover menu — black screen, white type, blue on hover */
.takeover { position: fixed; inset: 0; z-index: 300; background: var(--night); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(4.5rem, 12vh, 8rem) var(--gut) clamp(4.5rem, 12vh, 7rem);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease-inout); visibility: hidden; }
.takeover.open { clip-path: inset(0 0 0% 0); visibility: visible; }
.takeover__inner { width: 100%; max-width: 1100px; margin: auto 0;
  display: flex; flex-direction: column; }
.takeover a { position: relative; display: flex; align-items: baseline; gap: 0.8em;
  font-family: var(--f-disp); font-weight: 400; font-size: clamp(2.1rem, 9vw, 5rem);
  line-height: 1.06; letter-spacing: -0.02em; color: var(--paper);
  padding: clamp(0.5rem, 1.6vh, 1rem) 0; border-top: 1px solid rgba(242, 239, 232, 0.14);
  transition: color var(--ui) var(--ease-out); }
.takeover a:last-of-type { border-bottom: 1px solid rgba(242, 239, 232, 0.14); }
.takeover a::before { content: attr(data-i); font-family: var(--f-mono);
  font-size: clamp(0.6rem, 1.1vw, 0.72rem); font-weight: 400; letter-spacing: 0.24em;
  color: var(--paper-45); transition: color var(--ui) var(--ease-out); }
.takeover a::after { content: "→"; margin-left: auto; font-size: 0.5em; color: var(--blue-hi);
  opacity: 0; transform: translateX(-16px);
  transition: opacity var(--ui) var(--ease-out), transform var(--ui) var(--ease-out); }
@media (hover: hover) {
  .takeover a:hover { color: var(--blue-hi); }
  .takeover a:hover::before { color: var(--blue-hi); }
  .takeover a:hover::after { opacity: 1; transform: translateX(0); }
}
.takeover a:active { color: var(--blue-hi); }
.takeover a:active::after { opacity: 1; transform: translateX(0); }
/* close control */
.takeover__close { position: absolute; top: clamp(16px, 4vw, 26px); right: max(var(--gut), 18px); z-index: 2;
  width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(242, 239, 232, 0.28); background: transparent; display: grid; place-items: center;
  transition: border-color var(--ui) var(--ease-out), background var(--ui) var(--ease-out), transform var(--fast) var(--ease-out); }
.takeover__close::before, .takeover__close::after { content: ""; position: absolute;
  width: 18px; height: 1.5px; background: var(--paper); transition: background var(--ui) var(--ease-out); }
.takeover__close::before { transform: rotate(45deg); }
.takeover__close::after { transform: rotate(-45deg); }
.takeover__close:active { transform: scale(0.94); }
@media (hover: hover) { .takeover__close:hover { border-color: var(--blue-hi); background: rgba(39, 64, 199, 0.14); }
  .takeover__close:hover::before, .takeover__close:hover::after { background: var(--blue-hi); } }
/* menu footer */
.takeover__foot { position: absolute; left: var(--gut); right: var(--gut); bottom: max(var(--gut), 20px);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between;
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-45); }
.takeover__foot a { font: inherit; letter-spacing: inherit; border: 0; padding: 0; display: inline; color: var(--paper-70);
  transition: color var(--ui) var(--ease-out); }
.takeover__foot a::before, .takeover__foot a::after { content: none; }
@media (hover: hover) { .takeover__foot a:hover { color: var(--blue-hi); } }

/* ---------- Loader: line-slats sweep in and MERGE to form the logo ---------- */
.shutter { position: fixed; inset: 0; z-index: 500; background: var(--paper);
  display: grid; place-items: center; transition: background 0.6s var(--ease-inout); }
.shutter.is-dark { background: var(--night); }
.shutter__stage { position: relative; display: grid; justify-items: center; }
/* the monogram's own outlines draw on as lines, then resolve to a clean mark */
.shutter__logo { position: relative; width: clamp(160px, 20vw, 270px); }
.shutter__logo svg { position: relative; width: 100%; height: auto; display: block; overflow: visible; }
.shutter__logo path { fill: none; stroke: #0B0B0C; stroke-width: 8;
  stroke-linecap: round; stroke-linejoin: round; will-change: stroke-dashoffset; }
.shutter__logo .sol { position: absolute; inset: 0; width: 100%; opacity: 0; }
.shutter__word { position: absolute; top: calc(100% + 1.4rem); left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--paper-70); min-height: 1em; white-space: pre; }

/* ---------- Crosshair cursor (tag only, no readouts) ---------- */
.xh { position: fixed; z-index: 450; pointer-events: none; top: 0; left: 0; }
.xh--h { width: 22px; height: 1px; background: var(--paper); margin-left: -11px; }
.xh--v { width: 1px; height: 22px; background: var(--paper); margin-top: -11px; }
.xh--tag { background: var(--blue); color: var(--paper); font-family: var(--f-mono);
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; padding: 0.5em 0.9em;
  transform: translate(-50%, -150%) scale(0); transform-origin: bottom center;
  transition: transform var(--ui) var(--ease-out); white-space: nowrap; }
.xh--tag.on { transform: translate(-50%, -150%) scale(1); }
@media (hover: none), (pointer: coarse) { .xh { display: none !important; } }

/* ---------- Buttons ---------- */
.stampbtn { display: inline-flex; align-items: center; gap: 0.8em; font-family: var(--f-mono);
  font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.16em;
  padding: 1em 1.6em; position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  border: 1.5px solid var(--paper); color: var(--paper);
  transition: transform var(--fast) var(--ease-out), color var(--ui) var(--ease-out), border-color var(--ui) var(--ease-out); }
.stampbtn::before { content: ""; position: absolute; inset: 0; background: var(--blue); z-index: -1;
  clip-path: inset(0 100% 0 0); transition: clip-path 0.3s var(--ease-inout); }
@media (hover: hover) and (pointer: fine) {
  .stampbtn:hover { border-color: var(--blue); }
  .stampbtn:hover::before { clip-path: inset(0 0% 0 0); }
}
.stampbtn:active { transform: scale(0.97); }
.stampbtn--blue { background: var(--blue); border-color: var(--blue); }
.stampbtn--blue::before { background: var(--blue-lo); }

/* ---------- Reveal primitives ---------- */
[data-fx] { will-change: transform, opacity; }
.fx-hidden { opacity: 0; }
.tilemask { position: relative; overflow: hidden; }
.tilemask__cover { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  z-index: 2; pointer-events: none; }
.tilemask__cover i { background: var(--night); }
.marq { overflow: hidden; white-space: nowrap; }
.marq__track { display: inline-flex; will-change: transform; }
.marq__track > * { flex: none; }
.scrib { position: relative; display: inline-block; }
.scrib svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.4em; overflow: visible; }
.scrib svg path { stroke: var(--blue); stroke-width: 3.2; fill: none; stroke-linecap: round; }
.disc { display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%;
  border: 1.5px solid currentColor; font-family: var(--f-mono); font-size: 0.7em; }

/* ---------- Finale: flat colour field poster ----------
   Tall blue field · tiny meta in the top corners · italic
   line low-left · colossal wordmark cropped at the bottom
   edge with a script overlay crossing it. */
.finale__logo { display: block; width: clamp(120px, 15vw, 180px); height: auto;
  margin-bottom: clamp(1.4rem, 4vw, 3rem); }
.finale { background: var(--blue); color: var(--paper); position: relative; overflow: hidden;
  min-height: 96svh; display: flex; flex-direction: column; justify-content: flex-end; }
.finale__meta { position: absolute; top: 1.6rem; font-family: var(--f-mono); font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-70); }
.finale__meta.tl { left: var(--gut); }
.finale__meta.tr { right: var(--gut); text-align: right; }
.finale__invite { padding: 0 var(--gut) clamp(1.6rem, 4vw, 3rem); }
.finale__invite .it { font-size: clamp(1.1rem, 2.2vw, 1.8rem); line-height: 1.3; display: block; max-width: 26ch; }
.finale__mail { display: inline-block; margin-top: 0.8rem; font-family: var(--f-mono);
  font-size: clamp(0.8rem, 1.3vw, 1.05rem); border-bottom: 1.5px solid var(--paper-45);
  padding-bottom: 0.25em; transition: border-color var(--ui) var(--ease-out); }
@media (hover: hover) { .finale__mail:hover { border-color: var(--paper); } }
.finale__markwrap { position: relative; line-height: 0; }
.finale__mark { display: block; width: 100%; line-height: 0.78; text-align: center;
  font-family: var(--f-disp); font-weight: 300; letter-spacing: -0.02em;
  font-size: clamp(3.2rem, 13vw, 14.5rem); white-space: nowrap; color: var(--paper);
  transform: translateY(50%); user-select: none; }
.finale__script { position: absolute; left: 50%; bottom: -0.1em; transform: translateX(-50%) rotate(-9deg);
  font-family: "Mrs Saint Delafield", cursive; font-size: clamp(2.2rem, 7.5vw, 8.5rem);
  line-height: 1; color: var(--night); white-space: nowrap; pointer-events: none; z-index: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .bar__links { display: none; }
  .bar__burger { display: block; }
}

/* Phone nav: a full-width bar, the wordmark on one line, no logo blob.
   (logo-mark.svg is itself a wordmark, so at 26px beside the text it just
   read as a dark smudge — the text carries the brand here.) */
@media (max-width: 640px) {
  .bar { top: 12px; width: 62%; min-width: 226px; max-width: 320px; border-radius: 999px;
    padding: 0.82rem 0.7rem 0.82rem 0.95rem; gap: 0.5rem; justify-content: space-between; }
  .bar__logo { width: clamp(84px, 22vw, 104px); height: 22px; }   /* logo stays on phone */
  .bar__burger { font-size: 0.6rem; letter-spacing: 0.12em; padding: 0.3em 0.5em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .shutter { display: none !important; }
  .grain { animation: none; }
  .xh { display: none !important; }
  .fx-hidden { opacity: 1 !important; }
  .tilemask__cover { display: none !important; }
  [data-fx] { opacity: 1 !important; transform: none !important; }
}

/* parallax wrapper */
.plx { overflow: hidden; }
.plx img { will-change: transform; }
