/* H+Co event-site style: VC Nudge headings, Manrope body, Suisse Mono countdown.
   Fonts are loaded from the same files the 2025 Christmas site uses. */
@font-face {
  font-family: "VC Nudge Black";
  src: url("https://framerusercontent.com/assets/RxqZipagO1fpfAvX1b71T4YYU0.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl Mono";
  src: url("https://framerusercontent.com/assets/rMpmK13qlIDV7NIS2PQxVETNxV8.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* mahogany + burgundy, cream type, peach accent */
  --text: #f7ecdc;
  --muted: rgba(247, 236, 220, .6);
  --line: rgba(255, 255, 255, .15);
  --accent: #e09a62;
  --deep: #1a0709;
  --pad: 40px;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(141% 46% at 18.6% 46.9%, #7b2c22 12.4%, #5e1722 33.6%, var(--deep) 100%);
  background-color: var(--deep);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* ───────── hero: layered scene ───────── */
.hero { position: relative; height: 230svh; background: var(--deep); }
.hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  --fw: min(340px, 70vw);          /* the ruled frame, golden-ish proportion */
  --fh: calc(var(--fw) * 1.365);
}
.hero__bg { position: absolute; inset: -3%; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.92) brightness(.86); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(75% 65% at 50% 45%, transparent 40%, rgba(18, 5, 8, .55) 100%); }
.hero__art { position: absolute; inset: 0; }
.cut {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(15, 3, 5, .45));
  animation: rise 1.5s cubic-bezier(.2, .7, .1, 1) both;
  will-change: transform;
}
.cut--cupid   { width: 24vh; left: calc(50% + 12vh); top: 8vh; animation-delay: 1.9s; }
.cut--graces  { height: 92vh; right: calc(50% + var(--fw) / 2 - 3vh); bottom: -9vh; animation-delay: 1.5s; }
/* the figure's canvas ends in a straight cut on this side: keep that edge past the right of the screen */
.cut--bacchus { height: 80vh; right: -6vh; bottom: -7vh; scale: -1 1; animation-delay: 1.65s; }
.cut--pair    { width: 14vh; left: calc(50% - var(--fw) / 2 - 11vh); bottom: 9vh; rotate: -16deg; animation-delay: 2.1s; }
.cut--peaches { width: 62vh; left: -12vh; bottom: -16vh; animation-delay: 1.8s; filter: drop-shadow(0 20px 28px rgba(15, 3, 5, .5)) blur(1.2px) brightness(.88); }
.cut--citrus  { width: 50vh; left: calc(50% + 2vh); bottom: -19vh; animation-delay: 1.95s; filter: drop-shadow(0 20px 28px rgba(15, 3, 5, .5)) blur(.8px) brightness(.92); }

.hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: var(--ui, 1);
  pointer-events: none;
}
.hero__lines * { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.4, 0, .1, 1) forwards; }
.hero__lines .is-frame { stroke: #fff; animation-duration: 1.2s; }

.frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--fw);
  height: var(--fh);
  translate: -50% -50%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  color: #fff;
  text-shadow: 0 1px 14px rgba(12, 3, 5, .85), 0 0 2px rgba(12, 3, 5, .6);
  opacity: var(--ui, 1);
  animation: appear 1s ease 1.1s both;
}
.frame h1 {
  font-family: "VC Nudge Black", "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  font-size: calc(var(--fw) * .15);
  line-height: .92;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.frame h1 span { display: block; }
.frame__sub { margin-top: 14px; font-size: 13px; line-height: 1.5; letter-spacing: .04em; }
.frame__sub span { display: block; }
.frame__nav { margin-top: auto; display: grid; gap: 2px; }
.frame__nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.frame__nav a::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, .6); translate: 0 -4px; opacity: 0; transition: opacity .25s; }
.frame__nav a:hover::after { opacity: 1; }
.frame__nav i { order: 2; font-family: "Suisse Intl Mono", ui-monospace, Menlo, monospace; font-style: normal; font-weight: 400; font-size: 13px; }

.hero__logo {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  opacity: var(--ui, 1);
}
.hero__veil { position: absolute; inset: 0; background: var(--deep); opacity: var(--veil, 0); pointer-events: none; }
.hero__intro { position: absolute; inset: 0; background: #12050a; pointer-events: none; z-index: -1; }
.hero__bg, .hero__art { animation: reveal 1.6s ease 1.3s both; }

/* ───────── blocks ───────── */
.block { padding: 80px var(--pad) 40px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
h2 {
  font-family: "VC Nudge Black", "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  font-size: 100px;
  line-height: 1.2;
  letter-spacing: .05em;
}
h2 .lc { text-transform: lowercase; }
h3 {
  font-family: "VC Nudge Black", "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 24px 0 8px;
}
.day + .day h3 { margin-top: 64px; }

/* Sydney / Melbourne switch */
.toggle { display: flex; align-items: center; gap: 12px; letter-spacing: .05em; }
.toggle__label { opacity: .5; transition: opacity .3s; cursor: pointer; }
[data-city="syd"] .toggle__label[data-for="syd"],
[data-city="mel"] .toggle__label[data-for="mel"] { opacity: 1; }
.toggle__switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  padding: 2px;
  display: flex;
}
.toggle__switch span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .35s cubic-bezier(.3, 1.3, .5, 1);
}
[data-city="mel"] .toggle__switch span { transform: translateX(18px); }

