@font-face {
  font-family: "Corporatus";
  src: url("../fonts/corporatus_regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f5f4;
  --bg-warm: #eaeeed;
  --surface: #ffffff;
  --fg: #0c1111;
  --muted: #5a6463;
  --subtle: #7a8483;
  --primary: #0a6e6a;
  --primary-hover: #0e8580;
  --primary-fg: #ffffff;
  --ink: #080c0c;
  --ink-fg: #eef3f2;
  --ink-muted: #9aa6a5;
  --border: #d7dddc;
  --border-strong: #b8c2c0;
  --trace: #0d8f88;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Corporatus", "Syne", "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-logo: "Corporatus", "Syne", "Outfit", ui-sans-serif, system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

button,
[role="button"] {
  cursor: pointer;
  font-family: inherit;
}

::selection {
  background: color-mix(in oklab, var(--primary) 28%, transparent);
  color: var(--fg);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 16px;
  z-index: 50;
  background: var(--ink);
  color: var(--ink-fg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .wrap {
    width: min(72rem, calc(100% - 4rem));
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.brand img {
  height: 40px;
  width: auto;
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
}
.brand-z {
  /* left → right with 5° tilt (CSS 0deg = up; 90deg = right) */
  background: linear-gradient(85deg, #007c7b 0%, #000000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 150ms var(--ease-out);
}
.nav a:hover {
  color: var(--fg);
}

.menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 20px 20px;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .menu-btn,
  .mobile-nav {
    display: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out),
    color 150ms var(--ease-out), transform 150ms var(--ease-out), opacity 150ms var(--ease-out);
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-hover);
  color: var(--primary-fg);
}
.btn-primary:visited {
  color: var(--primary-fg);
}
/* Ensure primary button text stays white inside nav (overrides .nav a color) */
.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary:focus-visible,
.nav a.btn-primary:visited,
.mobile-nav a.btn-primary,
.mobile-nav a.btn-primary:hover,
.mobile-nav a.btn-primary:focus-visible,
.mobile-nav a.btn-primary:visited {
  color: var(--primary-fg);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-outline:hover {
  border-color: var(--fg);
  background: var(--surface);
}
.btn-lg {
  min-height: 48px;
  padding: 0 24px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.circuit {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--primary) 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--primary) 10%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black 20%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  padding: 56px 0 72px;
}
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  font-weight: 600;
}
.lede {
  margin-top: 24px;
  max-width: 36rem;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
}
.cta-row {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.logo-card {
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  max-width: 24rem;
  width: 100%;
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
  }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 64px;
    padding: 96px 0;
  }
  .logo-card {
    justify-self: end;
  }
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.section-surface {
  background: var(--surface);
}
.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .split-about {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 64px;
  }
  .split-approach {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .split-contact {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.25rem);
  font-weight: 600;
}
.prose {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.prose p + p {
  margin-top: 20px;
}

.approach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.approach-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--primary);
}

.services .lede {
  margin-top: 16px;
}

.explorer {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.tab {
  flex: 0 0 auto;
  min-height: 44px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out),
    color 150ms var(--ease-out);
}
.tab .num {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
}
.tab strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.tab.is-active .num {
  color: inherit;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.panel h3 {
  font-size: 1.5rem;
}
.panel .lede {
  margin-top: 12px;
  font-size: 1rem;
}
.items {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.items li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.875rem;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 7px;
  flex: none;
}

@media (min-width: 640px) {
  .items {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 32px;
  }
}
@media (min-width: 1024px) {
  .explorer {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 40px;
  }
  .tabs {
    flex-direction: column;
    overflow: visible;
  }
  .tab {
    width: 100%;
  }
}

.ink {
  background: var(--ink);
  color: var(--ink-fg);
  border-bottom: 0;
}
.ink .kicker {
  color: var(--trace);
}
.ink .lede,
.rail {
  color: var(--ink-muted);
}
.process {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.process li {
  border: 1px solid color-mix(in oklab, var(--ink-fg) 10%, transparent);
  background: color-mix(in oklab, var(--ink-fg) 5%, transparent);
  border-radius: var(--radius-xl);
  padding: 20px;
}
.process .num {
  color: var(--trace);
  font-size: 0.75rem;
}
.process h3 {
  margin-top: 8px;
  font-size: 1.25rem;
}
.flow {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .process {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.mail {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 24px;
  color: var(--primary);
  font-weight: 500;
}
.mail:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

form.card,
.thanks {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}
.thanks {
  background: var(--bg-warm);
  padding: 32px 24px;
}
.grid-2 {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  padding: 0 14px;
  outline: none;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
textarea {
  min-height: 120px;
  padding: 10px 14px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent);
}
.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  form.card {
    padding: 28px;
  }
  .grid-2.two {
    grid-template-columns: 1fr 1fr;
  }
  .span-2 {
    grid-column: 1 / -1;
  }
}

.footer {
  background: var(--ink);
  color: var(--ink-fg);
  border-top: 1px solid color-mix(in oklab, var(--ink-fg) 10%, transparent);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer strong {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.footer .muted {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.hero-enter > * {
  animation: rise-in 500ms var(--ease-out) both;
}
.hero-enter > *:nth-child(1) {
  animation-delay: 40ms;
}
.hero-enter > *:nth-child(2) {
  animation-delay: 120ms;
}
.hero-enter > *:nth-child(3) {
  animation-delay: 200ms;
}
.hero-enter > *:nth-child(4) {
  animation-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-enter > * {
    animation: none;
  }
  .btn:active {
    transform: none;
  }
}
