/* ============================================================
   NAAMA MENDES JR. — PORTFOLIO
   Editorial / minimal, results-forward
   ============================================================ */

:root {
  /* light theme — modernist Brazilian: bone paper, ink, verde as primary accent */
  --bg: #f4ede0;
  --bg-2: #ece2cc;
  --ink: #0e2a20;
  --ink-2: #2c4a3c;
  --ink-3: #6a8074;
  --rule: rgba(14, 42, 32, 0.20);
  --rule-soft: rgba(14, 42, 32, 0.09);
  --accent: #1f6b3a;       /* verde-bandeira — primary accent */
  --accent-2: #002677;     /* azul-bandeira — secondary */
  --accent-3: #d6a516;     /* amarelo — restrained, used sparingly */
  --hilite: rgba(31, 107, 58, 0.14);
  --hilite-2: rgba(0, 38, 119, 0.10);

  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);

  --reveal-y: 18px;
  --reveal-dur: 900ms;
  --reveal-ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-theme="dark"] {
  --bg: #07140f;
  --bg-2: #0e2018;
  --ink: #f2e9d2;
  --ink-2: #d6cdb6;
  --ink-3: #8ea394;
  --rule: rgba(242, 233, 210, 0.18);
  --rule-soft: rgba(242, 233, 210, 0.08);
  --accent: #5fc88a;       /* verde, lifted */
  --accent-2: #5b8aff;     /* azul */
  --accent-3: #ffd840;     /* amarelo, used sparingly */
  --hilite: rgba(95, 200, 138, 0.16);
  --hilite-2: rgba(91, 138, 255, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background 600ms ease, color 600ms ease;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
ol, ul { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

/* ============ Layout shell ============ */

.app {
  width: 100%;
  max-width: 100%;
}

section, footer {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  transition: opacity var(--reveal-dur) var(--reveal-ease),
              transform var(--reveal-dur) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-revealed="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 40px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
}

/* aurora gradient blob behind hero — subtle Brazilian color shift */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 35%, transparent), transparent 60%),
    radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--accent-3) 22%, transparent), transparent 60%),
    radial-gradient(circle at 50% 90%, color-mix(in oklab, var(--accent-2) 18%, transparent), transparent 60%);
  filter: blur(60px);
  opacity: 0.7;
  z-index: -1;
  animation: aurora 24s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-6%, 4%, 0) scale(1.08) rotate(8deg); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.04) rotate(-4deg); }
}

