/* ============================================================
   Ancordi — Consulting
   Editorial layer: Cormorant Garamond / DM Sans / Space Mono
   ============================================================ */

.page-consulting {
    --w: #FFFFFF;
    --p: #F5F4F0;
    --p2: #ECEAE3;
    --ink: #0B1F40;
    --ink2: #1A3461;
    --blue: #1D59C4;
    --blt: #EBF1FB;
    --st: #5C7EA8;
    --ms: #8A9AB8;
    --ln: #D4D0C8;
    --sh: 0 2px 16px rgba(11, 31, 64, .07);
    --shl: 0 12px 48px rgba(11, 31, 64, .13);
    --fs: 'Cormorant Garamond', serif;
    --fb: 'DM Sans', sans-serif;
    --fm: 'Space Mono', monospace;
    --mx: 1280px;

    font-family: var(--fb);
    background: var(--w);
    color: var(--ink);
    line-height: 1.65;
}

.page-consulting ::-webkit-scrollbar { width: 3px; }
.page-consulting ::-webkit-scrollbar-track { background: var(--p); }
.page-consulting ::-webkit-scrollbar-thumb { background: var(--blue); }

/* ── SHARED ── */
.tag { font-family: var(--fm); font-size: .65rem; letter-spacing: .3em; color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.tag::before { content: ''; width: 20px; height: 1px; background: var(--blue); }
.tag-c { justify-content: center; }
.tag-c::after { content: ''; width: 24px; height: 1px; background: var(--blue); }
h2.t { font-family: var(--fs); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; color: var(--ink); line-height: 1.1; }
h2.t em { font-style: italic; color: var(--blue); }

.sr { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.sr.i { opacity: 1; transform: none; }
.sl { opacity: 0; transform: translateX(-26px); transition: opacity .7s, transform .7s; }
.sl.i { opacity: 1; transform: none; }
.sr2 { opacity: 0; transform: translateX(26px); transition: opacity .7s, transform .7s; }
.sr2.i { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .1s; }
[data-d="2"] { transition-delay: .2s; }
[data-d="3"] { transition-delay: .3s; }
[data-d="4"] { transition-delay: .4s; }

.btn-d { padding: 13px 30px; background: var(--ink); color: var(--w); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; display: inline-block; transition: all .3s; border: 1.5px solid var(--ink); }
.btn-d:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29, 89, 196, .28); }
.btn-o { padding: 12px 28px; border: 1.5px solid var(--ln); color: var(--st); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; display: inline-block; transition: all .3s; }
.btn-o:hover { border-color: var(--ink); color: var(--ink); }

/* ── HERO ── */
#hero {
    padding: 80px 5% 0;
    background: var(--w);
    position: relative; overflow: hidden;
    min-height: calc(100vh - var(--a-header-h));
    display: flex; flex-direction: column; justify-content: center;
}
.hero-bg-num {
    position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
    font-family: var(--fs); font-size: 28rem; font-weight: 700;
    color: rgba(11, 31, 64, .03); line-height: 1; pointer-events: none; white-space: nowrap;
}
.hero-inner { max-width: var(--mx); margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; position: relative; }
.hi { font-family: var(--fm); font-size: .65rem; letter-spacing: .3em; color: var(--blue); margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
.hi::before { content: ''; width: 32px; height: 1px; background: var(--blue); }
.hero-h { font-family: var(--fs); font-size: clamp(3rem, 5.4vw, 5.8rem); font-weight: 300; line-height: .98; color: var(--ink); letter-spacing: -.02em; margin-bottom: 32px; }
.hero-h em { font-style: italic; color: var(--blue); }
.hero-h strong { font-weight: 700; display: block; }
.hero-sub { font-size: 1rem; color: var(--st); line-height: 1.85; max-width: 480px; border-left: 2px solid var(--ln); padding-left: 20px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-r { padding-bottom: 60px; }
.hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ln); }
.hm { background: var(--w); padding: 28px 24px; transition: background .3s; }
.hm:hover { background: var(--p); }
.hm-n { font-family: var(--fs); font-size: 3rem; font-weight: 300; color: var(--ink); line-height: 1; }
.hm-n span { color: var(--blue); }
.hm-l { font-size: .75rem; color: var(--ms); margin-top: 6px; letter-spacing: .04em; line-height: 1.5; }

