/* ---------------------------------------------------------------
   Shared by the home page and every case page (N26 Investments, oorbi,
   N26 Memberships and the next ones), loaded before the page's own
   stylesheet. Change the nav, the footer or the case hero title here
   and every page follows; case-shared.js drives them.
   Sizes are in frame units (--u, the 1280 × 832 Figma frame); the page
   sets --u, --fx (the frame's left edge) and, when the page is capped
   in width, --page-x.
   --------------------------------------------------------------- */

/* Nav: a translucent grey bar with a soft blur (Breno's Figma 87:1060).
   While the hero card is under it the bar fades out and the type turns grey
   (or black when --nav-on-card is black, e.g. on home or light hero photos);
   the bar comes back once the card has scrolled out (on-card) */
.nav {
  --n: clamp(0.75, var(--u, 1), 1.5);
  /* the bar's own geometry, which the scrolled button is cut from */
  --nav-top: calc(var(--n) * 16px);
  --nav-side: calc(var(--n) * 16px);
  --nav-h: calc(var(--n) * 66px);
  --pill-top: calc(var(--n) * 12px);
  --pill: calc(var(--n) * 52px);
  --pill-btn: calc(var(--n) * 52px); /* the button is the whole circle: one container, one hover */
  position: fixed;
  z-index: 50;
  top: calc(var(--n) * 16px);
  left: calc(var(--page-x, 0px) + var(--n) * 16px);
  right: calc(var(--page-x, 0px) + var(--n) * 16px);
  height: calc(var(--n) * 66px);
  padding: 0 calc(var(--n) * 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* the bar reaches the page edges (--nb = 16) so nothing shows unblurred
   beside or above it; a page can tuck it in (--nb → 0) */
.nav__bg {
  position: absolute;
  inset: calc(var(--nb, calc(var(--n) * 16px)) * -1) calc(var(--nb, calc(var(--n) * 16px)) * -1) 0;
  z-index: -1;
  background: var(--nav-bg, rgba(255, 255, 255, 0.76));
  -webkit-backdrop-filter: blur(var(--nav-blur, calc(var(--n) * 8px)));
  backdrop-filter: blur(var(--nav-blur, calc(var(--n) * 8px)));
  pointer-events: none;
}
.nav__logo {
  font-size: calc(var(--n) * 23.498px);
  line-height: 1.2;
  font-feature-settings: "case" 1;
  text-decoration: none;
  white-space: nowrap;
  color: var(--black);
  transition: color var(--dur-s);
}
.nav__logo-first { font-family: "GT America Condensed"; font-weight: 400; }
.nav__logo-last { font-family: "GT America Expanded"; font-weight: 900; letter-spacing: -0.022em; }
.nav__links { display: flex; align-items: center; gap: calc(var(--n) * 16px); }
.nav__link {
  position: relative;
  font-weight: 400;
  font-size: calc(var(--n) * 14px);
  letter-spacing: 0.02em;
  line-height: 1;
  padding: calc(var(--n) * 6px) 0;
  text-decoration: none;
  color: var(--black);
  transition: color var(--dur-s);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-m) var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Compact mobile menu toggle & dropdown for "Cases" & "About me" */
.nav__menu-btn {
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--black);
  box-shadow: none;
  cursor: pointer;
}
/* hover and press as every paper button (--btn-paper-*) */
.nav__menu-btn:is(:hover, :focus-visible) { background-color: rgba(28, 3, 3, 0.05); } /* a tint, so the frost still shows through */ /* plus the green beam (case-shared.js, beam.css), as every button */
.nav__menu-btn:active { background-color: rgba(28, 3, 3, 0.1); }
.nav__menu-icon {
  position: relative;
  width: 18px;
  height: 9px;
}
.nav__menu-icon::before,
.nav__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur-s) var(--ease-out), top var(--dur-s) var(--ease-out);
}
.nav__menu-icon::before { top: 0; }
.nav__menu-icon::after { top: 7.5px; }
.nav.is-menu-open .nav__menu-btn {
  background: transparent;
}
.nav.is-menu-open .nav__menu-icon::before { top: 3.75px; transform: rotate(45deg); }
.nav.is-menu-open .nav__menu-icon::after { top: 3.75px; transform: rotate(-45deg); }


