:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #ffffff;
  --ink: #101010;
  --soft-ink: #3a3a3a;
  --muted: #6a6a6a;
  --line: rgba(16, 16, 16, 0.16);
  --panel: rgba(255, 255, 255, 0.72);
  --shadow: 0 22px 60px rgba(16, 16, 16, 0.12);
  --max: 1180px;
  font-family: Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(16, 16, 16, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  color: var(--ink);
  line-height: 1.75;
  margin: 0;
}

body[data-lang="en"] {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.skip-link {
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  inset-inline-start: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 30;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  inset-inline: 0;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
nav,
.language-toggle,
.hero-actions {
  align-items: center;
  display: flex;
}

.brand {
  gap: 0.7rem;
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  background: var(--ink);
  color: var(--white);
  display: grid;
  height: 2.3rem;
  place-items: center;
  width: 2.3rem;
}

nav {
  gap: clamp(0.75rem, 2vw, 1.5rem);
  justify-content: center;
}

nav a {
  color: var(--soft-ink);
  font-size: 0.93rem;
  font-weight: 850;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.language-toggle {
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
}

.language-toggle span:last-child {
  background: var(--ink);
  color: var(--white);
  padding: 0.12rem 0.42rem;
}

body[data-lang="en"] .language-toggle span:first-child {
  background: var(--ink);
  color: var(--white);
  padding: 0.12rem 0.42rem;
}

body[data-lang="en"] .language-toggle span:last-child {
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.hero,
.section,
.truth-note,
.contact,
footer {
  margin-inline: auto;
  max-width: var(--max);
  width: min(calc(100% - 2rem), var(--max));
}

.hero {
  display: grid;
  gap: clamp(1.6rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  min-height: calc(100svh - 4rem);
  padding-block: clamp(2.5rem, 7vw, 5.8rem) 1.8rem;
}

.hero-image {
  align-self: stretch;
  border: 1px solid var(--ink);
  min-height: 24rem;
  overflow: hidden;
}

.hero-image img {
  filter: contrast(1.04);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.55rem, 5.1vw, 5rem);
  letter-spacing: 0;
  line-height: 1.03;
  margin-bottom: 1.2rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.65rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 0;
  max-width: 13ch;
}

h3 {
  font-size: 1.17rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.lead,
.body-copy,
.signal-card p,
.project-card p,
.visual-proof p,
.contact p,
footer {
  color: var(--soft-ink);
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 43rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  border: 1px solid var(--ink);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 950;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.08rem;
  text-decoration: none;
}

.button.primary,
.button.inverse {
  background: var(--ink);
  color: var(--white);
}

.button.ghost {
  background: var(--white);
  color: var(--ink);
}

.button:focus-visible,
.language-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(16, 16, 16, 0.28);
  outline-offset: 3px;
}

.truth-note {
  align-items: start;
  background: var(--white);
  border-block: 1px solid var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(7rem, auto) 1fr;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
  padding: 1.1rem 0;
}

.truth-note strong {
  font-weight: 950;
}

.truth-note p {
  margin: 0;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.3rem);
}

.profile,
.visual-proof {
  display: grid;
  gap: clamp(1.8rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.body-copy {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.section-heading {
  margin-bottom: clamp(1.8rem, 5vw, 3rem);
}

.signal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-card,
.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(16, 16, 16, 0.06);
  min-height: 17rem;
  padding: clamp(1rem, 2vw, 1.3rem);
}

.signal-card span {
  border-bottom: 1px solid var(--ink);
  display: inline-block;
  font-weight: 950;
  margin-bottom: 2.2rem;
  padding-bottom: 0.2rem;
}

.projects,
.visual-proof {
  border-top: 1px solid var(--line);
}

.project-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--white);
  min-height: 18rem;
}

.project-kicker {
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  margin-bottom: 2.4rem;
  padding: 0.2rem 0.55rem;
}

.visual-proof {
  align-items: center;
}

.visual-proof img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.contact {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 3.2rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.contact h2 {
  max-width: 16ch;
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.75);
}

.contact .button.inverse {
  border-color: var(--white);
}

footer {
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  padding: 1.2rem 0 2.3rem;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  html[dir="rtl"] nav {
    justify-content: flex-end;
  }

  .hero,
  .profile,
  .visual-proof {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 21rem;
  }

  .signal-grid,
  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: start;
  }

  nav {
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .language-toggle {
    font-size: 0.78rem;
    padding-inline: 0.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.6rem;
  }

  .hero-image {
    min-height: 16rem;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.7rem, 9vw, 2.7rem);
  }

  .truth-note {
    grid-template-columns: 1fr;
  }

  .signal-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .button,
  .contact .button {
    width: 100%;
  }

  .contact {
    align-items: stretch;
    flex-direction: column;
  }
}
