/* ==========================================================================
   anteambulo — Architects of the Edge
   Light editorial design system (BCG / BDO inspired). Whitespace, restraint.
   ========================================================================== */
:root {
  --bg:        #FDFCFA;
  --bg-1:      #F6F3EC;
  --bg-2:      #F1EDE4;
  --bg-3:      #ECE7DC;
  --line:      #E3DED3;
  --line-soft: #EDE9E0;
  --text:      #1C1A16;
  --ink:       #1C1A16;
  --muted:     #5C574C;
  --muted-dim: #8B857A;
  --gold:      #9A7B33;
  --gold-2:    #B99447;
  --gold-d:    #7C6224;
  --accent:    #9A7B33;
  --accent-d:  #7C6224;
  --radius:    3px;
  --maxw:      1180px;
  --ff-display:"Newsreader", Georgia, "Times New Roman", serif;
  --ff-sans:   "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--ff-sans); font-size: 17px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.grid { display: grid; gap: 32px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } .wrap { padding: 0 24px; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; color: var(--ink); }
h1, h2 { font-family: var(--ff-display); letter-spacing: -0.015em; line-height: 1.06; }
h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; }
h3 { font-family: var(--ff-sans); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-family: var(--ff-sans); font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .4em; }
p  { margin: 0 0 1em; color: var(--muted); }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }
.gold, .accent { color: var(--gold); }
em, .em { font-style: normal; color: var(--gold); }

