/* IT Services page only. Loaded after style.css, so it can use its tokens and components. */

/* ---------- hero backdrop: Himalaya (left) blending into the Fukuoka skyline (right) ---------- */
/* Layers, back to front: mountains (own background) → skyline (::after, masked in from the left) → white veil behind the copy (::before) */
.its-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--blue-tint) url("../assets/img/hero-far.webp") 20% 30% / cover no-repeat; }
.its-hero::after { content: ""; position: absolute; inset: 0 0 0 45%; z-index: -2; background: url("../assets/img/cta-fukuoka.webp") 80% 62% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.its-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 85%, transparent) 0%, color-mix(in srgb, var(--surface) 72%, transparent) 48%, color-mix(in srgb, var(--surface) 0%, transparent) 75%); }

/* ---------- hero: copy left, illustration right ---------- */
.its-hero { padding: 140px 0 var(--space-16); }
.its-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(var(--space-8), 5vw, var(--space-16)); }
.its-hero__copy { display: grid; justify-items: start; gap: var(--space-4); min-width: 0; }
.its-hero__crumb { font-size: 13px; color: var(--ink-muted); }
.its-hero__crumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.its-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.35; font-weight: 800; color: var(--ink); }
.its-hero h1 em { font-style: normal; color: var(--royal-blue); }
.its-hero__lead { max-width: 34em; color: var(--ink-muted); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.9; text-wrap: pretty; word-break: auto-phrase; }
.its-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.its-hero__ghost { background: var(--surface); font-family: var(--font-latin); }
.its-hero__art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px #01377d26); }

/* ---------- services, grouped ---------- */
.its-group { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--space-6) var(--space-8); padding-block: var(--space-10); border-top: 1px solid var(--line-soft); }
.its-group:first-of-type { border-top: 0; padding-top: 0; }
.its-group__head { align-self: start; position: sticky; top: 110px; display: grid; gap: var(--space-2); }
.its-group__no { font: 800 14px/1 var(--font-latin); letter-spacing: .1em; color: var(--mist); }
.its-group__head h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; font-weight: 800; color: var(--royal-blue-deep); }
.its-group__head p { color: var(--ink-muted); font-size: 14px; line-height: 1.8; text-wrap: pretty; word-break: auto-phrase; }
.its-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.its-svc { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-6); border: 1px solid var(--line-soft); }
.its-svc .card__icon { margin-bottom: var(--space-2); }
.its-svc p { margin: 0; }
.its-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.its-tags li { padding: 3px 10px; border-radius: var(--radius-sm); background: var(--blue-tint); color: var(--royal-blue-deep); font-size: 12px; line-height: 1.5; }

/* mid-page free-consultation band */
.its-free { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-8); padding: var(--space-8) clamp(var(--space-6), 4vw, var(--space-12)); border-radius: var(--radius-xl); background: var(--royal-blue-deep); color: var(--on-blue); }
.its-free__t { font-family: var(--font-heading); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.5; }
.its-free p:not(.its-free__t) { margin-top: var(--space-1); color: var(--on-blue-muted); font-size: 14px; }
.its-free__btn { background: var(--surface); color: var(--royal-blue-deep); flex: none; }
.its-free__btn:hover { background: var(--blue-tint); }
.its-free a:focus-visible { box-shadow: var(--focus-ring-inverse); }