.nav a:focus-visible,
.nav button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* Over any hero (home included) the nav sits straight on it: no bar and
   no blur, whose edge showed as a line (Breno, 2026-11-03) */
.on-card .nav__bg { opacity: 0; }
/* the type over the hero: grey on a dark hero (oorbi); a case with a
   light hero photo or the home page sets --nav-on-card to black */
.on-card .nav__logo,
.on-card .nav__link,
.on-card .nav__menu-btn { color: var(--nav-on-card, var(--grey)); }

/* Phones: a smaller bar. The burger stays in the bar (Cases and About me
   are in its drawer); the scrolled state below is the same on every size. */
@media (max-width: 767px) {
  .nav {
    --n: 1;
    --nav-top: 12px;
    --nav-side: 12px;
    --nav-h: 48px;
    --pill: 48px;       /* the scrolled button: as tall as the bar, so the burger does not move */
    --pill-btn: 48px;
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    height: 48px;
    padding: 0 12px;
  }
  .nav__bg { inset: -12px -12px 0; }
  .nav__logo { font-size: clamp(16px, 4.8vw, 20px); }
  .nav__links { gap: 6px; padding-right: 42px; }
  .nav__links > .nav__link { display: none; }
  /* the burger is always there on phones (on desktop it arrives when scrolled) */
  .nav .nav__menu-btn { opacity: 1; scale: 1; visibility: visible; pointer-events: auto; }
}

/* Scrolled nav (Breno, 2026-11-12): past the first screen the bar closes into
   a small frosted round button at the top right, with only the menu icon;
   the drawer holds Home, Cases, About me and Contact. Same on every size.
   One container: the bar's frosted background (.nav__bg) shrinks into the
   button, with its ring and shadow, while the logo and links fade out and
   the icon fades in; the nav itself keeps its size. Quick on purpose (about 0.45 s): type out
   while the bar starts closing, the icon arrives as it lands. The rules
   without .is-compact are the way back and carry their own timings.
   case-shared.js toggles .is-compact. */
.nav__bg {
  /* one container: the bar's own frosted background is what shrinks into the
     button (its edges and corners move; nothing else in the layout does) */
  border-radius: 0;
  box-shadow: inset 0 0 0 1px transparent, 0 10px 30px -12px transparent;
  transition: background-color var(--dur-s), opacity var(--dur-s), box-shadow var(--dur-m) var(--ease-out),
    inset var(--dur-m) var(--ease-out), border-radius var(--dur-m) var(--ease-out);
}
.nav.is-compact { pointer-events: none; }
.nav.is-compact :is(.nav__menu-btn, .nav__drawer) { pointer-events: auto; }
.nav.is-compact .nav__bg {
  opacity: 1;
  background: var(--nav-pill-bg, rgba(255, 255, 255, 0.72));
  /* the pill: --pill wide and high, on the nav's right edge, --pill-top from the window's top */
  inset: calc(var(--pill-top) - var(--nav-top)) 0 calc(var(--nav-h) - (var(--pill-top) - var(--nav-top)) - var(--pill)) calc(100% - var(--pill));
  border-radius: calc(var(--pill) / 2);
  box-shadow: inset 0 0 0 1px var(--black-15), 0 10px 30px -12px rgba(28, 3, 3, 0.28);
}
/* the logo and links: out first, back in once the bar has opened */
.nav__logo, .nav__link, .nav__contact {
  transition: color var(--dur-s), opacity var(--dur-s) var(--ease-out) 0.2s;
}
.nav.is-compact :is(.nav__logo, .nav__link, .nav__contact) {
  opacity: 0;
  pointer-events: none;
  transition: color var(--dur-s), opacity 0.12s var(--ease-out);
}
/* the burger sits where the button is; on desktop it is hidden until scrolled */
.nav__menu-btn {
  display: grid;
  position: absolute;
  top: calc(var(--pill-top) - var(--nav-top) + (var(--pill) - var(--pill-btn)) / 2);
  right: calc((var(--pill) - var(--pill-btn)) / 2);
  width: var(--pill-btn);
  height: var(--pill-btn);
  opacity: 0;
  scale: 0.6;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s var(--ease-out), scale 0.12s var(--ease-out), visibility 0s 0.12s, color var(--dur-s),
    background-color var(--btn-speed, 0.25s), box-shadow var(--btn-speed, 0.25s);
}
.nav.is-compact .nav__menu-btn {
  opacity: 1;
  scale: 1;
  visibility: visible;
  transition: opacity var(--dur-xs) var(--ease-out) 0.15s, scale var(--dur-s) var(--ease-out-expo) 0.12s,
    visibility 0s, color var(--dur-s), background-color var(--btn-speed, 0.25s), box-shadow var(--btn-speed, 0.25s);
}
.nav.is-compact .nav__drawer-link--compact { display: flex; }
.nav.is-compact .nav__drawer { top: calc(var(--pill-top) - var(--nav-top) + var(--pill) + 6px); right: 0; }
/* on a hero the button still reads: dark icon on its frost */
.on-card .nav.is-compact .nav__menu-btn { color: var(--black); }
@media (prefers-reduced-motion: reduce) {
  .nav__bg, .nav__menu-btn, .nav__logo, .nav__link, .nav__contact,
  .nav.is-compact :is(.nav__bg, .nav__menu-btn, .nav__logo, .nav__link, .nav__contact) {
    transition-duration: 0.01ms; transition-delay: 0s;
  }
}

