:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6f6f6f;
  --line: #eaeaea;
  --soft: #f7f7f7;
  --accent: #ff6b00;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234,234,234,.9);
}
.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-size: 18px; font-weight: 750; letter-spacing: -0.04em; }
.site-nav { display: flex; gap: 28px; }
.site-nav a, .quick-links a, .text-link, .site-footer a {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s ease;
}
.site-nav a:hover, .quick-links a:hover, .text-link:hover, .site-footer a:hover { color: var(--text); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { width: 20px; height: 1.5px; background: var(--text); display: block; margin: 4px 0; }

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 105px;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1, .section h2 {
  margin: 0;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero h1 { max-width: 760px; font-size: clamp(56px, 9vw, 106px); }
.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: 19px;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--text); color: #fff; }
.button-dark:hover { background: #2a2a2a; }
.button-light { background: #fff; border-color: var(--line); }
.button-light:hover { border-color: #d7d7d7; }
.quick-links { display: flex; gap: 20px; margin-top: 26px; }
.hero-note {
  align-self: end;
  padding: 18px 0 0 18px;
  border-left: 1px solid var(--line);
  display: flex;
  gap: 11px;
}
.hero-note strong { display: block; font-size: 14px; }
.hero-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.note-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #19a866; flex: 0 0 auto; box-shadow: 0 0 0 5px #19a86612; }

.section { padding-top: 115px; padding-bottom: 115px; }
.section-border { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section h2 { font-size: clamp(38px, 5vw, 62px); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.filter:hover, .filter.active { color: var(--text); border-color: #cfcfcf; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-2px); border-color: #d8d8d8; box-shadow: 0 15px 45px rgba(0,0,0,.05); }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.project-icon { font-size: 28px; line-height: 1; }
.project-status { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.project-card h3 { margin: 30px 0 4px; font-size: 23px; letter-spacing: -.04em; }
.project-tagline { margin: 0; font-size: 13px; color: var(--muted); }
.project-description { margin: 18px 0 20px; color: #4f4f4f; font-size: 14px; min-height: 66px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 9px; background: var(--soft); border-radius: 999px; color: #555; font-size: 11px; }
.project-links { display: flex; gap: 15px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-links a { font-size: 13px; font-weight: 700; }
.project-links a:hover { color: var(--accent); }

.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; }
.about-copy { max-width: 620px; }
.about-copy p { margin: 0 0 18px; font-size: 17px; color: #4f4f4f; }
.stack-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.stack-list span { border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; font-size: 12px; color: #555; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fafafa;
}
.contact-card h2 { max-width: 700px; }
.contact-card > div:first-child p:last-child { margin: 16px 0 0; max-width: 580px; color: var(--muted); }
.contact-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }

.site-footer { border-top: 1px solid var(--line); }
.footer-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 10px 14px 16px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 2px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
  .hero h1 { font-size: clamp(52px, 16vw, 78px); }
  .hero-text { font-size: 17px; }
  .hero-note { max-width: 430px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-head, .about-grid, .contact-card { grid-template-columns: 1fr; display: grid; gap: 26px; }
  .section-head { align-items: start; }
  .project-grid { grid-template-columns: 1fr; }
  .project-description { min-height: auto; }
  .contact-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
