/* Self-hosted webfonts. GENERATED by scripts/fetch-fonts.js — do not edit by hand. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-sans-400.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, U+0100-017F;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-sans-600.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, U+0100-017F;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-mono-500.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, U+0100-017F;
}


/* ==========================================================================
   Jorge Cadete — design system + components
   One stylesheet, no framework. Tokens on :root; components use the semantic
   tokens (--ink, --accent), never raw values.
   ========================================================================== */

:root {
  /* Colour: white, near-black, neutral greys and the logo red (#c60000). */
  --bg: #ffffff;
  --bg-alt: #f4f4f2;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --line: #d9d9d6;
  --line-strong: #111111;
  --accent: #c60000;
  --accent-ink: #ffffff;
  --footer-bg: #111111;
  --footer-ink: #f4f4f2;
  --footer-ink-2: #b5b5b0;
  --focus: #c60000;
  --error: #b00000;
  --ok: #1d6b2a;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

address {
  font-style: normal;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

button {
  font: inherit;
  color: inherit;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

/* ---------- utilities ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.kicker {
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: var(--space-2);
}

.skip {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  top: var(--space-2);
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--small {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
}

.link-arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.35em;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}

.logo img {
  height: 46px;
  width: auto;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.nav__link {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  border-color: var(--accent);
  color: var(--ink);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__cta {
  display: none;
}

.lang__list {
  display: flex;
  gap: 2px;
}

.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.4rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
}

.lang__item:hover {
  color: var(--accent);
}

.lang__item[aria-current="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.burger__bar {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.burger.is-open .burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open .burger__bar:nth-child(2) {
  opacity: 0;
}

.burger.is-open .burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 40;
  background: var(--bg);
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.menu__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.menu__list li + li {
  border-top: 1px solid var(--line);
}

.menu__list .nav__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  border-bottom: 0;
}

.menu__list .nav__link[aria-current="page"] {
  color: var(--accent);
}

.lang--menu .lang__list {
  gap: var(--space-2);
}

.menu__cta {
  align-self: flex-start;
}

@media (min-width: 900px) {
  .nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger,
  .menu {
    display: none !important;
  }
}

/* ---------- media ---------- */

.media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 3 / 2);
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  /* A faint drafting grid, hero only. */
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero__name {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem);
}

.hero__tagline {
  margin-top: 0.25em;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.75rem);
  font-weight: 400;
  color: var(--ink-2);
}

.hero__tagline::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 0.6em;
}

.hero__lead {
  margin-top: var(--space-3);
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero__media {
  position: relative;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--bg);
}

.hero__media figcaption {
  margin-top: 8px;
  color: var(--ink-3);
}

@media (min-width: 720px) {
  .hero__media {
    max-width: 640px;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-5);
  }

  .hero__media {
    max-width: none;
  }
}

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

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section--tight {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section__head {
  position: relative;
  margin-bottom: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-strong);
}

/* Dimension-line ticks at both ends of the rule. */
.section__head::before,
.section__head::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--line-strong);
}

.section__head::before {
  left: 0;
}

.section__head::after {
  right: 0;
}

