/* ============================================================
   Boozt · Creative Tech Studio
   ============================================================ */

/* ── Custom scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar             { width: 6px; }
::-webkit-scrollbar-track       { background: #ffffff; }
::-webkit-scrollbar-thumb       { background: #0a0a0a; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #333; }
*                               { scrollbar-width: thin; scrollbar-color: #0a0a0a #ffffff; background-repeat: no-repeat; }

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* ── Colors: surfaces ─────────────────────────────────────── */
  --black:          #0a0a0a;   /* primary text & dark sections  */
  --white:          #ffffff;
  --gray-light:     #f4f4f2;   /* services section background   */
  /* ── Colors: borders ─────────────────────────────────────── */
  --border:         #000000;   /* dividers on light backgrounds */
  --work-border:    #ffffff;   /* dividers on dark backgrounds  */
  --footer-divider: #1a1a1a;   /* subtle line inside footer     */

  /* ── Colors: footer text (white-on-black hierarchy) ─────── */
  --footer-bg:      #000000;
  --footer-text:    rgba(255, 255, 255, 0.5);   /* location / meta  */
  --footer-copy:    rgba(255, 255, 255, 0.5);   /* copyright        */
  --footer-social:  rgba(255, 255, 255, 0.45);  /* social icons     */
  --footer-email-border: rgba(255, 255, 255, 0.2);

  /* ── Colors: brand accent ─────────────────────────────────── */
  --brand:          #3cf5a0;   /* signature mint-green accent   */

  /* ── Typography ───────────────────────────────────────────── */
  --font:           'DM Sans', sans-serif;
  --nav-size:       1.5rem;    /* 24px — primary nav & ticker   */

  /* ── Layout ───────────────────────────────────────────────── */
  --header-h:       96px;
  --header-h-sm:    64px;
  --gutter:         30px;

  /* ── Animation ────────────────────────────────────────────── */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol, li             { list-style: none; padding-left: 0; margin: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }

/* ── Page transition overlay ──────────────────────────────── */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--white);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.55s var(--ease);
}

.page-overlay.is-hidden  { opacity: 0; }
.page-overlay.is-visible { opacity: 1; pointer-events: all; }

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  font-family: var(--font);
}
.skip-link:focus { top: 1rem; }

/* ── Screen-reader only ───────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Uppercase section label ──────────────────────────────── */
.label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 2rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background-color: transparent;
  transition: background-color 0.45s var(--ease);
}

/* White background once user scrolls past hero */
.site-header.header--solid {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

/* ── Logo ─────────────────────────────────────────────────── */
.site-logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.site-logo::after { display: none; }

.site-logo__mark {
  position: relative;
  display: block;
  width: 220px;
  height: 55px;
  flex-shrink: 0;
}

.site-logo__text,
.site-logo__asterisk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 0.45s var(--ease);
}

.site-logo__asterisk { z-index: 0; }
.site-logo__text     { z-index: 1; }

/* Only the text inverts to black — asterisk keeps its teal colour */
.header--solid .site-logo__text { filter: invert(1); }

/* ── Vertical word ticker ─────────────────────────────────── */
.logo-ticker {
  overflow: hidden;
  height: 26px;
  display: block;
  margin-left: -2px;
}

.logo-ticker__track {
  display: block;
  will-change: transform;
}

.logo-ticker__track span {
  display: block;
  height: var(--nav-size);
  line-height: var(--nav-size);
  font-size: var(--nav-size);
  font-weight: 400;
  white-space: nowrap;
  color: var(--white);
  transition: color 0.45s var(--ease);
}

.header--solid .logo-ticker__track span { color: var(--black); }

/* ── Primary navigation ───────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav a {
  font-size: var(--nav-size);
  font-weight: 400;
  color: var(--white);
  transition: color 0.3s var(--ease);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.site-nav a:hover        { color: var(--white); }
.site-nav a:hover::after { width: 100%; }

/* Dark nav on white header */
.header--solid .site-nav a       { color: var(--black); }
.header--solid .site-nav a:hover { color: var(--black); }

/* ── Language switcher pill ───────────────────────────────── */
.lang-switch {
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  color: var(--white) !important;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease) !important;
}

.lang-switch::after { display: none !important; }
.lang-switch:hover  { color: var(--white) !important; border-color: var(--white); }

.header--solid .lang-switch       { border-color: rgba(0, 0, 0, 0.25) !important; color: var(--black) !important; }
.header--solid .lang-switch:hover { color: var(--black) !important; border-color: var(--black); }

