:root {
  --black: #111;
  --white: #fff;
  --soft: #f6f6f6;
  --line: #ddd;
  --body: #333;
  --muted: #666;
  --cyan: #01a7e4;
  --teal: #52c2c8;
  --red: #f0523d;
  --footer: #1d1d1d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: "Libre Franklin", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 28px;
}

.logo img {
  width: 162px;
  height: auto;
  display: block;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  color: #222;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-nav > a,
.nav-group > button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.nav-group {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: 42px;
  left: 50%;
  min-width: 230px;
  padding: 10px 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--body);
  font-size: 12px;
  text-transform: none;
  white-space: nowrap;
}

.nav-menu a:hover,
.primary-nav > a:hover,
.nav-group > button:hover {
  color: var(--cyan);
}

.home-page .site-header {
  animation: homeDropIn .55s ease-out both;
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 110px max(34px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .64), rgba(0, 0, 0, .22) 62%, rgba(0, 0, 0, .45)),
    url("https://images.squarespace-cdn.com/content/v1/5bbb204efd67936364500b10/1633485643713-RVFHZE8OPQXM4QBPPRC7/Grade+12.jpg?format=2500w") center / cover;
}

.hero-copy {
  max-width: 760px;
}

.home-page .hero-copy .small-label,
.home-page .hero-copy h1,
.home-page .hero-copy p:not(.small-label) {
  animation: homeRise .72s ease-out both;
}

.home-page .hero-copy h1 {
  animation-delay: .12s;
}

.home-page .hero-copy p:not(.small-label) {
  animation-delay: .24s;
}

.small-label {
  margin: 0 0 14px;
  color: #8edfff;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: inherit;
  font-family: "Fjalla One", Impact, sans-serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(46px, 7vw, 96px);
}

h2 {
  font-size: clamp(28px, 3.5vw, 50px);
}

h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 18px;
}

.hero p:not(.small-label) {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 23px;
}

.shortcut-band {
  width: min(1180px, calc(100% - 40px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--white);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
}

.home-page .shortcut-band {
  animation: homeFloatUp .65s .34s ease-out both;
}

.shortcut-band a {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  text-align: center;
  font-weight: 800;
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}

.shortcut-band a:last-child {
  border-right: 0;
}

.shortcut-band a:hover {
  color: var(--white);
  background: var(--cyan);
  transform: translateY(-4px);
}

.intro-strip {
  padding: 96px 24px 64px;
  text-align: center;
}

.intro-strip p {
  margin: 0;
  color: var(--black);
  font-family: "Fjalla One", Impact, sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  text-transform: uppercase;
}

.three-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 86px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.three-panel article {
  min-height: 330px;
  padding: 42px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease;
}

.home-page .three-panel article:hover {
  position: relative;
  z-index: 1;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
  transform: translateY(-8px);
}

.three-panel h2 {
  color: var(--black);
  font-size: 36px;
}

.three-panel p {
  min-height: 132px;
  color: var(--muted);
}

.three-panel a,
.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  color: var(--white);
  background: var(--black);
  font-weight: 800;
  transition: background-color .22s ease, transform .22s ease;
}

.three-panel a:hover,
.button:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}

.image-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.image-text-section.reverse {
  grid-template-columns: 1fr 1fr;
}

.image-block {
  min-height: 560px;
  background: center / cover no-repeat;
  transition: filter .5s ease, transform .5s ease;
}

.home-page .image-text-section:hover .image-block {
  filter: saturate(1.08) contrast(1.03);
}

.curriculum-image {
  background-image: url("https://images.squarespace-cdn.com/content/v1/5bbb204efd67936364500b10/1553654626319-PRLM78P5G8UUXLKVKPI1/Utama03.jpg?format=2500w");
}

.admissions-image {
  background-image: url("https://images.squarespace-cdn.com/content/v1/5bbb204efd67936364500b10/1544501763457-DQMIJNQGH1IF6HE781OX/YIS+Website-5739.jpg?format=2500w");
}

.text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px max(42px, calc((100vw - 1180px) / 2));
}

.text-block h2 {
  color: var(--black);
}

.text-block p:not(.small-label) {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
}

.programme-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 430px;
  margin: 26px 0;
}

.programme-row span {
  padding: 18px;
  color: var(--white);
  background: var(--cyan);
  text-align: center;
  font-family: "Fjalla One", Impact, sans-serif;
  font-size: 32px;
  transition: background-color .22s ease, transform .22s ease;
}

.home-page .programme-row span:hover {
  background: var(--red);
  transform: translateY(-4px);
}

