:root{
    --bg: #001028;      /* background */
    --ink: #efe1d2;     /* light text on dark */
    --ink-dark: #000000;/* dark text on light */
    --acc1: #e5d49c;    /* light gold */
    --acc2: #d4af37;    /* deep gold */
    --panel: #031633;   /* slightly lifted panel over bg */
    --shadow: 0 10px 25px rgba(0,0,0,.35);
    --radius: 16px;
  }

  html, body {
    background: url('https://static.igem.wiki/teams/5891/general/background-image.webp');
    /* background-size: cover; */
    background-repeat: repeat;  
    background-size: 100%;       
    position:relative;
    z-index:1000;
    overflow: auto; /* το περιεχόμενο παραμένει scrollable */
    scrollbar-width: none;      /* Firefox */
  }

  section.panel{
  min-height: 100vh;               /* centers the card nicely like a slide */
  display: grid;
  place-items: center;             /* center the card */
  padding: 5vh 3vw;                /* breathing space around the card */
  background: transparent !important;  /* show the body background */
}

  /* HERO — pure video, nothing on top */
  .hero{
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .video-frame{
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: #000; /* safe fallback while loading */
  }
  /* keep 16:9 inside viewport with cover-like behavior */
  .video-frame iframe{
    width: 100vw; height: 56.25vw;            /* 16:9 */
    max-height: 100vh; max-width: 177.78vh;   /* clamp to viewport */
    border: 0;
  }

  /* scroll cue sits BELOW the hero (not overlapping) */
  .scroll-cue-wrap{
    display: grid; place-items: center;
    padding: 12px 0 4px;
  }
  .scroll-cue{
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--acc1);
    font-size: .95rem;
    text-decoration: none;
  }
  .chev{ animation: bob 1.6s infinite ease-in-out; opacity:.85 }
  @keyframes bob { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(6px)} }

  /* PANELS */
  .panel{
  height:70vh;
  width:auto;
  display:grid;
  align-items:center;
  padding:64px 5vw;
  position:relative;

  /* 1) solid base */
  background-color: var(--bg); /* #001028 */

  /* 2) decorative layers on top */
  background-image:
    radial-gradient(1000px 500px at 20% 10%, rgba(212,175,55,0.15), transparent),
    radial-gradient(900px 500px at 80% 90%, rgba(229,212,156,0.12), transparent);
}
.panel > .wrap{
  width: min(1150px, 92vw);        /* responsive width */
  min-height: 80vh;                /* the “80% of screen” height */
  border-radius: 22px;

  /* Glass effect on dark: subtle tint + blur */
  background:
    linear-gradient(180deg, rgba(0,16,40,0.42), rgba(0,16,40,0.28));
  border: 1px solid rgba(229,212,156,0.16);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(229,212,156,0.08);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);

  padding: clamp(16px, 3vw, 28px); /* comfy inner spacing */
}

/* If you had old gradient panel backgrounds, neutralize them */
.panel.gradient-1,
.panel.gradient-2,
#benefits,
#explore{
  background: transparent !important;
}

/* Headings & text stay readable on glass */
.panel .kicker{ color: var(--acc2); }
.panel .h1{ color: var(--acc2); text-align: center; }
.panel .lead{ color: var(--acc1); text-align: center; }

