/* ============================================================
   RICHP0.05 — DESIGN SYSTEM v2 (complete rebuild)
   Brand locked: teal #008a85 · aqua #4FE6DF · deep #00575E
                 orange #F8931F · amber #d97a0d
   ============================================================ */

:root {
  /* Brand */
  --teal:        #008a85;
  --teal-bright: #4FE6DF;
  --teal-deep:   #00575E;
  --teal-ink:    #00323a;
  --teal-night:  #00212b;
  --orange:      #F8931F;
  --amber:       #d97a0d;

  /* Neutrals */
  --ink:       #0d1f22;
  --paper:     #ffffff;
  --mist:      #f4f8f8;
  --mist-2:    #eaf3f3;
  --line:      #e3ecec;
  --gray:      #5b6b6d;
  --gray-soft: #636f71;

  /* Layout */
  --max:  1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 20px;
  --radius-sm: 13px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Shadow scale */
  --sh-sm: 0 2px 8px rgba(0,50,58,0.06);
  --sh-md: 0 12px 32px rgba(0,50,58,0.09);
  --sh-lg: 0 26px 60px rgba(0,50,58,0.14);
  --sh-glow: 0 16px 44px rgba(248,147,31,0.30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal-bright); color: var(--teal-night); }

/* ---------- LAYOUT PRIMITIVES ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(76px, 10vw, 136px) 0; position: relative; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--teal-ink); color: #fff; }
.section--tight { padding: clamp(52px, 7vw, 84px) 0; }

/* ---------- TYPE ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2.6px;
  text-transform: uppercase; color: var(--orange);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--orange);
  display: inline-block; border-radius: 2px;
}
.h1 { font-size: clamp(38px, 6vw, 70px); font-weight: 800; line-height: 1.03; letter-spacing: -2.2px; }
.h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -1.4px; }
.h3 { font-size: clamp(19px, 2.2vw, 25px); font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--gray); line-height: 1.72; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: -0.2px; }
.grad-text {
  background: linear-gradient(100deg, var(--orange) 0%, #ffb866 60%, var(--teal-bright) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.sec-head { max-width: 740px; margin-bottom: clamp(42px, 6vw, 76px); }
.sec-head .h2 { margin: 16px 0 18px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px; font-size: 15px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all 0.35s var(--ease); white-space: nowrap; position: relative; overflow: hidden;
}
.btn--primary { background: var(--orange); color: #0d1f22; box-shadow: 0 6px 20px rgba(248,147,31,0.26); }
.btn--primary:hover { background: var(--amber); transform: translateY(-3px); box-shadow: var(--sh-glow); }
.btn--teal { background: var(--teal-deep); color: #fff; }
.btn--teal:hover { background: var(--teal-ink); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,87,94,0.30); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal-deep); background: var(--mist); transform: translateY(-2px); }
.btn--onDark { border-color: rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.04); }
.btn--onDark:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.55); transform: translateY(-2px); }
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease-soft);
}
.nav--scrolled { box-shadow: 0 4px 24px rgba(0,50,58,0.07); }
.nav__in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 42px; width: auto; }
.nav__brand b { font-size: 15.5px; font-weight: 800; letter-spacing: -0.4px; color: var(--teal-deep); display: block; line-height: 1.1; }
.nav__brand small { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray-soft); font-weight: 600; }
.nav__menu { display: flex; align-items: center; gap: 3px; }
.nav__menu a {
  font-size: 14.5px; font-weight: 500; color: var(--gray);
  padding: 9px 15px; border-radius: 100px; transition: all 0.25s var(--ease); position: relative;
}
.nav__menu a:hover { color: var(--teal-deep); background: var(--mist); }
.nav__menu a.is-active { color: var(--teal-deep); font-weight: 600; background: var(--mist-2); }
.nav__cta { background: var(--teal-deep) !important; color: #fff !important; font-weight: 600 !important; margin-left: 8px; }
.nav__cta:hover { background: var(--teal) !important; }
.nav__cta.is-active { background: var(--teal) !important; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--teal-deep); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

@media (max-width: 940px) {
  .nav__menu {
    position: fixed; inset: 76px 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch;
    padding: 14px var(--gutter) 26px; gap: 2px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all 0.3s var(--ease); max-height: calc(100vh - 76px); overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,50,58,0.10);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__menu a { padding: 15px 12px; font-size: 16px; }
  .nav__cta { text-align: center; margin: 8px 0 0; }
  .nav__burger { display: block; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(140deg, rgba(0,33,43,0.96) 0%, rgba(0,87,94,0.90) 52%, rgba(0,25,35,0.97) 100%),
    url('../assets/img/new-server-room.webp') center 40%/cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(79,230,223,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,230,223,0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 68%);
}
.hero__glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(248,147,31,0.16), transparent 62%);
  top: -180px; right: -140px; pointer-events: none; filter: blur(8px);
}
.hero__in {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  padding: clamp(84px, 12vw, 158px) var(--gutter) clamp(74px, 10vw, 124px);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.6px; color: var(--teal-bright);
  background: rgba(79,230,223,0.10); border: 1px solid rgba(79,230,223,0.28);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 30px;
}
.hero__badge i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(79,230,223,0.2); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79,230,223,0.2); }
  50% { box-shadow: 0 0 0 9px rgba(79,230,223,0.04); }
}
.hero h1 { max-width: 16ch; }
.hero__lead {
  max-width: 55ch; margin: 28px 0 40px;
  font-size: clamp(16px, 1.7vw, 19px); color: rgba(255,255,255,0.83); line-height: 1.72;
}
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero stat strip */
.hero__stats { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.12); background: rgba(0,25,35,0.55); }
.hero__stats-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); }
.hstat { padding: 32px 20px 32px 0; position: relative; }
.hstat:not(:last-child)::after { content: ''; position: absolute; right: 24px; top: 30%; height: 40%; width: 1px; background: rgba(255,255,255,0.14); }
.hstat b { display: block; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: #fff; letter-spacing: -1.2px; line-height: 1; }
.hstat b em { color: var(--orange); font-style: normal; }
.hstat small { display: block; font-size: 12.5px; color: rgba(255,255,255,0.62); margin-top: 9px; letter-spacing: 0.3px; }

@media (max-width: 720px) {
  .hero__stats-in { grid-template-columns: repeat(2, 1fr); }
  .hstat:not(:last-child)::after { display: none; }
  .hstat { padding: 22px 0; }
}

/* ---------- PAGE HERO (inner pages) ---------- */
.phero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(140deg, rgba(0,33,43,0.96), rgba(0,87,94,0.91) 55%, rgba(0,25,35,0.97));
  padding: clamp(76px, 10vw, 128px) 0 clamp(58px, 7vw, 90px);
}
.phero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(79,230,223,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,230,223,0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 28% 42%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 28% 42%, #000, transparent 70%);
}
.phero .wrap { position: relative; z-index: 2; }
.phero h1 { max-width: 22ch; margin-top: 16px; }
.phero p { max-width: 60ch; margin-top: 24px; color: rgba(255,255,255,0.82); font-size: clamp(16px, 1.7vw, 19px); }

