/* ═══ SAFIA home page — redesign ═══════════════════════════════════════════
   Loaded on index.html only, after safia.min.css. Every rule is scoped to
   body.home, so no other page changes. Colours come from the site variables,
   so light/dark mode keep working.
   Idea: a grain merchant's spec sheet. Quiet, ruled, editorial sections;
   the one loud moment is the grain-length ruler under the hero. */

/* ── shared section language ─────────────────────────────────────────────── */
.home .section{padding:88px 0}
.home .eyebrow,.home .hero .eyebrow{background:none;border:0;padding:0;border-radius:0;backdrop-filter:none;
  font-size:.86rem;font-weight:600;letter-spacing:.02em;text-transform:none;color:var(--gold-deep);gap:12px}
.home .eyebrow::before,.home .hero .eyebrow::before{content:"";width:28px;height:1px;background:currentColor;opacity:.8;font-size:0}
.home h2{font-size:clamp(2rem,3.4vw,3rem);line-height:1.12;letter-spacing:-.005em;padding-bottom:0;margin:.9rem 0 1.1rem;max-width:20ch}
.home h2::after{display:none}
.home .lead{font-size:1.06rem;line-height:1.7;max-width:62ch}
.home .reveal,.home .reveal[data-anim]{transform:none;filter:none;transition:opacity .9s var(--ease-out)}

/* ── hero ────────────────────────────────────────────────────────────────── */
.home .hero .container{grid-template-columns:1.25fr .75fr;gap:56px;padding:96px 0 40px;min-height:0;align-items:end}
.home .hero .hero-kicker{text-transform:none;letter-spacing:.01em;font-size:.95rem;font-weight:500;color:rgba(255,255,255,.62);margin:22px 0 14px}
.home .hero h1{font-size:clamp(2.7rem,5.8vw,4.9rem);line-height:1.03;letter-spacing:-.015em;margin:0}
.home .hero h1>span{display:block}
.home .hero p{font-size:1.1rem;line-height:1.7;max-width:56ch;color:rgba(255,255,255,.78);margin:26px 0 22px}
.home .hero-rotate{margin:0 0 26px}
.home .hero-stats{display:grid;grid-template-columns:repeat(4,auto);justify-content:start;gap:0;margin-top:48px;
  border-top:1px solid rgba(212,185,55,.32)}
.home .hstat{padding:18px 28px 0 0;margin-inline-end:28px;border-inline-end:1px solid rgba(212,185,55,.22)}
.home .hstat:last-child{border:0;margin:0}
.home .hstat b{font-family:var(--serif);font-weight:500;font-size:2.3rem;letter-spacing:-.01em}
.home .hstat span{display:block;margin-top:8px;text-transform:none;letter-spacing:.01em;font-size:.84rem;color:rgba(255,255,255,.6)}
/* product card: one clean arch, specs as a ruled row */
.home .hero-product-stage{min-height:0;align-self:stretch}
.home .hero-globe{opacity:.32}
.home .hero-product-stage .arch-card{width:min(360px,100%);padding:14px 14px 22px;border-radius:200px 200px 6px 6px;
  background:var(--navy-deep);border:1px solid rgba(212,185,55,.45);box-shadow:0 30px 70px rgba(0,0,0,.35)}
.home .hero-product-stage .arch-card::before,.home .hero-product-stage .arch-card::after{display:none}
.home .arch-photo{margin:0;border-radius:190px 190px 0 0;border:0}
.home .arch-photo img{height:280px}
.home .arch-card-title{font-family:var(--serif);font-weight:500;letter-spacing:0;font-size:1.45rem;margin:20px 0 2px}
.home .arch-card small{text-transform:none;letter-spacing:.01em;font-size:.84rem;color:rgba(255,255,255,.6)}
.home .arch-specs{grid-template-columns:1.5fr 1fr 1fr;gap:0;margin:20px 6px 0;border-top:1px solid rgba(212,185,55,.3)}
.home .arch-specs div{background:none;border:0;border-radius:0;padding:14px 6px 0}
.home .arch-specs div+div{border-inline-start:1px solid rgba(212,185,55,.22)}
.home .arch-specs b{font-size:.86rem;line-height:1.35}
.home .arch-specs span{text-transform:none;letter-spacing:0;font-size:.74rem;color:rgba(255,255,255,.55)}

