:root{
    --bg: #f5f0ea;
    --surface: #FBF9F4;
    --ink: #1D1F22;
    --ink-2: #3A3F45;
    --muted: #6B727A;
    --border: rgba(29,31,34,0.14);
    --shadow: 0 18px 50px rgba(29,31,34,0.10);
  
    --accent: #7A6B5E;
    --accent-2: #A39283;
  
    --radius: 16px;
    --radius-sm: 12px;
    --container: 1120px;
  
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  }
  
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body{
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    letter-spacing: 0.1px;
  }
  a{ color: inherit; text-decoration: none; }
  a.link{ text-decoration: underline; text-underline-offset: 4px; }
  
  .skip-link{
    position: absolute;
    top: 10px; left: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 10px;
    transform: translateY(-140%);
  }
  .skip-link:focus{ transform: translateY(0); outline: none; }
  
  .container{
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
  }
  
  /* Header */


  header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    align-self: center;
    text-align: center;
  }
header h1{
  font-size: 30px;
  padding: 10px;
  padding-top: 23px;
  color: #1f4a41;
}


  .site-header{
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--border);
    z-index: 20;
  }
  .header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
  }
  .brand{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
  }
  .mark{
    width: 65px;
    height: 65px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(29,31,34,0.08);
    display: grid;
    place-items: center;
  }
  .mark img{ width: 50px; height: 50px; border-radius: 10px;}
  .brand-name{ font-weight: 600; letter-spacing: 0.6px; }
  .brand-sub{ font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  
  .nav{
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--ink-2);
    font-size: 14px;
  }
  .nav a{ padding: 8px 10px; border-radius: 10px; }
  .nav a:hover{ background: rgba(29,31,34,0.05); }
  .nav a[aria-current="page"]{ background: rgba(29,31,34,0.06); }
  
  .header-cta{ display: none; }
  
  /* Hero */
  .hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 90vh;
    position: relative;
    padding: 64px 0 28px;
    overflow: hidden;
    
  }
  
  .hero-grid{
    position: relative;
    min-height: 520px;          /* adjust as you like */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  /* .hero-grid::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
  } */
  
  .hero-video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* like background-size: cover */
    z-index: 0;
    border-radius: 38px;
    box-shadow: 0 8px 24px rgba(37, 29, 29, 0.774);
  }
  
  .hero-copy{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    color: white;
  }
  .kicker{
    display: inline-block;
    font-size: 12.5px;
    letter-spacing: 0.4px;
    color: var(--muted);
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface) 88%, transparent);
    padding: 6px 10px;
    border-radius: 999px;
    margin: 0 0 14px;
  }
  h1{
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.6px;
  }
  .h1-sm{
    margin: 0 0 10px;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
  .lead{
    margin: 0 0 16px;
    font-size: 16.5px;
    color: var(--ink-2);
    max-width: 62ch;
  }
  .bullets{ margin: 0 0 20px; padding-left: 18px; color: var(--ink-2); }
  .bullets li{ margin: 6px 0; }
  
  .hero-cta{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
    border: 38px;
  }
  .micro{ margin: 0; color: var(--muted); font-size: 13.5px; max-width: 65ch; }
  
  /* Buttons */
  .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--ink);
    color: var(--bg);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
  }
  .btn:hover{ filter: brightness(1.05); }
  .btn:focus{ outline: 2px solid color-mix(in oklab, var(--accent) 60%, white); outline-offset: 2px; }
  .btn-ghost{ background: transparent; color: var(--ink); }
  
  /* Card */
  .hero-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .card-top{ display: flex; gap: 10px; padding: 16px 16px 0; flex-wrap: wrap; }
  .chip{
    font-size: 12.5px;
    color: var(--ink-2);
    border: 1px solid var(--border);
    background: rgba(29,31,34,0.03);
    border-radius: 999px;
    padding: 6px 10px;
  }
  .chip-muted{ color: var(--muted); }
  .card-body{ padding: 16px; }
  .card-title{ font-weight: 600; font-size: 18px; letter-spacing: 0.2px; }
  .card-sub{ color: var(--muted); margin-top: 4px; font-size: 14px; }
  .accent{ color: var(--accent); font-weight: 600; }
  .divider{ height: 1px; background: var(--border); margin: 14px 0; }
  .card-meta{ display: grid; gap: 10px; font-size: 13.5px; }
  .meta-row{ display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
  .meta-row span:first-child{ color: var(--muted); }
  .card-footnote{ margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
  
  /* Sections */
  .section{ padding: 56px 0; }
  .section-tight{ padding: 40px 0 56px; }
  .section-alt{
    background: color-mix(in oklab, var(--surface) 70%, var(--bg));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .section-head{ display: grid; gap: 8px; max-width: 78ch; }
  h2{ margin: 0; font-size: 24px; letter-spacing: -0.2px; }
  .muted{ color: var(--muted); margin: 0; }
  
  .features{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
  }
  .feature{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
  }
  .feature h3{ margin: 0 0 6px; font-size: 15px; letter-spacing: 0.1px; }
  .feature p{ margin: 0; color: var(--ink-2); font-size: 14px; }
  
  /* Two col panels */
  .two-col{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
  }
  .panel{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
  }
  .panel h3{ margin: 0 0 8px; font-size: 15px; }
  .list{ margin: 0; padding-left: 18px; color: var(--ink-2); }
  .list li{ margin: 8px 0; }
  
  /* Notify */
  .notify-grid{
    display: grid;
    justify-content: center;
    align-items: center;
    align-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
    height: 20vw;
  }
  .notify{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(29, 31, 34, 0.136);
  }
  .field{ display: grid; gap: 8px; margin-bottom: 10px;  }
  .field-label{ font-size: 13px; color: var(--ink-2); }
  .field-help{ font-size: 12.5px; color: var(--muted); }
  
  input{
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface) 85%, white);
    padding: 0 12px;
    font-size: 14px;
    color: var(--ink);
  }
  input:focus{
    outline: 2px solid color-mix(in oklab, var(--accent) 55%, white);
    outline-offset: 2px;
  }
  .form-msg{ margin: 10px 0 0; font-size: 13px; color: var(--muted); }
  
  /* Pills */
  .pill-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }
  .pill{
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--ink-2);
  }
  .pill:hover{ filter: brightness(1.02); }
  
  /* Products */
  .product-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
  }
  .product-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(29,31,34,0.06);
    display: grid;
    gap: 10px;
  }
  .product-top{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
  .product-name{ font-weight: 600; }
  .product-tag{ font-size: 12.5px; color: var(--muted); }
  .product-desc{ margin: 0; color: var(--ink-2); font-size: 14px; }
  .product-meta{ display: grid; gap: 8px; font-size: 13.5px; }
  .product-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
  
  /* Modal */
  .modal{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    width: min(680px, calc(100% - 40px));
    box-shadow: var(--shadow);
    background: var(--surface);
  }
  .modal::backdrop{ background: rgba(29,31,34,0.35); }
  .modal-head{
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
  }
  .modal-title{ font-weight: 600; font-size: 18px; }
  .modal-body{ padding: 0 16px 16px; color: var(--ink-2); }
  .spacer-16{ height: 16px; }
  
  /* Contact + Footer */
  .contact{ max-width: 78ch; }
  .contact-row{
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .dot{ color: var(--muted); }
  
  .site-footer{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    position: relative;
    z-index: 5;
    padding-bottom: 20px;
  }
  .footer-inner{
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    align-items: baseline;
  }
  .footer-right{ font-size: 13px; }
  
  /* Responsive */
  @media (max-width: 900px){
    .hero-grid{ grid-template-columns: 1fr; }
    .features{ grid-template-columns: 1fr; }
    .notify-grid{ grid-template-columns: 1fr; }
    .two-col{ grid-template-columns: 1fr; }
    .product-grid{ grid-template-columns: 1fr; }
    .brand{ min-width: unset; }
    .nav{ display: none; }
    .header-cta{ display: inline-flex; }
  }

  .gal{
    padding-top: 100px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color:#1f4a41;
  }
  .gal img{
    background-color:#1f4a41;
    width: 63vw;
    margin-top: 35px;
    border-radius: 38px;
    margin-bottom: 35px;
  }

  /* ----------------------------
   Smooth simple animations
   (safe: transform + opacity)
----------------------------- */

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

/* Base reveal state */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

/* Visible state */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slightly slower variant (optional) */
.reveal.reveal-slow {
  transition-duration: 900ms;
}

/* Gallery images: a tiny scale + lift feels premium */
.gal .gal_img.reveal {
  transform: translateY(18px) scale(0.985);
}
.gal .gal_img.reveal.is-visible {
  transform: translateY(0) scale(1);
}

/* Buttons: subtle hover/press (no layout shift) */
.btn {
  transition: transform 180ms ease, filter 180ms ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0px) scale(0.98);
}

/* Nav links: tiny hover float */
.nav a {
  transition: background 180ms ease, transform 180ms ease;
}
.nav a:hover {
  transform: translateY(-1px);
}

/* Optional: hero CTAs gentle attention (very subtle) */
@media (prefers-reduced-motion: no-preference) {
  .hero-cta .btn:first-child {
    animation: softPulse 3.8s ease-in-out infinite;
  }
  @keyframes softPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
  }
}

