/* ============================================================
   Brand My Diploma — stylesheet
   Apple-like minimal aesthetic, faithful to the reference site
   ============================================================ */
:root {
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --gray: #6e6e73;
  --gray-light: #86868b;
  --hairline: #e8e8ed;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --blue: #0071e3;
  --blue-dark: #0064c8;
  --green: #1d9e50;
  --red: #c8102e;       /* diploma / cartola red */
  --red-deep: #9e0c24;
  --radius-card: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }

.container { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.wide { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ---------------- Dock nav: liquid glass dynamic island ---------------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center; pointer-events: none;
  padding: 0 14px;
}
.dock {
  pointer-events: auto;
  display: flex; align-items: flex-end; gap: 6px;
  padding: 8px 12px;
  border-radius: 26px;
  position: relative; isolation: isolate;
  /* liquid glass */
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.52));
  backdrop-filter: blur(22px) saturate(200%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, .13),
    0 2px 8px rgba(0, 0, 0, .06),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.35);
  transition: padding .45s cubic-bezier(.32,.72,0,1), border-radius .45s cubic-bezier(.32,.72,0,1),
              gap .45s cubic-bezier(.32,.72,0,1), transform .45s cubic-bezier(.32,.72,0,1);
}
/* specular sheen */
.dock::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%,
              rgba(255,255,255,0) 62%, rgba(255,255,255,.28) 100%);
  mix-blend-mode: overlay;
}
.dock.compact { padding: 5px 9px; gap: 4px; border-radius: 22px; }

.dock-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; color: var(--ink);
  padding: 0 8px 0 4px; height: 44px; white-space: nowrap;
  max-width: 210px; overflow: hidden;
  transition: max-width .45s cubic-bezier(.32,.72,0,1), opacity .3s ease, padding .45s ease;
}
.dock-brand:hover { text-decoration: none; }
.dock-brand svg {
  width: 22px; height: 22px; flex: none;
  transition: transform .2s ease;
}
.dock-brand:hover svg { transform: scale(1.14); }
.dock-brand .bname { transition: opacity .3s ease; }
.dock.compact .dock-brand { max-width: 34px; padding-right: 0; }
.dock.compact .dock-brand .bname { opacity: 0; }

.dock-sep {
  width: 1px; align-self: center; height: 26px; margin: 0 4px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.14), transparent);
  flex: none;
}

.dock-item {
  position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); background: transparent; border: none;
  /* scale only — never width/height, so hovering can never reflow the dock */
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.dock-item:hover {
  background: rgba(0,0,0,.06); color: var(--ink); text-decoration: none;
  transform: scale(1.14);
}
.dock-item svg { width: 18px; height: 18px; }
.dock-item .dock-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: rgba(28,28,30,.92); color: #fff; font-size: 11px; font-weight: 500;
  padding: 5px 9px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(8px);
}
.dock-item:hover .dock-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

.currency-toggle {
  display: flex; align-self: center; background: rgba(0,0,0,.05);
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 2px; flex: none;
}
.currency-toggle button {
  border: none; background: transparent; color: var(--gray);
  width: 26px; height: 22px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.currency-toggle button:hover { color: var(--ink); transform: scale(1.18); }
.currency-toggle button.active { background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.btn-pill-dark {
  align-self: center; flex: none;
  background: var(--ink); color: #fff; border: none;
  border-radius: 999px; padding: 8px 15px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: background .2s ease, transform .2s ease;
}
.btn-pill-dark:hover { background: #000; transform: scale(1.07); }

/* ---------------- Infinite slider (brand strip) ---------------- */
.slider-wrap {
  padding: 104px 22px 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  overflow: hidden;
}
.slider-track {
  display: flex; width: max-content; gap: 24px;
  animation: slide-x 42s linear infinite;
  will-change: transform;
}
@keyframes slide-x { from { transform: translate3d(0,0,0) } to { transform: translate3d(calc(-50% - 12px),0,0) } }

.slide-card {
  width: 120px; height: 120px; border-radius: 14px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; text-align: center;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  color: inherit;
}
/* the only interaction: a sponsor card links to its site */
a.slide-card { cursor: pointer; }
a.slide-card:hover { text-decoration: none; }
.slide-card.ghost, .slide-card.static { pointer-events: none; }
.slide-card .s-logo { width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; }
.slide-card .s-logo svg, .slide-card .s-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.slide-card .s-name { font-size: 10.5px; color: var(--gray); }

/* liquid-glass placeholder card */
.slide-card.ghost {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.65), rgba(245,245,247,.4));
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 18px rgba(0,0,0,.06);
  color: var(--gray);
}
.slide-card.ghost::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.6), transparent 42%, transparent 60%, rgba(255,255,255,.35));
  mix-blend-mode: overlay;
}
.slide-card.ghost::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: ghost-sheen 3.4s ease-in-out infinite;
}
@keyframes ghost-sheen { 0% { left: -50% } 55%, 100% { left: 115% } }
.slide-card.ghost .g-plus {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px dashed rgba(200,16,46,.4); color: rgba(200,16,46,.6);
  display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
}
.slide-card.ghost .g-text { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); }