.section__num {
  display: block;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.section__title {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 24em;
}

.section__intro {
  margin-top: var(--space-2);
  max-width: 44em;
  color: var(--ink-2);
}

.section__more {
  margin-top: var(--space-4);
}

/* ---------- page head (inner pages) ---------- */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-head__title {
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20em;
}

.page-head__lead {
  margin-top: var(--space-3);
  max-width: 38em;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  gap: var(--space-4);
}

.service-card__title {
  margin-top: var(--space-2);
  font-size: 1.25rem;
  font-weight: 600;
}

.service-card__title a {
  text-decoration: none;
}

.service-card__title a:hover {
  color: var(--accent);
}

.service-card p {
  margin-top: var(--space-1);
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.services {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

.service {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  scroll-margin-top: 90px;
}

.service__text p + p {
  margin-top: var(--space-2);
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .service--reverse .service__media {
    order: 2;
  }
}

/* ---------- principles ---------- */

.principles {
  display: grid;
  gap: var(--space-3);
  counter-reset: principle;
}

.principle {
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.principle__num {
  display: block;
  color: var(--ink-3);
  margin-bottom: var(--space-1);
}

.principle__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.principle p {
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

/* ---------- company ---------- */

.company-split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.company-split__text p {
  color: var(--ink-2);
}

.milestones {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.milestones li {
  display: flex;
  gap: var(--space-2);
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

.milestones__year {
  color: var(--accent);
  min-width: 3.5em;
}

@media (min-width: 900px) {
  .company-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .company-split--reverse .company-split__media {
    order: -1;
  }
}

.statements {
  display: grid;
  gap: var(--space-4);
}

.statement__text {
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .statements {
    grid-template-columns: repeat(3, 1fr);
  }
}

.timeline {
  display: grid;
  gap: var(--space-3);
}

.timeline__item {
  position: relative;
  padding-left: var(--space-3);
  border-left: 1px solid var(--line-strong);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.timeline__year {
  display: block;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
}

.timeline__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline__item p {
  color: var(--ink-2);
}

.timeline__outro {
  margin-top: var(--space-4);
  max-width: 44em;
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .timeline__item {
    padding-left: 0;
    padding-top: var(--space-2);
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .timeline__item::before {
    left: 0;
    top: -4px;
  }
}

.duo {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 720px) {
  .duo {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

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

.contact-split {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.contact-split > div p {
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.contact-list {
  display: grid;
}

.contact-list__row {
  display: grid;
  gap: 0.25rem;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line);
}

.contact-list__row:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--ink-3);
}

.contact-list dd small {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.contact-list__big {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-list__big:hover {
  color: var(--accent);
}

@media (min-width: 540px) {
  .contact-list__row {
    grid-template-columns: 8rem 1fr;
    gap: var(--space-2);
  }
}

.cta {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
}

.cta__title {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.cta p {
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: 1fr auto;
    gap: var(--space-5);
  }
}

.contacts-grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

.contacts-grid__form {
  scroll-margin-top: 90px;
}

@media (min-width: 1024px) {
  .contacts-grid {
    grid-template-columns: 5fr 7fr;
  }
}

/* ---------- form ---------- */

.form {
  display: grid;
  gap: var(--space-3);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 500;
}

.field__req,
.field__opt {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 0.875rem;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink-3);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.field__error {
  color: var(--error);
  font-size: 0.9375rem;
}

.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.75rem;
}

.field--check input {
  width: 22px;
  height: 22px;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
}

.field--check label {
  font-weight: 400;
}

.field--check .field__error {
  grid-column: 1 / -1;
}

.form__errors {
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--error);
  color: var(--error);
}

.form__errors-title {
  font-weight: 600;
}

.form__errors ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.form__errors a {
  color: inherit;
}

.form__status {
  padding: var(--space-3);
  border: 1px solid var(--line-strong);
  border-left-width: 6px;
}

.form__status--success {
  border-color: var(--ok);
}

.form__status--failure,
.form__status--ratelimited {
  border-color: var(--error);
}

.form__status-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.form__status a {
  font-weight: 600;
}

/* ---------- legal ---------- */

.legal__updated {
  color: var(--ink-3);
  margin-bottom: var(--space-3);
}

.legal__intro {
  color: var(--ink-2);
}

.legal__intro + .legal__intro,
.legal p + p {
  margin-top: var(--space-2);
}

.legal__section {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.legal__section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.legal__section ul {
  margin-top: var(--space-2);
  padding-left: 1.25rem;
  list-style: square;
}

.legal__section ul + p {
  margin-top: var(--space-2);
}

.legal__section li + li {
  margin-top: 0.35rem;
}

.link-list {
  display: grid;
  gap: var(--space-2);
  margin-block: var(--space-4);
}

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

.footer {
  margin-top: var(--space-4);
  background: var(--footer-bg);
  color: var(--footer-ink);
  --focus: #ffffff;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-5) var(--space-4);
}

.footer__name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.footer__tagline {
  color: var(--footer-ink-2);
  margin-top: 0.25rem;
}

.footer__since {
  color: var(--footer-ink-2);
  margin-top: var(--space-2);
}

.footer__contact p + p {
  margin-top: var(--space-2);
}

.footer__nav ul {
  display: grid;
  gap: 0.5rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--footer-ink-2);
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- print ---------- */

@media print {
  .header,
  .menu,
  .burger,
  .skip,
  .hero__actions,
  .form,
  .footer__nav {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