/* ── the grain ruler (signature) ─────────────────────────────────────────── */
.home .grain-ruler{position:relative;z-index:1;width:min(1180px,92%);margin:34px auto 0;padding:0 0 4px;direction:ltr;color:rgba(255,255,255,.7)}
.home .gr-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font-size:.84rem;margin-bottom:14px}
.home .gr-head b{font-family:var(--serif);font-weight:500;font-size:1.05rem;color:#fff}
.home .gr-track{position:relative;height:74px}
.home .gr-grain{position:absolute;left:0;top:10px;height:30px;width:83.5%;transform-origin:left center;
  animation:grGrow 2.2s var(--ease-out) .9s both}
.home .gr-grain svg{display:block;width:100%;height:100%}
.home .gr-range{position:absolute;top:0;left:83%;width:1%;height:50px;background:rgba(212,185,55,.28);
  border-inline:1px solid var(--gold);animation:grFade .6s ease 2.9s both}
.home .gr-range span{position:absolute;bottom:calc(100% + 6px);right:0;white-space:nowrap;color:var(--gold);font-weight:600;font-size:.84rem}
.home .gr-scale{position:absolute;left:0;right:0;bottom:0;height:24px;border-top:1px solid rgba(255,255,255,.55);
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.55) 0 1px,transparent 1px 10%) top left/100% 12px no-repeat,
    repeating-linear-gradient(90deg,rgba(255,255,255,.28) 0 1px,transparent 1px 1%) top left/100% 6px no-repeat}
.home .gr-scale i{position:absolute;bottom:-4px;font-style:normal;white-space:nowrap;font-size:.74rem;color:rgba(255,255,255,.6);transform:translateX(-50%);font-variant-numeric:tabular-nums}
.home .gr-scale i:first-child{transform:none}
.home .gr-scale i:last-child{transform:translateX(-100%)}
.home .hero .agl-master{width:min(1180px,92%);margin:22px auto 0!important;padding-bottom:56px;color:rgba(255,255,255,.5)!important;max-width:none}
@keyframes grGrow{from{transform:scaleX(.04);opacity:0}25%{opacity:1}to{transform:none;opacity:1}}
@keyframes grFade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.home .gr-grain,.home .gr-range{animation:none}}

/* ── route / ticker / trust ──────────────────────────────────────────────── */
.home .route{padding:12px 0;font-size:.82rem}
.home .route .container{letter-spacing:.02em;font-weight:500}
.home .ticker{padding:9px 0}
.home .ticker-track span{letter-spacing:.06em}
.home .trust{background:var(--ivory);border:0}
.home .trust .container{gap:0;padding:0}
.home .trust .t{padding:28px 24px 28px 0;align-items:flex-start;border-inline-end:1px solid var(--line)}
.home .trust .t+.t{padding-inline-start:24px}
.home .trust .t:last-child{border:0}
.home .trust .ic{width:auto;height:auto;background:none;font-size:1.25rem;line-height:1.3}

/* ── about ──────────────────────────────────────────────────────────────── */
.home .about-grid{align-items:start;gap:80px}
.home .about-points{gap:0;margin-top:34px;border-top:1px solid var(--line)}
.home .apoint{padding:20px 0;border-bottom:1px solid var(--line);gap:18px}
.home .apoint .n{width:22px;height:2px;margin-top:.7em;border-radius:0;background:var(--gold);font-size:0;color:transparent}
.home .apoint b{font-size:1.05rem}
.home .apoint p{margin-top:4px;line-height:1.65}
.home .about-visual{display:grid;gap:0;border-top:2px solid var(--navy);margin-top:56px}
.home .flag-card{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:24px 0;margin:0}
.home .flag-card b{font-family:var(--serif);font-weight:500;font-size:1.2rem;margin-bottom:4px}

/* ── 12 divisions: photo index, captions under the pictures ──────────────── */
.home .section .cat-strip{grid-template-columns:repeat(4,1fr);gap:44px 28px;margin-top:52px}
.home .section .cat-tile{aspect-ratio:auto;overflow:visible;display:block;color:inherit}
.home .section .cat-bg{position:relative;inset:auto;aspect-ratio:4/3;border-radius:4px;overflow:hidden;background-color:var(--sand)}
.home .section .cat-ov{position:static;background:none;padding:16px 0 0;color:var(--ink);border-top:0}
.home .section .cat-ov b{color:var(--navy-text,var(--navy));font-family:var(--serif);font-weight:500;font-size:1.22rem}
.home .section .cat-ov small{color:var(--muted);font-size:.9rem;line-height:1.55;margin-top:6px}
.home .section .cat-tile:hover .cat-bg{transform:none}
.home .section .cat-tile:hover .cat-ov b{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:5px}
.home .section .cat-tile:focus-visible{outline:2px solid var(--gold);outline-offset:6px}

