:root {
  --bg: #fbf1e4;
  --bg-soft: #fff8ee;
  --panel: #fffaf4;
  --ink: #171f1b;
  --muted: #6d746c;
  --line: rgba(23, 31, 27, 0.13);
  --green: #2f5f49;
  --green-soft: #dce8d8;
  --peach: #f3d3bf;
  --gold: #efd39b;
  --blue: #d8e8ed;
  --purple: #f1b9fb;
  --orange: #f58220;
  --purple-soft: #f7d9fc;
  --shadow: 0 24px 70px rgba(55, 43, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.88), rgba(251, 241, 228, 0.96)),
    radial-gradient(circle at 18% 10%, rgba(243, 211, 191, 0.55), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(216, 232, 237, 0.72), transparent 34%),
    var(--bg);
  line-height: 1.55;
}

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

.page {
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 20px 0;
}

.nav-shell {
  width: min(100%, 1040px);
  min-height: 58px;
  margin: 0 auto;
  padding: 7px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(23, 31, 27, 0.11);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 14px 40px rgba(55, 43, 31, 0.12);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 8px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(47, 95, 73, 0.1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  border-radius: 999px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  color: #000;
  background: linear-gradient(90deg, var(--orange) 50%, var(--purple) 50%);
  background-position: 100% 0;
  background-size: 200% 100%;
  transition: transform 0.15s ease, background-position 0.28s ease;
}

.nav-cta {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.88rem;
  box-shadow: none;
}

.button {
  min-height: 48px;
  padding: 0 21px;
  font-size: 0.94rem;
}

.nav-cta:hover,
.button:hover {
  cursor: pointer;
  transform: translateY(-1px);
  background-position: 0 0;
}

.button.primary {
  color: #000;
}

.button.secondary {
  color: #000;
}

main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 72px 24px 104px;
  display: grid;
  gap: 92px;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 38px;
}

.hero-copy {
  max-width: 780px;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.55rem, 6vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: uppercase;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.resume-groups {
  display: grid;
  gap: 20px;
}

.resume-panel {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.resume-panel h3 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
}

.resume-role {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.resume-role:first-of-type {
  padding-top: 0;
  border-top: none;
}

.resume-role h4 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.resume-role p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-section,
.services-section,
.contact-section {
  scroll-margin-top: 104px;
  display: grid;
  gap: 24px;
}

.sky-band {
  position: relative;
  display: grid;
  gap: 74px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 72px max(24px, calc((100vw - 1120px) / 2 + 24px));
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 18, 24, 0.22), rgba(16, 18, 24, 0.62)),
    url("sky.jpg") center / cover;
  box-shadow: none;
}

.sky-band .section-title h2 {
  color: #fffaf4;
}

.sky-band .section-title p {
  color: rgba(255, 250, 244, 0.82);
}

.section-title {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: uppercase;
}

.section-title p,
.company-panel p,
.service p {
  margin: 0;
  color: var(--muted);
}

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

.company-panel,
.service,
.form-panel,
.resume-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.8);
  box-shadow: 0 16px 42px rgba(55, 43, 31, 0.08);
}

.company-panel {
  min-height: 240px;
  display: grid;
  padding: 20px;
  overflow: hidden;
}

.sky-band .company-panel,
.sky-band .service {
  border: 2px solid #000;
  border-radius: 18px;
  background: #f8ead8;
  box-shadow: none;
  backdrop-filter: none;
}

.company-copy {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  justify-items: center;
  gap: 10px;
  min-height: 100%;
  text-align: center;
}

.company-copy h3,
.service h3,
.form-panel h3 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
}

.resume-role a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.resume-role a:hover {
  color: var(--ink);
}

.text-link,
.mail-link {
  width: fit-content;
  color: #000;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.service {
  min-height: 220px;
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.service p {
  align-self: start;
}

.contact-layout {
  display: flex;
  justify-content: center;
}

.form-panel {
  padding: 24px;
}

.form-panel {
  width: min(100%, 660px);
  display: grid;
  gap: 16px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(23, 31, 27, 0.16);
  border-radius: 16px;
  background: #fffdf8;
  padding: 11px 13px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(47, 95, 73, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 95, 73, 0.12);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-status {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.form-status.success {
  background: rgba(47, 95, 73, 0.12);
  border-color: rgba(47, 95, 73, 0.32);
  color: #244837;
}

.form-status.error {
  background: rgba(190, 115, 88, 0.12);
  border-color: rgba(190, 115, 88, 0.34);
  color: #803924;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  padding: 28px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 920px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .company-showcase,
  .service-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  header {
    position: static;
    padding: 12px 12px 0;
  }

  .nav-shell {
    min-height: 54px;
  }

  .brand {
    font-size: 0.88rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  main {
    padding: 42px 16px 78px;
    gap: 64px;
  }

  .hero {
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

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

  .company-panel,
  .service,
  .form-panel,
  .resume-panel {
    border-radius: 18px;
  }

  .company-showcase,
  .service-board {
    grid-template-columns: 1fr;
  }


  .sky-band {
    gap: 52px;
    padding: 48px 16px;
  }

  .company-panel,
  .service {
    min-height: auto;
  }
}
