:root {
  --bg: #ffffff;
  --bg-alt: #f3f3f3;
  --bg-dark: #434343;
  --fg: #1c1c1c;
  --fg-on-dark: #f3f3f3;
  --muted: #6b6b6b;
  --muted-on-dark: #b8b8b8;
  --rule: #d8d8d8;
  --magenta: #ff00ff;
  --cyan: #00ffff;
  --green: #00ff00;
  --hero-bg: #0a0a18;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("JetBrains Mono"), local("JetBrainsMono-Regular");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("JetBrains Mono Bold"), local("JetBrainsMono-Bold");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 120ms ease; }
a:hover { color: var(--magenta); }

p { margin: 0 0 1.25rem; }
strong { font-weight: 700; }
em { font-style: italic; }

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.85rem); }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
h3 { font-size: 0.95rem; }

/* ---- Tag / highlight-box heading ---- */
.tag {
  display: inline-block;
  padding: 0.4em 0.65em 0.3em;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1.15;
  vertical-align: baseline;
}
.tag .hash { font-weight: 700; margin-right: 0.45em; }
.tag-magenta { background: var(--magenta); color: #fff; }
.tag-magenta .hash { color: #1c1c1c; }
.tag-cyan    { background: var(--cyan);    color: #1c1c1c; }
.tag-cyan    .hash { color: var(--magenta); }
.tag-green   { background: var(--green);   color: #1c1c1c; }
.tag-green   .hash { color: var(--magenta); }
.tag-dark    { background: #1c1c1c;        color: #fff; }
.tag-dark    .hash { color: var(--magenta); }
.tag-light   { background: var(--bg-alt);  color: #1c1c1c; }
.tag-light   .hash { color: var(--magenta); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Header (overlays hero) ---- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 10;
  color: #fff;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 700; letter-spacing: 0.08em;
  font-size: 1rem; color: #fff;
}
.brand img { display: block; height: 32px; width: auto; }
.lang { display: inline-flex; gap: 0.75rem; align-items: center; font-size: 0.95rem; }
.lang a { text-decoration: none; padding: 0.3rem 0.55rem; color: #fff; }
.lang a[aria-current="page"] { background: var(--cyan); color: #1c1c1c; }

/* ---- Hero (full viewport) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(10,10,24,0.35), rgba(10,10,24,0.55)),
    url('img/hero.jpg') center/cover no-repeat,
    var(--hero-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}
.hero-inner { max-width: 60ch; text-align: left; }
.hero h1 { margin: 0 0 1.5rem; }
.hero-tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  margin: 0; line-height: 1.7;
  max-width: 56ch;
}
.hero-arrow {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 2rem; line-height: 1;
}
.hero-arrow:hover { color: var(--magenta); }

/* ---- Sections ---- */
section {
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}
section.intro    { background: var(--bg-alt); }
section.services { background: var(--bg-alt); padding-top: 0; }
section.people   { background: var(--bg-dark); color: var(--fg-on-dark); }
section.people a { color: var(--fg-on-dark); }
section.contact  { background: var(--bg-alt); }

section.intro .container,
section.contact .container,
section.people .intro-text { text-align: center; }

section h2 { margin: 0 0 2rem; text-align: center; }
section.intro .lead, section.contact .lead, section.people .intro-text {
  max-width: 75ch;
  margin: 0 auto;
}

/* ---- Services: stacked rows, image left + text right ---- */
.services .container { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 760px) {
  .service { grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4rem); }
}
.service > img {
  display: block;
  width: 100%; height: auto;
  max-width: 460px;
  margin: 0 auto;
}
.service-body h3 { margin-bottom: 1.25rem; }
.service-body ul {
  list-style: none;
  padding: 0; margin: 0;
}
.service-body li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.6rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.service-body li::before {
  content: "▪";
  position: absolute; left: 0; top: 0;
  color: var(--fg);
}

/* ---- People (dark) ---- */
.people .container { max-width: 980px; }
.people .intro-text { margin-bottom: 6.5rem; }
.person {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 0 0 4.5rem;
}
.person:last-child { margin-bottom: 0; }
@media (min-width: 700px) {
  .person { grid-template-columns: 180px 1fr; gap: 2rem; }
}
.person img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.person h3 { margin-bottom: 1.5rem; }
.person p { margin: 0; line-height: 1.85; }

/* ---- Contact ---- */
section.contact { padding-bottom: clamp(9rem, 16vw, 13rem); }
.contact h2 { margin-bottom: 3rem; }
.contact .lead { margin-bottom: 6.5rem; }
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; } }
.contact-grid h3 { margin-bottom: 1.5rem; }
.contact-grid p { margin: 0; line-height: 2; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-alt);
  padding: 6rem 1.5rem 7rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
}
.site-footer p { margin: 0; }

/* ---- 404 ---- */
.nf { padding: clamp(5rem, 12vw, 9rem) 1.5rem; text-align: center; }
.nf h1 { margin: 0 0 1rem; font-size: clamp(3rem, 12vw, 6.5rem); }
.nf p { color: var(--muted); margin: 0 0 2rem; }