/* hero kinetic strip — scrolling Brazilian phrase below title */
.hero-strip {
  position: relative;
  margin: clamp(20px, 4vh, 48px) 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-strip-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: stripscroll 38s linear infinite;
}
.hero-strip-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}
.hero-strip-item .strip-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
  box-shadow: 0 0 0 6px var(--hilite);
}
.hero-strip-item:nth-child(4n+1) .strip-mark {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--hilite);
}
.hero-strip-item:nth-child(4n+2) .strip-mark {
  background: var(--accent-2);
  box-shadow: 0 0 0 6px var(--hilite-2);
}
.hero-strip-item:nth-child(4n+3) .strip-mark {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--hilite);
}
.hero-strip-item:nth-child(4n) .strip-mark {
  background: var(--accent-3);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent-3) 14%, transparent);
}
@keyframes stripscroll {
  to { transform: translateX(-50%); }
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
}
.hero-mono {
  display: inline-block;
  width: clamp(110px, 11vw, 150px);
  color: var(--ink);
  position: relative;
}
.mono-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.mono-glyph {
  font-family: var(--serif);
  font-style: italic;
  fill: currentColor;
  letter-spacing: -0.04em;
}
.mono-glyph--n {
  font-size: 64px;
  font-weight: 400;
}
.mono-glyph--m {
  font-size: 64px;
  font-weight: 400;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.2;
  paint-order: stroke;
}
.mono-glyph--jr {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--accent-2);
  text-transform: lowercase;
}
.mono-rule {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.4;
}
.mono-dot {
  fill: var(--accent);
}
.hero-mono:hover .mono-glyph--m {
  fill: var(--accent);
  stroke: var(--accent);
  transition: fill 320ms ease, stroke 320ms ease;
}
.hero-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-nav a {
  color: var(--ink-3);
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}
.hero-nav a:hover { color: var(--ink); }
.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.hero-nav a:hover::after { transform: scaleX(1); }

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.hero-meta::after {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--accent) 0 60%,
    var(--accent-3) 60% 78%,
    var(--accent-2) 78% 100%
  );
  border-radius: 2px;
  margin-left: 6px;
}
.meta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--hilite);
  animation: pulseFlag 3s ease-in-out infinite;
}
@keyframes pulseFlag {
  0%, 100% { box-shadow: 0 0 0 4px var(--hilite); }
  50%      { box-shadow: 0 0 0 9px color-mix(in oklab, var(--accent) 4%, transparent); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 11.5vw, 196px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.hero-title-line {
  display: block;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: heroLineIn 1100ms cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--htl-delay, 200ms);
}
.hero-title-line:nth-child(2) { --htl-delay: 420ms; }
.hero-title-line:nth-child(3) { --htl-delay: 600ms; }
.hero-title-line:nth-child(4) { --htl-delay: 760ms; }
@keyframes heroLineIn {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-title-line--italic {
  font-style: italic;
  color: var(--accent);
  padding-left: clamp(20px, 6vw, 90px);
  position: relative;
}
.hero-title-line--italic::after {
  content: "";
  position: absolute;
  left: clamp(20px, 6vw, 90px);
  bottom: 0.08em;
  width: 0.6em;
  height: 0.05em;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  animation: italicMark 800ms cubic-bezier(.2,.7,.2,1) 1100ms forwards;
}
@keyframes italicMark {
  to { transform: scaleX(1); }
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.hero-foot-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-foot-col .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-foot-col .val {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* ============ Section heads ============ */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 80px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
  position: relative;
}
/* Flag-stripe motif — verde-led with thin azul + amarelo */
.section-head::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--accent) 0 60%,        /* verde — primary */
    var(--accent-3) 60% 78%,    /* amarelo — minor */
    var(--accent-2) 78% 100%    /* azul — secondary */
  );
  border-radius: 2px;
}
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title-em {
  font-style: italic;
  color: var(--ink-3);
}
.section-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: end;
  padding-bottom: 6px;
}

/* ============ Work list ============ */
.work { padding-bottom: 40px; }
.work-list {
  display: flex;
  flex-direction: column;
}
.work-row {
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.work-row-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 130px 1fr 240px 32px;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: padding-left 360ms cubic-bezier(.2,.7,.2,1),
              color 200ms ease;
}
.work-row-btn::before {
  content: "";
  position: absolute;
  left: -8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 380ms cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.work-row-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hilite), transparent 70%);
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity 500ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  z-index: 0;
}
.work-row-btn > * { position: relative; z-index: 2; }
.work-row-btn:hover::before { transform: scaleY(1); }
.work-row-btn:hover::after { opacity: 1; transform: translateX(0); }
.work-row-btn:hover { padding-left: 18px; }

.wr-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.wr-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.wr-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wr-company {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background-image: linear-gradient(transparent 80%, var(--hilite) 80%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  transition: background-size 600ms cubic-bezier(.2,.7,.2,1);
  display: inline-block;
}
.work-row-btn:hover .wr-company { background-size: 100% 100%; }
.wr-role {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.wr-cat {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-align: right;
}

/* toggle plus icon */
.wr-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  align-self: center;
  justify-self: end;
  opacity: 0.55;
  transition: opacity 200ms ease, transform 380ms cubic-bezier(.2,.7,.2,1);
}
.wr-toggle-bar {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: currentColor;
  transform: translateY(-0.5px);
}
.wr-toggle-bar--v {
  inset: 0 50% 0 50%;
  width: 1px; height: auto;
  transform: translateX(-0.5px);
  transition: transform 380ms cubic-bezier(.2,.7,.2,1);
}
.work-row.is-open .wr-toggle { opacity: 1; transform: rotate(180deg); }
.work-row.is-open .wr-toggle-bar--v { transform: translateX(-0.5px) scaleY(0); }
.work-row-btn:hover .wr-toggle { opacity: 1; }

/* row body */
.work-row-body {
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 500ms cubic-bezier(.2,.7,.2,1);
}
.work-row-body[hidden] {
  display: grid;
  grid-template-rows: 0fr;
}
.wrb-inner {
  min-height: 0;
  padding: 0 0 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 1;
  transition: opacity 400ms ease 80ms;
}
.work-row-body[hidden] .wrb-inner {
  opacity: 0;
}

.wrb-headline-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 32ch;
  font-style: italic;
  color: var(--ink-2);
}