/* ── Hamburger: 2 lines → X ──────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--black);
  transform-origin: center;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

/* White lines over dark hero */
.site-header:not(.header--solid) .nav-toggle span { background: var(--white); }

/* White lines when mobile menu overlay is open */
.nav-toggle[aria-expanded="true"] span                 { background: var(--white) !important; }
.nav-toggle[aria-expanded="true"] span:nth-child(1)    { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2)    { transform: translateY(-4.25px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 30px;
  transition: opacity 0.5s var(--ease);
}

.hero__headline {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-left: -3px;
}
/* Floating scroll arrow — bottom right */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
  animation: hero-float 2.4s ease-in-out infinite;
}

.hero__scroll:hover { opacity: 1; }

/* Fade out hero content when next section fills the viewport */
.hero--faded .hero__inner { opacity: 0; pointer-events: none; }
.hero--faded .hero__scroll { opacity: 0 !important; pointer-events: none; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.about__inner {
  width: 100%;
  padding: 7rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  position: relative;
}

/* Divider line — full section height, extends 1px into services border */
.about__inner::after {
  content: '';
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  bottom: -1px;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}

.about__left {
  position: sticky;
  top: calc(var(--header-h-sm) + 2rem);
  padding: 0 var(--gutter);
}

.about__right { padding: 0 var(--gutter); }

.about__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
}

.about__text {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--black);
}

/* ── Shared CTA link style ────────────────────────────────── */
.services-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--black);
  border-bottom: 2px solid var(--black);
  padding-bottom: 6px;
  white-space: nowrap;
  transition: gap 0.35s var(--ease), opacity 0.35s var(--ease);
}

.services-cta__link::after {
  content: '↓';
  font-size: 1rem;
  transform: rotate(-90deg);
  transition: transform 0.35s var(--ease);
}

.services-cta__link:hover              { opacity: 0.55; gap: 0.85rem; }
.services-cta__link:hover::after       { transform: rotate(-90deg), translateX(3px); }

/* ============================================================
   FEATURED WORK
   ============================================================ */
.work {
  min-height: 100dvh;
  background: var(--black);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--work-border);
}

.work__inner   { width: 100%; padding: 7rem var(--gutter); }
.work__header  { margin-bottom: 5rem; }

.work__header .label { color: var(--white); }

.work__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}

.work__list { border-top: 1px solid var(--work-border); }

.work-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1.25fr;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--work-border);
  cursor: pointer;
  color: inherit;
  transition: padding-left 0.5s var(--ease), opacity 0.5s var(--ease);
}

.work-item:hover { padding-left: 1.5rem; opacity: 0.75; }

.work-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.work-item__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
}

.work-item__year { font-size: 0.75rem; color: var(--white); }

.work-item__title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 300;
  color: var(--white);
}

.work-item__desc {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--white);
  text-align: right;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--gray-light);
  border-top: 1px solid var(--border);
}

.services__inner { width: 100%; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none !important;
  padding: 0 !important;
}

.service-card {
  list-style: none !important;
  padding: 3rem var(--gutter);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.5s var(--ease);
}

.service-card:nth-child(4n)        { border-right: none; }
.service-card:nth-last-child(-n+4) { border-bottom: none; }
.service-card:hover                { background: var(--gray-light); }

.service-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.service-card__title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-card__text {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--black);
}

/* ============================================================
   SERVICES CTA
   ============================================================ */
.services-cta {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 5rem var(--gutter);
}

.services-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.services-cta__sub {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--black);
}

/* ============================================================
   CLIENTS — Marquee
   ============================================================ */
.clients {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6rem 0;
  overflow: hidden;
  position: relative;
}

.clients__header {
  padding: 0 var(--gutter);
  margin-bottom: 3.5rem;
}

.clients__title {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 300;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee__track {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  padding: 0 3rem;
  font-size: 100px !important;
  font-weight: 300;
  color: var(--black);
  white-space: nowrap;
  position: relative;
}

.marquee__item::after {
  content: '*';
  color: var(--brand);
  position: absolute;
  right: 0;
  font-size: 20px;
  font-weight: bolder;
  transform: translateX(50%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 6rem var(--gutter) 3rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--footer-divider);
  margin-bottom: 3rem;
}

/* Rotating badge */
.footer__badge {
  position: relative;
  flex-shrink: 0;
  height: 300px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  align-self: center;
  overflow: hidden;
  border-radius: 50%;
}

/* círculo outline que gira */
.footer__badge-ring {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  animation: badge-spin 18s linear infinite;
}

/* clips estáticos de cada metade */
.footer__badge-half {
  position: absolute;
  left: 0; width: 100%;
  overflow: hidden;
}
.footer__badge-half--top    { top: 0;    height: 50%; }
.footer__badge-half--bottom { bottom: 0; height: 50%; }

/* inner: ocupa o badge inteiro, gira para frente */
.footer__badge-inner {
  position: absolute;
  left: 0; width: 100%; height: 200%;
  transform-origin: 50% 50%;
  animation: badge-spin 18s linear infinite;
}
.footer__badge-half--top    .footer__badge-inner { top: 0; }
.footer__badge-half--bottom .footer__badge-inner { bottom: 0; }

/* 2ª cópia 180° adiantada → seamless */
.footer__badge-inner:nth-child(2) { animation-delay: -9s; }

.footer__badge-inner img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
}

