
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Sora:wght@400;500;600;700;800&family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Cabin+Sketch:wght@400;700&display=swap&family=Caveat:wght@400;500;600;700&display=swap');

:root{
  /* ---- palette : navy / turquoise / paper, nothing else ---- */
  --navy:          #16233F;
  --navy-2:        #223759;
  --navy-3 :       #03285C;
  --navy-4:        #0B1C46;
  --ink-85:        rgba(22,35,63,.85);
  --ink-65:        rgba(22,35,63,.65);
  --ink-40:        rgba(22,35,63,.40);
  --ink-18:        rgba(22,35,63,.18);
  --ink-08:        rgba(22,35,63,.08);

  --teal:          #1B8E85;   /* deep accent for links/small text */
  --turquoise:     #2FBDB2;   /* primary accent: buttons, liquids, progress */
  --turquoise-dk:  #1E9C92;
  --turquoise-wash:#DFF4F1;   /* light wash for active / highlighted surfaces */

  --paper:         #FBF9F3;   /* warm white background */
  --paper-raised:  #FFFFFF;
  --surface:       #F1F0EA;   /* light warm-gray secondary surface */

  --font-head:    'Sora', sans-serif;        /* normal titles: h2 / h3 / h4 — sans-serif */
  --font-body:    'Inter', sans-serif;
  --font-display: 'Cabin Sketch', cursive;   /* grand title — the hero h1 only */
  --font-note:    'Caveat',  cursive;        /* subtitles / small handwritten labels */
  --font-title:  'Kalam', cursive;
  --container: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--navy);
  background:
    radial-gradient(var(--ink-08) 1.1px, transparent 1.1px) 0 0/22px 22px,
    var(--paper);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-head); font-weight:700; line-height:1.18; letter-spacing:-.01em; }
/* grand titles — hand-sketched display face, reserved for page-level h1s */
h1{ font-family:var(--font-title); font-weight:700; letter-spacing:0; line-height:1.14; }
p{ margin:0; }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 32px; }

.icon-ink use, .icon-ink path, .icon-ink circle{ vector-effect:non-scaling-stroke; }
.icon-ink{ display:block; }

/* small hand-written note / label style, used sparingly */
.note-label{
  font-family:var(--font-note);
  font-size:1.2rem;
  font-weight:600;
  color:var(--teal);
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* =====================================================================
   NAV
   ===================================================================== */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(251,249,243,.88);
  backdrop-filter:blur(8px);
  border-bottom:1.5px solid var(--ink-18);
}
.nav{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 32px;
  max-width:var(--container); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:38px; width:auto; }
.brand-name{
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.28rem;
  color:var(--navy-4);
  white-space:nowrap;
}
.brand-name span{ color:var(--turquoise-dk); }

.nav-center{ display:flex; gap:8px; align-items:center; }
.nav-links{ display:flex; gap:4px; align-items:center; }
.nav-links a{
  font-family:var(--font-body);
  font-weight:600;
  font-size:.94rem;
  color:var(--ink-65);
  padding:9px 14px;
  border-radius:20px;
  transition:color .18s ease, background .18s ease;
}
.nav-links a:hover{ color:var(--navy); background:var(--ink-08); }
.nav-links a.active{ color:var(--navy); background:var(--turquoise-wash); }

.nav-actions{ display:flex; gap:10px; align-items:center; }
.nav-login{
  font-weight:700; font-size:.92rem;
  color:var(--navy);
  padding:9px 6px;
}
.nav-login:hover{ color:var(--teal); }

.nav-cta{
  font-family:var(--font-body);
  font-weight:800;
  font-size:.92rem;
  background:var(--navy);
  color:var(--paper) !important;
  padding:10px 20px;
  border-radius:22px 24px 20px 24px/22px 20px 24px 22px;
  border:2px solid var(--navy);
  box-shadow:3px 3px 0 var(--turquoise);
  transition:transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover{ transform:translate(-2px,-2px); box-shadow:5px 5px 0 var(--turquoise); }

.nav-toggle{ display:none; }


/* =====================================================================
   BUTTONS  (thin ink border, tiny hand-drawn imperfection, no cartoon shadow)
   ===================================================================== */

.btn svg{ width:16px; height:16px; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body);
  font-weight:800;
  font-size:1rem;
  padding:13px 26px;
  border-radius:22px 26px 20px 24px/20px 24px 22px 26px;
  border:2.5px solid var(--navy);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn-primary{
  background:var(--teal);
  color:var(--paper);
  border-color:var(--navy);
  box-shadow:4px 4px 0 var(--navy);
}
.btn-primary:hover{ transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--navy); }
.btn-ghost{
  background:var(--paper);
  color:var(--navy);
  box-shadow:4px 4px 0 var(--turquoise);
}
.btn-ghost:hover{ transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--turquoise); }


