/* ============================================================
   DTechX V2.0 — "Ember Diagonal"
   Warm white ground · plum ink · ember accent
   Diagonal panel motif · motion-forward · single light world
   ============================================================ */

:root {
  /* ---- surfaces & ink ---- */
  --bg:          #ffffff;
  --bg-alt:      #fbf4ee;      /* warm sand — alt sections */
  --bg-deep:     #fff3ee;      /* soft ember wash — accent band */
  --surface:     #ffffff;
  --surface-2:   #fbf6f1;

  --ink:         #231b26;
  --ink-dim:     #6b5f6b;
  --ink-faint:   #9a8f9a;
  --on-deep:     #231b26;      /* text on --bg-deep */
  --on-deep-dim: #6b5f6b;

  --line:        rgba(35, 27, 38, 0.10);
  --line-strong: rgba(35, 27, 38, 0.18);

  /* ---- accent ---- */
  --ember:       #ff5c33;
  --ember-deep:  #d83f16;      /* AA text on white */
  --ember-soft:  rgba(255, 92, 51, 0.12);
  --ember-glow:  rgba(255, 92, 51, 0.32);
  --plum:        #3b2a4a;

  --btn-ink:     #ffffff;      /* text on ember button */

  /* ---- shape & motion ---- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt: -11deg;

  --shadow-sm: 0 1px 2px rgba(35,27,38,.05), 0 10px 24px -14px rgba(35,27,38,.14);
  --shadow-lg: 0 2px 6px rgba(35,27,38,.05), 0 30px 60px -30px rgba(35,27,38,.24);
  color-scheme: light;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--ember); color: var(--btn-ink); }

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

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 560px) { .container { padding: 0 20px; } }

.section { position: relative; padding: 128px 0; }
.section--tight { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: var(--on-deep); }
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep h4 { color: var(--on-deep); }
@media (max-width: 768px) {
  .section { padding: 84px 0; }
  .section--tight { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ember);
  transform: skewX(-24deg);
}
.section--deep .eyebrow { color: var(--ember-deep); }

.section-head { max-width: 60ch; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 18px; }
.section-head p { color: var(--ink-dim); font-size: 1.06rem; }
.section--deep .section-head p { color: var(--on-deep-dim); }

/* diagonal hairline divider */
.rule-diagonal {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  transform: skewY(-1.4deg);
  transform-origin: left;
  opacity: 0.6;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transform: translate(var(--bx), var(--by));
  transition: transform 0.4s var(--ease), box-shadow 0.35s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(120deg, var(--ember), var(--ember-deep));
  color: var(--btn-ink);
  box-shadow: 0 12px 30px -12px var(--ember-glow);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px var(--ember-glow); }
.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ember); color: var(--ember-deep); background: var(--ember-soft); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-arrow svg { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow svg, .btn.btn-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   Brand mark
   ============================================================ */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0);           /* PNG is black-on-transparent → render as ink */
}
/* on the ember gradient panel, flip the mark to white */
.panel-visual .brand-mark { filter: brightness(0) invert(1); }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: currentColor;
}
.brand-name .x { color: currentColor; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(35,27,38,.25);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-dim);
  padding: 5px 0;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0) skewX(-24deg);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1) skewX(-24deg); }

.header-actions { display: flex; align-items: center; gap: 14px; }
/* the fixed header has no background until scrolled, so this button can sit
   directly on the ember hero panel — an inner white ring + hard shadow keeps
   it legible against its own colour, not just against the page background */