/* ---------------- Text effect (per char) ---------------- */
.te-char {
  display: inline-block; white-space: pre;
  opacity: 0; filter: blur(9px); transform: translateY(6px);
}
.te-char.in {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity .5s ease, filter .5s ease, transform .5s ease;
}

/* ---------------- Hero ---------------- */
/* these elements are also .container, so keep the side padding */
.hero { text-align: center; padding: 22px 22px 6px; }
.visitors {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray);
}
.visitors .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #2fbf62;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.visitors .total { color: var(--ink-soft); font-weight: 600; margin-left: 10px; }

.hero h1 {
  font-size: clamp(38px, 6vw, 56px); font-weight: 700; letter-spacing: -0.02em;
  margin: 18px 0 10px;
}
.hero .sub { color: var(--ink); font-size: 17px; max-width: 620px; margin: 0 auto; }
.hero .sub.follow { color: var(--gray); font-size: 15px; margin-top: 12px; }

/* fundraiser */
.fundraiser { max-width: 500px; margin: 26px auto 0; }
.fundraiser-top { display: flex; justify-content: space-between; align-items: baseline; }
.raised { color: var(--green); font-weight: 700; font-size: 21px; }
.raised small { color: var(--gray); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.goal { font-size: 12.5px; color: var(--gray); }
.goal b { color: var(--green); font-weight: 700; }
.bar {
  height: 6px; border-radius: 999px; background: var(--hairline);
  margin: 10px 0 8px; overflow: hidden;
}
.bar .fill {
  height: 100%; border-radius: 999px; min-width: 6px;
  background: linear-gradient(90deg, #16a34a, #4ade80, #86efac, #4ade80, #16a34a);
  background-size: 300% 100%;
  animation: barflow 2.6s linear infinite;
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}
@keyframes barflow { from { background-position: 0% 0 } to { background-position: -300% 0 } }
.deadline { font-size: 11.5px; color: var(--gray-light); text-align: center; }

/* ---------------- Diploma visual (portrait folder) ---------------- */
.stage-wrap { padding: 26px 22px 0; }
.stage-wrap.container { max-width: 900px; }
/* Both views share one grid cell, so switching cross-fades in place
   instead of reflowing the page. */
.stage {
  position: relative; max-width: 900px; margin: 0 auto; min-height: 520px;
  display: grid;
}
.stage-view {
  grid-area: 1 / 1; align-self: center;
  transition: opacity .42s ease, transform .42s cubic-bezier(.32,.72,0,1), filter .42s ease;
}
.stage-view.hidden {
  opacity: 0; pointer-events: none;
  transform: scale(.97); filter: blur(6px);
}

/* diploma + cartola + live table, side by side */
.stage-duo {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  flex-wrap: nowrap;
}

/* portrait diploma cover with spots */
.diploma-cover {
  background: linear-gradient(155deg, #d31531, #a90d27 70%, #930a21);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(160, 10, 35, .28), inset 0 1px 0 rgba(255,255,255,.25);
  padding: 20px;
  flex: 0 0 400px; min-width: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}

/* live auction table, docked beside the diploma */
.auction-panel { flex: 1 1 320px; min-width: 300px; }
.spot-tile {
  position: relative;
  background: rgba(255,255,255,.94);
  outline: 1.5px dashed rgba(200, 16, 46, .25);
  outline-offset: -6px;
  border-radius: 10px; padding: 12px 8px 8px;
  min-height: 96px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.spot-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.tile-content {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 8px;
  transition: filter .22s ease, opacity .22s ease;
}
.spot-tile .logo { width: 100%; max-width: 110px; height: 46px; display: flex; align-items: center; justify-content: center; }
.spot-tile .logo svg { max-width: 100%; max-height: 100%; }
.spot-tile .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.spot-tile .price { font-size: 11.5px; color: var(--gray); white-space: nowrap; }
.spot-tile.free .tile-content { justify-content: center; }
.spot-tile.free .plus { font-size: 22px; font-weight: 300; color: rgba(200,16,46,.5); line-height: 1; }
.spot-tile.free { background: rgba(255,255,255,.55); }
.spot-tile.span1 { grid-column: span 1; padding: 8px 4px 6px; }
.spot-tile.span2 { grid-column: span 2; }
.spot-tile.span3 { grid-column: span 3; }
.spot-tile.span6 { grid-column: span 6; min-height: 88px; }
.spot-tile.crest-tile {
  grid-column: span 2; background: transparent; outline: none; cursor: default;
  box-shadow: none; min-height: 110px;
}
.spot-tile.crest-tile:hover { transform: none; box-shadow: none; }
.spot-tile.crest-tile .logo { height: 100px; max-width: none; }

/* hover: blur content + blue pill, same look as "Get a spot" */
.tile-pill {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  background: var(--blue); color: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34, 1.4, .64, 1);
  box-shadow: 0 6px 18px rgba(0, 113, 227, .35);
}
/* only biddable zones blur — the faculty logo is not clickable */
.spot-tile[data-spot]:hover .tile-content,
.spot-tile.focus .tile-content { filter: blur(5px); opacity: .55; }
.spot-tile[data-spot]:hover .tile-pill,
.spot-tile.focus .tile-pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.spot-tile.focus, .band-tile.focus {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px rgba(0,113,227,.55), 0 10px 22px rgba(0,0,0,.18);
}

/* ---------------- 2D cartola with band spots (diploma-sized) ---------------- */
.hat-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 0 0 360px; min-width: 0;
}
.hat2d {
  position: relative; width: 100%; max-width: 360px;
  display: flex; flex-direction: column; align-items: center;
}
.hat-crown {
  width: 306px; max-width: 85%; height: 250px; flex: none;
  background: linear-gradient(155deg, #d31531, #a90d27 75%, #930a21);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 12px 30px rgba(160, 10, 35, .25), inset 0 1px 0 rgba(255,255,255,.25);
}
.hat-band {
  width: 318px; max-width: 89%; height: 84px; flex: none;
  background: #f7f5f0;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 7px; z-index: 1;
}
.band-tile {
  position: relative; width: 56px; height: 66px;
  background: #fff; border-radius: 8px;
  outline: 1.5px dashed rgba(200, 16, 46, .3); outline-offset: -4px;
  cursor: pointer; flex: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.band-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.band-tile .tile-content {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; transition: filter .22s ease, opacity .22s ease; padding: 5px 4px;
}
.band-tile .blogo { width: 100%; height: 30px; display: flex; align-items: center; justify-content: center; }
.band-tile .blogo svg, .band-tile .blogo img,
.band-tile .tile-content > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.band-tile .plus { font-size: 18px; font-weight: 300; color: rgba(200, 16, 46, .5); line-height: 1; }
.band-tile .price { font-size: 9px; color: var(--gray); white-space: nowrap; }
.band-tile:hover .tile-content,
.band-tile.focus .tile-content { filter: blur(4px); opacity: .5; }
.band-tile .tile-pill { padding: 5px 11px; font-size: 10.5px; }
.band-tile:hover .tile-pill,
.band-tile.focus .tile-pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hat-crown-base {
  width: 312px; max-width: 87%; height: 18px;
  background: linear-gradient(180deg, #b30f2a, #930a21);
}
.hat-brim {
  position: relative; width: 100%; height: 28px;
  background: linear-gradient(180deg, #c8102e, #930a21);
  border-radius: 13px / 16px;
  box-shadow: 0 10px 24px rgba(160, 10, 35, .3);
  margin-top: -2px;
}
/* slightly upturned brim edges */
.brim-curl {
  position: absolute; top: -10px; width: 52px; height: 24px;
  background: linear-gradient(180deg, #d31531, #a90d27);
  border-radius: 14px;
}
.brim-curl.left { left: -6px; transform: rotate(14deg); }
.brim-curl.right { right: -6px; transform: rotate(-14deg); }

/* 3D view */
#three-canvas-wrap { width: 100%; height: 560px; border-radius: 14px; overflow: hidden; }
#three-canvas-wrap canvas { display: block; }

/* toggle under stage */
.stage-toggle-wrap { text-align: center; margin-top: 26px; }
.seg-toggle {
  display: inline-flex; background: var(--bg-soft); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 3px;
}
.seg-toggle button {
  border: none; background: transparent; color: var(--ink-soft);
  border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 500;
}
.seg-toggle button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); font-weight: 600; }
.stage-caption { font-size: 11.5px; color: var(--gray-light); margin-top: 10px; }

/* live auction table, in its own section under the stage */
.auction-section { padding: 40px 22px 46px; }
.auction-section.container { max-width: 1080px; }
.auction-card.scroll-cap { margin-top: 0; }   /* all 15 spots visible, no inner scroll */

.btn-blue {
  background: var(--blue); color: #fff; border: none; border-radius: 999px;
  padding: 10px 22px; font-size: 14px; font-weight: 600;
}
.btn-blue:hover { background: var(--blue-dark); }

/* ---------------- Time-machine carousel (images only, no dark shell) ---------------- */
.tm-wrap { margin-top: 34px; display: flex; flex-direction: column; align-items: center; }
.tm-carousel {
  position: relative; width: 100%; max-width: 1020px; height: 600px;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 10px;
}
.tm-stage {
  position: relative; flex: 1; max-width: 900px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tm-card {
  position: absolute; width: min(820px, calc(100vw - 150px)); height: 500px; border-radius: 20px;
  overflow: hidden; pointer-events: none;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.3, 1.15, .45, 1), opacity .45s ease;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
  background: var(--bg-soft);
}
.tm-card img { width: 100%; height: 100%; object-fit: cover; }

.tm-timeline {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  align-items: flex-end; padding: 8px 4px;
}
.tm-tick {
  position: relative; width: 80px; display: flex; justify-content: flex-end;
  padding: 2px 0; cursor: pointer; background: none; border: none;
}
.tm-tick .bar-tick {
  height: 3px; width: 24px; border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  transform-origin: right center;
  transition: transform .25s cubic-bezier(.34, 1.5, .64, 1), background .2s ease, opacity .2s ease;
}
.tm-tick.sub .bar-tick { background: rgba(0, 0, 0, .14); }
.tm-tick:hover .bar-tick { transform: scaleX(1.3); background: rgba(0, 0, 0, .65); }
.tm-tick.sub:hover .bar-tick { transform: scaleX(1.15); background: rgba(0, 0, 0, .3); }
.tm-tick.active .bar-tick { background: var(--blue); transform: scaleX(1.4); }
.tm-tick .tm-date {
  position: absolute; right: 40px; top: -3px;
  font-size: 10px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  opacity: 0; transform: scale(.85); filter: blur(2px);
  transition: opacity .15s ease, transform .15s ease, filter .15s ease;
  pointer-events: none;
}
.tm-tick:hover .tm-date, .tm-tick.active:hover .tm-date { opacity: 1; transform: scale(1); filter: blur(0); }
.tm-tick.active .tm-date { color: var(--blue); }
.tm-caption { font-size: 11.5px; color: var(--gray-light); margin-top: 14px; }

/* ---------------- Sections ---------------- */
section.block { padding: 52px 0; }
section.block.soft { background: var(--bg-soft); }
.block h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.015em; }
.block .block-sub { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }
.block .block-note { color: var(--gray); font-size: 12.5px; margin-top: 8px; max-width: 460px; }

.status-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray); margin-bottom: 14px;
}
.status-line .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf62; }

/* auction table */
.auction-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  margin-top: 30px; overflow: hidden;
}
.auction-table { width: 100%; border-collapse: collapse; }
.auction-table th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: var(--gray-light);
  padding: 14px 20px 10px; border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.auction-table td { padding: 14px 20px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.auction-table tr:last-child td { border-bottom: none; }
.spot-cell { display: flex; align-items: center; gap: 12px; }
/* reads as a real button: raised, bordered, presses in on click */
.spot-num {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, #fff, #f2f2f5);
  color: var(--ink); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid #dcdce1; font-family: inherit; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.9);
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .12s ease;
}
.spot-num:hover {
  background: linear-gradient(180deg, #1a86ff, var(--blue));
  border-color: var(--blue-dark); color: #fff;
  box-shadow: 0 3px 8px rgba(0,113,227,.32), inset 0 1px 0 rgba(255,255,255,.35);
  transform: translateY(-1px);
}
.spot-num:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,113,227,.3); }
.spot-num:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.spot-label { display: flex; flex-direction: column; gap: 2px; }
.spot-name { font-size: 13.5px; font-weight: 500; }