.wrb-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .wrb-grid { grid-template-columns: 1fr; gap: 28px; }
  .wrb-inner { padding-left: 0; }
  .work-row-btn { grid-template-columns: 40px 1fr 24px; }
  .wr-year, .wr-cat { display: none; }
}

.wrb-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.metric {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 20px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background 320ms ease, transform 380ms cubic-bezier(.2,.7,.2,1);
}
.metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 1px;
  background: var(--accent);
  transition: width 600ms cubic-bezier(.2,.7,.2,1);
}
.metric::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -40%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hilite), transparent 70%);
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.metric:hover { background: var(--bg); }
.metric:hover::before { width: 100%; }
.metric:hover::after { opacity: 1; }
.metric-value {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.metric-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

/* Clients metric tile */
.metric--clients {
  min-height: 130px;
  padding: 22px 20px 20px;
  gap: 10px;
}
.metric-logos {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  align-self: flex-start;
}
.logo-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-name {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.metric-clients-note {
  display: none;
}

.wrb-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.wrb-bullets li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.bullet-mark {
  font-family: var(--mono);
  color: var(--accent);
}

/* ============ About ============ */
.about { padding-bottom: 40px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  padding: 56px 0 24px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-lead p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 28ch;
  text-wrap: pretty;
}
.about-second {
  color: var(--ink-2) !important;
  font-style: italic;
}
.drop {
  font-family: var(--serif);
  float: left;
  font-size: 4.6em;
  line-height: 0.85;
  padding: 0.05em 0.08em 0 0;
  color: var(--accent);
  font-style: italic;
}

.about-aside {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}
@media (max-width: 900px) {
  .about-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
}
.aside-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 18px;
}
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.aside-list li {
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 18px;
}
.aside-list li:last-child { border-bottom: 0; }
.ed-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.ed-degree {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
}
.ed-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.ed-school {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.ed-note {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  font-style: italic;
}

/* ============ Capabilities ============ */
.caps { padding-bottom: 40px; }
.caps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 0;
}
@media (max-width: 900px) {
  .caps-list { grid-template-columns: 1fr; }
}
.caps-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: background 300ms ease;
}
.caps-item:nth-child(3n) { border-right: 0; }
.caps-item:hover { background: var(--bg-2); }
.caps-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.caps-text {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ============ Clients marquee ============ */
.clients { padding-bottom: 40px; overflow: hidden; }
.marquee {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}
.marquee-bullet {
  color: var(--accent);
  font-size: 0.5em;
  font-style: normal;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ Writing ============ */
.writing { padding-bottom: 40px; }
.posts {
  display: flex;
  flex-direction: column;
}
.post-row {
  border-bottom: 1px solid var(--rule);
}
.post-link {
  display: grid;
  grid-template-columns: 130px 1.6fr 2fr 100px;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  position: relative;
  transition: padding-left 300ms cubic-bezier(.2,.7,.2,1), color 200ms ease;
}
.post-link::before {
  content: "";
  position: absolute;
  left: -8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 380ms cubic-bezier(.2,.7,.2,1);
}
.post-link:hover::before { transform: scaleY(1); }
.post-link:hover { padding-left: 14px; }
@media (max-width: 900px) {
  .post-link { grid-template-columns: 80px 1fr; gap: 16px; }
  .post-excerpt, .post-tag { display: none; }
}
.post-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.post-day {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.post-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.post-excerpt {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  font-style: italic;
}
.post-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.post-row--ghost .post-link {
  cursor: default;
  color: var(--ink-3);
}
.post-row--ghost .post-title { color: var(--ink-3); font-style: italic; }
.post-row--ghost .post-link::before { display: none; }
.post-link--ghost:hover { padding-left: 0; }

/* ============ Footer ============ */
.foot {
  padding-top: 96px;
  padding-bottom: 28px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
}
.foot-mono {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 140px);
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.foot-mono-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 14px;
}
.foot-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.foot-headline-em {
  font-style: italic;
  color: var(--accent-2); /* azul-bandeira */
}
.foot-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 18px;
  transition: color 200ms ease, border-color 200ms ease;
}
.foot-mail:hover { color: var(--accent); border-color: var(--accent); }
.foot-phone {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.foot-meta-mid { font-style: italic; }
@media (max-width: 700px) {
  .foot-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ============ Floating contact ============ */
.float-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), background 200ms ease, color 200ms ease;
}
.float-btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
}
.float-theme {
  width: 44px; height: 44px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
}
.theme-icon { line-height: 1; }
.fc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--hilite);
}
.fc-text {
  transition: opacity 200ms ease;
  letter-spacing: 0.04em;
}

