/* ============================================================
   Techtitans Global — Design System
   Editorial-premium, corporate-trustworthy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --blue:        #1C51BA;
  --blue-deep:   #163f8f;
  --blue-700:    #1846a0;
  --blue-200:    #c3d2f0;
  --blue-100:    #e3ebfa;
  --blue-50:     #f1f5fd;

  --green:       #1c8a5a;   /* globe accent from logo */
  --green-deep:  #156b46;
  --green-50:    #ecf6f1;

  --ink:         #0a0b0d;
  --ink-2:       #2b2f36;
  --ink-3:       #5a616b;
  --line:        #e6e8ec;
  --line-2:      #d4d8df;

  --paper:       #f8f9fb;   /* cool off-white */
  --paper-2:     #eef1f6;
  --white:       #ffffff;

  /* Type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* Spacing rhythm */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 140px);

  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(16,30,60,.06), 0 1px 1px rgba(16,30,60,.04);
  --shadow-md: 0 18px 40px -24px rgba(16,38,90,.28), 0 2px 6px rgba(16,38,90,.06);
  --shadow-lg: 0 40px 80px -40px rgba(16,38,90,.40);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--blue); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.green { color: var(--green-deep); }
.eyebrow.green::before { background: var(--green); }
.eyebrow.light { color: var(--blue-200); }
.eyebrow.light::before { background: var(--blue-200); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }

.btn-light {
  background: #fff;
  color: var(--blue);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,249,251,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(248,249,251,.94); }
.nav-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--blue);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.022em;
}
.hero h1 .em { font-style: italic; color: var(--blue); }
.hero .lead {
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.62;
}
.hero-cta {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: clamp(24px, 4vw, 52px);
  flex-wrap: wrap;
}
.hero-meta .stat .num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.hero-meta .stat .lab {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 7px;
}

/* Hero portrait composition */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}
.geo-grid-bg {
  position: absolute;
  inset: -4% 4% 4% -4%;
  z-index: 0;
  background-image:
    linear-gradient(var(--blue-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-100) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at 75% 22%, #000 30%, transparent 68%);
          mask-image: radial-gradient(circle at 75% 22%, #000 30%, transparent 68%);
}
/* Brand-blue panel peeking behind the portrait (bottom-right) */
.portrait-panel {
  position: absolute;
  inset: 11% -3% 3% 12%;
  z-index: 1;
  border-radius: 22px;
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.portrait-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 78% 82%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 78% 82%, #000, transparent 72%);
}
/* The photo card (top-left, overlapping the blue panel) */
.portrait-card {
  position: absolute;
  inset: 2% 9% 9% 1%;
  z-index: 2;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #e9edf3;
  box-shadow: var(--shadow-lg);
}
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}
/* Green globe accent badge (echoes the logo) */
.globe-badge {
  position: absolute;
  top: 5%; right: 3%;
  width: clamp(54px, 14%, 80px);
  aspect-ratio: 1;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #2ba06b, var(--green) 45%, var(--green-deep) 100%);
  box-shadow: var(--shadow-md), inset -8px -10px 20px rgba(0,0,0,.22), inset 6px 6px 16px rgba(255,255,255,.18);
}
.globe-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 14px);
  -webkit-mask-image: radial-gradient(circle, #000 70%, transparent 71%);
          mask-image: radial-gradient(circle, #000 70%, transparent 71%);
}
/* Small green diamond accent (echoes the logo mark) */
.diamond {
  position: absolute;
  border: 2px solid var(--blue);
  border-radius: 14px;
}
.diamond.d-accent {
  inset: auto auto -3% -5%;
  width: 26%; aspect-ratio: 1;
  z-index: 2;
  transform: rotate(45deg);
  border-color: var(--green);
  opacity: .7;
}
.chip {
  position: absolute;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 600;
}
.chip .ico { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; flex: none; }

.float { animation: float 7s ease-in-out infinite; }
.float.b { animation-delay: -3.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin-bottom: 8px; }
}

/* ---------- Marquee / trust ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: 26px;
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust .label { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; font-weight: 600; }
.trust .logos { display: flex; gap: clamp(24px,4vw,52px); flex-wrap: wrap; align-items: center; }
.trust .logos span { font-family: var(--serif); font-size: 21px; color: var(--ink-3); opacity: .7; letter-spacing: -.01em; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 680px; }
.sec-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  margin-top: 18px;
  letter-spacing: -0.018em;
}
.sec-head .sub {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 18px;
  max-width: 56ch;
}
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .sub { margin-inline: auto; }

/* ---------- Services ---------- */
.services { background: var(--white); border-block: 1px solid var(--line); }
.svc-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 18px;
}
.svc {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  min-height: 248px;
  height: 100%;
}

