/* ==========================================================================
   Lucas Catão de Moraes — site styles
   Chiaroscuro editorial: carbon black ↔ neutral paper, Rosso used as signal.
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-on); }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--motion-fast) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Structure ---------- */

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

.section { padding-block: var(--section-y-desktop); }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.section--dark { background: var(--bg); color: var(--fg); }
.section--deep { background: var(--surface); color: var(--fg); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--hairline { border-top: 1px solid var(--border-soft); }
.section--paper.section--hairline { border-top-color: var(--line-paper); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--meta);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section--paper .eyebrow { color: var(--accent-on-paper); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

h1 { font-size: clamp(46px, 7vw, 92px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.lead {
  max-width: 54ch;
  color: var(--fg-2);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}
.section--paper .lead { color: var(--ink-soft); }

.body-copy {
  max-width: 62ch;
  color: var(--fg-2);
  font-size: var(--text-base);
}
.section--paper .body-copy { color: var(--ink-soft); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--space-8) var(--space-16);
  align-items: end;
  margin-bottom: var(--space-16);
}
.section-head__title { max-width: 16ch; }
.section-head__aside { justify-self: end; max-width: 46ch; }
.section-head h2,
.trajectory__intro h2,
.contact h2,
.dolutech h2 { margin-top: 20px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard);
}
.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand__role {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__link {
  position: relative;
  padding: 8px 0;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 7px 9px;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}
.lang-switch__btn[aria-pressed="true"] {
  background: var(--fg);
  color: var(--ink);
}
.lang-switch__btn:hover { color: var(--fg); }
.lang-switch__btn[aria-pressed="true"]:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 10px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--motion-base) var(--ease-standard),
              top var(--motion-base) var(--ease-standard);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: calc(var(--header-h) + 24px) var(--container-gutter-phone) 32px;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__link {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-menu__link > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.mobile-menu__cta { margin-top: 24px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(220, 0, 0, 0.45);
}
.btn--primary { background: var(--accent); color: var(--accent-on); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: #7a6b5f;
}
.btn--ghost:hover { border-color: var(--fg); }
.section--paper .btn--ghost { color: var(--ink); border-color: #8a8a82; }
.section--paper .btn--ghost:hover { border-color: var(--ink); }

.btn__arrow { width: 14px; height: 14px; flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}
.text-link:hover { gap: 13px; }
.section--paper .text-link { color: var(--ink); }
.text-link svg { width: 14px; height: 14px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 620px at 78% 12%, rgba(220, 0, 0, 0.12), transparent 60%),
    linear-gradient(180deg, #0b0b0b 0%, #0b0b0b 72%, #0d0b0a 100%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.72fr);
  gap: var(--space-16);
  align-items: center;
}
.hero__copy { display: grid; gap: 24px; align-content: center; }
.hero h1 {
  max-width: 13ch;
  font-weight: 700;
}
.hero h1 .hero__line { display: block; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead { max-width: 50ch; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}
.hero__fact { min-width: 108px; }
.hero__fact dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__fact dd {
  margin: 6px 0 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.portrait {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: end;
}
.portrait__frame {
  position: relative;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.portrait__frame::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 54px;
  height: 3px;
  background: var(--accent);
  z-index: 2;
}
.portrait__img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.94) contrast(1.02);
}
.portrait__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.portrait__meta b { color: var(--fg-2); font-weight: 500; }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 16px 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item::after {
  content: "◆";
  color: var(--accent);
  font-size: 6px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-16);
}
.about__statement {
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.about__statement em { font-style: normal; color: var(--accent-on-paper); }
.about__body { display: grid; gap: 18px; align-content: start; }
.about__body p { max-width: 64ch; color: var(--ink-soft); }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--space-16);
  border-top: 1px solid var(--line-paper);
}
.fact-strip__item {
  padding: 22px 22px 6px 0;
}
.fact-strip__item + .fact-strip__item { padding-left: 22px; border-left: 1px solid var(--line-paper); }
.fact-strip__label {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fact-strip__value {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.fact-strip__value > span:first-child { display: block; }
.fact-strip__value > span:not(:first-child) {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- Expertise ---------- */

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.expertise__item {
  position: relative;
  padding: 34px 40px 36px 0;
  border-bottom: 1px solid var(--border);
}
.expertise__item:nth-child(odd) { border-right: 1px solid var(--border); }
.expertise__item:nth-child(even) { padding-left: 40px; }
.expertise__index {
  display: block;
  margin-bottom: 22px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.expertise__item h3 { max-width: 18ch; }
.expertise__item p {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tag {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Timeline ---------- */

.trajectory__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: var(--space-16);
}
.trajectory__intro { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.trajectory__intro p { margin-top: 20px; color: var(--ink-muted); max-width: 34ch; }
.timeline { border-top: 1px solid var(--line-paper); }
.timeline__item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-paper);
}
.timeline__when {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.timeline__role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.timeline__org {
  margin-top: 4px;
  color: var(--accent-on-paper);
  font-size: 13px;
  font-weight: 600;
}
.timeline__desc {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 56ch;
}
.timeline__now {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--accent-on-paper);
  border-radius: 3px;
  color: var(--accent-on-paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  vertical-align: 2px;
}

/* ---------- Dolutech ---------- */

.dolutech {
  position: relative;
  overflow: hidden;
}
.dolutech::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 640px;
  background: radial-gradient(circle, rgba(220, 0, 0, 0.16), transparent 62%);
  pointer-events: none;
}
.dolutech__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: var(--space-16);
  align-items: center;
}
.dolutech__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  margin-bottom: 28px;
  background: var(--paper);
  border-radius: var(--radius-sm);
}
.dolutech__logo img { display: block; width: 188px; height: auto; }
.dolutech h2 { max-width: 14ch; }
.dolutech__lead { margin-top: 22px; }
.dolutech__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: color-mix(in oklab, var(--surface), transparent 30%);
}
.dolutech__metric {
  padding: 26px 26px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.dolutech__metric:nth-child(odd) { border-right: 1px solid var(--border-soft); }
.dolutech__metric:nth-last-child(-n + 2) { border-bottom: 0; }

.dolutech__metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dolutech__metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dolutech__products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.dolutech__actions { margin-top: 30px; }

/* ---------- Credentials ---------- */

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-16);
  border-top: 1px solid var(--line-paper);
}
.credential {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-paper);
}
.credential__year {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding-top: 3px;
}
.credential__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.credential__org { margin-top: 4px; color: var(--ink-muted); font-size: 13px; }
.credential:last-child:nth-child(odd) { grid-column: 1 / -1; }

.credentials__note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: var(--space-8);
  padding: 20px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius-sm);
}
.credentials__note svg { flex: none; width: 20px; height: 20px; color: var(--accent-on-paper); }
.credentials__note p { color: var(--ink-soft); font-size: 14px; max-width: 62ch; }

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

.stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}
.stage__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 34px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  color: var(--ink);
}
.stage__index {
  color: var(--accent-on-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.stage__card h3 { max-width: 20ch; }
.stage__card p { color: var(--ink-soft); font-size: 15px; max-width: 46ch; }
.stage__card .text-link { margin-top: auto; color: var(--ink); }

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--space-16);
  align-items: start;
}
.contact h2 { max-width: 12ch; }
.contact__lead { margin-top: 22px; }
.contact__links {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 460px;
}
.contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}
.contact__link span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact__link small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact__link strong { font-size: 15px; font-weight: 500; }
.contact__link svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: color var(--motion-fast), transform var(--motion-fast); }
.contact__link:hover { color: var(--accent-text); }
.contact__link:hover svg { color: var(--accent-text); transform: translate(2px, -2px); }

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--surface), transparent 45%);
}
.form__row { display: grid; gap: 7px; }
.form__row--split { grid-template-columns: 1fr 1fr; gap: 18px; }
.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field-label .req { color: var(--accent-text); }
.field {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #6b5d52;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--font-body);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.field::placeholder { color: #9a9287; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
textarea.field { min-height: 118px; resize: vertical; }
.field-error {
  color: #ff8a80;
  font-size: 12.5px;
  line-height: 1.4;
}
.field[aria-invalid="true"] { border-color: #ff6d60; }
.form__submit { justify-self: start; margin-top: 4px; }
.form__summary {
  padding: 14px 16px;
  border: 1px solid #ff6d60;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--danger), transparent 90%);
  color: var(--fg);
  font-size: 14px;
}
.form__summary p { margin-bottom: 8px; font-weight: 600; }
.form__summary ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }
.form__summary a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.form__summary a:hover { color: var(--accent-text); }
.form__status {
  padding: 14px 16px;
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 14px;
  background: color-mix(in oklab, var(--success), transparent 88%);
}
.form__status a { color: var(--fg); font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding-block: 56px 32px;
  color: var(--fg-2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--space-12);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__tag {
  max-width: 32ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.footer__col h4 {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  color: var(--fg-2);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--motion-fast);
}
.footer__col a:hover { color: var(--accent-text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.footer__bottom a { color: var(--fg-2); text-decoration: none; }
.footer__bottom a:hover { color: var(--accent-text); }

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-standard), transform 620ms var(--ease-standard);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js [data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .shell { padding-inline: var(--container-gutter-tablet); }
  .section { padding-block: var(--section-y-tablet); }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { justify-items: start; max-width: 460px; }
  .hero h1 { max-width: 15ch; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: var(--space-12); }
  .section-head__aside { justify-self: start; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__statement { max-width: 26ch; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-12); }
  .fact-strip__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact-strip__item:nth-child(n + 3) { border-top: 1px solid var(--line-paper); }
  .trajectory__grid { grid-template-columns: 1fr; gap: 32px; }
  .trajectory__intro { position: static; }
  .dolutech__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
  .stage { gap: 20px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .lang-switch { display: none; }
  .header-actions .lang-switch { display: none; }
  .mobile-menu .lang-switch { display: inline-flex; align-self: flex-start; margin-top: 18px; }
}

@media (max-width: 767px) {
  .expertise__grid { grid-template-columns: 1fr; border-top-color: var(--border); }
  .expertise__item { padding: 28px 0 30px; }
  .expertise__item:nth-child(odd) { border-right: 0; }
  .expertise__item:nth-child(even) { padding-left: 0; }
  .credentials__grid { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; }
  .dolutech__metrics { grid-template-columns: 1fr 1fr; }
  .contact__link strong { font-size: 14px; word-break: break-word; }
  .form { padding: 24px 20px; }
  .form__row--split { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
  .timeline__when { padding-top: 0; }
  .hero__facts { gap: 24px 32px; }
}

@media (max-width: 479px) {
  .shell { padding-inline: var(--container-gutter-phone); }
  .section { padding-block: var(--section-y-phone); }
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 52px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 52px); }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip__item { padding: 18px 0 4px; }
  .fact-strip__item + .fact-strip__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-paper); }
  .dolutech__metrics { grid-template-columns: 1fr; }
  .dolutech__metric:nth-child(odd) { border-right: 0; }
  .dolutech__metric { border-bottom: 1px solid var(--border-soft); }
  .dolutech__metric:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border-soft); }
  .dolutech__metric:last-child { border-bottom: 0; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .stage__card { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