/* ---------- CARD GRIDS ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

/* service card */
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; transition: all 0.45s var(--ease); position: relative; overflow: hidden;
}
.svc::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--teal-bright));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.svc:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc__ico {
  width: 56px; height: 56px; border-radius: 15px; background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-deep); margin-bottom: 22px; transition: all 0.45s var(--ease);
}
.svc:hover .svc__ico { background: var(--teal-deep); color: var(--teal-bright); transform: rotate(-4deg) scale(1.05); }
.svc h3 { font-size: 19.5px; font-weight: 700; margin-bottom: 11px; color: var(--teal-deep); letter-spacing: -0.3px; }
.svc p { font-size: 14.5px; color: var(--gray); line-height: 1.72; }
.svc__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--orange); transition: gap 0.3s var(--ease); }
.svc:hover .svc__link { gap: 12px; }

/* proof / project card */
.proof {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; transition: all 0.45s var(--ease); position: relative; overflow: hidden;
}
.proof::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal-deep));
  transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease);
}
.proof:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.proof:hover::after { transform: scaleY(1); }
.proof__tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; padding: 5px 13px; border-radius: 100px; margin-bottom: 16px;
}
.proof__tag--live { background: rgba(0,138,133,0.10); color: var(--teal-deep); }
.proof__tag--dev { background: rgba(248,147,31,0.13); color: var(--amber); }
.proof__tag--done { background: rgba(0,50,58,0.07); color: var(--teal-ink); }
.proof h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 10px; color: var(--teal-deep); line-height: 1.3; }
.proof p { font-size: 14px; color: var(--gray); line-height: 1.72; }
.proof__metric {
  font-family: var(--mono); font-size: 12px; color: var(--teal-deep);
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.pcard__note { margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: var(--gray-soft); font-style: italic; }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 76px); align-items: center; }
.split--flip .split__media { order: -1; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-lg); position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.8s var(--ease); }
.split__media:hover img { transform: scale(1.03); }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }

