/* murbach.me — Plano modular
   Concreto, cobalto e o azulejo tirado do M. Tokens primeiro, componentes depois. */

:root {
  color-scheme: light dark;

  --concreto: #e6e5e0;
  --superficie: #f2f1ed;
  --linha: #c9c8c1;
  --tinta: #121a26;
  --tinta-2: #4b5462;
  --tinta-3: #5e6673;
  --cobalto: #1f3f99;
  --cobalto-hover: #142c6f;
  --terra: #9c3f27;
  --duo: #c9d3ee;

  --btn-bg: #1f3f99;
  --btn-fg: #f2f1ed;

  --banda-bg: #121a26;
  --banda-fg: #e6e5e0;
  --banda-2: #9aa3b2;
  --banda-linha: #2a3444;

  --contato-bg: #1f3f99;
  --contato-fg: #f2f1ed;
  --contato-2: #dce3f5;
  --contato-linha: #5a72b8;

  --rodape-bg: #121a26;
  --rodape-fg: #e6e5e0;
  --rodape-2: #9aa3b2;

  --tile-bg: #f2f1ed;
  --tile-leg: #1f3f99;
  --tile-ramp: #c4583b;
  --tile-chamfer: #d8962f;
  --tile-grout: #cfcec7;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 96px);
  --maxw: 1248px;
  --col-gap: clamp(16px, 2vw, 24px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --concreto: #10151d;
    --superficie: #161c26;
    --linha: #28303c;
    --tinta: #e8e7e2;
    --tinta-2: #a8b0bc;
    --tinta-3: #9aa3b0;
    --cobalto: #8fa6ee;
    --cobalto-hover: #b5c4f5;
    --terra: #e0866a;
    --duo: #aec0e8;

    --btn-bg: #3e5fd0;
    --btn-fg: #f4f6fc;

    --banda-bg: #0a0e14;
    --banda-fg: #e8e7e2;
    --banda-2: #98a2b0;
    --banda-linha: #212a38;

    --contato-bg: #16296b;
    --contato-fg: #edf0f8;
    --contato-2: #c3cfef;
    --contato-linha: #4359a8;

    --rodape-bg: #0a0e14;
    --rodape-fg: #e2e1dc;
    --rodape-2: #98a2b0;

    --tile-bg: #1b2330;
    --tile-grout: #0a0e14;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--concreto);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--cobalto); }
a:hover { color: var(--cobalto-hover); }

:focus-visible {
  outline: 3px solid var(--cobalto);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- estrutura */

.wrap {
  width: min(100%, calc(var(--maxw) + 2 * var(--gutter)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--surface { background: var(--superficie); border-top: 1px solid var(--linha); }
.section--line { border-top: 1px solid var(--linha); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(28px, 4vw, 56px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--tinta);
  color: var(--concreto);
  padding: 12px 20px;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- tipografia */

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--terra);
}
.eyebrow--muted { color: var(--tinta-2); }

.h-hero, .h-section, .h-sub {
  margin: 0;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-hero { font-size: clamp(2.75rem, 6.4vw, 5.25rem); line-height: 0.96; }
.h-section { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.h-sub { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.06; letter-spacing: -0.03em; }

.h-card {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.05;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.02em;
}

.h-small {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  font-stretch: 112%;
}

.lead {
  margin: 0;
  font-size: clamp(1.3125rem, 2.1vw, 1.875rem);
  line-height: 1.25;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  color: var(--cobalto);
  max-width: 24ch;
}

.body { margin: 0; font-size: clamp(1rem, 1.2vw, 1.1875rem); line-height: 1.6; color: var(--tinta-2); max-width: 62ch; }
.body--ink { color: var(--tinta); }
.small { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--tinta-2); }
.mono-note { margin: 0; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; color: var(--tinta-3); }
.ph { color: var(--terra); }

/* ---------------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--cobalto-hover); color: var(--btn-fg); }
.btn--ghost { border-color: var(--tinta); color: var(--tinta); }
.btn--ghost:hover { background: var(--tinta); color: var(--concreto); }

.link-strong { font-weight: 600; font-size: 1.0625rem; text-decoration: none; }
.link-strong:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- cabeçalho */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--concreto);
  border-bottom: 1px solid var(--linha);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.01em;
}
.brand svg { display: block; flex: none; }
.brand span { white-space: nowrap; }

.nav-inline { display: none; }

.header-right { display: flex; align-items: center; gap: 8px; }

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--tinta-2);
  text-decoration: none;
}
.lang:hover { color: var(--tinta); }
.lang[aria-current] { color: var(--tinta); text-decoration: underline; text-underline-offset: 5px; }

.menu { position: relative; }
.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--tinta);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  box-shadow: 0 12px 32px rgba(18, 26, 38, 0.18);
}
.menu__panel a {
  padding: 12px 14px;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 500;
}
.menu__panel a:hover { background: var(--concreto); }