/* Mobile: avoid huge cards and heavy blur */
@media (max-width: 640px){
  section.panel{ min-height: auto; padding: 28px 4vw; }
  .panel > .wrap{
    min-height: auto;
    border-radius: 16px;
    backdrop-filter: blur(6px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
  }
}
  .wrap{ max-width: 1200px; margin: 0 auto; }

  .kicker{
    color: var(--acc2);
    text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700;
  }
  .h1{ font-size: clamp(1.4rem, 3.1vw, 2.4rem); margin: 8px 0 12px }
  .lead{ color: var(--acc2);; opacity:.9; font-size: 1.06rem; max-width: 80ch }

  /* Cards */
  .cards{
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
    margin-top: 26px;
  }
  .card{
    grid-column: span 12;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(229,212,156,.18);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .card h4{ margin: 0 0 6px; font-size: 1.05rem; color: var(--acc1) }
  .card p{ margin: 0; color: var(--ink); opacity:.92; font-size: .97rem }
  .card .pill{
    display:inline-block; font-size:.76rem; color: var(--ink-dark);
    background: linear-gradient(180deg, var(--acc2), #b88f2e);
    padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; font-weight:700;
  }

  /* responsive columns */
  @media (min-width: 640px){
    .card{ grid-column: span 6; }
  }
  @media (min-width: 960px){
    .card{ grid-column: span 4; }
  }

  /* Link grid */
  .links{
    display: grid; gap: 12px; margin-top: 22px;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .link{
    display:block; text-decoration:none; color: var(--ink);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.2));
    border: 1px solid rgba(229,212,156,.22);
    padding: 14px 16px; border-radius: 12px;
  }
  .link small{ color: var(--acc1); display:block }
  .link:hover{ border-color: var(--acc2); box-shadow: 0 10px 30px rgba(212,175,55,.22) }

  @media (min-width: 960px){
    .links{ grid-template-columns: repeat(4, minmax(0,1fr)); }
  }

  /* reduced motion */
  @media (prefers-reduced-motion: reduce){
    .chev{ animation: none }
    html, body{ scroll-behavior: auto }
  }

  /* CLL STATS */

  #cll-stats { --card-bg: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }

  .cll-stats .kicker{ color: var(--acc2); text-transform: uppercase; letter-spacing:.1em; font-size:.78rem; font-weight:700; }
  .cll-stats__head{ margin-bottom: 10px; }
  .cll-stats .lead{ color: var(--ink); opacity:.9; margin-top: 6px; }

  .cll-stats__toggle{ display:flex; gap:10px; margin: 14px 0 6px; flex-wrap:wrap; }
  .cll-tab{
    background: transparent; color: var(--ink);
    border: 1px solid rgba(229,212,156,.35);
    padding: 8px 14px; border-radius: 999px; cursor: pointer;
    font-weight: 600;
  }
  .cll-tab.is-active{
    background: linear-gradient(180deg, var(--acc1), var(--acc2));
    color: var(--ink-dark);
    border-color: transparent;
  }

  .cll-grid{
    display: grid; gap: 18px; margin-top: 18px;
    grid-template-columns: repeat(12, 1fr);
  }
  .cll-card{
    grid-column: span 12;
    background: var(--card-bg);
    border: 1px solid rgba(229,212,156,.22);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
  }
  .cll-card h3{ margin: 0; font-size: .95rem; color: var(--acc1); letter-spacing:.2px; }
  .cll-card .value{ display:block; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-top: 6px; color: var(--ink); }
  .cll-card .meta{ display:block; color: var(--ink); opacity:.8; font-size:.9rem; margin-top: 4px; }
  .cll-card .hint{ color: var(--acc1); font-size: .8rem; opacity:.9; }

  @media (min-width: 640px){
    .cll-card{ grid-column: span 6; }
  }
  @media (min-width: 960px){
    /* 6-up for US, 4-up for Global/Europe will auto-wrap */
    .cll-card{ grid-column: span 4; }
  }

  .cll-footnote{ display:block; margin-top: 10px; color: var(--acc1); opacity:.85; }

  #cll-stats .cll-card{
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
#cll-stats .cll-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  border-color: rgba(212,175,55,.35);
}


/* Tabs: tiny “bubble” pop on hover/active */
#cll-stats .cll-tab{
  transition: transform .15s ease, box-shadow .15s ease;
}
#cll-stats .cll-tab:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212,175,55,.18);
}