/* ============ Layout variants (Tweaks) ============ */
html[data-layout="centered"] section,
html[data-layout="centered"] footer {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
html[data-layout="wide"] section,
html[data-layout="wide"] footer { max-width: none; }

/* hide scrollbars on body in dark mode for cleanliness */
html[data-density="comfy"] section { padding-top: 8px; padding-bottom: 56px; }
html[data-density="comfy"] .work-row-btn { padding: 40px 0; }
html[data-density="comfy"] .post-link { padding: 40px 0; }
html[data-density="compact"] .work-row-btn { padding: 18px 0; }
html[data-density="compact"] .post-link { padding: 18px 0; }
html[data-density="compact"] .section-head { padding-top: 56px; }

/* serif accent toggles */
html[data-display="grotesk"] .hero-title,
html[data-display="grotesk"] .section-title,
html[data-display="grotesk"] .wr-company,
html[data-display="grotesk"] .metric-value,
html[data-display="grotesk"] .caps-text,
html[data-display="grotesk"] .post-title,
html[data-display="grotesk"] .foot-headline,
html[data-display="grotesk"] .foot-mail,
html[data-display="grotesk"] .ed-degree,
html[data-display="grotesk"] .hero-foot-col .val,
html[data-display="grotesk"] .about-lead p,
html[data-display="grotesk"] .wrb-headline-text,
html[data-display="grotesk"] .marquee-item,
html[data-display="grotesk"] .foot-mono,
html[data-display="grotesk"] .hero-mono {
  font-family: "PP Neue Montreal", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  letter-spacing: -0.03em;
}
html[data-display="grotesk"] .hero-title-line--italic,
html[data-display="grotesk"] .section-title-em,
html[data-display="grotesk"] .foot-headline-em,
html[data-display="grotesk"] .marquee-item {
  font-style: normal;
  font-weight: 500;
}
html[data-display="grotesk"] .mono-glyph--n,
html[data-display="grotesk"] .mono-glyph--m {
  font-family: "PP Neue Montreal", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
}

/* accent variants — Brazilian palette */
html[data-accent="verde"] { --accent: #1f6b3a; --hilite: rgba(31, 107, 58, 0.14); }
html[data-accent="verde"][data-theme="dark"] { --accent: #5fc88a; --hilite: rgba(95, 200, 138, 0.16); }
html[data-accent="cobalt"] { --accent: #002677; --hilite: rgba(0, 38, 119, 0.14); }
html[data-accent="cobalt"][data-theme="dark"] { --accent: #5b8aff; --hilite: rgba(91, 138, 255, 0.16); }
html[data-accent="amarelo"] { --accent: #d6a516; --hilite: rgba(214, 165, 22, 0.16); }
html[data-accent="amarelo"][data-theme="dark"] { --accent: #ffd840; --hilite: rgba(255, 216, 64, 0.18); }
html[data-accent="terracota"] { --accent: #d94a2b; --hilite: rgba(217, 74, 43, 0.14); }
html[data-accent="terracota"][data-theme="dark"] { --accent: #ff7a52; --hilite: rgba(255, 122, 82, 0.16); }
html[data-accent="rosa"] { --accent: #c83e6a; --hilite: rgba(200, 62, 106, 0.14); }
html[data-accent="rosa"][data-theme="dark"] { --accent: #ff85a8; --hilite: rgba(255, 133, 168, 0.16); }
