/* ============================================================
   sweyoung "touch grass" editorial / Scandinavian risograph
   Display: Fraunces (wonky editorial serif)
   Body:    Schibsted Grotesk (Nordic grotesque)
   ============================================================ */

:root {
  --paper:    #eef0df;   /* warm green-tinted cream */
  --paper-2:  #e6e9d2;
  --forest:   #16341f;   /* deep forest, primary ink */
  --moss:     #2c5e34;
  --grass:    #4ea24a;   /* fresh grass */
  --grass-lt: #7bc06b;
  --sun:      #f4c64b;   /* warm yellow */
  --sun-deep: #e9a93b;
  --sky:      #88b4d8;   /* swedish blue accent */
  --bloom:    #d96b4a;   /* wildflower coral, used sparingly */
  --ink-soft: #3a5a42;

  --maxw: 1180px;
  --r: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  background: var(--paper);
  color: var(--forest);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

/* film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

/* ---------- nav ---------- */
.nav {
  position: relative; z-index: 20;
  max-width: var(--maxw); margin: 0 auto;
  padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; }
.logo { height: 30px; width: auto; color: var(--forest); display: block; }
.logo.small { height: 24px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .96rem; font-weight: 500; }
.nav-links a { opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--forest); color: var(--paper) !important;
  padding: 9px 18px; border-radius: var(--r); opacity: 1 !important;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--moss); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 28px 24px 21vh;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 6; max-width: 920px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--moss);
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(22,52,31,.14);
  padding: 8px 16px; border-radius: var(--r);
  margin-bottom: 22px;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bloom); box-shadow: 0 0 0 4px rgba(217,107,74,.2); }

.headline {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 7.6vw, 5rem);
  line-height: .9;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  margin-bottom: 20px;
}
.headline .line { display: block; }
.headline em {
  font-style: italic; color: var(--grass);
  position: relative; font-variation-settings: "opsz" 144, "WONK" 1;
}
.headline em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .12em;
  background: var(--sun); border-radius: var(--r); z-index: -1;
  transform: rotate(-1.2deg);
}

.sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ink-soft); max-width: 38ch; margin: 0 auto 24px;
  font-weight: 450;
}

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-fine { font-size: .85rem; color: var(--ink-soft); opacity: .8; letter-spacing: .01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 600; font-size: 1.02rem;
  padding: 15px 28px; border-radius: var(--r);
  border: 2px solid var(--forest);
  transition: transform .18s ease, box-shadow .18s ease, background .2s;
  cursor: pointer;
}
.btn-whatsapp {
  background: var(--grass); color: #fff; border-color: var(--forest);
  box-shadow: 0 6px 18px -6px rgba(22,52,31,.5);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(22,52,31,.55); }
.btn-whatsapp:active { transform: translateY(0); }

.btn-sun {
  background: var(--sun); color: var(--forest); border-color: var(--forest);
  box-shadow: 0 6px 18px -6px rgba(22,52,31,.4);
}
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(22,52,31,.5); }
.btn-sun:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--paper); }

/* ---------- sun ---------- */
.sun {
  position: absolute; top: 8%; right: 6%; z-index: 1;
  width: clamp(130px, 15vw, 200px); aspect-ratio: 1 / 1;
}
.sun-svg {
  width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 10px 34px rgba(233,169,59,.4));
}
.sun-rays {
  transform-box: view-box; transform-origin: 100px 100px;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hills + grass ---------- */
.hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; height: 21vh; min-height: 140px; }
.hills-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hill-back  { fill: var(--grass-lt); opacity: .55; }
.hill-mid   { fill: var(--grass); opacity: .8; }
.hill-front { fill: var(--moss); }

