:root {
  --teal: #2597A8;
  --teal-deep: #176B78;
  --teal-dark: #0E4C56;
  --ink: #101618;
  --ink-2: #0A0F11;
  --paper: #EDEDED;
  --slate: #AAB9BD;
  --muted: #4F5B5E;
  --bad: #A23B2A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Satoshi', system-ui, sans-serif;
  background: var(--teal);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.caps { font-family: 'BigShoulders', 'Satoshi', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }

/* grounds */
.teal { background: var(--teal); color: var(--ink); }
.paper { background: var(--paper); color: var(--ink); }
.ink { background: var(--ink); color: var(--paper); }
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("grain.png"); background-size: 256px; mix-blend-mode: multiply; opacity: 0.5;
}
section { padding: 72px 0; }
.teal-t { color: var(--teal); }
.ink .teal-t { color: #46B5C6; }
.paper .eyebrow.teal-t, .paper .opt, .exit-card .eyebrow.teal-t { color: var(--teal-deep); }
.paper-ink { color: var(--paper); }

.eyebrow { font-size: 18px; margin-bottom: 14px; }
.display {
  font-family: 'BigShoulders', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(50px, 14vw, 136px); line-height: 0.9; letter-spacing: -0.005em;
}
.h2 { font-weight: 900; font-size: clamp(32px, 7vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.h2.big { font-size: clamp(44px, 11vw, 84px); }
.lede { margin-top: 18px; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; font-weight: 500; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; color: #9AA6A9; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(37, 151, 168, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(16, 22, 24, 0.18); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brands { display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; background: var(--paper); border-radius: 999px; padding: 8px 14px 8px 10px; }
.logo img { height: 28px; width: auto; display: block; }
.arabica-mark { height: 44px; width: 44px; border-radius: 50%; display: block; box-shadow: 0 2px 8px rgba(16, 22, 24, 0.25); }
.foot-logos { display: flex; align-items: center; gap: 16px; }
.foot .arabica-mark { height: 52px; width: 52px; }
.pill { font-size: 16px; padding: 10px 18px; background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 999px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: 'BigShoulders', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 18px 22px 18px 26px; border: 0; cursor: pointer; text-decoration: none; line-height: 1;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--teal-dark); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn .arr { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--ink); font-family: 'Satoshi', sans-serif; font-size: 22px; letter-spacing: 0; }
.btn:focus-visible, .chip:focus-visible, .pill:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.paper .btn:focus-visible { outline-color: var(--teal); }
.wide { width: 100%; }

/* HERO */
.hero { padding: 36px 0 56px; }
.hero-eyebrow { font-size: clamp(18px, 5vw, 32px); line-height: 1.02; letter-spacing: 0.26em; font-weight: 700; }
.hero .display { margin-top: 14px; font-size: clamp(40px, 11.2vw, 116px); }
.hero-img { margin: 28px -20px 0; }
.hero-img img { width: 100%; }
.when { margin-top: 30px; display: grid; gap: 22px; align-items: center; }
.hero .facts { margin-top: 26px; }
.facts a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--ink); align-items: baseline; }
.facts dt { font-size: 15px; opacity: 0.75; }
.facts dd { font-size: clamp(20px, 4.6vw, 26px); letter-spacing: 0.08em; }
.hero .btn { margin-top: 30px; }

/* extruded numerals, after the 404 poster */
.xnum {
  --face: var(--paper); --ext: var(--ink); --line: var(--teal);
  display: inline-flex; align-items: baseline;
  font-family: 'Satoshi', sans-serif; font-weight: 900; font-style: normal;
  font-size: clamp(120px, 38vw, 230px); line-height: 0.85; letter-spacing: -0.04em;
  transform: skewX(-10deg); padding-right: 0.14em;
}
.xnum > span { position: relative; color: var(--face); text-shadow:
  0.008em 0.008em 0 var(--ext), 0.016em 0.016em 0 var(--ext), 0.024em 0.024em 0 var(--ext), 0.032em 0.032em 0 var(--ext),
  0.040em 0.040em 0 var(--ext), 0.048em 0.048em 0 var(--ext), 0.056em 0.056em 0 var(--ext), 0.064em 0.064em 0 var(--ext),
  0.072em 0.072em 0 var(--ext), 0.080em 0.080em 0 var(--ext), 0.088em 0.088em 0 var(--ext), 0.096em 0.096em 0 var(--ext),
  0.104em 0.104em 0 var(--ext), 0.112em 0.112em 0 var(--ext), 0.120em 0.120em 0 var(--ext); }
.xnum > span[data-n]::after {
  content: attr(data-n); position: absolute; left: 0; top: 0; color: transparent; text-shadow: none;
  -webkit-text-stroke: 0.012em var(--line); transform: translate(-0.035em, 0.035em); pointer-events: none;
}
.xnum .sep { color: var(--ink); text-shadow: none; margin: 0 0.02em; }
.xnum--teal { --face: var(--teal); --ext: var(--ink); --line: var(--paper); }
.xnum.sm { font-size: 92px; }
.xnum.mid { font-size: 120px; }

/* find us: map after the glowing pin reference, in Akiba colours */
.find .h2 { max-width: 18ch; }
.map { position: relative; display: block; margin-top: 26px; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid #1E2629; text-decoration: none; }
.map svg { width: 100%; height: 100%; display: block; }
.map .ring { transform-origin: 330px 225px; animation: ring 2.6s ease-out infinite; }
.map .ring.r2 { animation-delay: 1.3s; }
.map .pin { animation: bob 2.6s ease-in-out infinite; }
@keyframes ring { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
.map-chip { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: rgba(10, 15, 17, 0.86); border: 1px solid #22313A; color: var(--paper); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.map-chip b { font-weight: 700; font-size: 17px; }
.map-chip span { font-size: 14px; color: #46B5C6; }
.map:hover .map-chip { border-color: var(--teal); }
.map:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.dir { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.dir .btn { font-size: 20px; padding: 16px 16px 16px 20px; }
.btn--teal { background: var(--teal); color: var(--ink); }
.btn--teal:hover { background: #46B5C6; }
.btn--line-paper { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.btn--line-paper:hover { background: #1A2427; }

/* full width photos */
.photo-wide { margin-top: 28px; border-radius: 16px; overflow: hidden; }
.photo-wide img { width: 100%; }

/* intro */

/* cards, after the "AI Browser Content" card */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 8px; }
.card { background: var(--ink-2); border: 1px solid #1E2629; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.card-panel { position: relative; margin: 10px 10px 0; border-radius: 14px; aspect-ratio: 4 / 3; overflow: hidden; background: #E4DFD3; }
.card-panel.photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-weight: 500; font-size: 26px; letter-spacing: -0.01em; color: var(--paper); }
.chip { align-self: flex-start; margin-top: auto; font-size: 13px; padding: 9px 14px; border-radius: 8px; background: #1E2629; color: var(--paper); text-decoration: none; }
.chip:hover { background: var(--teal-dark); }

/* the tumbling coin */
.coin-stage { display: grid; place-items: center; perspective: 900px; background: radial-gradient(circle at 50% 40%, #EFEBE2, #DCD5C6); }
.coin3d { position: relative; width: 46%; aspect-ratio: 1; transform-style: preserve-3d; animation: tumble 9s ease-in-out infinite; }
.coin-face { position: absolute; inset: 0; backface-visibility: hidden; }
.coin-face img { width: 100%; height: 100%; filter: drop-shadow(0 0 1px rgba(0,0,0,0.25)); }
.coin-face.front { transform: translateZ(14px); }
.coin-face.back { transform: rotateY(180deg) translateZ(14px); }
.coin-edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.coin-edge i { position: absolute; inset: 1.5%; border-radius: 50%; background: radial-gradient(circle, #5E6669 60%, #8D979A 66%, #C9D0D2 70%, #7E888B 74%); }
.coin-shadow { position: absolute; width: 44%; height: 8%; bottom: 13%; left: 28%; border-radius: 50%; background: rgba(60, 50, 30, 0.28); filter: blur(10px); animation: shadow 9s ease-in-out infinite; }
@keyframes tumble {
  0%   { transform: rotateX(18deg) rotateY(-28deg) rotateZ(-8deg) translateY(0); }
  25%  { transform: rotateX(-14deg) rotateY(34deg) rotateZ(6deg) translateY(-6%); }
  50%  { transform: rotateX(22deg) rotateY(160deg) rotateZ(-4deg) translateY(0); }
  75%  { transform: rotateX(-10deg) rotateY(214deg) rotateZ(8deg) translateY(-6%); }
  100% { transform: rotateX(18deg) rotateY(332deg) rotateZ(-8deg) translateY(0); }
}
/* Arabica's coin: maroon rim, warm stage, half a beat behind the Akiba coin */
.coin-stage.arabica { background: radial-gradient(circle at 50% 40%, #F4ECE6, #E2D3C8); }
.arabica .coin-edge i { background: radial-gradient(circle, #4A1417 60%, #7A2A2F 66%, #B8676B 70%, #6A2226 74%); }
.arabica .coin3d, .arabica .coin-shadow { animation-delay: -4.5s; }
@keyframes shadow { 0%, 50%, 100% { transform: scale(1); opacity: 1; } 25%, 75% { transform: scale(0.82); opacity: 0.7; } }

/* timeline */
.timeline { list-style: none; margin-top: 30px; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(16, 22, 24, 0.25); }
.timeline time { font-family: 'BigShoulders', sans-serif; font-weight: 700; font-size: 38px; line-height: 0.9; color: var(--teal); }
.timeline h3 { font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.timeline p { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* RSVP */
.rsvp-sec { padding-bottom: 96px; }
form { margin-top: 30px; }
.field { display: block; padding: 14px 0 12px; border-bottom: 1px solid var(--ink); border-top: 0; }
form > .pair, form > .field:first-child { border-top: 1px solid var(--ink); }
.field.plain { border: 0; padding-bottom: 6px; margin-top: 18px; }
.field.plain legend { float: left; width: 100%; }
.field.plain .choice { clear: both; padding-top: 10px; margin-top: 0; }
.field label, .field legend { display: block; font-size: 17px; }
.opt { color: var(--muted); }
.field input { width: 100%; margin-top: 6px; border: 0; background: transparent; font: 500 21px 'Satoshi', sans-serif; color: var(--ink); padding: 6px 0 4px; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: #8A9598; }
.field:focus-within { border-bottom: 2px solid var(--teal); padding-bottom: 11px; }
.field.bad label { color: var(--bad); }
.field.bad { border-bottom-color: var(--bad); }
.msg { display: block; margin-top: 4px; font-size: 15px; color: var(--bad); }
.msg:empty { display: none; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.pair .field { min-width: 0; }
.choice { display: flex; gap: 10px; margin-top: 10px; }
.choice { position: relative; }
.choice input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.choice label { flex: 1; min-width: 0; text-align: center; padding: 14px 8px; border: 1.5px solid var(--ink); font-family: 'BigShoulders', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.choice input:checked + label { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
/* photos and video: a green box and a red box */
.lights label { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; letter-spacing: 0.08em; padding: 16px 8px; }
.lights label i { width: 16px; height: 16px; flex: none; border: 2px solid currentColor; }
.lights .go { border-color: #1F8A4C; color: #176A3A; }
.lights .stop { border-color: #C4382F; color: #A12A22; }
.lights .go i { background: #1F8A4C; border-color: #1F8A4C; }
.lights .stop i { background: #C4382F; border-color: #C4382F; }
.lights input:checked + .go { background: #1F8A4C; color: #fff; }
.lights input:checked + .stop { background: #C4382F; color: #fff; }
.lights input:checked + label i { background: #fff; border-color: #fff; }
.field.media.bad .lights label { border-style: dashed; }
.note-opt { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 17px; line-height: 1.4; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.consent small { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { margin-top: 30px; }
button[disabled] { opacity: 0.6; cursor: wait; }
.formerr { margin-top: 14px; font-size: 16px; color: var(--bad); }
.formerr:empty { display: none; }
.fine { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.done { margin-top: 34px; border-top: 2px solid var(--ink); padding-top: 26px; }
.done .btn { margin-top: 26px; }

/* footer */
.foot { padding: 40px 0 48px; }
.foot-in { display: grid; gap: 16px; }
.foot img { height: 30px; width: auto; }
.foot p { font-size: 14px; color: var(--slate); line-height: 1.8; }

/* exit */
.exit { position: fixed; inset: 0; z-index: 50; background: rgba(10, 15, 17, 0.72); display: grid; place-items: center; padding: 16px; animation: fade .25s ease; }
.exit[hidden] { display: none; }
.exit-card { position: relative; width: min(520px, 100%); background: var(--paper); padding: 30px 24px 26px; text-align: center; animation: rise .35s cubic-bezier(.2, .9, .3, 1.2); }
.exit-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; cursor: pointer; color: var(--ink); }
.exit-art { display: flex; align-items: center; justify-content: center; gap: 0; height: 150px; }
.exit-art canvas { width: 130px; height: 130px; }
.exit-card .h2 { font-size: clamp(26px, 6vw, 34px); margin-top: 6px; }
.exit-card .eyebrow { margin: 6px 0 0; font-size: 15px; }
.exit-card .lede { font-size: 17px; margin-top: 10px; }
.exit-btns { display: grid; gap: 10px; margin-top: 22px; }
.exit-btns .btn { justify-content: center; font-size: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@media (prefers-reduced-motion: reduce) {
  .coin3d, .coin-shadow, .exit, .exit-card, .map .ring, .map .pin { animation: none; }
  .map .ring { opacity: 0; }
  .coin3d { transform: rotateX(14deg) rotateY(-24deg); }
}

/* desktop */
@media (min-width: 860px) {
  section { padding: 110px 0; }
  .wrap { padding: 0 40px; }
  .hero { padding: 64px 0 96px; }
  .hero-img { margin: 34px 0 0; }
  .hero .facts { max-width: 760px; }
  .find .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 56px; align-items: end; }
  .find .eyebrow, .find .h2 { grid-column: 1; }
  .find .map { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; aspect-ratio: 10 / 7; }
  .find .dir { grid-column: 1; grid-row: 3; align-self: end; }
  .when { grid-template-columns: auto 1fr; gap: 48px; margin-top: 44px; }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .timeline { columns: 1; }
  .foot-in { grid-template-columns: auto 1fr; align-items: center; }
  .foot p { text-align: right; }
  .exit-btns { grid-template-columns: 1fr 1fr; }
}

/* breakdown flows straight into the RSVP now that bingo is gone */
section.paper + section.paper { padding-top: 28px; }

/* copy runs justified, edge to edge */
.lede, .mono, .timeline p, .fine, .consent small, .note-opt, .done .lede { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
