/* ==========================================================================
   AI·NEXTSTEP - presentation landing (single page)
   Design preset: 11 Build (luxury minimalism)
   Canvas #ffffff · Ink #141414 · Accent #1a6b4a (sparing) · Hairline #e9e9e7
   70%+ whitespace, subtle weight contrast (300-600), soft shadows.
   Display: Literata (serif) · Body: Inter
   ========================================================================== */

:root {
  --canvas: #F7F6F2;
  --alt:    #EFEDE7;
  --ink:    #1B1A17;
  --graphite: #2c2b27;
  --body:   #63615B;
  --muted:  #8F8C84;
  --line:   #E7E4DC;
  --accent: #A05A1E;
  --accent-dark: #7E4413;

  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-btn: 8px;
  --r-card: 16px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -20px rgba(0,0,0,0.12);

  --maxw: 1140px;
  --gutter: clamp(20px, 4vw, 48px);
  --sect: clamp(80px, 12vw, 160px);
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

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

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-display { font-size: clamp(36px, 5.6vw, 60px); }
.h-section { font-size: clamp(30px, 4.6vw, 50px); }
.h-medium  { font-size: clamp(24px, 3vw, 34px); }

.display em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}

.lead {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--body);
  max-width: 58ch;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost { background: transparent; border-color: var(--body); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--alt); }

.btn .arr { font-size: 1.05em; line-height: 0; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-right: auto;
  white-space: nowrap;
}
.brand .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--alt); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}
.lang-toggle button {
  font-size: 12px;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 999px;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav .btn { padding: 11px 20px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding: clamp(116px, 14vh, 156px) 0 clamp(40px, 5vw, 64px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-title { margin: 0 0 28px; }
.hero-sub { max-width: 46ch; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual svg { width: 100%; height: auto; color: var(--muted); opacity: .9; }

#services { padding-top: clamp(56px, 7vw, 88px); }

/* Sections */
.section { padding: var(--sect) 0; }
.section-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .lead { margin-top: 22px; }

/* Editorial service list */
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list .srv-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
  padding-top: 8px;
}
.service-list h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 14px;
}
.service-list p { margin: 0; color: var(--body); font-size: 16px; line-height: 1.65; max-width: 56ch; }

/* Cards */
.card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink); margin: 0; }
.card p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.55; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cta-band .display { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,0.72); margin-top: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.channels { display: grid; gap: 14px; }
.channel {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .15s ease;
}
.channel:hover { border-color: var(--muted); }
.channel .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: none;
  background: var(--alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.channel .icon svg { width: 24px; height: 24px; }
.channel b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.channel span { color: var(--body); font-size: 14.5px; word-break: break-all; line-height: 1.45; }

.form-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 500; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 14px 16px;
  transition: border-color .15s ease, background-color .15s ease;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); background: var(--canvas); }
textarea.input { resize: vertical; min-height: 130px; }
.field-error { display: none; color: #b3261e; font-size: 13.5px; margin: 8px 0 0; }
.field.has-error .input { border-color: #b3261e; }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-status { font-size: 15px; min-height: 24px; margin: 16px 0 0; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: #b3261e; }
.form-note { color: var(--muted); font-size: 13.5px; margin: 18px 0 0; line-height: 1.5; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading { pointer-events: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.footer { background: var(--alt); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 32px; }
.footer-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 0 44px;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-desc { color: var(--body); font-size: 14.5px; max-width: 36ch; margin: 16px 0 0; line-height: 1.5; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--body); font-size: 15px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 10px;
    box-shadow: var(--shadow-soft);
  }
  .nav.is-open .nav-links a { padding: 14px 16px; border-radius: 12px; }
  .service-list li { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cta-band :focus-visible { outline-color: #fff; }
