/* Arvexa — one family (Archivo, width axis), vermilion committed on warm paper */

:root {
  --paper: oklch(0.972 0.007 65);
  --paper-2: oklch(0.94 0.011 60);
  --ink: oklch(0.2 0.012 40);
  --ink-soft: oklch(0.42 0.012 40);
  --rule: oklch(0.85 0.012 55);
  --signal: oklch(0.64 0.2 34);
  --signal-ink: oklch(0.2 0.012 40 / 0.28);

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.5rem, 0.5rem + 10vw, 10.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */

.hero-wrap {
  background: var(--signal);
  color: var(--ink);
}

.site-header { padding-block: 1.4rem; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
  stroke: currentColor;
}
.mark path {
  fill: none;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark circle { stroke: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  text-underline-offset: 0.3em;
}
.nav a:hover { text-decoration: underline; }

.nav-cta {
  padding: 0.6rem 1rem;
  border: 1.5px solid currentColor;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.nav .nav-cta:hover {
  background: var(--ink);
  color: var(--signal);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  grid-template-areas:
    "head head"
    "copy art";
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.hero-head { grid-area: head; }
.hero-copy { grid-area: copy; }
.hero-art {
  grid-area: art;
  justify-self: end;
  width: min(100%, 34rem);
}

.kicker {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

h1 {
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
h1 .line > span { display: inline-block; }

.lede {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out);
}
.btn span { transition: transform 0.3s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }

.link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
}
.link:hover { text-decoration-thickness: 3px; }

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.fan path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-opacity: 0.55;
}
.fan path:nth-child(n+4):nth-child(-n+10) { stroke-opacity: 0.8; }
.fan .wall { stroke-width: 2.6; stroke-opacity: 1; }

.out {
  fill: none;
  stroke: var(--paper);
  stroke-width: 5;
  stroke-linecap: round;
}
.dot { fill: var(--paper); }
.ring {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2;
  transform-origin: 240px 566px;
  opacity: 0;
}
.particles circle { fill: var(--paper); opacity: 0; }

.labels path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  stroke-opacity: 0.6;
}
.labels text {
  fill: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  font-weight: 650;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.25rem 1.4rem;
  border-top: 1px solid var(--signal-ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.channels span { font-weight: 750; }

/* Load choreography */
@media (prefers-reduced-motion: no-preference) {
  h1 .line > span {
    animation: rise 1.1s var(--ease-out) both;
  }
  h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
  .kicker, .lede, .hero-actions {
    animation: fade-up 0.9s var(--ease-out) both;
  }
  .lede { animation-delay: 0.3s; }
  .hero-actions { animation-delay: 0.42s; }

  .fan path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.4s var(--ease-out) forwards;
    animation-delay: calc(0.25s + var(--i) * 0.045s);
  }
  .out {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 0.7s var(--ease-out) 1.25s forwards;
  }
  .dot {
    transform-origin: 240px 566px;
    animation: pop 0.6s var(--ease-out) 1.75s both;
  }
  .ring { animation: pulse 2.8s var(--ease-out) 2.4s infinite; }
  .labels { animation: fade 0.8s var(--ease-out) 1.6s both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .particles { display: none; }
}

@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- Sections ---------- */

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

h2 {
  font-size: var(--step-3);
  font-weight: 780;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head p {
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* Services */

.service {
  display: grid;
  grid-template-columns: 6rem minmax(0, 4fr) minmax(0, 6fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.25rem, 4vw, 3.75rem);
  border-top: 1px solid var(--rule);
}
.service:last-child { border-bottom: 1px solid var(--rule); }

.service-num {
  color: var(--signal);
  font-size: var(--step-3);
  font-weight: 300;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.service h3 {
  font-size: var(--step-2);
  font-weight: 750;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.service-body p {
  max-width: 56ch;
  color: var(--ink-soft);
}

.service-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  margin-top: 1.75rem;
}
.service-body li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--rule);
  font-weight: 560;
  font-size: 0.975rem;
  line-height: 1.4;
}

/* Approach */

.approach { background: var(--paper-2); }

.approach h2 { margin-bottom: clamp(3rem, 6vw, 5rem); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 2.25rem;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
}
.step-num {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
  font-weight: 750;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.steps p { color: var(--ink-soft); }

.operator {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 3rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(5rem, 10vw, 9rem);
}
.operator-statement {
  max-width: 30ch;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.operator-statement em {
  font-style: normal;
  color: var(--signal);
}
.audience h3 {
  margin-bottom: 1rem;
  font-size: var(--step-0);
  font-weight: 750;
}
.audience li {
  padding-block: 0.65rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}

/* Contact */

.contact {
  padding-block: var(--section) clamp(4rem, 8vw, 7rem);
  background: var(--ink);
  color: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.contact h2 {
  font-size: clamp(2.6rem, 1.2rem + 5.5vw, 6.25rem);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.contact-lede {
  max-width: 32rem;
  margin-top: 1.75rem;
  color: oklch(0.85 0.01 60);
  font-size: var(--step-1);
  line-height: 1.55;
}
.email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  color: var(--signal);
  font-size: var(--step-2);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}
.email span { transition: transform 0.3s var(--ease-out); }
.email:hover span { transform: translateX(6px); }

.company div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid oklch(0.38 0.012 40);
}
.company div:last-child { border-bottom: 1px solid oklch(0.38 0.012 40); }
.company dt {
  color: oklch(0.72 0.012 50);
  font-size: var(--step--1);
  font-weight: 600;
  padding-top: 0.15rem;
}
.company dd { font-weight: 560; }
.company a { text-decoration: none; }
.company a:hover { text-decoration: underline; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: oklch(0.72 0.012 50);
  font-size: var(--step--1);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid oklch(0.32 0.012 40);
}
.footer-row nav { display: flex; gap: 1.75rem; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--paper); text-decoration: underline; }

/* Scroll reveal (only when JS runs) */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .steps li:nth-child(2) { transition-delay: 0.08s; }
  .steps li:nth-child(3) { transition-delay: 0.16s; }
  .steps li:nth-child(4) { transition-delay: 0.24s; }
}

/* ---------- Legal pages ---------- */

.page-legal .site-header {
  border-bottom: 1px solid var(--rule);
}
.page-legal .nav-cta:hover { color: var(--paper); }

.legal {
  padding-block: clamp(3.5rem, 8vw, 7rem) var(--section);
}
.legal-inner { max-width: 44rem; }
.legal h1 {
  font-size: var(--step-3);
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.legal .updated {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.legal h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: var(--step-1);
  font-stretch: 100%;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p,
.legal ul + p { margin-top: 1rem; }
.legal ul { margin-top: 0.75rem; }
.legal li {
  position: relative;
  padding-left: 1.25rem;
}
.legal li + li { margin-top: 0.4rem; }
.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--signal);
}
.legal a { text-underline-offset: 0.25em; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "copy" "art";
  }
  .section-head,
  .contact-grid,
  .operator { grid-template-columns: minmax(0, 1fr); }

  .hero-art {
    justify-self: start;
    width: min(100%, 30rem);
  }

  .service {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
  .service-num { font-size: var(--step-2); }
  .service-body { margin-top: 0.5rem; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0.5rem 0.8rem; }
  .wordmark { font-size: 1.15rem; }
  .mark { width: 1.5rem; height: 1.5rem; }

  .service-body ul { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .company div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

.nb { white-space: nowrap; }