.grass { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: 5; display: flex; align-items: flex-end; }
.blade {
  flex: 1 0 auto; width: 10px; height: var(--h, 40px);
  background: var(--forest);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  transform-origin: bottom center;
  animation: sway var(--sw, 4s) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
  margin: 0 -2px;
}
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* ---------- ticker ---------- */
.ticker {
  background: var(--forest); color: var(--paper);
  padding: 16px 0; overflow: hidden; white-space: nowrap;
  border-top: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
}
.ticker-track { display: inline-flex; animation: marquee 26s linear infinite; }
.ticker-track span {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 500;
  font-size: 1.45rem; letter-spacing: .01em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { max-width: var(--maxw); margin: 0 auto; padding: 120px 28px 90px; }
.about-head { max-width: 720px; margin-bottom: 64px; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bloom);
}
.about-head h2 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.02em;
  margin: 14px 0 22px; font-variation-settings: "opsz" 120, "WONK" 1;
}
.squiggle { color: var(--grass); font-style: italic; position: relative; white-space: nowrap; }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M0 4 Q 15 0 30 4 T 60 4 T 90 4 T 120 4' fill='none' stroke='%23f4c64b' stroke-width='3'/%3E%3C/svg%3E") repeat-x;
}
.about-head p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }

.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper-2); border: 1.5px solid rgba(22,52,31,.5);
  border-radius: 22px; padding: 32px 28px 36px;
  box-shadow: 0 10px 30px -16px rgba(22,52,31,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(22,52,31,.5); }
.card-no { font-family: "Fraunces", serif; font-size: 1.1rem; color: var(--grass); font-weight: 600; }
.card h3 { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 600; margin: 10px 0 12px; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- hackathon ---------- */
.hackathon {
  position: relative; overflow: hidden;
  background: var(--forest); color: var(--paper);
  margin: 40px 16px; border-radius: 36px;
  padding: clamp(56px, 9vw, 110px) 28px;
}
.hack-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.hack-date {
  display: inline-block; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .82rem; color: var(--sun);
  border: 1px solid rgba(244,198,75,.4); padding: 7px 16px; border-radius: var(--r); margin-bottom: 26px;
}
.hackathon h2 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(3rem, 9vw, 7rem); line-height: .92; letter-spacing: -.03em;
  margin-bottom: 26px; font-variation-settings: "opsz" 144, "WONK" 1;
}
.hack-copy { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #d8e3cf; max-width: 46ch; margin-bottom: 34px; }
.placeholder-note { color: var(--sun); opacity: .8; font-style: italic; font-size: .9em; }
.hack-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hack-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hack-sun {
  position: absolute; right: -60px; top: -60px;
  width: clamp(220px, 30vw, 420px); height: clamp(220px, 30vw, 420px);
  opacity: .12;
}

/* ---------- hackpack ---------- */
.hackpack-page { padding-bottom: 30px; }

.hackpack-hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 28px 42px;
  overflow: hidden;
}

.hackpack-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: clamp(36px, 6vw, 56px);
  background:
    radial-gradient(circle at top right, rgba(244,198,75,.28), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.36), rgba(255,255,255,.08)),
    var(--paper-2);
  border: 1.5px solid rgba(22,52,31,.18);
  border-radius: 34px;
  box-shadow: 0 22px 50px -28px rgba(22,52,31,.32);
}

.hackpack-sun {
  top: 12px;
  right: 24px;
  transform: scale(.85);
}

.hackpack-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bloom);
  margin-bottom: 18px;
}

.hackpack-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hackpack-title .line { display: block; }

.hackpack-title em {
  font-style: italic;
  color: var(--grass);
  position: relative;
}

.hackpack-title em::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: .06em;
  height: .14em;
  background: var(--sun);
  border-radius: var(--r);
  z-index: -1;
  transform: rotate(-1deg);
}

.hackpack-sub {
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--ink-soft);
}

.hackpack-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hackpack-grid,
.agenda-section,
.judging-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 28px 40px;
}

.hackpack-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.info-panel,
.criteria-card {
  background: rgba(255,255,255,.34);
  border: 1.5px solid rgba(22,52,31,.16);
  border-radius: 26px;
  padding: 26px 24px;
  box-shadow: 0 12px 28px -22px rgba(22,52,31,.4);
}

.info-panel h2,
.section-head h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.02em;
}

.info-panel-feature {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(78,162,74,.12), transparent 34%),
    rgba(255,255,255,.34);
}

