:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #3d3d3d;
  --wing: #1d5fd1;      /* cobalt panel */
  --wing-deep: #1d5fd1;
  --navy: #0a1f44;
  --sky: #9cc8ff;
  --spot-blue: #1d5fd1;
  --spot-red: #e8412c;
  --rule: #dfe6f2;
  --measure: 34rem;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--wing-deep); }
a:focus-visible { outline: 3px solid var(--spot-blue); outline-offset: 3px; }

/* ---------- top bar ---------- */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark span { font-weight: 400; }
.bar nav a {
  font-family: var(--display);
  font-size: 0.95rem;
  margin-left: 1.5rem;
  text-decoration: none;
}
.bar nav a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(82vh, 760px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.hero-text {
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
  max-width: 13ch;
}
.hero p {
  max-width: var(--measure);
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
}
.cta {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  border-radius: 2px;
}
.cta:hover { background: var(--spot-blue); }

.hero-wing {
  background: var(--wing);
  border-left: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}
.hero-wing svg { width: 100%; max-width: 560px; height: auto; }

/* one orchestrated moment: veins draw in on load */
.vein {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 1.6s cubic-bezier(.3,.7,.2,1) forwards;
}
.vein:nth-of-type(2) { animation-delay: .08s; }
.vein:nth-of-type(3) { animation-delay: .16s; }
.vein:nth-of-type(4) { animation-delay: .24s; }
.vein:nth-of-type(5) { animation-delay: .32s; }
.vein:nth-of-type(6) { animation-delay: .40s; }
.vein:nth-of-type(7) { animation-delay: .48s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .vein { animation: none; stroke-dashoffset: 0; }
}

/* ---------- content sections ---------- */
main section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
main section:last-of-type { border-bottom: 0; }

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 2.25rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}
.services h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  padding-top: 0.9rem;
  border-top: 4px solid var(--wing);
}
.services p { margin: 0; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}
.split h2 { margin-bottom: 0; }
.split ul { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.split li { padding: 0 0 1.4rem 1.6rem; position: relative; }
.split li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--spot-blue);
}
.split li strong { font-family: var(--display); font-weight: 700; }

.contact {
  background: var(--navy);
  color: var(--paper);
}
.contact h2 { color: var(--sky); }
.contact p { max-width: var(--measure); margin: 0 0 1rem; }
.contact .mail {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--paper);
  text-decoration-color: var(--sky);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- privacy page ---------- */
.doc {
  max-width: 44rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) 4rem;
}
.doc h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.doc .updated { color: var(--ink-soft); margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
.doc p, .doc li { color: #1f1f1f; }
.doc ul { padding-left: 1.2rem; }
.doc-rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-wing { border-left: 0; border-top: 1px solid var(--ink); padding: 1.5rem; }
  .hero-wing svg { max-width: 380px; }
  .services { grid-template-columns: 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .bar nav a { margin-left: 1rem; }
}

/* e-commerce lead section */
.lead { color: var(--ink-soft); max-width: 28rem; margin: 1.25rem 0 0; }
#ecommerce .split h2 { margin-bottom: 0; }

/* principles */
.principles { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.principles div { padding-top: 1rem; border-top: 1px solid var(--ink); }
.principles dt { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 1.35rem; line-height: 1.15; margin: 0 0 0.6rem; }
.principles dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: 2rem; } }
.wordmark { white-space: nowrap; }
@media (max-width: 560px) {
  .bar nav a:not([href$="#contact"]) { display: none; }
}

/* hero illustration: bars rise once on load */
.hero-wing .bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hero-wing .bar { animation: none; } }
