:root {
  color: #17202a;
  background: #f7f6f1;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f6f1;
  color: #17202a;
}

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

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

p {
  color: #4f5b62;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 32, 42, 0.1);
  background: rgba(247, 246, 241, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: #4f5b62;
  font-size: 0.95rem;
}

.nav a:hover,
.contact-links a:hover,
.social-bar a:hover,
.footer-links a:hover {
  color: #0f5e72;
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 6px;
  background: #ffffff;
}

.language-switcher a {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switcher a[aria-current="page"] {
  background: #17202a;
  color: #ffffff;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.card-kicker {
  margin-bottom: 14px;
  color: #0f5e72;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.social-bar,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-bar {
  margin: 0 0 24px;
}

.social-bar a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(23, 32, 42, 0.16);
  border-radius: 6px;
  color: #4f5b62;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #17202a;
  border-radius: 6px;
  font-weight: 700;
}

.button.primary {
  background: #17202a;
  color: #ffffff;
}

.button.secondary,
.contact-links a {
  background: transparent;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(23, 32, 42, 0.15);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.08);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.hero-panel span {
  padding: 18px;
  border-left: 4px solid #0f5e72;
  background: #f7f6f1;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  border-top: 1px solid rgba(23, 32, 42, 0.1);
}

.section-body {
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-actions {
  margin-top: 24px;
}

.placeholder-note {
  max-width: 760px;
  padding: 26px;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.cards,
.journal-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card,
.journal-grid article,
.project-card {
  min-height: 250px;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.card,
.journal-grid article {
  padding: 26px;
}

.image-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 94, 114, 0.16), rgba(122, 81, 48, 0.12)),
    #f7f6f1;
  color: #17202a;
  font-weight: 800;
  text-align: center;
}

.card .image-placeholder {
  min-height: 150px;
  margin-bottom: 24px;
}

.devops-placeholder {
  background:
    linear-gradient(135deg, rgba(15, 94, 114, 0.2), rgba(23, 32, 42, 0.08)),
    #f7f6f1;
}

.renault-placeholder {
  background:
    linear-gradient(135deg, rgba(122, 81, 48, 0.2), rgba(247, 246, 241, 0.8)),
    #ffffff;
}

.peugeot-placeholder {
  background:
    linear-gradient(135deg, rgba(23, 32, 42, 0.16), rgba(15, 94, 114, 0.1)),
    #ffffff;
}

.machine-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.image-card img,
.project-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.image-card img {
  aspect-ratio: 4 / 3;
}

.image-card figcaption {
  padding: 14px 16px;
  color: #4f5b62;
  font-size: 0.92rem;
  font-weight: 700;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-link {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-link:focus-visible {
  outline: 3px solid #0f5e72;
  outline-offset: 4px;
}

.project-card .image-placeholder {
  min-height: 210px;
  border: 0;
  border-bottom: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 0;
}

.project-image {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(23, 32, 42, 0.13);
}

.project-content {
  padding: 26px;
}

.tech-list {
  margin: 18px 0 0;
  color: #0f5e72;
  font-size: 0.9rem;
  font-weight: 800;
}

.project-hero {
  padding-top: 110px;
  border-bottom: 1px solid rgba(23, 32, 42, 0.1);
}

.project-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-detail article {
  padding: 26px;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.project-detail ul {
  margin: 0;
  padding-left: 20px;
  color: #4f5b62;
}

.project-detail li {
  margin-bottom: 10px;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.timeline div {
  padding: 22px;
  border-left: 4px solid #7a5130;
  background: #ffffff;
}

.timeline span,
.journal-grid span {
  display: block;
  margin-bottom: 8px;
  color: #7a5130;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.milestone-list {
  display: grid;
  gap: 14px;
}

.milestone-list div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.milestone-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #17202a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

.milestone-list p {
  margin-bottom: 0;
}

.contact {
  border-top: 1px solid rgba(23, 32, 42, 0.1);
  text-align: left;
}

.contact p {
  max-width: 720px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(23, 32, 42, 0.1);
  color: #4f5b62;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .cards,
  .journal-grid,
  .project-grid,
  .project-detail,
  .machine-gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 28px, 1120px);
  }

  .hero-actions,
  .contact-links,
  .social-bar,
  .footer-links {
    flex-direction: column;
  }

  .button,
  .contact-links a,
  .social-bar a,
  .footer-links a {
    width: 100%;
  }
}
