/* ==========================================================================
   RUPTURA — design tokens
   ========================================================================== */
:root {
  --black: #0E0C0B;
  --red: #DC2626;
  --cream: #F7F1E4;
  --ink: #1F3350;

  --font-display: 'Fraunces', serif;
  --font-body: 'Archivo', sans-serif;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.01em;
}
em, .accent-italic { font-style: italic; font-family: var(--font-display); }
p { margin: 0; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* focus states — never remove */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ==========================================================================
   Eyebrow / labels
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: '';
  width: 1.6em;
  height: 2px;
  background: currentColor;
}
.section-light .eyebrow, .section-cream .eyebrow { color: var(--red); }
.section-dark .eyebrow { color: var(--red); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 1rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--black);
}
.btn-primary:hover { background: transparent; color: var(--red); }

.section-dark .btn-outline {
  border-color: var(--cream);
  color: var(--cream);
}
.section-dark .btn-outline:hover { background: var(--cream); color: var(--black); }

.section-light .btn-outline, .section-cream .btn-outline {
  border-color: var(--black);
  color: var(--black);
}
.section-light .btn-outline:hover, .section-cream .btn-outline:hover {
  background: var(--black); color: var(--cream);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--space-3);
  background: var(--black);
  color: var(--cream);
  border-bottom: 1px solid rgba(247,241,228,.08);
}
.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  color: var(--cream);
}
.wordmark span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a:not(.btn) {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(247,241,228,.75);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--cream);
  border-color: var(--red);
}
.nav-cta { margin-left: .5rem; }

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid rgba(247,241,228,.3);
  border-radius: var(--radius);
  overflow: hidden;
  margin-left: .5rem;
}
.nav-links .lang-toggle a:not(.btn) {
  padding: .4rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(247,241,228,.6);
  border-bottom: none;
}
.nav-links .lang-toggle a.active:not(.btn) {
  background: var(--red);
  color: var(--black);
}
.nav-links .lang-toggle a:not(.btn):hover:not(.active) { color: var(--cream); }
@media (max-width: 1080px) {
  .lang-toggle { margin: .5rem 0 0; align-self: flex-start; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3);
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn) { font-size: 1rem; }
  .nav-cta { margin-left: 0; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { position: relative; }
.section-dark { background: var(--black); color: var(--cream); }
.section-light, .section-cream { background: var(--cream); color: var(--black); }
.pad { padding: var(--space-6) 0; }
@media (max-width: 720px) {
  .pad { padding: var(--space-5) 0; }
}

/* torn-paper divider between stacked sections */
.tear {
  height: 34px;
  margin-top: -1px;
  clip-path: polygon(
    0% 100%, 2.5% 35%, 5% 78%, 7.5% 20%, 10% 62%, 12.5% 8%, 15% 55%,
    17.5% 15%, 20% 70%, 22.5% 25%, 25% 60%, 27.5% 5%, 30% 50%, 32.5% 18%,
    35% 75%, 37.5% 10%, 40% 65%, 42.5% 30%, 45% 80%, 47.5% 15%, 50% 55%,
    52.5% 5%, 55% 70%, 57.5% 25%, 60% 60%, 62.5% 10%, 65% 65%, 67.5% 20%,
    70% 75%, 72.5% 15%, 75% 60%, 77.5% 5%, 80% 70%, 82.5% 25%, 85% 60%,
    87.5% 12%, 90% 65%, 92.5% 18%, 95% 55%, 97.5% 8%, 100% 20%, 100% 100%
  );
}
.tear-to-black { background: var(--black); }
.tear-to-cream { background: var(--cream); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow { margin-bottom: var(--space-3); }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw + 1rem, 5.2rem);
  max-width: 15ch;
}
.hero .lede {
  margin-top: var(--space-3);
  max-width: 46ch;
  font-size: 1.15rem;
  opacity: .82;
}
.hero .btn-row { margin-top: var(--space-4); }

.hero-mark {
  position: absolute;
  right: -6%;
  top: 8%;
  width: 46%;
  max-width: 480px;
  opacity: .9;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-mark { display: none; }
}

.page-hero {
  padding: var(--space-5) 0 var(--space-4);
}
.page-hero h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.6rem); max-width: 20ch; }
.page-hero .lede { margin-top: var(--space-2); max-width: 52ch; opacity: .82; font-size: 1.05rem; }

/* ==========================================================================
   Grid / cards
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid rgba(14,12,11,.14);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: transparent;
}
.section-dark .card { border-color: rgba(247,241,228,.16); }

.stat {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  font-weight: 600;
  color: var(--red);
}
.stat-label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
  margin-top: .4rem;
}

/* ==========================================================================
   Pricing / packages
   ========================================================================== */