/* Positioning and visibility */
  #scroll-rail{
    position: fixed;
    right: 14px;
    top: 10vh;
    width: 72px;
    height: 80vh;
    z-index: 4;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none; /* allow clicks only on markers */
  }
  #scroll-rail.show{ opacity: 1 }

  /* SVG sizing */
  #scroll-rail svg{
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
  }

  /* Rail styling (uses your colors) */
  #rail-base{
    stroke: rgba(229,212,156,.35); /* --acc1 at 35% */
    stroke-width: 5;
    stroke-linecap: round;
    fill: none;
  }
  #rail-progress{
    stroke: var(--acc2); /* deep gold */
    stroke-width: 5;
    stroke-linecap: round;
    fill: none;
  }
  #rail-dot{
    fill: var(--acc1);
    stroke: var(--acc2);
    stroke-width: 2;
  }

  /* Markers (absolute inside container, line up with the rail) */
  #rail-markers{
    position: absolute;
    inset: 0;
    pointer-events: none; /* flipped on the buttons */
  }
  .rail-dot-btn{
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--acc1), var(--acc2));
    border: 2px solid #fff3;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    cursor: pointer;
    pointer-events: auto;
  }
  .rail-dot-btn::after{
    content: attr(data-label);
    position: absolute;
    left: -8px; transform: translateX(-100%);
    white-space: nowrap;
    font-size: 12px;
    background: rgba(0,0,0,.35);
    color: var(--ink);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    opacity: 0; transition: opacity .2s ease;
    pointer-events: none;
  }
  .rail-dot-btn:hover::after,
  .rail-dot-btn.active::after{ opacity: 1 }

  /* Active state ring */
  .rail-dot-btn.active{
    outline: 3px solid rgba(212,175,55,.45);
    outline-offset: 2px;
  }

  /* Don’t show on small screens (space-saving) */
  @media (max-width: 900px){
    #scroll-rail{ display: none }
  }
.curve-title{ position:relative; text-align:center; margin:0 0 8px; }
.curve-title .sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.curve-svg{ width:min(100%,900px); height:220px; display:block; margin:0 auto; }

/* Single-color text (inherits your palette) */
.curve-text{
  fill: var(--ink);               /* #efe1d2 on your dark bg */
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .3px;
  paint-order: stroke fill;       /* optional subtle outline for contrast */
  stroke: rgba(0,0,0,.25);
  stroke-width: 1.5px;
}

@media (max-width:640px){
  .curve-svg{ height:180px; }
  .curve-text{ font-size:22px; }
}

/* h2 title*/
#cll-stats .h1 {
  color: var(--acc2);                  /* deep gold #d4af37 */
  text-align: center;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  text-wrap: balance;                  /* nicer line breaks (modern browsers) */
  margin: 0 0 8px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25), 0 6px 22px rgba(0,0,0,.25);
}
/* optional gold accent underline */
#cll-stats .h1::after{
  content:"";
  display:block;
  width: clamp(120px, 20vw, 260px);
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--acc2), transparent);
}

/* if you want a subtle “metallic” look instead of solid color: */
#cll-stats .h1.gold-gradient{
  color: transparent;
  background: linear-gradient(180deg, var(--acc1), var(--acc2));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none; /* gradient is usually clear enough */
}

#cll-stats .lead{
  color: transparent;
  background: linear-gradient(180deg, var(--acc1), var(--acc2));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

/* The challenges section */

/* Titles */
#challenges .kicker{ color: var(--acc2); text-transform: uppercase; letter-spacing:.1em; font-weight:700; font-size:.78rem; }
#challenges .h1{ color: var(--acc2); text-align:center; margin:8px 0 6px; }
#challenges .lead{ color: var(--acc1); text-align:center; margin: 4px auto 18px; max-width: 72ch; }

/* Hide old accordion grid if still in DOM */
#challenges .pc-grid{ display:none !important; }

/* Layout: 3 / 2 / 1 columns */
#challenges .flip-grid{
  display:grid !important;
  gap:18px;
  align-items:stretch;
  margin-top:12px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width:1023.98px){
  #challenges .flip-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:639.98px){
  #challenges .flip-grid{ grid-template-columns: 1fr; }
}