/* Smooth anchor jumps for #notify */
html {
  scroll-behavior: smooth;
}


.founder-quote {
  position: relative;
  padding: 180px 0;
  text-align: center;
  background-image: url(images/logos/starlogo.jpg);
  background-size: 30%;
  background-repeat: no-repeat;background-position: center;

  overflow: hidden;
}

.founder-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 234, 0.85); /* 0.85 = softer */
}
.quote-inner {
  max-width: 1060px;
  margin: 0 auto;
}
.quote-inner {
  position: relative;
  z-index: 2;
}

blockquote {
  margin: 0;
}

blockquote p {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.4px;
}

blockquote cite {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}

.merlin{
  padding: 40px;
}


.products{
  justify-content: center;
  display: flex;
  flex-direction: column;
  color:var(--bg);
  text-align: center;
  margin: 100px;
  width: 100vw;
  padding: 80px;
}
.products h1{
  margin-bottom: 30px;
}

.site-footer.reveal {
  opacity: 1;        /* remove animation for footer only */
  transform: none;
}

.site-footer .footer-inner.reveal {
  opacity: 1 !important;
  transform: none !important;
}





/* =========================
   Mobile Optimizations
   Add at very end of CSS
========================= */
@media (max-width: 768px) {
  /* Header */
  .site-header {
    padding: 6px 0;
  }

  header {
    justify-content: center;
    gap: 8px;
    padding: 4px 10px;
  }

  header h1 {
    font-size: 20px;
    padding: 0;
    padding-top: 6px;
    line-height: 1.1;
  }

  .mark {
    width: 48px;
    height: 48px;
  }

  .mark img {
    width: 38px;
    height: 38px;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 72vh;
    padding: 20px 0 14px;
  }

  .hero-grid {
    min-height: 420px;
    width: calc(100% - 20px);
  }

  .hero-video {
    border-radius: 20px;
  }

  .hero-copy {
    padding: 16px 12px;
  }

  /* Override inline hero h1 sizes safely */
  .hero-copy h1:first-child {
    font-size: 16px !important;
    margin-bottom: 4px;
  }

  .hero-copy h1:nth-child(2) {
    font-size: 38px !important;
    line-height: 1.05;
    padding: 8px !important;
    margin-top: 0 !important;
  }

  .hero-cta {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 260px;
  }

  /* Gallery section */
  .gal {
    padding-top: 40px;
  }

  .merlin {
    padding: 18px;
    height: auto !important;
    min-height: 58vh;
    justify-content: center;
  }

  .merlin h1 {
    font-size: 34px !important;
    line-height: 1.15;
  }

  .merlin p {
    font-size: 18px !important;
    margin-top: 12px;
  }

  .gal > div[style*="padding-top: 170px"] {
    padding-top: 40px !important;
    padding-inline: 16px;
  }

  .gal > div[style*="padding-top: 170px"] h1 {
    font-size: 28px;
  }

  .gal img,
  .gal .gal_img {
    width: 90vw !important;
    max-width: 90vw;
    border-radius: 18px;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }

  /* Products block */
  .products {
    margin: 24px 0;
    width: 100%;
    padding: 24px 16px 40px;
    background-color: var(--bg);
    color: #1f4a41;
    margin-bottom: 0px;
    margin-top: 100px;
  }

  .products h1 {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .products h3 {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
  }

  /* Founder quote */
  .founder-quote {
    padding: 80px 10px;
    background-size: 60%;
  }

  blockquote p {
    font-size: 15px;
    line-height: 1.35;
  }

  blockquote cite {
    margin-top: 14px;
    font-size: 13px;
  }

  /* Notify section */
  #notify.section {
    padding: 36px 0;
  }

  .notify-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    height: auto; /* IMPORTANT: fixes layout break on mobile */
  }

  .notify-grid > div h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .notify-grid > div .muted {
    font-size: 10px;
  }

  .notify {
    padding: 14px;
  }

  .field-help {
    line-height: 1.4;
  }

  .notify .btn {
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding: 16px 0 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
  }
  .footer-inner{
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-right {
    font-size: 10.5px;
  }

  /* General spacing */
  .container {
    width: min(100% - 24px, var(--container));
  }

  .products p{
    font-size: 15px;
    background-color: #ccd6849e;
    padding: 10px;
    border-radius:10px;
  }


}