.about-detail,
.community-highlight,
.city-section {
  padding: 90px max(34px, calc((100vw - 1180px) / 2));
}

.about-detail {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  background: var(--soft);
}

.about-detail h2,
.community-highlight h2,
.city-section h2 {
  color: var(--black);
}

.about-detail p,
.community-highlight p,
.city-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.community-highlight {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .42)),
    url("https://images.squarespace-cdn.com/content/v1/5bbb204efd67936364500b10/8630f221-ac6d-4bb0-9ef1-46e5a56e8a0b/DSC_0670.JPG?format=2500w") center / cover;
}

.community-highlight h2,
.community-highlight p {
  color: var(--white);
}

.facts {
  display: grid;
  gap: 12px;
}

.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  min-height: 90px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .92);
  color: var(--black);
  transition: transform .24s ease, background-color .24s ease;
}

.home-page .facts div:hover {
  background: var(--white);
  transform: translateX(-8px);
}

.facts strong {
  color: var(--cyan);
  font-family: "Fjalla One", Impact, sans-serif;
  font-size: 42px;
  font-weight: 400;
}

.facts span {
  font-weight: 800;
}

.city-section {
  text-align: center;
}

.city-section p {
  margin-left: auto;
  margin-right: auto;
}

.footer-cta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-cta a {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-right: 1px solid var(--line);
  font-weight: 800;
  text-transform: uppercase;
  transition: background-color .22s ease, color .22s ease;
}

.footer-cta a:last-child {
  border-right: 0;
}

