/* ==========================================================================
   Sri Jagan Fabtech: site styles
   Light and industrial. Brand gradient (violet to cyan, from the SJF logo)
   is an accent only: bars, icons, buttons. Never a large fill.
   ========================================================================== */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --violet: #513f8a;
  --violet-dark: #3e3070;
  --cyan: #29a9c9;
  --cyan-dark: #1d7f98;
  --steel: #737373;
  --ink: #18202c;
  --ink-2: #3c4655;
  --muted: #5d6675;
  --line: #dde2ea;
  --surface: #f3f5f8;
  --white: #ffffff;
  --grad: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-v: linear-gradient(180deg, var(--violet) 0%, var(--cyan) 100%);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(24, 32, 44, .06), 0 8px 24px rgba(24, 32, 44, .06);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--cyan-dark); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3, .h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; vertical-align: -3px; }

.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--violet); margin-bottom: .6em; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-left: 3px solid var(--cyan); border-bottom: 3px solid var(--violet); transform: rotate(45deg); margin-right: 2px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.note { color: var(--muted); font-size: .95rem; }

/* ----- Review aids (never shown on the production host) ----- */
.review-banner { background: #fff6d6; color: #5b4500; font-size: .88rem; text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid #f0dc95; }
.placeholder { background: #fff6d6; color: #6b5200; border: 1px solid #ecd27a; border-radius: 4px; padding: 0 .35em; font-size: .92em; }
.draft { display: inline-block; background: #fdeaea; color: #8a1f1f; border: 1px solid #efb4b4; border-radius: 4px; padding: 0 .4em; font-size: .78rem; font-weight: 600; letter-spacing: .03em; vertical-align: 1px; }
.draft-block { display: block; padding: 8px 12px; margin-bottom: 1.2rem; font-size: .9rem; }
.photo-wanted { margin-top: 1.5rem; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--radius); font-family: var(--font); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.btn-light { background: #fff; color: var(--violet); }
.btn-light:hover { background: #eef3f8; color: var(--violet-dark); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { background: #18733f; color: #fff; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.site-header.is-scrolled::after { opacity: 1; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; color: var(--ink); }
.brand-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 46px; height: 46px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--violet); }
.site-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cyan); border-radius: 0; }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: block; }
.site-nav .nav-cta { color: #fff; padding: 10px 18px; }
.site-nav .nav-cta:hover { color: #fff; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav > ul > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 12px; }
  .site-nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 16px; min-width: 0; }
  .site-nav .sub a { padding: 10px 4px; color: var(--muted); }
  .nav-cta { margin-top: 14px; }
}