/* The drawer: the phone's menu, and the scrolled nav's on desktop */
.nav__drawer {
  position: absolute;
  top: calc(100% + 6px);
  right: 12px;
  min-width: 168px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--black-15), 0 12px 28px -8px rgba(28, 3, 3, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity var(--dur-xs) var(--ease-out), transform var(--dur-xs) var(--ease-out), visibility var(--dur-xs);
}
.nav.is-menu-open .nav__drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.nav__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
  transition: background-color var(--dur-xs);
}
.nav__drawer-link--compact { display: none; }
.nav__drawer-link:is(:hover, :focus-visible) { background: var(--btn-paper-bg-hover, #f3f2f2); }
.nav__drawer-link:active { background: #e9e7e7; }

/* Hero title: the case's name in Expanded Black red, standing on the
   hero card's bottom edge, and a thin compressed italic line under it,
   on the case's 32 text edge. case-shared.js places both lines */
.case-title {
  position: absolute;
  z-index: 12;
  top: 0;
  /* the letters line up with the summary strip's text by their ink: the strip sits 16 in, its text
     31 more, and the big cuts carry about 0.1em of side space */
  left: calc(var(--u) * 49px - 0.1em);
  margin: 0;
  font-size: calc(var(--u) * 100px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.case-title__red, .case-title__sub { position: absolute; top: 0; left: 0; display: block; line-height: 1; will-change: transform; }
/* the big word reads its colour from --case-title (each case sets it; red by default), so no sheet has to win a fight over it */
.case-title__red { font-family: "GT America Expanded"; font-weight: 900; color: var(--case-title, var(--red)); }
html.is-scenes .case-title__red { margin-left: 0.022em; } /* ink alignment with the strip below; the flow layout on phones has none */
/* the second line is in the site's one weight */
.case-title__sub { font-family: "GT America"; font-weight: 400; font-style: normal; letter-spacing: -0.045em; color: var(--black); }
/* on load the letters rise out of their own line */
/* the mask reaches 0.25em under the line, so descenders (g, y, p) show in
   full; the letters start 1.3 lines down, hidden under that edge
   (Breno, 2026-11-10: "Design System" lost its g and y) */
.case-title__mask { display: block; padding-bottom: 0.25em; margin-bottom: -0.25em; clip-path: inset(-0.3em -0.3em 0 -0.3em); }
.case-title .split-char {
  display: inline-block;
  transform: translateY(130%);
  transition: transform var(--dur-xl) var(--ease-out-expo);
  transition-delay: calc(0.35s + var(--i) * 45ms);
}
.title-in .case-title .split-char { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .case-title .split-char { transform: none; transition: none; }
}

/* ---------------------------------------------------------------
   Shared Footer (Figma States 24–25): green panel with monotone noise,
   navigation columns, social buttons, and large brenofrias wordmark.
   Works both inside the pinned home desktop stage and in normal page
   flow (mobile/tablet home and all case subpages).
   --------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 28;
  overflow: hidden;
  background: #004233;
  color: var(--grey);
}
/* Figma noise: monotone #012D22, density 0.5 */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.0014  0 0 0 0 0.175  0 0 0 0 0.1345  -1.6 0 0 0 1.1'/><feComponentTransfer><feFuncA type='discrete' tableValues='0 1'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.footer__row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer__nav {
  display: flex;
  gap: 32px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--grey);
  white-space: nowrap;
}
.footer__head { font-weight: 500; }
.footer__col a { color: inherit; }
.footer__btns { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; } /* one under another (Breno, 2026-11-11) */
.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform var(--dur-xs) var(--ease-out);
}
.fbtn img { width: 16px; height: 16px; }
.fbtn--dark { background: var(--black); color: var(--grey); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8), var(--shadow-small); }
.fbtn--grey { background: var(--grey); color: var(--black-80); box-shadow: inset 0 0 0 1px var(--black-15), var(--shadow-small); }
.footer a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.footer__mark {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-feature-settings: "case" 1;
  white-space: nowrap;
  color: var(--black);
}
.footer__first,
.footer__last { display: inline-block; will-change: transform; }
.footer__first { font-family: "GT America Condensed"; font-weight: 400; margin-left: -0.076em; }
.footer__last { font-family: "GT America Expanded"; font-weight: 900; }

/* Standalone footer in normal document flow (subpages, and home on tablet/mobile) */
.footer--flow {
  --foot-pad: 24px;
  container-type: inline-size;
  padding: 40px var(--foot-pad) 0;
}
.footer--flow .footer__row {
  width: 100%;
  max-width: calc(1920px - 2 * var(--foot-pad));
  margin: 0 auto;
}
.footer--flow .footer__mark {
  width: 100%;
  max-width: calc(1920px - 2 * var(--foot-pad));
  margin: clamp(24px, 3.8vw, 44px) auto -0.30em;
  text-align: left;
  font-size: min(calc((100vw - 2 * var(--foot-pad)) / 5.15), 362px);
  line-height: 1;
}
@supports (font-size: 1cqw) {
  .footer--flow .footer__mark {
    font-size: min(calc(100cqw / 5.15), 362px);
  }
}

@media (min-width: 960px) {
  .footer--flow {
    --foot-pad: calc(var(--u, 1) * 27px);
    padding: calc(var(--u, 1) * 36px) var(--foot-pad) 0;
  }
  .footer--flow .footer__nav {
    gap: max(32px, calc(var(--u, 1) * 48px));
  }
  .footer--flow .footer__col {
    gap: max(14px, calc(var(--u, 1) * 16px));
    font-size: max(14px, calc(var(--u, 1) * 14px));
  }
  .footer--flow .footer__btns {
    gap: max(12px, calc(var(--u, 1) * 16px));
  }
  .footer--flow .fbtn {
    gap: max(8px, calc(var(--u, 1) * 8px));
    padding: max(8px, calc(var(--u, 1) * 8px)) max(14px, calc(var(--u, 1) * 14px));
    border-radius: max(4px, calc(var(--u, 1) * 4px));
    font-size: max(14px, calc(var(--u, 1) * 14px));
    line-height: max(18px, calc(var(--u, 1) * 18px));
  }
  .footer--flow .fbtn img {
    width: max(16px, calc(var(--u, 1) * 16px));
    height: max(16px, calc(var(--u, 1) * 16px));
  }
  /* the home footer's spacing (links to wordmark), which leaves the
     wordmark room to hold still while the panel rises (case-shared.js) */
  .footer--flow .footer__mark {
    margin: calc(var(--u, 1) * 132px) auto -0.30em;
  }
}

@media (max-width: 767px) {
  .footer--flow {
    --foot-pad: 16px;
    padding: 32px var(--foot-pad) 0;
  }
  .footer--flow .footer__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
  }
  .footer--flow .footer__nav {
    width: auto;
    justify-content: flex-start;
    gap: clamp(16px, 6vw, 40px);
  }
  .footer--flow .footer__btns {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
  }
  .footer--flow .footer__mark {
    margin: 24px auto -0.30em;
  }
}