.footer-cta a:hover {
  color: var(--white);
  background: var(--black);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr .7fr 1fr;
  gap: 42px;
  padding: 70px max(34px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, .82);
  background: var(--footer);
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer h2 {
  font-size: 34px;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer a:hover {
  color: var(--cyan);
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .26);
  font-weight: 800;
}

.japan-logbook-button {
  position: fixed;
  right: 22px;
  bottom: 98px;
  z-index: 10;
  display: inline-grid;
  grid-template-columns: 42px max-content;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px 8px 8px;
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.japan-flag {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, .16);
}

.japan-flag::before {
  content: "";
  width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #bc002d;
}

.japan-logbook-button:hover {
  color: var(--black);
  transform: translateY(-2px);
}

.home-page .whatsapp {
  animation: whatsAppPulse 2.4s ease-in-out infinite;
}

.reveal,
.reveal-item,
.reveal-image,
.reveal-text,
.stagger-links a,
.stagger-programmes span,
.stagger-facts div {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal {
  transform: translateY(44px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item,
.stagger-links a,
.stagger-programmes span,
.stagger-facts div {
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-item.is-visible,
.stagger-links a.is-visible,
.stagger-programmes span.is-visible,
.stagger-facts div.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-image {
  transform: scale(.96);
  transition: opacity .85s ease, transform .85s ease, filter .5s ease;
}

.reveal-image.is-visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-text {
  transform: translateX(34px);
  transition: opacity .72s ease, transform .72s ease;
}

.reverse .reveal-text,
.about-detail .reveal-text:first-child,
.community-highlight .reveal-text {
  transform: translateX(-34px);
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-links a:nth-child(2),
.stagger-cards .reveal-item:nth-child(2),
.stagger-programmes span:nth-child(2),
.stagger-facts div:nth-child(2) {
  transition-delay: .1s;
}

.stagger-links a:nth-child(3),
.stagger-cards .reveal-item:nth-child(3),
.stagger-programmes span:nth-child(3),
.stagger-facts div:nth-child(3) {
  transition-delay: .2s;
}

.stagger-links a:nth-child(4) {
  transition-delay: .3s;
}

.stagger-links a:nth-child(5) {
  transition-delay: .4s;
}

.home-page .city-section.is-visible h2 {
  animation: softScaleIn .65s ease-out both;
}

@keyframes homeDropIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeFloatUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionFadeIn {
  from {
    opacity: .25;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whatsAppPulse {
  0%,
  100% {
    box-shadow: 0 14px 36px rgba(0, 0, 0, .26), 0 0 0 0 rgba(37, 211, 102, .36);
  }
  50% {
    box-shadow: 0 14px 36px rgba(0, 0, 0, .26), 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

@keyframes softScaleIn {
  from {
    transform: scale(.96);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

.page-hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 100px max(34px, calc((100vw - 1180px) / 2));
  color: var(--white);
}

.principal-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .3)),
    url("https://images.squarespace-cdn.com/content/v1/5bbb204efd67936364500b10/250d7434-ecf0-46b7-b6e0-5cd3d3bec037/ARF06971.JPG?format=2500w") center / cover;
}

.page-hero div {
  max-width: 760px;
}

.page-hero p:not(.small-label) {
  max-width: 620px;
  font-size: 22px;
}

.principal-copy {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
  padding: 80px max(34px, calc((100vw - 1180px) / 2));
}

.principal-copy h2 {
  color: var(--black);
}

.principal-copy p,
.principal-copy li {
  color: var(--muted);
  font-size: 18px;
}

.principal-copy aside {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.local-page-copy {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 44px;
  padding: 80px max(34px, calc((100vw - 1180px) / 2));
}

.local-page-copy > article {
  max-width: 760px;
}

.local-page-copy p,
.local-page-copy li {
  color: var(--muted);
  font-size: 18px;
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-card-grid article {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.page-card-grid h3 {
  color: var(--black);
}

.page-card-grid a,
.local-page-copy article a {
  color: var(--cyan);
  font-weight: 800;
}

.kanji-callout {
  align-self: center;
  color: var(--black);
  font-family: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 400;
  font-size: clamp(72px, 9vw, 132px);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.page-facts {
  align-content: start;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight: 800;
}

.download-list a:hover {
  color: var(--white);
  background: var(--cyan);
}

.download-list small {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.download-list a:hover small {
  color: rgba(255, 255, 255, .82);
}

.testimonial-gallery {
  grid-column: 1 / -1;
  display: grid;
  gap: 30px;
}

.testimonies-copy {
  grid-template-columns: 1fr;
  gap: 34px;
}

.testimonies-copy > article {
  max-width: 700px;
}

.testimonial-gallery h2 {
  color: var(--black);
  font-size: clamp(28px, 3vw, 42px);
}

.testimonial-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  margin: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.testimonial-portrait {
  width: 96px;
  aspect-ratio: 1;
  grid-column: 1;
  grid-row: 1;
  display: block;
  border-radius: 50%;
  border: 4px solid var(--white);
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

.testimonial-card blockquote {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.testimonial-card p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
}

.testimonial-card figcaption {
  grid-column: 2;
  grid-row: 1;
  align-content: center;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 14px;
}

.testimonial-card strong {
  color: var(--black);
  font-size: 16px;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }

  .primary-nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 4px;
  }

  .shortcut-band,
  .three-panel,
  .image-text-section,
  .about-detail,
  .community-highlight,
  .footer-cta,
  .site-footer,
  .principal-copy,
  .local-page-copy,
  .page-card-grid,
  .download-list a,
  .testimonial-card-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-band {
    margin-top: 0;
  }

  .shortcut-band a,
  .footer-cta a {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 640px;
  }

  .about-detail,
  .image-text-section,
  .image-text-section.reverse {
    gap: 0;
  }

  .image-block {
    min-height: 360px;
  }

  .text-block {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 64px;
  }

  .about-detail {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .reveal-text,
  .reverse .reveal-text,
  .about-detail .reveal-text:first-child,
  .community-highlight .reveal-text {
    transform: translateY(28px);
  }

  .reveal-text.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 28px);
  }

  .primary-nav {
    font-size: 12px;
  }

  .nav-group {
    display: none;
  }

  .hero,
  .text-block,
  .about-detail,
  .community-highlight,
  .city-section,
  .site-footer,
  .page-hero,
  .principal-copy,
  .local-page-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .small-label {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.18;
  }

  .text-block h2,
  .about-detail h2,
  .city-section h2,
  .community-highlight h2 {
    font-size: clamp(31px, 10vw, 42px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .about-detail {
    gap: 18px;
  }

  .about-detail p,
  .text-block p:not(.small-label) {
    font-size: 17px;
  }

  .image-text-section.reverse .text-block {
    text-align: left;
    align-items: flex-start;
  }

  .three-panel {
    width: calc(100% - 28px);
  }

  .hero p:not(.small-label),
  .page-hero p:not(.small-label) {
    font-size: 19px;
  }

  .kanji-callout {
    font-size: clamp(56px, 18vw, 96px);
    text-align: left;
  }

  .japan-logbook-button {
    right: 16px;
    bottom: 92px;
    grid-template-columns: 38px max-content;
    max-width: calc(100vw - 32px);
    font-size: 11px;
  }

  .japan-flag {
    width: 38px;
  }

  .programme-row {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .testimonial-portrait {
    width: 72px;
  }

  .testimonial-card p {
    font-size: 15px;
  }

  .testimonial-card figcaption {
    font-size: 13px;
  }

  .testimonial-card strong {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .testimonial-card figcaption {
    grid-column: 1;
    grid-row: 2;
  }

  .testimonial-card blockquote {
    grid-row: 3;
  }
}