/* ----- Breadcrumbs ----- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 14px 0 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }

/* ----- Hero (home) ----- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero h1 { max-width: 19ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.hero-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--cyan-dark); }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.hero-art::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid transparent; border-image: var(--grad) 1; z-index: 0; }
.hero-art picture, .hero-art img { position: relative; z-index: 1; border-radius: 4px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 360px; margin-right: 18px; }
}

/* ----- Numbers ----- */
.numbers { background: var(--ink); color: #fff; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers .number { padding: 28px 16px; border-left: 1px solid rgba(255, 255, 255, .12); }
.numbers .number:first-child { border-left: 0; }
.number { display: flex; flex-direction: column; gap: 4px; }
.number-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numbers .number-value { background: linear-gradient(135deg, #a99be0, #6fd3ea); -webkit-background-clip: text; background-clip: text; }
.number-label { font-size: .95rem; color: var(--muted); }
.numbers .number-label { color: #c9d1dc; }
@media (max-width: 760px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers .number:nth-child(3) { border-left: 0; }
  .numbers .number:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ----- Sections ----- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-steel { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p:last-child { color: var(--muted); }
.section-more { margin-top: 28px; }
.subhead { font-size: 1.5rem; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 860px) { .split, .two-col { grid-template-columns: 1fr; } }

/* ----- Page hero (inner pages) ----- */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.page-hero h1 { max-width: 22ch; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.page-hero-icon { display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--violet); box-shadow: var(--shadow); }
.page-hero-icon .icon { width: 72px; height: 72px; }
@media (max-width: 700px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-icon { display: none; } }

/* ----- Cards ----- */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3, .card h4, .card .h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--grad); color: #fff; margin-bottom: 16px; flex: none; }
.card-icon .icon { width: 28px; height: 28px; }
.card-link { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--violet); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.service-card-sm { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.service-card-sm .card-icon { margin: 0; }
.service-card-sm h3 { margin: 0; flex: 1; }
.service-card-sm .card-link { padding: 0; margin: 0; width: 100%; }
.tag { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan-dark); margin-bottom: .5em; }
.project-card { border-top: 3px solid transparent; border-image: var(--grad) 1; border-image-slice: 1; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: inset 0 0 0 1px var(--line); }
.project-client { color: var(--ink); font-weight: 600; margin-top: auto; padding-top: 8px; }
.stat-card .number-value { font-size: 2.6rem; }
.stat-card .number-label { font-size: 1.05rem; color: var(--ink-2); }
.stretched::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card:hover h3 a { color: var(--violet); }
.post-card-img { margin: -24px -24px 18px; width: calc(100% + 48px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

/* ----- Lists ----- */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(-45deg); }
.ticks-lg li { font-size: 1.08rem; margin-bottom: 12px; color: var(--ink); }
.ticks-inline { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.plain { list-style: none; padding: 0; margin: 0; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list h3 { margin-bottom: .2em; }
.feature-list p { margin: 0; color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--violet); flex: none; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps li { display: flex; gap: 16px; padding: 0 0 20px; position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; flex: none; }
.steps h3 { font-size: 1.2rem; margin: 6px 0 .2em; }
.steps p { margin: 0; color: var(--muted); }

/* ----- Services list page ----- */
.service-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.service-row h2 { font-size: 1.7rem; margin-bottom: .3em; }
.service-row h2 a { color: var(--ink); text-decoration: none; }
.service-row h2 a:hover { color: var(--violet); }
.service-row .card-icon { margin: 0; }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; } }

/* ----- ISO ----- */
.iso-band { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.iso-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.iso-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.iso-std { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--violet); }
.iso-area { font-size: .9rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 860px) { .iso-band { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .iso-list { grid-template-columns: 1fr; } }
.cert-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: .95rem; }
.cert-meta dt { color: var(--muted); }
.cert-meta dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.ibr-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin: 28px 0 8px; }
.ibr-card h2 { margin-top: 0; }
@media (max-width: 560px) { .ibr-card { grid-template-columns: 1fr; } }

/* ----- Clients ----- */
.strip-title { font-size: 1.3rem; text-align: center; color: var(--muted); font-weight: 600; }
.client-names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.client-names li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; color: var(--ink-2); background: #fff; }
/* Client logos: sliding carousel on home (pure CSS, pauses on hover, static under reduced motion), grid on /clients/ */
.logo-marquee { overflow: hidden; margin-top: 18px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: max-content; animation: logo-scroll 40s linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.logo-tile { flex: 0 0 auto; width: 190px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.logo-tile img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.logo-text { font-family: var(--font-head, inherit); font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.2; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .logo-marquee { mask-image: none; -webkit-mask-image: none; } .logo-track { width: auto; flex-wrap: wrap; justify-content: center; } .logo-tile[aria-hidden="true"] { display: none; } }
.logo-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.logo-grid .logo-tile { width: auto; height: 140px; }
.logo-grid .logo-name { font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 700px) { .logo-tile { width: 150px; height: 80px; padding: 10px 12px; } .logo-tile img { max-height: 46px; } .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .logo-grid .logo-tile { height: 110px; } .logo-grid .logo-name { font-size: .75rem; } }
.client-table { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.client-table li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.client-name { font-weight: 600; color: var(--ink); }
.client-years { color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .client-table { grid-template-columns: 1fr; } }

/* ----- About ----- */
.numbers-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.numbers-panel .number { background: #fff; padding: 24px; }
.statement { background: #fff; border-left: 4px solid; border-image: var(--grad-v) 1; padding: 24px 28px; }
.statement-text { font-size: 1.2rem; color: var(--ink); margin: 0; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.person-initials { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 2rem; margin-bottom: 10px; }
.person-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.person-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.person-role { color: var(--muted); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* ----- Projects filter ----- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: inherit; font-weight: 500; font-size: .95rem; padding: 8px 16px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.card[hidden] { display: none; }

/* ----- FAQ ----- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--violet); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* ----- CTA band ----- */
.cta-band { background: var(--grad); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: clamp(36px, 6vw, 60px); padding-bottom: clamp(36px, 6vw, 60px); }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
@media (max-width: 860px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-block { margin-bottom: 26px; }
.contact-block h2 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin-bottom: .3em; }
.contact-block h2 .icon { color: var(--cyan-dark); }
.contact-block address { font-style: normal; }
.contact-block a { font-weight: 500; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.enquiry { padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); }
.enquiry h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; color: var(--ink); font-size: .95rem; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 11px 12px; border: 1px solid #c8cfd9; border-radius: var(--radius); background: #fff; min-height: 46px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); outline: 2px solid rgba(81, 63, 138, .2); outline-offset: 0; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }
.field-error { color: #b42318; font-size: .85rem; font-weight: 500; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 16px 0; }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status.is-ok { color: #1f7a45; }
.form-status.is-error { color: #b42318; }
.map-section iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.25); }

/* ----- Blog post ----- */
.post-hero h1 { max-width: none; font-size: clamp(2rem, 4.4vw, 3rem); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.tag-list a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 500; }
.post-cover { margin: 32px auto 0; border-radius: var(--radius); }
.post-body { padding-top: 36px; padding-bottom: 56px; }
.prose { font-size: 1.07rem; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--cyan); color: var(--muted); }
.prose code { background: var(--surface); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 36px; color: var(--muted); }

/* ----- Footer ----- */
.site-footer { background: var(--ink); color: #c9d1dc; font-size: .95rem; position: relative; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer a { color: #e6ebf2; text-decoration: none; }
.site-footer a:hover { color: #7fd6ec; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: #9aa5b4; }
.brand-footer img { background: #fff; border-radius: 6px; padding: 4px; width: 48px; }
.footer-tag { margin: 14px 0 6px; font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.footer-iso { display: flex; align-items: center; gap: 8px; color: #9aa5b4; font-size: .88rem; }
.footer-h { font-family: var(--font-head); font-size: 1.1rem; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-address { font-style: normal; line-height: 1.75; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; color: #9aa5b4; }
.footer-legal p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----- Chat assistant ----- */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(81, 63, 138, .35); transition: transform .15s; }
.chat-launcher:hover { transform: scale(1.05); }
.chat-launcher .icon { width: 28px; height: 28px; }
.chat.is-open .chat-launcher { transform: rotate(-8deg); }
.chat-teaser { font: inherit; font-size: .92rem; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 10px 14px; box-shadow: var(--shadow); cursor: pointer; max-width: 240px; text-align: left; }
.chat-teaser strong { color: var(--violet); }
.chat-panel { width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(24, 32, 44, .25); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--grad); color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.chat-title { flex: 1; display: flex; flex-direction: column; line-height: 1.2; font-size: .8rem; color: rgba(255, 255, 255, .85); }
.chat-title strong { font-size: 1rem; color: #fff; }
.chat-icon-btn { background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; display: grid; place-items: center; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .28); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; }
.chat-row-user { justify-content: flex-end; }
.chat-bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-row-bot .chat-bubble { background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-row-user .chat-bubble { background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; min-height: 40px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); opacity: .4; animation: chat-dot 1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 4px; }
.chat-option { font: inherit; font-size: .9rem; font-weight: 500; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--violet); background: #fff; color: var(--violet); cursor: pointer; text-decoration: none; }
.chat-option:hover { background: #f1eefa; color: var(--violet-dark); }
.chat-option-solid { background: var(--violet); color: #fff; }
.chat-option-solid:hover { background: var(--violet-dark); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form[hidden] { display: none; }
.chat-code { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 0 6px; background: #fff; }
.chat-code[hidden] { display: none; }
.chat-input { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.chat-input:focus { border-color: var(--violet); outline: 2px solid rgba(81, 63, 138, .2); outline-offset: 0; }
.chat-send { width: 44px; border: 0; border-radius: 10px; background: var(--violet); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-wa { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; font-size: .85rem; color: #1f7a45; text-decoration: none; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .chat { right: 12px; bottom: 12px; } .chat-panel { height: calc(100vh - 100px); } }

.page-404 { min-height: 50vh; }

/* ==========================================================================
   Visual layer: image heroes, landing-page layout, process track, cards
   ========================================================================== */

/* Inner-page hero with an illustration behind a light veil */
.page-hero-image { position: relative; overflow: hidden; color: #fff; border-bottom: 0; background: var(--ink); padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }
.page-hero-image .page-hero-bg, .page-hero-image .page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 40, .9) 0%, rgba(40, 32, 84, .72) 45%, rgba(20, 60, 80, .25) 100%); }
.page-hero-image .wrap { position: relative; z-index: 1; }
.page-hero-image h1 { color: #fff; }
.page-hero-image .lead { color: rgba(255, 255, 255, .86); }
.page-hero-image .eyebrow { color: #9fe3f3; }
.page-hero-image .eyebrow::before { border-color: #9fe3f3; }
.page-hero-image .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.page-hero-image .btn-outline:hover { border-color: #fff; color: #fff; }
.crumbs + .page-hero-image { margin-top: 14px; }

/* Home hero with full-bleed image */
.hero-photo { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero-photo .hero-bg, .hero-photo .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18, 16, 38, .92) 0%, rgba(44, 34, 92, .74) 48%, rgba(20, 70, 92, .2) 100%); }
.hero-photo .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.hero-photo h1 { color: #fff; max-width: 17ch; font-size: clamp(2.5rem, 6vw, 4.4rem); }
.hero-photo .lead { color: rgba(255, 255, 255, .88); }
.hero-photo .eyebrow { color: #9fe3f3; }
.hero-photo .eyebrow::before { border-color: #9fe3f3; }
.hero-photo .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero-photo .hero-trust { color: rgba(255, 255, 255, .9); }
.hero-photo .hero-trust .icon { color: #9fe3f3; }
.hero-chevron { position: absolute; right: -6vw; top: 50%; transform: translateY(-50%); width: min(44vw, 560px); z-index: 1; opacity: .9; pointer-events: none; }
@media (max-width: 860px) { .hero-chevron { display: none; } }

/* Landing-page body + sticky sidebar */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.content-grid .prose h2:first-child { margin-top: 0; }
.side { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-card { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fff; }
.side-card h2 { margin-bottom: .5em; }
.side-card-accent { background: var(--grad); color: #fff; border: 0; }
.side-card-accent h2 { color: #fff; }
.side-card-accent p { color: rgba(255, 255, 255, .88); }
.side-phone { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 600; text-decoration: none; }
.side-phone:hover { color: #fff; text-decoration: underline; }
.side-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); font-size: .95rem; }
.side-facts strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--violet); margin-right: 4px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; text-decoration: none; font-weight: 500; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } .side { position: static; } }

/* Horizontal process track */
.process-track { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; counter-reset: none; }
.process-track li { position: relative; padding: 0 18px 0 0; }
.process-track li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 48px; right: 8px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); opacity: .35; }
.process-track h3 { font-size: 1.15rem; margin: 14px 0 .3em; }
.process-track p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 640px) { .process-track { grid-template-columns: 1fr; gap: 20px; } .process-track li::after { display: none; } }

/* Image cards */
.visual-card { padding: 0; overflow: hidden; }
.visual-card-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .4s; }
a.visual-card:hover .visual-card-img img { transform: scale(1.04); }
.visual-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.visual-card-body h3 { margin-bottom: .3em; }
.visual-card-body p { color: var(--muted); font-size: .95rem; }

.checklist-card { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: clamp(20px, 4vw, 32px); background: #fff; }
.ticks-2col { columns: 2; column-gap: 32px; }
.ticks-2col li { break-inside: avoid; }
@media (max-width: 640px) { .ticks-2col { columns: 1; } }

/* Image + text band */
.media-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.media-band picture img { border-radius: 12px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.media-frame { position: relative; }
.media-frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 3px solid transparent; border-image: var(--grad) 1; z-index: 0; }
.media-frame picture { position: relative; z-index: 1; display: block; }
@media (max-width: 860px) { .media-band { grid-template-columns: 1fr; } .media-frame { margin-right: 16px; } }

/* Sub-service chips on main service pages */
.sub-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sub-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, transform .15s; }
.sub-link:hover { border-color: var(--cyan); transform: translateY(-2px); color: var(--violet); }

/* Counter animation hook */
.number-value[data-count] { font-variant-numeric: tabular-nums; }

/* Reveal on scroll (JS adds .reveal-ready only when motion is allowed) */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.about-media { margin-top: 28px; } .about-media img { aspect-ratio: 21 / 9; object-fit: cover; }
@media print { .reveal-ready .reveal { opacity: 1 !important; transform: none !important; } .chat, .review-banner { display: none !important; } }

/* ==========================================================================
   Explainers: animated SVG line illustrations (includes/explainers.php)
   Final frame is the default; motion only runs when allowed and in view.
   ========================================================================== */
.ex { width: 100%; height: auto; display: block; overflow: visible; }
.ex-draw, .ex-band, .ex-hold, .ex-shell, .map-route { stroke-dasharray: 1; stroke-dashoffset: 0; }
.map-route { fill: none; stroke: url(#sjf-g); stroke-width: 2.5; stroke-linecap: round; opacity: .75; }
.map-coast { fill: #e6f4f8; }
.map-sea { font: 600 10px var(--font); letter-spacing: .3em; fill: #8ccbdc; }
.map-place circle { fill: #fff; stroke: var(--violet); stroke-width: 3; }
.map-place text, .map-plant-label { font: 600 13px var(--font); fill: var(--ink); }
.map-plant-label { fill: var(--violet); font-size: 13.5px; }
.map-note { font: 500 10px var(--font); fill: var(--muted); }
.map-pulse { fill: var(--cyan); opacity: 0; transform-origin: 222px 176px; transform-box: view-box; }
.ex-sparks path { transform-origin: 100px 80px; transform-box: view-box; }
.ex-needle { transform-origin: 100px 78px; transform-box: view-box; transform: rotate(48deg); }
.ex-check { transform-box: view-box; transform-origin: 150px 38px; }

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .ex-draw, .reveal-ready .ex-band, .reveal-ready .ex-shell, .reveal-ready .map-route, .reveal-ready .ex-hold { stroke-dashoffset: 1; }
  .reveal-ready .ex-pop, .reveal-ready .ex-check, .reveal-ready .map-place { opacity: 0; }
  .reveal-ready .ex-needle { transform: rotate(-120deg); }
  .reveal-ready .ex-load { transform: translateY(-34px); }

  .is-visible .ex-draw { animation: ex-draw 1.6s .2s ease-out forwards; }
  .is-visible .ex-pop { animation: ex-fade .4s 1.5s forwards; }
  .is-visible .ex-pencil { animation: ex-pencil 1.6s .2s ease-out both; }
  .is-visible .ex-sparks path { animation: ex-spark .5s infinite; }
  .is-visible .ex-sparks path:nth-child(2n) { animation-delay: .17s; }
  .is-visible .ex-sparks path:nth-child(3n) { animation-delay: .31s; }
  .is-visible .ex-arc { animation: ex-flicker .18s infinite alternate; }
  .is-visible .ex-needle { animation: ex-needle 1.8s .3s cubic-bezier(.3, .7, .3, 1) forwards; }
  .is-visible .ex-band { animation: ex-draw .8s 1.6s forwards; }
  .is-visible .ex-hold { animation: ex-draw 3s 2.1s linear forwards; }
  .is-visible .ex-load { animation: ex-lower 2.2s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
  .is-visible .ex-flow { animation: ex-flow 2.4s linear infinite; }
  .is-visible .ex-check { animation: ex-check .5s 1s cubic-bezier(.3, 1.6, .5, 1) forwards; }
  .is-visible .ex-shell { animation: ex-draw 2.4s .2s ease-in-out forwards; }
  .is-visible .map-route { animation: ex-draw 1.2s calc(.3s + var(--i) * .25s) ease-out forwards; }
  .is-visible .map-place { animation: ex-fade .4s calc(1.1s + var(--i) * .25s) forwards; }
  .is-visible .map-pulse { animation: ex-pulse 2.4s 1s ease-out infinite; }
}
@keyframes ex-draw { to { stroke-dashoffset: 0; } }
@keyframes ex-fade { to { opacity: 1; } }
@keyframes ex-pencil { from { transform: translate(-100px, 60px); } to { transform: none; } }
@keyframes ex-spark { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes ex-flicker { from { opacity: .5; } to { opacity: 1; } }
@keyframes ex-needle { from { transform: rotate(-120deg); } to { transform: rotate(48deg); } }
@keyframes ex-lower { to { transform: none; } }
@keyframes ex-flow { from { transform: translateX(0); } to { transform: translateX(100px); } }
@keyframes ex-check { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ex-pulse { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

/* Journey: five steps, drawing to handover */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.journey::before { content: ""; position: absolute; left: 6%; right: 6%; top: 74px; height: 2px; background: var(--grad); opacity: .25; }
.journey-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 20px; }
.journey-art { background: var(--surface); border-radius: 8px; padding: 6px; margin-bottom: 14px; }
.journey-no { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--cyan-dark); letter-spacing: .08em; }
.journey-step h3 { font-size: 1.15rem; margin: 2px 0 .35em; }
.journey-step p { font-size: .92rem; color: var(--muted); margin: 0; }
.journey-step.reveal { transition-delay: calc(var(--i) * .12s); }
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(3, 1fr); } .journey::before { display: none; } }
@media (max-width: 700px) {
  .journey { grid-template-columns: 1fr; }
  .journey-step { display: grid; grid-template-columns: 120px 1fr; gap: 0 14px; align-items: start; }
  .journey-art { grid-row: span 3; margin: 0; }
}

/* Map band */
.map-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.map-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .map-band { grid-template-columns: 1fr; } }

/* Explainer beside copy */
.ex-aside { background: var(--surface); border-radius: 12px; padding: 14px; margin-bottom: 18px; }

/* ==========================================================================
   Depth and polish (research pass, 13 Nov)
   ========================================================================== */
/* White text never sits on the light cyan end: darker gradient for filled bands */
.cta-band, .side-card-accent, .chat-head { background: linear-gradient(135deg, var(--violet) 0%, #2a6f9a 60%, var(--cyan-dark) 100%); }

/* Tilt cards (assets/js/main.js sets --rx/--ry/--mx/--my on fine pointers only) */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s ease, box-shadow .2s, border-color .15s; transform-style: preserve-3d; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 45%); opacity: 0; transition: opacity .2s; }
[data-tilt]:hover::after { opacity: 1; }
[data-tilt] .card-icon, [data-tilt] h3 { transform: translateZ(24px); }
a.card[data-tilt]:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Numbered disciplines on the home service cards */
.cards-4 { counter-reset: disc; }
.service-card .card-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--line); }

/* ISO as a vessel nameplate */
.iso-item { position: relative; background: linear-gradient(160deg, #f7f8fa 0%, #e3e7ed 45%, #f4f6f8 55%, #d9dee6 100%); border: 1px solid #c3cad5; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .06), var(--shadow); }
.iso-item::before { content: ""; position: absolute; inset: 7px; background:
  radial-gradient(circle, #9aa3b0 2.5px, transparent 3px) left top / 10px 10px no-repeat,
  radial-gradient(circle, #9aa3b0 2.5px, transparent 3px) right top / 10px 10px no-repeat,
  radial-gradient(circle, #9aa3b0 2.5px, transparent 3px) left bottom / 10px 10px no-repeat,
  radial-gradient(circle, #9aa3b0 2.5px, transparent 3px) right bottom / 10px 10px no-repeat; pointer-events: none; }
.iso-std { letter-spacing: .04em; text-shadow: 0 1px 0 #fff; }
.iso-area { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; }

/* Industry shortcuts in the home hero */
.hero-industries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-industries span { color: rgba(255, 255, 255, .7); font-size: .9rem; align-self: center; margin-right: 4px; }
.hero-industries a { color: #fff; text-decoration: none; font-weight: 500; font-size: .92rem; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.hero-industries a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero .hero-industries span { color: var(--muted); }
.hero .hero-industries a { color: var(--ink); border-color: var(--line); background: #fff; }

/* Scroll depth on the photo hero, where supported */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-photo .hero-bg img { animation: hero-depth linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-chevron { animation: hero-chev linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
  @view-transition { navigation: auto; }
}
@keyframes hero-depth { to { transform: translateY(14vh) scale(1.06); } }
@keyframes hero-chev { to { transform: translateY(-30%) rotate(-6deg); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* Stagger index without inline styles (CSP blocks style attributes) */
.d0 { --i: 0; } .d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; } .d5 { --i: 5; } .d6 { --i: 6; }
.sjf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ex-map text { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }

/* Photo mosaic band (home) */
.mosaic { background: var(--ink); }
.mosaic-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; height: clamp(220px, 30vw, 380px); }
.mosaic-item { position: relative; margin: 0; overflow: hidden; }
.mosaic-item picture, .mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 16, 38, .75)); }
.mosaic-item figcaption { position: absolute; left: 16px; bottom: 12px; z-index: 1; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 700px) { .mosaic-grid { grid-template-columns: 1fr 1fr; height: auto; } .mosaic-item { aspect-ratio: 4 / 3; } }

/* Image credits page */
.credit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.credit { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.credit-thumb img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; }
.credit-title { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.credit-meta { margin: 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
@media (max-width: 560px) { .credit { grid-template-columns: 1fr; } }

/* ----- Photo galleries (our own photos, full frame) ----- */
.gallery { columns: 4 240px; column-gap: 14px; margin-top: 8px; }
.gallery-item { break-inside: avoid; margin: 0 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item picture, .gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item img { transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding: 10px 12px 12px; font-size: .92rem; line-height: 1.4; color: var(--ink); }
.gallery-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px; background: var(--surface); color: var(--violet); font-weight: 600; font-size: .78rem; letter-spacing: .02em; text-transform: uppercase; }
.gallery-home { columns: 4 220px; }
.gallery-workshop { margin-top: 18px; columns: 3 240px; }
@media (max-width: 560px) { .gallery, .gallery-home { columns: 2 140px; column-gap: 10px; } .gallery-item figcaption { font-size: .85rem; padding: 8px 9px 10px; } }
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } }

/* ----- Service photo tiles (home): details slide up on hover or keyboard focus ----- */
.svc-tiles { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); }
.svc-tile-1 { grid-column: span 2; grid-row: span 2; }
.svc-tile-6, .svc-tile-7 { grid-column: span 2; }
/* Small tiles have room for the scope list only; the big and wide tiles also show the lead. */
.svc-tile-2 .svc-tile-lead, .svc-tile-3 .svc-tile-lead, .svc-tile-4 .svc-tile-lead, .svc-tile-5 .svc-tile-lead { display: none; }
.svc-tile-2 .svc-tile-item:nth-child(n+4), .svc-tile-3 .svc-tile-item:nth-child(n+4), .svc-tile-4 .svc-tile-item:nth-child(n+4), .svc-tile-5 .svc-tile-item:nth-child(n+4) { display: none; }
.svc-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--white); text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.svc-tile-img, .svc-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-tile-img img { transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.svc-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(24, 32, 44, 0) 30%, rgba(24, 32, 44, .55) 62%, rgba(24, 32, 44, .9) 100%); transition: background .4s; }
.svc-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(81, 63, 138, .9), rgba(29, 127, 152, .88)); opacity: 0; transition: opacity .4s; }
.svc-tile-num { position: absolute; top: 14px; right: 16px; z-index: 2; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: rgba(255, 255, 255, .75); }
.svc-tile-body { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.svc-tile-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
.svc-tile-icon .icon { width: 22px; height: 22px; }
.svc-tile-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.svc-tile-1 .svc-tile-name { font-size: 1.9rem; }
.svc-tile-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
.svc-tile-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .35s .05s, transform .45s; }
.svc-tile-lead { font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-tile-scope { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.svc-tile-item { display: flex; gap: 6px; align-items: baseline; }
.icon-xs { width: 13px; height: 13px; flex: none; }
.svc-tile-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 2px; }
.svc-tile:hover .svc-tile-img img, .svc-tile:focus-visible .svc-tile-img img { transform: scale(1.06); }
.svc-tile:hover::after, .svc-tile:focus-visible::after { opacity: 1; }
.svc-tile:hover .svc-tile-more, .svc-tile:focus-visible .svc-tile-more { grid-template-rows: 1fr; }
.svc-tile:hover .svc-tile-inner, .svc-tile:focus-visible .svc-tile-inner { opacity: 1; transform: none; }
.svc-tile:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 1100px) { .svc-tiles { grid-template-columns: repeat(2, 1fr); } .svc-tile-1 { grid-row: span 1; } }
@media (max-width: 1100px) { .svc-tile-6, .svc-tile-7 { grid-column: span 1; } .svc-tile-1 { grid-column: span 2; } }
@media (max-width: 640px) { .svc-tiles { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, auto); } .svc-tile-1, .svc-tile-6, .svc-tile-7 { grid-column: auto; } }
/* Touch screens cannot hover: show a short version of the details all the time. */
@media (hover: none) {
  .svc-tile { min-height: 300px; }
  .svc-tile-more { grid-template-rows: 1fr; }
  .svc-tile-inner { opacity: 1; transform: none; }
  .svc-tile-lead { display: none; }
  .svc-tile-item:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .svc-tile-img img, .svc-tile-more, .svc-tile-inner, .svc-tile::after { transition: none; } }

/* ----- Gallery: caption over the photo on hover, click to enlarge ----- */
.gallery-link { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.gallery-zoom { position: absolute; top: 10px; right: 10px; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(24, 32, 44, .6); color: var(--white); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.gallery-link:hover .gallery-zoom, .gallery-link:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(81, 63, 138, .55)); opacity: 0; transition: opacity .3s; }
.gallery-link:hover::after, .gallery-link:focus-visible::after { opacity: 1; }
.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--white); overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 14, 22, .85); }
.lightbox img { display: block; width: 100%; max-height: calc(92vh - 70px); object-fit: contain; background: #0b0f16; }
.lightbox-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.lightbox-cap { flex: 1; font-size: .95rem; }
.lightbox button { border: 0; border-radius: 6px; padding: 8px 12px; background: rgba(255, 255, 255, .12); color: var(--white); font: inherit; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .24); }
/* Keep the name in view when the details open: the icon steps aside and the body never spills over the top. */
.svc-tile-body { max-height: 100%; }
.svc-tile-icon { transition: opacity .3s, margin .4s, height .4s; }
.svc-tile:not(.svc-tile-1):hover .svc-tile-icon, .svc-tile:not(.svc-tile-1):focus-visible .svc-tile-icon { opacity: 0; height: 0; margin-bottom: -8px; overflow: hidden; }
.svc-tile:not(.svc-tile-1) .svc-tile-scope { font-size: .86rem; }
.svc-tile:hover, .svc-tile:focus-visible, .svc-tile:visited { color: var(--white); }
.svc-tile-6 .svc-tile-lead, .svc-tile-7 .svc-tile-lead { -webkit-line-clamp: 2; }
.svc-tile-6 .svc-tile-item:nth-child(n+4), .svc-tile-7 .svc-tile-item:nth-child(n+4) { display: none; }
.svc-tiles { grid-auto-rows: minmax(270px, auto); }
.svc-tile-2 .svc-tile-item:nth-child(n+3), .svc-tile-3 .svc-tile-item:nth-child(n+3), .svc-tile-4 .svc-tile-item:nth-child(n+3), .svc-tile-5 .svc-tile-item:nth-child(n+3) { display: none; }
.cert-download { margin: 14px 0 0; font-weight: 600; }
.post-card > picture, .wrap.narrow > picture { display: contents; }
.contact-photo { margin: 12px 0 0; } .contact-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); } .contact-photo figcaption { margin-top: 6px; font-size: .9rem; color: var(--muted); }

/* ----- More pictures: service row thumbnails, photos between text sections ----- */
.service-thumb { display: block; width: 260px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.service-thumb picture, .service-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-row:hover .service-thumb img { transform: scale(1.05); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } .service-thumb { width: 100%; } }
.prose-figure { margin: 26px 0 30px; }
.prose-figure picture, .prose-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.prose-figure img { aspect-ratio: 16 / 9; object-fit: cover; }
.prose-figure figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.strip-figure { margin: 0; }
.strip-figure picture, .strip-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.strip-figure figcaption { margin-top: 6px; font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr; } }
.post-body li.task { list-style: none; position: relative; padding-left: 4px; }
.post-body li.task::before { content: ""; position: absolute; left: -24px; top: .35em; width: 14px; height: 14px; border: 2px solid var(--cyan); border-radius: 3px; }
.gallery-tag-ai { background: #fff4e0; color: #8a5a00; }
