/* Cotta Cube - layout. cultivia-web, 8 Oct 2026. Copied from the hand-built v4 pattern of the café site (outputs/mudcup-site-v4/assets/style.css):
   bar, language switch, sections, footer. brand.css loads first and owns every colour, font and the lockup;
   this file uses only its role tokens (--canvas, --surface, --ink, --brand, --brand-deep, --on-brand, --accent, --highlight, --line). */
:root{--bar:64px;--gutter:max(16px,4vw);--ease:cubic-bezier(.22,.8,.24,1)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{overflow-x:hidden;overflow-x:clip}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
img{max-width:100%}
[hidden]{display:none!important}  /* the photo strip and form states rely on it */
.skip{position:absolute;inset-inline-start:12px;top:-60px;z-index:50;background:var(--ink);color:var(--canvas);padding:8px 14px;border-radius:8px;transition:top .2s}
.skip:focus{top:8px;color:var(--canvas)}
.wrap{max-width:1132px;margin:0 auto;padding-inline:var(--gutter)}
section,footer{position:relative}
section{padding-block:clamp(56px,8vw,104px);scroll-margin-top:var(--bar)}
h2{font-size:clamp(30px,4.6vw,46px);margin-bottom:.7em;max-width:22ch}
h3{font-size:clamp(21px,2.2vw,25px)}
.lede{font-size:clamp(19px,2vw,22px);max-width:40ch}
.measure{max-width:62ch}

/* one page, two languages: a line that exists in one language only */
:root[lang="ar"] [data-only="en"],:root:not([lang="ar"]) [data-only="ar"]{display:none!important}

/* ===== bar ===== */
.bar{position:sticky;top:0;z-index:30;height:var(--bar);background:var(--canvas);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding-inline:var(--gutter)}
.bar .lockup{--mark:52px;flex:none}
.lang{display:flex;align-items:center;gap:.15em;font-size:15px;flex:none}
.lang button{font:inherit;font-family:var(--font-en-body);font-weight:500;background:none;border:0;margin:0;cursor:pointer;color:var(--ink);line-height:1;min-width:44px;min-height:44px;padding:0 6px;transition:color .3s}
.lang button:hover{color:var(--brand-deep)}
.lang button:last-of-type{font-family:var(--font-ar-body);font-size:1.15em}
.lang button[aria-pressed="true"]{font-weight:700;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1.5px}
.lang .sep{color:var(--brand-deep);opacity:.5;line-height:1}
@media(max-width:879px){:root{--bar:60px}.bar .lockup{--mark:46px}.bar{gap:10px}}
@media(max-width:359px){.bar{gap:4px;padding-inline:8px}.lang button{min-width:36px}}  /* 320 px phones: the burger and both names still fit; the tap-target rule is checked from 375 */

/* ===== nav: the hand-built v4 pattern. One row on a wide screen; below 1080px a burger opens a sheet under the bar ===== */
.nav{flex:1;min-width:0}
.nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;align-items:center;gap:clamp(10px,1.6vw,26px)}
.nav a:not(.btn){position:relative;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--ink);text-decoration:none;font-weight:500;font-size:16px;white-space:nowrap;transition:color .3s}
html[lang="ar"] .nav a:not(.btn){font-weight:400}
.nav a:not(.btn)::after{content:"";position:absolute;inset-inline:0;bottom:6px;height:1.5px;background:var(--brand);scale:0 1;transform-origin:0 50%;transition:scale .4s var(--ease)}
html[dir="rtl"] .nav a:not(.btn)::after{transform-origin:100% 50%}
.nav a:not(.btn):hover::after,.nav a[aria-current="page"]::after{scale:1 1}
.nav a[aria-current="page"]:not(.btn){color:var(--brand-deep)}
.nav .btn{min-height:44px;padding:8px 22px;white-space:nowrap}
.burger{display:none;flex:none;align-items:center;justify-content:center;width:44px;height:44px;margin:0;margin-inline-start:auto;padding:0;background:none;border:0;cursor:pointer;color:var(--ink)}
.burger i{display:block;position:relative;width:24px;height:12px}
.burger i::before,.burger i::after{content:"";position:absolute;inset-inline:0;height:2px;border-radius:2px;background:currentColor;transition:translate .35s var(--ease),rotate .35s var(--ease)}
.burger i::before{top:0}.burger i::after{bottom:0}
.nav-open .burger i::before{translate:0 5px;rotate:45deg}
.nav-open .burger i::after{translate:0 -5px;rotate:-45deg}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:1079px){
  .nav{flex:none;position:absolute;inset-inline:0;top:100%;height:calc(100vh - var(--bar));height:calc(100svh - var(--bar));background:var(--canvas);overflow-y:auto;visibility:hidden;opacity:0;translate:0 -14px;transition:opacity .35s var(--ease),translate .45s var(--ease),visibility 0s .45s}
  .nav-open .nav{visibility:visible;opacity:1;translate:none;transition:opacity .35s var(--ease),translate .45s var(--ease)}
  .nav ul{flex-direction:column;align-items:stretch;gap:0;padding:12px var(--gutter) 40px}
  .nav li{opacity:0;translate:0 18px;transition:opacity .5s var(--ease),translate .6s var(--ease)}
  .nav-open .nav li{opacity:1;translate:none;transition-delay:calc(var(--i,0)*55ms + 140ms)}
  .nav a:not(.btn){font-family:var(--font-head);font-size:clamp(26px,7.4vw,34px);font-weight:600;min-height:60px;border-top:1px solid var(--line);white-space:normal}
  html[lang="ar"] .nav a:not(.btn){font-weight:700}
  .nav li:first-child a{border-top:0}
  .nav a:not(.btn)::after{display:none}
  .nav li:last-child{margin-top:24px}
  .nav .btn{width:100%;min-height:56px}
  .burger{display:flex}
  html.nav-open{overflow:hidden}
}

