/* =========================================================================
   OneEight — Managed IT, Cloud & Cybersecurity
   Main stylesheet
   -------------------------------------------------------------------------
   HOW TO RE-THEME / EDIT QUICKLY
   • Brand colours, fonts, spacing and radii all live in the :root block below.
     Change a value once here and it updates everywhere on the site.
   • Section spacing is controlled by the single ".section" rule.
   • Everything is commented by section so you can find things fast.
   ========================================================================= */

/* ----------------------------------------------------------------------
   1. DESIGN TOKENS  (edit colours / fonts / spacing here)
   ---------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --brand:        #3C5BFF;   /* primary electric blue */
  --brand-deep:   #2438C8;   /* darker blue for gradients / hovers */
  --mint:         #00C892;   /* "live / healthy" signal green */
  --mint-bright:  #00E5A8;   /* brighter mint for glows */

  /* Neutrals */
  --ink:          #0B1A30;   /* near-navy text + dark sections */
  --ink-2:        #41546B;   /* secondary text */
  --ink-3:        #6B7C92;   /* muted / captions */
  --canvas:       #F2F5FA;   /* page background (cool light) */
  --surface:      #FFFFFF;   /* cards */
  --surface-2:    #F7F9FC;   /* subtle alt surface */
  --line:         #E4E9F1;   /* hairline borders */
  --line-2:       #D7DEEA;

  /* Dark-section neutrals */
  --ink-surface:  #11243F;   /* raised cards on dark */
  --ink-line:     rgba(255,255,255,.10);

  /* Typography */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11,26,48,.06), 0 2px 6px rgba(11,26,48,.04);
  --shadow-md: 0 6px 20px rgba(11,26,48,.08), 0 2px 6px rgba(11,26,48,.05);
  --shadow-lg: 0 24px 60px rgba(11,26,48,.12), 0 8px 24px rgba(11,26,48,.06);
  --shadow-brand: 0 18px 50px rgba(60,91,255,.30);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----------------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------------------
   3. TYPOGRAPHY HELPERS
   ---------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(0,200,146,.5);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); }

