/* =========================
   Base
   ========================= */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0;-webkit-text-size-adjust:100%}
img{max-width:100%;display:block}
button{font:inherit}
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

:root{
  --bg:#f7f7f7; --surface:#ffffff; --elev:#fafafa;
  --text:#111111; --muted:#6a6a6a; --line:#e6e6e6; --accent:#111111;
  --radius:4px; --radius-image:0px;
  --header-offset:72px; /* updated by JS */
}

body{
  color:var(--text); background:var(--bg);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height:1.55; min-height:100vh; display:flex; flex-direction:column;
  padding-top:var(--header-offset); /* make room for fixed header */
}
.wrap{max-width:1200px;margin:0 auto;padding:24px}
.section-gap{margin-top:28px}
.accent{color:var(--accent)}

/* =========================
   Header (fixed — always on top)
   ========================= */
header{
  position:fixed; left:0; right:0; top:0;
  z-index:1000;
  background:rgba(255,255,255,.8);
  backdrop-filter:saturate(1.1) blur(10px);
  border-bottom:1px solid var(--line)
}
header, header *{ isolation:isolate }
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px; max-width:1200px; margin:0 auto; padding:24px; position: relative;}
.brand{display:inline-flex;align-items:center;font-family:"Cormorant Garamond",serif;letter-spacing:.12em;font-size:24px;font-weight:600;text-decoration:none;color:var(--text)}
.brand em{font-style:normal}
.brand img{display:block;max-height:var(--logo-height,56px);height:auto;width:auto;object-fit:contain}

/* Desktop nav (hidden on mobile) */
.desktop-nav{
  display:flex; align-items:center; gap:10px; position: absolute; left: 50%; transform: translateX(-50%);
}
.desktop-nav a{color:var(--muted);text-decoration:none;margin:0 10px;font-size:14px;position:relative;transition:color .2s ease}
.desktop-nav a:hover{color:var(--text)}
@media (max-width:720px){
  .desktop-nav{display:none !important;}
}

.header-actions{display:flex;align-items:center;gap:10px}
.cart-btn{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--radius);border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer;transition:transform .15s ease,border-color .15s ease}
.cart-btn:hover{transform:translateY(-1px);border-color:var(--text)}
.cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:3px;background:var(--text);color:#fff;font-weight:600;font-size:12px}

.currency-select{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--radius);border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer;transition:transform .15s ease,border-color .15s ease}
.currency-select:hover{transform:translateY(-1px);border-color:var(--text)}
.header-actions{display:flex;align-items:center;gap:10px;}

@media (max-width:2640px){
  .currency-select{padding:13px 14px;font-size:15px;}
}

@media (max-width:820px){
  .currency-select{padding:15px 14px;font-size:15px;}
}

/* underline on hover/active */
.desktop-nav a::after{content:"";position:absolute;left:0;bottom:-6px;height:2px;width:100%;background:var(--text);transform:scaleX(0);transform-origin:left;opacity:.7;transition:transform .25s ease,opacity .25s ease}
.desktop-nav a:hover::after,.desktop-nav a.active::after{transform:scaleX(1);opacity:1}

/* Hide any legacy hamburger UI */
.menu-btn{display:none!important}

/* =========================
   Hero
   ========================= */
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;padding:56px 48px;border:1px solid var(--line);background:linear-gradient(180deg,#fff,#fafafa)}
.tag{display:inline-flex;align-items:center;gap:10px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius);color:var(--muted);font-size:12px}
.headline{font-family:"Cormorant Garamond",serif;font-size:56px;line-height:1.05;letter-spacing:.01em;margin:18px 0 10px}
.sub{color:var(--muted);max-width:60ch}
.cta-row{margin-top:28px;display:flex;gap:14px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:var(--radius);border:1px solid var(--line);padding:12px 18px;font-weight:600;cursor:pointer;transition:transform .15s ease,border-color .15s ease}
.btn-primary{background:var(--text);color:#fff}
.btn-primary:hover{transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--text)}
.btn-ghost:hover{border-color:var(--text)}
.hero-media{position:relative;border-left:1px solid var(--line);border-top:1px solid var(--line);background:#f2f2f2}
.hero-media img{width:100%;height:100%;object-fit:cover;border-radius:var(--radius-image)}
.hero-copy{position:relative;overflow:hidden;border:1px solid var(--line);padding:28px}

/* =========================
   Chips
   ========================= */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:34px 0 10px}