.header-cta { display: none; }

@media (min-width: 900px) {
  .menu { display: none; }
  .nav-inline { display: flex; align-items: center; gap: 32px; }
  .nav-inline a { padding: 8px 0; color: var(--tinta); text-decoration: none; font-size: 1rem; font-weight: 500; }
  .nav-inline a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .header-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1.5px solid var(--tinta); color: var(--tinta); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
  .header-cta:hover { background: var(--tinta); color: var(--concreto); }
}

/* ---------------------------------------------------------------- hero */

.hero { align-items: start; }
.hero__text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); }
.hero__figure { grid-column: 8 / span 5; justify-self: end; margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 482px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }

.tiles { display: block; width: 100%; height: auto; }
.tiles--mobile { display: none; }

@media (max-width: 899px) {
  .hero__text, .hero__figure { grid-column: 1 / -1; }
  .hero__figure { justify-self: stretch; max-width: none; }
  .tiles--desktop { display: none; }
  .tiles--mobile { display: block; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------- prova */

.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: var(--col-gap); row-gap: 28px; }
.proof__item { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--tinta); }
.proof__value { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof__text { font-size: 0.9375rem; line-height: 1.5; color: var(--tinta-2); }

@media (max-width: 899px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .proof { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- cases */

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head__title { display: flex; flex-direction: column; gap: 12px; }

.shot { display: block; line-height: 0; border: 1px solid var(--tinta); background: var(--banda-bg); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

.case-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px; align-items: center; margin-bottom: clamp(40px, 5vw, 56px); }
.case-feature__media { grid-column: 1 / span 7; }
.case-feature__body { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }

.case-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(40px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 56px); }
.case-card { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 899px) {
  .case-feature__media, .case-feature__body { grid-column: 1 / -1; }
  .case-pair { grid-template-columns: 1fr; }
}

.meta-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 16px; row-gap: 10px; font-size: 0.9375rem; line-height: 1.45; }
.meta-list dt { font-family: var(--mono); font-size: 0.8125rem; color: var(--tinta-3); }
.meta-list dd { margin: 0; }

/* tabela de outros cases */

.table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.table th {
  text-align: left;
  padding: 0 16px 12px 0;
  border-bottom: 1.5px solid var(--tinta);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--tinta-3);
}
.table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--linha); vertical-align: top; }
.table td:last-child, .table th:last-child { padding-right: 0; text-align: right; }
.table .t-project { font-size: 1.125rem; font-weight: 700; font-stretch: 112%; }
.table .t-domain { color: var(--tinta-2); }
.table .t-stack { font-family: var(--mono); font-size: 0.875rem; color: var(--tinta-2); }

@media (max-width: 760px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
  .table td { border: 0; padding: 0; }
  .table td:last-child { grid-row: 1 / span 4; grid-column: 2; align-self: center; }
}

/* ---------------------------------------------------------------- trajetória */

.career__intro { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 16px; align-self: start; }
.career__list { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 20px; }

.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 176px minmax(0, 1fr); column-gap: 24px; row-gap: 6px; padding: 20px 0; border-top: 1px solid var(--linha); }
.timeline li:last-child { border-bottom: 1px solid var(--linha); }
.timeline__years { font-family: var(--mono); font-size: 0.875rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; padding-top: 3px; }
.timeline__org { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; margin: 0; }
.timeline__org strong { font-size: 1.25rem; font-weight: 700; font-stretch: 112%; }
.timeline__role { font-size: 0.9375rem; color: var(--tinta-2); }
.timeline__text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--tinta-2); }