/* feature list */
.flist { list-style: none; margin-top: 26px; }
.flist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 15px; color: var(--ink); }
.flist li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--teal-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FE6DF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* ---------- MARQUEE (trust strip) ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mist); padding: 22px 0; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: var(--teal-deep); white-space: nowrap; opacity: 0.85; }
.marquee__item svg { color: var(--orange); flex-shrink: 0; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- STAT BAND (numbers section) ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.statband__i { padding: 36px 28px; border-right: 1px solid rgba(255,255,255,0.12); }
.statband__i:last-child { border-right: none; }
.statband__i b { display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -1.6px; line-height: 1; color: #fff; }
.statband__i b em { color: var(--orange); font-style: normal; }
.statband__i small { display: block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.62); line-height: 1.5; }
@media (max-width: 780px) { .statband { grid-template-columns: repeat(2, 1fr); } .statband__i:nth-child(2) { border-right: none; } .statband__i { border-bottom: 1px solid rgba(255,255,255,0.12); } }

/* ---------- PROCESS STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.stepc { position: relative; padding-top: 30px; }
.stepc::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--orange);
  position: absolute; top: 0; left: 0;
}
.stepc::after { content: ''; position: absolute; top: 10px; left: 40px; right: 0; height: 1px; background: var(--line); }
.stepc:last-child::after { display: none; }
.stepc h4 { font-size: 16.5px; font-weight: 700; color: var(--teal-deep); margin-bottom: 8px; }
.stepc p { font-size: 14px; color: var(--gray); line-height: 1.68; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } .stepc::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.foot { background: var(--teal-night); color: rgba(255,255,255,0.72); padding: clamp(58px, 8vw, 96px) 0 34px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 42px; }
.foot__brand img { height: 44px; margin-bottom: 18px; }
.foot__brand p { font-size: 14px; line-height: 1.72; max-width: 34ch; }
.foot__col h4 { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 16px; font-weight: 700; }
.foot__col a { display: block; font-size: 14.5px; padding: 6px 0; transition: color 0.25s, transform 0.25s; }
.foot__col a:hover { color: var(--teal-bright); transform: translateX(3px); }
.foot__base { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.10); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.5); }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; } .foot__brand { grid-column: 1 / -1; } }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- UTIL ---------- */
.center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 34px; } .mt-l { margin-top: 62px; }
.noise::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}


/* ============================================================
   PAGE-SPECIFIC COMPONENTS (moved from inline <style> for
   maintainability — rebuilt with visual polish)
   ============================================================ */

/* ---------- SERVICES PAGE ---------- */
.svc-block {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 66px); align-items: center;
  padding: clamp(50px, 7vw, 88px) 0; border-bottom: 1px solid var(--line);
}
.svc-block:last-child { border-bottom: none; }
.svc-block--flip .svc-block__media { order: -1; }
.svc-block__media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-lg); position: relative;
}
.svc-block__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.8s var(--ease); }
.svc-block:hover .svc-block__media img { transform: scale(1.04); }
.svc-block__num { font-family: var(--mono); font-size: 13px; color: var(--orange); font-weight: 500; letter-spacing: 1px; }
.svc-block h2 { font-size: clamp(24px, 3vw, 35px); font-weight: 800; letter-spacing: -1px; color: var(--teal-deep); margin: 12px 0 16px; line-height: 1.14; }
.svc-block p.desc { font-size: 16px; color: var(--gray); line-height: 1.76; }
@media (max-width: 940px) {
  .svc-block { grid-template-columns: 1fr; }
  .svc-block--flip .svc-block__media { order: 0; }
}

