/* =========================================================
   Inner pages (Services, About) — shared sections
   ========================================================= */

.h-display { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.h-display .soft { font-weight: 500; color: var(--muted); }
.h-display .dot { color: var(--accent); }
.lead { font-size: 1.08rem; max-width: 620px; }

/* ===== Page hero ===== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  margin: 0 clamp(0px, 1.5vw, 20px); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--plum-950);
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); transition: transform 2.4s var(--ease); }
.page-hero.is-visible .page-hero__bg img { transform: scale(1); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    var(--grid-dark),
    linear-gradient(180deg, rgba(31,10,25,.55) 0%, rgba(31,10,25,.82) 55%, rgba(31,10,25,.96) 100%),
    radial-gradient(circle at 85% 10%, rgba(0,164,218,.32), transparent 45%);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 100% 100%, 100% 100%;
}
.page-hero__inner { position: relative; z-index: 2; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(36px, 5vw, 56px); }
.crumbs { display: flex; gap: 10px; margin-bottom: 26px; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: var(--accent); }
.page-hero h1 { max-width: 900px; margin-bottom: 26px; color: #fff; font-size: clamp(2.4rem, 6.2vw, 5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.page-hero h1 .soft { font-weight: 500; color: rgba(255,255,255,.72); }
.page-hero h1 .dot { color: var(--accent); }
.page-hero .lead { color: rgba(255,255,255,.8); margin-bottom: 0; }
.hero-fade { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.page-hero.is-visible .hero-fade { opacity: 1; transform: none; }
.no-js .hero-fade, html:not(.js) .hero-fade { opacity: 1; transform: none; }

.page-hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(48px, 8vw, 96px);
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16);
}
.page-hero__stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.page-hero__stats span { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ===== Sticky image + service blocks ===== */
.svd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svd__visual { position: sticky; top: calc(var(--hh) + 32px); height: min(calc(100vh - var(--hh) - 64px), 640px); }
.svd__frame { position: relative; height: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--plum-800); box-shadow: var(--shadow-lg); }
.svd__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.svd__frame img.is-active { opacity: 1; transform: scale(1); }
.svd__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,10,25,.75), transparent 45%); }
.svd__num { position: absolute; left: 28px; bottom: 30px; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; color: #fff; }
.svd__bar { position: absolute; left: 28px; right: 28px; bottom: 18px; z-index: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.svd__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), #fff); transform: scaleX(0); transform-origin: left; }

.svd__list { display: grid; }
.svd-block { display: flex; flex-direction: column; justify-content: center; min-height: 72vh; padding: 24px 0; opacity: .3; transition: opacity .6s var(--ease); }
.svd-block.is-active { opacity: 1; }
.svd-block__img { display: none; }
.svd-block__num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; letter-spacing: .2em; color: var(--accent-text); }
.svd-block h3 { margin: 10px 0 14px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.svd-block p { max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.chips a, .chips span {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s;
}
.chips a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.text-link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ===== All services grid ===== */
.all-svc__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.all-svc__head h2 { margin: 0; }
.all-svc__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
.all-svc__item {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 26px 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.all-svc__item:nth-child(4n) { border-right: 0; }
.all-svc__item:nth-last-child(-n+4) { border-bottom: 0; }
.all-svc__item .icon { width: 30px; height: 30px; color: var(--primary); transition: color .35s, transform .35s var(--ease); }
.all-svc__n { position: absolute; top: 24px; right: 24px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--muted); }
.all-svc__item strong { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; }
.all-svc__item:hover { background: var(--primary); color: #fff; }
.all-svc__item:hover .icon { color: var(--accent); transform: translateY(-4px); }
.all-svc__item:hover .all-svc__n { color: rgba(255,255,255,.6); }

/* ===== Word-by-word statement ===== */
.statement { padding: clamp(80px, 12vw, 160px) 0; }
.statement p {
  max-width: 1040px; margin: 0 auto; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.25; letter-spacing: -0.025em; color: var(--ink);
}
.statement .accent { color: var(--primary); }
.words-ready [data-words] .word { opacity: .14; transition: opacity .25s linear; }
.words-ready [data-words] .word.is-lit { opacity: 1; }

/* ===== Tag cloud ===== */
.tags-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: translate .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.tags span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tags span:hover { translate: 0 -3px; box-shadow: var(--shadow); border-color: rgba(0,164,218,.4); }

/* ===== FAQ (split) ===== */
.faq-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-split__side { position: sticky; top: calc(var(--hh) + 32px); }
.call-card {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 18px 20px; border-radius: 18px;
  background: var(--primary); color: #fff; box-shadow: var(--shadow); transition: background-color .25s;
}
.call-card:hover { background: var(--plum-700); }
.call-card small { display: block; color: rgba(255,255,255,.75); }
.call-card strong { font-family: var(--font-head); font-size: 1.1rem; }
.call-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--plum-950); }

/* ===== CTA band ===== */
.cta-band { padding: 0 0 var(--section-y); }
.cta-band__box {
  position: relative; overflow: hidden; padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 80px); text-align: center;
  border-radius: var(--radius-lg); color: rgba(255,255,255,.8);
  background-color: var(--plum-900);
  background-image: var(--grid-dark), radial-gradient(circle at 50% 120%, rgba(0,164,218,.35), transparent 60%), linear-gradient(135deg, var(--plum-950), var(--plum-700));
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 100% 100%, 100% 100%;
}
.cta-band__ring {
  position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 80px rgba(255,255,255,.02), 0 0 0 160px rgba(255,255,255,.015);
  pointer-events: none; animation: ringSpin 30s linear infinite;
}
.cta-band h2 { position: relative; max-width: 760px; margin: 0 auto 18px; color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; }
.cta-band h2 .accent { color: var(--accent); }
.cta-band p { position: relative; max-width: 560px; margin: 0 auto 32px; }
.cta-band__actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* ===== About: story ===== */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.story__media { position: relative; min-height: 560px; }
.story__img { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--plum-100); }
.story__img img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.story__img--a { top: 0; left: 0; width: 76%; height: 74%; }
.story__img--b { right: 0; bottom: 0; width: 50%; height: 50%; border: 6px solid #fff; }
.story__badge {
  position: absolute; left: 6%; bottom: 6%; z-index: 1; display: grid; place-items: center; width: 140px; height: 140px;
  border-radius: 50%; background: var(--primary); color: #fff; text-align: center; box-shadow: var(--shadow-lg);
  font-family: var(--font-head); font-weight: 800; font-size: .82rem; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase;
}
.story__badge span { padding: 0 18px; }
.ticks { display: grid; gap: 12px; margin: 26px 0 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.ticks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--cyan-50); color: var(--cyan-700); stroke-width: 2.6; margin-top: 1px; }