.hero-strip { margin-top: 80px; background: var(--ink); padding: 24px 5%; display: flex; align-items: center; overflow: hidden; }
.strip-items { display: flex; align-items: center; flex: 1; flex-wrap: wrap; }
.strip-item { flex: 1; min-width: 200px; padding: 12px 32px; border-right: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; gap: 14px; }
.strip-item:last-child { border-right: none; }
.si-icon { font-size: 1.1rem; }
.si-title { font-size: .78rem; font-weight: 700; color: var(--w); letter-spacing: .04em; }
.si-sub { font-size: .68rem; color: rgba(255, 255, 255, .4); margin-top: 2px; font-family: var(--fm); }

/* ── SERVICES ACCORDION ── */
#services { background: var(--p); padding: 110px 5%; }
.svc-inner { max-width: var(--mx); margin: 0 auto; }
.svc-hd { margin-bottom: 64px; }
.svc-hd p.desc { font-size: .92rem; color: var(--st); max-width: 540px; line-height: 1.85; margin-top: 16px; }

.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--ln); }
.svc-item { border-bottom: 1px solid var(--ln); overflow: hidden; }
.svc-header { display: flex; align-items: center; gap: 24px; padding: 28px 0; cursor: pointer; transition: padding .3s; flex-wrap: wrap; }
.svc-item.open .svc-header { padding-bottom: 0; }
.svc-header:hover .svc-title { color: var(--blue); }
.svc-idx { font-family: var(--fm); font-size: .6rem; letter-spacing: .2em; color: var(--ms); width: 40px; flex-shrink: 0; }
.svc-icon { font-size: 1.4rem; flex-shrink: 0; }
.svc-title { font-family: var(--fs); font-size: 1.6rem; font-weight: 400; color: var(--ink); line-height: 1.1; transition: color .25s; }
.svc-arrow { width: 36px; height: 36px; border: 1px solid var(--ln); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--ms); flex-shrink: 0; transition: all .35s; margin-left: auto; }
.svc-item.open .svc-arrow { background: var(--ink); color: var(--w); border-color: var(--ink); transform: rotate(45deg); }
.svc-body { display: none; padding: 32px 0 40px 64px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.svc-desc { font-size: .9rem; color: var(--st); line-height: 1.9; margin-bottom: 24px; }
.svc-pts { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc-pts li { display: flex; gap: 12px; font-size: .83rem; color: var(--st); padding-bottom: 10px; border-bottom: 1px solid var(--p2); transition: color .2s; }
.svc-pts li:last-child { border-bottom: none; }
.svc-pts li:hover { color: var(--ink); }
.svc-pts li::before { content: '↳'; color: var(--blue); font-size: .72rem; flex-shrink: 0; margin-top: 2px; }
.svc-highlight { background: var(--ink); padding: 32px; }
.svc-hl-tag { font-family: var(--fm); font-size: .58rem; letter-spacing: .3em; color: rgba(255, 255, 255, .3); margin-bottom: 14px; }
.svc-hl-q { font-family: var(--fs); font-size: 1.2rem; font-style: italic; color: var(--w); line-height: 1.5; margin-bottom: 20px; }
.svc-hl-metrics { display: flex; gap: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.svc-hl-m .v { font-family: var(--fs); font-size: 2rem; color: var(--w); line-height: 1; }
.svc-hl-m .l { font-size: .65rem; color: rgba(255, 255, 255, .4); margin-top: 2px; letter-spacing: .06em; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stag { padding: 4px 12px; border: 1px solid var(--ln); font-family: var(--fm); font-size: .6rem; color: var(--ms); letter-spacing: .1em; background: var(--w); }

/* ── APPROACH ── */
#approach { background: var(--w); padding: 110px 5%; }
.ap-inner { max-width: var(--mx); margin: 0 auto; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.ap-left .sec-rule { width: 48px; height: 3px; background: var(--ink); margin-top: 20px; }
.ap-left > p { font-size: .92rem; color: var(--st); line-height: 1.9; margin-top: 24px; max-width: 460px; }
.ap-steps { display: flex; flex-direction: column; }
.ap-step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--p2); transition: all .3s; }
.ap-step:first-child { padding-top: 0; }
.ap-step:last-child { border-bottom: none; }
.ap-step:hover { padding-left: 8px; }
.ap-step-n { font-family: var(--fs); font-size: 3rem; font-weight: 300; color: var(--p2); flex-shrink: 0; line-height: 1; width: 56px; text-align: right; transition: color .3s; }
.ap-step:hover .ap-step-n { color: var(--blue); }
.ap-step-body h4 { font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ap-step-body p { font-size: .82rem; color: var(--st); line-height: 1.75; }
.ap-step-body .dur { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border: 1px solid var(--ln); font-family: var(--fm); font-size: .58rem; color: var(--ms); }

.ap-diagram { background: var(--p); border: 1px solid var(--ln); padding: 36px; position: sticky; top: calc(var(--a-header-h) + 24px); }
.ap-diag-title { font-family: var(--fm); font-size: .6rem; letter-spacing: .25em; color: var(--blue); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.ap-diag-title::before { content: ''; width: 14px; height: 1px; background: var(--blue); }
.flow { display: flex; flex-direction: column; }
.flow-node { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--w); border: 1px solid var(--ln); transition: all .3s; cursor: default; }
.flow-node:hover { border-color: var(--blue); background: var(--blt); }
.flow-node-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.flow-node-text h5 { font-size: .82rem; font-weight: 700; color: var(--ink); }
.flow-node-text p { font-size: .72rem; color: var(--ms); margin-top: 1px; }
.flow-connector { display: flex; align-items: center; justify-content: center; height: 24px; }
.flow-connector::before { content: ''; width: 1px; height: 100%; background: linear-gradient(180deg, var(--blue), var(--ink2)); }
.flow-output { margin-top: 20px; padding: 20px; background: var(--ink); }
.fo-label { font-family: var(--fm); font-size: .58rem; letter-spacing: .25em; color: rgba(255, 255, 255, .35); margin-bottom: 10px; }
.fo-items { display: flex; flex-wrap: wrap; gap: 6px; }
.fo-item { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .15); font-family: var(--fm); font-size: .58rem; color: rgba(255, 255, 255, .5); letter-spacing: .08em; }

/* ── SECTORS ── */
#sectors { background: var(--ink); padding: 100px 5%; position: relative; overflow: hidden; }
#sectors::before { content: 'INDUSTRIES'; position: absolute; left: -30px; top: 50%; transform: translateY(-50%); font-family: var(--fs); font-size: 11rem; font-weight: 700; color: rgba(255, 255, 255, .025); line-height: 1; pointer-events: none; white-space: nowrap; }
.sec-inner { max-width: var(--mx); margin: 0 auto; position: relative; }
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; flex-wrap: wrap; gap: 28px; }
.sec-top .tag { color: rgba(255, 255, 255, .35); }
.sec-top .tag::before { background: rgba(255, 255, 255, .2); }
.sec-top h2.t { color: var(--w); }
.sec-top h2.t em { color: rgba(255, 255, 255, .4); }
.sec-top > p { max-width: 380px; font-size: .88rem; color: rgba(255, 255, 255, .45); line-height: 1.85; }
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .07); }
.sector-card { background: var(--ink); padding: 40px 32px; position: relative; overflow: hidden; transition: background .35s; }
.sector-card:hover { background: var(--ink2); }
.sc-num { font-family: var(--fs); font-size: 4rem; font-weight: 300; color: rgba(255, 255, 255, .05); line-height: 1; margin-bottom: -8px; }
.sc-icon { font-size: 1.6rem; margin-bottom: 16px; }
.sc-name { font-family: var(--fs); font-size: 1.3rem; font-weight: 400; color: var(--w); margin-bottom: 10px; }
.sc-desc { font-size: .8rem; color: rgba(255, 255, 255, .45); line-height: 1.75; margin-bottom: 20px; }
.sc-challenges { list-style: none; }
.sc-challenges li { font-size: .75rem; color: rgba(255, 255, 255, .35); padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); display: flex; align-items: flex-start; gap: 8px; }
.sc-challenges li:last-child { border-bottom: none; }
.sc-challenges li::before { content: '▸'; color: var(--blue); font-size: .6rem; flex-shrink: 0; margin-top: 2px; }
.sc-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.sector-card:hover .sc-bar { transform: scaleX(1); }

