/* VioDora, design concept by Piece by Piece (Nov 2026, round 2)
   Sia's colour roles: Deep ink = opening, contact, headings. Cream = main background and text on green.
   Warm sand = founder section. Espresso = body text. Sage = small contact accents.
   Sections never meet on a hard edge: each colour fades into the next. */
:root {
  --cream: #F5F1E8;
  --sand: #D7C1A8;
  --sage: #A6B8A1;
  --ink: #2F3A32;
  --espresso: #352A23;
  --sand-warm: #E6D8C6;   /* her sand laid over cream, so long reading stays comfortable */
  --line: rgba(53, 42, 35, .16);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 5vw, 56px);
  --sec: clamp(88px, 12vw, 160px);
  --blend: clamp(180px, 26vw, 320px);   /* how long ink takes to become cream */
  --gap: clamp(112px, 14vw, 176px);     /* the shorter cream to sand blend around the founder (Sia: less space) */
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--cream); }
body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
p { margin: 0 0 1.1em; }

/* ---------- Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut);
  color: var(--cream); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.bar.solid { background: rgba(245, 241, 232, .9); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.bar-mark { font: 500 22px/1 var(--serif); text-decoration: none; letter-spacing: .01em; opacity: 0; transition: opacity .4s var(--ease); }
.bar.solid .bar-mark, .bar.open .bar-mark { opacity: 1; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a { font: 500 15px/1 var(--sans); text-decoration: none; letter-spacing: .01em; padding: 10px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 859px) {
  .menu-btn {
    display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-right: -12px;
    background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0;
    background: var(--cream); color: var(--ink); padding: 8px var(--gut) 28px;
    box-shadow: 0 24px 40px rgba(47, 58, 50, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .bar.open { background: var(--cream); color: var(--ink); }
  .bar.open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav a { font: 400 26px/1 var(--serif); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* ---------- Opening: dark, a pause, then light (kept as Sia liked it) ---------- */