.skills { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; padding-top: 28px; border-top: 2px solid var(--tinta); }
.skills > div { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 899px) {
  .career__intro, .career__list, .skills { grid-column: 1 / -1; }
  .skills { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline__years { padding-top: 0; }
}

/* ---------------------------------------------------------------- sobre */

.about__figure { grid-column: 1 / span 4; margin: 0; aspect-ratio: 4 / 5; background: var(--duo); overflow: hidden; line-height: 0; }
.about__figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; filter: grayscale(1) contrast(1.02); mix-blend-mode: multiply; }
.about__text { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 20px; align-self: center; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); column-gap: var(--col-gap); row-gap: 36px; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 2px solid var(--tinta); }
.quote blockquote { margin: 0; font-size: clamp(1.1875rem, 1.7vw, 1.375rem); line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.quote figcaption { font-size: 0.9375rem; color: var(--tinta-2); }

@media (max-width: 899px) {
  .about__figure, .about__text { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- contato */

.contato { background: var(--contato-bg); color: var(--contato-fg); }
.contato .eyebrow { color: var(--contato-2); }
.contato__text { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 22px; }
.contato__text .body { color: var(--contato-2); }
.contato__mail {
  align-self: flex-start;
  font-size: clamp(1.375rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  font-stretch: 112%;
  color: var(--contato-fg);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  word-break: break-word;
}
.contato__links { grid-column: 9 / span 4; align-self: end; display: flex; flex-direction: column; }
.contato__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  border-top: 1px solid var(--contato-linha);
  color: var(--contato-fg);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 600;
}
.contato__links a:last-of-type { border-bottom: 1px solid var(--contato-linha); }
.contato__links a:hover { color: var(--contato-fg); text-decoration: underline; text-underline-offset: 4px; }
.contato__local { margin: 16px 0 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--contato-2); }

@media (max-width: 899px) {
  .contato__text, .contato__links { grid-column: 1 / -1; }
  .contato__links { align-self: stretch; }
}

/* ---------------------------------------------------------------- rodapé */

.site-footer { background: var(--rodape-bg); color: var(--rodape-fg); }
.site-footer__frieze { line-height: 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 32px 40px; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; color: var(--rodape-2); }
.site-footer a { color: var(--rodape-fg); }
.site-footer a:hover { color: var(--rodape-fg); text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- página de case */

.case-head__text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 22px; }
.case-head__meta { grid-column: 9 / span 4; align-self: end; margin: 0; display: flex; flex-direction: column; }
.case-head__meta > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--linha); }
.case-head__meta > div:last-child { border-bottom: 1px solid var(--linha); }
.case-head__meta dt { font-family: var(--mono); font-size: 0.8125rem; color: var(--tinta-3); }
.case-head__meta dd { margin: 0; font-size: 1.0625rem; line-height: 1.45; }

.banda { background: var(--banda-bg); color: var(--banda-fg); }
.banda__figure { margin: 0 auto; max-width: 1040px; display: flex; flex-direction: column; gap: 14px; }
.banda__figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; border: 1px solid var(--banda-linha); }
.banda figcaption { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; color: var(--banda-2); }

.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 14px; }

.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 36px; }
.decisions article { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--tinta); }

.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 20px; }
.results div { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1.5px dashed var(--terra); }
.results span:first-child { font-size: 2.25rem; line-height: 1; font-weight: 800; font-stretch: 125%; color: var(--terra); }
.results span:last-child { font-size: 0.9375rem; line-height: 1.5; color: var(--tinta-2); }

.results .results__real { border: 0; border-top: 2px solid var(--tinta); padding: 18px 0 0; }
.results .results__real span:first-child { color: var(--tinta); }
.table td:last-child a { white-space: nowrap; }
.table .t-status { font-size: 0.875rem; color: var(--tinta-2); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips span { padding: 8px 14px; border: 1.5px solid var(--tinta); font-family: var(--mono); font-size: 0.875rem; }

.case-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.case-nav a { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 4vw, 40px) var(--gutter); color: var(--tinta); text-decoration: none; }
.case-nav a:first-child { border-right: 1px solid var(--linha); }
.case-nav a:last-child { align-items: flex-end; text-align: right; }
.case-nav strong { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; font-stretch: 125%; line-height: 1.2; }
.case-nav a:hover strong { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 899px) {
  .case-head__text, .case-head__meta { grid-column: 1 / -1; }
  .decisions, .results { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- 404 */

.nf { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-block: clamp(72px, 12vw, 160px); }