/* ── flagship 1121: the spec sheet ───────────────────────────────────────── */
.home .flagship .flag-grid{grid-template-columns:.9fr 1.1fr;gap:72px;align-items:start}
.home .flagship .chiplist{gap:8px 18px}
.home .flagship .chip{background:none;border:0;border-radius:0;box-shadow:none;padding:0;font-size:.92rem;font-weight:500}
.home .flagship .chip::before{content:"";display:inline-block;width:6px;height:6px;margin-inline-end:9px;border-radius:50%;background:var(--gold);vertical-align:.12em}
.home .flag-photo{border-radius:4px;box-shadow:none}
.home .flag-photo img{height:360px}
.home .flagship .spec-box{background:none;border:0;border-top:2px solid var(--gold);border-radius:0;margin-top:26px!important}
.home .flagship .spec-box .head{background:none;padding:14px 0 6px;text-transform:none;letter-spacing:0;font-family:var(--serif);font-weight:500;font-size:1.15rem;color:var(--gold)}
.home .flagship .spec-table td{padding:12px 0;border-bottom:1px dotted rgba(212,185,55,.38)}
.home .flagship .spec-table td:last-child{text-align:end;font-weight:600}

.home .flagship p{color:rgba(255,255,255,.76)!important;line-height:1.75}

/* chapter dividers */
.home .chapter-div{max-width:1180px;width:92%;padding:56px 0 0;gap:22px}
.home .ch-num{font-size:.9rem;letter-spacing:.04em;font-weight:600}
.home .ch-line{background:var(--line)}
.home .ch-title{font-weight:500}

/* ── seven categories: full-bleed strip stays, quieter labels ─────────────── */
.home .cat-strip-sec .cat-strip{gap:2px;margin-top:44px}
.home .cat-strip-sec .cat-ov{background:linear-gradient(to top,rgba(9,23,16,.86),rgba(9,23,16,.05) 55%);padding:22px 18px}
.home .cat-strip-sec .cat-ov .ce{font-size:1.2rem;margin-bottom:10px}
.home .cat-strip-sec .cat-ov b{font-family:var(--serif);font-weight:500;font-size:1.3rem;color:#fff}
.home .cat-strip-sec .cat-ov small{font-size:.8rem;color:rgba(255,255,255,.7)}

/* ── countries ──────────────────────────────────────────────────────────── */
.home .map-band{border-radius:6px;margin:40px 0 0}
.home .cgrid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:0;margin-top:40px;border-top:1px solid var(--line)}
.home .cc{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;text-align:start;
  background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 8px 16px 0}