/* ---------- WORK PAGE ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.wcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all 0.45s var(--ease);
  display: flex; flex-direction: column; position: relative;
}
.wcard:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: transparent; }
.wcard__media { aspect-ratio: 16/9; overflow: hidden; background: var(--mist); position: relative; }
.wcard__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,33,43,0.34));
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.wcard:hover .wcard__media::after { opacity: 1; }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.wcard:hover .wcard__media img { transform: scale(1.06); }
.wcard__body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.wcard__tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; padding: 5px 13px; border-radius: 100px;
  margin-bottom: 15px; align-self: flex-start;
}
.wcard__tag--live { background: rgba(0,138,133,0.10); color: var(--teal-deep); }
.wcard__tag--dev { background: rgba(248,147,31,0.13); color: var(--amber); }
.wcard__tag--done { background: rgba(0,50,58,0.07); color: var(--teal-ink); }
.wcard h3 { font-size: 19.5px; font-weight: 700; color: var(--teal-deep); margin-bottom: 11px; line-height: 1.28; letter-spacing: -0.3px; }
.wcard p { font-size: 14.5px; color: var(--gray); line-height: 1.72; }
.wcard__metrics { margin-top: auto; padding-top: 20px; display: flex; gap: 26px; flex-wrap: wrap; }
.wcard__metric b { display: block; font-size: 21px; font-weight: 800; color: var(--teal-deep); letter-spacing: -0.6px; }
.wcard__metric small { font-size: 11.5px; color: var(--gray-soft); text-transform: uppercase; letter-spacing: 0.6px; }
.wcard__note { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--gray-soft); font-style: italic; }
@media (max-width: 940px) { .work { grid-template-columns: 1fr; } }

/* ---------- ABOUT PAGE ---------- */
.val { display: flex; gap: 16px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.val:last-child { border-bottom: none; }
.val__n {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-deep); color: var(--teal-bright);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; transition: all 0.35s var(--ease);
}
.val:hover .val__n { background: var(--orange); color: #fff; transform: scale(1.08); }
.val__t strong { display: block; color: var(--teal-deep); font-size: 15.5px; margin-bottom: 3px; }
.val__t span { font-size: 14.5px; color: var(--gray); line-height: 1.66; }

.cred { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cred__c {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: all 0.4s var(--ease);
}
.cred__c:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.cred__c .ic {
  width: 50px; height: 50px; margin: 0 auto 15px; border-radius: 13px;
  background: var(--mist); display: flex; align-items: center; justify-content: center;
  color: var(--teal-deep); transition: all 0.4s var(--ease);
}
.cred__c:hover .ic { background: var(--teal-deep); color: var(--teal-bright); }
.cred__c h4 { font-size: 15px; font-weight: 700; color: var(--teal-deep); margin-bottom: 6px; }
.cred__c p { font-size: 13.5px; color: var(--gray); line-height: 1.62; }
@media (max-width: 780px) { .cred { grid-template-columns: 1fr; } }

/* ---------- CONTACT PAGE ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 82px); align-items: start; }
.cm { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding 0.3s var(--ease); }
.cm:last-child { border-bottom: none; }
.cm:hover { padding-left: 6px; }
.cm__ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-deep); transition: all 0.35s var(--ease);
}
.cm:hover .cm__ic { background: var(--teal-deep); color: var(--teal-bright); }
.cm h4 { font-size: 15.5px; font-weight: 700; color: var(--teal-deep); margin-bottom: 3px; }
.cm__link { font-size: 15px; color: var(--teal-deep); font-weight: 600; transition: color 0.25s; }
.cm__link:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.cm p { font-size: 14.5px; color: var(--gray); }
.cm small { display: block; font-size: 12.5px; color: var(--gray-soft); margin-top: 4px; }
.cm--feature {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-ink));
  border-radius: var(--radius); padding: 26px; border-bottom: none; color: #fff;
}
.cm--feature .cm__ic { background: rgba(79,230,223,0.15); color: var(--teal-bright); }
.cm--feature h4 { color: #fff; }
.cm--feature .cm__link { color: var(--teal-bright); }
.cm--feature .cm__link:hover { color: #fff; }
.cm--feature small { color: rgba(255,255,255,0.6); }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- PORTAL PAGE ---------- */
.pgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 66px); align-items: start; }
.pform {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px); box-shadow: var(--sh-sm);
}
.fg { margin-bottom: 22px; }
.fg label { display: block; font-size: 13.5px; font-weight: 600; color: var(--teal-deep); margin-bottom: 8px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(0,138,133,0.10);
}
.fg textarea { resize: vertical; min-height: 110px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .frow { grid-template-columns: 1fr; } }
.psubmit {
  width: 100%; margin-top: 8px; padding: 17px; border: none; border-radius: 100px;
  background: var(--orange); color: #fff; font-family: var(--font); font-size: 16px;
  font-weight: 700; cursor: pointer; transition: all 0.3s var(--ease);
}
.psubmit:hover { background: var(--amber); transform: translateY(-2px); box-shadow: var(--sh-glow); }
.psecure { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--gray-soft); margin-top: 16px; }
.pside { position: sticky; top: 100px; }
.pcard { background: var(--mist); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; }
.pcard h4 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 18px; }
.pstep { display: flex; gap: 14px; margin-bottom: 18px; }
.pstep:last-child { margin-bottom: 0; }
.pstep__n {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-deep); color: var(--teal-bright);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.pstep__t strong { display: block; color: var(--teal-deep); font-size: 14.5px; margin-bottom: 2px; }
.pstep__t span { font-size: 13.5px; color: var(--gray); line-height: 1.62; }
@media (max-width: 940px) { .pgrid { grid-template-columns: 1fr; } .pside { position: static; } }