/* ---------------------------------------------------------------
   Text links: the nav's hover everywhere (Breno, 2026-11-04). A 1px
   line in the text colour draws in from the left on hover and slides out
   to the right after, as under "Cases" and "About me". Links inside
   running text keep a faint line at rest (--link-rest) so they read as
   links; the footer and article titles have none, like the nav.
   Article titles carry it on an inner span (.article__line), so the
   line runs under the words, line by line, not under the whole block.
   --------------------------------------------------------------- */
.footer__col a,
.who__body a,
.result__label a,
.results2__list a,
.ds-copy a:not(.button),
:is(.ds-shot, .ds-film) figcaption a,
.nu-pair__credit a,
.article__line {
  --link-rest: transparent;
  text-decoration: none;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(var(--link-rest), var(--link-rest));
  background-repeat: no-repeat;
  background-size: 0% 1px, 100% 1px;
  background-position: 100% 100%, 0 100%;
  transition: background-size var(--dur-m) var(--ease-out);
}
.who__body a,
.result__label a,
.results2__list a,
.ds-copy a:not(.button),
:is(.ds-shot, .ds-film) figcaption a,
.nu-pair__credit a { --link-rest: color-mix(in srgb, currentColor 30%, transparent); }
.footer__col a:hover,
.who__body a:hover,
.result__label a:hover,
.results2__list a:hover,
.ds-copy a:not(.button):hover,
:is(.ds-shot, .ds-film) figcaption a:hover,
.nu-pair__credit a:hover,
.article:hover .article__line {
  background-size: 100% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
}

