/* =========================================================
   EJM Digital: homepage (rebrand)
   Dark, engineered, terminal-inflected identity.
   Tailwind (CDN) handles layout scaffolding; this file owns
   the brand tokens, signature devices and interactive states.
   ========================================================= */

:root {
  --bg: #0D0D0D;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --ink: #F0F0F0;
  --amber: #D97A3D;
  --amber-bright: #E8934F;
  --live: #5FA779; /* functional "live" signal only, never a brand colour */

  --bg-alt: #141414;
  --ink-dim: rgba(240, 240, 240, 0.66);
  --ink-faint: rgba(240, 240, 240, 0.44);
  --border: rgba(240, 240, 240, 0.10);
  --border-strong: rgba(240, 240, 240, 0.18);
  --amber-tint: rgba(217, 122, 61, 0.12);
  --amber-line: rgba(217, 122, 61, 0.45);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7rem);
  --ease: cubic-bezier(0.33, 0, 0.15, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

::selection { background: var(--amber); color: #0D0D0D; }

section[id] { scroll-margin-top: 88px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--amber);
  color: #0D0D0D;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
}
.skip-link:focus { left: 0; }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section--ruled { border-top: 1px solid var(--border); }
.section--alt { background: var(--bg-alt); }
.section--alt .area-card,
.section--alt .frame > .frame-inner { background: var(--surface-2); }

.section-head { max-width: 46rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw + 1rem, 3rem);
  margin-top: 0.9rem;
}
.section-head__lead {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.2rem);
  color: var(--ink-dim);
  max-width: 42ch;
}

/* ---------- eyebrow (code-comment / mono) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow::before {
  content: "//";
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease),
              border-color 0.22s var(--ease), color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.btn-primary { background: var(--amber); color: #0D0D0D; }
.btn-primary:hover {
  background: var(--amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(217, 122, 61, 0.65);
}
.btn-primary:active { transform: translateY(0); background: var(--amber); box-shadow: none; }
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--amber);
}

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--amber); color: var(--amber-bright); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--amber-line);
}

.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ---------- corner-bracket frame (signature) ---------- */
.frame { position: relative; }
.frame > .frame-inner {
  position: relative;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
}
.frame::before, .frame::after,
.frame > .frame-inner::before, .frame > .frame-inner::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  z-index: 2;
}
/* off-white frame with a single amber accent corner (bottom-right), per brand */
.frame::before { top: -1px; left: -1px; border-top: 2px solid rgba(240, 240, 240, 0.5); border-left: 2px solid rgba(240, 240, 240, 0.5); }
.frame > .frame-inner::before { top: -1px; right: -1px; border-top: 2px solid rgba(240, 240, 240, 0.5); border-right: 2px solid rgba(240, 240, 240, 0.5); }
.frame > .frame-inner::after { bottom: -1px; left: -1px; border-bottom: 2px solid rgba(240, 240, 240, 0.5); border-left: 2px solid rgba(240, 240, 240, 0.5); }
.frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber); }