/* ============================================================
   BLOG
   ============================================================ */
.bfeat {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px,4vw,56px);
  align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.45s var(--ease);
}
.bfeat:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: transparent; }
.bfeat__media { display: block; height: 100%; overflow: hidden; }
.bfeat__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform 0.7s var(--ease); }
.bfeat:hover .bfeat__media img { transform: scale(1.04); }
.bfeat__body { padding: clamp(26px,3.5vw,44px); }
.bfeat__body h2 { font-size: clamp(22px,2.6vw,32px); font-weight: 800; letter-spacing: -0.9px; line-height: 1.16; margin: 14px 0 14px; }
.bfeat__body h2 a { color: var(--teal-deep); transition: color 0.25s; }
.bfeat__body h2 a:hover { color: var(--teal-deep); }
.bfeat__body p { font-size: 15.5px; color: var(--gray); line-height: 1.72; }
@media (max-width: 900px) { .bfeat { grid-template-columns: 1fr; } .bfeat__media img { aspect-ratio: 16/9; } }

.bcat {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; padding: 5px 13px; border-radius: 100px;
}
.bcat--tech { background: rgba(0,138,133,0.10); color: var(--teal-deep); }
.bcat--ai { background: rgba(248,147,31,0.13); color: var(--amber); }
.bcat--data { background: rgba(0,50,58,0.07); color: var(--teal-ink); }
.bcat--news { background: rgba(248,147,31,0.13); color: var(--amber); }
.bcat--offer { background: rgba(0,138,133,0.10); color: var(--teal-deep); }

.bmeta { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--gray-soft); }
.bmeta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-soft); display: inline-block; }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
@media (max-width: 940px) { .blog-grid { grid-template-columns: 1fr; } }
.bcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all 0.45s var(--ease);
}
.bcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.bcard__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--mist); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.bcard:hover .bcard__media img { transform: scale(1.06); }
.bcard__body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.bcard h3 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.3px; margin: 13px 0 10px; }
.bcard h3 a { color: var(--teal-deep); transition: color 0.25s; }
.bcard h3 a:hover { color: var(--teal-deep); }
.bcard p { font-size: 14.5px; color: var(--gray); line-height: 1.68; }
.bcard .bmeta { margin-top: auto; padding-top: 16px; }