/* Card stage + height */
#challenges .flip-card{
  position:relative;
  width:100%;
  min-width:0;
  aspect-ratio: 4 / 3;                 /* change to 3/4 for taller cards */
  perspective:1200px;
  border-radius: var(--radius);
  outline:none;
}
@supports not (aspect-ratio: 1 / 1){
  /* Fallback height so images never render half */
  #challenges .flip-card::before{
    content:""; display:block; padding-top:75%; /* 4:3 */
  }
}

/* Flipping stage */
#challenges .flip-inner{
  position:absolute; inset:0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}

/* Faces */
#challenges .face{
  position:absolute; inset:0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  overflow:hidden;
  border:1px solid rgba(229,212,156,.22);
  box-shadow: var(--shadow);
}

/* FRONT — keep it on top at rest */
#challenges .face.front{
  transform: rotateY(0deg);
  z-index: 2;                          /* ensure above the back */
  background:var(--bg);                     /* fallback under image */
}
/* Full-bleed cover image */
#challenges .face.front > img{
  position:absolute; inset:0;
  width:100% !important;
  height:100% !important;
  object-fit:contain;
  object-position:center;
  display:block;
  max-width:none;                       /* beat theme img rules */
}

/* BACK — glass text */
#challenges .face.back{
  transform: rotateY(180deg);
  z-index:1;
  background: linear-gradient(180deg, rgba(0,16,40,.50), rgba(0,16,40,.34));
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  padding:16px 18px;
  display:flex; flex-direction:column;
}

#challenges .flip-title{ margin:0 0 6px; font-size:1.05rem; color:var(--acc2); }
#challenges .flip-blurb{ margin:0 0 8px; color:var(--ink); opacity:.92; }
#challenges .flip-points{ margin:0; padding-left:18px; color:var(--ink); opacity:.92; }
#challenges .flip-points li{ margin:6px 0; }

/* Interactions */
/* Hover flip (desktop) */
@media (hover:hover){
  #challenges .flip-card:hover .flip-inner{ transform: rotateY(180deg); }
}
/* Click/tap flip via .is-flipped class (JS toggles this) */
#challenges .flip-card.is-flipped .flip-inner{ transform: rotateY(180deg); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  #challenges .flip-inner{ transition:none; }
}
  /* Our Solution */

  [data-sol] .sol-wrap{ max-width:1200px; margin:0 auto; padding:0 5vw; }
#solution .kicker{ color: var(--acc2); text-transform: uppercase; letter-spacing:.1em; font-weight:700; font-size:.78rem; }
#solution .h1{ color: var(--acc2); text-align:center; margin:8px 0 6px; }
#solution .lead{ color: var(--acc1); text-align:center; margin: 4px auto 22px; max-width: 78ch; }

[data-sol] .sol-layout{
  display:grid; gap:22px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px){
  [data-sol] .sol-layout{ grid-template-columns: 1.1fr 1fr; }
}

[data-sol] .sol-steps{ }
[data-sol] .sol-step{
  display:flex; align-items:center; gap:10px;
  width:100%; text-align:left;
  background: transparent; color: var(--ink);
  border:1px solid rgba(229,212,156,.28);
  border-radius: 12px; padding:12px 14px; margin-bottom:10px; cursor:pointer;
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
[data-sol] .sol-step span{
  display:inline-grid; place-items:center; width:26px; height:26px; border-radius:999px;
  background: linear-gradient(180deg, var(--acc1), var(--acc2));
  color:#111; font-weight:800; font-size:.9rem;
}
[data-sol] .sol-step.is-active{
  border-color: var(--acc2);
  box-shadow: 0 10px 28px rgba(212,175,55,.18);
  transform: translateY(-1px);
}
[data-sol] .sol-copy{ margin-top: 8px; min-height: 72px; }
[data-sol] .sol-pane{ display:none; color: var(--ink); opacity:.92; }
[data-sol] .sol-pane.is-active{ display:block; }

[data-sol] .sol-ctas{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }
[data-sol] .sol-btn{
  text-decoration:none; color:#111; font-weight:800;
  padding:10px 14px; border-radius:10px;
  background: linear-gradient(180deg, var(--acc1), var(--acc2));
  border: 1px solid transparent;
}
[data-sol] .sol-btn.ghost{
  background: transparent; color: var(--ink); border-color: rgba(229,212,156,.28);
}

[data-sol] .sol-diagram svg{ width:100%; height:auto; display:block; }

[data-sol] .g-siRNA, [data-sol] .g-target, [data-sol] .g-deliver{
  opacity:.25; transition: opacity .25s ease, filter .25s ease;
}
[data-sol] .g-siRNA.is-active, [data-sol] .g-target.is-active, [data-sol] .g-deliver.is-active{
  opacity:1; filter: drop-shadow(0 10px 30px rgba(212,175,55,.13));
}

/* Explorethe project */

:root{
  --radius: 16px;
  --shadow: 0 8px 22px rgba(0,0,0,.18);
}

/* wrapper */
[data-hub] .hub-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}