/* ===============================================================
   BUTTON TOKENS (Breno, 2026-11-07; replaces the 2026-11-05 lift and
   shadow hover). One system for every button on every page: change a
   value here and every button follows.
     primary   · ink fill, white text   · See my work / See my journey,
                                          Substack (nav), Linkedin (footer)
     secondary · outline on the surface · Contact me, Read more on grey
     paper     · white fill, hairline   · Read more / Next case, See my org,
                                          LinkedIn (nav), Substack (footer)
   Shape: a full pill. Hover: the fill shifts one step and the green
   border beam fades in (beam.css; case-shared.js adds it to every
   button), except the home page's main action, whose beam runs all the
   time. Press: 98%. Keyboard focus: a 2px red ring. No lift, no shadow.
   Page sheets keep each button's own size; the `html` prefix lets these
   looks win over them.
   =============================================================== */
/* SECTION GAP (Breno, 2026-11-07): the one space between two sections,
   on every page. Change it here and every page follows. */
:root { --section-gap: clamp(72px, 9vw, 128px); }
/* CORNER (Breno, 2026-11-07): the one corner radius for every box (cards,
   photos, panels), on every page. Buttons and chips stay full pills. */
:root { --radius: 16px; }
/* Two more values that were repeated raw (2026-11-12), named, not changed:
   the soft grey behind a document, under a paper button's hover, a card
   button's hover; the small corner of a document or a small panel. */
