/* ============================================================
   Initial Web Design — style.css
   Monochrome editorial: hairline rules, sharp corners,
   oversized Fraunces display type, Inter for UI.
   ============================================================ */

:root {
  --paper:    #FCFCFA;
  --ink:      #111111;
  --ink-soft: #3B3B3B;
  --ink-mute: #6F6F6F;
  --gray-lt:  #E8E8E5;
  --line:     rgba(17, 17, 17, 0.18);
  --line-dark: rgba(255, 255, 255, 0.22);

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  --container: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 500; line-height: 1; text-wrap: balance; }

h1, h2 { font-family: var(--font-serif); letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; font-weight: 400; }

h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 18ch;
}

/* Uppercase micro-label that opens each section */
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  border-top: 1px solid var(--ink);
  padding-top: 0.8rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-dark .section-label {
  color: rgba(255, 255, 255, 0.6);
  border-top-color: var(--paper);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: transparent; color: var(--ink); }

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-invert {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.btn-invert:hover { background: transparent; color: var(--paper); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { border-bottom-color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-block: 1.1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo em { font-style: italic; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-left: auto;
}
.nav-links a:not(.btn) {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links sup {
  font-size: 0.6em;
  margin-right: 0.45em;
  color: var(--ink-mute);
}

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) 0; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.hero-meta span + span::before {
  content: "/";
  margin-right: 2.5rem;
  color: var(--line);
}

.hero h1 {
  font-size: clamp(3rem, 10.5vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-foot p {
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
}

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--ink);
  padding-block: 1.1rem;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
}
.marquee-track span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; font-size: 0.9rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.section-dark { background: var(--ink); color: var(--paper); }

/* ---------- Services: ruled index rows ---------- */
.service-index { border-bottom: 1px solid var(--ink); }

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr 1.4fr 3rem;
  align-items: baseline;
  gap: 2rem;
  padding: 1.9rem 0.5rem;
  border-top: 1px solid var(--ink);
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.service-row:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 1.2rem;
}

.row-num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  transition: color 0.3s;
}
.service-row:hover .row-num { color: rgba(255, 255, 255, 0.55); }

.service-row h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
}

.service-row p {
  font-size: 0.95rem;
  color: var(--ink-mute);
  transition: color 0.3s;
}
.service-row:hover p { color: rgba(255, 255, 255, 0.7); }

.row-arrow {
  justify-self: end;
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
}
.service-row:hover .row-arrow { transform: translate(4px, -4px); }

/* ---------- Pricing ---------- */
.pricing-copy {
  max-width: 38em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  margin: -1.5rem 0 clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.step {
  padding: 1.8rem 1.5rem 2.2rem 0;
}
.step + .step {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--ink-mute); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 1.6rem;
}
.contact-copy > p {
  max-width: 30em;
  color: rgba(255, 255, 255, 0.65);
}

.contact-details {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.contact-details li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-details li span {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-details p { color: rgba(255, 255, 255, 0.85); }

/* Form: underline-only fields */
.contact-form { display: grid; gap: 1.7rem; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7rem;
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 0.55rem 0;
  width: 100%;
  transition: border-color 0.25s;
}
.field ::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--paper);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .invalid { border-bottom-color: #E05252; }

.form-status {
  font-size: 0.9rem;
  min-height: 1.4em;
  color: rgba(255, 255, 255, 0.75);
}
.form-status.error { color: #E08585; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.footer-word {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 17vw, 15rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.footer-word em { font-style: italic; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.4rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--paper); }
.footer-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }
.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}

.legal-updated {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.legal-body {
  max-width: 70ch;
  display: grid;
  gap: 1rem;
}
.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 1.6rem;
}
.legal-body p,
.legal-body li {
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.legal-body ul {
  list-style: disc;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.45rem;
}
.legal-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body strong { color: var(--ink); }
.legal-disclaimer {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem !important;
  color: var(--ink-mute) !important;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .service-row {
    grid-template-columns: 3rem 1fr 2.5rem;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
  }
  .service-row p { grid-column: 2; }
  .service-row .row-arrow { grid-row: 1; grid-column: 3; }

  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: none; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }

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

@media (max-width: 720px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 0.5rem var(--pad) 1.4rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) {
    display: block;
    padding: 1rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta-mobile { display: block; margin-top: 1.2rem; }
  .nav-cta-mobile .btn { width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }

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