/* ============================================
   HAVLEK — styled after open-design.ai
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
  --paper:      #fafafa;
  --paper-warm: #f5f5f5;
  --paper-dark: #f0f0f0;
  --ink:        #262626;
  --ink-soft:   #434343;
  --ink-mute:   #595959;
  --ink-faint:  #8c8c8c;
  --coral:      #63fe13;
  --coral-soft: #83ff3b;
  --coral-tint: #f3ffe8;
  --olive:      #218c00;
  --bone:       #ffffff;
  --line:       #d9d9d9;
  --line-hover: #bfbfbf;
  --line-soft:  #f0f0f0;
  --line-faint: #f5f5f5;
  --shadow:     0 30px 60px -30px rgba(38,38,38,.16);
  --shadow-card:0 12px 36px rgba(26,26,26,.08);
  --sans:       "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius:     8px;
  --radius-lg:  14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Grain + radial texture overlay — identical to open-design.ai */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(217,217,217,.45) 0, transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(240,240,240,.72) 0, transparent 32%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.15  0 0 0 0 0.15  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: auto, auto, 240px 240px;
  mix-blend-mode: multiply;
  opacity: .62;
}

.shell { position: relative; z-index: 2; }

.container {
  max-width: 1360px;
  padding: 0 64px;
  margin: 0 auto;
  position: relative;
}

/* ---- TYPOGRAPHY ---- */
h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h3 { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
h4 { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
p  { color: var(--ink-mute); }

.label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.coral-text { color: var(--olive); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--ink);
  border-color: var(--coral);
}
.btn-primary:hover {
  background: var(--coral-soft);
  border-color: var(--coral-soft);
  box-shadow: 0 4px 20px rgba(99,254,19,.28);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(38,38,38,.22);
}
.btn-outline:hover {
  background: var(--paper-warm);
  border-color: rgba(38,38,38,.36);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-mute);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--ink); background: var(--paper-warm); }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-full { width: 100%; border-radius: var(--radius); }

/* ---- SIDE RAILS ---- */
.side-rail {
  position: fixed;
  top: 0; bottom: 0;
  width: 36px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-rail.right  { right: 0; border-left: 1px solid var(--line-faint); }
.side-rail.left   { left: 0;  border-right: 1px solid var(--line-faint); }
.rail-text {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.side-rail.right .rail-text { writing-mode: vertical-rl; transform: rotate(180deg); }
.side-rail.left  .rail-text { writing-mode: vertical-rl; transform: none; }

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

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  border-bottom: 1px solid transparent;
  padding: 9px 0;
  background: transparent;
  position: relative;
  z-index: 2;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.topbar-inner b { color: var(--ink); font-weight: 600; }
.topbar-inner .coral-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--olive);
}
.topbar-inner .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.topbar-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s, border-color .16s;
}
.topbar-link:hover { color: var(--olive); border-bottom-color: var(--olive); }

/* ============================================
   NAV
   ============================================ */
.site-chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transform: translateY(0);
  transition: transform .36s cubic-bezier(.22,.61,.36,1);
}
.site-chrome.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.nav {
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: width .42s cubic-bezier(.22,.61,.36,1),
              margin .42s cubic-bezier(.22,.61,.36,1),
              padding .42s cubic-bezier(.22,.61,.36,1),
              border-radius .42s cubic-bezier(.22,.61,.36,1),
              background .26s ease,
              border-color .26s ease,
              box-shadow .26s ease;
}
.site-chrome.is-condensed .nav {
  margin: 10px auto 0;
  width: min(1280px, calc(100% - 32px));
  padding: 8px 0;
  border-radius: 999px;
  border: 1px solid rgba(21,20,15,.08);
  background: rgba(255,255,255,.68);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 0 2px 1px rgba(255,255,255,.55),
              inset 0 0 10px 4px rgba(255,255,255,.22),
              0 6px 24px rgba(17,17,26,.06),
              0 12px 40px rgba(17,17,26,.05);
}
.site-chrome.is-condensed .nav > .container { padding: 0 28px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 1081px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .nav-inner > .brand { order: 1; justify-self: start; }
  .nav-inner > nav { order: 2; justify-self: center; }
  .nav-inner > .nav-side { order: 3; justify-self: end; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--coral);
  flex-shrink: 0;
  transition: background .18s;
}
.brand:hover .brand-mark { background: var(--olive); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  transition: color .16s;
}
.nav-links a:hover { color: var(--olive); }