:root { --surface-soft: #f3f2f2; --radius-sm: 12px; }
/* STAGE SPACING (2026-11-10): the distances every case stage is built on,
   in frame px (× --u). Change one here and every case follows.
     --stage-inset       a card's inset from the window's edges
     --stage-card-top    a pinned card's top, under the nav
     --stage-gap         the rhythm between two blocks (16 under one card +
                         92 over the next)
     --stage-title-top   a chapter title's top inside its card
     --stage-content-top where a chapter's content starts, under its title
     --stage-content-end the room left under a chapter's content */
:root {
  --stage-inset: 16px;
  --stage-card-top: 92px;
  --stage-gap: 108px;
  --stage-title-top: 48px;
  --stage-content-top: 150px;
  --stage-content-end: 40px;
}
:root {
  --btn-radius: 999px;
  --btn-lg-h: 52px;  --btn-lg-px: 28px; --btn-lg-fs: 17px;   /* header CTAs */
  --btn-sm-h: 40px;  --btn-sm-px: 20px; --btn-sm-fs: 15px;   /* everywhere else */
  --btn-primary-bg: #1c0303;  --btn-primary-bg-hover: #3a1e1e; --btn-primary-fg: #fff;
  --btn-paper-bg: #fff;       --btn-paper-bg-hover: var(--surface-soft);  --btn-paper-fg: #1c0303;
  --btn-secondary-bg-hover: rgba(28, 3, 3, 0.05);             --btn-secondary-fg: #1c0303;
  --btn-hairline: rgba(28, 3, 3, 0.12);
  --btn-stroke: rgba(28, 3, 3, 0.3); --btn-stroke-hover: rgba(28, 3, 3, 0.45);
  --btn-speed: 0.25s; --btn-press: 1; /* no shrink on press (Breno, 2026-11-08: buttons that open an overlay bounced); the press reads as the darker fill below */
  --btn-focus: 2px solid var(--red, #dd4f52); --btn-focus-offset: 3px;
}
/* every button: shape and behaviour */
html :is(.btn, .hbtn, .fbtn, .next-case__btn, .org-btn, .org-modal__close, .cx__cta) {
  border-radius: var(--btn-radius);
  translate: none;
  transition: background-color var(--btn-speed), box-shadow var(--btn-speed), color var(--btn-speed), scale var(--dur-xs);
}
html :is(.btn, .hbtn, .fbtn, .next-case__btn, .org-btn, .org-modal__close, .cx__cta):is(:hover, :focus-visible) { translate: none; }
html :is(.btn, .hbtn, .fbtn, .next-case__btn, .org-btn, .org-modal__close, .cx__cta):active { scale: var(--btn-press); }
html :is(.btn, .hbtn, .fbtn, .next-case__btn, .org-btn, .org-modal__close, .cx__cta):focus-visible { outline: var(--btn-focus); outline-offset: var(--btn-focus-offset); }
html :is(.btn, .hbtn, .fbtn, .next-case__btn, .org-btn, .org-modal__close, .cx__cta) :is(img, svg) { scale: none; }
/* scaled layouts that set their own corner: still a pill */
/* (the :root/body prefixes outweigh page sheets that load after this one) */
html:root.is-stage .page .fbtn, html:root.is-scenes :is(.next-case__btn, .org-btn), html body .footer--flow .fbtn { border-radius: var(--btn-radius); }
html:root:not(.is-stage) .btn { height: var(--btn-sm-h); padding: 0 var(--btn-sm-px); font-size: var(--btn-sm-fs); line-height: 1; border-radius: var(--btn-radius); }
/* sizes shared by every page (scaled with the page where it scales) */
html .btn { height: calc(var(--u, 1) * var(--btn-sm-h)); padding: 0 calc(var(--u, 1) * var(--btn-sm-px)); font-size: calc(var(--u, 1) * var(--btn-sm-fs)); line-height: 1; letter-spacing: 0; }
html .next-case__btn, html .org-btn, html:root.is-scenes :is(.next-case__btn, .org-btn) {
  display: inline-flex; align-items: center; height: calc(var(--u, 1) * var(--btn-sm-h));
  padding: 0 calc(var(--u, 1) * var(--btn-sm-px)); font-size: calc(var(--u, 1) * var(--btn-sm-fs)); line-height: 1; letter-spacing: 0;
}
html .fbtn { width: var(--btn-sm-h); height: var(--btn-sm-h); padding: 0; justify-content: center; font-size: var(--btn-sm-fs); line-height: 1; }
html:root.is-stage .page .fbtn { width: calc(var(--u) * var(--btn-sm-h)); height: calc(var(--u) * var(--btn-sm-h)); padding: 0; font-size: calc(var(--u) * var(--btn-sm-fs)); }
html .footer--flow .fbtn { width: 40px; height: 40px; padding: 0; font-size: 15px; }
/* the three looks */
html :is(.btn--dark, .hbtn--ink, .fbtn--dark) {
  background-color: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: none;
}
html :is(.btn--dark, .hbtn--ink, .fbtn--dark):is(:hover, :focus-visible) {
  background-color: var(--btn-primary-bg-hover); box-shadow: none;
}
html :is(.hbtn--line, .btn--secondary) {
  background-color: transparent; color: var(--btn-secondary-fg); box-shadow: inset 0 0 0 1px var(--btn-stroke);
}
html :is(.hbtn--line, .btn--secondary):is(:hover, :focus-visible) {
  background-color: var(--btn-secondary-bg-hover); box-shadow: inset 0 0 0 1px var(--btn-stroke-hover);
}
html :is(.btn--light:not(.btn--secondary), .fbtn--grey, .next-case__btn, .org-btn, .org-modal__close, .cx__cta) {
  background-color: var(--btn-paper-bg); color: var(--btn-paper-fg); box-shadow: inset 0 0 0 1px var(--btn-hairline);
}
html :is(.btn--light:not(.btn--secondary), .fbtn--grey, .next-case__btn, .org-btn, .org-modal__close, .cx__cta):is(:hover, :focus-visible) {
  background-color: var(--btn-paper-bg-hover); box-shadow: inset 0 0 0 1px var(--btn-stroke);
}
@media (prefers-reduced-motion: reduce) {
  html :is(.btn, .hbtn, .fbtn, .next-case__btn, .org-btn, .org-modal__close, .cx__cta) { scale: none !important; }
}

/* FOOTER SIDE: the social buttons on the right, one under another. The
   email address under them was removed: the contact form is the way to
   write (Breno, 2026-11-11) */
.footer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
html.is-stage .page .footer__side { gap: calc(var(--u) * 20px); }
@media (max-width: 767px) {
  /* phones: links on the left; on the right, the social buttons stacked */
  html .footer__row, html .footer--flow .footer__row, html:not(.is-stage) .page .footer__row {
    flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 16px;
  }
  html .footer__side { align-items: flex-end; gap: 16px; }
  html .footer__btns, html .footer--flow .footer__btns { flex-direction: column; align-items: flex-end; gap: 10px; }
}

/* TITLES (Breno, 2026-11-07): two styles for every section and card title
   on the site (heroes and case cards keep their own). One weight, GT
   America Light, tight tracking.
     .t-lg  section titles: What I'm up to, Latest articles, Where I come
            from, What people say, Beyond the day job, Let's talk
     .t-md  titles inside a box: My journey into leadership, From brand,
            to product, to code
   The large ones move as they arrive: a little bigger, settling to their
   size as they rise into view ([data-shrink], case-shared.js). */
:root {
  --title-lg: clamp(2.5rem, 1rem + 3.1vw, 3.75rem);   /* 40 → 60 (60 from about 1440 wide) */
  /* TITLE MOTION (Breno, 2026-11-08): every large title on the site arrives
     this much bigger and settles to its size over this share of the window
     as it rises (mark it data-shrink; centred titles add
     --shrink-origin: 50% 0). Change it here and every page follows. */
  --title-shrink-from: 1.3;
  --title-shrink-zone: 0.55;
}

/* MOTION (2026-11-10): one set of motion tokens for every page and case.
   Every transition on the site uses one of these curves and one of these
   steps; the scroll-linked choreography (case stages) uses the scroll
   distances. Change them here and the whole site follows.
     --ease-out        the default: things arriving, settling, fading
     --ease-out-expo   strong arrivals: titles rising, big moves, the tabs' thumb
     --ease-in-out     things that travel from A to B: wipes, sweeps, masks
     --ease-spring     a small overshoot, for playful UI on the home page only
     --dur-xs … --dur-xl   200, 300, 450, 700, 1100 ms
     --stagger         the gap between items arriving one after another
     --scroll-*        how much scrolling (in window heights) a scroll-linked
                       move takes: a mask opening, one view swapping for the
                       next, a list of items rising in */
:root {
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-xs: 0.2s;
  --dur-s: 0.3s;
  --dur-m: 0.45s;
  --dur-l: 0.7s;
  --dur-xl: 1.1s;
  --stagger: 90ms;
  --scroll-mask: 0.9;
  --scroll-swap: 0.6;
  --scroll-rise: 1;
  /* how far a piece travels as it arrives from below (frame px, × --u on
     the case stages): small for chips and lines, medium for blocks and
     list items, large for cards */
  --rise-s: 12px;
  --rise-m: 24px;
  --rise-l: 40px;
  --title-md: clamp(1.5rem, 1.1rem + 0.8vw, 2rem);    /* 24 → 32 */
}
html .t-lg {
  font-family: "GT America"; font-weight: 300; font-style: normal;
  font-size: var(--title-lg); line-height: 1.04; letter-spacing: -0.03em;
}
html .t-md {
  font-family: "GT America"; font-weight: 300; font-style: normal;
  font-size: var(--title-md); line-height: 1.15; letter-spacing: -0.02em;
}
[data-shrink] { transform-origin: var(--shrink-origin, 0 50%); }