/* ===== hero ===== */
.hero{padding-block:clamp(40px,7vw,96px) clamp(56px,8vw,104px)}
.hero .wrap{display:grid;gap:clamp(24px,4vw,56px);align-items:center}
.hero h1{font-size:clamp(42px,8vw,88px);letter-spacing:-.01em;max-width:12ch;margin-bottom:.4em}
:root[lang="ar"] .hero h1{letter-spacing:0;font-size:clamp(40px,7.4vw,80px)}
.hero .lede{margin-bottom:1.6em}
.hero-art{justify-self:center;width:min(100%,420px);aspect-ratio:1;background:var(--surface);border-radius:24px;display:grid;place-items:center;position:relative;overflow:hidden}

.hero-art img{width:78%;height:auto;object-fit:contain}  /* the sheet is 1029x668: without this, height:auto takes the sheet shape and the next view shows at the side */
@media(min-width:880px){.hero .wrap{grid-template-columns:1.25fr 1fr}}
@media(max-width:879px){.hero-art{width:min(62vw,280px);order:-1;justify-self:start}}

/* ===== bands ===== */
.band--surface{background:var(--surface)}
.band--surface+.band--surface{padding-top:0}  /* two surface sections in a row read as one band */
.split{display:grid;gap:clamp(20px,4vw,64px)}
@media(min-width:880px){.split{grid-template-columns:1fr 1.4fr}.split h2{margin-bottom:0}}

/* who it is for: two blocks */
.cards{list-style:none;margin:0;padding:0;display:grid;gap:16px}
@media(min-width:720px){.cards{grid-template-columns:1fr 1fr}}
.card{background:var(--surface);border-radius:18px;padding:clamp(22px,3vw,34px);border-top:6px solid var(--brand)}
.card h3{margin-bottom:.45em}

