/* ==========================================================================
   ACLY BBD — HOMEPAGE SECTIONS
   Loaded after base.css
   ========================================================================== */

/* ==========================================================================
   HERO / ABERTURA
   The brand statement, nothing else. The founder's portrait lives in section
   02 (Quem somos) so the page leads with the offer, not the person.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--hdr-h) + clamp(24px, 5vh, 64px)) clamp(28px, 5vh, 56px);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* the world map lives in the right field, clear of the headline, and fades
   outward from Brazil so the convergence point is the densest thing on it */
.hero__map {
  position: absolute;
  top: 47%;
  right: -13%;
  width: min(1120px, 80%);
  transform: translateY(-50%);
  opacity: 0.44;
  mask-image: radial-gradient(84% 96% at 42% 66%, #000 6%, transparent 74%);
  -webkit-mask-image: radial-gradient(84% 96% at 42% 66%, #000 6%, transparent 74%);
}
.hero__glow {
  position: absolute;
  width: 74vw; height: 74vw;
  max-width: 1080px; max-height: 1080px;
  left: -22vw; bottom: -34vw;
  background: radial-gradient(circle, rgba(217, 254, 0, 0.07) 0%, transparent 62%);
  filter: blur(26px);
}
.hero__scan {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(242,243,238,0.026) 0 1px, transparent 1px 4px);
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
}

.hero__in { position: relative; z-index: 1; width: 100%; }

.hero__grid { display: grid; row-gap: clamp(18px, min(3vw, 3vh), 34px); }

/* every vertical gap in the hero is capped by viewport height as well as
   width, so the CTAs stay above the fold on a short laptop screen */
.hero__title { margin-block: clamp(14px, min(2.6vw, 2.6vh), 32px) clamp(18px, min(3.4vw, 3.4vh), 40px); }
.hero__rule { margin-bottom: 0; }

.hero__lede { max-width: 44ch; }
.hero__body { margin-top: clamp(12px, min(2vw, 2vh), 20px); max-width: 52ch; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: clamp(18px, min(2.6vw, 2.6vh), 30px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(18px, 2.2vw, 30px);
  margin-top: clamp(18px, min(2.8vw, 2.8vh), 32px);
  padding-top: clamp(13px, 1.6vw, 20px);
  border-top: 1px solid var(--line);
}
.hero__meta .dot-row { display: flex; align-items: center; gap: 9px; }
.hero__meta .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  animation: pulse 2.8s var(--ease-io) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 254, 0, 0.45); }
  70%  { box-shadow: 0 0 0 11px rgba(217, 254, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 254, 0, 0); }
}
/* rides at the end of the meta row, right-aligned to the copy column */
.hero__cue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--ink-38);
}
.hero__cue .bar {
  width: 1px; height: 22px;
  background: linear-gradient(to bottom, var(--neon), transparent);
  animation: cue 2.4s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 960px) {
  .hero__cue { display: none; }
}
@media (max-width: 760px) {
  .hero {
    min-height: 78svh;
    justify-content: flex-end;
    padding-block: calc(var(--hdr-h) + 26px) 40px;
  }
  .hero__map { right: -56%; top: 40%; width: 196%; opacity: 0.3; }
  .hero__glow { left: -40vw; bottom: -50vw; }
  .hero__meta { margin-top: 20px; padding-top: 14px; gap: 10px 18px; }
  .hero__ctas { margin-top: 22px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   03 — POSITIONING / THE LADDER
   ========================================================================== */

.pos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(38px, 6.5vw, 120px);
  align-items: start;
}
.pos__left { position: sticky; top: calc(var(--hdr-h) + 34px); }
.pos__left .lede { margin-block: clamp(22px, 2.8vw, 34px) 22px; }

.ladder { position: relative; padding-left: clamp(40px, 5vw, 68px); }
.ladder__spine {
  position: absolute;
  left: 5px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line-strong);
}
.ladder__spine::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, var(--neon), rgba(217, 254, 0, 0.25));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  transition: transform 0.18s linear;
}

