@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #073d70;
  --blue: #087bb9;
  --cyan: #12b9df;
  --pale: #effaff;
  --ink: #103c68;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 78% 48%, rgba(91, 207, 247, .20), transparent 38%),
    linear-gradient(180deg, #f5fcff 0%, #eaf8ff 100%);
}
.site-header {
  position: relative;
  height: clamp(150px, 15vw, 210px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3.2vw, 56px);
  border-bottom: 2px solid rgba(255,255,255,.85);
  background: #0c9fce;
}
.banner {
  position: absolute;
  inset: 0;
  background-image: url("assets/banner.jpg");
  background-size: cover;
  background-position: center 48%;
  transform: scale(1.015);
}
.brand, .language-switch { position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; max-width: 34%; }
.brand img { display: block; width: clamp(150px, 23vw, 390px); max-height: 105px; object-fit: contain; }
.language-switch {
  display: inline-flex;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 3px 14px rgba(0,54,103,.15);
}
.language-switch button {
  border: 0; border-radius: 999px; padding: 9px 17px;
  color: var(--navy); background: transparent; cursor: pointer;
  font: 700 14px Inter, sans-serif; transition: .2s ease;
}
.language-switch button.active { color: white; background: #075a9c; }
.language-switch button:focus-visible { outline: 3px solid #ffd84c; outline-offset: 2px; }
main { max-width: 1600px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 64px) 26px; }
.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 12px;
  padding: 42px 0 18px;
}
.hero-copy { position: relative; z-index: 1; padding: 12px 0 18px; }
.eyebrow {
  margin: 0 0 14px; color: #148bb9; font-size: 12px;
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
h1 {
  max-width: 720px; margin: 0; color: #073c70;
  font-size: clamp(38px, 4.5vw, 68px); line-height: 1.04;
  letter-spacing: -.045em; font-weight: 800;
}
.title-rule {
  display: block; width: 150px; height: 5px; margin: 22px 0 20px;
  border-radius: 8px; background: linear-gradient(90deg, #00a7d7, #76e4f1);
}
h2 {
  margin: 0 0 16px; color: #0873b6; font-size: clamp(23px, 2.4vw, 36px);
  line-height: 1.2; font-weight: 600; letter-spacing: -.025em;
}
.intro { margin: 0 0 25px; color: #153f69; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.5; }
.construction {
  display: inline-flex; align-items: center; gap: 13px; min-height: 54px;
  padding: 8px 17px; border-radius: 999px; color: white;
  background: linear-gradient(100deg, #24a83a, #168d37);
  box-shadow: 0 8px 18px rgba(23,139,55,.16);
  font-weight: 800; font-size: clamp(16px, 1.45vw, 21px);
}
.helmet { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 20px; }
.hazard { width: 56px; height: 35px; margin-left: 5px; background: repeating-linear-gradient(120deg, #ffdf27 0 9px, transparent 9px 18px); }
.hero-art { min-width: 0; margin: -4px -28px 0 -18px; }
.hero-art img {
  display: block; width: 100%; height: clamp(330px, 36vw, 510px);
  object-fit: cover; object-position: center; border-radius: 20px;
  filter: drop-shadow(0 15px 24px rgba(0,82,143,.12));
  -webkit-mask-image: radial-gradient(ellipse at center, #000 63%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 63%, transparent 100%);
}
.skills {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(36,154,213,.24);
  border-bottom: 1px solid rgba(36,154,213,.24);
  padding: 20px 0;
}
.skill { text-align: center; padding: 5px 13px; border-right: 1px solid rgba(20,147,207,.48); }
.skill:last-child { border-right: 0; }
.skill-icon { display: flex; align-items: center; justify-content: center; min-height: 42px; color: #0877bf; font-size: 35px; line-height: 1.1; font-weight: 600; }
.skill-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.skill-icon svg rect { fill: none; }
.skill-icon svg path { fill: none; }
.code-icon { font-size: 30px; }
.skill h3 { margin: 7px 0 5px; color: #0a3d70; font-size: clamp(12px, 1.05vw, 15px); line-height: 1.25; }
.skill p { margin: 0; color: #17466f; font-size: clamp(10px, .88vw, 13px); line-height: 1.45; }
.tagline {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 24px 0 4px; color: #07599b; text-align: center;
}
.tagline::before, .tagline::after { content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, transparent, #0aa8d7); }
.tagline::after { background: linear-gradient(90deg, #0aa8d7, transparent); }
.tagline p { margin: 0; font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; font-style: italic; }
.chip { font-size: 28px; color: #0877bf; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 410px; }
  .hero-art { margin-right: -20px; }
  .skills { grid-template-columns: repeat(3, 1fr); row-gap: 15px; }
  .skill:nth-child(3) { border-right: 0; }
  .skill:nth-child(4) { border-right: 1px solid rgba(20,147,207,.48); }
  .skill:nth-child(6) { border-right: 0; }
}
@media (max-width: 640px) {
  .site-header { height: 112px; padding: 0 16px; }
  .brand { max-width: 62%; }
  .brand img { width: min(58vw, 230px); max-height: 65px; }
  .language-switch button { padding: 7px 11px; font-size: 12px; }
  main { padding: 0 18px 22px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 34px 0 8px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: clamp(36px, 10vw, 50px); }
  h2 { font-size: 24px; }
  .intro { font-size: 15px; }
  .desktop-only { display: none; }
  .construction { min-height: 48px; font-size: 16px; }
  .hero-art { margin: 4px -12px 0; }
  .hero-art img { height: 280px; border-radius: 12px; }
  .skills { grid-template-columns: repeat(2, 1fr); padding: 14px 0; }
  .skill { border-right: 1px solid rgba(20,147,207,.4); padding: 12px 8px; }
  .skill:nth-child(2n) { border-right: 0; }
  .skill:nth-child(3) { border-right: 1px solid rgba(20,147,207,.4); }
  .skill h3 { font-size: 13px; }
  .skill p { font-size: 11px; }
  .tagline { gap: 9px; padding-top: 20px; }
  .tagline p { font-size: 14px; }
  .tagline::before, .tagline::after { min-width: 12px; }
  .chip { font-size: 21px; }
}

.project-links {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px clamp(24px, 4vw, 64px) 0;

  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;

  border: 1px solid #127FB5;
  border-radius: 7px;
  background: #127FB5;
  color: #fff;

  font: inherit;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(18, 127, 181, .16);

  transition: background .2s, border-color .2s, box-shadow .2s;
}

.project-links a svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-links a:hover {
  background: #075a9c;
  border-color: #075a9c;
  box-shadow: 0 6px 16px rgba(7, 90, 156, .22);
}

.project-links a:focus-visible {
  outline: 3px solid #075a9c;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .project-links {
    padding: 20px 18px 0;
    gap: 12px;
  }

  .project-links a {
    padding: 11px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-links a {
    transition: none;
  }
}

nav.project-links {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;

  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px clamp(24px, 4vw, 64px) 0;
}

nav.project-links > a,
nav.project-links > a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #127FB5;
  border-radius: 7px;

  background: #127FB5;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
}

nav.project-links > a > svg {
  display: block;
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav.project-links > a > svg * {
  fill: none !important;
  stroke: currentColor !important;
}

nav.project-links > a:hover {
  background: #075a9c;
  border-color: #075a9c;
  color: #fff;
}

nav.project-links > a:focus-visible {
  outline: 3px solid #075a9c;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  nav.project-links {
    padding: 20px 18px 0;
    gap: 12px;
  }
}