/* ── WHY / DIFFERENTIATORS ── */
#why { background: var(--p); padding: 110px 5%; }
.why-inner { max-width: var(--mx); margin: 0 auto; }
.why-hd { text-align: center; margin-bottom: 72px; }
.why-hd .sec-rule { width: 48px; height: 3px; background: var(--ink); margin: 20px auto 0; }
.why-hd p { font-size: .92rem; color: var(--st); max-width: 560px; margin: 20px auto 0; line-height: 1.85; }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; background: var(--ln); }
.diff-card { background: var(--w); padding: 44px 36px; position: relative; overflow: hidden; transition: all .35s; }
.diff-card:hover { box-shadow: var(--shl); z-index: 1; transform: translateY(-4px); }
.diff-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--ink2)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.diff-card:hover::after { transform: scaleX(1); }
.dc-q { font-family: var(--fs); font-size: 3.5rem; font-weight: 300; color: var(--p2); line-height: 1; margin-bottom: -4px; }
.dc-icon { font-size: 1.4rem; margin-bottom: 16px; }
.dc-h { font-family: var(--fs); font-size: 1.3rem; color: var(--ink); font-weight: 400; margin-bottom: 12px; line-height: 1.2; }
.dc-p { font-size: .83rem; color: var(--st); line-height: 1.85; }
.dc-vs { margin-top: 20px; padding: 14px; background: var(--p); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }
/* the two labels wrap to different line counts, so pin the values to a shared baseline */
.dc-vs-item { text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.dc-vs-label {
    font-family: var(--fm); font-size: .55rem; letter-spacing: .16em; color: var(--ms);
    margin-bottom: 6px; line-height: 1.45; overflow-wrap: anywhere; hyphens: auto;
}
.dc-vs-val { font-family: var(--fs); font-size: 1.4rem; color: var(--ink); }
.dc-vs-val.good { color: var(--blue); }

/* ── CTA ── */
#cta { background: var(--ink); position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.cta-l { padding: 80px 6% 80px 5%; display: flex; flex-direction: column; justify-content: center; }
.cta-l .tag { color: rgba(255, 255, 255, .35); }
.cta-l .tag::before { background: rgba(255, 255, 255, .2); }
.cta-l h2 { font-family: var(--fs); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; color: var(--w); line-height: 1.05; margin: 14px 0 20px; }
.cta-l h2 em { font-style: italic; color: rgba(255, 255, 255, .35); }
.cta-l p { font-size: .92rem; color: rgba(255, 255, 255, .5); line-height: 1.85; max-width: 440px; margin-bottom: 40px; }
.cta-btns { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.cb-p { padding: 15px 28px; background: var(--w); color: var(--ink); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-decoration: none; text-align: center; transition: all .3s; border: 1.5px solid var(--w); }
.cb-p:hover { background: var(--blue); border-color: var(--blue); color: var(--w); }
.cb-s { padding: 13px 26px; border: 1.5px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .6); font-size: .85rem; letter-spacing: .1em; text-decoration: none; text-align: center; transition: all .3s; }
.cb-s:hover { border-color: var(--w); color: var(--w); }
.cta-r { background: rgba(255, 255, 255, .03); border-left: 1px solid rgba(255, 255, 255, .07); padding: 60px 6% 60px 5%; display: flex; flex-direction: column; justify-content: center; }
.cta-r-title { font-family: var(--fm); font-size: .6rem; letter-spacing: .3em; color: rgba(255, 255, 255, .25); margin-bottom: 32px; }
.cta-contact-item { display: flex; align-items: flex-start; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cta-contact-item:last-child { border-bottom: none; }
.cci-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 1rem; }
.cci-label { font-family: var(--fm); font-size: .58rem; letter-spacing: .25em; color: rgba(255, 255, 255, .3); margin-bottom: 5px; }
.cci-val { font-size: .95rem; color: var(--w); font-weight: 500; }
.cci-val a { text-decoration: none; }
.cci-val a:hover { color: var(--blue); }
.cci-sub { font-size: .75rem; color: rgba(255, 255, 255, .35); margin-top: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-r { padding-bottom: 0; }
    .hero-metrics { grid-template-columns: repeat(4, 1fr); }
    .ap-grid { grid-template-columns: 1fr; gap: 56px; }
    .ap-diagram { position: static; }
    .sectors-grid { grid-template-columns: 1fr 1fr; }
    .diff-grid { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; }
    .cta-r { border-left: none; border-top: 1px solid rgba(255, 255, 255, .07); }
    .strip-items { flex-wrap: wrap; }
    .svc-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hero-metrics { grid-template-columns: 1fr 1fr; }
    .sectors-grid { grid-template-columns: 1fr; }
    .hero-bg-num { display: none; }
    .svc-body { padding-left: 0; }
    .svc-title { flex: 1 1 100%; }
    #services, #approach, #sectors, #why { padding: 70px 5%; }
    .strip-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .strip-item:last-child { border-bottom: none; }
}