.chip{padding:8px 14px;border-radius:var(--radius);border:1px solid var(--line);color:var(--muted);background:#fff;cursor:pointer}
.chip[aria-pressed="true"],.chip:hover{border-color:var(--text);color:var(--text)}

/* =========================
   Grid & Cards
   ========================= */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{position:relative;border:1px solid var(--line);border-radius:0;overflow:hidden;background:var(--surface)}
.card-media{aspect-ratio:4/5;overflow:hidden;background:#f0f0f0;position:relative;z-index:1}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;border-radius:var(--radius-image)}
.card:hover .card-media img{transform:scale(1.03)}
.card-body{padding:14px 14px 16px}
.title{font-family:"Cormorant Garamond",serif;font-size:20px;letter-spacing:.02em}
.meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:14px;margin-top:6px}
.price{font-weight:600;color:var(--text)}
.card-actions{display:flex;gap:8px;margin-top:12px}
.add,.view{flex:1}

/* Badge */
.badge-tag{position:absolute;top:10px;left:10px;background:var(--text);color:#fff;border:1px solid var(--line);padding:4px 8px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;border-radius:0;z-index:2}

/* =========================
   Cart Drawer
   ========================= */
.overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  opacity:0; pointer-events:none; transition:opacity .2s ease;
  z-index:700;
}
.overlay.show{opacity:1;pointer-events:auto}

.drawer{
  position:fixed; top:0; right:0; width:min(92vw,400px);
  background:#fff; border-left:1px solid var(--line);
  transform:translateX(100%); transition:transform .3s ease;
  z-index:850; display:flex; flex-direction:column; will-change:transform;
  height:100vh;
  padding-top:var(--header-offset);
}
@supports (height:100svh){ .drawer{height:100svh} }
@supports (height:100dvh){ .drawer{height:100dvh} }
.drawer.open{ transform:translateX(0); }
.drawer header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);padding:18px;display:flex;align-items:center;justify-content:space-between}
.drawer main{padding:14px 18px;overflow:auto;flex:1}
.drawer footer{border-top:1px solid var(--line);padding:14px 18px}
.cart-item{display:grid;grid-template-columns:66px 1fr;gap:12px;padding:12px 0;border-bottom:1px dashed var(--line)}
.cart-item img{width:66px;height:66px;object-fit:cover;border-radius:var(--radius-image)}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.qty button{width:30px;height:30px;background:transparent;border:0;color:var(--text);cursor:pointer}
.qty span{width:34px;text-align:center}
.row{display:flex;align-items:center;justify-content:space-between;margin:8px 0;color:var(--muted)}
.note{font-size:12px;color:var(--muted);margin-top:6px}

/* =========================
   PDP Modal
   ========================= */