/* gradient text accent */
.grad-text {
  background: linear-gradient(100deg, var(--brand) 10%, var(--mint) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ----------------------------------------------------------------------
   4. LAYOUT
   ---------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { color: var(--ink-2); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ----------------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem;
  padding: .92em 1.55em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(60,91,255,.42); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05em 1.9em; font-size: 1.05rem; }

/* ----------------------------------------------------------------------
   6. HEADER / NAV
   ---------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(242,245,250,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(11,26,48,.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

/* Logo lockup (mark + wordmark) */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand .mark { width: 46px; height: 28px; flex: none; }
.brand .wordmark { font-family: var(--font-display); font-size: 1.42rem; letter-spacing: -.03em; line-height: 1; }
.brand .wordmark .w1 { color: var(--ink-2); font-weight: 500; }
.brand .wordmark .w2 { color: var(--ink); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  padding: .5rem .85rem; border-radius: var(--r-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(11,26,48,.05); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content:""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ----------------------------------------------------------------------
   7. HERO
   ---------------------------------------------------------------------- */
.hero { position: relative; padding-top: 150px; padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-bg::before { /* soft radial glows */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 420px at 78% 18%, rgba(60,91,255,.16), transparent 60%),
    radial-gradient(520px 440px at 12% 75%, rgba(0,200,146,.13), transparent 62%);
}
.hero-grid { /* faint dotted grid */
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(11,26,48,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero-inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 600;
  background: var(--surface); border: 1px solid var(--line);
  padding: .5rem .85rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(0,200,146,.18); }

.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero p.lead { max-width: 33em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.hero-trust svg { width: 17px; height: 17px; color: var(--mint); flex: none; }

/* ---- Hero signature: operations loop + status panel ---- */
.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }

.ops-loop { width: 100%; max-width: 540px; }
.ops-loop .loop-path { fill: none; stroke: url(#heroGrad); stroke-width: 2.4; stroke-linecap: round; }
.ops-loop .loop-faint { fill: none; stroke: rgba(11,26,48,.08); stroke-width: 1.4; }
.ops-node { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.4; }
.ops-node-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-2); font-weight: 600; }
.ops-pulse { fill: var(--mint-bright); filter: drop-shadow(0 0 6px rgba(0,229,168,.9)); }

/* floating status panel over the loop */
.status-panel {
  position: absolute; right: -6px; bottom: 6px;
  width: min(280px, 76%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  animation: float-soft 6s ease-in-out infinite;
}
.status-panel .sp-head { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.status-panel .sp-head .live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(0,200,146,.5); animation: pulse-dot 2s var(--ease) infinite; }
.status-panel .sp-head .tag { margin-left: auto; font-size: .68rem; color: var(--mint); background: rgba(0,200,146,.12); padding: .15rem .5rem; border-radius: var(--r-pill); letter-spacing: .04em; }
.sp-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .86rem; }
.sp-row:first-of-type { border-top: 0; }
.sp-row .k { color: var(--ink-2); display: inline-flex; align-items: center; gap: .45rem; }
.sp-row .k svg { width: 15px; height: 15px; color: var(--brand); }
.sp-row .v { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.sp-row .v.ok { color: var(--mint); }

.status-chip {
  position: absolute; left: -4px; top: 8px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-pill); padding: .5rem .85rem;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: var(--shadow-lg);
  animation: float-soft 6s ease-in-out infinite reverse;
}
.status-chip .shield { width: 15px; height: 15px; color: var(--mint-bright); }

/* ----------------------------------------------------------------------
   8. LOGO / TRUST STRIP
   ---------------------------------------------------------------------- */
.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-strip .container { padding-block: 26px; }
.trust-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; justify-content: center; }
.trust-inner .label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.trust-item { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.trust-item svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ----------------------------------------------------------------------
   9. SERVICES
   ---------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-card::after { /* hover wash */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 200px at 100% 0%, rgba(60,91,255,.08), transparent 60%);
  transition: opacity .35s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(60,91,255,.4); }
.svc-card:hover::after { opacity: 1; }

.svc-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); letter-spacing: .05em; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(150deg, rgba(60,91,255,.12), rgba(0,200,146,.12));
  color: var(--brand);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: 6px; }
.svc-card .svc-tag { font-family: var(--font-mono); font-size: .78rem; color: var(--mint); font-weight: 600; margin-bottom: 14px; display: block; }
.svc-list { display: flex; flex-direction: column; gap: 9px; }
.svc-list li { display: flex; gap: .6rem; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.svc-list li svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }

/* ----------------------------------------------------------------------
   10. PROCESS BAND (dark)
   ---------------------------------------------------------------------- */
.band-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.band-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 380px at 88% 8%, rgba(60,91,255,.22), transparent 60%),
    radial-gradient(560px 380px at 6% 92%, rgba(0,200,146,.16), transparent 62%);
}
.band-dark .container { position: relative; }
.band-dark .eyebrow { color: var(--mint-bright); }
.band-dark h2 { color: #fff; }
.band-dark .lead { color: rgba(255,255,255,.72); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  background: var(--ink-surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: rgba(60,91,255,.5); }
.step .step-no {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  color: var(--ink); background: var(--mint-bright);
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { color: #fff; font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.68); font-size: .92rem; }
.step .arrow { position: absolute; top: 38px; right: -16px; color: rgba(255,255,255,.28); width: 26px; height: 26px; z-index: 2; }
.process .step:last-child .arrow { display: none; }
.loop-note { display: inline-flex; align-items: center; gap: .55rem; margin-top: 34px; font-family: var(--font-mono); font-size: .82rem; color: rgba(255,255,255,.72); }
.loop-note svg { width: 20px; height: 20px; color: var(--mint-bright); }

/* ----------------------------------------------------------------------
   11. WHY US
   ---------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-card .why-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--mint-bright); margin-bottom: 18px; }
.why-card .why-icon svg { width: 23px; height: 23px; }
.why-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.why-card p { color: var(--ink-2); font-size: .95rem; }

/* ----------------------------------------------------------------------
   12. INDUSTRIES
   ---------------------------------------------------------------------- */
.ind-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ind-list { display: flex; flex-wrap: wrap; gap: 12px; }
.ind-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: .7rem 1.1rem;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.ind-pill:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }
.ind-pill svg { width: 18px; height: 18px; color: var(--mint); }

/* ----------------------------------------------------------------------
   13. STATS BAND
   ---------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; }
.stat .num .grad-text { display: inline-block; }
.stat .lbl { margin-top: 10px; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.band-dark .stat .lbl { color: rgba(255,255,255,.7); }

/* ----------------------------------------------------------------------
   14. CONTACT + FORM
   ---------------------------------------------------------------------- */
.contact-wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 60px); align-items: start; }

.contact-aside .eyebrow { margin-bottom: 18px; }
.contact-aside h2 { margin-bottom: 18px; }
.contact-aside .lead { color: var(--ink-2); margin-bottom: 30px; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .cc-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, rgba(60,91,255,.14), rgba(0,200,146,.14)); color: var(--brand); }
.contact-card .cc-icon svg { width: 22px; height: 22px; }
.contact-card .cc-label { font-size: .78rem; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .04em; }
.contact-card .cc-value { font-weight: 600; color: var(--ink); }