/* ---- ARTICLE (post) LAYOUT ---- */
.article { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article__hero { margin-bottom: clamp(30px,4vw,52px); }
.article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 26px; font-size: 13.5px; color: var(--gray-soft); }
.article__meta strong { color: var(--teal-deep); font-weight: 600; }
.article__cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-lg); margin-bottom: clamp(30px,4vw,48px); }
.article__cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article__body { font-size: 17px; line-height: 1.82; color: #26393c; }
.article__body p { margin-bottom: 24px; }
.article__body h2 { font-size: clamp(22px,2.6vw,30px); font-weight: 800; color: var(--teal-deep); letter-spacing: -0.8px; line-height: 1.2; margin: 44px 0 18px; }
.article__body h3 { font-size: 20px; font-weight: 700; color: var(--teal-deep); margin: 34px 0 14px; }
.article__body ul, .article__body ol { margin: 0 0 24px 22px; }
.article__body li { margin-bottom: 10px; }
.article__body strong { color: var(--teal-deep); }
.article__body a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote {
  border-left: 4px solid var(--orange); background: var(--mist);
  padding: 20px 24px; margin: 28px 0; border-radius: 0 12px 12px 0;
  font-size: 17.5px; color: var(--teal-deep); font-style: italic;
}
.article__cta {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-ink)); color: #fff;
  border-radius: var(--radius); padding: clamp(28px,4vw,44px); margin: clamp(40px,5vw,64px) 0; text-align: center;
}
.article__cta h3 { color: #fff; font-size: clamp(20px,2.4vw,26px); font-weight: 800; margin-bottom: 12px; }
.article__cta p { color: rgba(255,255,255,0.78); font-size: 15.5px; line-height: 1.7; margin-bottom: 24px; max-width: 48ch; margin-left: auto; margin-right: auto; }

/* ---------- NEWSLETTER ---------- */
.news { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 46px); box-shadow: var(--sh-lg); }
.news__copy .eyebrow { margin-bottom: 12px; }
.news__copy .h2 { margin-bottom: 14px; }
.news__copy .lead { font-size: 15.5px; max-width: 46ch; }
.news__form { display: flex; flex-direction: column; }
.news__label { font-size: 12.5px; font-weight: 600; color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.news__row { display: flex; gap: 10px; }
.news__row input[type="email"] { flex: 1; min-width: 0; padding: 13px 15px; font-size: 15px; font-family: inherit; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.2s, box-shadow 0.2s; }
.news__row input[type="email"]:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(0,150,136,0.15); }
.news__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news__msg { margin-top: 12px; font-size: 13.5px; line-height: 1.5; min-height: 20px; }
.news__msg.is-ok { color: var(--teal-deep); font-weight: 600; }
.news__msg.is-err { color: #C0392B; font-weight: 600; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } .news__row { flex-direction: column; } .news__row .btn { width: 100%; justify-content: center; } }

/* ---------- SERVICE PAGES ---------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--gray-soft); margin-bottom: 18px; }
.crumb a { color: var(--teal-deep); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span[aria-hidden] { opacity: 0.5; }
.media-cap { display: block; margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--gray-soft); font-style: italic; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 19px 34px 19px 0; position: relative; font-size: 16.5px; font-weight: 700; color: var(--teal-deep); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--teal-deep); transition: transform 0.25s var(--ease); }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.faq p { font-size: 14.5px; color: var(--gray); line-height: 1.72; padding: 0 34px 20px 0; margin: 0; }

/* ---------- CASE STUDY ---------- */
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; padding: 22px 24px; background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; }
.cs-meta > div { display: flex; flex-direction: column; gap: 4px; }
.cs-meta span { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-soft, #6b7280); font-weight: 600; }
.cs-meta b { font-size: 15px; color: var(--ink, #111827); font-weight: 600; }
.note-block { max-width: 68ch; margin: 0 auto; padding: 26px 30px; background: var(--cream, #f7f5ef); border-left: 3px solid var(--teal, #0d9488); border-radius: 0 12px 12px 0; }
.note-block p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #374151; }
@media (max-width: 720px) { .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; padding: 18px; } .cs-meta b { font-size: 14px; } }
@media (max-width: 420px) { .cs-meta { grid-template-columns: 1fr; } }

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

/* ---------- FOCUS VISIBILITY (accessibility) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--ink a:focus-visible, .section--ink button:focus-visible, .foot a:focus-visible {
  outline-color: var(--teal-bright);
}