/* sponsor click tally — under the name on desktop, under the logo on mobile */
.click-count { font-size: 10.5px; color: var(--gray-light); }
.held-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.held-wrap .click-count { display: none; }
.held-link { display: inline-flex; }
.held-link:hover { opacity: .75; }
.held-cell .mini-logo { height: 44px; max-width: 150px; display: flex; align-items: center; }
.held-cell .mini-logo svg { height: 100%; max-width: 100%; }
.held-cell img.upload { height: 44px; max-width: 150px; object-fit: contain; }
.held-cell .free-dash { color: var(--gray-light); font-size: 13px; }
/* header sits centred across the bid value and its button */
.auction-table th.bid-head { text-align: center; }
.bid-cell { text-align: right; white-space: nowrap; }
.bid-amount { font-weight: 600; font-size: 14px; }
.bid-amount.free { color: var(--gray); font-weight: 500; font-size: 12.5px; }
.bid-count { font-size: 11px; color: var(--gray-light); }
.btn-outbid {
  border: 1px solid var(--blue); color: var(--blue); background: #fff;
  border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.btn-outbid:hover { background: var(--blue); color: #fff; }

/* How it works + What the money buys stacked, FAQ alongside */
.container.trio {
  max-width: 1080px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.trio-left { display: flex; flex-direction: column; gap: 38px; }
.trio-left .steps { margin-top: 20px; gap: 18px; }
.trio-left .specs-card { margin-top: 20px; }
@media (max-width: 900px) {
  .container.trio { grid-template-columns: 1fr; gap: 40px; }
}

/* how it works */
.steps { margin-top: 30px; display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 20px; }
.step-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.step h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.step p { color: var(--ink-soft); font-size: 13.5px; max-width: 420px; }

/* specs */
.specs-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  margin-top: 30px; overflow: hidden;
}
.specs-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--hairline);
}
.specs-head h3 { font-size: 15.5px; font-weight: 700; }
.specs-head .price { font-size: 15.5px; font-weight: 700; }
.specs-row { display: flex; padding: 12px 22px; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.specs-row:last-child { border-bottom: none; }
.specs-row .k { width: 130px; flex: none; color: var(--gray); }
.specs-row .v { color: var(--ink); }
.specs-note { font-size: 12px; color: var(--gray); margin-top: 16px; max-width: 480px; line-height: 1.6; }

/* FAQ */
.faq { margin-top: 26px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 2px; font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.faq-q .plus { font-size: 19px; font-weight: 300; color: var(--ink-soft); transition: transform .25s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 40px 18px 2px; color: var(--ink-soft); font-size: 13.5px; }

/* footer */
footer { padding: 34px 0; }

/* credit / inspiration */
.credit {
  max-width: 560px; margin: 0 auto; text-align: center;
  padding: 26px 22px; border-radius: 16px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 20px rgba(0,0,0,.05);
}
.credit p { font-size: 13px; color: var(--ink-soft); }
.credit .small { font-size: 11.5px; color: var(--gray-light); margin-top: 8px; }

/* who am I */
.who-card { display: flex; gap: 26px; margin-top: 30px; align-items: flex-start; }
.who-photo {
  flex: none; width: 132px; height: 132px; border-radius: 22px; object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.who-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.who-card p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.who-links { font-size: 13px; }
@media (max-width: 720px) {
  .who-card { flex-direction: column; align-items: center; text-align: center; }
}
.about h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.about p { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.foot-meta { max-width: 560px; margin: 34px auto 0; border-top: 1px solid var(--hairline); padding-top: 20px; }
.foot-links { display: flex; gap: 18px; font-size: 12px; }
.foot-links a { color: var(--gray); }
.disclaimer { font-size: 11.5px; color: var(--gray-light); margin-top: 16px; }

/* ---------------- Modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 400px;
  max-height: 92vh; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  transform: translateY(12px) scale(.98); transition: transform .25s ease;
}
.modal-backdrop.show .modal { transform: none; }
.modal-head { padding: 20px 22px 0; position: relative; flex: none; }
.modal-head h3 { font-size: 16px; font-weight: 700; padding-right: 26px; }
.modal-head .meta { font-size: 12px; color: var(--gray); margin-top: 4px; }
.modal-head .meta b { color: var(--ink); }
.modal-close {
  position: absolute; top: 16px; right: 16px; border: none; background: none;
  font-size: 19px; color: var(--gray); line-height: 1;
}
.modal-body { padding: 16px 22px 22px; overflow-y: auto; }

.signin-copy { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 18px; }
.btn-x {
  width: 100%; background: #1d1d1f; color: #fff; border: none; border-radius: 999px;
  padding: 12px 0; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-x:hover { background: #000; }
.btn-google {
  width: 100%; background: #fff; color: var(--ink); border: 1px solid #d2d2d7; border-radius: 999px;
  padding: 11px 0; font-size: 14px; font-weight: 600; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-google:hover { background: var(--bg-soft); }
.or-divider {
  display: flex; align-items: center; gap: 14px; color: var(--gray-light);
  font-size: 11.5px; margin: 16px 0;
}
.or-divider::before, .or-divider::after { content: ""; height: 1px; background: var(--hairline); flex: 1; }
.email-input, .field input {
  width: 100%; border: 1px solid var(--hairline); border-radius: 10px;
  padding: 11px 13px; font-size: 13.5px; font-family: inherit; color: var(--ink);
}
.email-input:focus, .field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.btn-email {
  width: 100%; background: #fff; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 11px 0; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 10px;
}
.btn-email:hover { background: var(--bg-soft); }
.signin-hint { font-size: 11.5px; color: var(--gray-light); margin-top: 12px; text-align: center; }

/* bid form */
.bidding-as {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray); margin-bottom: 14px;
}
.bidding-as b { color: var(--ink); }
.bidding-as button { border: none; background: none; color: var(--ink-soft); font-size: 12px; text-decoration: underline; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--gray-light); }
.field .hint { font-size: 11px; color: var(--gray-light); margin-top: 5px; }
.field .note-kept { font-size: 11px; color: var(--gray); margin-top: 6px; line-height: 1.5; }
.bid-input-wrap { position: relative; }
.bid-input-wrap .cur { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 13px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deposit-box {
  background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 12px; color: var(--ink-soft);
}
.deposit-box .row { display: flex; justify-content: space-between; padding: 3px 0; }
.deposit-box .row.strong { font-weight: 700; color: var(--ink); }
.deposit-box .fine { color: var(--gray); font-size: 11px; margin-top: 6px; line-height: 1.5; }
.upload-zone {
  border: 1.5px dashed var(--hairline); border-radius: 12px; background: var(--bg-soft);
  min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--gray); font-size: 12px; cursor: pointer; position: relative;
  text-align: center; padding: 12px;
}
.upload-zone:hover { border-color: var(--gray-light); }
.upload-zone img.preview { max-height: 52px; max-width: 160px; object-fit: contain; }
.upload-zone .formats { font-size: 10.5px; color: var(--gray-light); }
.checkbox-row { display: flex; gap: 9px; font-size: 12px; color: var(--ink-soft); margin: 4px 0 16px; align-items: flex-start; }
.checkbox-row input { margin-top: 2px; accent-color: var(--blue); }
.checkbox-row .sub { color: var(--gray-light); font-size: 11px; }
.btn-submit-bid {
  width: 100%; background: var(--blue); color: #fff; border: none; border-radius: 999px;
  padding: 13px 0; font-size: 14.5px; font-weight: 600;
}
.btn-submit-bid:hover { background: var(--blue-dark); }
.btn-submit-bid:disabled { opacity: .5; cursor: not-allowed; }
.hand-check { text-align: center; font-size: 11.5px; color: var(--gray-light); margin-top: 12px; }

/* checkout (demo) */
.checkout-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkout-brand .sq { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, var(--red), #5b21b6); }
.checkout-brand span { font-size: 13px; color: var(--gray); }
.currency-choice { display: flex; gap: 10px; margin: 14px 0 18px; }
.currency-choice button {
  flex: 1; border: 1px solid var(--hairline); background: #fff; border-radius: 10px;
  padding: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.currency-choice button.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(29,158,80,.2); }
.checkout-line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 0; border-top: 1px solid var(--hairline); }
.checkout-line small { display: block; color: var(--gray-light); font-size: 10.5px; max-width: 220px; }
.powered { text-align: center; font-size: 11px; color: var(--gray-light); margin-top: 16px; }

/* success */
.success-wrap { text-align: center; padding: 18px 0 8px; }
.success-wrap .big { font-size: 40px; }
.success-wrap h4 { font-size: 16px; margin-top: 10px; }
.success-wrap p { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 20px;
  font-size: 13px; z-index: 200; transition: transform .3s ease; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* responsive */
/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1000px) {
  .auction-section.container { max-width: 100%; }
  .tm-carousel { height: 460px; }
  .tm-card { height: 380px; }
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 760px) {
  .container { padding: 0 16px; }

  /* dock: drop the social icons and the CTA so the pill fits the screen */
  .nav { top: 8px; padding: 0 8px; }
  .dock { gap: 2px; padding: 6px 8px; border-radius: 22px; max-width: 100%; }
  .dock-item.social, .dock .btn-pill-dark { display: none; }
  .dock-item { width: 38px; height: 38px; }
  .dock-item svg { width: 17px; height: 17px; }
  .dock-brand { height: 38px; max-width: 30px; padding: 0 2px 0 4px; }
  .dock-brand .bname { display: none; }
  .dock-sep { margin: 0 2px; height: 20px; }
  .dock-item .dock-tip { font-size: 10px; padding: 4px 7px; }

  /* hero */
  .slider-wrap { padding: 72px 16px 6px; }
  .slide-card { width: 96px; height: 96px; }
  .slider-track { gap: 16px; }
  @keyframes slide-x { from { transform: translate3d(0,0,0) } to { transform: translate3d(calc(-50% - 8px),0,0) } }
  .hero { padding: 20px 16px 4px; }
  .hero h1 { font-size: 32px; margin: 14px 0 8px; }
  .hero .sub { font-size: 15px; }
  .visitors { font-size: 11px; flex-wrap: wrap; justify-content: center; }
  .visitors .total { margin-left: 0; }
  .fundraiser { margin-top: 20px; }
  .raised { font-size: 18px; }

  /* stage: diploma above, cartola below, both full width */
  .stage-wrap { padding: 18px 16px 0; }
  .stage { min-height: 0; }
  .stage-duo { flex-wrap: wrap; gap: 26px; }
  .diploma-cover { flex: 1 1 100%; max-width: 400px; margin: 0 auto; padding: 14px; gap: 7px; }
  .spot-tile { min-height: 74px; padding: 9px 5px 6px; }
  .spot-tile.span1 { padding: 6px 3px 5px; }
  .spot-tile .logo { height: 34px; }
  .spot-tile .price { font-size: 10px; }
  .spot-tile.crest-tile { min-height: 84px; }
  .spot-tile.crest-tile .logo { height: 76px; }
  .tile-pill { padding: 6px 13px; font-size: 11.5px; }

  .hat-col { flex: 1 1 100%; }
  .hat2d { max-width: 300px; margin: 0 auto; }
  .hat-crown { height: 190px; }
  .hat-band { height: 68px; gap: 4px; padding: 0 5px; }
  .band-tile { width: 46px; height: 54px; }
  .band-tile .blogo { height: 24px; }
  .band-tile .price { font-size: 8px; }
  .band-tile .tile-pill { padding: 4px 8px; font-size: 9px; }
  #three-canvas-wrap { height: 380px; }

  /* auction table: compact, no size column */
  .auction-section { padding: 26px 16px 30px; }
  .auction-table th { padding: 11px 10px 8px; font-size: 10.5px; }
  .auction-table td { padding: 10px; }
  /* on mobile the number alone identifies the spot — the name is on the diploma,
     and the click tally moves under the sponsor's logo */
  .spot-label { display: none; }
  .held-wrap .click-count { display: block; }
  .spot-num { width: 32px; height: 32px; font-size: 12.5px; }
  .held-cell .mini-logo, .held-cell img.upload { height: 42px; max-width: 108px; }
  .bid-amount { font-size: 12.5px; }
  .bid-amount.free { font-size: 11px; }
  .bid-count { font-size: 10px; }
  .btn-outbid { padding: 5px 10px; font-size: 11px; }

  /* carousel */
  .tm-wrap { margin-top: 26px; }
  .tm-carousel { height: 300px; gap: 6px; }
  .tm-card { width: calc(100vw - 106px); height: 230px; border-radius: 14px; }
  .tm-tick { width: 54px; }
  .tm-tick .bar-tick { width: 18px; }
  .tm-tick .tm-date { right: 28px; font-size: 9px; }

  /* sections */
  section.block { padding: 34px 0; }
  .block h2 { font-size: 25px; }
  .container.trio { gap: 32px; }
  .trio-left { gap: 30px; }
  .step p, .block .block-sub { font-size: 13px; }
  .specs-row { padding: 10px 14px; font-size: 12.5px; }
  .specs-row .k { width: 96px; }
  .specs-head { padding: 14px; }
  .faq-q { font-size: 13.5px; padding: 15px 2px; }
  .faq-a p { padding-right: 20px; font-size: 12.5px; }

  /* who am I + footer */
  .who-photo { width: 108px; height: 108px; }
  .credit { padding: 20px 16px; }
  footer { padding: 24px 0 28px; }

  /* modal */
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 18px; }
  .modal-body { padding: 14px 16px 18px; }
  .modal-head { padding: 16px 16px 0; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .toast { bottom: 16px; font-size: 12px; max-width: calc(100vw - 32px); text-align: center; }
}

@media (max-width: 400px) {
  .dock-item { width: 34px; height: 34px; }
  .dock-item svg { width: 16px; height: 16px; }
  .hero h1 { font-size: 28px; }
  .band-tile { width: 40px; height: 50px; }
  .held-cell .mini-logo, .held-cell img.upload { height: 40px; max-width: 96px; }
}