/* ===== About: journey timeline ===== */
.journey { position: relative; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 34px; }
.journey__rail { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.journey__rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--primary), var(--accent)); transform: scaleY(0); transform-origin: top; }
.journey__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.journey__item::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: #fff; border: 3px solid var(--line); transition: border-color .4s, background-color .4s, scale .4s var(--ease);
}
.journey__item.is-done::before { background: var(--primary); border-color: var(--primary); scale: 1.2; }
.journey__label {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.05em;
  color: var(--plum-100); text-align: right; transition: color .5s var(--ease);
}
.journey__item.is-done .journey__label { color: var(--primary); }
.journey__card { padding: 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.journey__card h3 { margin-bottom: 6px; }
.journey__card p { margin-bottom: 12px; font-size: .95rem; }
.journey__card .chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--cyan-50); color: var(--cyan-700); font-family: var(--font-head); font-weight: 700; font-size: .78rem; }
.journey__item:nth-child(odd) .journey__label { order: 2; text-align: left; }
.journey__item:nth-child(odd) .journey__card { order: 1; }

/* ===== About: mission & vision ===== */
.mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.mv-card--dark { background-color: var(--dark); background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size); border-color: var(--dark); color: rgba(255,255,255,.78); }
.mv-card--dark h3 { color: #fff; }
.mv-card__num { position: absolute; right: 24px; top: 6px; font-family: var(--font-head); font-weight: 800; font-size: 6rem; line-height: 1; letter-spacing: -0.06em; color: var(--plum-50); }
.mv-card--dark .mv-card__num { color: rgba(255,255,255,.06); }
.mv-card__ico { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 60px; border-radius: 16px; background: var(--primary); color: #fff; }
.mv-card--dark .mv-card__ico { background: var(--accent); color: var(--plum-950); }
.mv-card__ico .icon { width: 26px; height: 26px; }
.mv-card h3 { position: relative; font-size: 1.6rem; }
.mv-card p { position: relative; margin: 0; }

/* ===== About: quote ===== */
.quote { padding: clamp(72px, 10vw, 140px) 0; }
.quote__mark { font-family: Georgia, serif; font-size: 6rem; line-height: .6; color: var(--accent); }
.quote__text { max-width: 980px; margin: 18px 0 32px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.quote__by { display: flex; align-items: center; gap: 14px; }
.quote__by strong { display: block; font-family: var(--font-head); color: var(--ink); }
.quote__by span { font-size: .9rem; color: var(--muted); }
.avatar { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .9rem; }

/* ===== About: team ===== */
.leader {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 28px;
  padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.leader__photo, .member__photo {
  position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 20px;
  background: linear-gradient(160deg, var(--plum-100), var(--cyan-50)); color: var(--primary);
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em;
}
.leader__photo { aspect-ratio: 1 / 1.1; font-size: 4.5rem; }
.leader__photo img, .member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leader__role, .member__role { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.leader h3 { margin: 6px 0 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.leader p { max-width: 620px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member {
  overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.member:hover { translate: 0 -6px; box-shadow: var(--shadow); }
.member__photo { aspect-ratio: 4 / 3.6; border-radius: 0; font-size: 3rem; }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,10,25,.35), transparent 50%); opacity: 0; transition: opacity .4s; }
.member:hover .member__photo::after { opacity: 1; }
.member__info { padding: 20px 22px 24px; }
.member__info h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.member__info p { margin: 0; font-size: .9rem; color: var(--muted); }
.team-note { margin-top: 22px; font-size: .86rem; color: var(--muted); text-align: center; }

/* ===== About: values ===== */
.values { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.values__media { position: relative; overflow: hidden; aspect-ratio: 4 / 4.6; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--plum-100); }
.values__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.values__tag {
  position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-radius: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); color: var(--ink); font-weight: 600;
}
.values__tag .icon { width: 22px; height: 22px; color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .all-svc__grid { grid-template-columns: repeat(3, 1fr); }
  .all-svc__item:nth-child(4n) { border-right: 1px solid var(--line); }
  .all-svc__item:nth-child(3n) { border-right: 0; }
  .all-svc__item:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .all-svc__item:nth-last-child(-n+3) { border-bottom: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .page-hero__stats { grid-template-columns: 1fr 1fr; }
  .svd { grid-template-columns: 1fr; }
  .svd__visual { display: none; }
  .svd__list { gap: 48px; }
  .svd-block { min-height: 0; padding: 0; opacity: 1; }
  .svd-block__img { display: block; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 22px; border-radius: var(--radius-lg); background: var(--plum-100); }
  .svd-block__img img { width: 100%; height: 100%; object-fit: cover; }
  .tags-wrap, .faq-split, .story, .values { grid-template-columns: 1fr; }
  .faq-split__side { position: static; }
  .journey__rail { left: 9px; }
  .journey__item { grid-template-columns: 1fr; gap: 10px; padding-left: 40px; }
  .journey__item::before { left: 10px; top: 22px; }
  .journey__item .journey__label, .journey__item:nth-child(odd) .journey__label { order: 0; text-align: left; font-size: 2.4rem; }
  .journey__item:nth-child(odd) .journey__card { order: 1; }
  .leader { grid-template-columns: 1fr; }
  .leader__photo { max-width: 320px; }
}

@media (max-width: 768px) {
  .page-hero { margin: 0; border-radius: 0 0 22px 22px; }
  .all-svc__head { flex-direction: column; align-items: flex-start; }
  .all-svc__grid { grid-template-columns: 1fr 1fr; }
  .all-svc__item { min-height: 160px; padding: 20px 18px; }
  .all-svc__item:nth-child(3n) { border-right: 1px solid var(--line); }
  .all-svc__item:nth-child(2n) { border-right: 0; }
  .all-svc__item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .all-svc__item:nth-last-child(-n+2) { border-bottom: 0; }
  .mv__grid { grid-template-columns: 1fr; }
  .story__media { min-height: 420px; }
  .cta-band__ring { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member__info { padding: 14px 14px 16px; }
  .member__info h3 { font-size: .98rem; }
  .member__info p { font-size: .82rem; }
  .member__role { font-size: .66rem; letter-spacing: .12em; }
  .member__photo { font-size: 2rem; }
  .leader__photo { max-width: 220px; font-size: 3.2rem; }
  .story__media { min-height: 340px; }
  .story__badge { width: 110px; height: 110px; font-size: .7rem; }
  .all-svc__item strong { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__bg img { transform: none; }
  .hero-fade { opacity: 1; transform: none; }
  .cta-band__ring { animation: none; }
}

/* =========================================================
   Single service landing pages (generated from src/data/services.yml)
   ========================================================= */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Overview */
.sv-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.sv-intro__text p { font-size: 1.02rem; }
.sv-intro__media { position: relative; padding-bottom: 60px; }
.sv-intro__img { overflow: hidden; aspect-ratio: 4 / 4.2; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--plum-100); }
.sv-intro__img img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.glance {
  position: absolute; left: -28px; right: 28px; bottom: 0; padding: 24px 26px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.glance__title { margin: 0 0 12px; font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.glance ul { display: grid; gap: 8px; }
.glance li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink); font-weight: 500; }
.glance .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); stroke-width: 2.4; }

/* What's included */
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.incl-card {
  position: relative; overflow: hidden; padding: 30px 28px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.incl-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.incl-card:hover { translate: 0 -6px; box-shadow: var(--shadow); border-color: transparent; }
.incl-card:hover::after { transform: scaleX(1); }
.incl-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 15px; background: var(--plum-50); color: var(--primary); transition: background-color .35s, color .35s; }
.incl-card__icon .icon { width: 26px; height: 26px; }
.incl-card:hover .incl-card__icon { background: var(--primary); color: #fff; }
.incl-card h3 { margin-bottom: 8px; }
.incl-card p { margin: 0; font-size: .95rem; }

/* Process steps */
.proc { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.proc::before {
  content: ""; position: absolute; top: 31px; left: 31px; right: 31px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s;
}
.proc.is-visible::before { transform: scaleX(1); }
.proc__step { position: relative; }
.proc__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); color: var(--primary); box-shadow: 0 0 0 8px var(--surface-alt);
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}
.proc__step:last-child .proc__num { background: var(--primary); color: #fff; }
.proc__step h3 { margin-bottom: 8px; font-size: 1.08rem; }
.proc__step p { margin: 0; font-size: .93rem; }
.js .proc .proc__step { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .proc.is-visible .proc__step { opacity: 1; transform: none; }
.js .proc.is-visible .proc__step:nth-child(2) { transition-delay: .15s; }
.js .proc.is-visible .proc__step:nth-child(3) { transition-delay: .3s; }
.js .proc.is-visible .proc__step:nth-child(4) { transition-delay: .45s; }
.js .proc.is-visible .proc__step:nth-child(5) { transition-delay: .6s; }

/* Documents + costs */
.docs-costs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.docs-card {
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); color: rgba(255,255,255,.8);
  background-color: var(--dark); background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size);
}
.docs-card h2, .costs-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.docs-card h2 { color: #fff; }
.docs-card .ticks li { color: #fff; }
.docs-card .ticks .icon { background: var(--accent); color: var(--plum-950); }
.docs-card__note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; color: rgba(255,255,255,.65); }
.costs-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.factors { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: f; }
.factors li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; counter-increment: f; }
.factors li::before {
  content: counter(f, decimal-leading-zero); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--plum-50); color: var(--primary); font-family: var(--font-head); font-weight: 800; font-size: .82rem;
}
.factors strong { display: block; font-family: var(--font-head); color: var(--ink); }
.factors span { font-size: .92rem; }
.price-pill { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 22px; padding: 12px 18px; border-radius: 14px; background: var(--cyan-50); color: var(--ink); font-weight: 600; }
.price-pill strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--primary); white-space: nowrap; }

/* Why HDC strip */
.why-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-strip__item { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why-strip__item .icon { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: var(--primary); color: #fff; }
.why-strip__item strong { display: block; margin-bottom: 4px; font-family: var(--font-head); color: var(--ink); }
.why-strip__item p { margin: 0; font-size: .92rem; }

/* Related services */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; padding: 26px;
  overflow: hidden; border-radius: var(--radius-lg); color: #fff; background: var(--plum-800);
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.rel-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.rel-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(31,10,25,.92), rgba(31,10,25,.2) 65%); }
.rel-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.rel-card:hover img { transform: scale(1.07); }
.rel-card h3 { margin: 0 0 6px; color: #fff; font-size: 1.4rem; }
.rel-card p { margin: 0 0 14px; font-size: .92rem; color: rgba(255,255,255,.8); }
.rel-card .text-link { color: var(--accent); }

@media (max-width: 1080px) {
  .incl-grid { grid-template-columns: repeat(2, 1fr); }
  .proc { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .proc::before { display: none; }
}
@media (max-width: 900px) {
  .sv-intro, .docs-costs { grid-template-columns: 1fr; }
  .glance { left: 16px; right: 16px; }
  .why-strip, .rel-grid { grid-template-columns: 1fr; }
  .rel-card { min-height: 260px; }
}
@media (max-width: 560px) {
  .incl-grid, .proc { grid-template-columns: 1fr; }
  .proc__step { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; }
  .proc__num { grid-row: 1 / span 2; margin: 0; }
}

/* =========================================================
   Contact page
   ========================================================= */
.page-hero--short .page-hero__inner { padding-bottom: clamp(56px, 8vw, 96px); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-side { position: sticky; top: calc(var(--hh) + 32px); }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, translate .3s var(--ease);
}
.contact-card:hover { border-color: rgba(115, 37, 90, .35); box-shadow: var(--shadow-sm); translate: 4px 0; }
.contact-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--plum-50); color: var(--primary); }
.contact-card__icon--wa { background: var(--cyan-50); color: var(--cyan-700); }
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card__label { margin: 0 0 2px; font-family: var(--font-head); font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card a, .contact-card span:not(.contact-card__icon) { display: block; color: var(--ink); font-weight: 600; line-height: 1.5; }
.contact-card a:hover { color: var(--primary); }

.contact-form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.contact-form__head h2 { margin-bottom: 6px; font-size: 1.6rem; }
.contact-form__head p { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.choice { margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 8px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.choice label { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 6px 0; font-weight: 500; font-size: .92rem; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--primary); }

.map { position: relative; overflow: hidden; height: clamp(360px, 50vw, 520px); border-radius: var(--radius-lg); background: var(--plum-100); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map__card {
  position: absolute; left: 24px; bottom: 24px; max-width: 340px; padding: 22px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-lg);
}
.map__title { margin: 0 0 6px; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.map__card p:not(.map__title) { margin: 0 0 14px; font-size: .92rem; }

/* =========================================================
   Blog listing + articles
   ========================================================= */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.blog-filter button {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s;
}
.blog-filter button:hover { border-color: var(--primary); }
.blog-filter button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); color: var(--body); transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card[hidden] { display: none; }
.post-card:hover { translate: 0 -6px; box-shadow: var(--shadow); }
.post-card__img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--plum-100); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-card h2, .post-card h3 { margin: 10px 0 10px; font-size: 1.2rem; line-height: 1.3; }
.post-card__body > p:not(.post-meta) { margin: 0 0 18px; font-size: .94rem; }
.post-card .text-link { margin-top: auto; }
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--featured .post-card__img { aspect-ratio: auto; min-height: 340px; }
.post-card--featured .post-card__body { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.post-card--featured h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; }
.blog-empty { margin-top: 24px; text-align: center; color: var(--muted); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: .82rem; color: var(--muted); }
.post-tag { padding: 4px 11px; border-radius: 999px; background: var(--cyan-50); color: var(--cyan-700); font-family: var(--font-head); font-weight: 700; font-size: .75rem; }
.post-meta--light { color: rgba(255,255,255,.75); margin-top: 22px; }
.post-meta--light .post-tag { background: var(--accent); color: var(--plum-950); }

.page-hero--post .page-hero__inner { padding-bottom: clamp(48px, 7vw, 88px); }
.post-title { max-width: 900px; margin: 0; color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: 720px; font-size: 1.05rem; line-height: 1.8; }
.prose__lead { font-size: 1.22rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
.prose h2 { margin: 1.8em 0 .55em; font-size: clamp(1.4rem, 2.4vw, 1.75rem); scroll-margin-top: calc(var(--hh) + 24px); }
.prose p { margin: 0 0 1.1em; }
.prose__list, .prose__steps { margin: 0 0 1.4em; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose__list li { position: relative; padding-left: 26px; }
.prose__list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose__steps { counter-reset: s; }
.prose__steps li { position: relative; padding: 14px 18px 14px 58px; border-radius: 14px; background: var(--surface-alt); border: 1px solid var(--line); counter-increment: s; }
.prose__steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .85rem;
}
.prose__note { margin-top: 2.2em !important; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--cyan-50); font-size: .92rem; color: var(--body); }

.article__side { position: sticky; top: calc(var(--hh) + 32px); display: grid; gap: 20px; }
.toc { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.toc__title { margin: 0 0 12px; font-family: var(--font-head); font-weight: 800; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: .9rem; line-height: 1.4; color: var(--body); transition: background-color .2s, color .2s; }
.toc a::before { content: counter(t, decimal-leading-zero); flex: none; font-family: var(--font-head); font-weight: 800; font-size: .78rem; color: var(--muted); padding-top: 1px; }
.toc a:hover, .toc a.is-current { background: var(--plum-50); color: var(--primary); }
.side-cta {
  padding: 24px; border-radius: var(--radius); color: rgba(255,255,255,.8);
  background-color: var(--plum-900); background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size);
}
.side-cta p { margin: 0 0 14px; font-size: .92rem; }
.side-cta__eyebrow { margin-bottom: 6px !important; font-family: var(--font-head); font-weight: 800; font-size: .74rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.side-cta__title { margin-bottom: 8px !important; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem !important; color: #fff; }
.side-cta__link { display: block; margin-top: 12px; text-align: center; font-size: .88rem; color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }
.side-cta__link:hover { color: #fff; }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .contact-grid, .article { grid-template-columns: 1fr; }
  .contact-side, .article__side { position: static; }
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__img { min-height: 0; aspect-ratio: 16 / 10; }
  .map__card { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .map { height: 460px; }
}

/* =========================================================
   About: story as a bento grid
   ========================================================= */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 18px;
}
.bento__tile { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius-lg); }
.bento__story {
  grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 48px); background: #fff; border: 1px solid var(--line);
}
.bento__story p:last-child { margin-bottom: 0; }
.bento__photo { background: var(--plum-100); min-height: 190px; }
.bento__photo img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.bento__photo--wide { grid-column: span 2; }
.bento__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); font-size: .84rem; font-weight: 600; color: var(--ink);
}
.bento__stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 24px; }
.bento__stat .icon { position: absolute; top: 22px; left: 22px; width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
.bento__stat strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bento__stat span { font-size: .92rem; line-height: 1.4; }
.bento__stat--plum {
  color: rgba(255,255,255,.8); background-color: var(--primary);
  background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size);
}
.bento__stat--plum strong { color: #fff; }
.bento__stat--plum .icon { background: rgba(255,255,255,.14); color: #fff; }
.bento__stat--light { background: var(--cyan-50); color: var(--body); }
.bento__stat--light strong { color: var(--cyan-700); }
.bento__stat--light .icon { background: #fff; color: var(--cyan-700); }
.bento__list { grid-column: span 2; padding: 26px 28px; background: var(--surface-alt); border: 1px solid var(--line); }
.bento__label { margin: 0 0 4px; font-family: var(--font-head); font-weight: 800; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.bento__list .ticks { margin-top: 12px; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.bento__office {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 24px; color: rgba(255,255,255,.75);
  background-color: var(--dark);
  background-image: var(--grid-dark), radial-gradient(circle at 100% 0%, rgba(0,164,218,.35), transparent 60%);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 100% 100%;
}
.bento__badge { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--plum-950); font-family: var(--font-head); font-weight: 800; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.bento__office-title { margin: 0 0 4px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; }
.bento__office p:not(.bento__office-title) { margin: 0; font-size: .88rem; }
.bento__office .text-link { color: var(--accent); }

/* Tiles lift slightly on hover */
.bento__tile { transition: translate .35s var(--ease), box-shadow .35s var(--ease); }
.bento__tile:hover { translate: 0 -4px; box-shadow: var(--shadow); }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__story, .bento__photo--wide, .bento__list { grid-column: span 2; }
  .bento__story { grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { gap: 12px; grid-auto-rows: minmax(160px, auto); }
  .bento__list .ticks { grid-template-columns: 1fr; }
  .bento__stat { padding: 18px; }
  .bento__stat .icon { top: 16px; left: 16px; width: 34px; height: 34px; padding: 7px; }
}

/* ===== About: real team photos (small source images → compact square portraits) ===== */
.leader { grid-template-columns: 200px 1fr; }
.leader__photo { width: 100%; aspect-ratio: 1 / 1; max-width: 200px; background: #fff; }
.leader__photo img { object-fit: cover; object-position: center top; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.member { flex: 0 1 210px; text-align: center; }
.member__photo { aspect-ratio: 1 / 1; background: #fff; }
.member__photo img { object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__info { padding: 16px 14px 20px; }
.member__info h3 { margin: 6px 0 2px; font-size: 1.08rem; }
@media (max-width: 900px) {
  .leader { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 560px) {
  .team-grid { gap: 12px; }
  .member { flex-basis: calc(50% - 6px); }
  .leader__photo { max-width: 160px; }
}
/* Regular team cards (small groups are centred) */
@media (min-width: 1081px) { .member { flex-basis: 230px; } }
@media (min-width: 768px) and (max-width: 1080px) { .member { flex-basis: 200px; } }
@media (min-width: 561px) and (max-width: 767px) { .member { flex-basis: calc(50% - 11px); } }

/* ===== About: highlighted senior experts (second row, under the CEO) ===== */
.team-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.feat-member {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 24px;
  border-radius: var(--radius-lg); color: rgba(255,255,255,.78);
  background-color: var(--plum-900);
  background-image: var(--grid-dark), radial-gradient(circle at 100% 0%, rgba(0,164,218,.35), transparent 60%);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 100% 100%;
  box-shadow: var(--shadow); transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.feat-member:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.feat-member__photo {
  flex: none; width: 128px; aspect-ratio: 182 / 172; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 8px rgba(0,164,218,.2), 0 14px 28px rgba(0,0,0,.3);
}
/* Square photo at its own proportions: shown whole, nothing cropped */
.feat-member__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feat-member__info { min-width: 0; }
.feat-member__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: var(--accent); color: var(--plum-950);
  font-family: var(--font-head); font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
}
.feat-member__badge .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.feat-member h3 { margin: 10px 0 2px; color: #fff; font-size: 1.3rem; }
.feat-member p { margin: 0 0 8px; font-size: .92rem; color: rgba(255,255,255,.85); }
.feat-member__area { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 1080px) {
  .team-featured { grid-template-columns: 1fr 1fr; }
  .team-featured:not(.team-featured--two) .feat-member:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
@media (max-width: 700px) {
  .team-featured { grid-template-columns: 1fr; gap: 14px; }
  .team-featured .feat-member:last-child { grid-column: auto; width: auto; justify-self: stretch; }
  .feat-member { padding: 20px; }
  .feat-member__photo { width: 108px; }
}

/* Second highlighted row: two cards, centred under the row of three */
.team-featured--two { grid-template-columns: repeat(2, 1fr); max-width: calc((100% - 40px) / 3 * 2 + 20px); margin-left: auto; margin-right: auto; }

/* Thin labelled line between team groups */
.team-divider {
  display: flex; align-items: center; gap: 18px; margin: 48px 0 26px;
  font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
}
.team-divider::before, .team-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.team-divider span { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--plum-50); color: var(--primary); }
.team-grid--next { margin-top: 22px; }

@media (max-width: 1080px) {
  .team-featured--two { max-width: none; }
}
@media (max-width: 700px) {
  .team-featured--two { grid-template-columns: 1fr; }
  .team-divider { margin: 36px 0 20px; gap: 12px; }
}

/* ===== About: CEO card, the top of the team (stronger than the senior cards) ===== */
.leader--ceo {
  position: relative; overflow: hidden; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 52px);
  margin-bottom: 36px; padding: clamp(24px, 4vw, 44px); border: 0; color: rgba(255,255,255,.82);
  background-color: var(--plum-950, #2a0d20);
  background-image: var(--grid-dark),
    radial-gradient(circle at 0% 100%, rgba(0,164,218,.45), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(115,37,90,.9), transparent 60%);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 100% 100%, 100% 100%;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.leader--ceo::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), #73255A, var(--accent)); }
.leader__mark {
  position: absolute; right: -0.04em; bottom: -0.22em; pointer-events: none;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 16vw, 13rem); line-height: 1; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1);
}
.leader--ceo .leader__photo {
  position: relative; z-index: 1; width: 100%; max-width: 240px; aspect-ratio: 560 / 623; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 12px rgba(0,164,218,.22), 0 24px 44px rgba(0,0,0,.4);
}
/* CEO photo shown whole, nothing cropped */
.leader--ceo .leader__photo img { object-fit: cover; }
.leader__body { position: relative; z-index: 1; }
.leader__badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--plum-950, #2a0d20);
  font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.leader__badge .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.leader--ceo .leader__role { display: block; color: var(--accent); }
.leader--ceo h3 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.leader--ceo p { color: rgba(255,255,255,.85); }
.leader--ceo .ticks li { color: rgba(255,255,255,.9); }
.leader--ceo .ticks .icon { background: var(--accent); color: var(--plum-950); }
@media (max-width: 900px) {
  .leader--ceo { grid-template-columns: 1fr; justify-items: start; }
  .leader--ceo .leader__photo { max-width: 200px; }
}
@media (max-width: 560px) {
  .leader--ceo .leader__photo { max-width: 170px; }
}

/* Phones: third senior card fills the row like the others */
@media (max-width: 700px) {
  .team-featured:not(.team-featured--two) .feat-member:last-child { grid-column: auto; width: auto; justify-self: stretch; }
}

/* Typing & Documents and Accounts share one line, each with its own label */
.team-pair { display: grid; grid-template-columns: 3fr 2fr; gap: 0 36px; align-items: start; }
.team-pair .team-group { min-width: 0; }
.team-pair .team-grid { flex-wrap: nowrap; gap: 18px; }
.team-pair .member { flex: 1 1 0; min-width: 0; }
@media (max-width: 1080px) {
  .team-pair { grid-template-columns: 1fr; }
  .team-pair .team-grid { flex-wrap: wrap; gap: 22px; }
  .team-pair .member { flex: 0 1 200px; }
}
@media (max-width: 767px) {
  .team-pair .member { flex-basis: calc(50% - 11px); }
}
@media (max-width: 560px) {
  .team-pair .team-grid { gap: 12px; }
  .team-pair .member { flex-basis: calc(50% - 6px); }
}

/* Senior photos: uniform portraits (white headroom above), filling the frame */
.feat-member__photo { aspect-ratio: 440 / 520; width: 120px; }
.feat-member__photo img { object-fit: cover; }
@media (max-width: 700px) { .feat-member__photo { width: 104px; } }

/* Sales team: heads and executives on one line */
@media (min-width: 1081px) {
  .team-grid--row { flex-wrap: nowrap; gap: 18px; }
  .team-grid--row .member { flex: 1 1 0; min-width: 0; }
}

/* CEO card v2: large office portrait filling the left side, fading into the card */
.leader--ceo { grid-template-columns: minmax(0, 46%) 1fr; gap: 0; padding: 0; align-items: stretch; min-height: 480px; }
.leader--ceo .leader__photo {
  max-width: none; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: var(--plum-950);
}
.leader--ceo .leader__photo img { object-fit: cover; object-position: 50% 30%; }
/* soft fade from the photo into the dark card */
.leader--ceo .leader__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(31,10,25,.85) 100%), linear-gradient(0deg, rgba(31,10,25,.35), transparent 30%);
}
.leader--ceo .leader__body { align-self: center; padding: clamp(28px, 4vw, 56px); }
.leader--ceo h3 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.leader--ceo p { font-size: 1.05rem; line-height: 1.7; }
.leader--ceo:hover .leader__photo img { transform: scale(1.03); }
.leader--ceo .leader__photo img { transition: transform 1.2s var(--ease); }
@media (max-width: 900px) {
  .leader--ceo { grid-template-columns: 1fr; min-height: 0; }
  .leader--ceo .leader__photo { max-width: none; aspect-ratio: 4 / 3.4; }
  .leader--ceo .leader__photo::after { background: linear-gradient(0deg, rgba(31,10,25,.95) 0%, transparent 40%); }
  .leader--ceo .leader__body { padding-top: 8px; }
}
@media (max-width: 560px) {
  .leader--ceo .leader__photo { max-width: none; aspect-ratio: 1 / 1; }
}

/* Management team: five leaders under the CEO, two per row, larger cards */
.team-divider--mgmt { margin-top: 8px; }
.team-divider--mgmt span { background: var(--accent); color: var(--plum-950); }
.team-featured--mgmt { grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.team-featured--mgmt .feat-member { gap: 28px; padding: 30px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(0,164,218,.3); }
.team-featured--mgmt .feat-member::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), #73255A); }
.team-featured--mgmt .feat-member__photo { width: 160px; }
.team-featured--mgmt .feat-member h3 { font-size: 1.6rem; margin-top: 12px; }
.team-featured--mgmt .feat-member p { font-size: 1rem; }
/* the fifth card sits centred on its own row */
.team-featured--mgmt .feat-member:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
@media (max-width: 1080px) {
  .team-featured--mgmt .feat-member { gap: 22px; padding: 24px; }
  .team-featured--mgmt .feat-member__photo { width: 130px; }
  .team-featured--mgmt .feat-member h3 { font-size: 1.35rem; }
}
@media (max-width: 760px) {
  .team-featured--mgmt { grid-template-columns: 1fr; }
  .team-featured--mgmt .feat-member:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
}
@media (max-width: 420px) {
  .team-featured--mgmt .feat-member { gap: 16px; padding: 20px; }
  .team-featured--mgmt .feat-member__photo { width: 104px; }
}
