/* Roboto is self-hosted. Loading it from the Google Fonts CDN would transmit
   visitor IP addresses to Google, which a German court has held to breach the
   GDPR, so the woff2 files are served from this origin instead. */

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   thiagobraun.de
   Palette and mood carried forward from the existing site.
   ========================================================================== */

:root {
  --navy-900: #0b1924;
  --navy-850: #0e1a25;
  --navy-800: #101d27;
  --slate-700: #294751;
  --steel: #49738b;
  --steel-lift: #6f9ab2;
  --paper: #f3f7f9;
  --paper-70: rgba(243, 247, 249, 0.72);
  --paper-45: rgba(243, 247, 249, 0.48);
  --hairline: rgba(243, 247, 249, 0.13);

  --font-sans: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 2.05rem);
  --step-3: clamp(2rem, 1.68rem + 1.6vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1220px;
  --section-y: clamp(4rem, 9vw, 8rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.017em;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--steel-lift); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--steel-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--navy-900);
  padding: 0.7em 1.1em;
  z-index: 100;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------- header / nav  */

.site-head {
  position: relative;
  z-index: 20;
  padding-block: clamp(1.1rem, 2.4vw, 1.9rem);
}

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

.wordmark {
  font-size: clamp(1.15rem, 0.98rem + 0.7vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.2vw, 2.1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  color: var(--paper-70);
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.nav__link:hover { color: var(--paper); }
.nav__link[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--steel);
}

.nav__lang {
  margin-left: clamp(1rem, 2.2vw, 2.1rem);
  padding-left: clamp(1rem, 2.2vw, 2.1rem);
  border-left: 1px solid var(--hairline);
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-head__inner { align-items: flex-start; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--hairline);
    color: var(--paper);
    font: inherit;
    font-size: var(--step--1);
    padding: 0.5em 0.9em;
    cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute;
    inset-inline: var(--gutter);
    top: 100%;
    background: var(--navy-800);
    border: 1px solid var(--hairline);
    padding: 1.25rem;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; gap: 0.2rem; }
  .nav__link { display: block; padding-block: 0.6rem; font-size: var(--step-0); }
  .nav__lang {
    margin: 0.6rem 0 0;
    padding: 0.6rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--hairline);
    flex-direction: row;
    gap: 1.4rem;
  }
}

/* ------------------------------------------------------------------ hero  */

.hero {
  position: relative;
  margin-top: calc(-1 * clamp(4.4rem, 9vw, 6.4rem));
  padding-top: clamp(4.4rem, 9vw, 6.4rem);
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* The diagonal cut is the one carried-over signature of the design. */
.hero__media {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: 0;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 34%;
  filter: saturate(0.82) contrast(1.02);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--navy-900) 4%, rgba(11, 25, 36, 0.86) 26%, rgba(11, 25, 36, 0.34) 62%, rgba(11, 25, 36, 0.5) 100%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__copy { max-width: 40rem; padding-block: clamp(3rem, 7vw, 6rem); }

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-lift);
  margin: 0 0 clamp(1.1rem, 2vw, 1.7rem);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 300;
  margin-bottom: clamp(1.3rem, 2.6vw, 2rem);
}
.hero h1 strong { font-weight: 500; }

.hero__lede {
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--paper-70);
  max-width: 34rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.hero__tags {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--paper-45);
  margin-bottom: clamp(1.8rem, 3.4vw, 2.6rem);
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__media { inset: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .hero__media img { object-position: 66% 22%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(11, 25, 36, 0.62) 0%, rgba(11, 25, 36, 0.84) 46%, var(--navy-900) 96%);
  }
  .hero__copy { padding-top: clamp(9rem, 34vw, 15rem); }
}

/* --------------------------------------------------------------- buttons  */

.btn {
  display: inline-block;
  font: inherit;
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--solid {
  background: var(--slate-700);
  color: var(--paper);
  border-color: var(--slate-700);
}
.btn--solid:hover { background: var(--steel); border-color: var(--steel); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 247, 249, 0.28);
}
.btn--ghost:hover { border-color: var(--steel-lift); color: var(--paper); }

/* -------------------------------------------------------------- sections  */

.section { padding-block: var(--section-y); }
.section--tint { background: var(--navy-800); }
.section--rule { border-top: 1px solid var(--hairline); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.4rem, 5vw, 4rem); }

.section h2 {
  font-size: var(--step-3);
  font-weight: 300;
}
.section h2 strong { font-weight: 500; }

.section__lede {
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--paper-70);
  margin-top: 1.1rem;
}

/* ----------------------------------------------------------------- stats  */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.6rem, 4vw, 3.5rem);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.stat__num {
  font-size: var(--step-3);
  font-weight: 300;
  color: var(--paper);
  display: block;
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--paper-45);
}

/* ----------------------------------------------------------------- cards  */

.grid {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  background: var(--navy-850);
  border: 1px solid var(--hairline);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: rgba(111, 154, 178, 0.5); }

.card__kicker {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-lift);
  margin-bottom: 0.9rem;
}

.card h3 {
  font-size: var(--step-2);
  font-weight: 400;
  margin-bottom: 0.9rem;
}

.card p { color: var(--paper-70); font-size: var(--step-0); }

.card__meta {
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: var(--step--1);
  color: var(--paper-45);
  line-height: 1.9;
}

