/* elHra Ltd — light theme, violet accent. Tokens are taken from the logo. */
:root {
  --violet: #7c01fd;
  /* Channel triples for alpha uses: rgb(var(--violet-rgb) / 6%). Keeps the
     colour in exactly one place — a literal here would be a second source. */
  --violet-rgb: 124 1 253;
  --violet-lift-rgb: 168 85 247;
  /* Derived, not repeated: the lift colour is only ever used through its
     triple, and a second literal here would be free to drift from it. */
  --violet-lift: rgb(var(--violet-lift-rgb));
  --violet-tint: #f3e8ff;
  --violet-600: #6a01d9;
  --violet-700: #5c00bd;
  --violet-800: #4e009f;
  --violet-900: #3d0080;
  --ink: #0b0b10;
  --body: #4a4a57;
  --rule: #eceaf5;
  --band: #faf8ff;
  --white: #fff;
  --wrap: 1120px;
  --radius: 16px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --shadow: 0 1px 2px rgb(11 11 16 / 4%), 0 12px 32px rgb(var(--violet-rgb) / 6%);
  --shadow-lift: 0 2px 4px rgb(11 11 16 / 5%), 0 18px 44px rgb(var(--violet-rgb) / 14%);
}

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

/* 72px sticky header plus breathing room, so fragment targets and the
   skip link never land underneath it. */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 400 clamp(1rem, 0.97rem + 0.15vw, 1.0625rem)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.6rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--violet);
  color: var(--white);
  font-weight: 700;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.band { background: var(--band); border-block: 1px solid var(--rule); }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--violet);
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede { max-width: 62ch; font-size: 1.0625em; }

.head { max-width: 68ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1 var(--sans);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--violet); color: var(--white); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--violet-600); box-shadow: var(--shadow-lift); }
.btn--ghost { border-color: var(--rule); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }

.card {
  padding: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.2vw, 1.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.reveal { opacity: 1; }

/* Three columns are too narrow to read between roughly 720 and 1000px.
   Each 1000px block sits after the base rule it overrides and before the
   matching 720px block: all three match below 720px, and the later rule
   wins. */
@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .grid--3 { grid-template-columns: 1fr; }
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-head.scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px rgb(11 11 16 / 5%); }
.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.site-head__logo { display: flex; margin-right: auto; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { color: var(--violet); }
.site-head__cta { padding: 0.65rem 1.1rem; font-size: 0.9375rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: min(760px, 85vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(var(--violet-rgb) / 16%), rgb(var(--violet-lift-rgb) / 0%) 68%);
  pointer-events: none;
}
/* Bolt glyph echoing the mark's cutout. A straight skewed line was tried
   first and read as a stray diagonal rule, not as a bolt. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -4%;
  right: 5%;
  width: min(320px, 34vw);
  aspect-ratio: 0.62;
  background: linear-gradient(165deg, rgb(var(--violet-rgb) / 20%), rgb(var(--violet-lift-rgb) / 5%));
  clip-path: polygon(58% 0%, 16% 54%, 43% 54%, 26% 100%, 84% 40%, 54% 40%, 78% 0%);
  transform: skewX(-6deg);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 22ch; }
.hero .lede { margin-top: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* The bolt starts overlapping the headline as soon as the column narrows,
   which is well before the 720px stop. */
@media (max-width: 1000px) {
  .hero::after { display: none; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* Services */
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--violet-tint);
  color: var(--violet);
}
.card:hover .service__icon { background: var(--violet); color: var(--white); }

/* Selected work */
.case dl { margin: 0; }
.case dt {
  margin-top: 1rem;
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case dt:first-of-type { margin-top: 0.75rem; }
.case dd { margin: 0.3rem 0 0; font-size: 0.9375rem; }

/* How we work */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}
.step { counter-increment: step; padding-top: 1.75rem; border-top: 2px solid var(--rule); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--violet);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.step p { font-size: 0.9375rem; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

/* Contact */
.contact {
  padding-block: clamp(3.5rem, 2rem + 6vw, 6rem);
  background: linear-gradient(135deg, var(--violet), var(--violet-700) 60%, var(--violet-900));
  color: rgb(255 255 255 / 88%);
}
.contact__inner {
  display: grid;
  /* Tracks sized to content and centred as a pair. Stretched to full width the
     details column floated with a dead half-band to its right. */
  grid-template-columns: minmax(0, 32rem) minmax(0, auto);
  justify-content: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.contact h2 { color: var(--white); max-width: 16ch; }
.contact p { max-width: 46ch; }
/* Labels and values are both full-strength white: on this gradient a faded
   white drops small text under 4.5:1. Hierarchy comes from size and tracking. */
/* The details are short next to the pitch, so a rule anchors the column
   instead of letting it float in the empty half of the band. */
.contact__details {
  font-style: normal;
  padding-left: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-left: 1px solid rgb(255 255 255 / 25%);
}
.contact__details dl { margin: 0; }
.contact__details dt {
  margin-top: 1.75rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact__details dt:first-of-type { margin-top: 0; }
.contact__details dd {
  margin: 0.4rem 0 0;
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.contact__details a { color: var(--white); }

@media (max-width: 720px) {
  .contact__inner { grid-template-columns: 1fr; }
  /* Stacked, the rule would sit beside a full-width column and read as a
     stray line, so it becomes a divider above instead. */
  .contact__details {
    padding: 1.75rem 0 0;
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 25%);
  }
}
.contact__btn {
  margin-top: 2rem;
  background: var(--white);
  color: var(--violet);
  /* Black, not a violet-tinted shadow: this sits on the violet band itself,
     where a violet shadow would be invisible against its own background. */
  box-shadow: 0 10px 30px rgb(0 0 0 / 18%);
}
.contact__btn:hover { color: var(--violet-800); }
.contact :focus-visible { outline-color: var(--white); }

/* Footer */
.site-foot { padding-block: 2.25rem; border-top: 1px solid var(--rule); }
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
}
.site-foot__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; }

/* Motion — only active when JS has run.
   The reveal offset uses `translate`, not `transform`, so it cannot fight
   .card:hover's translateY; and the per-property delays keep the stagger on
   the entrance without delaying hover. */
.js .reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.5s ease calc(var(--i, 0) * 70ms),
    translate 0.5s ease calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
/* Restores the hover transitions .js .reveal would otherwise replace. */
.js .card.reveal {
  transition: opacity 0.5s ease calc(var(--i, 0) * 70ms),
    translate 0.5s ease calc(var(--i, 0) * 70ms),
    transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: 0 0; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