/* headings & lead */
#explore .kicker{
  color: var(--acc2);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: clamp(.7rem, .62rem + .3vw, .85rem);
  text-align: center;
}
#explore .h1{
  color: var(--acc2);
  text-align: center;
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem);
  line-height: 1.2;
}
#explore .lead{
  color: var(--acc1);
  text-align: center;
  margin: 6px auto 18px;
  max-width: 72ch;
  font-size: clamp(.95rem, .9rem + .3vw, 1.1rem);
}

/* grid: auto-fit columns; collapses gracefully on phones */
[data-hub] .hub-grid{
  display: grid !important;
  gap: clamp(12px, 2.5vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  margin-top: 10px;
}

#explore .hub-grid{
  display: grid !important;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tablet */
@media (max-width: 1023.98px){
  #explore .hub-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone */
@media (max-width: 639.98px){
  #explore .hub-grid{
    grid-template-columns: 1fr;
  }
}

/* card */
[data-hub] .hub-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(229,212,156,.22);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 18px);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
}

/* image: responsive, consistent aspect, rounded corners */
[data-hub] .hub-card img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}

/* hover/focus (disabled motion respects) */
@media (hover: hover) and (pointer: fine){
  [data-hub] .hub-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0,0,0,.35);
    border-color: rgba(212,175,55,.35);
  }
}
@media (prefers-reduced-motion: reduce){
  [data-hub] .hub-card{ transition: none; }
}

/* optional icon slot */
[data-hub] .hub-icon{
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; color: var(--acc2);
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.25);
}

[data-hub] .hub-title{ margin: 2px 0 0; font-size: 1.06rem; color: var(--acc2); }
[data-hub] .hub-text{ margin: 0; color: var(--ink); opacity: .92; }

/* button: larger tap target, full-width on phones */
[data-hub] .hub-btn{
  align-self: center;
  margin-top: 8px;
  text-decoration: none;
  color: #111;
  font-weight: 800;
  padding: clamp(10px, 2.2vw, 12px) clamp(14px, 3vw, 16px);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--acc1), var(--acc2));
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(212,175,55,.18);
  line-height: 1;
}
[data-hub] .hub-btn:focus-visible{
  outline: 3px solid var(--bg);
  outline-offset: 3px;
}

/* phones: make buttons full width & center text */
@media (max-width: 639.98px){
  [data-hub] .hub-btn{
    align-self: stretch;
    text-align: center;
  }
}

/* Benefits section */
[data-benefits] .benefits-wrap{ max-width:1200px; margin:0 auto; padding:0 5vw; }
#benefits .kicker{ color: var(--acc2); text-transform: uppercase; letter-spacing:.1em; font-weight:700; font-size:.78rem; }
#benefits .h1{ color: var(--acc2); text-align:center; margin:8px 0 6px; }
#benefits .lead{ color: var(--acc1); text-align:center; margin: 4px auto 20px; max-width: 78ch; }

[data-benefits] .benefit-grid{
  display:grid; gap: 18px; margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

[data-benefits] .benefit-card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(229,212,156,.22);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .4s ease;
}
[data-benefits] .benefit-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  border-color: rgba(212,175,55,.35);
}

