/* Cotta Cube - layout. cultivia-web, 8 Oct 2026. Copied from the Mud Cup v4 pattern (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;margin-inline-start:auto;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}}

/* ===== 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)}
.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 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)}

/* part of the group: four blocks in craft order, Cotta's filled */
.chain{list-style:none;margin:1.6em 0 0;padding:0;display:grid;gap:10px}
@media(min-width:880px){.chain{grid-template-columns:repeat(4,1fr);gap:28px}}
.chain li{position:relative;background:var(--surface);border-radius:14px;padding:18px 20px;font-weight:500;min-height:64px;display:flex;align-items:center}
.chain li.is-us{background:var(--brand);color:var(--on-brand);font-weight:700;font-size:19px}
@media(min-width:880px){
  .chain li:not(:last-child)::after{content:"\2192";content:"\2192"/"";position:absolute;inset-inline-start:calc(100% + 4px);top:50%;translate:0 -50%;width:20px;text-align:center;color:var(--brand-deep);font-weight:700}
  :root[dir="rtl"] .chain li:not(:last-child)::after{content:"\2190";content:"\2190"/""}
}

/* 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:14px;color:var(--brand-deep)}

/* 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-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}}

/* 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}}
