/* ==========================================================================
   Doodle Hub Ltd — Coming Soon
   Palette: ink #14120F, paper #FBF6EC, paper-dim #F1EADA, yellow #F5C518,
            yellow-deep #D9A600, slate #6B6558
   Type: Space Grotesk (display) / IBM Plex Sans (body) / Caveat (accent script)
   ========================================================================== */

:root{
  --ink: #14120F;
  --ink-soft: #2b2822;
  --paper: #FBF6EC;
  --paper-dim: #F1EADA;
  --yellow: #F5C518;
  --yellow-deep: #D9A600;
  --slate: #6B6558;
  --line: rgba(20,18,15,0.12);

  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --container: 991px;
  --radius: 22px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-snap-type: y proximity; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2{
  font-family: var(--display);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

img{ max-width: 100%; display: block; }
button{ font-family: inherit; }

.visually-hidden{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible{
  outline: 3px solid var(--yellow-deep);
  outline-offset: 3px;
}

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

.progress-rail{
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
  background: transparent;
}
.progress-fill{
  height: 100%; width: 0%; background: var(--ink);
  transform-origin: left;
}

/* ---------- Hero: full-screen animated logo ---------- */
.hero{
  position: relative;
  height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  scroll-snap-align: start;
}
.hero-canvas-wrap{
  position: absolute; inset: 0; z-index: 0;
}
#heroCanvas{ width: 100%; height: 100%; display: block; }

.hero-inner{
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.hero-logo{
  width: min(720px, 82vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(20,18,15,0.12));
}

.scroll-cue{
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  background: none; border: none; color: var(--slate); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.scroll-cue svg{ animation: bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ---------- Message section ---------- */
.message{
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(60px, 9vw, 100px) 0;
  overflow: hidden;
  scroll-snap-align: start;
}
.message-inner{
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--slate); margin: 0 0 16px;
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,0.5);
}
.eyebrow-dark{
  color: var(--yellow);
  border-color: rgba(251,246,236,0.18);
  background: rgba(251,246,236,0.06);
}
.eyebrow-dot{
  width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-deep);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.eyebrow-dark .eyebrow-dot{ background: var(--yellow); }
@keyframes pulse-dot{ 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: 0.4; transform: scale(0.7);} }

.message-title{ font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 700; margin-bottom: 20px; }
.message-title .line{ display: block; overflow: hidden; }

.message-sub{
  margin: 0 0 0.85em;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
}
.message-sub-2{ margin-bottom: 26px; }

.message-cta{
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); border: none; border-radius: 100px;
  padding: 14px 28px; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.message-cta:hover{ background: var(--yellow-deep); color: var(--ink); transform: translateY(-2px); }

/* ---------- Enquire ---------- */
.enquire{
  position: relative; background: var(--ink); color: var(--paper);
  overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(50px, 7vw, 90px) 0;
  scroll-snap-align: start;
}
.enquire-inner{
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto; width: 100%;
  padding: 0 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.enquire-inner h2{ font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 26px; max-width: 18ch; }

.step-indicator{
  display: flex; align-items: center; gap: 8px; margin-bottom: 28px;
}
.step-dot{
  width: 8px; height: 8px; border-radius: 50%; background: rgba(251,246,236,0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}
.step-dot.is-active{ background: var(--yellow); transform: scale(1.25); }

.enquire-form{
  color: var(--paper);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  width: 100%;
}
.form-step{ display: none; flex-direction: column; gap: 14px; }
.form-step.is-active{ display: flex; }

.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.field{ display: flex; flex-direction: column; gap: 6px; border: none; margin: 0; padding: 0; width: 100%; }
.field legend{ font-size: 0.85rem; font-weight: 600; color: rgba(251,246,236,0.75); padding: 0; }
.field input, .field select, .field textarea{
  border: 1.5px solid rgba(251,246,236,0.18); border-radius: 12px; padding: 12px 14px;
  font-family: var(--body); font-size: 0.98rem; background: rgba(251,246,236,0.06); color: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder{ color: rgba(251,246,236,0.45); }
.field textarea{ resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--yellow); background: rgba(251,246,236,0.1);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.2);
  outline: none;
}

.feature-field{ text-align: left; }
.feature-field legend{ margin-bottom: 4px; text-align: center; width: 100%; }
.feature-hint{ margin: 0 0 10px; font-size: 0.85rem; color: rgba(251,246,236,0.55); text-align: center; }
.feature-grid{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 10px;
}
.feature-check{
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 500; color: rgba(251,246,236,0.85);
  padding: 9px 12px; border: none; border-radius: 10px;
  background: rgba(251,246,236,0.05);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.feature-check input{ accent-color: var(--yellow); width: 16px; height: 16px; flex-shrink: 0; }
.feature-check:has(input:checked){ background: rgba(245,197,24,0.18); color: var(--paper); }

.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.enquire-form-actions{
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 4px;
}
.enquire-next, .enquire-submit{
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: var(--ink); border: none; border-radius: 100px;
  padding: 14px 26px; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: center; margin-top: 4px;
}
.enquire-next:hover, .enquire-submit:hover{ background: var(--paper); transform: translateY(-2px); }
.enquire-submit:disabled{ opacity: 0.6; cursor: progress; transform: none; }
.enquire-back{
  background: none; border: none; color: rgba(251,246,236,0.6); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; padding: 14px 6px;
  transition: color 0.2s ease;
}
.enquire-back:hover{ color: var(--paper); }
.enquire-form-note{ min-height: 1.4em; font-size: 0.9rem; color: rgba(251,246,236,0.6); margin: 0; text-align: center; }
.enquire-form-note.is-success{ color: #3fae6f; font-weight: 600; }
.enquire-form-note.is-error{ color: #e2685f; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink); color: rgba(251,246,236,0.6);
  padding: 22px clamp(20px, 5vw, 56px) 28px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; border-top: 1px solid rgba(251,246,236,0.1);
}
.site-footer p{ margin: 0; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px){
  .hero-logo{ width: 88vw; }
  .message{ padding: 70px 18px 80px; }
  .enquire{ padding: 50px 18px 70px; }
  .field-row{ grid-template-columns: 1fr; }
  .feature-grid{ grid-template-columns: 1fr; }
}
