:root {
  --ink: #092B14;
  --ink-deep: #05190C;
  --card: #05190C;
  --signal: #4DFF91;
  --paper: #EDF3EE;
  --muted: #7FA38C;
  --line: rgba(237, 243, 238, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .head-font {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

section[id] { scroll-margin-top: 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: var(--ink);
  padding: 12px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- signature: cut-corner facet, echoing the hand-cut logo mark --- */
.facet { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.facet-sm { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }

/* --- signature divider: irregular segmented rule, content-width with margins on both ends --- */
.divider-pixel-wrap { padding: 0 56px; width: 100%; }
.divider-pixel {
  display: flex;
  width: 100%;
  height: 2px;
  gap: 14px;
}
.divider-pixel span {
  height: 100%;
  background: var(--signal);
  display: block;
  min-width: 4px;
}
@media (max-width: 700px) {
  .divider-pixel-wrap { padding: 0 24px; }
  .divider-pixel { gap: 8px; }
}

/* --- nav --- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 56px;
  background: var(--ink-deep);
}
.logo-link { display: inline-flex; align-items: center; cursor: pointer; }
.logo-link img { height: 26px; width: auto; display: block; }
.navlinks { display: flex; gap: 36px; font-size: 14px; }
.navlinks a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.navlinks a:hover { opacity: 1; color: var(--signal); }
.navcta {
  background: var(--signal);
  color: var(--ink);
  padding: 10px 22px;
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.navcta:hover {
  background: transparent;
  color: var(--signal);
  border-color: var(--signal);
}

/* --- hero --- */
.hero { position: relative; padding: 70px 56px 60px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.02; margin-top: 18px; }
.hero h1 span { color: var(--signal); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 36ch; padding-bottom: 6px; }

/* --- services --- */
.services { padding: 60px 56px 60px; }
.services h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 48px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--card);
  padding: 32px;
  transition: background-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.service-card:hover {
  background-color: #0a2b16;
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.service-card .eyebrow { margin-bottom: 14px; }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* --- consultancy callout --- */
.callout {
  margin: 40px 56px 0;
  background: var(--signal);
  color: var(--ink);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.callout .eyebrow { color: var(--ink); opacity: 0.65; }
.callout h3 { font-size: 26px; margin: 6px 0 8px; }
.callout p { margin: 0; font-size: 15px; max-width: 48ch; opacity: 0.85; }
.callout-cta {
  background: var(--ink);
  color: var(--signal);
  padding: 12px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.callout-cta:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

/* --- process --- */
.process { padding: 90px 56px 60px; }
.process h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 48px; }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-step {
  padding: 28px;
  background: var(--card);
  transition: background-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.process-step:hover {
  background-color: #0a2b16;
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.process-num { font-family: 'Space Grotesk', sans-serif; color: var(--signal); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.process-step h3 { font-size: 20px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 14px; margin: 0; }

/* --- about --- */
.about { padding: 90px 56px 60px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; margin-bottom: 56px; }
.about h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.about-body p { color: var(--muted); font-size: 15px; margin: 0 0 16px; max-width: 58ch; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--paper); font-weight: 600; }

.about-sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.about-sub {
  background: var(--card);
  padding: 30px;
  transition: background-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.about-sub:hover {
  background-color: #0a2b16;
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.about-sub h3 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; margin: 10px 0 10px; }
.about-sub p { color: var(--muted); font-size: 14px; margin: 0; }

/* --- cta --- */
.cta { padding: 60px 56px 110px; text-align: center; }
.cta h2 { font-size: clamp(32px, 5.5vw, 60px); max-width: 18ch; margin: 0 auto 32px; }
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field .optional {
  font-weight: 400;
  text-transform: none;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: normal;
}
.cta-form select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  accent-color: var(--signal);
}
@media (max-width: 700px) {
  .field-row { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.cta-form input,
.cta-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.cta-form textarea { resize: vertical; min-height: 110px; }
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: var(--muted); }
.cta-form button {
  background: var(--signal);
  border: 1.5px solid transparent;
  color: var(--ink);
  padding: 14px 26px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta-form button:hover:not(:disabled) {
  background: transparent;
  color: var(--signal);
  border-color: var(--signal);
}
.cta-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  font-size: 14px;
  min-height: 20px;
}
.form-status.success { color: var(--signal); }
.form-status.error { color: #ff8a80; }

/* --- footer --- */
footer {
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--ink-deep);
}
footer .logo-link img { height: 16px; opacity: 0.7; }
footer .foot-links { display: flex; gap: 20px; align-items: center; }
footer .social-icons { display: flex; gap: 14px; align-items: center; }
footer .social-icons a { color: var(--muted); display: flex; }
footer .social-icons a:hover { color: var(--signal); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--signal); }

@media (max-width: 800px) {
  nav, .hero, .services, .process, .about, .cta, footer, .divider-pixel-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  .callout { margin-left: 24px; margin-right: 24px; }
  .navlinks { display: none; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .about-sub-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card, .process-step, .about-sub {
    transition: none;
  }
}