.header-cta.btn-primary {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55),
    0 2px 10px rgba(35, 27, 38, 0.28);
}
.header-cta.btn-primary:hover {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.75),
    0 6px 16px rgba(35, 27, 38, 0.32);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
}
.nav-toggle span {
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.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: 900px) {
  .main-nav {
    position: fixed;
    inset: 0 -100% 0 auto;
    width: min(80vw, 360px);
    background: var(--bg-alt);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 48px;
    transition: right 0.5s var(--ease);
  }
  .main-nav.open { right: 0; }
  .main-nav a { font-size: 1.2rem; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Hero — diagonal ember panel, low-anchored headline
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;   /* anchor the content block to the bottom-left corner */
  padding: 168px 0 104px;
  overflow: hidden;
}
.hero-panel {
  position: absolute;
  top: -42vh; right: -34vw;
  width: 58vw; height: 122vh;
  background: linear-gradient(152deg, var(--ember), var(--ember-deep) 60%, var(--plum));
  border-radius: 44% 44% 46% 40% / 38% 34% 40% 44%;
  transform: rotate(var(--tilt));
  z-index: 0;
}
@media (max-width: 1100px) { .hero-panel { right: -42vw; width: 66vw; } }
@media (max-width: 760px) {
  .hero-panel { width: 88vw; right: -46vw; top: -30vh; height: 90vh; opacity: 0.9; }
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 50% at 32% 22%, rgba(255,255,255,.28), transparent 70%);
}
.hero-grid-lines {
  position: absolute;
  inset: auto auto 0 0;
  width: 62%;
  height: 66%;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: linear-gradient(to top right, #000, transparent 72%);
  mask-image: linear-gradient(to top right, #000, transparent 72%);
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  /* left-align the hero content with the header / rest of the page
     instead of centering it in the viewport */
  padding-left: max(28px, calc((100% - var(--container)) / 2 + 28px));
  padding-right: 28px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  max-width: 19ch;
  margin-bottom: 24px;
}
.hero h1 .word { display: inline-block; }
.hero .lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-dim);
  max-width: 44ch;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 54px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.hero-meta span { display: flex; align-items: center; gap: 9px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; background: var(--ember); transform: skewX(-24deg); }

/* the block rises into its bottom-left corner on load, after the headline's
   own word-by-word animation has mostly landed */
.hero .eyebrow,
.hero .lead,
.hero .hero-cta,
.hero .hero-meta {
  opacity: 0;
  animation: heroRise 0.7s var(--ease-out) both;
}
.hero .eyebrow    { animation-delay: 0s; }
.hero .lead        { animation-delay: 0.6s; }
.hero .hero-cta    { animation-delay: 0.74s; }
.hero .hero-meta   { animation-delay: 0.88s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-scroll {
  position: absolute;
  left: 28px; bottom: 26px;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-scroll i {
  width: 34px; height: 1px;
  background: var(--line-strong);
  position: relative; overflow: hidden;
}
.hero-scroll i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ember);
  animation: scrollline 2.1s var(--ease) infinite;
}
@keyframes scrollline {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@media (max-width: 640px) {
  .hero-scroll { display: none; }
  .hero-meta { gap: 20px 28px; margin-top: 40px; }
}

/* ============================================================
   Marquee ticker
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
  padding: 0 34px;
  display: flex; align-items: center; gap: 34px;
}
.ticker-track span::after { content: "/"; color: var(--ember); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Services grid + bento
   ============================================================ */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 940px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-services { grid-template-columns: 1fr; } }

/* asymmetric bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { padding: 34px 32px; display: flex; flex-direction: column; }
.b-half  { grid-column: span 3; }
.b-third { grid-column: span 2; }
.b-full  { grid-column: span 6; }
.b-half h3 { font-size: 1.4rem; }
.b-half p, .bento .b-full p { font-size: 1rem; }
.b-half .card-link, .bento .b-full .card-link { margin-top: auto; padding-top: 22px; }
.bento .b-full {
  flex-direction: row;
  align-items: center;
  gap: 40px;
  background: linear-gradient(120deg, var(--ember), var(--ember-deep));
  color: #fff;
  border-color: transparent;
}
.bento .b-full::before { display: none; }
.bento .b-full .card-icon { background: rgba(255,255,255,.16); color: #fff; margin-bottom: 0; flex-shrink: 0; width: 54px; height: 54px; }
.bento .b-full .b-full-body { flex: 1; }
.bento .b-full h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.bento .b-full p { color: rgba(255,255,255,.85); margin: 0; max-width: 52ch; }
.bento .b-full .card-link { color: #fff; margin: 0; white-space: nowrap; }
.bento .b-full:hover { transform: translateY(-4px); }
.b-pulse { display: inline-flex; align-items: center; gap: 9px; font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.b-pulse i { width: 8px; height: 8px; border-radius: 50%; background: #fff; position: relative; }
.b-pulse i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-half, .b-third { grid-column: span 1; }
  .bento .b-full { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .b-half, .b-third, .bento .b-full { grid-column: span 1; }
  .bento .b-full { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease), box-shadow 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ember);
  transform: scaleY(0) skewY(-8deg);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleY(1) skewY(-8deg); }
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ember-soft);
  color: var(--ember-deep);
  margin-bottom: 20px;
  transform: skewX(-6deg);
}
.card-icon svg { width: 22px; height: 22px; transform: skewX(6deg); }
.card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.card p { color: var(--ink-dim); font-size: 0.94rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ember-deep);
}
.card-link svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ============================================================
   Split (about / why)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split-media { order: 0; }
}

.panel-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--ember), var(--ember-deep) 60%, var(--plum));
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.panel-visual .brand-mark {
  width: 34%; height: 34%;
  opacity: 0.94;
}
.panel-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 26px);
}
.panel-visual::after {
  content: "";
  position: absolute;
  width: 60%; aspect-ratio: 1;
  right: -14%; bottom: -22%;
  background: rgba(0,0,0,.14);
  border-radius: 28%;
  transform: rotate(18deg);
}

.feature-list { display: grid; gap: 18px; margin-top: 30px; }
.feature-item { display: flex; gap: 15px; align-items: flex-start; }
.feature-item .tick {
  width: 22px; height: 22px;
  flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--ember-soft);
  color: var(--ember-deep);
  transform: skewX(-6deg);
}
.feature-item .tick svg { width: 12px; height: 12px; transform: skewX(6deg); }
.feature-item h4 { font-size: 1rem; margin-bottom: 3px; }
.feature-item p { color: var(--ink-dim); font-size: 0.92rem; }

.h2-mid { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 16px; }
.lead-p { color: var(--ink-dim); }
.section--deep .lead-p { color: var(--on-deep-dim); }

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.stat { border-left: 2px solid var(--ember); padding-left: 18px; transform: skewX(-0.001deg); }
.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .label { color: var(--ink-dim); font-size: 0.9rem; margin-top: 4px; }
.section--deep .stat .label { color: var(--on-deep-dim); }

/* ============================================================
   Process — connected timeline
   ============================================================ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 9px;
  height: 2px;
  background: var(--line);
}
.timeline-fill {
  position: absolute;
  left: 8px; top: 9px;
  height: 2px;
  width: 0%;
  background: var(--ember);
  transition: width 1.1s var(--ease);
}
.tl-step { position: relative; padding-top: 40px; }
.tl-step::before {
  content: "";
  position: absolute; top: 2px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.tl-step.reached::before { border-color: var(--ember); background: var(--ember); }
.tl-step .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--ember-deep);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.tl-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.tl-step p { color: var(--ink-dim); font-size: 0.9rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 30px; }
  .timeline::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .timeline-fill { display: none; }
  .tl-step { padding: 6px 0 30px 30px; }
  .tl-step::before { top: 6px; }
}

/* ============================================================
   Services — editorial index
   ============================================================ */
.svc-index { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 36px;
  align-items: start;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.svc-row .svc-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--ember-deep);
  padding-top: 12px;
}
.svc-row h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.5rem);
  transition: transform 0.4s var(--ease), color 0.35s var(--ease);
}
.svc-row .svc-body { color: var(--ink-dim); max-width: 60ch; margin-top: 14px; }
.svc-row .tag-row { margin-top: 20px; }
.svc-arrow {
  align-self: center;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  transition: transform 0.4s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.svc-arrow svg { width: 18px; height: 18px; }
.svc-row:hover h2 { color: var(--ember-deep); transform: translateX(10px); }
.svc-row:hover .svc-arrow { background: var(--ember); border-color: var(--ember); color: #fff; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 1fr; gap: 8px; padding: 34px 0; }
  .svc-row .svc-n { padding-top: 0; }
  .svc-arrow { display: none; }
  .svc-row:hover h2 { transform: none; }
}

/* ============================================================
   FAQ — accordion
   ============================================================ */
.faq { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--ember-deep); }
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ember);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item.open .faq-icon::before { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-a-inner { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  color: var(--ink-dim);
  font-size: 0.98rem;
  padding: 0 4px 26px;
  max-width: 68ch;
}
.faq-a a { color: var(--ember-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 60px 66px;
  background: linear-gradient(130deg, var(--ember), var(--ember-deep));
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 20ch; position: relative; z-index: 1; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 26px);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -8%; top: -70%;
  width: 42%; height: 240%;
  background: rgba(255,255,255,.10);
  transform: rotate(var(--tilt));
  border-radius: 7vw;
}
.cta-band .btn-primary { background: #fff; color: var(--ember-deep); box-shadow: 0 14px 34px -14px rgba(0,0,0,.35); }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.14); }
@media (max-width: 720px) { .cta-band { padding: 40px 26px; } }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 168px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -70%; right: -12%;
  width: 46%; height: 240%;
  background: linear-gradient(150deg, var(--ember), var(--ember-deep) 65%, var(--plum));
  transform: rotate(var(--tilt));
  border-radius: 9vw;
  opacity: 0.16;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); margin-bottom: 18px; max-width: 18ch; }