[data-benefits] .benefit-icon{
  width: 42px; height: 42px; display:grid; place-items:center;
  margin-bottom: 8px; color: var(--acc2);
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 10px;
}
[data-benefits] .benefit-icon svg{ width: 26px; height: 26px; }

[data-benefits] .benefit-title{ margin: 4px 0 4px; font-size: 1.05rem; color: var(--acc2); }
[data-benefits] .benefit-text{ margin: 0; color: var(--ink); opacity:.92; }

/* Subtle scroll-in reveal */
[data-benefits] .reveal{ opacity: 0; transform: translateY(12px); }
[data-benefits] .reveal.in{ opacity: 1; transform: translateY(0); }

/* Centered CTA */
[data-benefits] .benefits-cta{ display:flex; justify-content:center; margin-top: 12px; }
[data-benefits] .benefits-btn{
  text-decoration:none; color:#111; font-weight:800;
  padding:10px 14px; border-radius:10px;
  background: linear-gradient(180deg, var(--acc1), var(--acc2));
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(212,175,55,.18);
}
[data-benefits] .benefits-btn:focus{ outline: 3px solid rgba(212,175,55,.45); outline-offset: 2px; }

/* --- Reset minor defaults --- */
html, body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }

/* --- Kill the conflicting older .panel block (height/background) --- */
.panel{
  height: auto !important;
  background: transparent !important;
}

/* --- Panels behave like slides; card inside is glass --- */
section.panel{
  min-height: 100svh;                 /* full viewport for nice centering */
  display: grid;
  place-items: center;
  padding: clamp(24px, 5svh, 48px) 3vw;
  background: transparent !important;  /* let body image show through */
}

/* The “card” */
section.panel > .wrap{
  width: min(1150px, 92vw);
  min-height: 80vh;                   /* your 80% goal */
  border-radius: 22px;

  /* glass effect */
  background: linear-gradient(180deg, rgba(0,16,40,0.42), rgba(0,16,40,0.28));
  border: 1px solid rgba(229,212,156,0.16);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(229,212,156,0.08);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);

  padding: clamp(16px, 3vw, 28px);
}

/* Add breathing room between sections in case content is tall */
section.panel + section.panel { margin-top: clamp(12px, 3svh, 24px); }

/* HERO stays full height */
header.hero { min-height: 100svh; }

/* --- Mobile: let cards grow naturally and reduce blur --- */
@media (max-width: 640px){
  section.panel{ min-height: auto; padding: 28px 4vw; }
  section.panel > .wrap{
    min-height: auto;                  /* no fixed 80% on small screens */
    border-radius: 16px;
    backdrop-filter: blur(6px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
  }
}



/* Make sure the SVG itself just fills its box */
header.hero.hero-logo .logo-stage > svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* Enlarge only the raster/logo image inside the SVG */


/* Optional: scale a bit more on desktop only */


.hero-logo{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: transparent;
}

/* Full-width glass band (edge-to-edge, no horizontal scroll) */
.hero-logo .hero-band{
  inline-size: 100%;
  padding-block: clamp(20px, 8vh, 64px);
  background: linear-gradient(180deg, rgba(0,16,40,.45), rgba(0,16,40,.30));
  border-top: 1px solid rgba(229,212,156,.16);
  border-bottom: 1px solid rgba(229,212,156,.16);
  box-shadow: 0 18px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(229,212,156,.08);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  display: grid;
  place-items: center;
}

/* Logo size inside the band — change to 80vw if you want exactly 80% */
.hero-logo .logo-stage{
  inline-size: 90vw; max-inline-size: none;   /* ← set to 80vw if you prefer a fixed 80% */
  aspect-ratio: 10 / 3;
}

/* Make the SVG fill its container */
.hero-logo .logo-stage > svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* Brush “paint” animation (strokes auto scale on small screens) */
.logo-paint .brush-strokes .stroke{
  fill: none;
  stroke: var(--acc2);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: clamp(60px, 9vw, 160px);
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: paint-on 2.2s cubic-bezier(.65,.05,.36,1) forwards;
}
.logo-paint .stroke.s2{ animation-delay: .35s; }
.logo-paint .stroke.s3{ animation-delay: .70s; }
@keyframes paint-on{ to { stroke-dashoffset: 0; } }

/* Fade the logo as the paint finishes */
.logo-paint image{
  opacity: 0;
  animation: logo-fade 1.2s ease forwards .7s;
}
@keyframes logo-fade{ to { opacity: 1; } }

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce){
  .logo-paint .brush-strokes .stroke{ animation: none; stroke-dashoffset: 0; }
  .logo-paint image{ animation: none; opacity: 1; }
}