/* how an order works: five numbered steps */
.steps{list-style:none;margin:0 0 clamp(40px,6vw,64px);padding:0;display:grid;gap:14px;counter-reset:step}
@media(min-width:640px){.steps{grid-template-columns:1fr 1fr}}
@media(min-width:1000px){.steps{grid-template-columns:repeat(3,1fr)}}
.step{counter-increment:step;background:var(--canvas);border-radius:18px;padding:22px 24px 26px;position:relative}
.step::before{content:counter(step,decimal-leading-zero);display:block;font-family:var(--font-en-head);font-weight:600;font-size:30px;line-height:1;color:var(--brand);margin-bottom:.45em}
.step h3{margin-bottom:.35em}
.step p{margin-bottom:.6em}
.need{display:grid;gap:clamp(16px,3vw,40px);align-items:start}
@media(min-width:880px){.need{grid-template-columns:1fr 1.4fr}}
.need ol{margin:0;padding-inline-start:1.3em}
.need li{padding-block:.2em}
.need ol+p{margin-top:1em}
.need li::marker{color:var(--brand-deep);font-weight:700}

/* the name: a dark band (brand.css .on-dark) */
.name h2{color:var(--canvas)}
.name .wrap{position:relative}
.name .measure p:first-child{font-size:clamp(19px,2vw,22px)}

/* photo strip under "What we make": hidden until photos are placed (index.html comment says how) */
.strip{margin-top:clamp(32px,5vw,56px)}
.strip-band{font-family:var(--font-head);font-size:clamp(21px,2.4vw,26px);font-weight:600;margin-bottom:.9em}
.strip-row{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.strip figure{margin:0}
.strip img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:14px;background:var(--canvas)}
.strip figcaption{margin-top:.6em;font-size:15px;line-height:1.5}
.strip-credit{margin-top:1.2em;font-size:15px;color:var(--brand-deep)}  /* same size as the captions */
.strip-credit .mcl{margin-inline-start:.6em}
.strip-more{margin-top:.5em;font-size:15px}
.strip--photos .strip-row{grid-template-columns:1fr}
@media(min-width:640px){.strip--photos .strip-row{grid-template-columns:1fr 1fr}}
.strip--photos img{aspect-ratio:4/3}
.strip--photos figure.tall img{aspect-ratio:3/4}  /* the two portrait vase frames are shown whole */
@media(min-width:640px){.strip--photos figure.wide{grid-column:1/-1}.strip--photos figure.wide img{aspect-ratio:16/9}}  /* an odd tile out spans both columns, so no cell is left empty */


/* ===== inner pages (cultivia-web, 9 Oct 2026; _qa/make-pages.py writes them) ===== */
.phead{padding-block:clamp(40px,6vw,80px) clamp(36px,5vw,64px)}
.phead h1{font-size:clamp(38px,6.4vw,68px);letter-spacing:-.01em;max-width:16ch;margin-bottom:.45em}
:root[lang="ar"] .phead h1{letter-spacing:0;font-size:clamp(36px,6vw,62px)}
.phead .lede{max-width:44ch}
.phead p+p{margin-top:.2em}
.actions{display:flex;flex-wrap:wrap;gap:12px 14px;margin:1.6em 0 0}
.step h2{font-size:clamp(21px,2.2vw,25px);max-width:none;margin-bottom:.35em}
.cta{text-align:center}
.cta h2{margin-inline:auto;max-width:24ch}
.cta p.cta-text{margin-inline:auto;max-width:44ch}
.after .po{font-weight:700}
.contact dd{overflow-wrap:anywhere}
.lost-links{list-style:none;margin:1.6em 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px}
.lost-links a{display:inline-flex;align-items:center;min-height:44px}

/* contact */
.contact dl{margin:0;display:grid;gap:0}
.contact dl>div{display:grid;gap:4px 24px;padding-block:16px;border-top:1px solid var(--line)}
.contact dl>div:last-child{border-bottom:1px solid var(--line)}
@media(min-width:720px){.contact dl>div{grid-template-columns:200px 1fr}}
.contact dt{font-weight:700}
.contact dd{margin:0}
.contact dl{margin-bottom:clamp(28px,4vw,40px)}

