:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef6f6;
  --text: #0f172a;
  --muted: #475569;
  --line: #d8e3e4;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #0891b2;
  --accent-dark: #0e7490;
  --blue: #2563eb;
  --success: #15803d;
  --warning: #a16207;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 680px;
}

.section-heading.centered {
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-description {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.94);
  border-bottom: 1px solid rgba(216, 227, 228, 0.9);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu a:not(.btn) {
  position: relative;
  padding: 8px 0;
}

.nav-menu a:not(.btn)::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  transition: width 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 3px 0;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.btn-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  color: #ffffff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-ghost {
  color: var(--primary-dark);
  background: var(--surface);
  border-color: var(--line);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 84px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 10vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 20px 0 0;
  color: var(--primary-dark);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 800;
}

.hero-text {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hero-badges span,
.chips span,
.project-tech span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  color: var(--primary-dark);
  background: #e6fffb;
  border: 1px solid #b7ece9;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header strong,
.panel-header span {
  display: block;
}

.panel-header strong {
  font-size: 1.05rem;
}

.panel-header span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.7rem;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.hero-metrics div {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.91rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
}

.text-block p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.text-block p + p {
  margin-top: 18px;
}

.experience-list {
  display: grid;
  gap: 22px;
}

.experience-card {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.experience-header h3,
.tech-group h3,
.differentials-grid h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.25;
}

.experience-header p,
.experience-card > p {
  margin: 8px 0 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--primary-dark);
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--primary);
  content: "✓";
  font-weight: 800;
}

.privacy-note {
  max-width: 900px;
  margin: -18px auto 26px;
  padding: 14px 16px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.project-card.featured {
  border-color: rgba(15, 118, 110, 0.42);
}

.project-visual {
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.project-card:nth-child(2n) .project-visual {
  background: linear-gradient(135deg, #1d4ed8, #0e7490);
}

.project-card:nth-child(3n) .project-visual {
  background: linear-gradient(135deg, #166534, #0f766e);
}

.project-icon {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  font-size: 2.4rem;
}

.project-visual-meta {
  text-align: right;
}

.project-visual-meta strong,
.project-visual-meta span {
  display: block;
}

.project-visual-meta strong {
  font-size: 0.86rem;
  text-transform: uppercase;
}

.project-visual-meta span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.project-category,
.project-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-category {
  color: #ffffff;
  background: var(--accent-dark);
}

.project-status {
  color: var(--primary-dark);
  background: #ccfbf1;
}

.project-body h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.project-body p {
  color: var(--muted);
}

.project-description {
  margin: 12px 0 0;
}

.project-detail {
  margin: 14px 0 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-detail strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.project-detail p {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.project-tech span {
  color: var(--muted);
  background: #f1f5f9;
  border-color: #e2e8f0;
  font-size: 0.78rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.project-links a,
.project-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 800;
}

.project-links a {
  color: #ffffff;
  background: var(--primary);
}

.project-links span {
  color: var(--muted);
  background: #f1f5f9;
}

.tech-grid,
.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tech-group,
.differentials-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.differentials-grid span {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: #ffffff;
  background: var(--primary);
  border-radius: var(--radius);
  font-weight: 800;
}

.differentials-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-section {
  color: #ffffff;
  background: #0f172a;
}

.contact-section .eyebrow {
  color: #67e8f9;
}

.contact-section .section-description {
  color: #cbd5e1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: 56px;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.contact-card a {
  display: block;
  padding: 16px;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: background 180ms ease, transform 180ms ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.contact-card span {
  display: block;
  margin-bottom: 4px;
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-footer {
  padding: 24px 0;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  color: var(--primary-dark);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--primary);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--primary-dark);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 76px 0;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 76px);
    padding: 20px 16px 28px;
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a:not(.btn) {
    padding: 12px;
    border-radius: var(--radius);
  }

  .nav-menu a:not(.btn):hover,
  .nav-menu a:not(.btn):focus-visible {
    background: #f1f5f9;
  }

  .nav-menu a:not(.btn)::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .projects-grid,
  .tech-grid,
  .differentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    padding: 62px 0 52px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .projects-grid,
  .tech-grid,
  .differentials-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .experience-card,
  .project-body,
  .tech-group,
  .differentials-grid article,
  .contact-card {
    padding: 20px;
  }

  .experience-header {
    flex-direction: column;
  }

  .badge {
    white-space: normal;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .project-visual {
    min-height: 132px;
    padding: 20px;
  }

  .project-icon {
    width: 62px;
    height: 62px;
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
