/* ============================================================
   Aquiladyne — Software Design Studio
   Minimal, editorial, dependency-free.
   ============================================================ */

:root {
  --paper:      #F5F2EC;
  --paper-2:    #EDE9E0;
  --ink:        #16150F;
  --ink-soft:   #5C594F;
  --line:       rgba(22, 21, 15, 0.14);
  --accent:     #B0552F;

  --max:        1180px;
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --section-y:  clamp(5rem, 12vw, 9rem);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.eyebrow--light { color: rgba(245, 242, 236, 0.6); }

em { font-style: italic; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__mark { fill: var(--ink); }
.brand__word { font-size: 1.02rem; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  font-size: 0.92rem;
}
.nav a { color: var(--ink-soft); transition: color 0.2s ease; }
.nav a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink) !important;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }

/* hide the text links on small screens, keep the CTA */
@media (max-width: 620px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: clamp(4.5rem, 12vw, 9rem);
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--line);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.5vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-bottom: 1.8rem;
}
.hero__title em { color: var(--accent); }
.hero__lede {
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.6rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { transform: translateY(-2px); background: #000; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--block { width: 100%; padding-block: 1rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

/* ============================================================
   Generic section
   ============================================================ */
.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
}
.section--alt { background: var(--paper-2); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: 3rem;
}
.section__no {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  padding-top: 0.4rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.section__lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 3rem;
  margin-top: -1.4rem;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

.pillar__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.pillar__body { color: var(--ink-soft); max-width: 42ch; }

/* ---------- Capabilities ---------- */
.caps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .caps { grid-template-columns: 1fr; } }

.cap {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-family: var(--serif);
  letter-spacing: -0.01em;
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.cap:hover { padding-left: 0.9rem; color: var(--accent); }
.cap__no {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

.principle__title {
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
}
.principle p { color: var(--ink-soft); }

/* ============================================================
   Contact (dark)
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
}
.contact__note { color: rgba(245, 242, 236, 0.62); max-width: 36ch; }
.contact__note a {
  color: var(--paper);
  border-bottom: 1px solid rgba(245, 242, 236, 0.4);
  transition: border-color 0.2s ease;
}
.contact__note a:hover { border-color: var(--paper); }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 1.5rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
}
.field .optional { text-transform: none; letter-spacing: 0; }

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--paper);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 242, 236, 0.28);
  padding: 0.55rem 0;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--paper);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(245, 242, 236, 0.35); }

.form .btn--solid {
  background: var(--paper);
  color: var(--ink);
  margin-top: 0.5rem;
}
.form .btn--solid:hover { background: #fff; }

.form__status {
  font-size: 0.92rem;
  min-height: 1.2em;
  color: rgba(245, 242, 236, 0.7);
}
.form__status.is-error { color: #E8A07E; }
.form__status.is-success { color: #9FD0A8; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: rgba(245, 242, 236, 0.6); padding-block: 2.5rem; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand--footer { color: var(--paper); }
.brand--footer .brand__mark { fill: var(--paper); }
.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.footer__meta a { transition: color 0.2s ease; }
.footer__meta a:hover { color: var(--paper); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .cap:hover { transform: none; }
}
