/* Autoflow — Premium matte black & white */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-subtle: #161616;
  --text: #f5f5f0;
  --text-muted: #a3a3a0;
  --text-faint: #6b6b68;
  --border: #2a2a2a;
  --border-light: #3a3a3a;
  --white: #ffffff;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1120px;
  --section-gap: clamp(5rem, 12vw, 9rem);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}

a:hover {
  opacity: 0.7;
}

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

/* ── Layout ── */

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.7;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.logo-link:hover {
  opacity: 1;
}

.logo-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border-light);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--bg);
  opacity: 1;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 1.375rem;
  height: 1px;
  background: var(--text);
  margin-block: 0.3125rem;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: clamp(4rem, 8vw, 5.5rem);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 32rem;
  line-height: 1.75;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9375rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--text);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  position: relative;
}

.btn-outline::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn-outline:hover {
  border-color: var(--white);
  opacity: 1;
}

.btn-outline:hover::before {
  opacity: 1;
}

/* ── Inline stroke accent (logo-inspired) ── */

.stroke-accent {
  position: relative;
  display: inline-block;
}

.stroke-accent::after {
  content: "";
  position: absolute;
  bottom: -0.375rem;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--white);
  box-shadow: 0 3px 0 0 var(--bg), 0 4px 0 0 var(--white);
}

/* ── Services ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 3.5rem;
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.4s var(--ease);
}

.service-card:hover {
  background: var(--bg-elevated);
}

.service-number {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Approach ── */

.approach-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-top: 3.5rem;
}

.approach-step {
  position: relative;
  padding-top: 1rem;
}

.approach-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 1px;
  background: var(--white);
  box-shadow: 0 3px 0 0 var(--bg), 0 4px 0 0 rgba(255, 255, 255, 0.3);
}

.step-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Divider ── */

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 1px;
  background: var(--border-light);
}

/* ── Contact ── */

.contact-section {
  background: var(--bg-elevated);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-detail {
  margin-top: 2rem;
}

.contact-detail dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.375rem;
}

.contact-detail dd {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-detail dd a {
  color: var(--text-muted);
}

/* ── Form ── */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.875rem 1rem;
  transition: border-color 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-light);
  outline: none;
}

.form-group textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--white);
  flex-shrink: 0;
}

.form-consent label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit {
  width: 100%;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Honeypot — hidden from users and screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Footer ── */

.site-footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 1.75rem;
}

.footer-brand span {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-links a:hover {
  color: var(--text-muted);
  opacity: 1;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Legal pages ── */

.legal-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Thank you page ── */

.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.thankyou-content {
  max-width: 28rem;
}

.thankyou-logo {
  width: 4rem;
  margin: 0 auto 2rem;
}

.thankyou-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.thankyou-text {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ── Cookie banner ── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.5;
}

.cookie-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-links,
  .header-inner > .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 4.5rem;
    background: var(--bg);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
  }

  .nav-links.open a {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
