/* ============================================================
   PATROCLO — guides (/guias) and case studies (/casos)
   Loaded only on those pages, on top of styles.css. Same paper,
   ink and emerald; type and spacing tuned for long reading.
   ============================================================ */

.page-guide {
  --col: 720px;
  --g-ink-soft: rgba(23, 32, 28, 0.84);
  --g-tint: rgba(37, 125, 102, 0.06);
  --g-shadow: 0 1px 1px rgba(23, 32, 28, 0.04), 0 18px 40px -18px rgba(23, 32, 28, 0.22), 0 50px 90px -40px rgba(23, 32, 28, 0.28);
}

/* reading progress: a hairline of the brand gradient above the nav */
.g-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 72; pointer-events: none; }
.g-progress i { display: block; height: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ---------- Header ---------- */
.g-head { padding: calc(var(--nav-h) + clamp(34px, 6vw, 86px)) 0 0; }
.g-head-inner { width: min(980px, 92vw); margin-inline: auto; text-align: center; }
.g-crumbs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  font-size: 13px; color: var(--muted); margin-bottom: clamp(22px, 3vw, 34px);
}
/* a 44px tap target without moving the row */
.g-crumbs a { padding: 12px; margin: -12px; transition: color 0.3s; }
.g-crumbs a:focus-visible { outline-offset: -9px; border-radius: 6px; }  /* the ring hugs the word (3px clear), not the tap area */
.g-crumbs a:hover { color: var(--bronze-hi); }
.g-crumbs span[aria-hidden] { opacity: 0.4; }
.g-crumbs [aria-current] { color: var(--ink); }
.g-kicker { margin-bottom: 18px; text-wrap: balance; }
.g-title {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(38px, 6.2vw, 80px); line-height: 1.04; letter-spacing: -0.022em;
  text-wrap: balance; max-width: 15.5em; margin-inline: auto;
}
.g-dek {
  font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: rgba(23, 32, 28, 0.7);
  max-width: 34em; margin: clamp(18px, 2.4vw, 26px) auto 0; text-wrap: pretty;
}
.g-meta {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
  margin-top: clamp(24px, 3vw, 34px); font-size: 14px; color: var(--muted);
}
.g-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.g-meta img.g-by-mark { width: 28px; height: 28px; border-radius: 0; object-fit: contain; }
.g-meta strong { color: var(--ink); font-weight: 600; }
.g-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.45; }
@media (max-width: 520px) { .g-meta { gap: 6px 14px; } .g-meta .g-dot { display: none; } }