.page-hero p { color: var(--ink-dim); font-size: 1.1rem; max-width: 60ch; }

/* ============================================================
   Service detail rows
   ============================================================ */
.service-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-media { order: 2; }
@media (max-width: 860px) {
  .service-row, .service-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .service-row.reverse .service-media { order: 0; }
}
.service-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--ember), var(--ember-deep) 60%, var(--plum));
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.service-media::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 24px);
}
.service-media .m-num {
  font-family: "IBM Plex Mono", monospace;
  position: absolute;
  left: 22px; top: 18px;
  color: rgba(255,255,255,.75);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.service-media svg { width: 34%; height: 34%; color: var(--btn-ink); position: relative; }
.service-text h3 { font-size: 1.65rem; margin-bottom: 13px; }
.service-text > p { color: var(--ink-dim); margin-bottom: 22px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-row span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-card {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-card:first-child { padding-top: 0; }
.contact-card:last-child { border-bottom: none; }
.contact-card .card-icon { width: 42px; height: 42px; margin-bottom: 0; flex-shrink: 0; }
.contact-card .card-icon svg { width: 19px; height: 19px; }
.contact-card h4 { font-size: 0.98rem; margin-bottom: 3px; }
.contact-card a, .contact-card span { color: var(--ink-dim); font-size: 0.94rem; }
.contact-card a:hover { color: var(--ember-deep); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) { .form-card { padding: 26px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field select, .field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--ember-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .invalid, .field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: #d64524;
  box-shadow: 0 0 0 3px rgba(214, 69, 36, 0.14);
}
.field-error { display: none; font-size: 0.8rem; color: #d64524; }
.field-error.show { display: block; }
.form-status {
  display: none;
  font-size: 0.88rem; font-weight: 500;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.form-status.error { display: block; color: #d64524; background: rgba(214,69,36,.1); border: 1px solid rgba(214,69,36,.25); }
.form-status.success { display: block; color: var(--ember-deep); background: var(--ember-soft); border: 1px solid var(--line-strong); }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 13px; }

/* ============================================================
   Legal / prose
   ============================================================ */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.3rem; margin-top: 44px; margin-bottom: 13px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink-dim); margin-bottom: 13px; }
.legal ul { padding-left: 20px; margin-bottom: 13px; }
.legal li { color: var(--ink-dim); margin-bottom: 7px; list-style: disc; }
.legal a { color: var(--ember-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated {
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink-faint); font-size: 0.82rem; margin-bottom: 40px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 84px 0 30px;
}
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: var(--ink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--on-deep-dim); font-size: 0.92rem; margin: 16px 0 20px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.footer-social a:hover { color: var(--ember-deep); border-color: var(--ember); background: var(--ember-soft); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 16px; font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin-bottom: 11px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ember-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--ember); }

/* ============================================================
   Cookie notice
   ============================================================ */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 16px 24px;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -18px 40px -22px rgba(35,27,38,.4);
  transform: translateY(120%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.cookie-inner p { color: var(--ink-dim); font-size: 0.88rem; flex: 1 1 320px; }
.cookie-inner a { color: var(--ember-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Scroll reveal & load motion
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-reveal="left"]  { transform: translateX(-30px); }
.reveal[data-reveal="right"] { transform: translateX(30px); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

.hero [data-word] {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: wordrise 0.6s var(--ease-out) both;
}
.hero [data-word]:nth-child(1)  { animation-delay: 0.12s; }
.hero [data-word]:nth-child(2)  { animation-delay: 0.18s; }
.hero [data-word]:nth-child(3)  { animation-delay: 0.24s; }
.hero [data-word]:nth-child(4)  { animation-delay: 0.30s; }
.hero [data-word]:nth-child(5)  { animation-delay: 0.36s; }
.hero [data-word]:nth-child(6)  { animation-delay: 0.42s; }
.hero [data-word]:nth-child(7)  { animation-delay: 0.48s; }
.hero [data-word]:nth-child(8)  { animation-delay: 0.54s; }
.hero [data-word]:nth-child(9)  { animation-delay: 0.60s; }
.hero [data-word]:nth-child(10) { animation-delay: 0.66s; }
@keyframes wordrise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero [data-word] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ticker-track { animation: none; }
  .hero-scroll i::after { animation: none; }
  .hero-panel { transform: rotate(var(--tilt)); }
  .btn { transition: background 0.3s, border-color 0.3s, color 0.3s; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