/* Mobile polish */
@media (max-width: 640px){
  .hero-logo{ min-height: 80svh; }
  .hero-logo .hero-band{
    padding-block: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,.38);
    backdrop-filter: blur(6px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
  }
}

@media (max-width: 640px){
  /* Size by height on phones */
  header.hero.hero-logo .logo-stage{
    inline-size: 96svw;                 /* almost edge-to-edge */
    block-size: clamp(160px, 32svh, 320px);  /* ↑ give it real height */
    aspect-ratio: auto;                  /* let height drive size */
  }

  /* Let the SVG fill that height safely */
  header.hero.hero-logo .logo-stage > svg{
    height: 100%;
    width: auto;
    max-width: 100%;                     /* prevent sideways overflow */
    display: block;
  }

  /* Thicker brush on small screens so paint still covers well */
  .logo-paint .brush-strokes .stroke{
    stroke-width: clamp(80px, 12svw, 180px);
  }

  /* Slightly reduce band padding to free up vertical space */
  .hero-logo .hero-band{
    padding-block: 16px;
  }
}

/* Home2*/

/* Zig Zag Timeline */
#zigzag-timeline{
  position: absolute;   /* scrolls with the page content */
  left: 0; top: 0;
  width: 100%;
  height: 0;            /* JS will set full document height */
  pointer-events: none;
  z-index: 0;           /* behind your glass panels */
  opacity: 1;
}

/* Path and dots use your golds */
#zigzag-timeline .zz-path{
  fill: none;
  stroke: url(#zz-gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}
#zigzag-timeline .zz-dot{
  fill: var(--acc1);
  stroke: var(--acc2);
  stroke-width: 2.5;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

/* Hide on small screens to keep things clean */
@media (max-width: 900px){
  #zigzag-timeline{ display: none; }
}

#zigzag-timeline{ position: fixed; top:0; left:0; }

/*Benefits new*/

#benefits .gallery-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* desktop: 3 per row */
  margin-top: 12px;
}

/* Tablet */
@media (max-width: 1023.98px){
  #benefits .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone */
@media (max-width: 639.98px){
  #benefits .gallery-grid{
    grid-template-columns: 1fr;
  }
}

/* Figure card */
#benefits .gallery-card{
  margin: 0;                               /* reset figure default */
  border-radius: none;
  overflow: hidden;
  border: none;;
  background: transparent;
  display: flex;
  flex-direction: column;
}

/* Image area with stable shape */
#benefits .gallery-card .media{
  position: relative;
  aspect-ratio: 16 / 10;                   /* uniform height — tweak if needed */
  background: transparent;                        /* safe fallback behind image */
}

/* Make image fill properly—change to contain if you want entire image visible */
#benefits .gallery-card .media > img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;                        /* use 'contain' to see whole image */
  object-position: center;
  display: block;
}

/* Caption */
#benefits .gallery-card .caption{
  margin: 0;
  padding: 12px 14px;
  color: var(--acc1);
  opacity: .92;
  line-height: 1.35;
  
}

/* Subtle hover polish */
@media (hover:hover){
  #benefits .gallery-card{
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  #benefits .gallery-card:hover{
    transform: translateY(-3px);
    box-shadow: transparent;
    border-color: transparent;
  }
}

#benefits .gallery-card .media > img{ object-fit: contain; background: transparent; }