/* ---------- Device composite: a real capture in a browser, the phone in front ---------- */
.g-hero { width: min(1180px, 92vw); margin: clamp(44px, 6vw, 84px) auto 0; }
.g-device { position: relative; }
.g-device.has-phone { padding-bottom: 7%; }
.g-browser {
  border-radius: 10px; overflow: hidden; background: var(--surface);
  border: 1px solid rgba(23, 32, 28, 0.09); box-shadow: var(--g-shadow);
}
.g-browser img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.g-chrome {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
  background: #F4F5F2; border-bottom: 1px solid rgba(23, 32, 28, 0.07);
}
.g-chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(23, 32, 28, 0.13); }
.g-chrome b {
  margin: 0 auto; transform: translateX(-24px);
  font: 500 12px/1 var(--font-body); color: var(--muted); letter-spacing: 0.01em;
  background: rgba(23, 32, 28, 0.05); border-radius: 5px; padding: 6px 18px;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* phones: the pill takes the room beside the dots, so the whole address fits. A spacer the
   width of the dots mirrors them on the right, so a short address stays centred on the bar;
   it gives way first (shrinks to nothing) before a long address ever reaches the dots */
@media (max-width: 560px) {
  .g-chrome { padding: 0 12px; }
  .g-chrome b { transform: none; max-width: calc(100% - 51px); padding-inline: 12px; }
  .g-chrome::after { content: ""; flex: 0 999 51px; margin-left: -7px; }
  .g-shot .g-chrome::after { flex-basis: 45px; }
}
@media (max-width: 380px) { .g-chrome b { font-size: 11px; } }
.g-phone {
  position: absolute; right: 5%; bottom: 0; width: 19%; min-width: 92px;
  background: #101513; border-radius: 17.4% / 7.95%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 0 0 1px rgba(23, 32, 28, 0.2), 0 30px 60px -20px rgba(23, 32, 28, 0.45), 0 12px 24px -12px rgba(23, 32, 28, 0.3);
}
/* The bezel is a share of the phone's own width (a padding in % would follow the page
   column and grow thick on wide layouts). The screen shows the whole 390 × 844 capture
   under a status bar with the clock and the island, in the page's own color. */
.g-screen {
  position: relative; margin: 4.4%; overflow: hidden;
  border-radius: 14.2% / 6.17%; background: var(--sb, #FFFFFF); container-type: inline-size;
  display: flex; flex-direction: column;
}
.g-sb {
  flex: none; height: 13.6cqw; display: flex; align-items: center; justify-content: space-between;
  padding: 0.6cqw 6.4cqw 0 9.6cqw; color: #000000;
  font: 600 4.2cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-body); letter-spacing: -0.01em;
}
.g-screen.is-dark .g-sb { color: #FFFFFF; }
.g-sb i { position: absolute; top: 2.8cqw; left: 50%; width: 32cqw; height: 9.4cqw; transform: translateX(-50%); background: #000000; border-radius: 99px; }
.g-sb svg { width: 18cqw; height: auto; }
.g-screen picture { display: block; }
.g-screen img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
/* too small to read: keep the island, drop the clock and the icons */
@container (max-width: 140px) { .g-sb b, .g-sb svg { visibility: hidden; } }
.g-hero figcaption, .g-shot figcaption {
  font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 16px; text-align: center;
  max-width: 60ch; margin-inline: auto; text-wrap: pretty;
}

/* ---------- Article layout ---------- */
.g-layout {
  width: min(1180px, 92vw); margin: clamp(64px, 9vw, 120px) auto 0;
  display: grid; grid-template-columns: minmax(0, var(--col)); justify-content: center;
}
@media (min-width: 1100px) {
  /* the index takes the room left beside a full 720px column (at least 236px, so the
     column never drops under 710px at 1100), enough for two lines per entry */
  .g-layout { grid-template-columns: clamp(236px, 86vw - 720px, 264px) minmax(0, var(--col)); column-gap: clamp(48px, 6vw, 100px); }
}
.g-toc { display: none; }
@media (min-width: 1100px) {
  /* the top margin matches the summary's padding, so both labels share a line */
  .g-toc { display: block; position: sticky; top: calc(var(--nav-h) + 34px); align-self: start; margin-top: clamp(22px, 3vw, 34px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
}
.g-toc-t, .g-toc-m summary {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.g-toc-t { margin-bottom: 10px; }
.g-toc ol, .g-toc-m ol { list-style: none; counter-reset: none; }
.g-toc ol { border-left: 1px solid var(--line); }
.g-toc a {
  display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--muted); text-wrap: balance; transition: color 0.3s, border-color 0.3s;
}
.g-toc a:hover { color: var(--ink); }
.g-toc a.is-active { color: var(--ink); border-left-color: var(--bronze); }
/* inside the entry: the index scrolls, and a ring drawn outside it lost its sides */
.g-toc a:focus-visible { outline-offset: -2px; border-radius: 6px; }

.g-toc-m {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 36px; background: var(--surface);
}
.g-toc-m summary { list-style: none; cursor: pointer; padding: 17px 0; display: flex; justify-content: space-between; align-items: center; }
.g-toc-m summary::-webkit-details-marker { display: none; }
.g-toc-m summary::after { content: "+"; font: 400 20px/1 var(--font-body); letter-spacing: 0; color: var(--bronze); transition: transform 0.4s var(--ease-out); }
.g-toc-m[open] summary::after { transform: rotate(45deg); }
.g-toc-m ol { padding: 0 0 14px; }
/* inside .g-body, so it has to outrank the underlined body links */
.g-body .g-toc-m a:not(.btn):not(.g-row) {
  display: block; padding: 11px 0; font-size: 15.5px; line-height: 1.4; color: var(--g-ink-soft);
  text-decoration: none; text-wrap: balance; border-top: 1px solid var(--line); transition: color 0.2s;
}
.g-body .g-toc-m a:not(.btn):not(.g-row):active { color: var(--bronze-hi); }
@media (hover: hover) { .g-body .g-toc-m a:not(.btn):not(.g-row):hover { color: var(--bronze-hi); } }
@media (min-width: 1100px) { .g-toc-m { display: none; } }

/* ---------- Body typography ---------- */
.g-body { font-size: clamp(17px, 1.25vw, 18.5px); line-height: 1.72; color: var(--g-ink-soft); min-width: 0; }
.g-body > * + * { margin-top: 1.15em; }
.g-body > .g-toc-m + * { margin-top: 0; }
.g-body h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(28px, 3.1vw, 40px); line-height: 1.12; letter-spacing: -0.016em;
  margin-top: 2.2em; padding-top: 12px; text-wrap: balance;
}
.g-body h3 {
  font-size: clamp(19px, 1.5vw, 21px); font-weight: 600; color: var(--ink); line-height: 1.35;
  letter-spacing: -0.006em; margin-top: 1.9em; text-wrap: balance;
}
/* the index and #links land just below the fixed nav */
.g-body h2[id], .g-body h3[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.g-body h2 + *, .g-body h3 + * { margin-top: 0.65em; }
.g-body p, .g-body li { text-wrap: pretty; }
.g-body strong { color: var(--ink); font-weight: 600; }
.g-body a:not(.btn):not(.g-row) {
  color: var(--bronze-hi); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: rgba(37, 125, 102, 0.35); transition: text-decoration-color 0.3s;
}
.g-body a:not(.btn):not(.g-row):hover { text-decoration-color: currentColor; }
.g-body ul, .g-body ol { list-style: none; }
.g-body > ul > li, .g-note ul > li { position: relative; padding-left: 1.45em; }
.g-body > ul > li::before, .g-note ul > li::before {
  content: ""; position: absolute; left: 0.3em; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze);
}
.g-body > ol { counter-reset: g; }
.g-body > ol > li { counter-increment: g; position: relative; padding-left: 2.5em; }
.g-body > ol > li::before {
  content: counter(g); position: absolute; left: 0; top: 0.12em; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--grad-gold); color: #FFFFFF; font-size: 14px; font-weight: 700; line-height: 1.6em; text-align: center;
}
.g-body li + li { margin-top: 0.6em; }

/* "En corto": the answer before the article */
.g-summary { background: var(--surface-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px) clamp(22px, 3.2vw, 38px); }
.g-summary-t, .g-note-t, .g-cta-k {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze);
}
.g-summary ul { list-style: none; margin-top: 14px; }
.g-summary li { position: relative; padding-left: 30px; font-size: 0.97em; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.g-summary li + li { margin-top: 10px; }
.g-summary li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* side note */
.g-note { background: var(--g-tint); border-radius: var(--radius); padding: 20px 24px; font-size: 0.96em; }
.g-note-t { margin-bottom: 6px; }
.g-note p + p, .g-note ul { margin-top: 0.6em; }

/* figures inside the column */
.g-shot { margin-top: 2.1em; margin-bottom: 2.1em; }
.g-shot + .g-shot { margin-top: 0; }
.g-shot .g-browser { border-radius: 8px; }
.g-shot .g-chrome { height: 30px; }
.g-shot .g-chrome i { width: 8px; height: 8px; }
.g-shot .g-chrome b { font-size: 11px; padding: 5px 14px; }
.g-shot .g-phone { width: 21%; min-width: 74px; }
/* when the capture's own content sits on the right, the phone goes left, over empty space */
.g-shot.is-phone-left .g-phone { right: auto; left: 5%; }

/* testimonial */
.g-quote { margin: 2.2em 0; padding-left: clamp(18px, 2.4vw, 28px); border-left: 2px solid var(--bronze); }
.g-quote p { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(21px, 2vw, 26px); line-height: 1.42; color: var(--ink); letter-spacing: -0.005em; }
.g-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: var(--muted); }
.g-quote cite strong { color: var(--ink); }

/* tables */
.g-table { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.g-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.g-table th, .g-table td { text-align: left; padding: 14px 18px; vertical-align: top; text-wrap: pretty; }
.g-table th { text-wrap: balance; }
.g-table thead th { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: #F7F8F5; }
.g-table tbody tr + tr td, .g-table tbody tr + tr th { border-top: 1px solid var(--line); }
.g-table tbody th { font-weight: 600; color: var(--ink); }
.g-table td small, .g-table th small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.g-table .is-us th, .g-table .is-us td { background: var(--g-tint); }
.g-table-note { font-size: 13.5px; color: var(--muted); margin-top: 10px !important; text-wrap: pretty; }
/* Phones: two and three columns fit the screen. The four-column tables keep a sideways
   scroll with the label column pinned, and a fade on the right while there's more. */
@media (max-width: 600px) {
  .g-table table { min-width: 0; font-size: 14px; }
  .g-table th, .g-table td { padding: 12px 11px; }
  .g-table th:first-child, .g-table td:first-child { padding-left: 16px; }
  .g-table th:last-child, .g-table td:last-child { padding-right: 16px; }
  .g-table thead th { letter-spacing: 0.08em; }
  .g-table td a { overflow-wrap: anywhere; }
  .g-table table:has(thead th:nth-child(4)) { min-width: 560px; }
  .g-table table:has(thead th:nth-child(4)) :is(thead th, tbody th):first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  /* once the rows slide under it, the pinned column gets an edge and a soft shadow */
  .g-table table:has(thead th:nth-child(4)) :is(thead th, tbody th):first-child::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 12px; pointer-events: none;
    border-left: 1px solid var(--line); background: linear-gradient(90deg, rgba(23, 32, 28, 0.07), transparent);
    opacity: 0; transition: opacity 0.2s;
  }
  .g-table.is-moved table:has(thead th:nth-child(4)) :is(thead th, tbody th):first-child::after { opacity: 1; }
  .g-table table:has(thead th:nth-child(4)) thead th:first-child { background: #F7F8F5; }
  .g-table table:has(thead th:nth-child(4)) .is-us th:first-child { background: linear-gradient(var(--g-tint), var(--g-tint)), var(--surface); }
  .g-table.is-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .g-table.is-scroll.at-end { -webkit-mask-image: none; mask-image: none; }
}

/* price ranges: one bar per option, drawn from --a to --b on a shared scale */
.g-ranges { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(18px, 2.6vw, 28px); }
/* Each bar shares its column with its value and the scale below, so $0, the middle
   and the end of the scale sit exactly on the track. */
.g-range { display: grid; grid-template-columns: minmax(120px, 0.9fr) 1.6fr; grid-template-rows: auto 1fr; gap: 2px 18px; align-items: start; }
.g-range + .g-range { margin-top: 20px; }
.g-range-l { grid-row: 1 / span 2; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.g-range-l small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; text-wrap: balance; }
.g-range-bar { position: relative; height: 10px; margin-top: 6px; border-radius: 2px; background: rgba(23, 32, 28, 0.06); }
.g-range-bar i {
  position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); min-width: 10px;
  border-radius: 2px; background: linear-gradient(90deg, #3F968D, var(--bronze));
}
.g-range.is-us .g-range-bar i { background: var(--grad-gold); }
.g-range-v { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.g-ranges-scale { display: grid; grid-template-columns: minmax(120px, 0.9fr) 1.6fr; column-gap: 18px; margin: 18px 0 0; font-size: 12px; color: var(--muted); }
.g-ranges-scale span { grid-column: 2; grid-row: 1; }
.g-ranges-scale span:nth-child(2) { justify-self: center; }
.g-ranges-scale span:nth-child(3) { justify-self: end; }
@media (max-width: 560px) {
  .g-range { grid-template-columns: 1fr; grid-template-rows: none; }
  .g-range-l, .g-range-v { grid-row: auto; grid-column: 1; }
  .g-ranges-scale { grid-template-columns: 1fr; }
  .g-ranges-scale span { grid-column: 1; }
}

/* sources */
.g-sources { font-size: 14px; line-height: 1.55; color: var(--muted); }
.g-body > ol.g-sources > li { padding-left: 2em; }
.g-body > ol.g-sources > li::before { background: none; color: var(--muted); font-weight: 600; font-size: 13px; width: auto; height: auto; line-height: inherit; top: 0; content: counter(g) "."; }
.g-sources a { word-break: break-word; }

/* inline CTA: the deep green of the brand, the one loud block in the article */
.g-cta {
  margin: 2.6em 0; padding: clamp(28px, 4vw, 44px); border-radius: 10px; color: #FFFFFF;
  background: radial-gradient(120% 140% at 100% 0%, rgba(79, 182, 147, 0.38) 0%, transparent 55%), linear-gradient(140deg, #16543F 0%, #1F6B58 60%, #257D66 100%);
}
.g-cta .g-cta-k { color: rgba(255, 255, 255, 0.72); }
.g-cta-t { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -0.015em; margin-top: 10px !important; color: #FFFFFF; }
.g-body .g-cta-t { text-wrap: balance; }
.g-cta-b { color: rgba(255, 255, 255, 0.84); font-size: 16.5px; line-height: 1.6; margin-top: 12px !important; max-width: 46ch; }
.g-cta-btn { margin-top: 22px; background: #FFFFFF; color: var(--bronze-deep); }
/* hover only under a real pointer: on touch, :hover sticks after a tap */
@media (hover: hover) and (pointer: fine) {
  .g-cta-btn:hover { background: #F1F6F3; }
  .g-cta-btn:hover .btn-arrow { transform: translateX(4px); }
}

/* FAQ, reusing the accordion of the main pages */
/* the heading keeps its own top margin, which collapses through the section with the
   CTA's: the same air as before any other h2 */
.g-faq { margin-top: 0; }
.g-faq .faq-list { margin-top: 0.9em; }
.g-faq .faq-item h3 { margin: 0; font: inherit; letter-spacing: 0; }
.g-faq .faq-item h3 + .faq-a { margin-top: 0; }
.g-faq .faq-q { font-size: clamp(16.5px, 1.3vw, 18px); }
.g-faq .faq-a p { font-size: 16.5px; line-height: 1.65; max-width: none; }

/* ---------- Rows: guides and cases, wide and low ---------- */
.g-more { padding: clamp(90px, 11vw, 150px) 0 0; }
.g-more-inner, .g-index { width: min(1180px, 92vw); margin-inline: auto; }
.g-more-t {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.016em; line-height: 1.1; color: var(--ink); margin-bottom: clamp(24px, 3vw, 40px);
}
.g-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.g-row {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 56px);
  align-items: center; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
}
.g-row-img { border-radius: 6px; overflow: hidden; border: 1px solid rgba(23, 32, 28, 0.08); background: var(--surface-2); }
.g-row-img img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease-out); }
.g-row-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); text-wrap: balance; }
.g-row-t {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.16;
  letter-spacing: -0.012em; color: var(--ink); margin-top: 10px; text-wrap: balance; transition: color 0.3s;
}
.g-row-d { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-top: 10px; max-width: 46ch; text-wrap: pretty; }
.g-row-m { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
/* hover only under a real pointer: on touch it would stick after a tap and the back button */
@media (hover: hover) and (pointer: fine) {
  .g-row:hover .g-row-img img { transform: scale(1.025); }
  .g-row:hover .g-row-t { color: var(--bronze-hi); }
  .g-row:hover .btn-arrow { transform: translateX(4px); }
}
.g-row:active .g-row-img img { transform: scale(0.99); transition-duration: 0.15s; }
@media (max-width: 760px) {
  .g-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Index page ---------- */
.g-head-index { padding-bottom: clamp(40px, 6vw, 80px); }
.g-index + .g-index { padding-top: clamp(80px, 10vw, 140px); }
/* a jump to /guias#casos leaves the title as much air under the bar as the guide headings get */
.g-index[id] { scroll-margin-top: max(0px, calc(var(--nav-h) + 24px - clamp(80px, 10vw, 140px))); }
.g-rows-lead .g-row-t { font-size: clamp(24px, 2.6vw, 34px); }
/* the same two columns as the rows below, so the line starts over their text */
.g-index-head { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 6px clamp(20px, 4vw, 56px); align-items: baseline; }
.g-index-head .g-more-t { margin-bottom: 0; }
.g-index-head p { color: var(--muted); max-width: 46ch; text-wrap: pretty; }
@media (max-width: 760px) { .g-index-head { grid-template-columns: 1fr; } }
.g-index-head + .g-rows { margin-top: clamp(24px, 3vw, 36px); }

/* contact sits closer after the related rows */
.page-guide .contact { padding-top: clamp(90px, 11vw, 150px); }

/* ============================================================
   Case study (/casos)
   ============================================================ */
.c-wrap { width: min(1180px, 92vw); margin-inline: auto; }
.c-section { padding: clamp(90px, 11vw, 160px) 0 0; }
.c-head { max-width: 760px; }
.c-head.is-center { margin-inline: auto; text-align: center; }
.c-head.is-center .c-lead { margin-inline: auto; }
.c-h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(32px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance;
}
.c-lead { color: rgba(23, 32, 28, 0.7); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; margin-top: 18px; max-width: 40em; text-wrap: pretty; }

/* the result, said big */
.c-result { padding-top: clamp(80px, 10vw, 140px); }
.c-result-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 64px); align-items: center; }
.c-big {
  font-family: var(--font-display); font-weight: 600; line-height: 0.9; letter-spacing: 0;
  font-size: clamp(130px, 22vw, 300px); padding: 0 0.08em 0.04em 0.02em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.c-result-t { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.018em; color: var(--ink); text-wrap: balance; }
.c-result-s { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 46ch; }
@media (max-width: 640px) { .c-result-inner { grid-template-columns: 1fr; text-align: center; } .c-result-s { margin-inline: auto; } }

/* facts row */
.c-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line); }
.c-fact { padding: 24px 20px 0 0; }
.c-fact + .c-fact { padding-left: 20px; border-left: 1px solid var(--line); }
.c-fact b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.c-fact span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 22ch; text-wrap: balance; }
@media (max-width: 760px) {
  .c-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .c-fact:nth-child(n + 3) { padding-top: 28px; }
}

/* the tour: wide captures in a horizontal rail (reuses .work-gallery) */
.c-tour { padding-top: clamp(90px, 11vw, 160px); }
.c-tour .c-head { margin-bottom: clamp(30px, 4vw, 50px); }
/* not links: no hover state, and the rail's grab cursor shows through */
.c-tour .work-card { cursor: inherit; }
.c-tour .work-card:hover { border-color: var(--line); }
.c-tour .work-card img { height: auto; }
.c-tour .work-card figcaption { flex-wrap: wrap; }
.c-tour .work-card figcaption span { font-size: 14px; color: var(--muted); text-wrap: pretty; }

/* decisions: text beside the capture, alternating */
.c-splits { display: flex; flex-direction: column; gap: clamp(80px, 10vw, 140px); margin-top: clamp(50px, 7vw, 90px); }
.c-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.c-split.is-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.c-split.is-flip .c-split-txt { order: 2; }
.c-num { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.2em; color: var(--bronze); }
.c-split h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -0.016em; color: var(--ink); margin-top: 14px; text-wrap: balance; }
.c-split p { color: rgba(23, 32, 28, 0.74); font-size: 16.5px; line-height: 1.65; margin-top: 14px; text-wrap: pretty; }
.c-split .g-device.has-phone { padding-bottom: 9%; }
@media (max-width: 900px) {
  .c-split, .c-split.is-flip { grid-template-columns: 1fr; }
  .c-split.is-flip .c-split-txt { order: 0; }
  .c-split-txt { max-width: 620px; }
}

/* three phones, the middle one lifted */
.c-phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 44px); margin-top: clamp(40px, 6vw, 80px); }
.c-phones .g-phone { position: relative; right: auto; bottom: auto; width: clamp(150px, 22vw, 290px); }
.c-phones .g-phone:nth-child(2) { margin-top: -36px; }
.c-phones figcaption { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .c-phones {
    justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    /* room for the shadow inside the scroller (which clips it), given back below */
    margin-inline: -4vw; margin-bottom: -62px; padding: 46px 4vw 72px;
  }
  .c-phones::-webkit-scrollbar { display: none; }
  .c-phones .g-phone { flex: 0 0 62vw; scroll-snap-align: center; }
  /* a scroller with no arrows keeps its Tab stop (arrow keys scroll it), with the site's ring */
  .c-phones:focus-visible { outline: 2px solid var(--bronze); outline-offset: -2px; border-radius: var(--radius); }
}

