:root {
  --ink: #1f2522;
  --soft-ink: #58625c;
  --paper: #f7f3ec;
  --warm: #e7dac8;
  --stone: #d3d7ce;
  --moss: #395b45;
  --deep: #10251b;
  --line: rgba(31, 37, 34, 0.14);
  --white: #fffaf2;
  --max: 1180px;
}

* {
  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;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
}

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

input,
textarea,
button {
  font: 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(20px, 4vw, 54px);
  color: var(--white);
  transition:
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 243, 236, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 52px;
  height: 38px;
  flex: 0 0 auto;
  fill: none;
  stroke: #49b36a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.26));
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 0.82rem;
  color: currentColor;
}

.site-nav a {
  opacity: 0.82;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--deep);
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.01);
  filter: brightness(1.05) saturate(0.96);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 20, 16, 0.68), rgba(13, 20, 16, 0.18) 56%, rgba(13, 20, 16, 0.02)),
    linear-gradient(0deg, rgba(13, 20, 16, 0.46), rgba(13, 20, 16, 0.02) 55%);
}

.hero-content {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 170px clamp(20px, 4vw, 44px) clamp(58px, 8vw, 94px);
  color: var(--white);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark,
.section-label {
  color: var(--moss);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10.8vw, 8.8rem);
  font-weight: 400;
  line-height: 0.9;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.12;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.button-quiet {
  color: var(--white);
}

.button-dark {
  width: fit-content;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.section-pad {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 4vw, 54px);
}

.intro,
.section-heading,
.values,
.work,
.contact-card,
.mission-inner,
.text-pair {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.74fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.intro-copy {
  color: var(--soft-ink);
  font-size: 1.04rem;
}

.intro-copy p,
.text-pair p,
.section-heading p,
.contact-card p {
  margin-bottom: 0;
}

.muted-band {
  background: var(--stone);
}

.text-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.76fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
}

.text-pair p {
  color: #47524b;
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-heading p {
  color: var(--soft-ink);
}

.service-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid span {
  margin-bottom: auto;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-grid p,
.values p,
.work-card p,
.mission p,
.site-footer p {
  color: var(--soft-ink);
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.62fr);
  min-height: 680px;
  background: #eef0ea;
}

.experience-image {
  min-height: 460px;
  overflow: hidden;
}

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

.experience-panel {
  align-self: center;
  padding: clamp(44px, 6vw, 86px);
}

.sector-list {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.sector-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #46514a;
}

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

.values article {
  min-height: 250px;
  padding: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.38);
}

.work {
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.82fr);
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 372px;
  overflow: hidden;
  background: var(--deep);
}

.work-card.large {
  grid-row: span 2;
  min-height: 762px;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 700ms ease, opacity 700ms ease;
}

.work-card:hover img {
  opacity: 0.68;
  transform: scale(1.035);
}

.work-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(13, 20, 16, 0.78), rgba(13, 20, 16, 0));
}

.work-card p {
  margin-bottom: 8px;
  color: rgba(255, 250, 242, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card h3 {
  max-width: 560px;
  margin-bottom: 0;
}

.mission {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 37, 27, 0.86), rgba(16, 37, 27, 0.52)),
    url("assets/warkalab-campus-aerial.png") center / cover;
  transform: scale(1.02);
}

.mission-inner {
  position: relative;
  padding: clamp(92px, 12vw, 150px) clamp(20px, 4vw, 54px);
}

.mission h2 {
  max-width: 980px;
}

.mission p:last-child {
  max-width: 500px;
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.72);
}

.contact {
  background: var(--warm);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.94fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid rgba(31, 37, 34, 0.18);
  background: rgba(255, 250, 242, 0.42);
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-copy p {
  max-width: 510px;
  color: var(--soft-ink);
}

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

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

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

.contact-form span {
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 37, 34, 0.22);
  border-radius: 0;
  background: rgba(255, 250, 242, 0.72);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--moss);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(57, 91, 69, 0.12);
}

.contact-form .button {
  cursor: pointer;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note,
.form-status {
  margin: -8px 0 0;
  color: var(--soft-ink);
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.4em;
  font-weight: 650;
}

.form-status.is-success {
  color: #2e6e48;
}

.form-status.is-error {
  color: #8a3a2d;
}

.site-footer {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 54px);
  background: var(--ink);
  color: var(--white);
}

.footer-mark {
  width: 74px;
  height: 54px;
  fill: none;
  stroke: #49b36a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.05;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 250, 242, 0.64);
}

.site-footer .copyright {
  color: rgba(255, 250, 242, 0.46);
  font-size: 0.82rem;
}

.site-footer a {
  color: rgba(255, 250, 242, 0.76);
  font-size: 0.88rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid article {
    min-height: 240px;
  }

  .experience,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card.large {
    min-height: 560px;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    max-width: 260px;
    font-size: 0.74rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 71px;
    left: 14px;
    right: 14px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    background: rgba(247, 243, 236, 0.98);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(31, 37, 34, 0.14);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    padding-top: 130px;
  }

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

  .intro-grid,
  .text-pair,
  .section-heading,
  .values-grid,
  .contact-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

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

  .experience-panel {
    padding: 52px 22px;
  }

  .work-card,
  .work-card.large {
    min-height: 430px;
  }

  .contact-copy {
    position: static;
  }

  .site-footer {
    justify-items: start;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(3.2rem, 18vw, 4.4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 13vw, 3.1rem);
  }

  .brand-mark {
    width: 44px;
    height: 32px;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .values article,
  .contact-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