/* =====================================================================
   HERO — "a notebook page coming to life"
   ===================================================================== */
.hero{
  position:relative;
  padding:64px 0 84px;
  overflow:hidden;
}
.notebook-margin{
  position:absolute; top:0; bottom:0; left:64px;
  width:1.5px;
  background:var(--ink-18);
  display:none;
}
.hero .wrap{
  display:grid;
  grid-template-columns:1fr .92fr;
  gap:56px;
  align-items:center;
  position:relative;
}

.hero-copy{ position:relative; }
.eyebrow-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-note);
  font-size:1rem;
  color:var(--teal);
  margin-bottom:6px;
}
.eyebrow-tag svg{ width:22px; height:22px; }

.hero h1{
  font-size:clamp(2.3rem, 4.4vw, 3.5rem);
  color:var(--navy);
  margin-bottom:18px;
}
.hero h1 em{
  font-style:normal;
  font-family:var(--font-display);
  color:var(--turquoise-dk);
  font-size:1.12em;
  position:relative;
}

.hero-lede{
  font-size:1.14rem;
  line-height:1.65;
  color:var(--ink-65);
  max-width:50ch;
  margin-bottom:32px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }

.hero-meta{
  display:flex; gap:28px; flex-wrap:wrap;
}
.hero-meta div{ display:flex; flex-direction:column; gap:2px; }
.hero-meta strong{ font-family:var(--font-head); font-size:1.35rem; color:var(--navy); }
.hero-meta span{ font-size:.82rem; color:var(--ink-40); font-weight:600; }

/* --- hero illustration staged like a taped notebook photo --- */
.hero-art{ position:relative; }


.hero-art .tl{ top:-10px; left:18px; }
.hero-art .tr{ top:-8px; right:26px; transform:rotate(9deg); }

.hero-art .frame{
  position:relative;
  background:var(--paper-raised);
  border:1.6px solid var(--navy);
  border-radius:var(--radius-l);
  padding:10px;
}
.hero-art img{ border-radius:calc(var(--radius-l) - 8px); }

.hero-art .doodle{
  position:absolute;
  z-index:2;
  opacity:.9;
}
.doodle-molecule{ top:-26px; right:-22px; width:52px; height:52px; opacity:.75; }
.doodle-bubbles{ right:-18px; bottom:-14px; width:42px; height:42px; }

.hero-caption{
  display:flex; align-items:center; gap:10px;
  margin-top:18px;
  padding-left:6px;
}
.hero-caption .icon-ink{ width:56px; height:28px; flex:0 0 auto; }
.hero-caption span{
  font-family:var(--font-note);
  font-size:1.15rem;
  color:var(--teal);
  line-height:1.1;
  
}

/* divider between sections: a single hand-drawn ink stroke */
.ink-divider{ width:100%; height:20px; display:block; margin:0 auto; }

/* =====================================================================
   SECTION GENERIC
   ===================================================================== */