/* logo central estático */
.footer__badge-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes badge-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.footer__cta {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  max-width: 40vw;
}

.footer__email-link {
  position: relative;
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 500;
  color: var(--white);
  border-bottom: 2px solid var(--footer-email-border);
  padding-bottom: 4px;
}

/* White fills the gray underline from left to right on hover,
   instead of the whole line fading in at once. */
.footer__email-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.4s var(--ease);
}

.footer__email-link:hover::after { width: 100%; }

.footer__social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  color: var(--footer-social);
  transition: color 0.3s var(--ease);
}

.footer__social-link:hover { color: var(--white); }
.footer__social-link svg   { width: 20px; height: 20px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer__logo {
  font-size: 1rem;
  font-weight: 400;
  color: var(--footer-text);
}

.footer__copy {
  font-size: 0.9375rem;
  color: var(--footer-copy);
}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.case-photo--placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(
    45deg,
    var(--gray-light),
    var(--gray-light) 14px,
    #e7e7e4 14px,
    #e7e7e4 28px
  );
}

.case-photo__label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.45);
  background: var(--white);
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
}

/* ── Case hero ────────────────────────────────────────────── */
.case-hero {
  background: var(--white);
  padding-top: var(--header-h);
}

.case-hero__media {
  position: relative;
  overflow: hidden;
}

/* 16:9 to match the source hero photos (also used by the striped
   placeholder for cases without one yet) — capped to the viewport height
   so on wide/short windows the photo (and the scroll arrow anchored to
   its bottom edge) never grows taller than the visible screen. */
.case-hero__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: calc(100vh - var(--header-h));
  object-fit: cover;
}

/* Sits over photos of unpredictable brightness — cover crops a different
   part of each photo at every viewport size, so a text-shadow alone isn't
   reliable. A solid dark disc guarantees contrast no matter what's behind it. */
.case-hero__scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-hero__inner {
  padding: 3.5rem var(--gutter) 5rem;
}

.case-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.65;
  margin-bottom: 2.5rem;
  transition: opacity 0.3s var(--ease);
}

.case-back:hover { opacity: 1; }

.case-hero__meta { margin-bottom: 0.5rem; }

.case-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 1.75rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.case-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
}

/* ── Case body ────────────────────────────────────────────── */
/* Even top/bottom padding regardless of what follows (gallery or
   straight to the CTA) — keeps this block's own rhythm consistent
   across every case page. */
.case-body {
  border-top: 1px solid var(--border);
  padding: 5rem var(--gutter);
}

.case-body__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.case-body__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.case-body__text p {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
}

/* ── Inline highlights (brand green) ──────────────────────── */
/* box-shadow (not border) draws the ring: it's paint-only and never
   adds to the inline box's height, so lines with/without a highlight
   keep identical line spacing, and both variants match in height.
   line-height/vertical-align are pinned explicitly so neither variant
   can ever nudge the surrounding text's leading. */
.hl,
.hl-outline {
  border-radius: 15px;
  padding: 0 0.25em;
  line-height: inherit;
  vertical-align: baseline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hl {
  background: var(--brand);
  font-weight: 500;
}

.hl-outline {
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* ── Case gallery ─────────────────────────────────────────── */
.case-gallery {
  padding: 0 var(--gutter) 6rem;
}

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.case-gallery__item {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── Case 404 ─────────────────────────────────────────────── */
.case-404 {
  min-height: 70dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) var(--gutter) 4rem;
}

.case-404__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  margin: 1rem 0 1.25rem;
}

.case-404__text {
  font-size: 1.0625rem;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 32rem;
}

/* ============================================================
   ABOUT — intro
   ============================================================ */
.about-intro {
  border-top: 1px solid var(--border);
  padding: calc(var(--header-h) + 5rem) var(--gutter) 5rem;
  text-align: center;
}

.about-intro__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  max-width: 64rem;
  margin: 0 auto 2rem;
}