.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.svc::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.svc:hover::after { transform: scaleY(1); }

.svc .mark { margin-bottom: 22px; }
.svc h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.svc p { margin-top: 11px; color: var(--ink-3); font-size: 15px; line-height: 1.58; }
.svc .more {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc .more .arr { transition: transform .2s; }
.svc:hover .more .arr { transform: translateX(4px); }
.svc .idx {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--line-2);
  font-style: italic;
}

@media (max-width: 940px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ---------- About / Why us ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about-art {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-art .ring {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 50%;
}
.about-art .r1 { inset: -20% -20% auto auto; width: 60%; aspect-ratio:1; }
.about-art .r2 { inset: auto auto -28% -18%; width: 75%; aspect-ratio:1; border-color: rgba(255,255,255,.14); }
.about-art .quad {
  position: absolute;
  inset: 18%;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
}
.about-art .quote {
  position: absolute;
  inset: auto 30px 30px 30px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(20px,2.4vw,28px);
  line-height: 1.3;
  font-weight: 400;
}
.about-art .quote .by { font-family: var(--sans); font-size: 13.5px; opacity: .8; margin-top: 14px; display:block; font-weight:500; }

.feats { margin-top: 30px; display: grid; gap: 4px; }
.feat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat .fi {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--blue-50);
  display: grid; place-items: center;
  flex: none;
}
.feat h4 { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0; }
.feat p { margin-top: 5px; color: var(--ink-3); font-size: 14.5px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-art { order: -1; }
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--blue);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 80% 10%, #000, transparent 70%);
          mask-image: radial-gradient(circle at 80% 10%, #000, transparent 70%);
}
.stats .wrap { position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-c .num {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-c .num .u { color: var(--blue-200); }
.stat-c .lab { margin-top: 14px; color: var(--blue-200); font-size: 15px; max-width: 22ch; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 40px 24px; } }

/* ---------- Process ---------- */
.steps {
  margin-top: clamp(40px,5vw,64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.step {
  padding: 0 26px;
  border-left: 1px solid var(--line);
  position: relative;
}
.step:first-child { padding-left: 0; border-left: none; }
.step .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--blue);
  width: 46px; height: 46px;
  border: 1.5px solid var(--blue-200);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.step h4 { font-family: var(--sans); font-weight: 700; font-size: 18px; }
.step p { margin-top: 10px; color: var(--ink-3); font-size: 14.5px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step { border-left: none; padding-left: 0; }
}

/* ---------- CTA / Contact ---------- */
.contact { background: var(--white); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact h2 { font-size: clamp(32px,4.4vw,54px); letter-spacing: -.018em; }
.contact .sub { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 42ch; }
.contact-list { margin-top: 36px; display: grid; gap: 18px; }
.cl-item { display: flex; gap: 14px; align-items: center; }
.cl-item .ci { width: 40px; height: 40px; border-radius: 9px; background: var(--blue-50); display:grid; place-items:center; flex:none; }
.cl-item .t { font-size: 13px; color: var(--ink-3); }
.cl-item .v { font-weight: 600; font-size: 15.5px; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display:block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; letter-spacing:.01em; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; text-align: center; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #c9ccd4;
  padding-block: clamp(56px, 7vw, 84px) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .wm {
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  font-weight: 500;
  letter-spacing: -.01em;
}
.foot-brand .wm b { color: var(--blue-200); font-weight: 500; font-style: italic; }
.foot-brand p { margin-top: 16px; max-width: 34ch; color: #9aa0ab; font-size: 14.5px; }
.foot-col h5 {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7e8593;
  margin: 0 0 18px;
  font-weight: 700;
}
.foot-col a { display: block; padding: 7px 0; color: #c9ccd4; font-size: 14.5px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(40px,5vw,64px);
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #8a909c;
}
.footer-bottom .soc { display: flex; gap: 10px; }
.footer-bottom .soc a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.footer-bottom .soc a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tweak: headline typeface ---------- */
body.sans-display h1,
body.sans-display h2,
body.sans-display .foot-brand .wm,
body.sans-display .about-art .quote {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.028em;
}
body.sans-display .hero h1 .em,
body.sans-display .foot-brand .wm b { font-style: normal; }
