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

    :root {
      --ink:      #1a1a14;
      --earth:    #2c2416;
      --forest:   #1e3d20;
      --moss:     #4a7c59;
      --sage:     #7a9e7e;
      --sand:     #e8d5b0;
      --cream:    #f7f2e8;
      --warm:     #f0ebe0;
      --terracotta: #b85c38;
      --gold:     #c9963a;
      --white:    #ffffff;
      --card-shadow: 0 20px 60px rgba(26,26,20,0.18), 0 4px 16px rgba(26,26,20,0.08);
    }

    html { scroll-behavior: smooth; }
    body {
      font-family: 'Libre Franklin', sans-serif;
      background: var(--cream);
      color: var(--ink);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── HERO ─────────────────────────────────────────────────────────── */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      pointer-events: none;
    }

    /* Re-enable pointer events for interactive elements inside the hero */
    .hero-content, .hero-scroll-hint, .hero-badge {
      pointer-events: auto;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1800&auto=format&fit=crop&q=80');
      background-size: cover;
      background-position: center 30%;
      transform: scale(1.04);
      animation: slowZoom 20s ease-out forwards;
    }

    @keyframes slowZoom {
      from { transform: scale(1.04); }
      to   { transform: scale(1.0);  }
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        170deg,
        rgba(26,26,20,0.72) 0%,
        rgba(30,61,32,0.55) 45%,
        rgba(26,26,20,0.80) 100%
      );
    }

    .hero-grain {
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      opacity: 0.45;
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 2rem 1.5rem 10rem;
      max-width: 720px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(201,150,58,0.25);
      border: 1px solid rgba(201,150,58,0.5);
      color: var(--sand);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 0.4em 1.1em;
      border-radius: 100px;
      margin-bottom: 2rem;
      animation: fadeUp 0.8s ease both;
    }

    .hero h1 {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      font-size: clamp(2.8rem, 7vw, 5.5rem);
      color: var(--white);
      line-height: 1.05;
      letter-spacing: -0.02em;
      margin-bottom: 1.5rem;
      animation: fadeUp 0.8s 0.1s ease both;
    }

    .hero h1 em {
      font-style: italic;
      color: var(--sand);
    }

    .hero-sub {
      font-size: 1.1rem;
      font-weight: 300;
      color: rgba(232,213,176,0.85);
      line-height: 1.7;
      max-width: 500px;
      margin: 0 auto 2.5rem;
      animation: fadeUp 0.8s 0.2s ease both;
    }

    .hero-scroll-hint {
      position: absolute;
      bottom: 2.5rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      color: rgba(232,213,176,0.6);
      font-size: 0.72rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      animation: fadeUp 1s 0.5s ease both;
    }

    .scroll-line {
      width: 1px;
      height: 48px;
      background: linear-gradient(to bottom, rgba(232,213,176,0.5), transparent);
      animation: scrollPulse 2s ease-in-out infinite;
    }

    @keyframes scrollPulse {
      0%, 100% { opacity: 0.4; transform: scaleY(1); }
      50%       { opacity: 1;   transform: scaleY(0.6) translateY(10px); }
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── FIREFLIES ───────────────────────────────────────────────────── */
    .firefly {
      position: absolute;
      width: 5px; height: 5px;
      border-radius: 50%;
      background: radial-gradient(circle, #ffe89a, #c9963a);
      pointer-events: none;
      opacity: 0;
      animation: fireflyFloat var(--dur,6s) ease-in-out infinite,
                 fireflyGlow 2s ease-in-out infinite alternate;
      animation-delay: var(--delay,0s);
    }
    @keyframes fireflyFloat {
      0%   { transform: translate(0,0); opacity:0; }
      15%  { opacity:0.9; }
      50%  { transform: translate(var(--tx),var(--ty)); opacity:0.7; }
      85%  { opacity:0.5; }
      100% { transform: translate(calc(var(--tx)*1.6),calc(var(--ty)*0.4)); opacity:0; }
    }
    @keyframes fireflyGlow {
      from { box-shadow: 0 0 4px 2px rgba(255,232,154,0.4); }
      to   { box-shadow: 0 0 12px 6px rgba(201,150,58,0.8); }
    }

    /* ── FLOATING PARTICLES ──────────────────────────────────────────── */
    .particle-canvas {
      position: fixed; inset: 0;
      pointer-events: none; z-index: 0; overflow: hidden;
    }
    .ptcl {
      position: absolute;
      font-size: var(--sz,14px);
      opacity: 0;
      animation: particleDrift var(--pdur,12s) linear infinite;
      animation-delay: var(--pdelay,0s);
      filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
    }
    @keyframes particleDrift {
      0%   { transform: translateY(105vh) translateX(0) rotate(0deg); opacity:0; }
      8%   { opacity: var(--pop,0.55); }
      90%  { opacity: var(--pop,0.45); }
      100% { transform: translateY(-120px) translateX(var(--drift,60px)) rotate(var(--spin,360deg)); opacity:0; }
    }

    /* ── PROGRESS VINE ───────────────────────────────────────────────── */
    /* SVG is built by JS so it can measure real pixel positions.        */
    .vine-path {
      transition: stroke-dashoffset 0.25s ease;
    }
    /* Outer <g> handles position via SVG transform attribute — no CSS transform here */
    .vine-bud { opacity: 0; transition: opacity 0.5s ease; }
    .vine-bud.sprouted { opacity: 1; }
    /* Inner <g> handles the pop-scale animation safely */
    .vine-bud-inner {
      transform-box: fill-box;
      transform-origin: center;
      transform: scale(0);
      transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
    }
    .vine-bud.sprouted .vine-bud-inner { transform: scale(1); }

    /* ── CARD ICON BOUNCE ────────────────────────────────────────────── */
    @keyframes iconBounce {
      0%   { transform: scale(0) rotate(-15deg); }
      50%  { transform: scale(1.35) rotate(8deg); }
      70%  { transform: scale(0.88) rotate(-3deg); }
      85%  { transform: scale(1.1) rotate(2deg); }
      100% { transform: scale(1) rotate(0deg); }
    }
    .scard.visible .card-icon {
      animation: iconBounce 0.72s 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
    }

    /* ── SLIDER VALUE POP ────────────────────────────────────────────── */
    @keyframes valPop {
      0%   { transform: scale(1); }
      40%  { transform: scale(1.3); color: var(--gold); }
      100% { transform: scale(1); }
    }
    .sval.popping { animation: valPop 0.28s ease both; }

    /* ── RIPPLE ON SLIDER ────────────────────────────────────────────── */
    .slider-wrap { position: relative; }
    .ripple-dot {
      position: absolute;
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(74,124,89,0.4);
      pointer-events: none;
      transform: translate(-50%,-50%);
      top: calc(50% + 3px);
      animation: rippleOut 0.55s ease-out forwards;
    }
    @keyframes rippleOut {
      from { width:4px; height:4px; opacity:0.9; }
      to   { width:40px; height:40px; opacity:0; }
    }

    /* ── BURST LEAVES ON SUBMIT ──────────────────────────────────────── */
    .sbtn-wrap { position: relative; display: inline-block; }
    .burst-leaf {
      position: absolute;
      font-size: 17px;
      pointer-events: none;
      top: 50%; left: 50%; opacity: 0;
      animation: leafBurst var(--bdur,0.8s) ease-out forwards;
      animation-delay: var(--bdelay,0s);
    }
    @keyframes leafBurst {
      0%   { transform: translate(-50%,-50%) scale(0.4) rotate(0deg); opacity:1; }
      100% { transform: translate(calc(-50% + var(--bx)),calc(-50% + var(--by))) scale(0) rotate(var(--brot)); opacity:0; }
    }

    /* ── CARD SHIMMER ────────────────────────────────────────────────── */
    .scard::after {
      content: '';
      position: absolute; inset: 0; border-radius: 4px;
      background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.07) 50%, transparent 62%);
      background-size: 250% 100%; background-position: -100% 0;
      pointer-events: none;
      transition: background-position 0.6s ease;
    }
    .scard:hover::after { background-position: 200% 0; }

    /* ── WOBBLY SELECT FOCUS ─────────────────────────────────────────── */
    @keyframes wobbleFocus {
      0%,100% { transform: rotate(0deg); }
      25%  { transform: rotate(-0.4deg); }
      75%  { transform: rotate(0.4deg); }
    }
    select:focus { animation: wobbleFocus 0.4s ease; }

    /* ── FORM WRAPPER ────────────────────────────────────────────────── */
    .form-wrap {
      max-width: 800px;
      margin: -6rem auto 0;
      padding: 0 1.25rem 5rem;
      position: relative;
      z-index: 3;
    }

    /* ── SECTION CARDS ───────────────────────────────────────────────── */
    .scard {
      background: var(--white);
      border-radius: 4px;
      overflow: hidden;
      margin-bottom: 2rem;
      box-shadow: var(--card-shadow);
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .scard.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Photo header for each card */
    .card-photo {
      position: relative;
      height: 200px;
      overflow: hidden;
    }

    .card-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform 8s ease;
    }

    .scard:hover .card-photo img {
      transform: scale(1.03);
    }

    .card-photo-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(26,26,20,0.1) 0%,
        rgba(26,26,20,0.55) 100%
      );
    }

    .card-photo-label {
      position: absolute;
      bottom: 1.25rem;
      left: 1.75rem;
      right: 1.75rem;
      display: flex;
      align-items: flex-end;
      gap: 0.75rem;
    }

    .card-icon {
      width: 42px;
      height: 42px;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      flex-shrink: 0;
    }

    .card-photo-label h2 {
      font-family: 'Playfair Display', serif;
      font-size: 1.7rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1.1;
      text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }

    /* Card body */
    .cbody {
      padding: 2rem 2.25rem 2.25rem;
      background: var(--white);
    }

    .chint {
      font-size: 0.9rem;
      color: #6b7a6e;
      line-height: 1.65;
      margin-bottom: 1.5rem;
      padding-bottom: 1.25rem;
      border-bottom: 1px solid #edeae4;
    }

    /* ── FORM ELEMENTS ───────────────────────────────────────────────── */
    .field-group { margin-bottom: 1.25rem; }

    label.fl {
      display: block;
      font-size: 0.8rem;
      font-weight: 600;
      color: #3a4a3e;
      margin-bottom: 0.5rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    select, input[type="text"] {
      width: 100%;
      padding: 0.78rem 2.5rem 0.78rem 1rem;
      border: 1.5px solid #d8e0d9;
      border-radius: 3px;
      font-family: 'Libre Franklin', sans-serif;
      font-size: 0.95rem;
      color: var(--ink);
      background: var(--warm);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a7c59' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-color: var(--warm);
      cursor: pointer;
    }

    input[type="text"] {
      background-image: none;
      padding-right: 1rem;
      font-size: 1.1rem;
      letter-spacing: 0.05em;
    }

    select:focus, input[type="text"]:focus {
      border-color: var(--moss);
      background-color: var(--white);
      box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
    }

    /* ── SLIDERS ─────────────────────────────────────────────────────── */
    .sw { margin-top: 0.25rem; }

    .sh {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 0.75rem;
      gap: 1rem;
    }

    .sh .fl { margin: 0; }

    .sval {
      font-family: 'Playfair Display', serif;
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--moss);
      line-height: 1;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .sval .u {
      font-family: 'Libre Franklin', sans-serif;
      font-size: 0.7rem;
      font-weight: 400;
      color: #9aab9f;
      margin-left: 0.2em;
    }

    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 5px;
      background: linear-gradient(
        to right,
        var(--moss) 0%,
        var(--moss) var(--pct, 0%),
        #d8e4d9 var(--pct, 0%),
        #d8e4d9 100%
      );
      border-radius: 100px;
      outline: none;
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--white);
      border: 2.5px solid var(--moss);
      box-shadow: 0 2px 8px rgba(74,124,89,0.25);
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
    }

    input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.2);
      box-shadow: 0 3px 14px rgba(74,124,89,0.4);
    }

    input[type="range"]::-moz-range-thumb {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--white);
      border: 2.5px solid var(--moss);
      cursor: pointer;
    }

    .sl {
      display: flex;
      justify-content: space-between;
      font-size: 0.7rem;
      color: #a0ada3;
      margin-top: 0.4rem;
      letter-spacing: 0.02em;
    }

    /* ── DIVIDERS & SUB-SECTIONS ─────────────────────────────────────── */
    .divider {
      border: none;
      border-top: 1px solid #edeae4;
      margin: 1.75rem 0;
    }

    .sub-head {
      font-family: 'Playfair Display', serif;
      font-weight: 400;
      font-style: italic;
      font-size: 1.05rem;
      color: var(--earth);
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .tip {
      font-size: 0.82rem;
      color: #5a7060;
      background: linear-gradient(135deg, #f0f5f0, #eaf2eb);
      border-left: 3px solid var(--sage);
      border-radius: 0 4px 4px 0;
      padding: 0.65rem 1rem;
      margin-top: 0.9rem;
      line-height: 1.55;
    }

    /* ── SUBMIT ──────────────────────────────────────────────────────── */
    .submit-area {
      text-align: center;
      padding: 1rem 0 2rem;
    }

    .sbtn {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      background: var(--forest);
      color: var(--sand);
      border: none;
      border-radius: 3px;
      padding: 1.1rem 3rem;
      font-family: 'Libre Franklin', sans-serif;
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 8px 28px rgba(30,61,32,0.35);
      transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
      position: relative;
      overflow: hidden;
    }

    .sbtn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(201,150,58,0.15), transparent);
      opacity: 0;
      transition: opacity 0.2s;
    }

    .sbtn:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 40px rgba(30,61,32,0.45);
      background: #162d18;
    }

    .sbtn:hover::before { opacity: 1; }
    .sbtn:active { transform: translateY(0); }

    .sbtn .arr {
      font-size: 1.1rem;
      transition: transform 0.2s;
    }

    .sbtn:hover .arr { transform: translateX(5px); }

    /* ── ERROR BANNER ────────────────────────────────────────────────── */
    .error-banner {
      background: #fdf0ec;
      border: 1.5px solid #d4705a;
      border-radius: 4px;
      color: #8b3520;
      padding: 0.9rem 1.25rem;
      margin-bottom: 1.5rem;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    /* ── RESPONSIVE ──────────────────────────────────────────────────── */
    @media (max-width: 560px) {
      .card-photo { height: 150px; }
      .cbody { padding: 1.5rem 1.25rem 1.75rem; }
      .hero h1 { font-size: 2.5rem; }
      .card-photo-label h2 { font-size: 1.35rem; }
    }

  /* ── INFO POPOVERS ───────────────────────────────────────────────── */
  .info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 0.4em;
    transition: background 0.15s, transform 0.15s;
    line-height: 1;
  }
  .info-btn:hover { background: var(--moss); transform: scale(1.15); }

  .info-popover {
    position: absolute;
    z-index: 100;
    width: 260px;
    background: var(--white);
    border: 1.5px solid #d8e0d9;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(26,26,20,0.18);
    padding: 1rem 1.1rem 0.9rem;
    font-size: 0.83rem;
    color: #3a4a3e;
    line-height: 1.6;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .info-popover.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .info-popover::before {   /* little arrow */
    content: '';
    position: absolute;
    top: -7px; left: 18px;
    border: 6px solid transparent;
    border-bottom-color: #d8e0d9;
    border-top: none;
  }
  .info-popover::after {
    content: '';
    position: absolute;
    top: -5px; left: 19px;
    border: 5px solid transparent;
    border-bottom-color: var(--white);
    border-top: none;
  }
  .info-popover-title {
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.4rem;
  }
  /* wrapper so the popover is positioned relative to the label row */
  .label-row {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  .label-row .fl { margin-bottom: 0; }








    /* ── Footer ───────────────────────────────────────────────────── */
    #pageFooter {
      border-top: 3px solid #a6a6a6;
      text-align: center;
      padding: 1.5rem 1rem;
      margin-top: 3rem;
    }

    #footerText {
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #a6a6a6;
      margin-bottom: 0.5rem;
    }
    #privacyNotice {
      font-size: 0.75rem;
      color: #a6a6a6;
      margin-top: 1rem;
      max-width: 480px;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.5;
    }


/* ── Honeypot field: invisible to real users, visible to bots ─── */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  tab-index: -1;
  pointer-events: none;
}