.card__link {
  margin-top: 1.4rem;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--steel-lift);
  text-decoration: none;
}
.card__link::after { content: " \2192"; }
.card:hover .card__link { color: var(--paper); }

/* Whole-card link target without nesting interactive elements. */
.card--linked .card__link::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* ----------------------------------------------------------------- logos  */

.logos { text-align: center; }

.logos__label {
  font-size: var(--step--1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin: 0 auto clamp(1.8rem, 4vw, 2.8rem);
  max-width: none;
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4.5rem);
  font-size: var(--step-1);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--paper-45);
}

/* --------------------------------------------------------------- writing  */

.writing {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 880px) {
  .writing { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.post-list { list-style: none; margin: 0; padding: 0; }

.post-list li { border-top: 1px solid var(--hairline); }
.post-list li:last-child { border-bottom: 1px solid var(--hairline); }

.post-list a {
  display: block;
  padding-block: 1.15rem;
  color: var(--paper);
  text-decoration: none;
  font-size: var(--step-1);
  font-weight: 300;
  transition: color 0.18s ease;
}
.post-list a:hover { color: var(--steel-lift); }

/* --------------------------------------------------------------- article  */

.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem); }

.page-head h1 {
  font-size: var(--step-3);
  font-weight: 300;
  max-width: 24ch;
}
.page-head h1 strong { font-weight: 500; }

.breadcrumb {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--paper-45);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--paper-45); text-decoration: none; }
.breadcrumb a:hover { color: var(--paper); }

.case { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }

@media (min-width: 940px) {
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
}

.case__block { margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.case__block:last-child { margin-bottom: 0; }

.case__block h2 {
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.9rem;
}

.case__block p { color: var(--paper-70); }

.case__aside {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
  font-size: var(--step--1);
  position: sticky;
  top: 2rem;
}

.case__aside dl { margin: 0; }
.case__aside dt {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin-bottom: 0.35rem;
}
.case__aside dd {
  margin: 0 0 1.3rem;
  color: var(--paper);
  line-height: 1.6;
}
.case__aside dd:last-child { margin-bottom: 0; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--hairline);
}

.tag {
  font-size: var(--step--1);
  color: var(--paper-45);
  border: 1px solid var(--hairline);
  padding: 0.35em 0.85em;
}

/* --------------------------------------------------------------- contact  */

.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }

@media (min-width: 880px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.field { margin-bottom: 1.3rem; }

.field label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--paper);
  background: var(--navy-850);
  border: 1px solid var(--hairline);
  padding: 0.85em 1em;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus { border-color: var(--steel); outline: none; }

.field textarea { min-height: 9rem; resize: vertical; }

.field--check {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.field--check input { width: auto; margin-top: 0.35rem; }
.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--step--1);
  color: var(--paper-70);
  margin: 0;
  line-height: 1.6;
}

.form-note {
  font-size: var(--step--1);
  color: var(--paper-45);
  margin-top: 1.2rem;
}

.form-status {
  margin-top: 1.2rem;
  font-size: var(--step--1);
  padding: 0.9em 1.1em;
  border-left: 2px solid var(--steel);
  background: var(--navy-850);
}
.form-status[hidden] { display: none; }
.form-status--error { border-left-color: #c9584f; }

.contact__direct dt {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin-bottom: 0.4rem;
}
.contact__direct dd { margin: 0 0 1.6rem; font-size: var(--step-1); font-weight: 300; }

/* ---------------------------------------------------------------- footer  */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  font-size: var(--step--1);
  color: var(--paper-45);
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.4rem, 4vw, 3rem);
  align-items: baseline;
  justify-content: space-between;
}

.site-foot a { color: var(--paper-45); text-decoration: none; }
.site-foot a:hover { color: var(--paper); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------- credential list  */

.creds { list-style: none; margin: 0; padding: 0; max-width: 46rem; }

.creds li {
  border-top: 1px solid var(--hairline);
  padding-block: 1.05rem;
  display: grid;
  gap: 0.15rem 1.4rem;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: baseline;
}
.creds li:last-child { border-bottom: 1px solid var(--hairline); }

.creds .creds__year { color: var(--paper-45); font-size: var(--step--1); letter-spacing: 0.08em; }
.creds .creds__name { color: var(--paper); }
.creds .creds__org { grid-column: 2; color: var(--paper-45); font-size: var(--step--1); }

@media (max-width: 540px) {
  .creds li { grid-template-columns: minmax(0, 1fr); }
  .creds .creds__org { grid-column: 1; }
}

/* ------------------------------------------------------ project card media */

.card { padding: 0; overflow: hidden; }

.card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.88;
}

.card:hover .card__media img { transform: scale(1.035); opacity: 1; }

.card__body {
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body > p:last-of-type { margin-bottom: 0; }

/* Service cards carry no image, so they need their own top padding. */
.card:not(:has(.card__media)) .card__body { padding-top: clamp(1.6rem, 3vw, 2.4rem); }

.project-hero {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  object-position: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ------------------------------------------------------------ about intro  */

.about-intro {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 900px) {
  .about-intro { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.portrait { width: 100%; filter: saturate(0.85); }

.prose h2 {
  font-size: var(--step-2);
  font-weight: 400;
  margin: clamp(2.2rem, 4vw, 3rem) 0 1rem;
}

.case__place { font-weight: 400; color: var(--paper-45); }