.eyebrow {
  display: inline-block; font-family: var(--ff-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 24px;
}
.sh { max-width: 62ch; margin-bottom: 60px; }

/* Header ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,252,250,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { max-width: 1440px; padding: 0 44px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-display); font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.brand-mark { height: 30px; width: auto; }
.brand .dot { display: none; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .88rem; transition: color .18s; white-space: nowrap; position: relative; padding-bottom: 6px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta { display: inline-flex; }
.icon-link { color: var(--muted); display: inline-flex; transition: color .18s; }
.icon-link:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); width: 44px; height: 40px; border-radius: var(--radius); font-size: 1.2rem; cursor: pointer; }
@media (max-width: 1200px) {
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 40px; }
  .nav-toggle { display: block; }
  .nav .nav-cta { display: none; }
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px;
  border-radius: var(--radius); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .18s, color .18s, border-color .18s;
}
.nav-cta { padding: 12px 22px; }
.btn-primary { background: var(--ink); color: #FDFCFA; }
.btn-primary:hover { background: #33302a; }
.btn-ghost { background: transparent; border-color: var(--muted-dim); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-accent:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn-arrow::after { content: "\2192"; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 120px 0 110px; }
.hero h1 { max-width: 16ch; margin-bottom: 28px; }
.hero .lead { font-size: 1.4rem; max-width: 50ch; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-grid-bg, .hero-mark { display: none; }

/* Subtle grid backdrop (faint, fades out) --------------------------------- */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.heroflux { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(20,16,10,.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,16,10,.038) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(140% 120% at 82% -12%, #000 38%, transparent 90%);
  mask-image: radial-gradient(140% 120% at 82% -12%, #000 38%, transparent 90%);
}

/* Scroll reveal ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .r-anim { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .r-anim.r-in { opacity: 1; transform: none; }
}

/* Media slot (for the client's own photography) --------------------------- */
.media {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.media::after { content: attr(data-label); position: absolute; bottom: 16px; left: 18px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dim); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .mk { width: 42%; opacity: .12; }

/* Cards ------------------------------------------------------------------- */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--muted-dim); }
.card .num { font-family: var(--ff-sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-size: .8rem; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; }
.card p { margin-bottom: 0; font-size: .97rem; }
.card-link { color: var(--gold); font-size: .85rem; font-weight: 600; margin-top: 18px; display: inline-block; }
.card-link:hover { color: var(--gold-d); }

.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 5px 13px; margin: 0 6px 8px 0; }

/* Lists ------------------------------------------------------------------- */
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--muted); font-size: .97rem; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

/* Architecture stack ------------------------------------------------------ */
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .layer {
  border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: var(--radius);
  padding: 16px 20px; background: var(--bg); display: flex; align-items: center; justify-content: space-between;
  font-size: .92rem; color: var(--ink);
}
.stack .layer:last-child { background: var(--bg-1); }
.stack .layer span:last-child { color: var(--muted-dim); font-size: .74rem; letter-spacing: .04em; }
.stack .layer .k { font-family: var(--ff-mono); text-transform: uppercase; font-size: .64rem; letter-spacing: .12em; color: var(--muted-dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.svc-list { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.svc-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .96rem; }
.svc-list a::before { content: "\2192"; color: var(--gold); font-size: .85rem; }
.svc-list a:hover { color: var(--gold); }

/* Steps ------------------------------------------------------------------- */
.steps { display: grid; gap: 0; }
.step { border-left: 1px solid var(--line); padding: 0 0 34px 30px; position: relative; }
.step::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.step:last-child { border-left-color: transparent; }
.step h4 { margin-bottom: 3px; }
.step p { margin: 0; font-size: .95rem; }

/* Lifecycle band ---------------------------------------------------------- */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px){ .lifecycle { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 480px){ .lifecycle { grid-template-columns: 1fr;} }
.lifecycle .ph { background: var(--bg); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s; }
.lifecycle .ph:hover { border-color: var(--muted-dim); }
.lifecycle .ph .n { font-family: var(--ff-sans); font-weight: 600; letter-spacing: .06em; color: var(--gold); font-size: .82rem; }
.lifecycle .ph h4 { margin: 8px 0 3px; }
.lifecycle .ph small { color: var(--muted-dim); font-size: .8rem; }

/* Journey ----------------------------------------------------------------- */
.journey { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.journey .j { flex: 1 1 140px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; background: var(--bg); font-size: .92rem; }
.journey .j .n { display: block; color: var(--gold); font-family: var(--ff-sans); font-weight: 600; letter-spacing: .06em; font-size: .78rem; margin-bottom: 4px; }

/* Pricing / tiers --------------------------------------------------------- */
.price-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.price-card h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.6rem; }
.price-card .tier-for { color: var(--muted); font-size: .95rem; min-height: 46px; }
.price-card ul.check { margin: 22px 0 28px; flex: 1; }
.price-card .badge { align-self: flex-start; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 100px; padding: 4px 11px; margin-bottom: 18px; }
.commercial { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 100px; padding: 5px 12px; margin-top: 8px; }

/* Page hero (interior) ---------------------------------------------------- */
.page-hero { padding: 108px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); max-width: 20ch; margin-bottom: 24px; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }

/* KPI --------------------------------------------------------------------- */
.kpi { font-family: var(--ff-display); font-size: 2.8rem; font-weight: 500; color: var(--ink); line-height: 1; }
.kpi-label { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* Forms ------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .82rem; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  padding: 13px 14px; font-family: inherit; font-size: 1rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }

/* Footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dim); margin: 0 0 18px; }
.footer a { color: var(--muted); font-size: .92rem; display: block; margin-bottom: 11px; transition: color .15s; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 16px; flex-direction: column; align-items: center; gap: 8px; width: max-content; text-align: center; }
.footer .brand .brand-mark { height: 36px; }
.footer .social { display: flex; gap: 14px; margin-top: 4px; }
.footer .social a { margin: 0; }
.footer .legal { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 26px; color: var(--muted-dim); font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Language switch --------------------------------------------------------- */
.langsw { display: inline-flex; gap: 1px; border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.langsw button { background: none; border: none; color: var(--muted); font-family: var(--ff-sans); font-size: .72rem; font-weight: 600; letter-spacing: .06em; padding: 5px 10px; border-radius: 100px; cursor: pointer; transition: color .15s, background .15s; }
.langsw button.on { background: var(--bg-3); color: var(--gold); }
.langsw button:hover { color: var(--ink); }

/* Utilities --------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* Nav CTA: slim, off-white, refined */
.btn-primary.nav-cta{
  background:var(--bg-1); color:var(--ink); border:1px solid var(--line);
  padding:8px 16px; font-size:.78rem; font-weight:600; letter-spacing:.02em; gap:7px;
}
.btn-primary.nav-cta:hover{ background:var(--bg-2); color:var(--ink); border-color:var(--muted-dim); }

/* Industries outcome strip */
.ind-outcome{margin-top:26px;padding-top:18px;border-top:1px solid var(--line);display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.ind-outcome .io-label{font-family:var(--ff-mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);white-space:nowrap}
.ind-outcome .io-text{color:var(--text)}