/* ---------- why B&P: glowing brand-blue band, centred heading over one divided glass panel ---------- */
/* Deliberately unlike "What we offer" (left heads + separate white cards): one panel, cells split by hairlines, CTA underneath */
/* Layers, back to front: deep→royal gradient with two soft glows (own background) → faded dot grid (::before) */
.its-why { position: relative; isolation: isolate; overflow: hidden; color: var(--on-blue); padding-block: var(--space-24);
  background:
    radial-gradient(60% 70% at 100% 0%, #3b7be04d 0%, transparent 70%),
    radial-gradient(50% 60% at 0% 100%, #7397d240 0%, transparent 70%),
    linear-gradient(135deg, var(--royal-blue-deep) 0%, var(--royal-blue) 60%, #0a5cc8 100%); }
.its-why::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#ffffff2e 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 80%); mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 80%); }
.its-why .pill { background: #ffffff26; color: var(--on-blue); }
.its-why .sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--on-blue); }
.its-why .sec-head h2 em { color: var(--mist-light); }

/* one glass panel; each cell draws its right and bottom hairline, and the panel clips the outer ones */
.its-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid #ffffff33; border-radius: var(--radius-xl); background: linear-gradient(160deg, #ffffff1a 0%, #ffffff05 100%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px #00122e99; }
.its-reasons li { position: relative; display: grid; align-content: start; gap: var(--space-2); padding: var(--space-8) clamp(var(--space-6), 2.6vw, var(--space-8)); box-shadow: 1px 0 0 #ffffff26, 0 1px 0 #ffffff26; transition: background-color .3s; }
/* accent line that slides in along the top edge of a cell on hover */
.its-reasons li::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--mist-light), #ffffff); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
/* icon sits in an outlined glass ring (services use solid blue tiles) */
.its-reasons__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-3); border: 1px solid #ffffff4d; border-radius: var(--radius-full); background: #ffffff14; color: var(--surface); transition: background-color .3s, color .3s; }
.its-reasons__icon .icon { width: 22px; height: 22px; }
/* large numeral in the top-right corner: solid glyphs in soft translucent white */
.its-reasons__no { position: absolute; top: var(--space-6); right: var(--space-6); font: 800 56px/1 var(--font-latin); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #ffffff24; pointer-events: none; transition: color .3s; }
.its-reasons h3 { font-size: 18px; line-height: 1.5; font-weight: 700; }
.its-reasons p { color: var(--on-blue-muted); font-size: 14px; line-height: 1.8; text-wrap: pretty; word-break: auto-phrase; }
@media (hover: hover) {
  .its-reasons li:hover { background-color: #ffffff0f; }
  .its-reasons li:hover::before { transform: scaleX(1); }
  .its-reasons li:hover .its-reasons__icon { background: var(--surface); color: var(--royal-blue); }
  .its-reasons li:hover .its-reasons__no { color: #ffffff4d; }
}
@media (prefers-reduced-motion: reduce) {
  .its-reasons li, .its-reasons li::before, .its-reasons__icon { transition: none; }
}

/* CTA centred under the panel */
.its-why__foot { display: flex; justify-content: center; margin-top: var(--space-10); }
.its-why__btn { background: var(--surface); color: var(--royal-blue-deep); }
.its-why__btn:hover { background: var(--blue-tint); }
.its-why a:focus-visible { box-shadow: var(--focus-ring-inverse); }
.its-why li a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- process steps ---------- */
.its-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.its-steps li { display: grid; align-content: start; gap: var(--space-2); }
/* Chevron chain: each arrow pokes into the gap and the next one is notched to receive it.
   Tone deepens step by step; --i orders the fill wipe and the travelling shine. */
.its-steps li:nth-child(1) { --i: 0; --tone: #1d62c6; }
.its-steps li:nth-child(2) { --i: 1; --tone: var(--royal-blue); }
.its-steps li:nth-child(3) { --i: 2; --tone: #01449c; }
.its-steps li:nth-child(4) { --i: 3; --tone: #013e8d; }
.its-steps li:nth-child(5) { --i: 4; --tone: var(--royal-blue-deep); }
.its-steps__no { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 6px; width: calc(100% + 10px); height: 52px; margin-bottom: var(--space-2); padding-left: calc(var(--space-4) + 10px); background: var(--blue-tint); color: var(--on-blue); font: 700 11px/1 var(--font-latin); letter-spacing: .12em; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 16px 50%); }
.its-steps li:first-child .its-steps__no { padding-left: var(--space-4); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
/* the coloured fill: wipes in from the left, one step after another, when the step scrolls into view */
.its-steps__no::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, var(--tone) 0%, color-mix(in srgb, var(--tone) 82%, #fff) 100%); transform-origin: left; }
.js .its-steps li.reveal .its-steps__no::before { transform: scaleX(0); transition: transform .7s var(--ease-out) calc(.15s + var(--i) * .18s); }
.js .its-steps li.reveal.is-in .its-steps__no::before { transform: scaleX(1); }
/* a soft light that runs along the chain from step 1 to 5, then rests */
.its-steps__no::after { content: ""; position: absolute; inset: 0; z-index: -1; width: 45%; background: linear-gradient(100deg, transparent 0%, #ffffff40 50%, transparent 100%); transform: translateX(-120%); }
.its-steps li.is-in .its-steps__no::after { animation: its-step-shine 5s ease-in-out calc(1.4s + var(--i) * .22s) infinite; }
@keyframes its-step-shine { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(260%); } }
.its-steps__no b { font-size: 22px; letter-spacing: 0; }
.its-steps__no .icon { width: 20px; height: 20px; margin: 0 30px 0 auto; opacity: .9; transition: translate .3s var(--ease-out); }
@media (hover: hover) {
  .its-steps li:hover .its-steps__no .icon { translate: 4px 0; }
  .its-steps li:hover .its-steps__no::before { filter: brightness(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .js .its-steps li.reveal .its-steps__no::before { transform: none; }
}
.its-steps h3 { font-size: 17px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.its-steps p { color: var(--ink-muted); font-size: 14px; line-height: 1.8; text-wrap: pretty; word-break: auto-phrase; }

/* ---------- contact ---------- */
.its-contact-sec { padding-top: 0; }
/* Contact card backdrop: painted handshake scene, veiled in white behind the heading; the details list is frosted over it */
.its-contact { position: relative; isolation: isolate; overflow: hidden; background: var(--blue-tint) url("../assets/img/contact-handshake.webp") 66% 28% / max(118%, 1100px) auto no-repeat; }
.its-contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 88%, transparent) 0%, color-mix(in srgb, var(--surface) 74%, transparent) 30%, color-mix(in srgb, var(--surface) 0%, transparent) 46%); }
.its-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-8); align-items: center; padding: clamp(var(--space-8), 5vw, var(--space-12)); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.its-contact__head { display: grid; justify-items: start; gap: var(--space-4); }
.its-contact__head .pill { background: var(--surface); }
.its-contact h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; font-weight: 800; color: var(--ink); }
.its-contact h2 em { font-style: normal; color: var(--royal-blue); }
/* Frosted so the skyline behind it still shows */
.its-contact__list { display: grid; margin: 0; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: var(--shadow-sm); }
.its-contact__list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line-soft); }
.its-contact__list > div:first-child { border-top: 0; }
.its-contact__list dt { display: flex; align-items: center; gap: var(--space-2); align-self: start; font-size: 13px; font-weight: 700; color: var(--royal-blue-deep); }
.its-contact__list dt .icon { width: 18px; height: 18px; color: var(--royal-blue); }
.its-contact__list dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.its-contact__list dd a { color: var(--ink); font-weight: 700; text-decoration: none; }
.its-contact__list dd a:hover { color: var(--royal-blue); text-decoration: underline; }
.its-contact__list dd small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 13px; }
.its-contact__list dd .its-map-link { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-2); color: var(--royal-blue); font-size: 13px; }
.its-map-link .icon { width: 14px; height: 14px; }
.its-note { margin-top: var(--space-6); text-align: center; color: var(--ink-muted); font-size: 12px; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .its-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-8); }
  .its-steps__no { width: 100%; }
  .its-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .its-hero__inner, .its-contact { grid-template-columns: minmax(0, 1fr); }
  /* Stacked layout: mountains behind the copy on top, skyline behind the illustration below */
  .its-hero::after { inset: 45% 0 0 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%); }
  .its-hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, transparent) 0%, color-mix(in srgb, var(--surface) 62%, transparent) 35%, color-mix(in srgb, var(--surface) 0%, transparent) 55%); }
  /* Stacked: heading on top, handshake scene shows beneath it and through the frosted list */
  .its-contact { background-size: cover; background-position: 50% 40%; }
  .its-contact::before { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, transparent) 0%, color-mix(in srgb, var(--surface) 72%, transparent) 30%, color-mix(in srgb, var(--surface) 0%, transparent) 50%); }
  .its-hero__art { max-width: 460px; }
  .its-group { grid-template-columns: minmax(0, 1fr); }
  .its-group__head { position: static; }
  .its-why { padding-block: var(--space-16); }
}
@media (max-width: 640px) {
  .its-hero { padding-top: 120px; }
  .its-hero__actions, .its-hero__actions .btn { width: 100%; }
  .its-svcs, .its-reasons, .its-steps { grid-template-columns: minmax(0, 1fr); }
  .its-steps { row-gap: var(--space-6); }
  .its-why__btn { width: 100%; }
  .its-reasons__no { font-size: 52px; }
  .its-free { flex-direction: column; align-items: stretch; text-align: center; }
  .its-contact__list > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding-inline: var(--space-4); }
  .its-contact .btn { width: 100%; }
}