/* The form card */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.form-card::before { content:""; position:absolute; inset:0 0 auto 0; height:5px; background: linear-gradient(100deg, var(--brand), var(--mint)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  padding: .82rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2341546B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(60,91,255,.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.10); }
.field .err { font-size: .78rem; color: #E5484D; font-weight: 500; min-height: 0; display: none; }
.field.invalid .err { display: block; }

/* honeypot — hidden from humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.form-foot .privacy { font-size: .82rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: .5rem; }
.form-foot .privacy svg { width: 16px; height: 16px; color: var(--mint); }

/* form status message */
.form-status { margin-top: 18px; border-radius: var(--r-md); padding: 14px 16px; font-size: .92rem; font-weight: 500; display: none; align-items: center; gap: .6rem; }
.form-status svg { width: 20px; height: 20px; flex: none; }
.form-status.show { display: flex; }
.form-status.success { background: rgba(0,200,146,.1); color: #047a5a; border: 1px solid rgba(0,200,146,.3); }
.form-status.error { background: rgba(229,72,77,.08); color: #c13135; border: 1px solid rgba(229,72,77,.25); }

.btn .spinner { width: 1.05em; height: 1.05em; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label, .btn.loading svg.send-ico { display: none; }

/* ----------------------------------------------------------------------
   15. FOOTER
   ---------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: clamp(60px, 7vw, 90px); position: relative; overflow: hidden; }
.site-footer::before { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(600px 300px at 85% 0%, rgba(60,91,255,.16), transparent 60%); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--ink-line); }
.footer-brand .f-logo { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; font-size: .92rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--ink-line); color: rgba(255,255,255,.8); transition: .25s var(--ease); }
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-3px); border-color: transparent; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: .82rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .92rem; color: rgba(255,255,255,.66); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--mint-bright); }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom .made { display: inline-flex; align-items: center; gap: .5rem; }
.footer-bottom .made svg { width: 16px; height: 16px; color: var(--mint); }

/* ----------------------------------------------------------------------
   16. SCROLL-REVEAL ANIMATIONS
   ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* Hero load animation (word lines) */
.hero .line span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.hero.loaded .line span { transform: none; }
.hero .fade-up { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero.loaded .fade-up { opacity: 1; transform: none; }
.hero.loaded .fade-up.d1 { transition-delay: .35s; }
.hero.loaded .fade-up.d2 { transition-delay: .48s; }
.hero.loaded .fade-up.d3 { transition-delay: .60s; }
.hero-visual { opacity: 0; transform: translateY(20px) scale(.98); transition: opacity 1s var(--ease) .25s, transform 1s var(--ease) .25s; }
.hero.loaded .hero-visual { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------
   17. KEYFRAMES
   ---------------------------------------------------------------------- */
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(0,200,146,.5);} 70% { box-shadow: 0 0 0 8px rgba(0,200,146,0);} 100% { box-shadow: 0 0 0 0 rgba(0,200,146,0);} }
@keyframes float-soft { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-9px);} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw-loop { to { stroke-dashoffset: 0; } }

/* loop draw-on */
.ops-loop .loop-path { stroke-dasharray: 1430; stroke-dashoffset: 1430; }
.hero.loaded .ops-loop .loop-path { animation: draw-loop 2.6s var(--ease) forwards .3s; }

/* ----------------------------------------------------------------------
   18. RESPONSIVE
   ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 360px; margin-bottom: 10px; }
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process .step .arrow { display: none; }
  .ind-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-quote-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  /* mobile drawer */
  .mobile-menu {
    position: fixed; inset: 76px 0 auto 0; z-index: 99;
    background: rgba(242,245,250,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter) 26px;
    display: none; flex-direction: column; gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: .85rem .4rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-of-type { border-bottom: 0; }
  .mobile-menu .btn { margin-top: 12px; }

  .services-grid, .why-grid, .stats { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stats { gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .status-panel { position: relative; right: auto; bottom: auto; width: 100%; max-width: 340px; margin-top: 18px; }
  .status-chip { display: none; }
  .hero-visual { min-height: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand .wordmark { font-size: 1.25rem; }
}

/* ----------------------------------------------------------------------
   19. REDUCED MOTION  (accessibility)
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero .line span, .hero .fade-up, .hero-visual { opacity: 1 !important; transform: none !important; }
  .ops-loop .loop-path { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   20. COFFEE NOTE  (the "why a coffee shop" line in contact)
   ============================================================ */
.coffee-note {
  margin-top: 22px;
  padding: 16px 18px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: linear-gradient(180deg, rgba(60,91,255,.05), rgba(0,200,146,.05));
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: var(--r-md);
}
.coffee-note strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   21. MULTIPAGE ADDITIONS  (SPA shell, pages, portfolio, CTA)
   ============================================================ */

/* page enter animation */
#app-main { display: block; }
.page-enter { animation: page-in .5s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* header logo as an image */
.brand-logo { height: 30px; width: auto; display: block; }

/* active tab */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { width: 100%; }
.mobile-menu a.active { color: var(--brand); }

/* centered hero (no side visual) */
.hero-centered { display: block; text-align: center; }
.hero-centered .hero-copy { max-width: 820px; margin: 0 auto; }
.hero-centered .hero-badge { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-trust { justify-content: center; }
.hero-centered h1 { font-size: clamp(2.6rem, 7vw, 5rem); }

/* section CTA button row */
.section-cta { display: flex; justify-content: center; margin-top: 44px; }

/* alt surface section */
.surface-alt { background: var(--surface-2); }

/* page hero (non-home pages) */
.page-hero { padding: clamp(120px, 16vh, 180px) 0 clamp(30px, 5vh, 56px); background:
  radial-gradient(60% 60% at 50% 0, rgba(60,91,255,.07), transparent 70%), var(--canvas); text-align: center; }
.page-hero .container { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 0; }
.page-hero .lead { margin: 16px auto 0; }

/* readable prose column (About / custom pages) */
.container.narrow { max-width: 760px; }
.prose p { font-size: 1.06rem; line-height: 1.8; color: var(--ink-2); margin: 0 0 1.1em; }
.prose p:first-child { font-size: 1.18rem; color: var(--ink); }

/* ---- Portfolio ---- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pf-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-decoration: none; color: inherit; }
a.pf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pf-media { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.pf-placeholder { display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pf), color-mix(in srgb, var(--pf) 55%, #0B1A30)); }
.pf-placeholder svg { width: 54px; height: 54px; color: rgba(255,255,255,.85); }
.pf-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pf-cat { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.pf-body h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.pf-body p { font-size: .94rem; color: var(--ink-2); line-height: 1.6; margin: 0; }
.pf-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--brand); }
.pf-link svg { width: 16px; height: 16px; }

/* portfolio filters */
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.pf-filter { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  padding: .5rem 1.1rem; border-radius: var(--r-pill); font: 600 .9rem/1 var(--font-body); cursor: pointer; transition: .25s var(--ease); }
.pf-filter:hover { border-color: var(--brand); color: var(--ink); }
.pf-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- standalone stats band (light) ---- */
.stats-band { background: var(--surface-2); }
.stats-band .lbl { color: var(--ink-3); }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--ink), #12294a); }
.cta-band .cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,.72); margin: 14px auto 28px; font-size: 1.05rem; }

/* footer tagline */
.footer-tag { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.15rem; margin: 0 0 6px; }

/* ---- admin preview banner ---- */
.preview-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--brand);
  color: #fff; text-align: center; padding: 10px 16px; font: 600 .9rem/1.4 var(--font-body); box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.preview-banner a { color: #fff; text-decoration: underline; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