.about-intro__text {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 48rem;
  margin: 0 auto;
}

/* ============================================================
   THE FOUNDER
   ============================================================ */
.founder {
  border-top: 1px solid var(--border);
  padding: 5rem var(--gutter);
}

.founder__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  /* stretch (not center) — both columns start flush at the row's top,
     so the gap above/below the divider line stays even; the text is
     then centered *within* its own stretched column below. */
  align-items: stretch;
}

.founder__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder__photo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--gray-light);
}

/* Capped so it doesn't blow up on very large monitors — the gray
   backdrop above is free to stay full-width around it. */
/* 4:5 matches the source photo's own ratio exactly, so cover never
   has to crop into the arms on the sides. */
.founder__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.founder__name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.founder__text {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
}

.founder__text + .founder__text { margin-top: 1.25rem; }
.founder__text em { font-style: italic; }

.founder__marquee { margin-top: 4.5rem; }
.founder__marquee .marquee__track { animation-duration: 60s; }

/* ============================================================
   OUR FRAMEWORK
   ============================================================ */
.framework {
  border-top: 1px solid var(--border);
  padding: 5rem var(--gutter) 6rem;
}

.framework__header { margin-bottom: 5rem; }

.framework__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
}

.framework__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

/* Vertically centered on the green dots: icon height + its margin + half the dot */
.framework__line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(36px + 1.5rem + 5px);
  height: 1px;
  background: var(--border);
  opacity: 0.15;
}

.framework__item { position: relative; }

/* Fixed-width column so the icon and dot share a center and sit at
   the left edge of the item, flush with the title/text below. */
.framework__marker {
  width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.framework__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  color: var(--black);
}

/* Lightbulb glyph reads visually heavier than the others at the same
   width — narrowed so it matches their weight. */
.framework__icon--idea { width: 28px; }

.framework__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
}

.framework__item-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.framework__text {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  padding: calc(var(--header-h) + 4rem) var(--gutter) 3rem;
}

.contact-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 40rem;
}