/* agenda + run sheet rows */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.row__time { color: var(--muted); }
.row__sub { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.row__sub span:not(:last-child)::after { content: "\00a0\00a0·\00a0 "; }
.row__flight {
  display: block;
  margin-top: 8px;
  font-family: "Suisse Intl Mono", ui-monospace, Menlo, monospace;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}
.row__flight b { font-weight: 400; color: var(--text); }

/* links */
main a, .count a, .frame__sub a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(247, 236, 220, .5); transition: color .2s, text-decoration-color .2s; }
main a:hover, .count a:hover, .frame__sub a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* flight card */
a.flight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  text-decoration: none;
  transition: background .25s, border-color .25s;
}
a.flight:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .35); color: inherit; }
.flight__id { display: flex; align-items: center; gap: 7px; padding-right: 12px; border-right: 1px solid var(--line); }
.flight__id img { width: 20px; height: 20px; flex: none; }
.flight__id b { font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.flight__route { display: flex; align-items: center; gap: 9px; }
.flight__stop { display: flex; align-items: baseline; gap: 6px; }
.flight__stop b { font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.flight__stop span { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.flight__line { position: relative; width: 26px; height: 1px; background: rgba(255, 255, 255, .4); }
.flight__line::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid rgba(255, 255, 255, .7); border-right: 1px solid rgba(255, 255, 255, .7); rotate: 45deg; }

/* faqs: the H+Co plus-icon accordion */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-weight: 600;
  line-height: 1.5;
}
.faq__icon { position: relative; width: 16px; height: 16px; transition: transform .35s ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; }
.faq__icon::after { transform: rotate(90deg); transition: transform .35s ease; }
.is-open .faq__icon { transform: rotate(180deg); }
.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { max-width: 720px; padding: 2px 0 18px 40px; font-weight: 500; line-height: 1.5; color: var(--muted); }

/* countdown: four ruled cells, nothing else */
.count { padding: 120px var(--pad) 80px; text-align: center; }
.count__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1160px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .7);
}
.count__grid > div { padding: 28px 8px 22px; border-left: 1px solid rgba(255, 255, 255, .35); }
.count__grid > div:first-child { border-left: 0; }
.count__grid b {
  display: block;
  font-family: "VC Nudge Black", "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 13vw, 190px);
  line-height: .95;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.count__grid span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* very bottom: Vitruvian drawing */
.vitruvian { padding: 40px var(--pad) 96px; display: grid; place-items: center; }
.vitruvian img { width: min(640px, 100%); height: auto; }

/* closing still life along the bottom edge */
.table { position: relative; height: 27vw; overflow: hidden; margin-top: -3vw; }
.table { cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.piece { position: absolute; filter: drop-shadow(0 18px 26px rgba(15, 3, 5, .6)); }
.piece img { display: block; width: 100%; height: auto; pointer-events: none; }
.piece__empty { position: absolute; inset: 0; }
.piece__full { position: relative; }
.piece__solo + .piece__solo { position: absolute; inset: 0; }
.bit, .bit__half { position: absolute; inset: 0; pointer-events: none; }
.bit__half { will-change: transform; }
.slash {
  position: absolute;
  height: 2px;
  width: 220px;
  margin: -1px 0 0 -110px;
  background: linear-gradient(90deg, transparent, #fff 30%, #fff 70%, transparent);
  pointer-events: none;
  z-index: 5;
}
.table__ewer    { width: 17vw; left: 20vw; bottom: -1vw; transition-delay: .05s; }
.table__peaches { width: 31vw; left: -3vw; bottom: -2vw; transition-delay: .12s; }
.table__lemons  { width: 22vw; left: 60vw; bottom: -1vw; transition-delay: .2s; }
.table__citrus  { width: 31vw; left: 33vw; bottom: -3vw; transition-delay: .28s; }
.table__coorte  { width: 23vw; left: 79vw; bottom: 2vw; transition-delay: .36s; }

/* motion */
.fade, .row, .faq__item, .day h3 { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.is-in, .day h3.is-in { opacity: 1; transform: none; }
.swap { transition: opacity .25s ease; }
.swap.is-out { opacity: 0; }
@keyframes rise { from { opacity: 0; translate: 0 70px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes reveal { from { opacity: 0; } }
@keyframes appear { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 809px) {
  :root { --pad: 20px; }
  .hero__logo { top: 22px; font-size: 10px; }
  .hero__stage { --fw: 60vw; }
  .frame { top: 37%; padding: 16px; }
  .frame__sub { font-size: 11px; }
  .frame__nav a { font-size: 15px; }
  .cut--cupid { width: 28vw; left: auto; right: 3vw; top: 7vh; }
  .cut--graces { height: 50vh; right: 50vw; bottom: -4vh; }
  .cut--bacchus { height: 43vh; right: -8vw; bottom: -5vh; }
  .cut--pair { display: none; }
  .cut--peaches { width: 62vw; left: -22vw; bottom: -8vh; }
  .cut--citrus { display: none; }
  .block { padding-top: 40px; }
  h2 { font-size: 72px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .faq__q { grid-template-columns: 32px 1fr; }
  .faq__a p { padding-left: 32px; }
  .count { padding: 72px var(--pad) 48px; }
  .table { height: 50vw; margin-top: 0; }
  .table__ewer { width: 26vw; left: 30vw; bottom: -3vw; }
  .table__peaches { width: 54vw; left: -10vw; bottom: -4vw; }
  .table__citrus { width: 54vw; left: 44vw; bottom: -5vw; }
  .table__lemons, .table__coorte { display: none; }
  .count__grid { grid-template-columns: repeat(2, 1fr); }
  .count__grid > div:nth-child(3) { border-left: 0; }
  .count__grid > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .35); }
  .count__grid b { font-size: 26vw; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