/* ===== brief form: functional minimum from outputs/cube-briefs-worker/form-snippet.html (creativa-web owns the look) ===== */
.bf-wrap{max-width:46rem}
.bf{display:grid;gap:32px}
.bf fieldset{border:0;margin:0;padding:0;min-width:0;display:grid;gap:18px}
.bf-wrap [hidden]{display:none!important}
.bf legend{font-family:var(--font-head,serif);font-weight:600;font-size:1.25rem;line-height:1.3;padding:0;margin:0 0 10px}
.bf-field{display:grid;gap:6px}
.bf-field>label{font-weight:500}
.bf-req{font-weight:400;font-size:.9em}
.bf-hint{margin:0;font-size:.9em}
.bf input:not([type=radio]):not([type=checkbox]),.bf textarea{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1.5px solid var(--brand-deep,#7A3B22);border-radius:10px;background:var(--canvas,#fff);color:var(--ink,#241A12);font:inherit}
.bf textarea{min-height:10rem;resize:vertical}
.bf input[type=file]{padding:8px}
html[dir=rtl] .bf [dir=ltr]{text-align:right}
.bf [aria-invalid=true]{border-width:3px}
.bf-err{margin:0;color:var(--brand-deep,#7A3B22);font-weight:700}
.bf-err::before{content:"! "}
.bf-topic .bf-opts{display:flex;flex-wrap:wrap;gap:4px 28px}
.bf-choice,.bf-check{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding-block:10px;cursor:pointer}
.bf-choice input,.bf-check input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--brand,#B4552D)}
.bf-send{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}
.bf-submit{min-height:48px;min-width:44px;cursor:pointer}
.bf-submit[aria-busy=true]{opacity:.6;cursor:progress}
.bf-consent{flex:1 1 18rem;margin:0;font-size:.9em}
.bf-po{margin:0;font-size:.9em;font-weight:700}
.bf-status{margin:0;font-weight:700;color:var(--brand-deep,#7A3B22)}
.bf-hp{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bf-p{display:none}
.is-privacy .bf-b{display:none}
.is-privacy .bf-p{display:inline}
.bf-done{display:grid;gap:10px}
.bf-done h3:focus{outline:none}
.bf-ref{font-family:ui-monospace,Consolas,monospace;font-size:1.15em;letter-spacing:.04em;unicode-bidi:isolate}

/* ===== footer (dark) ===== */
footer .foot{padding-block:clamp(44px,6vw,64px);display:grid;justify-items:center;gap:18px;text-align:center}
footer .foot img{width:44px;height:44px}
.legal{margin:0;font-size:14px;line-height:1.7}
.legal span,.legal bdi{white-space:nowrap}  /* break only at the separators, never inside the Arabic name */
@media(max-width:639px){.legal{font-size:13px}}
@media(max-width:359px){.legal{font-size:12px}.legal span,.legal bdi{white-space:normal}}  /* 320 px: let the legal line wrap inside a name rather than push the page sideways */

/* footer link and the privacy notice */
.foot-links{margin:0}
.foot-links a{display:inline-flex;align-items:center;min-height:44px;padding-inline:6px}
.notice h1{font-size:clamp(32px,5vw,52px);max-width:24ch;margin-bottom:.5em}
.notice .ver{color:var(--brand-deep);margin-bottom:2em}
.notice h2{font-size:clamp(22px,2.6vw,28px);margin:1.8em 0 .5em;max-width:none}
.notice ul{padding-inline-start:1.3em;margin:0 0 1.1em}
.notice li{padding-block:.15em}
.notice code{font-size:.92em;unicode-bidi:isolate}
.notice .back{margin-top:2.4em}

/* ===== 404 ===== */
.lost{text-align:center;padding-block:clamp(56px,10vw,120px)}
.lost img{width:120px;height:120px;margin:0 auto clamp(20px,3vw,32px);display:block}
.lost h1{font-size:clamp(32px,6vw,56px);margin-bottom:.8em}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
