/* psybee.ie: colours follow the game (honey yellow, the logo's pink, warm dark brown, meadow green) */
:root {
  --honey: #ffd34d;
  --honey-deep: #f0a530;
  --berry: #d4449b;
  --berry-deep: #a8357a;
  --ink: #2a1a0e;
  --dark: #1c120b;
  --dark-2: #2a1c12;
  --cream: #fff8e6;
  --cream-2: #fdf0cf;
  --text-light: #fff6d8;
  --muted-light: rgba(255, 246, 216, 0.72);
  --radius: 18px;
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font: 400 18px/1.65 var(--font); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px; background: rgba(28, 18, 11, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 68, 155, 0.25); }
.topbar-logo img { height: 34px; width: auto; }
.topbar nav { display: flex; gap: 26px; }
.topbar nav a { color: var(--text-light); text-decoration: none; font-weight: 700; font-size: 15px; opacity: 0.85; transition: opacity .15s, color .15s; }
.topbar nav a:hover { opacity: 1; color: var(--honey); }

/* Hero: like the game's home screen, a dark panel over the live world */
.hero { min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(24,12,14,0.92) 0%, rgba(24,12,14,0.72) 42%, rgba(24,12,14,0.15) 75%, rgba(24,12,14,0) 100%), url('img/hero.jpg') center / cover no-repeat; }
.hero-panel { max-width: 560px; padding: 120px 48px 80px; color: var(--text-light); }
.hero-logo { width: min(420px, 80vw); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); margin-left: -8px; }
.tagline { font-size: 24px; font-weight: 800; margin: 10px 0 22px; letter-spacing: 0.02em; }
.lead { font-size: 20px; color: var(--muted-light); margin-bottom: 22px; }
.soon { display: flex; align-items: baseline; gap: 10px; font-weight: 700; color: var(--honey); margin-bottom: 30px; }
.dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 0 rgba(212,68,155,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(212,68,155,0); } 100% { box-shadow: 0 0 0 0 rgba(212,68,155,0); } }

.btn { display: inline-block; padding: 14px 28px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 17px;
  color: var(--ink); background: linear-gradient(180deg, var(--honey), var(--honey-deep)); box-shadow: 0 4px 0 var(--berry-deep), 0 10px 24px rgba(212,68,155,0.25);
  transition: transform .12s, filter .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { color: var(--text-light); background: rgba(255,246,216,0.08); box-shadow: inset 0 0 0 2px rgba(255,246,216,0.45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.topbar nav a.nav-cta { color: var(--ink); background: var(--honey); padding: 4px 14px; border-radius: 10px; opacity: 1; }
.topbar nav a.nav-cta:hover { color: var(--ink); filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--berry-deep); }

/* Bands */
.band { padding: 110px 24px; }
.band.light { background: var(--cream); }
.band.dark { background: radial-gradient(ellipse at top, var(--dark-2), var(--dark)); color: var(--text-light); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 14px; font-weight: 800; color: var(--berry); margin-bottom: 8px; }
.dark .kicker { color: #f08ac6; }
h2 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; font-weight: 900; margin-bottom: 22px; color: var(--ink); }
.dark h2 { color: var(--honey); text-shadow: 0 3px 0 rgba(212,68,155,0.55); }
h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
p + p { margin-top: 14px; }
.dark p { color: var(--muted-light); }
.dark strong, .dark em { color: var(--text-light); }

/* The game */
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hex-frame { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); aspect-ratio: 1.15; overflow: hidden;
  filter: drop-shadow(0 10px 30px rgba(42,26,14,0.25)); }
.hex-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(42,26,14,0.18); border: 3px solid #fff; }
.gallery video { display: block; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--dark); transition: transform .4s; }
.gallery figure:hover video { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.65)); }

/* The science */
.sub-h { font-size: 26px; color: var(--honey); margin-top: 8px; }
.tasks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 32px auto 56px; }
.tasks figure { border-radius: var(--radius); overflow: hidden; background: rgba(255, 246, 216, 0.05); border: 1px solid rgba(255, 214, 228, 0.18); }
.tasks video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.tasks figcaption { padding: 12px 14px 14px; font-size: 14.5px; line-height: 1.45; color: var(--muted-light); }
.tasks figcaption strong { display: block; color: var(--honey); font-size: 16px; margin-bottom: 2px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px auto; }
.card { background: rgba(255, 246, 216, 0.06); border: 1px solid rgba(255, 214, 228, 0.18); border-radius: var(--radius); padding: 28px 26px; }
.card h3 { color: var(--honey); }
.card p { font-size: 16.5px; }
.card-icon { font-size: 34px; margin-bottom: 10px; }
.note { font-size: 15px; text-align: center; border-top: 1px solid rgba(255, 214, 228, 0.18); padding-top: 22px; }