.contact-hero__reach {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 34rem;
  margin-top: 1.5rem;
  color: rgba(0, 0, 0, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.contact-item {
  padding: 3rem var(--gutter);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-right: none; }

.contact-item .label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-item__icon {
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 36px;
  color: var(--black);
}

/* These inline SVGs have no width/height attribute, only a viewBox — most
   browsers auto-size from it, but not reliably everywhere. Force it so the
   icon always fills its box instead of risking the UA default (300×150). */
.contact-item__icon svg {
  width: 100%;
  height: 100%;
}

.contact-item__value {
  display: block;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  margin-top: 0.5rem;
}

.contact-item__link {
  position: relative;
  width: fit-content;
}

.contact-item__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.contact-item__link:hover::after { width: 100%; }

/* ============================================================
   RESPONSIVE — Narrow desktop / tablet (769px–1100px)
   Below full desktop width the logo + nav no longer have room to
   breathe, so the first link ends up hugging the logo. Let the
   nav fill the remaining space and spread its links evenly instead.
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {
  .site-header nav { flex: 1 1 auto; }
  .site-nav        { width: 100%; justify-content: space-evenly; gap: 1rem; }
}

/* ============================================================
   RESPONSIVE — Mobile ≤ 768px
   ============================================================ */
@media (max-width: 768px) {

  :root { --header-h: 68px; --header-h-sm: 56px; --gutter: 1.5rem; }

  .site-header { padding: 0 var(--gutter); }

  /* Show hamburger */
  .nav-toggle { display: flex; }

  /* Full-screen mobile nav */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    z-index: 90;
  }

  .site-nav.open { transform: translateY(0); }

  .site-nav a {
    font-size: 2rem;
    font-weight: 300;
    color: var(--white) !important;
  }

  .lang-switch {
    font-size: 0.875rem !important;
    border-color: var(--white) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
  }

  .site-nav li:has(.lang-switch) { margin-top: 0.5rem; }

  .hero__inner { padding: 0 var(--gutter) 3rem; }

  .hero__scroll {
    right: auto;
    position: relative;
    left: 30px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4.5rem var(--gutter);
  }

  .about__left        { position: static; padding: 0; }
  .about__right       { padding: 0; }
  .about__inner::after{ display: none; }

  /* work: inner sem padding horizontal → lista encoста nas bordas */
  .work__inner   { padding: 4.5rem 0 0; }
  .work__header  { margin-bottom: 3rem; padding-left: var(--gutter); padding-right: var(--gutter); }

  .work-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2rem var(--gutter);
  }

  .work__list > li:last-child > .work-item { border-bottom: none; }
  .work-item__desc { text-align: left; }

  .services__inner  { width: 100%; }
  .services__grid   { grid-template-columns: 1fr; }
  .service-card                { padding: 2.5rem var(--gutter); border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .service-card:last-child     { border-bottom: none !important; }

  .clients         { padding: 4.5rem 0; }
  .clients__header { padding: 0 var(--gutter); margin-bottom: 2.5rem; }

  .services-cta        { padding: 4rem var(--gutter); }
  .services-cta__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  .site-footer { padding: 4rem var(--gutter) 4rem; }

  .footer__top    { grid-template-columns: 1fr; }
  .footer__badge  { width: 70vw; height: 70vw; margin-top: 2rem; justify-self: end; }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .hero__headline {
    margin-left: -3.5px;
  }

  .site-nav.open .lang-switch {
    color: var(--white) !important;
    border-color: var(--white) !important;
    opacity: 0.3;
    display: block;
  }

  .footer__cta {
    max-width: 100%;
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  /* Case study pages */
  /* .case-hero__media isn't a flex column like the home #hero, so it
     doesn't need (and breaks with) the relative-positioning override
     above — keep it pinned to the photo's bottom-right corner. */
  .case-hero__scroll {
    position: absolute;
    right: var(--gutter);
    left: auto;
    bottom: 1.5rem;
  }

  .case-hero__inner   { padding: 2.5rem var(--gutter) 3.5rem; }

  .case-body    { padding: 3.5rem var(--gutter); }
  .case-gallery { padding: 0 var(--gutter) 3.5rem; }

  .case-body__inner   { grid-template-columns: 1fr; gap: 1.75rem; }
  .case-gallery__grid { grid-template-columns: 1fr; margin-top: 1.75rem; }

  /* About page — intro, founder & framework */
  .about-intro { padding: calc(var(--header-h) + 2.5rem) var(--gutter) 3.5rem; text-align: left; }
  .founder      { padding: 3.5rem var(--gutter); }
  .framework    { padding: 3.5rem var(--gutter) 4rem; }

  .framework__header { margin-bottom: 3rem; }

  .founder__inner     { grid-template-columns: 1fr; gap: 2.5rem; }
  .founder__marquee   { margin-top: 3rem; }

  /* Bleed the photo edge-to-edge (no white gutter on the sides) and
     flush against the section's top border (no gap above it either) —
     mobile-only; desktop keeps the even spacing above/below the line.
     Also swaps in the tighter face-to-shoulder crop for this breakpoint. */
  .founder__photo-wrap {
    width: calc(100% + 2 * var(--gutter));
    margin-top: -3.5rem;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }

  .founder__photo {
    aspect-ratio: 16 / 9;
    max-width: none;
  }

  /* Vertical timeline: one line crossing the section, left-aligned content */
  .framework__timeline {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Grid so the icon badge sits on the same row as — and vertically
     centered with — the title; the dot continues the line down into
     the text row below. */
  .framework__item {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1.25rem;
    row-gap: 0.5rem;
  }

  /* Unwrap both wrappers so icon/dot/title/text can each be placed
     independently on the grid. */
  .framework__marker,
  .framework__content { display: contents; }

  .framework__icon {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 56px;
    height: 56px;
    padding: 10px;
    margin-bottom: 0;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--gray-light);
  }

  .framework__icon--idea { width: 50px; }

  .framework__dot {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    margin-top: 0.4rem;
    margin-bottom: 0;
  }

  .framework__item-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-bottom: 0;
  }

  .framework__text { grid-column: 2; grid-row: 2; }

  /* Aligned with the 56px icon column's horizontal center */
  .framework__line {
    left: 28px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    transform: none;
  }

  /* Contact page */
  .contact-hero       { padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2.5rem; }
  .contact-grid       { grid-template-columns: 1fr; }
  .contact-item       { border-right: none !important; }
  .contact-item:last-child { border-bottom: none; }

}

/* ============================================================
   RESPONSIVE — Small mobile ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  .service-card  { padding: 2rem var(--gutter); }
  .marquee__item { padding: 0 2rem; font-size: 1.375rem; }
  .site-nav      { gap: 1.75rem; }
  .site-nav a    { font-size: 1.625rem; }

  /* Shrink logo so the hamburger has breathing room */
  .site-logo__mark { width: 160px; height: 40px; }

  /* Larger tap target for hamburger (44 × 44 px minimum) */
  .nav-toggle {
    width: 44px;
    height: 44px;
    gap: 6px;
    flex-shrink: 0;
    transform: translateY(1.5px);
  }
}
