/* Hakata Education Consultancy page only. Loaded after style.css, so it can use its tokens and components. */
/* ---------- hakata page ---------- */
.hk-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(82svh, 760px); padding: 140px 0 var(--space-16); overflow: hidden; color: var(--on-blue); }
.hk-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hk-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #01377d33 0%, #01377dcc 60%, var(--royal-blue-deep) 100%); }
.hk-hero__inner { display: grid; justify-items: start; gap: var(--space-4); }
.hk-hero__crumb { font-size: 13px; color: var(--on-blue-muted); }
.hk-hero__crumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hk-hero__crest { width: 88px; aspect-ratio: 1; border-radius: var(--radius-full); box-shadow: 0 0 0 4px #ffffff40, var(--shadow-md); }
.hk-hero h1 { max-width: 18ch; font-family: var(--font-latin); font-size: clamp(32px, 5.4vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; color: var(--on-blue); text-wrap: balance; }
.hk-hero h1 small { display: block; margin-top: var(--space-2); font-size: .42em; font-weight: 500; letter-spacing: .08em; color: var(--on-blue-muted); }
.hk-hero__lead { max-width: 52ch; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.8; text-wrap: pretty; }
.hk-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hk-hero__ghost { border-color: #ffffff8c; background: #ffffff1f; color: var(--on-blue); backdrop-filter: blur(8px); }
.hk-hero a:focus-visible { box-shadow: var(--focus-ring-inverse); }
.hk-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(var(--space-8), 5vw, var(--space-16)); }
.hk-about__photo { margin: 0; }
.hk-about__photo img { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.hk-about__copy { display: grid; justify-items: start; gap: var(--space-4); }
.hk-about__copy h2, .hk-contact h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.45; font-weight: 800; color: var(--ink); text-wrap: balance; }
.hk-about__copy h2 em, .hk-contact h2 em { font-style: normal; color: var(--royal-blue); }
.hk-hero__inner > *, .hk-about > *, .hk-about__copy > *, .hk-contact > * { min-width: 0; max-width: 100%; }
.hk-about__copy p:not(.pill) { color: var(--ink-muted); line-height: 1.85; text-wrap: pretty; }
.hk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.hk-card { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-8) var(--space-6); }
.hk-card h3 { font-size: 18px; line-height: 1.5; font-weight: 700; text-wrap: balance; }
.hk-gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.hk-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-xl); }
.hk-gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.hk-gallery__zoom:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }
.hk-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hk-gallery figure:hover img { transform: scale(1.04); } }
.hk-gallery__wide { grid-row: 1 / span 2; }
.hk-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--space-8); padding: clamp(var(--space-8), 5vw, var(--space-12)); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.hk-contact h2 { margin-top: var(--space-3); }
.hk-contact p:not(.pill) { margin-top: var(--space-3); color: var(--ink-muted); }
.hk-contact__links { display: grid; gap: var(--space-3); }
@media (max-width: 860px) {
  .hk-about, .hk-contact { grid-template-columns: minmax(0, 1fr); }
  .hk-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hk-gallery { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hk-gallery__wide { grid-row: auto; }
  .hk-hero__actions, .hk-hero__actions .btn, .hk-contact__links .btn { width: 100%; }
  .hk-contact__links .btn { white-space: normal; }
}