.nav-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid rgba(38,38,38,.18);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}
.nav-mobile a {
  padding: 12px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav-mobile a:last-child { border-bottom: none; padding-top: 16px; }
.nav-mobile.open { display: flex; }

@media (max-width: 800px) {
  .nav-links, .nav-side { display: none; }
  .nav-toggle { display: flex; }
  .topbar { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-title {
  max-width: 860px;
  margin: 0 auto 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--olive);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  opacity: .7;
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-mute);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-clients {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.clients-divider {
  width: 1px; height: 16px;
  background: var(--line);
  display: inline-block;
}
.clients-label-small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.clients-names {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.clients-names span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: .04em;
}

.hero-visual {
  max-width: 880px;
  margin: 0 auto;
}
/* --- legacy mockup styles (kept for reference) --- */
.hero-mockup-bar {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hm-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hm-dot.red   { background: #ff5f57; }
.hm-dot.amber { background: #febc2e; }
.hm-dot.green { background: #28c840; }
.hm-url {
  flex: 1;
  height: 24px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  margin: 0 12px;
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--sans);
}
.hero-mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 280px;
}
.hmb-sidebar {
  background: var(--paper-warm);
  border-right: 1px solid var(--line-soft);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-item.active {
  background: var(--coral);
  color: var(--ink);
  font-weight: 600;
}
.sidebar-item .si-icon { font-size: 14px; opacity: .7; }
.hmb-main {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hmb-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.hmb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hmb-card {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
}
.hmb-card-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.hmb-card-label { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }
.hmb-card-change { font-size: 11px; color: var(--olive); font-weight: 600; margin-top: 4px; }
.hmb-bar {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
  flex: 1;
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
}
.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--line-soft);
  transition: height .3s ease;
}
.bar.active { background: var(--coral); }

@media (max-width: 700px) {
  .hero-mockup-body { grid-template-columns: 1fr; height: auto; }
  .hmb-sidebar { display: none; }
  .hmb-cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   DIVIDER
   ============================================ */
.section-divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

/* ============================================
   PROBLEM / CALLOUT BAND
   ============================================ */
.callout-band {
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-warm);
}
.callout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
.callout-text .label { margin-bottom: 16px; display: block; }
.callout-text h2 { margin-bottom: 20px; }
.callout-text p { margin-bottom: 16px; font-size: 1.02rem; }
.callout-text p:last-of-type { margin-bottom: 28px; }

.stats-stack { display: flex; flex-direction: column; gap: 1px; }
.stat-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bone);
  border: 1px solid var(--line-soft);
}
.stat-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.stat-row:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  min-width: 90px;
  flex-shrink: 0;
  line-height: 1;
}
.stat-num span { color: var(--olive); }
.stat-body { flex: 1; }
.stat-label { font-size: 0.82rem; color: var(--ink-mute); line-height: 1.4; }

@media (max-width: 768px) {
  .callout-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================
   AI SERVICES
   ============================================ */
.services-section { padding: 100px 0; }
.section-header { margin-bottom: 64px; }
.section-header .label { display: block; margin-bottom: 14px; }
.section-header h2 { margin-bottom: 16px; max-width: 600px; }
.section-header p { font-size: 1.02rem; max-width: 560px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bone);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: background .16s ease;
}
.service-card:hover { background: var(--coral-tint); }
.service-card--featured {
  background: var(--ink);
  color: var(--paper);
}
.service-card--featured:hover { background: #1a1a1a; }
.service-card--featured h3 { color: var(--bone); }
.service-card--featured p  { color: rgba(250,250,250,.65); }
.service-card--featured .sc-list li { color: rgba(250,250,250,.6); }
.service-card--featured .sc-list li::before { color: var(--coral); }
.service-card--featured .sc-link { color: var(--coral); }
.service-card--featured .sc-link:hover { color: var(--coral-soft); }

.sc-icon {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: block;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.service-card > p { margin-bottom: 20px; font-size: 0.9rem; line-height: 1.6; flex: 1; }
.sc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.sc-list li {
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}
.sc-list li::before {
  content: '✓';
  color: var(--olive);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.78rem;
  margin-top: 1px;
}
.sc-link {
  color: var(--olive);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .16s, color .16s;
}
.sc-link:hover { gap: 8px; color: var(--ink); }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid { grid-template-columns: 1fr; } }

/* ============================================
   PROCESS — STACKED CARDS
   ============================================ */
.process-section { padding: 100px 0; background: var(--paper-warm); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.process-step {
  background: var(--bone);
  padding: 32px 28px;
  transition: background .16s;
}
.process-step:hover { background: var(--coral-tint); }
.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.process-step h3 { margin-bottom: 10px; font-size: 1rem; }
.process-step p { font-size: 0.86rem; }

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================================
   TECH SERVICES
   ============================================ */
.tech-section { padding: 100px 0; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.tech-card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  transition: box-shadow .2s, border-color .2s, background .16s;
}
.tech-card:hover {
  border-color: var(--line-hover);
  box-shadow: var(--shadow);
  background: var(--paper-warm);
}
.tc-icon { font-size: 1.5rem; margin-bottom: 16px; display: block; }
.tech-card h3 { margin-bottom: 9px; }
.tech-card p { font-size: 0.88rem; }

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive);
  background: var(--coral-tint);
  border: 1px solid rgba(99,254,19,.3);
  border-radius: 100px;
  padding: 3px 8px;
  margin-bottom: 10px;
  margin-top: 12px;
}

@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

/* ============================================
   CLIENTS
   ============================================ */
.clients-section {
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.clients-logo-row {
  display: flex;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.client-tile {
  flex: 1;
  background: var(--bone);
  padding: 28px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-mute);
  letter-spacing: .04em;
  transition: background .16s, color .16s;
}
.client-tile:hover { background: var(--coral-tint); color: var(--ink); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.testimonial {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.t-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 20px;
}
.t-author {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 640px) {
  .clients-logo-row { flex-wrap: wrap; }
  .client-tile { min-width: calc(50% - 0.5px); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT
   ============================================ */
.about-section { padding: 100px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.about-text .label { display: block; margin-bottom: 16px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p  { margin-bottom: 16px; font-size: 1.02rem; }
.about-text p:last-of-type { margin-bottom: 0; }

.about-nums {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}
.about-num {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}
.about-num:last-child { border-right: none; }
.about-num-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.about-num-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  background: var(--bone);
  padding: 28px 24px;
  transition: background .16s;
}
.pillar:hover { background: var(--coral-tint); }
.pillar-icon { font-size: 1.3rem; margin-bottom: 12px; display: block; }
.pillar h4 { margin-bottom: 8px; }
.pillar p { font-size: 0.84rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.contact-section {
  padding: 100px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--paper-warm);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.contact-text .label { display: block; margin-bottom: 16px; }
.contact-text h2 { margin-bottom: 20px; }
.contact-text > p { margin-bottom: 28px; font-size: 1.02rem; }
.contact-benefits { display: flex; flex-direction: column; gap: 10px; }
.cb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.cb-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}

.contact-form {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 13px;
  color: var(--ink);
  font-size: 0.9rem;
  font-family: var(--sans);
  transition: border-color .16s, box-shadow .16s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(38,38,38,.06);
}
.form-note { text-align: center; font-size: 0.76rem; color: var(--ink-faint); margin-top: 10px; }

.contact-details {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cd-item { display: flex; flex-direction: column; gap: 4px; }
.cd-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cd-item p { margin: 0; font-size: 0.9rem; color: var(--ink-mute); line-height: 1.5; }
.cd-item a { font-size: 0.95rem; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--coral); }
.cd-item a:hover { color: var(--coral); }

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-mark { background: var(--coral); color: var(--ink); }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,.45);
  margin-top: 16px;
  max-width: 260px;
  line-height: 1.6;
}
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 4px;
}
.fl-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .16s;
}
.fl-col a:hover { color: var(--coral); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span { font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: .04em; }

@media (max-width: 900px)  { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }
@media (max-width: 520px)  { .footer-inner { grid-template-columns: 1fr; } }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.23,1,.32,1), transform .5s cubic-bezier(.23,1,.32,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BRAND LOGO IMAGE
   ============================================ */
.brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-logo-invert {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* ============================================
   CLIENT LOGO TILES (real images)
   ============================================ */
.client-tile img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter .2s, opacity .2s;
  display: block;
  margin: 0 auto;
}
.client-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
}
.client-tile {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   CALLOUT ILLUSTRATION
   ============================================ */
.callout-illustration {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}

/* ============================================
   HERO VISUAL (image)
   ============================================ */
.hero-visual {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 2px 8px rgba(38,38,38,.06);
  background: var(--bone);
}

/* ============================================
   FORM SUCCESS
   ============================================ */
.form-success {
  text-align: center;
  padding: 52px 24px;
}
.form-success-icon { font-size: 2.5rem; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; color: var(--ink); }
.form-success p { color: var(--ink-faint); }

/* ============================================
   RESPONSIVE CONTAINER
   ============================================ */
@media (max-width: 900px)  { .container { padding: 0 32px; } }
@media (max-width: 520px)  { .container { padding: 0 20px; } }

/* ============================================
   INNER PAGES — SHARED
   ============================================ */
.page-hero {
  padding: 140px 0 72px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.page-hero h1  { margin-bottom: 16px; }
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--ink-mute);
  max-width: 520px;
  margin-bottom: 32px;
}
.page-hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.page-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.phs-item {
  background: var(--bone);
  padding: 24px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.phs-item span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

@media (max-width: 860px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 800px) {
  .page-hero { padding: 104px 0 56px; }
  .post-hero { padding-top: 100px; padding-bottom: 44px; }
  .post-hero-img { margin-top: 28px; }
  .post-hero h1 { font-size: 2rem; line-height: 1.18; letter-spacing: -0.02em; }
}
@media (max-width: 480px) {
  .post-hero h1 { font-size: 1.65rem; }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; transition: color .14s; }
.breadcrumb a:hover { color: var(--olive); }
.breadcrumb span { color: var(--line-hover); }
.breadcrumb span:last-child { color: var(--ink-mute); }

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.ftab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bone);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
  transition: all .14s;
}
.ftab:hover  { border-color: var(--line-hover); color: var(--ink); }
.ftab.active { background: var(--ink); color: var(--coral); border-color: var(--ink); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pcard {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .2s, border-color .2s, background .14s;
  display: flex;
  flex-direction: column;
}
.pcard:hover { border-color: var(--line-hover); box-shadow: var(--shadow); background: var(--paper-warm); }
.pcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pcard-logo {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
}
.pcard-logo-wide { max-width: 120px; }
.pcard-logo-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-mute);
  letter-spacing: .02em;
}
.pcard-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pcard-tags span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--paper-dark);
  color: var(--ink-mute);
  border-radius: 4px;
  padding: 3px 7px;
}
.pcard h3 { font-size: 1rem; margin-bottom: 10px; }
.pcard > p { font-size: 0.86rem; margin-bottom: 14px; flex: 1; }
.pcard-tech {
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: .04em;
  border-top: 1px solid var(--line-faint);
  padding-top: 12px;
  margin-top: auto;
}