.banner {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(to bottom, var(--ink) 0, var(--ink) calc(100% - var(--blend) - 6vh), var(--cream) 100%);
  background: linear-gradient(in oklab to bottom, var(--ink) 0, var(--ink) calc(100% - var(--blend) - 6vh), #7E8778 calc(100% - var(--blend) * .45), #D9D6C8 calc(100% - var(--blend) * .15), var(--cream) 100%);
  color: var(--cream);
}
.banner-inner { position: relative; z-index: 2; padding: 96px var(--gut) 18vh; }
.wordmark {
  margin: 0; font: 400 clamp(64px, 17vw, 196px)/.95 var(--serif); letter-spacing: -.01em;
  opacity: 0; transform: translateY(14px); animation: rise 1.6s var(--ease) .2s forwards;
}
.tagline {
  margin: clamp(18px, 3vw, 28px) 0 0; font: 400 clamp(19px, 3.2vw, 30px)/1.3 var(--serif); letter-spacing: .02em;
  color: rgba(245, 241, 232, .86); opacity: 0; animation: fade 1.6s var(--ease) .9s forwards;
}
.down {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(40px, 7vw, 64px); padding: 12px 4px;
  font: 500 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; color: rgba(245, 241, 232, .9);
  opacity: 0; animation: fade 1.4s var(--ease) 1.5s forwards;
}
.down svg { width: 12px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .35s var(--ease); }
.down:hover svg { transform: translateY(4px); }

.light { position: absolute; inset: -10% -30% 30%; z-index: 1; pointer-events: none; filter: blur(18px); transform: skewX(-18deg); mix-blend-mode: screen; }
.light i {
  position: absolute; top: 12%; width: 9%; height: 62%; border-radius: 2px;
  background: linear-gradient(to bottom, rgba(245, 230, 200, 0), rgba(245, 230, 200, .14) 30%, rgba(245, 230, 200, .10) 70%, rgba(245, 230, 200, 0));
  animation: drift 26s linear infinite alternate;
}
.light i:nth-child(1) { left: 12%; }
.light i:nth-child(2) { left: 23%; }
.light i:nth-child(3) { left: 34%; height: 28%; }
.light i:nth-child(4) { left: 34%; top: 44%; height: 30%; }
@keyframes drift { from { translate: -6% 0; } to { translate: 26% 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Type ---------- */
.h2 { margin: 0 0 18px; font: 400 clamp(34px, 5.4vw, 60px)/1.08 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.sub { margin: 0; color: rgba(53, 42, 35, .82); }
.h3 { margin: clamp(44px, 6vw, 64px) 0 18px; font: 600 15px/1.2 var(--sans); letter-spacing: .02em; color: var(--ink); }
.label, .caps { font: 500 13px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.label { margin: 0 0 clamp(28px, 4vw, 40px); }
.caps { margin: 0; }
.chapter { margin: 0 0 12px; font: 500 14px/1 var(--sans); letter-spacing: .06em; color: rgba(53, 42, 35, .55); }
.prose { max-width: 36em; }
.lead { font: 400 clamp(22px, 2.6vw, 27px)/1.45 var(--serif); color: var(--ink); margin-bottom: 1em; }
.said { font-weight: 600; color: var(--ink); }

/* ---------- Explore our ventures ---------- */
.ventures { padding: clamp(24px, 4vw, 56px) 0 clamp(16px, 3vw, 40px); }
.vgrid { display: grid; gap: 56px; margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 600px) { .vgrid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); } }
.vcard-name { margin: 0 0 18px; font: 400 clamp(64px, 10vw, 128px)/.95 var(--serif); letter-spacing: .01em; color: var(--ink); }
.vcard-name a { text-decoration: none; }
.vcard-blurb { margin: 22px 0 0; max-width: 24em; }
.tags { margin: 22px 0 0; font-size: 14px; color: rgba(53, 42, 35, .72); }
.explore {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 6px 0;
  font: 500 15px/1.3 var(--sans); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.explore svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s var(--ease); }
.explore:hover svg { transform: translateX(4px); }

/* ---------- Meet the founder: cream into warm sand and back ---------- */
.founder {
  padding: var(--gap) 0;
  background: linear-gradient(to bottom, var(--cream) 0, var(--sand-warm) var(--gap), var(--sand-warm) calc(100% - var(--gap)), var(--cream) 100%);
}
.founder-grid { display: grid; gap: clamp(32px, 5vw, 80px); }
.founder-photo { margin: 0; }
.founder-photo img { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 60% 40%; }
.sign { margin: 2em 0 0; text-align: right; font: 400 20px/1.3 var(--serif); color: var(--ink); }
.ministry { margin: 1.8em 0 1.4em; padding: 0; }
.ministry p { margin: 0; font: 400 clamp(25px, 2.9vw, 33px)/1.35 var(--serif); color: var(--ink); }
@media (min-width: 900px) {
  .founder-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .founder-photo { position: sticky; top: 104px; }
}

/* ---------- Testimonials ---------- */
.testimonials { padding: clamp(24px, 4vw, 48px) 0 clamp(8px, 2vw, 24px); }
html.no-testimonials [data-testimonials] { display: none !important; }

/* ---------- Contact: cream into deep ink ---------- */
.contact {
  padding: calc(var(--blend) * .8) 0 calc(40px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, var(--cream) 0, var(--ink) var(--blend), var(--ink) 100%);
  background: linear-gradient(in oklab to bottom, var(--cream) 0, #D9D6C8 calc(var(--blend) * .2), #7E8778 calc(var(--blend) * .55), var(--ink) var(--blend), var(--ink) 100%);
  color: var(--cream);
}
.contact .h2 { color: var(--cream); margin-bottom: clamp(28px, 4vw, 44px); }
.doors { display: grid; gap: 14px; max-width: 760px; }
.door {
  display: grid; grid-template-columns: auto 1fr 24px; align-items: center; gap: 18px; width: 100%;
  min-height: 84px; padding: 18px 24px; text-align: left; cursor: pointer;
  background: rgba(245, 241, 232, .04); border: 1px solid rgba(166, 184, 161, .4); border-radius: 18px;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.door:hover { background: rgba(166, 184, 161, .1); border-color: var(--sage); }
.door-name { font: 500 26px/1 var(--serif); letter-spacing: .03em; min-width: 3.4em; color: var(--sage); }
.door-act { font: 500 16px/1.35 var(--sans); color: var(--cream); }
.door svg { width: 22px; height: 22px; fill: none; stroke: var(--sage); stroke-width: 1.4; transition: transform .3s var(--ease); }
.door:hover svg { transform: translateX(4px); }
.mail { margin: 32px 0 0; color: rgba(245, 241, 232, .82); }
.mail a { color: var(--cream); text-decoration-color: var(--sage); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.foot { margin-top: clamp(80px, 12vw, 140px); padding-top: 28px; border-top: 1px solid rgba(166, 184, 161, .22); }
.foot p { margin: 0; }
.foot-mark { font: 400 26px/1.1 var(--serif); color: var(--cream); }
.foot-tag { margin-top: 6px !important; font: 400 17px/1.4 var(--serif); color: rgba(245, 241, 232, .8); }
.credit { margin-top: 24px !important; font-size: 13px; color: rgba(245, 241, 232, .5); }
.credit a { text-underline-offset: 4px; }

/* ---------- Venture pages (/safi/, /mira/) ---------- */
.vhero { padding: clamp(120px, 16vw, 200px) 0 clamp(32px, 5vw, 56px); }
.vhero-name { margin: 0 0 22px; font: 400 clamp(96px, 24vw, 280px)/.86 var(--serif); letter-spacing: .01em; color: var(--ink); }
.vbody { padding-bottom: var(--sec); }
.vbody-grid { display: grid; gap: 28px; }
.vbody-side .vcard-blurb { margin: 0 0 28px; font: 400 clamp(20px, 2.2vw, 24px)/1.45 var(--serif); color: var(--ink); }
.btn-end { margin-top: 36px; }
.explore.other { display: flex; width: fit-content; margin-top: 48px; }
@media (min-width: 900px) {
  .vbody-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
  .vbody-side { position: sticky; top: 112px; }
  .btn-end { display: none; }
}
@media (max-width: 899px) { .vbody-side .btn { display: none; } }

/* steps */
.steps { border-top: 1px solid var(--line); }
.steps details { border-bottom: 1px solid var(--line); }
.steps summary {
  display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 10px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.steps summary::-webkit-details-marker { display: none; }
.steps .n { font: 500 22px/1 var(--serif); color: var(--ink); }
.steps .t { font: 500 17px/1.35 var(--sans); color: var(--ink); }
.steps .pm { position: relative; width: 16px; height: 16px; justify-self: end; }
.steps .pm::before, .steps .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); transition: transform .35s var(--ease); }
.steps .pm::after { transform: rotate(90deg); }
.steps details[open] .pm::after { transform: rotate(0); }
.steps summary:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.step-body { padding: 0 34px 20px 44px; }
.step-body p { margin: 0; }
.steps details[open] .step-body { animation: open .45s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }
.note { margin: 24px 0 0; font-size: .94em; color: rgba(53, 42, 35, .8); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--cream);
  font: 500 16px/1 var(--sans); letter-spacing: .01em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #3b4a3f; }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .door:focus-visible, .chip input:focus-visible + span, .x:focus-visible, .explore:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact .door:focus-visible { outline-color: var(--sage); }

/* ---------- Form sheets ---------- */
html.locked { overflow: hidden; }
.sheet {
  width: min(560px, 100%); max-width: 100%; max-height: min(92vh, 860px); margin: auto; padding: 0;
  border: 0; border-radius: 24px; background: var(--cream); color: var(--espresso);
  box-shadow: 0 30px 80px rgba(20, 24, 20, .35); overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(28, 33, 29, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 640px) {
  .sheet { margin: auto 0 0; width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .sheet[open] { animation: sheet-up .5s var(--ease); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
.sheet-in, .done { padding: 26px clamp(20px, 5vw, 36px) calc(28px + env(safe-area-inset-bottom)); }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.sheet-kicker { margin: 0 0 6px; font: 600 14px/1 var(--sans); letter-spacing: .04em; color: rgba(53, 42, 35, .62); }
.sheet-title { margin: 0; font: 400 clamp(28px, 6vw, 34px)/1.1 var(--serif); color: var(--ink); }
.x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px 0 0; border: 0; border-radius: 50%; background: rgba(47, 58, 50, .07); cursor: pointer; }
.x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.fields { display: grid; gap: 20px; }
.f { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.f > span, .f legend { font: 500 15px/1.35 var(--sans); color: var(--ink); padding: 0; }
.f legend { margin-bottom: 10px; }
.f legend small { display: block; font-weight: 400; font-size: 14px; color: rgba(53, 42, 35, .66); margin-top: 2px; }
.f input, .f textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(53, 42, 35, .22); border-radius: 14px;
  background: #FFFDF8; color: var(--espresso); font: 400 16px/1.45 var(--sans); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); -webkit-appearance: none; appearance: none;
}
.f textarea { resize: vertical; min-height: 116px; }
.f input::placeholder, .f textarea::placeholder { color: rgba(53, 42, 35, .45); }
.f input:focus, .f textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(166, 184, 161, .5); }
.f.bad input, .f.bad textarea { border-color: #9A4B3C; }
.f.bad legend, .f.bad > span { color: #8A3F31; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(53, 42, 35, .22); background: #FFFDF8; font: 400 15px/1 var(--sans);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(154, 75, 60, .1); color: #7E3A2D; font-size: 15px; line-height: 1.5; }
.err a { color: inherit; }
.btn-wide { width: 100%; margin-top: 22px; }
.btn[disabled] { opacity: .6; cursor: default; }
.fine { margin: 12px 0 0; text-align: center; font-size: 14px; color: rgba(53, 42, 35, .66); }
.done { text-align: center; padding-top: 44px; }
.done svg { width: 56px; height: 56px; margin: 0 auto 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.done svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .7s var(--ease) .15s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.done p { font: 400 21px/1.45 var(--serif); color: var(--ink); max-width: 26em; margin: 0 auto 28px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .light i { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