/* Philosophy */
.quote { font-size: 22px; font-style: italic; line-height: 1.55; border-left: 5px solid var(--berry); padding-left: 22px; margin: 6px 0 24px; color: #5a3b22; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.principle { background: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 6px 22px rgba(42,26,14,0.08); border-top: 4px solid var(--honey); }
.principle h3 { display: flex; align-items: center; gap: 12px; }
.principle h3 span { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; font-size: 16px; color: var(--ink);
  background: var(--honey); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.principle p { font-size: 16.5px; color: #4a3424; }

/* Subscribe */
.band.honey { background: radial-gradient(ellipse at top, #ffe58a, var(--honey) 55%, #f6b93b); }
.honey h2 { color: var(--ink); }
.honey .kicker { color: var(--berry-deep); }
.honey p { color: #4a3018; }
.subscribe { margin: 30px auto 0; max-width: 560px; text-align: left; }
.sub-row { display: flex; gap: 10px; }
.sub-row input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 14px; border: 2px solid rgba(42,26,14,0.25); font: 600 17px var(--font); color: var(--ink); background: #fffdf5; }
.sub-row input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px rgba(212,68,155,0.2); }
.subscribe .btn { border: 0; cursor: pointer; font-family: var(--font); color: var(--cream); background: linear-gradient(180deg, var(--berry), var(--berry-deep)); box-shadow: 0 4px 0 #7a2459, 0 10px 24px rgba(122,36,89,0.25); }
.subscribe .btn:disabled { opacity: 0.6; cursor: default; }
.sub-interest { border: 0; margin: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; font-weight: 700; color: #4a3018; }
.sub-interest legend { float: left; margin-right: 6px; }
.sub-interest label, .sub-consent { cursor: pointer; }
.sub-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: #4a3018; margin-top: 10px; }
.sub-consent input { margin-top: 4px; flex: 0 0 auto; }
.subscribe input[type=radio], .subscribe input[type=checkbox] { accent-color: var(--berry); }
.sub-honey { position: absolute; left: -9999px; }
.sub-msg { min-height: 1.5em; margin-top: 12px; font-weight: 800; }
.sub-msg.ok { color: #2f6b1f; }
.sub-msg.err { color: #a1213a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Who we are */
#us .btn { margin-top: 26px; }

/* Footer */
.footer { background: var(--dark); color: var(--muted-light); text-align: center; padding: 56px 24px; border-top: 1px solid rgba(212,68,155,0.25); }
.footer-logo { height: 48px; width: auto; margin: 0 auto 10px; }
.footer p { font-weight: 700; }
.footer .small { font-weight: 400; font-size: 14px; margin-top: 6px; opacity: 0.7; }

/* Gentle motion: the hero logo floats like the game's home screen; sections fade in */
.hero-logo { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-0.6deg); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-logo, .dot { animation: none; } html { scroll-behavior: auto; } }

/* Phones */
@media (max-width: 1100px) { .tasks { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 860px) {
  .topbar { padding: 10px 16px; }
  .topbar nav { display: none; }
  .hero-panel { padding: 110px 24px 56px; }
  .tagline { font-size: 20px; }
  .lead { font-size: 18px; }
  .band { padding: 72px 16px; }
  .two, .cards, .principles { grid-template-columns: 1fr; }
  .tasks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tasks figcaption { font-size: 13px; padding: 8px 10px 10px; }
  .tasks figcaption strong { font-size: 14px; }
  .sub-row { flex-direction: column; }
  .two { gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }
  .gallery figcaption { font-size: 13px; padding: 20px 10px 8px; }
  .quote { font-size: 19px; }
}

/* Small phones: the picture on top, the text below it */
@media (max-width: 600px) {
  .hero { background: linear-gradient(180deg, rgba(24,12,14,0) 0, rgba(24,12,14,0) calc(56px + 78vw), rgba(24,12,14,0.97) calc(56px + 107vw)), url('img/hero.jpg') 64% 56px / 190% auto no-repeat, var(--dark); align-items: flex-start; }
  .hero-panel { padding: calc(56px + 86vw) 16px 56px; }
  .hero-logo { width: min(300px, 72vw); }
}

/* Tablets in portrait: also stacked, with the picture less enlarged */
@media (min-width: 601px) and (max-width: 860px) {
  .hero { background: linear-gradient(180deg, rgba(24,12,14,0) 0, rgba(24,12,14,0) calc(56px + 52vw), rgba(24,12,14,0.97) calc(56px + 79vw)), url('img/hero.jpg') 64% 56px / 140% auto no-repeat, var(--dark); align-items: flex-start; }
  .hero-panel { padding: calc(56px + 60vw) 32px 64px; max-width: 640px; }
}