@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .portfolio-grid { grid-template-columns: 1fr; } }

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}
.blog-card:hover { border-color: var(--line-hover); box-shadow: var(--shadow); }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.blog-cat {
  background: var(--coral-tint);
  color: var(--olive);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
}
.blog-card h2 { font-size: 1rem; margin-bottom: 10px; }
.blog-card h2 a { color: var(--ink); text-decoration: none; transition: color .14s; }
.blog-card h2 a:hover { color: var(--olive); }
.blog-card > p { font-size: 0.86rem; flex: 1; margin-bottom: 16px; }
.blog-read-more {
  color: var(--olive);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap .14s, color .14s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.blog-read-more:hover { color: var(--ink); gap: 8px; }

.blog-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-faint);
}
.blog-loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.blog-loading-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  animation: dots 1.2s ease-in-out infinite;
}
.blog-loading-dots span:nth-child(2) { animation-delay: .2s; }
.blog-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

.blog-error { text-align: center; padding: 40px 0; color: var(--ink-mute); }
.blog-error a { color: var(--olive); }

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
  max-width: 100%;
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .page-link { min-width: 34px; height: 34px; padding: 0 9px; font-size: 0.8rem; }
  .blog-pagination { gap: 6px; }
}

/* Single post */
.post-hero { padding-top: 140px; padding-bottom: 60px; }
.post-hero-inner { max-width: 800px; }
.post-hero h1 { font-size: clamp(2rem, 3.2vw, 2.85rem); line-height: 1.15; }
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.post-excerpt {
  font-size: 1.15rem;
  color: var(--ink-mute);
  line-height: 1.65;
  margin-top: 16px;
}
.post-body-wrap { padding: 60px 0 100px; border-top: 1px solid var(--line-soft); }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.post-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 680px;
}
.post-body h2 { font-size: 1.4rem; margin: 36px 0 12px; color: var(--ink); }
.post-body h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--ink); }
.post-body p  { margin-bottom: 16px; }
.post-body ul, .post-body ol { padding-left: 20px; margin-bottom: 16px; }
.post-body li { margin-bottom: 6px; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body hr { border: none; border-top: 1px solid var(--line-soft); margin: 32px 0; }
.post-body a  { color: var(--olive); text-decoration: underline; }

.post-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-widget h4 { margin-bottom: 8px; }
.sidebar-widget p { font-size: 0.86rem; }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

/* Post extras — hero image, blockquote, sources, related, back link */
.post-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: block;
  margin-top: 36px;
}
.post-cat {
  display: inline-block;
  background: var(--coral-tint);
  color: var(--olive);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-body blockquote {
  border-left: 3px solid var(--coral);
  background: var(--paper-warm);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body blockquote p { font-style: italic; font-size: 1.08rem; color: var(--ink); margin: 0; }
.post-sources { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.post-sources h2 { font-size: 1.2rem; margin-bottom: 16px; }
.post-sources ul { list-style: none; display: flex; flex-direction: column; gap: 14px; padding: 0; }
.post-sources li { font-size: 0.9rem; color: var(--ink-mute); line-height: 1.6; }
.post-sources a { color: var(--olive); text-decoration: none; font-weight: 600; }
.post-sources a:hover { text-decoration: underline; }
.post-related { padding: 64px 0; border-top: 1px solid var(--line-soft); background: var(--paper-warm); }
.post-related .section-header { margin-bottom: 36px; }
.back-to-blog { display: inline-flex; align-items: center; gap: 6px; color: var(--olive); font-weight: 600; text-decoration: none; font-size: 0.9rem; transition: gap .14s; }
.back-to-blog:hover { gap: 10px; }

/* Blog listing card with thumbnail image */
.blog-card.has-img { padding: 0; overflow: hidden; }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-card-pad { padding: 24px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card-ph {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #0c4a6e 60%, #155e75);
  color: rgba(255,255,255,.72);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 1.25rem;
}

/* Blog pagination links */
.page-link {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.page-link:hover { border-color: var(--olive); color: var(--olive); }
.page-link.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ============================================
   CONTACT INFO BLOCK
   ============================================ */
.contact-info-block { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.cib-item { display: flex; align-items: flex-start; gap: 16px; }
.cib-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.cib-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.cib-value { font-size: 0.9rem; color: var(--ink-mute); line-height: 1.5; }
.cib-value a { color: var(--olive); text-decoration: none; }
.cib-value a:hover { text-decoration: underline; }