section{ padding:76px 0; position:relative; }
.section-head{ max-width:640px; margin-bottom:46px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.eyebrow{
  font-family:var(--font-note);
  font-weight:400;
  font-size:1.35rem;
  letter-spacing:0;
  text-transform:none;
  color:var(--teal);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1.5px;
  background:var(--turquoise);
  display:inline-block;
}
.section-head h2{
  font-size:clamp(1.9rem,3vw,2.5rem);
  color:var(--navy);
}
.section-head p{
  margin-top:14px;
  font-size:1.05rem;
  line-height:1.65;
  color:var(--ink-65);
  max-width:58ch;
}
.section-head.center p{ margin-left:auto; margin-right:auto; }
.section-alt{ background:var(--surface); }

/* =====================================================================
   ABOUT / MISSION (home)
   ===================================================================== */
.about-grid{
  display:grid;
  grid-template-columns:.86fr 1.14fr;
  gap:56px;
  align-items:center;
}
.mission-card{
  background:var(--paper-raised);
  border:1.6px solid var(--navy);
  border-radius:var(--radius-l);
  padding:36px 32px;
  position:relative;
}
.mission-card .mark{
  font-family:var(--font-head);
  font-size:2.6rem;
  color:var(--turquoise-dk);
  line-height:.6;
  display:block;
  margin-bottom:14px;
}
.mission-card p{
  font-family:var(--font-head);
  font-weight:600;
  font-size:1.32rem;
  line-height:1.4;
  color:var(--navy);
}
.mission-card .attribution{
  margin-top:18px;
  font-family:var(--font-note);
  font-size:1.15rem;
  color:var(--teal);
}
.mission-card .corner-atom{ position:absolute; right:20px; bottom:16px; width:42px; height:42px; opacity:.5; }

.about-copy p{ font-size:1.05rem; line-height:1.75; color:var(--ink-65); margin-bottom:18px; }
.about-copy strong{ color:var(--navy); }

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.how-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.how-card{
  background:var(--paper-raised);
  border:1.5px solid var(--ink-18);
  border-radius:var(--radius-m);
  padding:30px 26px;
  position:relative;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.how-card:hover{ transform:translateY(-4px); border-color:var(--navy); box-shadow:0 10px 24px -14px var(--ink-40); }
.how-card .icon-ink{ width:48px; height:48px; margin-bottom:18px; }
.how-card h3{ font-size:1.16rem; color:var(--navy); margin-bottom:10px; }
.how-card p{ font-size:.96rem; line-height:1.6; color:var(--ink-65); }
.how-card .step-num{
  position:absolute; top:22px; right:24px;
  font-family:var(--font-note);
  font-size:1.4rem;
  color:var(--ink-40);
}

/* =====================================================================
   HOME — "Your Chemistry Journey" abbreviated path
   ===================================================================== */
.journey-strip{ position:relative; padding-top:12px; }
.journey-line{
  position:absolute; left:6%; right:6%; top:38px;
  height:0;
  border-top:2px dashed var(--ink-18);
}
.journey-row{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
}
.journey-node{
  background:var(--paper-raised);
  border:1.5px solid var(--navy);
  border-radius:var(--radius-m);
  padding:20px 14px 18px;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.journey-node:hover{ transform:translateY(-5px); box-shadow:0 10px 20px -12px var(--ink-40); }
.journey-node .medal{
  width:52px; height:52px;
  margin:0 auto 12px;
  border-radius:50%;
  background:var(--paper-raised);
  border:1.6px solid var(--navy);
  display:flex; align-items:center; justify-content:center;
}
.journey-node .medal .icon-ink{ width:30px; height:30px; }
.journey-node .num{
  font-family:var(--font-note);
  font-size:1.1rem;
  color:var(--teal);
  display:block;
  margin-bottom:2px;
}
.journey-node h4{
  font-family:var(--font-body);
  font-weight:700;
  font-size:.86rem;
  color:var(--navy);
  line-height:1.3;
}
.journey-cta{ text-align:center; margin-top:44px; }

/* =====================================================================
   QUOTE BANNER
   ===================================================================== */
.quote-banner{
  background:var(--navy);
  color:var(--paper);
  padding: 60px 0;
  position:relative;
  overflow:hidden;
}
.quote-banner::before{
  content:"";
  position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:24px 24px;
  pointer-events:none;
}
.quote-banner .wrap{ position:relative; z-index:1; text-align:center; }
.quote-banner blockquote{
  font-family:var(--font-head);
  font-weight:600;
  font-size:clamp(1.5rem,3vw,2.15rem);
  line-height:1.4;
  max-width:820px;
  margin:0 auto 16px;
}
.quote-banner cite{
  font-family:var(--font-note);
  font-style:normal;
  font-size:1.2rem;
  color:var(--turquoise);
  padding-left: 60%;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer{ background:var(--surface); border-top:1.5px solid var(--ink-18); padding:56px 0 26px; }
.footer-top{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:34px; }
.footer-brand span{ font-family:var(--font-head); font-weight:700; font-size:1.2rem; color:var(--navy); }
.footer-col h5{ font-family:var(--font-body); font-weight:800; font-size:.82rem; letter-spacing:.03em; text-transform:uppercase; color:var(--navy); margin-bottom:14px; }
.footer-col p{ font-size:.92rem; line-height:1.6; color:var(--ink-65); max-width:32ch; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a{ font-size:.92rem; color:var(--ink-65); font-weight:600; }
.footer-col ul a:hover{ color:var(--teal); }
.footer-bottom{ border-top:1.5px dashed var(--ink-18); padding-top:20px; display:flex; justify-content:space-between; align-items:center; font-size:.82rem; color:var(--ink-40); flex-wrap:wrap; gap:10px; }

/* =====================================================================
   PAGE HEADER (interior pages)
   ===================================================================== */
.page-hero{ padding:56px 0 44px; text-align:center; }
.page-hero .eyebrow{ justify-content:center; }
.page-hero h1{ font-size:clamp(2.1rem,4vw,3rem); color:var(--navy); margin:6px auto 16px; max-width:20ch; }
.page-hero p{ max-width:60ch; margin:0 auto; font-size:1.08rem; line-height:1.7; color:var(--ink-65); }
.breadcrumb{ font-family:var(--font-body); font-weight:700; font-size:.84rem; color:var(--teal); margin-bottom:14px; }
.breadcrumb a{ color:var(--ink-40); }
.breadcrumb a:hover{ color:var(--teal); }

/* =====================================================================
   ROADMAP PAGE — vertical hand-drawn ink path
   ===================================================================== */
.timeline{ position:relative; padding:20px 0 10px; }
.timeline-track{
  position:absolute;
  top:0; bottom:0; left:50%;
  width:60px;
  margin-left:-30px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 140'%3E%3Cpath d='M30 0 C 52 22, 8 45, 30 70 C 52 95, 8 118, 30 140' fill='none' stroke='%2316233F' stroke-width='2.4' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat:repeat-y;
  background-size:60px 140px;
  z-index:0;
}
.timeline-item{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:1fr 100px 1fr;
  align-items:center;
  gap:0 36px;
  margin-bottom:26px;
}
.timeline-item .tl-card{ grid-column:1; grid-row:1; }
.timeline-item.right .tl-card{ grid-column:3; }
.timeline-item .tl-spacer{ grid-column:3; grid-row:1; }
.timeline-item.right .tl-spacer{ grid-column:1; }
.timeline-item .tl-node{
  grid-column:2; grid-row:1;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  justify-self:center;
}
.tl-node .medal{
  width:74px; height:74px;
  border-radius:50%;
  background:var(--paper-raised);
  border:2px solid var(--navy);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 6px var(--paper);
}
.tl-node .medal .icon-ink{ width:38px; height:38px; }
.tl-node.start .medal,
.tl-node.end .medal{ background:var(--paper-raised); }
/*.tl-node .tl-label{ 
  font-family:var(--font-note); 
  font-size:1.15rem; 
  color:var(--teal); 
  font-weight:600;
 }*/
.tl-node .tl-label {
  position: relative;
  z-index: 3;

  font-family: var(--font-note);
  font-size: 1.15rem;
  color: var(--teal);
  font-weight: 600;

  /* Hide the decorative stroke behind the label */
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 5px;
}
.tl-card{
  background:var(--paper-raised);
  border:1.5px solid var(--ink-18);
  border-radius:var(--radius-m);
  padding:26px 26px;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tl-card:hover{ border-color:var(--navy); box-shadow:0 12px 26px -16px var(--ink-40); transform:translateY(-3px); }
.tl-card .stage-tag{ font-family:var(--font-note); font-size:1.05rem; color:var(--teal); display:block; margin-bottom:4px; }
.tl-card h3{ font-size:1.24rem; color:var(--navy); margin-bottom:10px; }
.tl-card p{ font-size:.97rem; line-height:1.62; color:var(--ink-65); }
.tl-card .tl-icon{ width:34px; height:34px; margin-bottom:12px; }

.stage-toggle{
  margin-top:14px;
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-body); font-weight:700; font-size:.86rem;
  color:var(--teal); cursor:pointer; background:none; border:none; padding:0;
}
.stage-toggle svg{ width:15px; height:15px; transition:transform .25s ease; }
.stage-toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }

.rounds-wrap{ max-height:0; overflow:hidden; transition:max-height .4s ease; }
.rounds-wrap.open{ max-height:3200px; }
.rounds-path{
  margin-top:18px; padding-top:18px; border-top:1.5px dashed var(--ink-18);
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px;
}
.round-item{ display:flex; gap:12px; background:var(--surface); border:1px solid var(--ink-18); border-radius:12px; padding:14px 14px; }
.round-item .r-num{
  flex:0 0 auto; width:30px; height:30px; border-radius:50%;
  background:var(--paper-raised); border:1.6px solid var(--turquoise); color:var(--navy);
  font-family:var(--font-head); font-size:.86rem; display:flex; align-items:center; justify-content:center;
}
.round-item h4{ font-size:.88rem; color:var(--navy); margin-bottom:4px; font-family:var(--font-body); font-weight:700; }
.round-item p{ font-size:.83rem; line-height:1.5; color:var(--ink-65); }

.certificate-note{
  margin-top:20px;
  display:flex; align-items:center; gap:24px;
  background:var(--paper-raised);
  border:1.6px dashed var(--turquoise);
  border-radius:var(--radius-m);
  padding:26px 30px;
}
.certificate-note .icon-ink{ flex:0 0 auto; width:64px; height:64px; }
.certificate-note h3{ font-size:1.12rem; color:var(--navy); margin-bottom:6px; }
.certificate-note p{ font-size:.94rem; color:var(--ink-65); line-height:1.6; }

/* =====================================================================
   ABOUT PAGE
   ===================================================================== */
.values-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.value-card{ border:1.5px solid var(--ink-18); border-radius:var(--radius-m); padding:24px; background:var(--paper-raised); transition:border-color .2s ease, transform .2s ease; }
.value-card:hover{ border-color:var(--navy); transform:translateY(-3px); }
.value-card .icon-ink{ width:30px; height:30px; margin-bottom:12px; }
.value-card h3{ font-size:1.05rem; color:var(--navy); margin-bottom:8px; }
.value-card p{ font-size:.94rem; color:var(--ink-65); line-height:1.6; }

.big-portrait{
  border:1.6px solid var(--navy);
  border-radius:var(--radius-l);
  padding:14px;
  background:var(--paper-raised);
  max-width:420px;
  margin:0 auto;
  position:relative;
}
.big-portrait img{ border-radius:calc(var(--radius-l) - 6px); }

/* =====================================================================
   AUTH PAGE — login / sign up
   ===================================================================== */
.auth-section{ padding:60px 0 90px; }
.auth-shell{
  max-width:960px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr;
  border:1.6px solid var(--navy);
  border-radius:var(--radius-l);
  overflow:hidden;
  background:var(--paper-raised);
}
.auth-side{
  background:var(--navy);
  color:var(--paper);
  padding:44px 38px;
  position:relative;
  display:flex; flex-direction:column; justify-content:space-between;
  overflow:hidden;
}
.auth-side::before{
  content:"";
  position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:22px 22px;
}
.auth-side-content{ position:relative; z-index:1; }
.auth-side .note-label{ color:var(--turquoise); margin-bottom:18px; }
.auth-side h2{ font-size:1.7rem; color:var(--paper); margin-bottom:14px; max-width:16ch; }
.auth-side p{ font-size:.98rem; line-height:1.65; color:rgba(251,249,243,.78); max-width:32ch; }
.auth-side .auth-illustration{ position:relative; z-index:1; margin-top:24px; }
.auth-side .auth-illustration img{ border-radius:14px; border:1.4px solid rgba(251,249,243,.35); }

.auth-form-wrap{ padding:44px 40px; }
.auth-tabs{
  display:flex; gap:6px; background:var(--surface); border-radius:100px; padding:5px; margin-bottom:32px;
}
.auth-tab{
  flex:1; text-align:center; padding:10px 0; border-radius:100px;
  font-family:var(--font-body); font-weight:700; font-size:.92rem; color:var(--ink-65);
  cursor:pointer; border:none; background:none; transition:background .18s ease, color .18s ease;
}
.auth-tab.active{ background:var(--paper-raised); color:var(--navy); box-shadow:0 2px 6px -2px var(--ink-40); }

.auth-form{ display:none; flex-direction:column; gap:20px; }
.auth-form.active{ display:flex; }

.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-family:var(--font-body); font-weight:700; font-size:.84rem; color:var(--navy); }
.field input{
  font-family:var(--font-body); font-size:.98rem; color:var(--navy);
  padding:12px 4px; border:none; border-bottom:1.6px solid var(--ink-18);
  background:transparent; transition:border-color .18s ease;
}
.field input:focus{ outline:none; border-bottom-color:var(--turquoise-dk); }
.field input::placeholder{ color:var(--ink-40); }

.field-row{ display:flex; justify-content:space-between; align-items:center; font-size:.86rem; }
.field-row a{ color:var(--teal); font-weight:700; }
.check-row{ display:flex; align-items:center; gap:8px; font-size:.88rem; color:var(--ink-65); }
.check-row input{ width:16px; height:16px; accent-color:var(--turquoise-dk); }

.auth-divider{ display:flex; align-items:center; gap:12px; margin:26px 0 18px; color:var(--ink-40); font-size:.82rem; font-weight:600; }
.auth-divider::before, .auth-divider::after{ content:""; flex:1; height:1px; background:var(--ink-18); }

.social-row{ display:flex; gap:12px; }
.social-btn{
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
  border:1.5px solid var(--ink-18); border-radius:100px; padding:10px 0;
  font-family:var(--font-body); font-weight:700; font-size:.86rem; color:var(--navy);
  background:var(--paper-raised); cursor:pointer; transition:border-color .18s ease;
}
.social-btn:hover{ border-color:var(--navy); }

.auth-foot-note{ text-align:center; font-size:.86rem; color:var(--ink-65); margin-top:22px; }
.auth-foot-note button{ color:var(--teal); font-weight:700; background:none; border:none; cursor:pointer; font-family:inherit; font-size:inherit; }

.form-msg{
  display:none;
  align-items:center; gap:8px;
  background:var(--turquoise-wash); border:1px solid var(--turquoise);
  color:var(--navy); font-size:.86rem; font-weight:600;
  padding:10px 14px; border-radius:10px; margin-top:6px;
}
.form-msg.show{ display:flex; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:420px; margin:0 auto; }
  .about-grid{ grid-template-columns:1fr; }
  .how-grid{ grid-template-columns:1fr 1fr; }
  .journey-row{ grid-template-columns:repeat(3,1fr); row-gap:22px; }
  .journey-line{ display:none; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .values-grid{ grid-template-columns:1fr; }
  .auth-shell{ grid-template-columns:1fr; }
  .auth-side{ order:2; }
  .timeline-item{ grid-template-columns:1fr; text-align:left; }
  .timeline-item .tl-card, .timeline-item.right .tl-card{ grid-column:1; grid-row:2; }
  .timeline-item .tl-node{ grid-column:1; grid-row:1; flex-direction:row; justify-content:flex-start; margin-bottom:12px; }
  .timeline-item .tl-spacer, .timeline-item.right .tl-spacer{ display:none; }
  .timeline-track{ left:36px; margin-left:-30px; width:60px; }
  .rounds-path{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0; z-index:60;
    background:var(--paper);
    border-bottom:0 solid var(--ink-18);
    box-shadow:0 12px 20px -10px var(--ink-40);
    flex-direction:column; align-items:stretch;
    padding:0 20px; gap:6px;
    max-height:0; overflow:hidden;
    transition:max-height .3s ease;
  }
  .nav-links a{ padding:12px 14px; border-radius:10px; }
  .nav-links.open{ max-height:420px; padding:16px 20px 22px; border-bottom:1.5px solid var(--ink-18); }
  .nav{ flex-wrap:nowrap; padding:12px 20px; }
  .brand img{ height:32px; }
  .brand-name{ font-size:1.05rem; }
  .nav-actions{ gap:6px; }
  .nav-login{ display:none; }
  .nav-cta{ padding:8px 16px; font-size:.82rem; }
  .nav-toggle{
    display:flex; align-items:center; justify-content:center;
    width:38px; height:38px; border:1.5px solid var(--navy); border-radius:10px;
    background:var(--paper-raised); cursor:pointer; flex:0 0 auto;
  }
  .how-grid{ grid-template-columns:1fr; }
  .journey-row{ grid-template-columns:repeat(2,1fr); }
  .footer-top{ grid-template-columns:1fr; }
  .certificate-note{ flex-direction:column; text-align:center; }
  .auth-form-wrap{ padding:32px 24px; }
  .auth-side{ padding:32px 24px; }
}

/* one orchestrated reveal — CSS-only, safe if JS never runs or content
   is never scrolled past (no permanently-hidden content) */
@keyframes fadeInUp{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}
.how-card, .value-card, .journey-node, .timeline-item{
  animation:fadeInUp .6s ease both;
}
.how-grid .how-card:nth-child(1){ animation-delay:.02s; }
.how-grid .how-card:nth-child(2){ animation-delay:.1s; }
.how-grid .how-card:nth-child(3){ animation-delay:.18s; }
.values-grid .value-card:nth-child(1){ animation-delay:.02s; }
.values-grid .value-card:nth-child(2){ animation-delay:.08s; }
.values-grid .value-card:nth-child(3){ animation-delay:.14s; }
.values-grid .value-card:nth-child(4){ animation-delay:.2s; }
.journey-row .journey-node:nth-child(1){ animation-delay:.02s; }
.journey-row .journey-node:nth-child(2){ animation-delay:.07s; }
.journey-row .journey-node:nth-child(3){ animation-delay:.12s; }
.journey-row .journey-node:nth-child(4){ animation-delay:.17s; }
.journey-row .journey-node:nth-child(5){ animation-delay:.22s; }
.journey-row .journey-node:nth-child(6){ animation-delay:.27s; }
.timeline-item{ animation-duration:.5s; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}

a:focus-visible, button:focus-visible, input:focus-visible{ outline:2.5px solid var(--turquoise-dk); outline-offset:2px; }

/* =====================================================================
   DECORATIVE LAB ILLUSTRATIONS — floating sketch material
   ===================================================================== */
.decor-field{ position:relative; }
.decor{
  position:absolute;
  pointer-events:none;
  opacity:.5;
  filter:drop-shadow(0 6px 10px rgba(22,35,63,.08));
  animation:decorFloat 7s ease-in-out infinite;
  z-index:0;
}
.decor img{ width:100%; height:100%; object-fit:contain; }
@keyframes decorFloat{
  0%,100%{ transform:translateY(0) rotate(var(--r,0deg)); }
  50%{ transform:translateY(-16px) rotate(calc(var(--r,0deg) + 4deg)); }
}
@keyframes decorSpinSlow{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}
.decor.spin{ animation:decorSpinSlow 18s linear infinite; }

/* =====================================================================
   HERO VIDEO — hover to watch Chemi-Cat's lab come alive
   ===================================================================== */
.hero-art .frame{ overflow:hidden; }
.hero-media{ position:relative; border-radius:calc(var(--radius-l) - 8px); overflow:hidden; }
.hero-media img,
.hero-media video{
  border-radius:calc(var(--radius-l) - 8px);
  transition:opacity .5s ease, transform .5s ease;
}
.hero-media video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0;
}
.hero-media:hover video{ opacity:1; }
.hero-media:hover img{ opacity:0; }
.hero-media:hover .hero-media-hint{ opacity:0; }
.hero-media-hint{
  position:absolute; left:50%; bottom:14px; transform:translateX(-50%);
  display:flex; align-items:center; gap:7px;
  background:rgba(22,35,63,.82); color:var(--paper);
  font-family:var(--font-body); font-weight:700; font-size:.76rem;
  padding:7px 14px; border-radius:100px;
  transition:opacity .3s ease;
  z-index:2; white-space:nowrap;
}
.hero-media-hint svg{ width:13px; height:13px; flex:0 0 auto; }

/* =====================================================================
   ROADMAP — illustrated stage icons (photo badges)
   ===================================================================== */
.tl-card .stage-icon-img{
  width:64px; height:64px; object-fit:contain;
  margin-bottom:12px;
  transition:transform .25s ease;
}
.tl-card:hover .stage-icon-img{ transform:scale(1.08) rotate(-3deg); }

.journey-node .medal{ overflow:hidden; }
.journey-node .medal img{ width:100%; height:100%; object-fit:contain; padding:6px; }
.tl-node .medal{ overflow:hidden; }
.tl-node .medal img{ width:100%; height:100%; object-fit:contain; padding:8px; }

/* =====================================================================
   SCROLL-REVEAL — elements fade/slide in as they enter the viewport
   ===================================================================== */
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-scale{ opacity:0; transform:scale(.92); transition:opacity .6s ease, transform .6s ease; }
.reveal-scale.in-view{ opacity:1; transform:scale(1); }

/* gentle continuous drift on hero art frame + mascot for a "living lab" feel */
@keyframes gentleDrift{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-8px); }
}
.hero-art{ animation:gentleDrift 6s ease-in-out infinite; }
.hero-art .doodle{ animation:decorFloat 5s ease-in-out infinite; }
.hero-art .doodle-bubbles{ animation-delay:.6s; }

@media (prefers-reduced-motion: reduce){
  .decor, .hero-art, .hero-art .doodle{ animation:none !important; }
  .reveal, .reveal-scale{ opacity:1 !important; transform:none !important; transition:none !important; }
}

@media (max-width: 720px){
  .decor{ display:none; }
}