.step { position: relative; padding-block: clamp(18px, 2.4vw, 30px); }
.step + .step { border-top: 1px solid var(--line); }
.step__dot {
  position: absolute;
  left: calc(clamp(40px, 5vw, 68px) * -1 + 1px);
  top: calc(clamp(18px, 2.4vw, 30px) + 0.5em);
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: background-color 0.55s var(--ease), border-color 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.step.is-lit .step__dot {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(217, 254, 0, 0.13);
}
.step__n {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-22);
  transition: color 0.5s var(--ease);
}
.step.is-lit .step__n { color: var(--neon); }
.step__t { margin-block: 8px 7px; color: var(--ink-38); transition: color 0.6s var(--ease); }
.step.is-lit .step__t { color: var(--ink); }
.step__c { max-width: 44ch; }

@media (max-width: 900px) {
  .pos { grid-template-columns: 1fr; gap: 42px; }
  .pos__left { position: static; }
}

/* ==========================================================================
   01 — WHAT WE DO / PILLARS
   ========================================================================== */

.pillars { border-top: 1px solid var(--line); }

.pillar {
  position: relative;
  display: grid;
  grid-template-columns: clamp(58px, 6.5vw, 104px) minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(14px, 2.6vw, 42px);
  align-items: center;
  padding-block: clamp(26px, 3.6vw, 50px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.pillar::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--neon-wash), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.pillar:hover::before, .pillar:focus-within::before { opacity: 1; }

.pillar__n {
  font-family: var(--display);
  font-size: clamp(10.5px, 0.85vw, 12px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-22);
  transition: color 0.5s var(--ease);
}
.pillar:hover .pillar__n { color: var(--neon); }
.pillar__t { transition: transform 0.7s var(--ease); }
.pillar:hover .pillar__t { transform: translateX(clamp(4px, 0.7vw, 12px)); }
.pillar__c { max-width: 50ch; }

.pillar__ghost {
  position: absolute;
  right: clamp(-6px, 1vw, 16px);
  top: 50%;
  z-index: -2;
  font-family: var(--display);
  font-size: clamp(5rem, 10.5vw, 10.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 254, 0, 0.2);
  transform: translate(28%, -50%);
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.pillar:hover .pillar__ghost { opacity: 1; transform: translate(8%, -50%); }

@media (max-width: 980px) {
  .pillar {
    grid-template-columns: auto 1fr;
    grid-template-areas: "n t" ". c";
    row-gap: 11px;
    align-items: baseline;
  }
  .pillar__n { grid-area: n; }
  .pillar__t { grid-area: t; }
  .pillar__c { grid-area: c; max-width: none; }
  .pillar__ghost { display: none; }
  .pillar:hover .pillar__t { transform: none; }
}
@media (max-width: 560px) {
  .pillar { grid-template-columns: 1fr; grid-template-areas: "n" "t" "c"; }
}

/* ==========================================================================
   04 — INTERNATIONAL NETWORK
   ========================================================================== */

.net__stage {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 130% at 30% 0%, rgba(217, 254, 0, 0.03), transparent 58%),
    var(--surface);
  padding: clamp(16px, 2.4vw, 36px);
  overflow: hidden;
}
.net__map { position: relative; }
.net__map svg { width: 100%; height: auto; }

.net__chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: clamp(8px, 0.6vw, 9.5px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-52);
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 9, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chip--neon { color: #050505; background: var(--neon); border-color: var(--neon); }
.chip--dim { color: var(--ink-38); }

.net__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: clamp(16px, 2.2vw, 26px);
  padding-top: clamp(14px, 1.8vw, 22px);
  border-top: 1px solid var(--line);
}
.net__legend span { display: flex; align-items: center; gap: 9px; }
.net__legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-22); flex: none; }
.net__legend i.on { background: var(--neon); }

