:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #53605b;
  --paper: #fbfaf7;
  --line: #d8ddd5;
  --teal: #0a6b68;
  --teal-dark: #074946;
  --amber: #c6822d;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(23, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(9, 20, 18, 0.72), rgba(9, 20, 18, 0));
}

.static-header {
  position: sticky;
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
  opacity: 0.88;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 72px) 84px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 18, 17, 0.86) 0%, rgba(4, 18, 17, 0.62) 42%, rgba(4, 18, 17, 0.08) 74%),
    linear-gradient(0deg, rgba(251, 250, 247, 1) 0%, rgba(251, 250, 247, 0) 20%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--amber);
  color: #16120b;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button.dark {
  background: var(--teal-dark);
  color: var(--white);
}

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

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.project-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.product-strip article,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-strip p,
.product-card p,
.products-hero p {
  margin: 0;
  color: var(--muted);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.product-actions a:not(.button) {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--teal-dark);
  background: #f4f8f6;
  font-weight: 800;
  text-decoration: none;
}

.products-link {
  margin-top: 16px;
}

.products-page {
  padding-top: 34px;
}

.products-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0 26px;
}

.products-hero h1 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.products-hero p {
  max-width: 760px;
  margin-top: 24px;
  font-size: 1.14rem;
}

.products-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 28px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.product-card h2 {
  margin-bottom: 18px;
}

.light-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.project-panel p,
.skill-card p,
.certificate-copy p,
.contact-section p {
  margin: 0;
  color: var(--muted);
}

.skills-section {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  background: #eef3ef;
}

.skills-section .section-heading,
.skills-grid {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

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

.skill-card {
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
}

.certificate-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.certificate-preview {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.certificate-preview a,
.certificate-preview img {
  display: block;
}

.certificate-preview img {
  width: 100%;
  height: auto;
}

.certificate-copy {
  display: grid;
  gap: 22px;
}

.certificate-copy span {
  color: var(--ink);
  font-weight: 750;
}

.certificate-section .button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  gap: 32px;
  align-items: start;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.contact-link {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--white);
  text-decoration: none;
}

.contact-link span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-link strong {
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

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

  .nav {
    max-width: 230px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 18, 17, 0.9), rgba(4, 18, 17, 0.46)),
      linear-gradient(0deg, rgba(251, 250, 247, 1) 0%, rgba(251, 250, 247, 0) 20%);
  }

  .intro,
  .certificate-layout,
  .contact-section,
  .product-card {
    grid-template-columns: 1fr;
  }

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

  .project-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    gap: 12px;
  }

  .nav {
    justify-content: flex-start;
    max-width: none;
    font-size: 0.88rem;
  }

  h1 {
    font-size: 3rem;
  }

  .button,
  .hero-actions,
  .certificate-actions,
  .product-actions {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 0;
  }
}
