/* ============================================================
   Tamagol — brand-driven, clean, Google-simple design system
   ============================================================ */
:root {
  /* Brand palette (from the Tamagol logo) */
  --blue:   #2C6EBE;
  --orange: #E23A2E;
  --green:  #46A546;
  --yellow: #F6B41E;
  --sky:    #56C5EE;
  --red:    #E23A2E;

  --blue-600:  #245c9e;
  --blue-050:  #eef5fc;
  --orange-050:#fcebe9;
  --green-050: #ecf7ec;
  --yellow-050:#fdf5e2;

  /* Neutrals */
  --ink:    #2b2f36;   /* headings / dark text (matches logo tagline) */
  --body:   #4a5158;   /* body copy */
  --muted:  #7b828b;
  --line:   #e8ebef;
  --bg:     #ffffff;
  --bg-alt: #f7f9fb;
  --white:  #ffffff;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.06);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05);
  --maxw: 1120px;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --round: "Baloo 2", "Inter", system-ui, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--round); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- brand color bar ---------- */
.topbar {
  height: 4px;
  background: linear-gradient(90deg,
    var(--orange) 0 22%, var(--sky) 22% 55%, var(--blue) 55% 82%, var(--green) 82% 100%);
}

/* ---------- wordmark (logo) ---------- */
.wordmark {
  font-family: var(--round);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .l { display: inline-block; }
.l-blue   { color: var(--blue); }
.l-orange { color: var(--orange); }
.l-green  { color: var(--green); }
.l-yellow { color: var(--yellow); }
.l-red    { color: var(--red); }
.l-grey   { color: #8b9199; }
/* four-color letter — smooth blend of all brand colors, slowly rotating */
@property --a-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.l-multi {
  background: conic-gradient(from var(--a-angle) at 50% 48%,
    var(--blue), var(--green), var(--yellow), var(--red), var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: a-spin 9s linear infinite;
}
@keyframes a-spin { to { --a-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .l-multi { animation: none; }
}

/* hero CTA + regions strip, centered within the centered hero */
.hero-center .hero-cta { justify-content: center; margin-top: 32px; }
.hero-center .trust-strip { justify-content: center; margin-top: 28px; }

/* legal pages */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal-wrap { max-width: 780px; margin: 0 auto; }
.legal-wrap h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.legal-wrap h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.legal-wrap p, .legal-wrap li { color: var(--body); font-size: 1rem; line-height: 1.75; }
.legal-wrap ul { margin: 8px 0 8px 22px; list-style: disc; }
.legal-wrap li { margin: 5px 0; }
.legal-wrap a { color: var(--blue); }
.legal-note { margin-top: 30px; padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; color: var(--muted); }

/* footer legal links */
.footer-legal a { color: var(--body); }
.footer-legal a:hover { color: var(--blue); }

/* standards & frameworks strip */
.standards { padding: clamp(34px, 5vw, 56px) 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.standards-title { text-align: center; color: var(--muted); font-weight: 600; font-size: .98rem; letter-spacing: .01em; margin-bottom: 20px; }
.standards-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.standards-list li { font-family: var(--round); font-weight: 700; font-size: 1.02rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 18px; box-shadow: var(--shadow-sm); }

/* honeypot (spam trap) — visually hidden but present for bots */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* floating "get in touch" button */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 15px;
  padding: 13px 21px; border-radius: 999px; box-shadow: 0 10px 26px rgba(44, 110, 190, .36);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.float-cta:hover { transform: translateY(-2px); background: var(--blue-600); box-shadow: 0 12px 30px rgba(44, 110, 190, .44); }
.float-cta svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .float-cta { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 14px; } }
@media print { .float-cta { display: none; } }

/* scroll-reveal (progressive enhancement; content is visible if JS is off) */
.js-reveal .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.powo {
  display: inline-block;
  width: .74em; height: .74em;
  align-self: center;
  transform: translateY(.02em);
}
.powo svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.wordmark.sm { font-size: 24px; }

/* ---------- buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(44,110,190,.28); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 8px 22px rgba(44,110,190,.34); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { --pad-y: 9px; --pad-x: 18px; font-size: 14.5px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { font-weight: 500; font-size: 15.5px; color: var(--body); transition: color .15s ease; }
.nav > a:hover { color: var(--blue); }
.nav > a.btn-primary { color: #fff; }
.nav > a.btn-primary:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 13px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 55% at 82% 0%, rgba(86,197,238,.16), transparent 60%),
    radial-gradient(50% 50% at 8% 12%, rgba(226,58,46,.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { max-width: 860px; }
.eyebrow {
  display: inline-block;
  font-weight: 600; font-size: 13.5px; letter-spacing: .04em;
  color: var(--blue);
  background: var(--blue-050);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero .hl { color: var(--orange); position: relative; }
.hero .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em;
  background: var(--yellow); opacity: .35; border-radius: 4px; z-index: -1;
}
.lede {
  margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--body); max-width: 640px;
}
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.trust-strip {
  margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
.trust-strip li { position: relative; padding-left: 26px; }
.trust-strip li::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px;
  transform: translateY(-50%); border-radius: 50%; background: var(--green);
}
.trust-strip li:nth-child(2)::before { background: var(--orange); }
.trust-strip li:nth-child(3)::before { background: var(--blue); }
.trust-strip li:nth-child(4)::before { background: var(--yellow); }
.trust-strip li:nth-child(5)::before { background: var(--sky); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.kicker {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 14px;
}
.kicker-blue { color: var(--blue); }
.kicker-orange { color: var(--orange); }
.kicker-green { color: var(--green); }
.kicker-yellow { color: #d99400; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section-sub { margin-top: 16px; font-size: 1.08rem; color: var(--body); }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe4ea; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .96rem; color: var(--body); }

/* icons */
.ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px;
}
.ic svg { width: 24px; height: 24px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 38px; height: 38px; border-radius: 10px; margin: 0; }
.ic.sm svg { width: 19px; height: 19px; }
.ic-blue   { background: var(--blue-050); }   .ic-blue svg   { stroke: var(--blue); }
.ic-orange { background: var(--orange-050); }  .ic-orange svg { stroke: var(--orange); }
.ic-green  { background: var(--green-050); }   .ic-green svg  { stroke: var(--green); }
.ic-yellow { background: var(--yellow-050); }  .ic-yellow svg { stroke: #d99400; }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; margin-top: 12px; }
.checklist { margin: 24px 0 30px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--body); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-050);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* glass card visual */
.split-visual { display: flex; justify-content: center; }
.glass-card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; box-shadow: var(--shadow);
}
.gc-row { display: flex; gap: 8px; margin-bottom: 22px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.d-orange { background: var(--orange); } .d-yellow { background: var(--yellow); } .d-green { background: var(--green); }
.gc-line { height: 12px; border-radius: 6px; background: #eef1f4; margin: 12px 0; }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w40 { width: 40%; }
.gc-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 0;
  background: var(--blue-050); color: var(--blue-600); font-weight: 600; font-size: 14px;
  padding: 9px 14px; border-radius: 10px;
}
.gc-badge svg { width: 17px; height: 17px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- features ---------- */
.features { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 6px 4px; }
.fnum {
  display: inline-flex; font-family: var(--round); font-weight: 800; font-size: 1.4rem;
  color: var(--blue); background: var(--blue-050);
  width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 14px; margin-bottom: 16px;
}
.feature:nth-child(2) .fnum { color: var(--orange); background: var(--orange-050); }
.feature:nth-child(3) .fnum { color: var(--green); background: var(--green-050); }
.feature:nth-child(4) .fnum { color: #d99400; background: var(--yellow-050); }
.feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: .96rem; }

/* ---------- about ---------- */
.founder { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.founder-badge {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--round); font-weight: 800; font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
}
.founder strong { display: block; color: var(--ink); font-size: 1.05rem; }
.founder span { color: var(--muted); font-size: .92rem; }

.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 420px; }
.stat-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.stat-k { display: block; font-family: var(--round); font-weight: 800; font-size: 2rem; line-height: 1; }
.stat-v { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.stat-blue { color: var(--blue); } .stat-orange { color: var(--orange); }
.stat-green { color: var(--green); } .stat-yellow { color: #d99400; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.4fr .9fr; gap: 32px; align-items: start; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fcfdfe; transition: border-color .15s ease, box-shadow .15s ease; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,110,190,.14); background: #fff;
}
.form-note { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 1em; }
.form-note.ok { color: var(--green); }
.form-note.err { color: #d64545; }

.contact-aside {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.section-alt .contact-aside { background: #fff; }
.contact-aside h3 { font-size: 1.1rem; margin-bottom: 18px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-weight: 500; color: var(--ink); }
.contact-item:hover:not(.static) { color: var(--blue); }
.contact-item.static { color: var(--body); }
.aside-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 52px 0 30px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--body); font-weight: 500; font-size: 15px; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .hero h1 br { display: none; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stat-list { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .wordmark { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ============================================================
   Landing v2 — huge logo, service tiles, AI band, projects
   ============================================================ */

/* centered hero — big logo as the focal point, vertically centered */
.hero-center {
  text-align: center;
  min-height: calc(100svh - 73px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(48px, 7vw, 84px);
}
/* header with no logo — centered, colorful menu */
.header-inner.no-brand { justify-content: center; position: relative; }
.header-inner.no-brand .nav { gap: 34px; }
.header-inner.no-brand .nav > a { font-weight: 600; transition: opacity .15s ease; }
.header-inner.no-brand .nav > a:nth-child(1) { color: var(--blue); }
.header-inner.no-brand .nav > a:nth-child(2) { color: var(--orange); }
.header-inner.no-brand .nav > a:nth-child(3) { color: var(--green); }
.header-inner.no-brand .nav > a:nth-child(4) { color: #d99400; }
.header-inner.no-brand .nav > a:hover { opacity: .65; }
.header-inner.no-brand .nav > a.btn-primary,
.header-inner.no-brand .nav > a.btn-primary:hover { color: #fff; opacity: 1; }
.header-inner.no-brand .nav-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

.hero-logo { position: relative; display: inline-block; margin: 6px 0 6px; padding-bottom: 20px; }
.wordmark.xl {
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  letter-spacing: -.5px;
}
/* amber smile spanning first "a" -> second "a" (under a-m-a), like the logo */
.hero-smile {
  position: absolute; left: 38%; transform: translateX(-50%);
  bottom: 2px; width: 36%; height: auto; overflow: visible;
}
.hero-smile path {
  fill: none; stroke: var(--yellow); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
}
.hero-tag {
  margin: 14px auto 0; max-width: 760px;
  font-family: var(--round); font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 2rem); color: var(--ink); line-height: 1.25;
}
.hero-tag .hl { color: var(--orange); }
.hero-ai {
  margin: 16px auto 0; max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--body);
}

/* ===== service tiles — free-standing, bigger, neon glow ===== */
.service-tiles {
  margin: clamp(48px, 6vw, 74px) auto 0;
  max-width: 1080px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.tile {
  --nc: 44, 110, 190;                 /* neon color (r,g,b), set per-tile below */
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 18px; padding: 26px 16px; text-align: center;
  background: transparent; border: 0; border-radius: 22px;
  transition: transform .22s ease;
}
.tile:hover { transform: translateY(-6px); }

.tile.t-blue   { --nc: 44, 110, 190; }
.tile.t-green  { --nc: 70, 165, 70; }
.tile.t-orange { --nc: 226, 58, 46; }
.tile.t-yellow { --nc: 246, 180, 30; }

.tile-ic { position: relative; height: 104px; display: flex; align-items: center; justify-content: center; }
.tile-ic::before {                    /* neon halo behind the icon — no frame */
  content: ""; position: absolute; left: 50%; top: 52%;
  width: 132px; height: 132px; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(var(--nc), .34), rgba(var(--nc), 0) 68%);
  filter: blur(6px); transition: transform .3s ease, opacity .3s ease;
}
.tile-ic svg {
  position: relative; z-index: 1; height: 100px; width: auto;
  filter: drop-shadow(0 4px 12px rgba(var(--nc), .45));
  transition: filter .28s ease, transform .22s ease;
}
.tile:hover .tile-ic::before { transform: translate(-50%, -50%) scale(1.2); }
.tile:hover .tile-ic svg { filter: drop-shadow(0 0 22px rgba(var(--nc), .72)); transform: translateY(-2px) scale(1.05); }
.tile-label {
  font-family: var(--round); font-weight: 700; font-size: 1.16rem; color: var(--ink); line-height: 1.2;
}
.tile-label em { display: block; font-style: normal; font-weight: 500; font-size: .82rem; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
.tiles-hint { margin-top: 26px; color: var(--muted); font-size: .95rem; font-weight: 500; }

/* tiles drop in one-by-one after the page loads (JS-triggered) */
.service-tiles.will-drop .tile { opacity: 0; }
.service-tiles.drop .tile { animation: tileDrop .62s cubic-bezier(.34, 1.56, .64, 1) both; }
.service-tiles.drop .tile:nth-child(1) { animation-delay: 0s; }
.service-tiles.drop .tile:nth-child(2) { animation-delay: .5s; }
.service-tiles.drop .tile:nth-child(3) { animation-delay: 1s; }
.service-tiles.drop .tile:nth-child(4) { animation-delay: 1.5s; }
@keyframes tileDrop {
  0%   { opacity: 0; transform: translateY(-48px); }
  60%  { opacity: 1; transform: translateY(10px); }
  80%  { transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== AI band ===== */
.ai-band {
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(86,197,238,.16), transparent 60%),
    linear-gradient(180deg, #f4f9fe, #eef5fc);
  text-align: center;
}
.ai-inner { max-width: 820px; }
.ai-pill {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  color: var(--blue-600); background: #fff; border: 1px solid #d6e6f7;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
}
.ai-band h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
.ai-lede { margin: 18px auto 0; max-width: 680px; font-size: 1.12rem; color: var(--body); }
.ai-points {
  margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left;
}
.ai-point {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.aip-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
.aip-blue { background: var(--blue-050); color: var(--blue); }
.aip-green { background: var(--green-050); color: var(--green); }
.aip-orange { background: var(--orange-050); color: var(--orange); }
.ai-point strong { display: block; color: var(--ink); font-size: 1.02rem; }
.ai-point span { display: block; color: var(--body); font-size: .92rem; margin-top: 3px; }
.ai-note { margin-top: 30px; font-size: 1.02rem; color: var(--body); }

/* ===== projects ===== */
.projects { grid-template-columns: repeat(4, 1fr); }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-tag {
  align-self: flex-start; font-weight: 700; font-size: 12px; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.tag-blue { background: var(--blue-050); color: var(--blue-600); }
.tag-green { background: var(--green-050); color: #2f8f2f; }
.tag-orange { background: var(--orange-050); color: #c0392b; }
.tag-yellow { background: var(--yellow-050); color: #b07d00; }
.project h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.proj-client { color: var(--muted); font-weight: 600; font-size: .86rem; margin-bottom: 12px; }
.project > p:last-child { font-size: .94rem; color: var(--body); }
.projects-cta { text-align: center; margin-top: 34px; color: var(--body); font-weight: 500; }
.projects-cta a { color: var(--blue); font-weight: 600; }

/* ===== sub-page hero ===== */
.subhero {
  padding: clamp(56px, 8vw, 92px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(86,197,238,.14), transparent 60%),
    var(--bg);
  text-align: center;
}
.subhero-inner { max-width: 720px; }
.subhero-ic { display: inline-flex; height: 84px; margin-bottom: 22px; }
.subhero-ic svg { height: 84px; width: auto; }
.subhero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
.subhero .lede { margin-left: auto; margin-right: auto; }
.subhero .btn { margin-top: 30px; }
.breadcrumb { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--blue); font-weight: 500; }

/* other-services quick links on sub-pages */
.otherservices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.os-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: 14.5px; color: var(--ink);
  transition: border-color .15s ease, color .15s ease;
}
.os-link:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 820px) {
  .service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; gap: 20px; }
  .ai-points { grid-template-columns: 1fr; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 400px; gap: 6px; }
  .tile { padding: 16px 6px; gap: 12px; }
  .tile-ic { height: 74px; }
  .tile-ic svg { height: 70px; }
  .tile-ic::before { width: 92px; height: 92px; }
  .tile-label { font-size: .98rem; }
  .projects { grid-template-columns: 1fr; }
}

/* ============================================================
   Two-tone T (blue crossbar + orange stem, as in the logo)
   ============================================================ */
.l-T {
  color: var(--blue);
  background: none;
  -webkit-text-fill-color: var(--blue);
}

/* ============================================================
   Preloader — wave → letters drop → smile draws → reveal
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }

.pl-logo { position: relative; display: inline-block; text-align: center; padding-bottom: 20px; }
.pl-word {
  font-family: var(--round); font-weight: 800; line-height: 1;
  font-size: clamp(3.4rem, 13vw, 8.5rem); letter-spacing: -.5px;
  display: inline-flex; align-items: baseline; white-space: nowrap;
}
.pl-letter { display: inline-block; will-change: transform; }

/* the power-button 'o' inside the loader */
.pl-o { display: inline-flex; width: .74em; height: .74em; align-self: center; transform: translateY(.02em); }
.pl-o svg { width: 100%; height: 100%; fill: none; stroke: var(--yellow); stroke-width: 2.6; stroke-linecap: round; }

/* Phase 1 — gentle wave while loading */
.preloader:not(.dropping) .pl-letter {
  animation: pl-wave 1.15s ease-in-out infinite;
}
.preloader:not(.dropping) .pl-letter:nth-child(1) { animation-delay: 0s; }
.preloader:not(.dropping) .pl-letter:nth-child(2) { animation-delay: .08s; }
.preloader:not(.dropping) .pl-letter:nth-child(3) { animation-delay: .16s; }
.preloader:not(.dropping) .pl-letter:nth-child(4) { animation-delay: .24s; }
.preloader:not(.dropping) .pl-letter:nth-child(5) { animation-delay: .32s; }
.preloader:not(.dropping) .pl-letter:nth-child(6) { animation-delay: .40s; }
.preloader:not(.dropping) .pl-letter:nth-child(7) { animation-delay: .48s; }
@keyframes pl-wave {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* Phase 2 — each letter drops into place, one after another */
.preloader.dropping .pl-letter {
  animation: pl-drop .6s cubic-bezier(.34, 1.56, .64, 1) both;
}
.preloader.dropping .pl-letter:nth-child(1) { animation-delay: 0s; }
.preloader.dropping .pl-letter:nth-child(2) { animation-delay: .12s; }
.preloader.dropping .pl-letter:nth-child(3) { animation-delay: .24s; }
.preloader.dropping .pl-letter:nth-child(4) { animation-delay: .36s; }
.preloader.dropping .pl-letter:nth-child(5) { animation-delay: .48s; }
.preloader.dropping .pl-letter:nth-child(6) { animation-delay: .60s; }
.preloader.dropping .pl-letter:nth-child(7) { animation-delay: .72s; }
@keyframes pl-drop {
  0%   { transform: translateY(-120px); opacity: 0; }
  55%  { transform: translateY(12px);   opacity: 1; }
  75%  { transform: translateY(-6px); }
  100% { transform: translateY(0);       opacity: 1; }
}

/* Phase 3 — the amber smile draws left → right */
.pl-smile {
  position: absolute; left: 38%; transform: translateX(-50%);
  bottom: 2px; width: 36%; height: auto; overflow: visible;
}
.pl-smile path {
  fill: none; stroke: var(--yellow); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.preloader.smile .pl-smile path { animation: pl-draw .75s ease-out forwards; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pl-letter, .pl-smile path { animation: none !important; }
  .pl-smile path { stroke-dashoffset: 0; }
}

/* ============================================================
   Mobile parity — keep the same design as desktop on phones
   ============================================================ */
@media (max-width: 720px) {
  /* homepage keeps the centered colorful menu (no hamburger) */
  .header-inner.no-brand { height: auto; min-height: 60px; flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .header-inner.no-brand .nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; max-width: 100%; }
  .header-inner.no-brand .nav-toggle { display: none; }
  .header-inner.no-brand .nav > a { font-size: 14.5px; }
  .header-inner.no-brand .nav > a.btn-primary { padding: 8px 15px; }

  /* hero: top-aligned on mobile so the logo isn't lost in vertical space */
  .hero-center { min-height: auto; justify-content: flex-start; padding-top: clamp(28px, 8vw, 44px); padding-bottom: 40px; }
  .wordmark.xl { font-size: clamp(2.5rem, 13vw, 4.6rem); }
  .hero-tag { font-size: clamp(1.15rem, 5vw, 1.55rem); }
  .hero-ai { font-size: 1rem; }
}