.home .cc:hover{transform:none}
.home .cc .fl{grid-row:1/3;font-size:0}
.home .cc .flag-img{width:40px;margin:0;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.home .cc b{margin:0;font-size:1rem}
.home .cc span{text-transform:none;letter-spacing:0;font-size:.82rem}

/* ── rice advisor promo ─────────────────────────────────────────────────── */
.home .ai-promo{border-radius:6px;padding:56px;grid-template-columns:1.6fr 1fr}
.home .ai-promo-glow{display:none}
.home .ai-badge{background:none!important;padding:0!important;color:var(--gold-soft)!important;letter-spacing:.01em!important;text-transform:none!important;font-weight:600}
.home .ai-orb{width:180px;height:180px;font-size:4rem;box-shadow:none;border:1px solid rgba(212,185,55,.45);background:transparent}

/* ── why SAFIA: a ruled 3×2 table, no cards ───────────────────────────────── */
.home .why6-grid{gap:0;margin-top:48px;border-top:2px solid var(--navy)}
.home .why6{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:30px 30px 32px 0;box-shadow:none}
.home .why6:not(:nth-child(3n+1)){padding-inline-start:30px;border-inline-start:1px solid var(--line)}
.home .why6:hover{transform:none;box-shadow:none;border-color:var(--line)}
.home .w6-ic{font-size:1.3rem;margin-bottom:14px}
.home .why6 b{font-family:var(--serif);font-weight:500;font-size:1.22rem}
@media(max-width:900px){.home .why6,.home .why6:not(:nth-child(3n+1)){padding:24px 0;border-inline-start:0}}

/* ── audiences ──────────────────────────────────────────────────────────── */
.home .audience-section{background:var(--sand)}
.home .audience-section .eyebrow{display:inline-flex!important;text-align:start!important}
.home .audience-section h2{text-align:start!important;margin:.9rem 0 48px!important}
.home .audience-grid{gap:0;border-top:1px solid var(--line)}
.home .audience-card{background:none;border:0;border-radius:0;padding:34px 34px 30px 0;box-shadow:none!important;transform:none!important}
.home .audience-card+.audience-card{padding-inline-start:34px;border-inline-start:1px solid var(--line)}
.home .audience-card::before{display:none}
.home .au-ic{font-size:1.4rem;margin-bottom:22px}
.home .audience-card b{font-size:1.5rem;font-weight:500;line-height:1.2}
.home .au-link{display:inline-block!important;border-bottom:1px solid var(--gold);padding-bottom:3px}
.home .audience-card:hover .au-link{color:var(--navy-text,var(--navy))!important}
@media(max-width:860px){.home .audience-card,.home .audience-card+.audience-card{padding:28px 0;border-inline-start:0;border-bottom:1px solid var(--line)}}

/* ── RFQ + contact ──────────────────────────────────────────────────────── */
.home #rfq .rfq-wrap{grid-template-columns:1.15fr .85fr;gap:64px;margin-top:44px}
.home #rfq .form{border-radius:6px;box-shadow:none}
.home .contact-cards{gap:0;border-top:2px solid var(--navy);align-content:start}
.home .ccard{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:18px 0;align-items:center}
.home .ccard .ic{width:38px;height:38px;border-radius:50%}
.home .map-box{border-radius:6px}

/* ── footer marquee: the logo images were display:block inside an inline <i>,
   which broke the line after every phrase and stacked the strip 490px tall ── */
.home .fm-track i.tk-mark{display:inline-flex;vertical-align:middle;opacity:1;margin:0 14px}
.home .fm-track i.tk-mark img{width:20px;height:20px;border-radius:50%}
.home .fm-track span{font-weight:500;letter-spacing:.01em}

/* ── responsive ─────────────────────────────────────────────────────────── */
@media(max-width:1100px){
  .home .section .cat-strip{grid-template-columns:repeat(3,1fr)}
  .home .hero-stats{grid-template-columns:repeat(2,auto)}
  .home .hstat:nth-child(2){border:0;margin:0}
}
@media(max-width:980px){
  .home .section{padding:72px 0}
  .home .hero .container{grid-template-columns:1fr;padding:64px 0 24px;gap:40px}
  .home .about-grid,.home .flagship .flag-grid,.home #rfq .rfq-wrap{grid-template-columns:1fr;gap:40px}
  .home .about-visual{margin-top:0}
  .home .trust .container{grid-template-columns:1fr 1fr}
  .home .trust .t,.home .trust .t+.t{padding:20px 16px 20px 0;border-inline-end:0;border-bottom:1px solid var(--line)}
  .home .trust .t:nth-child(even){padding-inline-start:16px;border-inline-start:1px solid var(--line)}
  .home .ai-promo{grid-template-columns:1fr;padding:36px 28px}
}
@media(max-width:640px){
  .home .section .cat-strip{grid-template-columns:1fr 1fr;gap:32px 16px}
  .home .section .cat-ov b{font-size:1.05rem}
  .home .section .cat-ov small{font-size:.8rem}
  .home .hero-stats{grid-template-columns:1fr 1fr}
  .home .hstat{padding:16px 12px 16px 0;margin:0;border-inline-end:0;border-bottom:1px solid rgba(212,185,55,.2)}
  .home .hstat:nth-child(odd){border-inline-end:1px solid rgba(212,185,55,.2)}
  .home .hstat:nth-child(even){padding-inline-start:14px}
  .home .hstat b{font-size:1.9rem}
  .home .arch-photo img{height:250px}
  .home .hero h1{font-size:2.2rem;line-height:1.08}
  .home .gr-head{flex-direction:column;align-items:flex-start;gap:2px}
  .home .gr-range span{font-size:.74rem}
  .home .gr-scale i:nth-child(even){display:none}
  .home .trust .container{grid-template-columns:1fr}
  .home .trust .t,.home .trust .t:nth-child(even){padding:18px 0;border-inline-start:0}
  .home .flag-photo img{height:240px}
  .home .flagship .spec-table td{font-size:.86rem}
}

/* ── Arabic ─────────────────────────────────────────────────────────────── */
html[lang="ar"] .home h2,html[lang="ar"] .home .hero h1{letter-spacing:0;line-height:1.3}
html[lang="ar"] .home .hero h1{font-size:clamp(2.1rem,4.4vw,3.7rem)}
html[lang="ar"] .home .hstat b,html[lang="ar"] .home .arch-card-title,html[lang="ar"] .home .flag-card b,
html[lang="ar"] .home .section .cat-ov b,html[lang="ar"] .home .cat-strip-sec .cat-ov b,html[lang="ar"] .home .why6 b,
html[lang="ar"] .home .flagship .spec-box .head,html[lang="ar"] .home .gr-head b{font-family:'SAFIA Arabic',var(--serif)}