/* ---------- dot-grid backdrop ---------- */
.dot-grid { position: relative; }
.dot-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(240, 240, 240, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.dot-grid > * { position: relative; z-index: 1; }

/* ---------- status pill / live dot ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  background: rgba(240, 240, 240, 0.02);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(95, 167, 121, 0.5);
  animation: live-pulse 2.6s var(--ease) infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(95, 167, 121, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(95, 167, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 167, 121, 0); }
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { display: block; height: 34px; width: auto; }
.brand-logo:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.brand-logo--lg img { height: 54px; }

.header-right { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav-actions { display: flex; align-items: center; gap: 0.65rem; }
.nav-cluster { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.4rem); }
.site-nav__list { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2rem); }
.site-nav__list a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--ink); outline: none; }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-status { color: var(--ink-dim); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border);
}
.nav-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.nav-toggle__bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* call button in the bar: number hides on very small screens */
.nav-call .nav-call__num { display: none; }
@media (min-width: 420px) { .nav-call .nav-call__num { display: inline; } }

@media (max-width: 979px) {
  .nav-toggle { display: flex; }
  .nav-cluster {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.6rem var(--pad-x) 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-cluster.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-status { align-self: flex-start; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(1.25rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 54rem;
}
.hero__title {
  font-size: clamp(2.6rem, 5.2vw + 1rem, 4.6rem);
  margin-top: 1.4rem;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--amber);
}
.hero__subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 0.6vw + 0.98rem, 1.28rem);
  color: var(--ink-dim);
  max-width: 54ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero__reassure {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.hero__panel {
  width: 100%;
  max-width: 560px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: left;
}

/* terminal status block */
.terminal { font-family: var(--font-mono); }
.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.terminal__bar strong { color: var(--ink-dim); font-weight: 500; }
.terminal__bar .status-online {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--live);
}
.terminal__body { padding: 1.15rem 1rem 1.25rem; display: grid; gap: 0.5rem; }
.term-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  font-size: 0.82rem;
  padding-block: 0.35rem;
}
.term-row + .term-row { border-top: 1px solid var(--border); }
.term-row dt { color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; align-self: center; }
.term-row dd { margin: 0; color: var(--ink); }
.term-row dd b { color: var(--ink); font-weight: 500; }

/* ---------- pricing ---------- */
/* Section-scoped pricing palette and type. Amber is kept to the Recommended card
   (its label and border), so the eyebrow slashes are muted in this section. */
.services {
  --p-bg: #0D0D0D;
  --p-surface: #181818;
  --p-text: #F0F0F0;
  --p-muted: #8F8F8F;
  --p-faint: #5A5A5A;
  --p-line: rgba(240, 240, 240, 0.09);
  --p-line-strong: rgba(240, 240, 240, 0.18);
  --font-price: "Outfit", system-ui, sans-serif;
  --font-copy: "Work Sans", system-ui, sans-serif;
  background: var(--p-bg);
  font-family: var(--font-copy);
}
.services .eyebrow { color: var(--p-muted); }
.services .eyebrow::before { color: var(--p-faint); }
.services .section-head__lead { color: var(--p-muted); max-width: 48ch; }

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--p-line-strong); }
.price-card--recommended,
.price-card--recommended:hover { border-color: var(--amber); }

.price-card__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.35rem 1rem;
}
.price-card__name {
  grid-column: 1;
  font-family: var(--font-price);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.price-card__type {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-muted);
}
.price-tag {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 0.3rem 0.6rem;
  line-height: 1.2;
}

.price-card__pricing {
  padding-block: 1.25rem;
  border-block: 1px solid var(--p-line);
}
.price-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0 0.1rem;
  font-family: var(--font-price);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.price-card__amount { font-size: clamp(3rem, 2vw + 2.4rem, 3.75rem); letter-spacing: -0.04em; }
.price-card__unit { font-size: 1.35rem; letter-spacing: -0.01em; color: var(--p-muted); }
.price-card__from {
  margin-right: 0.35rem;
  font-family: var(--font-copy);
  font-weight: 500;
  font-size: 1rem;
  color: var(--p-muted);
}
.price-card__upfront-none {
  margin-top: 0.6rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--p-text);
}
.price-card__alt {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--p-line);
  font-size: 0.95rem;
  color: var(--p-muted);
}
.price-card__alt .nowrap,
.pricing-terms .nowrap { white-space: nowrap; }

.price-card__features { display: flex; flex-direction: column; gap: 0.65rem; flex-grow: 1; }
.price-card__features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--p-muted);
}
.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--p-faint);
}