/* the client's words */
.c-quote { text-align: center; max-width: 920px; margin-inline: auto; }
.c-quote p { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.28; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
@media (max-width: 640px) { .c-quote p { text-wrap: pretty; } }
.c-quote footer { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 15px; color: var(--muted); }
.c-quote footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.c-quote footer strong { color: var(--ink); display: block; }
.c-quote footer span { text-align: left; line-height: 1.35; }

/* what's on the site: a quiet checklist in two columns */
.c-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(30px, 5vw, 70px); margin-top: clamp(30px, 4vw, 50px); border-top: 1px solid var(--line); }
.c-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: rgba(23, 32, 28, 0.8); text-wrap: pretty; }
.c-list li b { color: var(--ink); font-weight: 600; }
.c-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.8 2.7L14.5 7.4' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (max-width: 760px) { .c-list { grid-template-columns: 1fr; } }

/* ---------- Entrance: CSS only, so the headline never waits for scripts ---------- */
@media (prefers-reduced-motion: no-preference) {
  .g-head-inner > * { animation: g-rise 0.9s var(--ease-out) both; }
  .g-head-inner > :nth-child(2) { animation-delay: 0.05s; }
  .g-head-inner > :nth-child(3) { animation-delay: 0.1s; }
  .g-head-inner > :nth-child(4) { animation-delay: 0.17s; }
  .g-head-inner > :nth-child(5) { animation-delay: 0.24s; }
  .g-hero { animation: g-rise-lg 1.2s 0.18s var(--ease-out) both; }
}
@keyframes g-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes g-rise-lg { from { opacity: 0; transform: translateY(36px) scale(0.985); } }

@media (prefers-reduced-transparency: reduce) {
  .g-phone { box-shadow: none; }
}
@media print {
  .g-progress, .g-toc, .g-toc-m, .g-cta, .g-more, .contact, .sticky-cta { display: none !important; }
}
