/* Translink Consultancy: public site */
:root {
  /* Brand (sampled from the logo) */
  --royal: #145bba;
  --royal-700: #0f4a9c;
  --navy: #0b1f4d;
  --navy-800: #081739;
  --cyan: #3bb3eb;
  --cyan-200: #96deff;
  /* Accents */
  --amber: #ffb020;
  --orange: #ff8a3d;
  --teal: #14b8a6;
  --violet: #6d6af5;

  --ink: #0f1a2e;
  --muted: #4a5568;
  --line: #dbe4f0;
  --tint: #f3f8ff;
  --white: #fff;

  --grad-brand: linear-gradient(135deg, var(--navy) 0%, #0f3483 45%, var(--royal) 100%);
  --grad-accent: linear-gradient(120deg, var(--amber) 0%, var(--orange) 100%);
  --grad-primary: linear-gradient(120deg, var(--navy) 0%, var(--royal) 100%);
  --grad-soft: linear-gradient(160deg, #f3f8ff 0%, #e9f6fd 55%, #fff7ea 100%);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 18px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--royal); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 0.8rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 32px; height: 4px; border-radius: 4px; background: var(--grad-accent); }
.eyebrow-light { color: var(--cyan-200); }
h1, h2 { font-family: var(--display); font-weight: 800; color: var(--navy); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.95rem, 3.5vw, 3rem); line-height: 1.1; }
h3 { font: 700 1.18rem/1.3 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.h-sm { font-size: 1.3rem; margin-bottom: 18px; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: #e4ecff; max-width: 36em; margin-top: 24px; }
.lede-dark { color: var(--muted); margin: 0 0 28px; }
.section-intro { color: var(--muted); max-width: 40em; margin-top: 18px; }
.prose { color: #2d3748; }
.prose p + p { margin-top: 1.1em; }
.prose-lg { font-size: 1.08rem; line-height: 1.75; }
.prose h2 + p, .prose p + h2 { margin-top: 1.4em; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--display); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s; }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 0.93rem; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--grad-accent); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(255, 138, 61, .7); }
.btn-accent:hover { box-shadow: 0 16px 32px -12px rgba(255, 138, 61, .85); }
.btn-primary { background: var(--grad-primary); color: var(--white); box-shadow: 0 10px 24px -12px rgba(20, 91, 186, .8); }
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(20, 91, 186, .9); }
.btn-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.btn-ghost { border-color: var(--royal); color: var(--royal); background: transparent; }
.btn-ghost:hover { background: var(--royal); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--display); color: var(--royal); text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xl { width: 56px; height: 56px; }

/* ---------- Header (glass, changes on scroll) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.brand { display: inline-block; flex: none; }
.brand img { width: 178px; height: auto; }
.site-header .logo-on-light { display: none; }
.site-header.is-scrolled .logo-on-dark, .site-header.menu-open .logo-on-dark { display: none; }
.site-header.is-scrolled .logo-on-light, .site-header.menu-open .logo-on-light { display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; }
.site-nav ul a { position: relative; color: var(--white); text-decoration: none; font: 600 0.95rem var(--display); padding: 6px 0; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav ul a:hover::after { transform: scaleX(1); }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 8px 30px -12px rgba(11, 31, 77, .25); }
.site-header.is-scrolled .header-inner { height: 66px; }
.site-header.is-scrolled .site-nav ul a { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font: 700 0.95rem var(--display); color: var(--white); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .site-header.is-scrolled .nav-toggle, .site-header.menu-open .nav-toggle { color: var(--navy); border-color: var(--line); background: var(--white); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(11,31,77,.35); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a, .site-header.is-scrolled .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .site-nav ul a::after { display: none; }
  .site-nav .btn { margin-top: 20px; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { position: absolute; }
  html:not(.js) .site-nav { display: flex; position: static; background: transparent; box-shadow: none; border: 0; padding: 0 0 16px; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; }
}

/* ---------- Animated blobs ---------- */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob.b1 { width: 520px; height: 520px; background: var(--cyan); top: -160px; right: -120px; animation: drift1 22s ease-in-out infinite alternate; }
.blob.b2 { width: 380px; height: 380px; background: var(--teal); bottom: -140px; left: -80px; opacity: .4; animation: drift2 26s ease-in-out infinite alternate; }
.blob.b3 { width: 300px; height: 300px; background: var(--amber); top: 40%; left: 45%; opacity: .28; animation: drift3 30s ease-in-out infinite alternate; }
.blobs-soft .blob { opacity: .22; }
@keyframes drift1 { to { transform: translate(-140px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(160px, -90px) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-180px, -60px) scale(.85); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section > .wrap { position: relative; z-index: 1; }
.section-tight { padding: 40px 0 var(--section); }
.section-color { background: var(--grad-soft); overflow: hidden; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-cta { margin-top: 48px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* ---------- Hero 1 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-open { background: var(--grad-brand); color: var(--white); padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(64px, 8vw, 120px); }
.hero-open h1 { color: var(--white); }
.hero-open h1 { background: linear-gradient(100deg, #fff 0%, #fff 55%, var(--cyan-200) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-open-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-open-media { position: relative; }
.hero-open-media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 28px; background: linear-gradient(135deg, var(--cyan), var(--amber)); opacity: .9; }
.hero-open-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }

/* ---------- Icon chips & tones ---------- */
.icon-chip { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--white); background: linear-gradient(135deg, var(--royal), var(--cyan)); box-shadow: 0 10px 20px -10px rgba(20, 91, 186, .8); }
.icon-chip-lg { width: 60px; height: 60px; border-radius: 18px; }
.icon-chip-lg .icon { width: 28px; height: 28px; }
.tone-1 .icon-chip, .tone-1.chip::before { background: linear-gradient(135deg, #0f9488, var(--teal) 50%, var(--cyan)); box-shadow: 0 10px 20px -10px rgba(20, 184, 166, .8); }
.tone-2 .icon-chip, .tone-2.chip::before { background: var(--grad-accent); box-shadow: 0 10px 20px -10px rgba(255, 138, 61, .8); }
.tone-3 .icon-chip, .tone-3.chip::before { background: linear-gradient(135deg, var(--violet), var(--cyan)); box-shadow: 0 10px 20px -10px rgba(109, 106, 245, .8); }

/* ---------- About pillars ---------- */
.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(11, 31, 77, .35); }
.pillar h3 { margin-top: 20px; }
.pillar p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }

/* ---------- Services ---------- */
.services { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (min-width: 961px) { .services.services-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service { position: relative; padding: 30px 24px 32px; border-radius: 22px; background: rgba(255,255,255,.9); border: 1px solid rgba(20, 91, 186, .12); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.service::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--royal), var(--cyan)); opacity: 0; transition: opacity .35s; }
.service.tone-1::before { background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.service.tone-2::before { background: var(--grad-accent); }
.service.tone-3::before { background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.service:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 28px 50px -20px rgba(20, 91, 186, .45), 0 0 0 1px rgba(59, 179, 235, .35); }
.service.tone-1:hover { box-shadow: 0 28px 50px -20px rgba(20, 184, 166, .45), 0 0 0 1px rgba(20, 184, 166, .35); }
.service.tone-2:hover { box-shadow: 0 28px 50px -20px rgba(255, 138, 61, .45), 0 0 0 1px rgba(255, 176, 32, .45); }
.service.tone-3:hover { box-shadow: 0 28px 50px -20px rgba(109, 106, 245, .45), 0 0 0 1px rgba(109, 106, 245, .35); }
.service:hover::before { opacity: 1; }
.service:hover .icon-chip { transform: rotate(-6deg) scale(1.06); }
.service .icon-chip { transition: transform .35s var(--ease); }
.service h3 { margin-top: 24px; font-size: 1.25rem; color: var(--navy); }
.service p { color: var(--muted); margin-top: 10px; font-size: 0.98rem; }

/* ---------- Hero 2 (image band) ---------- */
.hero-band { min-height: clamp(500px, 60vw, 640px); display: flex; align-items: center; color: var(--white); }
.hero-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 77, .95) 0%, rgba(15, 52, 131, .82) 42%, rgba(20, 91, 186, .25) 75%, rgba(59, 179, 235, .1) 100%); }
.hero-band .wrap { position: relative; z-index: 1; }
.hero-band-copy { max-width: 580px; }
.hero-band-copy h2 { color: var(--white); font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.hero-band-copy p { margin: 22px 0 34px; color: #e4ecff; font-size: 1.15rem; }

/* ---------- Expertise ---------- */
.expertise { list-style: none; display: grid; gap: 14px; }
.expertise li { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: var(--tint); border: 1px solid transparent; transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.expertise li:hover { transform: translateX(6px); background: var(--white); border-color: var(--line); }
.expertise .icon-chip { flex: none; }
.expertise h3 { font-size: 1.12rem; color: var(--navy); }
.expertise p { color: var(--muted); font-size: 0.97rem; margin-top: 4px; }

/* ---------- Approach ---------- */
.section-navy { background: var(--grad-brand); color: var(--white); overflow: hidden; }
.section-navy h2 { color: var(--white); }
.section-navy .section-intro { color: #cfdcf5; }
.steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps::before { content: ""; position: absolute; top: 34px; left: 34px; right: 12%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--teal), var(--amber)); transform-origin: left; }
.steps li { position: relative; padding: 0; }
.step-n { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; font: 800 1.35rem/1 var(--display); color: var(--navy); background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 14px 30px -10px rgba(59, 179, 235, .8); margin-bottom: 26px; }
.steps li:nth-child(2) .step-n { background: #c9f3ee; }
.steps li:nth-child(3) .step-n { background: #ffe2b8; }
.steps li:nth-child(4) .step-n { background: var(--grad-accent); }
.steps h3 { color: var(--white); font-size: 1.35rem; }
.steps p { color: #cfdcf5; margin-top: 12px; font-size: 0.98rem; }

/* ---------- Team ---------- */
.team { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card-note { margin-top: -4px; font: 600 0.85rem/1.4 var(--display); color: #9a4a0b; }
.profile-note { margin-top: 6px; font: 600 1rem var(--display); color: #ffd28a; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-card { display: flex; flex-direction: column; border-radius: 24px; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -26px rgba(11, 31, 77, .45); }
.team-photo { position: relative; padding: 18px 18px 0; background: linear-gradient(135deg, var(--royal), var(--cyan)); }
.team-photo.tone-1 { background: linear-gradient(135deg, #0f9488, var(--cyan)); }
.team-photo.tone-2 { background: linear-gradient(135deg, var(--orange), var(--amber)); }
.team-photo.tone-3 { background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.team-photo::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -50px; top: -60px; background: rgba(255,255,255,.22); }
.portrait-img, .portrait-placeholder { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; border-radius: 16px 16px 0 0; }
.portrait-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(255,255,255,.18); border: 2px dashed rgba(255,255,255,.7); border-bottom: 0; color: var(--white); text-align: center; padding: 24px; }
.portrait-initials { font: 800 4rem/1 var(--display); letter-spacing: -0.02em; }
.portrait-note { font: 700 0.75rem var(--display); text-transform: uppercase; letter-spacing: .12em; background: rgba(11, 31, 77, .45); padding: 6px 12px; border-radius: 999px; }
.team-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 24px; }
.team-body h3 { font-size: 1.25rem; color: var(--navy); }
.team-photo { padding: 14px 14px 0; }
.role { font: 700 0.95rem/1.4 var(--display); color: var(--royal); }
.team-quote { position: relative; margin: 6px 0 4px; padding: 0 0 0 34px; color: #2d3748; font-style: italic; }
.icon-quote { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; color: var(--orange); }
.team-summary { color: var(--muted); font-size: 0.97rem; }
.team-body .link-arrow { margin-top: auto; padding-top: 10px; }

/* ---------- Clients ---------- */
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-clients .eyebrow { color: #c2410c; }
.clients { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.client { flex: 0 0 calc((100% - 3 * 20px) / 4); }
.client-card { display: grid; place-items: center; height: 150px; padding: 22px 26px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
a.client-card:hover, .client-card:hover { transform: translateY(-4px); border-color: rgba(59, 179, 235, .5); box-shadow: 0 20px 36px -22px rgba(20, 91, 186, .45); }
.client-card img { max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }
.client-name { font: 700 1rem/1.35 var(--display); color: var(--navy); text-align: center; text-wrap: balance; }
@media (max-width: 960px) { .client { flex-basis: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 600px) {
  .clients { gap: 12px; }
  .client { flex-basis: calc((100% - 12px) / 2); }
  .client-card { height: 116px; padding: 14px; }
  .client-card img { max-height: 76px; }
  .client-name { font-size: 0.86rem; }
}

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -26px rgba(11, 31, 77, .4); }
.post-card-media img, .post-card-fallback { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--royal), var(--cyan)); color: rgba(255,255,255,.85); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--royal); text-decoration: underline; }
.post-card p { color: var(--muted); font-size: 0.97rem; }
.post-cat { font: 700 0.78rem var(--display) !important; text-transform: uppercase; letter-spacing: .12em; color: #b45309 !important; }
.post-date { margin-top: auto; font-size: 0.9rem !important; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 56px; flex-wrap: wrap; }
.pager ol { display: flex; gap: 8px; list-style: none; }
.pager ol a, .pager ol span { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; font-weight: 700; text-decoration: none; }
.pager ol a:hover { background: var(--tint); }
.pager ol span { background: var(--grad-primary); color: var(--white); }
.empty-state { text-align: center; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state p { color: var(--muted); }

/* ---------- Hero 3 ---------- */
.hero-close { background: var(--grad-brand); color: var(--white); padding: clamp(72px, 9vw, 120px) 0; }
.hero-close-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-close-media { position: relative; }
.hero-close-media::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 28px; background: linear-gradient(135deg, var(--amber), var(--teal)); }
.hero-close-media img { position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.hero-close-copy h2 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.hero-close-copy p { margin: 20px 0 34px; color: #e4ecff; font-size: 1.18rem; max-width: 30em; }

/* ---------- Page heroes (insights, post, profile, 404) ---------- */
.page-hero, .profile-hero { position: relative; overflow: hidden; background: var(--grad-brand); color: var(--white); padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px); }
.page-hero .wrap, .profile-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .profile-hero h1 { color: var(--white); max-width: 18em; }
.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.crumbs { font: 600 0.92rem var(--display); color: #cfdcf5; margin-bottom: 16px; }
.crumbs a { color: var(--cyan-200); }
.post-meta { margin-top: 18px; color: #cfdcf5; }
.post-cover { margin-top: -48px; position: relative; z-index: 2; }
.post-cover img { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(11, 31, 77, .6); }
.post-body h2 { font-size: 1.6rem; }
.post-body h3 { font-size: 1.25rem; margin-top: 1.4em; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin-top: 1em; }
.post-body li + li { margin-top: .4em; }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--orange); font-size: 1.15rem; color: var(--navy); }
.post-back { margin-top: 48px; }
.preview-bar { position: sticky; top: 66px; z-index: 50; background: var(--amber); color: var(--navy); text-align: center; padding: 10px 16px; font-size: 0.95rem; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.profile-photo { border-radius: 26px; padding: 16px; overflow: hidden; }
.profile-photo .portrait-img, .profile-photo .portrait-placeholder { border-radius: 18px; border-bottom: 2px dashed rgba(255,255,255,.7); }
.profile-photo .portrait-img { border: 0; }
.profile-role { margin-top: 14px; font: 700 1.2rem var(--display); color: var(--cyan-200); }
.profile-quote { position: relative; margin: 28px 0 0; padding: 22px 26px 22px 64px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); font-size: 1.15rem; font-style: italic; color: var(--white); max-width: 38em; }
.profile-quote .icon-quote { left: 24px; top: 24px; color: var(--amber); }
.profile-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.profile-aside { position: sticky; top: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font: 600 0.9rem/1.3 var(--display); color: var(--navy); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--royal), var(--cyan)); }
.chips-sm { margin-top: 40px; }
.aside-cta { margin-top: 32px; padding: 26px; border-radius: 20px; background: var(--grad-soft); border: 1px solid var(--line); }
.aside-cta p { margin-bottom: 16px; color: var(--muted); }

/* ---------- Form ---------- */
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(11, 31, 77, .45); }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font: 700 0.93rem var(--display); margin-bottom: 8px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #f8fbff; border: 1.5px solid #b6c4d8; border-radius: 12px; padding: 12px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--royal); box-shadow: 0 0 0 4px rgba(59, 179, 235, .3); }
.has-error input, .has-error select, .has-error textarea { border-color: #b42318; }
.field-error { color: #b42318; font-size: 0.9rem; margin-top: 6px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 20px 24px; border-radius: 14px; border-left: 5px solid; margin-bottom: 22px; }
.notice-ok { background: #ecfdf5; border-color: #0f766e; }
.notice-ok h3 { color: #115e59; }
.notice-ok p { margin-top: 6px; }
.notice-err { background: #fdf0ef; border-color: #b42318; color: #7a1a12; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-800); color: #cfdcf5; padding: 56px 0; }
.footer-glow { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--royal), var(--cyan), var(--teal), var(--amber)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .brand img { width: 190px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; }
.site-footer a:not(.brand) { color: #e4ecff; text-decoration: none; font-weight: 500; }
.site-footer a:not(.brand):hover { color: var(--white); text-decoration: underline; }
.domain { font-size: 0.95rem; color: var(--cyan-200); }
.site-footer .credit { flex-basis: 100%; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.875rem; color: #b9c9ea; }
.site-footer .credit a { color: var(--cyan-200); font-weight: 600; }

/* ---------- Scroll reveal & step animation (motion-safe only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .steps::before { transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
  .js .steps.is-visible::before { transform: scaleX(1); }
  .js .steps li { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 260ms + 150ms); }
  .js .steps .step-n { transform: scale(.4); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 260ms + 250ms); }
  .js .steps.is-visible li { opacity: 1; transform: none; }
  .js .steps.is-visible .step-n { transform: none; }
  .hero-open-copy > * { animation: rise .9s var(--ease) both; }
  .hero-open-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-open-copy > :nth-child(3) { animation-delay: .2s; }
  .hero-open-copy > :nth-child(4) { animation-delay: .3s; }
  .hero-open-media { animation: rise 1.1s var(--ease) .2s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(30px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .btn::after { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-open-grid, .split, .hero-close-grid, .profile-grid, .profile-body { grid-template-columns: minmax(0, 1fr); }
  .hero-open-media img { aspect-ratio: 16 / 11; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
  .profile-photo { max-width: 340px; }
  .profile-aside { position: static; }
  .hero-band-shade { background: linear-gradient(90deg, rgba(11, 31, 77, .95) 0%, rgba(15, 52, 131, .85) 60%, rgba(20, 91, 186, .5) 100%); }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand img { width: 148px; }
  .actions .btn { width: 100%; }
  .pillars, .services, .steps, .team, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 26px 22px 28px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form .btn { width: 100%; }
  .hero-band { display: block; min-height: 0; padding: 220px 0 56px; }
  .hero-band-shade { background: linear-gradient(180deg, rgba(11, 31, 77, .2) 0%, rgba(11, 31, 77, .92) 38%, rgba(11, 31, 77, .97) 100%); }
  .hero-open-media::before, .hero-close-media::before { inset: -8px 8px 8px -8px; }
  .hero-close-media::before { inset: 8px -8px -8px 8px; }
  .expertise li { padding: 18px; gap: 16px; }
  .profile-quote { padding: 18px 18px 18px 54px; font-size: 1.05rem; }
  .profile-quote .icon-quote { left: 18px; top: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
.contact-email { margin-top: 18px; font-weight: 500; }
.contact-email a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Service card with an uploaded image instead of an icon */
.icon-chip-img { overflow: hidden; padding: 0; background: var(--white); }
.icon-chip-img img { width: 100%; height: 100%; object-fit: cover; }