.net__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.2vw, 54px);
  margin-top: clamp(36px, 4.5vw, 70px);
}
.net__col h4 {
  font-family: var(--display);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-block: 12px 9px;
}
@media (max-width: 860px) {
  .net__cols { grid-template-columns: 1fr; gap: 28px; }
  .chip { font-size: 7.5px; padding: 4px 6px; letter-spacing: 0.09em; }
  .chip--hide-sm { display: none; }
}
/* ==========================================================================
   05 — CLIENTS
   Presence only: the mark, where it is from, which segment. No product art,
   no descriptions, no links into the clients' own material.
   ========================================================================== */

.clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.client {
  background: var(--bg);
  padding: clamp(28px, 3.6vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.6vw, 36px);
  transition: background-color 0.5s var(--ease);
}
.client:hover { background: var(--surface); }
.client__meta { display: flex; align-items: center; gap: 12px; }
.client__meta i {
  width: 3.5px; height: 3.5px;
  border-radius: 50%;
  background: var(--neon);
  flex: none;
}

@media (max-width: 700px) { .clients { grid-template-columns: 1fr; } }

/* ==========================================================================
   02 — WHO WE ARE / PORTRAIT PLATE
   ========================================================================== */

.origin {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 92px);
  align-items: start;
}
/* a full-length portrait grows fast with the column, so it stops here and the
   text column takes the rest */
.origin .plate { max-width: 440px; }

.plate {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(217, 254, 0, 0.05), transparent 60%),
    linear-gradient(170deg, var(--surface-2), #0b0c0b 78%);
  overflow: hidden;
  display: grid;
  place-items: center;
}
/* Portrait slot. The photograph is optional: main.js only shows it once the
   file has actually decoded, and drops the element if it has not — so the
   monogram plate below is what a missing file looks like, never a broken
   image. Supply assets/andre-accioly.jpg (≈1200×1500, dark, high contrast). */
.plate img.portrait {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  filter: grayscale(1) contrast(1.12) brightness(0.92);
  transition: opacity 1.1s var(--ease), filter 0.9s var(--ease), transform 1.2s var(--ease);
}
.plate.has-media img.portrait { opacity: 1; }
.plate.has-media .plate__mono { display: none; }
/* the box takes the photograph's own ratio once it is there, so a full-length
   portrait is never cropped at the feet. Without a file it keeps the 4/5 above. */
.plate.has-media { aspect-ratio: 900 / 1155; }
.plate:hover img.portrait { filter: grayscale(0.35) contrast(1.06); transform: scale(1.03); }

/* a scrim so the caption keeps its contrast over a real photograph */
.plate.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(8, 9, 9, 0.82) 0%, rgba(8, 9, 9, 0.12) 46%, transparent 72%);
  pointer-events: none;
}

.plate__mono {
  font-family: var(--display);
  font-size: clamp(3.8rem, 9vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 243, 238, 0.17);
  user-select: none;
}
.plate__frame { position: absolute; z-index: 1; inset: clamp(10px, 1.2vw, 16px); border: 1px solid rgba(217, 254, 0, 0.16); pointer-events: none; }
.plate__frame::before, .plate__frame::after { content: ""; position: absolute; background: var(--neon); }
.plate__frame::before { top: -1px; left: -1px; width: 26px; height: 1px; }
.plate__frame::after  { top: -1px; left: -1px; width: 1px; height: 26px; }
.plate__lines {
  z-index: 1;
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(242,243,238,0.03) 0 1px, transparent 1px 5px);
  pointer-events: none;
}
.plate__tag { position: absolute; z-index: 1; left: clamp(20px, 2.2vw, 30px); bottom: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 6px; }
.plate__tag b {
  font-family: var(--display);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plate__vert {
  z-index: 1;
  position: absolute;
  right: clamp(14px, 1.5vw, 22px);
  top: clamp(20px, 2.2vw, 30px);
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-22);
}
.plate__badge { position: absolute; z-index: 1; aspect-ratio: 1 / 1; height: auto; right: clamp(14px, 1.6vw, 24px); bottom: clamp(18px, 2vw, 28px); width: clamp(46px, 4.2vw, 62px); border-radius: 50%; opacity: 0.85; }