.price-card__link {
  align-self: flex-start;
  margin-top: -0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--p-text);
  border-bottom: 1px solid var(--p-line-strong);
  transition: color 0.22s var(--ease);
}
.price-card__link::after { content: " \2197"; color: var(--p-muted); }
.price-card__link:hover { color: #FFFFFF; }
.price-card__link:active { color: var(--p-muted); }
.price-card__link:focus-visible { outline: 2px solid var(--p-text); outline-offset: 3px; }

/* Buttons stay neutral here so amber isn't spent on CTAs; the recommended tier gets
   the solid off-white button instead. */
.services .btn-secondary { color: var(--p-text); border-color: var(--p-line-strong); }
.services .btn-secondary:hover { color: var(--p-text); border-color: var(--p-line-strong); background: rgba(240, 240, 240, 0.06); }
.services .btn-secondary:active { background: rgba(240, 240, 240, 0.1); }
.services .btn-secondary:focus-visible,
.btn-ink:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--p-bg), 0 0 0 4px var(--p-text); }
.btn-ink { background: var(--p-text); color: #0D0D0D; }
.btn-ink:hover { background: #FFFFFF; transform: translateY(-2px); }
.btn-ink:active { background: #D8D8D8; transform: translateY(0); }

.pricing-terms {
  display: grid;
  gap: 1rem 2.5rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--p-line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
}
@media (min-width: 760px) { .pricing-terms { grid-template-columns: repeat(2, 1fr); } }
.pricing-terms dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-text);
}
.pricing-terms dd { margin: 0.35rem 0 0; color: var(--p-muted); max-width: 52ch; }

/* ---------- process (a real sequence -> numbered) ---------- */
.process-list {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: 1.8rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.process-step:last-child { border-bottom: 1px solid var(--border); }
.process-step.is-visible { opacity: 1; transform: translateY(0); }
.process-step__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  padding-top: 0.4rem;
}
.process-step__content h3 { font-size: 1.35rem; }
.process-step__content p { margin-top: 0.55rem; color: var(--ink-dim); max-width: 56ch; }

/* ---------- portfolio ---------- */
/* Single column: each card gets the full width so a homepage screenshot is
   legible rather than a thumbnail. Card order alternates light and dark sites
   on purpose -- see the note in index.html. */
.case-grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.case-study { display: flex; transition: transform 0.28s var(--ease); }

/* Scroll reveal. Gated on .js so the cards are visible when JS doesn't run,
   and applied to .case-study (not .frame-inner) because the corner brackets
   sit on both elements and would tear apart if only the inner moved.
   The slow reveal transition is swapped for the snappy one once revealed,
   so the hover lift stays quick. */
.js .case-study { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .case-study.is-visible { opacity: 1; transform: translateY(0); transition: transform 0.28s var(--ease); }
.case-study:hover { transform: translateY(-4px); }
.js .case-study.is-visible:hover { transform: translateY(-4px); }
.case-study > .frame-inner {
  display: grid;
  gap: 0;
  width: 100%;
  transition: border-color 0.28s var(--ease);
}
@media (min-width: 820px) {
  .case-study > .frame-inner { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
}
.case-study:hover > .frame-inner { border-color: var(--border-strong); }
.case-study__media { overflow: hidden; border-bottom: 1px solid var(--border); }
@media (min-width: 820px) {
  .case-study__media { border-bottom: none; border-right: 1px solid var(--border); }
}
/* Stacked: let the 4:3 screenshot set its own height. A min-height here would make
   the box squarer than the image and cover would crop the sides, cutting the first
   characters off each site's headline. */
.case-study__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 820px) {
  /* Side by side the media stretches to the row height, so it needs a floor. */
  .case-study__media img { min-height: 300px; }
}

.case-study__body {
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}
/* beside a tall screenshot the copy is short, so centre it rather than
   leaving a block of dead space under the link */
@media (min-width: 820px) { .case-study__body { justify-content: center; } }
.case-study__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--live);
  margin-bottom: 0.4rem;
}
.case-study__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.case-study__title { font-size: 1.5rem; }
.case-study__desc { color: var(--ink-dim); font-size: 0.96rem; max-width: 46ch; }
.case-study__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  align-self: flex-start;
  margin-top: 0.8rem;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--amber-bright);
  transition: gap 0.22s var(--ease), color 0.22s var(--ease);
}
.case-study__link::after { content: "\2192"; transition: transform 0.22s var(--ease); }
.case-study__link:hover { color: var(--amber); }
.case-study__link:hover::after { transform: translateX(4px); }
.case-study__link:focus-visible { outline: 2px solid var(--amber-line); outline-offset: 3px; }

/* ---------- about ---------- */
.about__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .about__inner { grid-template-columns: 1fr 0.85fr; } }
.about__body { display: flex; flex-direction: column; gap: 1.2rem; }
.about__body p { color: var(--ink-dim); font-size: 1.05rem; }
.about__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw + 1.1rem, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-left: 1.1rem;
  border-left: 2px solid var(--amber);
}
.spec-sheet { font-family: var(--font-mono); }
.spec-sheet .frame-inner { padding: 0.4rem 1.2rem; }
.spec-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-block: 0.95rem;
  font-size: 0.82rem;
}
.spec-row + .spec-row { border-top: 1px solid var(--border); }
.spec-row dt { color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.7rem; align-self: center; }
.spec-row dd { margin: 0; color: var(--ink); }