.modal{
  position:fixed;
  left:0; right:0;
  top:var(--header-offset);
  bottom:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.35); opacity:0; pointer-events:none;
  transition:opacity .2s ease; z-index:800; padding:24px;
  overscroll-behavior:contain;
}
.modal.open{opacity:1;pointer-events:auto}
.modal-content{
  position:relative;background:#fff;border:1px solid var(--line);
  box-sizing:border-box;
  width:100%;
  max-width:min(980px,95vw);
  contain:inline-size;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start;gap:24px;padding:24px;
  max-height:min(92vh,900px);overflow:auto;overflow-x:hidden;
}
.modal-close{position:absolute;top:12px;right:12px;border:1px solid var(--line);background:#fff;border-radius:var(--radius);width:34px;height:34px;cursor:pointer;z-index:5;box-shadow:0 2px 6px rgba(0,0,0,.05)}
.pdp-title{font-family:"Cormorant Garamond",serif;font-size:28px;margin:.2rem 0}
.pdp-meta{color:var(--muted);margin-bottom:12px}
.pdp-controls{display:flex;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}
.select{border:1px solid var(--line);background:#fff;border-radius:var(--radius);padding:10px 12px}

/* Gallery */
.pdp-media{position:relative;align-self:start}
.pdp-details{align-self:start}
.pdp-gallery{position:relative;overflow:hidden}
.pdp-frame{position:relative;width:100%;aspect-ratio:4/5;background:#f0f0f0}
.pdp-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s ease}
.pdp-frame img.active{opacity:1}
.pdp-arrows{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:3}
.pdp-arrow{pointer-events:auto;border:1px solid var(--line);background:#fff;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:18px}
.pdp-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.pdp-thumbs button{border:1px solid var(--line);background:#fff;width:56px;height:72px;padding:0}
.pdp-thumbs img{width:100%;height:100%;object-fit:cover}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:130}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:92vh;box-shadow:0 20px 80px rgba(0,0,0,.25);background:#fff}
.lightbox-close{position:absolute;top:18px;right:18px;border:1px solid var(--line);background:#fff;border-radius:4px;width:36px;height:36px}
.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);border:1px solid var(--line);background:#fff;border-radius:50%;width:42px;height:42px;font-size:22px}
.lightbox-nav.prev{left:24px}
.lightbox-nav.next{right:24px}

/* Disabled */
.btn[disabled],.btn:disabled{pointer-events:none;cursor:not-allowed;opacity:.55;transform:none;box-shadow:none}
.btn-primary[disabled],.btn-primary:disabled{background:#d9d9d9;color:#777;border-color:#e6e6e6}

/* =========================
   About
   ========================= */
.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
.about-grid .card{height:100%}
.about-grid .card.padded{display:flex;flex-direction:column;justify-content:space-between}

/* Toast */
.toast{position:fixed;bottom:22px;right:22px;background:var(--text);color:#fff;border:1px solid var(--text);padding:12px 16px;border-radius:var(--radius);box-shadow:0 8px 30px rgba(0,0,0,.10);opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease;z-index:90;font-weight:600}
.toast.show{opacity:1;transform:translateY(0)}

/* About editorial frame */
#about{position:relative;margin-top:48px}
#about .about-grid{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:32px;background:linear-gradient(180deg,#fff,#fafafa);border:1px solid var(--line)}
#about .card{border:1px solid var(--line);background:var(--surface);height:100%}
#about .card.padded{padding:28px 28px 22px;display:flex;flex-direction:column;justify-content:flex-start}
#about .card .title{font-family:"Cormorant Garamond",serif;font-size:28px;letter-spacing:.01em;margin:0 0 10px}
#about .card .title::after{content:"";display:block;width:48px;height:1px;background:var(--line);margin-top:8px}
#about .card .sub{color:var(--muted);line-height:1.75;margin:14px 0 0;max-width:60ch}
#about .padded>*+*{margin-top:10px}

/* =========================
   Footer
   ========================= */
.site-footer{
  background:#121212;
  color:#eaeaea;
  margin:0;
  padding:26px 0 24px;
  border-top:1px solid rgba(255,255,255,.08);
  flex-shrink:0;
}

/* 3-column layout so center really is centered */
.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  column-gap:32px;
}

/* Left: brand + email */
.footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  justify-self:start;
}

.footer-logo{
  max-width:82px;
  height:auto;
  opacity:.9;
}

.footer-text{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.footer-name{
  font-family:"Cormorant Garamond",serif; /* matches 'Our materials' */
  font-size:18px;
  font-weight:500;
  letter-spacing:.01em;
}

.footer-email{
  font-size:13px;
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid transparent;
  opacity:.85;
}

.footer-email:hover{
  border-bottom-color:rgba(255,255,255,.35);
  opacity:1;
}

/* Center: simple text */
.footer-meta{
  justify-self:center;
  text-align:center;
  font-size:12.5px;
  line-height:1.6;
  color:#cfcfcf;
}

.footer-meta p{
  margin:0;
}

/* Right: socials */
.footer-social{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  justify-self:end;
}

.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.32);
  text-decoration:none;
  opacity:.85;
  transition:transform .15s ease, border-color .2s ease, opacity .2s ease;
}

/* Base icon style: outline, for Instagram */
.social-link svg{
  width:15px;
  height:15px;
  display:block;
  fill:none;
  stroke:#f5f5f5;
  stroke-width:1.5;
}

/* Filled style for TikTok + YouTube */
.social-link--filled svg{
  fill:#f5f5f5;
  stroke:none;
}

.social-link:hover{
  transform:translateY(-1px);
  border-color:#ffffff;
  opacity:1;
}

/* Links inherit footer colour */
.site-footer a{
  color:inherit;
}

/* Responsive */
@media (max-width:720px){
  .footer-inner{
    grid-template-columns:1fr;
    row-gap:18px;
  }
  .footer-brand{
    justify-self:flex-start;
  }
  .footer-meta{
    justify-self:flex-start;
    text-align:left;
  }
  .footer-social{
    justify-self:flex-start;
  }
}

/* =========================
   Smooth scroll & locking
   ========================= */
html{scroll-behavior:smooth}
:where(section,[id]){scroll-margin-top:calc(var(--header-offset)+12px)}
@keyframes section-pulse{0%{box-shadow:inset 0 0 0 0 rgba(0,0,0,0)}50%{box-shadow:inset 0 0 0 8px rgba(0,0,0,.03)}100%{box-shadow:inset 0 0 0 0 rgba(0,0,0,0)}}
:target{animation:section-pulse .6s ease}
body.modal-open{overflow-y:hidden}

/* =========================
   Responsive
   ========================= */
@media (max-width:1100px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .hero-inner{grid-template-columns:1fr;gap:24px}
  .modal-content{grid-template-columns:1fr}
}
@media (max-width:720px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .headline{font-size:40px}
  .hero-inner{padding:36px 24px}
}
@media (max-width:820px){
  body{line-height:1.65}
  .wrap{padding:18px}
  .nav{padding:18px}
  .cart-btn{padding:12px 16px;font-size:15px}
  .btn{padding:14px 18px;font-size:15px}
  .chip{padding:10px 14px;font-size:15px}
  .headline{font-size:36px}
  .sub{font-size:15px}
  .grid{grid-template-columns:1fr;gap:16px}
  .title{font-size:22px}
  .meta{font-size:15px}
  .badge-tag{top:12px;left:12px;font-size:12px;padding:6px 10px;z-index:3;background:rgba(17,17,17,.9);border-color:rgba(0,0,0,.2)}
  .qty button{width:40px;height:40px}
  .qty span{width:40px}
  .cart-item{grid-template-columns:88px 1fr}
  .cart-item img{width:88px;height:88px}

  .modal{padding:12px}
  .modal-content{
    width:100%; max-width:560px; height:auto;
    max-height:92vh; border-radius:10px;
    grid-template-columns:1fr; gap:14px; padding:14px 14px 18px;
    overflow-y:auto; overflow-x:hidden;
  }
  @supports (height:100svh){ .modal-content{ max-height:92svh } }
  @supports (height:100dvh){ .modal-content{ max-height:92dvh } }

  .modal-content, .modal-content * { min-width:0; max-width:100% }
  .select{padding:12px 14px; font-size:16px; max-width:100%}
  .pdp-controls{gap:10px 8px; flex-wrap:wrap}
  .pdp-controls .select{flex:1 1 240px}

  .pdp-media, .pdp-details, .pdp-gallery, .pdp-frame { min-width:0 }
  .pdp-frame{height:clamp(220px,45vh,520px); aspect-ratio:auto}
  @supports (height:100svh){ .pdp-frame{ height:clamp(220px,45svh,520px) } }
  @supports (height:100dvh){ .pdp-frame{ height:clamp(220px,45dvh,520px) } }
  .pdp-frame img{width:100%; height:100%; object-fit:cover; max-width:100%}
  .pdp-thumbs{gap:10px; margin-top:10px; padding-bottom:2px; overflow-x:auto; -webkit-overflow-scrolling:touch; flex-wrap:nowrap}
  .pdp-thumbs button{flex:0 0 76px; height:90px}
  .pdp-title{font-size:24px} .pdp-meta{font-size:14px}
  .modal-close{top:10px; right:10px; width:44px; height:44px; font-size:22px}
  .pdp-arrow{width:44px; height:44px; font-size:22px; border-radius:999px}
}
@media (max-width:720px){
  .about-grid,#about .about-grid{grid-template-columns:1fr;padding:24px}
  #about .card.padded{padding:22px 22px 18px}
  #about .card .title{font-size:24px}
  .site-footer .footer-grid{grid-template-columns:1fr;gap:18px}
  .footer-right{text-align:left}
}
@media (max-width:480px){ .grid{grid-template-columns:1fr} }
@media (prefers-reduced-motion:reduce){ *{animation:none!important;transition:none!important} }

/* =========================
   Overflow guards
   ========================= */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
.wrap,.hero-inner,.grid,.about-grid,.site-footer .footer-grid{overflow-x:clip}

/* ===== Final stacking order overrides ===== */
header { z-index: 1000; }
.modal { z-index: 1200; top: 0; left: 0; right: 0; bottom: 0; padding: 24px; }
.overlay { z-index: 1150; }
.drawer { z-index: 1400; }
.overlay.show.drawer-overlay { z-index: 1350; }
.lightbox { z-index: 2000 !important; }
.toast { z-index: 2100 !important; }
.modal-close{
  position:absolute; top:12px; right:12px;
  z-index: 9999;            /* was 5; push above gallery arrows etc. */
  pointer-events: auto;     /* belt & braces */
}

/* =========================
   Founders’ Circle Banner
   ========================= */
@font-face {
  font-family: "Mulegh Regular";
  src: url("files/fonts/Mulegh.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Regular";
  src: url("files/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Gastromond Regular";
  src: url("files/fonts/gastromondtest-regular.otf") format("truetype");
  font-display: swap;
}


.founders-banner {
  position: relative;
  isolation: isolate;
  background: url("files/banner.jpg") center/cover no-repeat;
  margin-top: calc(var(--header-offset) * 0.25); /* slight top gap (~¼ header height) */
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.founders-banner::after{
  /* subtle wash to ensure text legibility on busy photos */
  content:"";
  position:absolute; inset:0;
  background: rgba(255,255,255,.06);
  pointer-events:none;
}
.founders-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align:center;
  display:grid;
  gap:16px;
}
.founders-title{
  margin:0;
  letter-spacing:.02em;
  font-family:"Mulegh Regular", "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 100;
  letter-spacing: 0.05em;
  line-height:1.15;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.founders-sub{
  margin:0 auto;
  max-width: 1000px;
  font-family:"Montserrat Regular", Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height:1.6;
  color:#ffffff;
  opacity:.95;
  text-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.btn-founders{
  display:inline-block;
  margin: 50px auto 0;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.25);
  color:rgba(255, 255, 255, 0.9);
  text-decoration:none;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  font-family:"Gastromond Regular", "Cormorant Garamond", serif;
  letter-spacing:.08em;
}
.btn-founders:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.55);
  border-color:#ffffff;
}

/* tighten spacing on very small screens */
@media (max-width:640px){
  .founders-inner{ padding: 40px 18px; gap:12px; }
}

/* =========================
   Founders’ Circle Form
   ========================= */

.founders-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Expanding panel — animate max-height to avoid JS measurement + clipping */
.form-panel{
  border: 1px solid var(--line);
  background: linear-gradient(180deg,#fff,#fafafa);
  overflow: hidden;

  /* collapsed state */
  max-height: 0;
  opacity: 0;
  padding: 0;

  transition:
    max-height 900ms cubic-bezier(.22,.8,.22,1),
    opacity    900ms ease,
    padding    900ms ease;
}

/* open state */
.founders-form.open .form-panel{
  /* Pick a value larger than your form’s tallest expected height */
  max-height: 800px;            /* adjust if your form gets taller */
  opacity: 1;
  padding: 56px 48px;
}

/* content is always visible; panel masks it while closed */
.form-inner { 
  display: grid; 
  gap: 16px; 
  text-align: center; 
  opacity: 1; 
}

.form-inner h3{
  margin: 0;
  font-family: "Mulegh Regular","Cormorant Garamond",serif;
  font-size: 28px; letter-spacing:.02em; font-weight: 400;
}
.form-inner p{
  font-family: "Montserrat Regular", Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--muted); max-width: 560px; margin: 0 auto 18px; line-height: 1.7;
}
form{ display:grid; gap:12px; max-width:420px; margin:0 auto; }
label{ text-align:left; font-size:14px; color: var(--muted); }
input{
  padding:12px; border:1px solid var(--line); border-radius:6px; font-size:16px; width:100%;
  font-family: Inter, sans-serif; transition:border-color .2s ease, box-shadow .2s ease;
}
input:focus{ outline:none; border-color:var(--text); box-shadow:0 0 0 3px rgba(17,17,17,.08); }
button[type="submit"]{ margin-top:10px; }

/* Subtle privacy note under submit button */
.form-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(0,0,0,0.55);
  font-style: italic;
  margin-top: 10px;
  text-align: center;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
}

/* On mobile, keep it readable but not cramped */
@media (max-width: 600px) {
  .form-note {
    font-size: 11.5px;
    line-height: 1.45;
    max-width: 90%;
  }
}

@media (max-width:720px){
  .founders-form{ padding: 0 18px; }
  .founders-form.open .form-panel{ padding: 36px 22px; }
  .form-inner h3{ font-size:24px; }
  /* Optional: smaller cap for mobile if you want */
  /* .founders-form.open .form-panel{ max-height: 600px; } */
}

/* =========================
   Founders’ Form — Mobile Refinements
   ========================= */

/* Medium screens (tablets) */
@media (max-width: 900px) {
  .form-inner h3 {
    font-size: 24px;
    line-height: 1.2;
  }
  .form-inner p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
  }
}

/* Small screens (phones) */
@media (max-width: 600px) {
  .form-inner h3 {
    font-size: 20px;
    line-height: 1.25;
    word-break: keep-all;
    text-wrap: balance; /* helps even out line breaks */
  }

  .form-inner p {
    font-size: 13px;
    line-height: 1.55;
    max-width: 100%;
    margin: 0 auto 14px;
    text-wrap: balance;
  }

  /* Optional: tighten spacing for the whole form */
  .founders-form.open .form-panel {
    padding: 28px 18px;
  }

  /* Make inputs scale better on mobile */
  input {
    font-size: 15px;
    padding: 10px 12px;
  }
  button[type="submit"] {
    font-size: 15px;
    padding: 12px 16px;
  }
}