.big-n { display: flex; align-items: flex-start; gap: clamp(11px, 1.4vw, 20px); line-height: 0.8; }
.big-n__v {
  font-family: var(--display);
  font-size: clamp(4.2rem, 11vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}
.big-n__u { padding-top: 0.6em; display: flex; flex-direction: column; gap: 4px; }
.big-n__u b {
  font-family: var(--display);
  font-size: clamp(11.5px, 1.15vw, 16px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote {
  font-family: var(--display);
  font-size: clamp(1rem, 1.55vw, 1.42rem);
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-block: clamp(22px, 3vw, 38px) clamp(18px, 2.4vw, 28px);
  padding-left: clamp(14px, 1.6vw, 22px);
  border-left: 1px solid var(--neon);
  max-width: 32ch;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-38);
}

.facts { margin-top: clamp(26px, 3.6vw, 46px); border-top: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: clamp(13px, 1.8vw, 28px);
  padding-block: clamp(13px, 1.5vw, 20px);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fact dt {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-38);
}
.fact dd { font-size: clamp(13px, 0.92vw, 14.5px); color: var(--ink-70); }

@media (max-width: 900px) {
  .origin { grid-template-columns: 1fr; gap: 30px; }
  /* stacked, the plate would run the full column width and eat a whole screen
     of scroll. Capping the width keeps the photograph uncropped; only the empty
     monogram plate gets squatter, since there is nothing to crop. */
  .origin .plate { max-width: 360px; }
  .origin .plate:not(.has-media) { aspect-ratio: 4 / 4.4; }
  .fact { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 760px) {
  .plate__mono { font-size: clamp(3.2rem, 17vw, 5rem); }
  .quote { margin-block: 22px 18px; }
  .facts { margin-top: 24px; }
}

/* ==========================================================================
   06 — FINAL CTA
   ========================================================================== */

.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-block: clamp(92px, 15vh, 216px); }
.cta__glow {
  position: absolute;
  left: 50%; bottom: -46vw;
  width: 92vw; height: 92vw;
  max-width: 1320px; max-height: 1320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217, 254, 0, 0.095) 0%, transparent 58%);
  pointer-events: none;
}
.cta__in { position: relative; z-index: 1; }
.cta__title { margin-block: clamp(20px, 3vw, 38px) clamp(22px, 3vw, 34px); }
.cta__lede { margin-bottom: clamp(30px, 4vw, 48px); }

.contact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(52px, 7vw, 104px);
  background: var(--line);
  border: 1px solid var(--line);
}
.contact__i {
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background-color 0.5s var(--ease);
}
.contact__i:hover { background: var(--surface-2); }
.contact__i b {
  font-family: var(--display);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.03em;
  word-break: break-word;
  transition: color 0.4s var(--ease);
}
.contact__i:hover b { color: var(--neon); }
@media (max-width: 900px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .contact { grid-template-columns: 1fr; } }

/* ==========================================================================
   MOBILE DENSITY — homepage
   Same intent as the block in base.css: the desktop rhythm is generous on
   purpose, but on a phone the vh-driven gaps turn into dead scroll. These
   only tighten spacing; no layout changes.
   ========================================================================== */

@media (max-width: 760px) {
  .pos { gap: 28px; }
  .pos__left .lede { margin-block: 16px 14px; }

  .ladder { padding-left: 28px; }
  .step__dot { left: -27px; }
  .step { padding-block: 15px; }

  .pillar { padding-block: 20px; }
  .pillars { border-top-width: 1px; }

  .net__stage { padding: 12px; }
  .net__legend { margin-top: 14px; padding-top: 12px; gap: 8px 18px; }
  .net__cols { margin-top: 26px; gap: 22px; }
  .net__col h4 { margin-block: 9px 7px; }


  .client { padding: 22px 20px; gap: 18px; }

  .cta { padding-block: 64px 72px; }
  .cta__title { margin-block: 16px 18px; }
  .cta__lede { margin-bottom: 26px; }
  .contact { margin-top: 34px; }
  .contact__i { padding: 18px 20px; }

  .big-n { gap: 10px; }
}
