/* Redesign 1.2 — legibility, heroes, proof, journal, form, casos */
.tcf-tf {
  font-optical-sizing: auto;
  --bone: #f6f1e8;
  --bone-dim: #c9c0b3; /* lighter warm grey for AA on black */
  --ink: #0a0a0a;
  --smoke: #111111;
  --rule: #2a2a2a;
  --champagne: #c4b09a;
  --champagne-dim: #8a7a68;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--bone);
}
.tcf-tf p,
.tcf-tf .act p,
.tcf-tf .section p,
.tcf-tf .prose p,
.tcf-tf .lede {
  color: var(--bone-dim);
  font-size: clamp(17px, 1.35vw, 18.5px);
  line-height: 1.7;
}
/* Nav base layout — required when page content omits shared inline styles (e.g. Waze) */
.tcf-tf .nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  font-family: var(--sans);
}
.tcf-tf .nav-static {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}
.tcf-tf .nav-brand {
  /* 1.3.3 — sans wordmark, slightly larger; !important beats page inline */
  font-family: var(--sans) !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--bone) !important;
  line-height: 1 !important;
}
@media (max-width: 720px) {
  .tcf-tf .nav-brand {
    font-size: 18px !important;
    letter-spacing: 0.16em !important;
  }
}
.tcf-tf .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.tcf-tf .nav-links a,
.tcf-tf .nav-panel a {
  transition: color 0.35s ease;
  color: var(--bone-dim);
  text-decoration: none;
}
.tcf-tf .nav-links a:hover,
.tcf-tf .nav-panel a:hover {
  color: var(--bone);
}
.tcf-tf .nav-mobile {
  display: none;
  position: relative;
  z-index: 60;
}
.tcf-tf .nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  width: 28px;
  height: 18px;
  position: relative;
  z-index: 70;
}
.tcf-tf .nav-mobile > summary::-webkit-details-marker { display: none; }
.tcf-tf .nav-mobile > summary .bar,
.tcf-tf .nav-mobile > summary .bar::before,
.tcf-tf .nav-mobile > summary .bar::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--bone);
  transition: transform 0.28s ease, top 0.28s ease, background 0.28s ease;
}
.tcf-tf .nav-mobile > summary .bar { top: 8px; }
.tcf-tf .nav-mobile > summary .bar::before { top: -7px; }
.tcf-tf .nav-mobile > summary .bar::after { top: 7px; }
.tcf-tf .nav-mobile[open] > summary .bar { background: transparent; }
.tcf-tf .nav-mobile[open] > summary .bar::before { top: 0; transform: rotate(45deg); }
.tcf-tf .nav-mobile[open] > summary .bar::after { top: 0; transform: rotate(-45deg); }
/* Default (desktop unused) panel — kept for non-mq fallback */
.tcf-tf .nav-panel {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: min(100vw - 40px, 280px);
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--rule);
  padding: 8px 20px;
  z-index: 40;
}
.tcf-tf .nav-panel li { border-top: 1px solid var(--rule); }
.tcf-tf .nav-panel li:first-child { border-top: 0; }
.tcf-tf .nav-panel a {
  display: block;
  padding: 14px 0;
  color: var(--bone);
  font-size: 12px;
}
@media (max-width: 720px) {
  .tcf-tf .nav-links--desktop { display: none !important; }
  .tcf-tf .nav-mobile { display: block; }
  /* 1.3.3 — full-screen mobile menu overlay */
  .tcf-tf .nav-mobile[open] > summary {
    position: fixed !important;
    top: 28px;
    right: clamp(20px, 4vw, 56px);
    z-index: 80;
  }
  body.admin-bar .tcf-tf .nav-mobile[open] > summary { top: 60px; }
  .tcf-tf .nav-panel {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: clamp(96px, 18vh, 140px) clamp(28px, 8vw, 56px) 48px !important;
    background: rgba(10, 10, 10, 0.98) !important;
    border: 0 !important;
    z-index: 65 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    animation: tcfNavPanelIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .tcf-tf .nav-mobile[open] .nav-panel { opacity: 1; }
  .tcf-tf .nav-panel li {
    border-top: 0 !important;
    opacity: 0;
    transform: translateY(12px);
    animation: tcfNavLinkIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .tcf-tf .nav-panel li:nth-child(1) { animation-delay: 0.06s; }
  .tcf-tf .nav-panel li:nth-child(2) { animation-delay: 0.11s; }
  .tcf-tf .nav-panel li:nth-child(3) { animation-delay: 0.16s; }
  .tcf-tf .nav-panel li:nth-child(4) { animation-delay: 0.21s; }
  .tcf-tf .nav-panel li:nth-child(5) { animation-delay: 0.26s; }
  .tcf-tf .nav-panel li:nth-child(6) { animation-delay: 0.31s; }
  .tcf-tf .nav-panel li:nth-child(7) { animation-delay: 0.36s; }
  .tcf-tf .nav-panel li:nth-child(8) { animation-delay: 0.41s; }
  .tcf-tf .nav-panel li:nth-child(9) { animation-delay: 0.46s; }
  .tcf-tf .nav-panel a {
    display: block !important;
    padding: 14px 0 !important;
    color: var(--bone) !important;
    font-family: var(--sans) !important;
    font-size: clamp(28px, 8vw, 40px) !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    line-height: 1.15 !important;
  }
  .tcf-tf .nav-panel a:hover,
  .tcf-tf .nav-panel a:focus-visible {
    color: var(--champagne) !important;
  }
}
@keyframes tcfNavPanelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tcfNavLinkIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .tcf-tf .nav-panel,
  .tcf-tf .nav-panel li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
body.tcf-nav-lock {
  overflow: hidden !important;
  touch-action: none;
}
.tcf-tf .hero .nav { position: absolute; }

/* Proof logos — larger, more legible */
.tcf-tf .marquee-item {
  opacity: 0.78;
  filter: brightness(1.12) grayscale(1);
  height: 72px;
}
.tcf-tf .marquee-item:hover {
  opacity: 1;
  filter: brightness(1.25) grayscale(0.15);
}
.tcf-tf .marquee-item img {
  height: 58px;
  max-width: 200px;
}
.tcf-tf .marquee-track { gap: 88px; }

/* About / Framework split heroes */
.tcf-tf .page-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding: clamp(100px, 16vh, 160px) clamp(20px, 4vw, 56px) clamp(56px, 8vh, 96px);
  border-bottom: 1px solid var(--rule);
}
.tcf-tf .page-hero--split .page-hero__copy h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.35vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
  max-width: 14ch;
  color: var(--bone);
}
.tcf-tf .page-hero--split .page-hero__copy .lede {
  max-width: 34em;
  margin: 0;
}
.tcf-tf .page-hero__visual {
  position: relative;
  min-height: clamp(280px, 42vh, 520px);
  border-radius: 2px;
  overflow: hidden;
  background: #0d0d0d;
}
.tcf-tf .page-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(1) contrast(1.05);
  display: block;
  min-height: inherit;
}
/* 1.2.8 — transparent cutout portrait: no box, sits on the site background */
.tcf-tf .page-hero__visual.page-hero__visual--cutout {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
  align-self: center; /* face sits level with the headline, not dropped to the rule */
}
.tcf-tf .page-hero__visual.page-hero__visual--cutout picture { display: block; }
.tcf-tf .page-hero__visual.page-hero__visual--cutout img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(82vh, 760px);
  object-fit: contain;
  object-position: 50% 100%;
  filter: none;
  margin-left: auto;
}
@media (max-width: 860px) {
  .tcf-tf .page-hero__visual.page-hero__visual--cutout { min-height: 0; margin: 0 auto -8px; width: min(100%, 520px); }
  .tcf-tf .page-hero__visual.page-hero__visual--cutout img { max-height: 62vh; }
}
.tcf-tf .page-hero__diagram {
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--rule);
  background: linear-gradient(160deg, #121212 0%, #0a0a0a 100%);
}
.tcf-tf .page-hero__diagram ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.tcf-tf .page-hero__diagram li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--bone);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}
.tcf-tf .page-hero__diagram .n {
  font-style: italic;
  color: var(--champagne);
  font-size: 0.85em;
  min-width: 2ch;
}
.tcf-tf .page-hero__pull {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(25px, 3.05vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 14ch;
  margin: 0;
}
@media (max-width: 860px) {
  .tcf-tf .page-hero--split {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .tcf-tf .page-hero__visual { min-height: 320px; order: -1; }
}

/* Credibility strip */
.tcf-cred {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
  max-width: 40em;
}
.tcf-cred li {
  list-style: none;
  color: var(--bone-dim);
  font-size: 15px;
  letter-spacing: 0.02em;
  padding-left: 0;
}
.tcf-cred li::before {
  content: "—";
  color: var(--champagne);
  margin-right: 12px;
}

/* Casos section */
.tcf-casos {
  background: var(--ink);
  border-top: 1px solid var(--rule);
  padding: clamp(72px, 12vh, 120px) clamp(20px, 4vw, 56px);
}
.tcf-casos__inner { max-width: 1100px; margin: 0 auto; }
.tcf-caso {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.tcf-caso h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 0 0 16px;
  color: var(--bone);
}
.tcf-caso p {
  margin: 0 0 1em;
  max-width: 36em;
}
.tcf-caso__moves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.tcf-caso__moves li {
  display: block;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--bone-dim);
}
.tcf-caso__moves strong {
  color: var(--champagne);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.tcf-caso > * { min-width: 0; }
@media (max-width: 800px) {
  .tcf-caso { grid-template-columns: 1fr; }
}

/* Casos move rows — scroll fade-in (1.3.2). Hidden only after html.tcf-js. */
html.tcf-js:not(.rmotion) .tcf-caso__moves > li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
html.tcf-js:not(.rmotion) .tcf-caso__moves > li.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.tcf-js .tcf-caso__moves > li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Journal / blog list
   Page HTML uses a 2-col grid on <a> with three sibling spans
   (meta | title | excerpt). Without explicit placement, auto-flow
   drops the excerpt into the narrow left column. Pin meta left,
   title+excerpt to the right column. */
.tcf-tf .journal {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tcf-tf .journal > li {
  border-bottom: 1px solid var(--rule);
}
.tcf-tf .journal > li > a,
.tcf-tf .journal a {
  display: grid;
  grid-template-columns: minmax(112px, 9.5rem) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 10px;
  padding: 32px 0;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.tcf-tf .journal-date,
.tcf-tf .journal-meta {
  grid-column: 1 !important;
  grid-row: 1 !important;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
  line-height: 1.55;
  padding-top: 6px;
  max-width: 11em;
}
.tcf-tf .journal-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--bone);
  font-weight: 400;
  margin: 0;
}
.tcf-tf .journal-excerpt {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: block;
  color: var(--bone-dim);
  font-family: var(--sans, "Outfit", "Helvetica Neue", sans-serif);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.55;
  max-width: 42em;
  margin: 0;
}
.tcf-tf .journal > li > a:hover .journal-title,
.tcf-tf .journal a:hover .journal-title { color: #fff; }
@media (max-width: 640px) {
  .tcf-tf .journal > li > a,
  .tcf-tf .journal a {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 8px;
    padding: 24px 0;
  }
  .tcf-tf .journal-date,
  .tcf-tf .journal-meta,
  .tcf-tf .journal-title,
  .tcf-tf .journal-excerpt {
    grid-column: 1 !important;
    grid-row: auto !important;
    max-width: none;
  }
  .tcf-tf .journal-date,
  .tcf-tf .journal-meta { padding-top: 0; }
}

/* Audiência form */
.tcf-audiencia {
  max-width: 640px;
  margin-top: 36px;
}
.tcf-audiencia .field { margin-bottom: 28px; }
.tcf-audiencia label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 12px;
}
.tcf-audiencia .field--problem label {
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 18px;
}
.tcf-audiencia textarea,
.tcf-audiencia input[type="text"],
.tcf-audiencia input[type="email"] {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--bone);
  font: inherit;
  padding: 14px 0;
  outline: none;
  border-radius: 0;
}
.tcf-audiencia textarea {
  min-height: 140px;
  resize: vertical;
  font-size: 18px;
  line-height: 1.5;
}
.tcf-audiencia textarea:focus,
.tcf-audiencia input:focus { border-bottom-color: var(--champagne); }
.tcf-audiencia .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.tcf-audiencia .form-msg {
  margin-top: 24px;
  padding: 18px 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--bone);
}
.tcf-audiencia .form-msg--err { color: #e8a0a0; font-size: 16px; font-family: var(--sans); }
.tcf-audiencia .fallback-mail {
  margin-top: 36px;
  font-size: 15px;
  color: var(--bone-dim);
}
.tcf-audiencia .fallback-mail a {
  color: var(--bone);
  border-bottom: 1px solid var(--champagne-dim);
}

/* FAQs PT title */
.tcf-tf .faq-list { max-width: 820px; }

/* 1.2.10 — About hero: wide 2-line H1 overlapping the portrait (portrait kept at 1.2.8 size).
   Scoped to the cutout hero only; Framework hero untouched. */
@media (min-width: 861px) {
  .tcf-tf .page-hero--split:has(.page-hero__visual--cutout) .page-hero__copy { position: relative; z-index: 2; }
  .tcf-tf .page-hero--split:has(.page-hero__visual--cutout) .page-hero__visual--cutout { position: relative; z-index: 1; }
  .tcf-tf .page-hero--split:has(.page-hero__visual--cutout) .page-hero__copy h1 {
    max-width: none;
    width: 25ch;
    text-wrap: balance;
    text-shadow: 0 0 18px rgba(10, 10, 10, 0.55);
  }
  .tcf-tf .page-hero--split:has(.page-hero__visual--cutout) .page-hero__copy .lede { max-width: 34em; }
}
@media (max-width: 860px) {
  .tcf-tf .page-hero--split:has(.page-hero__visual--cutout) .page-hero__copy h1 {
    max-width: 18ch;
    text-wrap: balance;
  }
}

/* 1.3.1 — Newsreader metrics: keep About H1 as two balanced lines on desktop */
@media (min-width: 861px) {
  .tcf-tf .page-hero--split:has(.page-hero__visual--cutout) .page-hero__copy h1 {
    width: 26ch;
    letter-spacing: -0.014em;
  }
}


/* 1.3.1 — display heading weight: Newsreader 400 (was 500; lighter match to Cormorant).
   !important beats the Tom Ford HTML-widget <style> block which also sets 500. */
.tcf-tf .hero-brand,
.tcf-tf .page-hero h1,
.tcf-tf .page-hero--split .page-hero__copy h1,
.tcf-tf .act h2,
.tcf-tf .section h2,
.tcf-movements__intro h2,
.tcf-movements__word,
.tcf-tf .journal-title {
  font-weight: 400 !important;
}