.pkg {
  border: 1px solid rgba(14,12,11,.16);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-radius: var(--radius);
  position: relative;
}
.pkg.featured {
  border-color: var(--red);
  border-width: 2px;
}
.pkg.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -14px;
  left: var(--space-3);
  background: var(--red);
  color: var(--black);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: var(--radius);
}
.pkg h3 { font-size: 1.5rem; }
.pkg .price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--red);
}
.pkg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .95rem; }
.pkg li { display: flex; gap: .6em; }
.pkg li::before { content: '—'; color: var(--red); flex-shrink: 0; }
.pkg .btn { margin-top: auto; align-self: flex-start; }

.pkg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }
.pkg-sub { font-style: italic; opacity: .65; font-size: .92rem; margin-top: -.3rem; }
.pkg-price-big { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--red); text-align: right; white-space: nowrap; }
.pkg-price-unit { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-top: .1rem; }
.pkg-highlight {
  padding: .6rem .8rem;
  border-left: 2px solid var(--ink);
  font-size: .85rem;
  font-style: italic;
  opacity: .85;
}
.section-dark .pkg-highlight { background: rgba(31,51,80,.35); }
.section-light .pkg-highlight, .section-cream .pkg-highlight { background: rgba(31,51,80,.07); }

.pricing-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pricing-table th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .8rem 1rem;
  background: var(--black);
  color: var(--cream);
}
.pricing-table th:last-child, .pricing-table td:last-child { text-align: right; }
.pricing-table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(14,12,11,.12); vertical-align: top; }
.pricing-table tbody tr:nth-child(odd) { background: rgba(14,12,11,.03); }
.pricing-table td:last-child { color: var(--red); font-weight: 700; white-space: nowrap; }
.pricing-table-wrap { overflow-x: auto; }

.notes-box {
  background: var(--black);
  color: var(--cream);
  padding: var(--space-3);
  border-radius: var(--radius);
}
.notes-box .eyebrow { margin-bottom: var(--space-2); }
.notes-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; opacity: .9; }
.notes-box li { display: flex; gap: .6em; }
.notes-box li::before { content: '—'; color: var(--red); flex-shrink: 0; }

.pkg-note {
  margin-top: var(--space-3);
  font-size: .88rem;
  opacity: .7;
  max-width: 60ch;
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(14,12,11,.14);
}
.section-dark .step { border-color: rgba(247,241,228,.16); }
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
}
.step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { opacity: .82; max-width: 60ch; }

/* ==========================================================================
   Testimonial / quote
   ========================================================================== */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw + .8rem, 2rem);
  line-height: 1.35;
  max-width: 34ch;
}
.quote-cite {
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-style: normal;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.work-card {
  border: 1px solid rgba(14,12,11,.14);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-thumb {
  aspect-ratio: 4/5;
  background: var(--black);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  position: relative;
  overflow: hidden;
}
.work-thumb span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  text-align: center;
}
.work-thumb.ink { background: var(--ink); color: var(--cream); }
.work-thumb.red { background: var(--red); color: var(--black); }
.work-body { padding: var(--space-3); display: flex; flex-direction: column; gap: .4rem; }
.work-body .tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.work-body h3 { font-size: 1.2rem; }
.work-body p { opacity: .78; font-size: .92rem; }

.coming-soon-badge {
  display: inline-block;
  margin-top: var(--space-2);
  padding: .5rem 1rem;
  border: 1px dashed rgba(14,12,11,.3);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}

/* ==========================================================================
   Form
   ========================================================================== */
.form-grid { display: grid; gap: var(--space-2); max-width: 640px; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .9rem 1rem;
  border: 2px solid rgba(14,12,11,.22);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--black);
  min-height: 44px;
}
.section-dark .field input, .section-dark .field textarea, .section-dark .field select {
  background: transparent;
  border-color: rgba(247,241,228,.3);
  color: var(--cream);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-color: var(--red);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: .82rem; opacity: .65; }
.form-note { margin-top: var(--space-2); font-size: .85rem; opacity: .75; }

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-direct a.channel {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(247,241,228,.16);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.contact-direct a.channel:hover { color: var(--red); padding-left: .4rem; }
.contact-direct .channel-label {
  font-family: var(--font-body);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .6;
  min-width: 6.5em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: rgba(247,241,228,.7);
  padding: var(--space-4) 0 var(--space-3);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(247,241,228,.12);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--cream);
}
.footer-wordmark span { color: var(--red); }
.footer-tagline { max-width: 34ch; margin-top: .6rem; font-size: .92rem; }
.footer-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col-title {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cream);
  margin-bottom: .3rem;
}
.footer-col a { font-size: .9rem; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: var(--space-3);
  font-size: .78rem;
}

/* ==========================================================================
   Reveal-on-scroll (respects reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  [data-reveal].in-view { opacity: 1; transform: translateY(0); }
}

/* generic utility */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.max-56 { max-width: 56ch; }
.opacity-8 { opacity: .82; }