.info-panel h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 12px 0 16px; }
.info-panel h3,
.agenda-day h3,
.criteria-card h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -.01em;
}

.info-panel p,
.section-head p,
.criteria-card li { color: var(--ink-soft); }

.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.status-list div {
  padding-top: 14px;
  border-top: 1px solid rgba(22,52,31,.14);
}

.status-label {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bloom);
  font-weight: 700;
}

.info-list {
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.info-list li { margin-bottom: 8px; }

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  margin: 12px 0 14px;
}

.agenda {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agenda-day {
  background: var(--forest);
  color: var(--paper);
  border-radius: 28px;
  padding: 28px 24px 30px;
  box-shadow: 0 18px 34px -20px rgba(22,52,31,.58);
}

.agenda-date {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(244,198,75,.36);
  border-radius: var(--r);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sun);
}

.agenda-day h3 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.agenda-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.agenda-list li {
  color: #d8e3cf;
  padding-top: 12px;
  border-top: 1px solid rgba(238,240,223,.14);
}

.agenda-list strong {
  color: var(--sun);
  display: inline-block;
  min-width: 64px;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.criteria-top {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.criteria-top h3 { font-size: 1.8rem; }

.score-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

/* ---------- footer ---------- */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 90px 28px 60px; }
.foot-cta { text-align: center; margin-bottom: 70px; }
.foot-cta h2 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: -.02em; margin-bottom: 30px;
  font-variation-settings: "opsz" 144, "WONK" 1;
}
.foot-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.foot-legal {
  display: flex; gap: 24px; justify-content: center; margin-bottom: 44px;
  font-size: .92rem;
}
.foot-legal a {
  color: var(--ink-soft); opacity: .85;
  text-decoration: underline; text-underline-offset: 3px;
}
.foot-legal a:hover { opacity: 1; color: var(--forest); }

.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 2px solid rgba(22,52,31,.18); padding-top: 26px; flex-wrap: wrap; gap: 12px;
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 28px 100px; }
.legal a.back { font-weight: 600; color: var(--grass); display: inline-block; margin-bottom: 32px; }
.legal h1 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 8px;
}
.legal .updated { color: var(--ink-soft); opacity: .8; font-size: .9rem; margin-bottom: 36px; }
.legal h2 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: 1.5rem; margin: 34px 0 10px;
}
.legal p, .legal li { color: var(--ink-soft); line-height: 1.65; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal .note {
  background: var(--paper-2); border: 1px solid rgba(22,52,31,.16);
  border-radius: 14px; padding: 16px 18px; margin-top: 28px; font-size: .92rem;
}
.foot-tag { color: var(--ink-soft); font-size: .95rem; }

/* ---------- floating cta ---------- */
.float-cta {
  position: fixed; left: 50%; bottom: 26px; z-index: 50;
  transform: translate(-50%, 160%);
  background: var(--sun); color: var(--forest);
  border: 2px solid var(--forest); border-radius: var(--r);
  padding: 13px 24px; font-weight: 700; font-size: .98rem;
  box-shadow: 0 10px 26px -8px rgba(22,52,31,.45);
  transition: transform .4s cubic-bezier(.2,.9,.25,1), box-shadow .18s;
}
.float-cta.show { transform: translate(-50%, 0); }
.float-cta:hover { box-shadow: 0 14px 30px -8px rgba(22,52,31,.5); }

/* ---------- reveal on load ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.8,.25,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links { gap: 16px; font-size: .9rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hack-actions,
  .hackpack-actions { flex-direction: column; align-items: stretch; }
  .hackpack-grid,
  .agenda,
  .criteria-list,
  .status-list { grid-template-columns: 1fr; }
  .info-panel-feature { grid-column: span 1; }
  .hackpack-hero { padding-top: 26px; }
  .hackpack-hero-inner { padding: 28px 22px; border-radius: 24px; }
  .hackpack-sun { right: -38px; top: -32px; transform: scale(.68); }
  .sun { width: 220px; height: 220px; top: -60px; right: -50px; }
  .hackathon { margin: 30px 12px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .float-cta { transform: translate(-50%, 0); }
}