/* ---------- areas ---------- */
.areas-grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.area-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background-color 0.28s var(--ease);
}
.area-card:hover { transform: translateY(-3px); border-color: var(--amber-line); background: var(--surface-2); }
.area-card h3 {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.area-card h3::before { content: ""; width: 7px; height: 7px; background: rgba(240, 240, 240, 0.35); flex-shrink: 0; }
.area-card p { margin-top: 0.55rem; font-size: 0.9rem; color: var(--ink-dim); }

/* UK-wide callout */
.areas-uk { margin-top: 1rem; }
.areas-uk .frame-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.areas-uk__text { flex: 1 1 22rem; min-width: 0; }
.areas-uk__text h3 { font-size: 1.35rem; margin-top: 0.9rem; }
.areas-uk__text p { margin-top: 0.6rem; color: var(--ink-dim); max-width: 52ch; }
.areas-uk .btn { flex-shrink: 0; }

/* ---------- contact ---------- */
.contact__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 0.85fr 1.15fr; } }
.contact__intro h2 { font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem); }
.contact__intro p { margin-top: 1rem; color: var(--ink-dim); max-width: 40ch; }

.contact-call {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-call__label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-call__num {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
  width: fit-content;
}
.contact-call__num:hover, .contact-call__num:focus-visible { color: var(--amber-bright); outline: none; }
.contact-call__num svg { width: 1.4rem; height: 1.4rem; color: var(--amber); }

.contact__whatsapp-note { font-size: 0.9rem !important; color: var(--ink-faint) !important; margin-top: 1.6rem !important; }
.btn-whatsapp { margin-top: 0.9rem; }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.1rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-tint);
}
.field-hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: -0.4rem; }

.form-success[hidden], .contact-form[hidden], .frame[hidden] { display: none; }
.contact__form-col { display: flex; flex-direction: column; }
#contactSuccessWrap { margin-top: 0; }
.form-success {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  animation: fade-up 0.5s var(--ease) both;
}
.form-success__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem;
  background: rgba(95, 167, 121, 0.14);
  color: var(--live);
}
.form-success__icon svg { width: 1.35rem; height: 1.35rem; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--ink-dim); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer__inner { display: grid; gap: 2rem; }
@media (min-width: 860px) {
  .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; }
}
.site-footer__brand { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.site-footer__brand p { color: var(--ink-dim); font-size: 0.92rem; max-width: 32ch; }

/* social: same bordered-pill language as .status-pill; wraps as accounts are added */
.social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  background: rgba(240, 240, 240, 0.02);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.social-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-link:hover { color: var(--ink); border-color: var(--amber-line); background: var(--amber-tint); }
.social-link:active { color: var(--amber-bright); }
.social-link:focus-visible { outline: 2px solid var(--amber-line); outline-offset: 3px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p { font-size: 0.9rem; color: var(--ink-dim); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { transition: color 0.2s var(--ease); width: fit-content; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--ink); outline: none; }
.footer-col a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.footer-address {
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-dim);
}
.site-footer__meta {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.site-footer__meta a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s var(--ease); }
.site-footer__meta a:hover, .site-footer__meta a:focus-visible { color: var(--amber-bright); }
.footer-status { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- legal / policy pages ---------- */
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal__head h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem); margin-top: 0.9rem; }
.legal__updated {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  padding: 0.42rem 0.75rem;
}
.legal__content p { color: var(--ink-dim); margin-bottom: 1rem; }
.legal__content h2 { font-size: 1.35rem; margin-top: 2.6rem; margin-bottom: 0.8rem; }
.legal__content h2:first-of-type { margin-top: 1.5rem; }
.legal__content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal__content li { position: relative; padding-left: 1.5rem; color: var(--ink-dim); }
.legal__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: rgba(240, 240, 240, 0.35);
}
.legal__content a {
  color: var(--amber-bright);
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.legal__content a:hover, .legal__content a:focus-visible { color: var(--amber); outline: none; }
.legal__content a:focus-visible { text-decoration-color: var(--amber); }

/* ---------- responsive overflow hardening ---------- */
.hero__inner > *, .about__inner > *, .contact__inner > *,
.site-footer__inner > *, .contact__form-col,
.frame, .frame > .frame-inner,
.terminal, .terminal__body, .term-row, .term-row > *,
.spec-row > *, .process-step, .process-step__content,
.case-study__body { min-width: 0; }

.hero__title, .section-head h2, .contact__intro h2,
.price-card__name, .case-study__title, .about__quote,
.process-step__content h3, .form-success h3 { overflow-wrap: break-word; }

.hero__reassure, .term-row dd, .spec-row dd,
.terminal__bar strong, .eyebrow, .status-pill, .nav-status { overflow-wrap: anywhere; }

/* ---------- entrance animation ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fade-up 0.8s var(--ease) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.16s; }
.reveal-3 { animation-delay: 0.28s; }
.reveal-4 { animation-delay: 0.40s; }
.reveal-5 { animation-delay: 0.52s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .process-step { opacity: 1; transform: none; }
}
