/* =========================================================
   Scholarise Academy – Home
   Desktop layout is built on a 1440px frame to match Mockup.png.
   ========================================================= */

/* ---------- Fonts (bundled locally, work offline) ---------- */
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --primary: #035643;
  --secondary: #349C5C;
  --light-green: #EEFBF2;
  --white: #FFFFFF;

  /* other colours visible in the mockup */
  --black: #000000;
  --text: #282828;
  --text-strong: #1c1c1c;
  --card-text: #4a606b;
  --sub-text: #475e6d;
  --footer-text: #31515f;
  --yellow: #F8BD25;
  --icon-green: #057043;
  --cream: #FCFAF3;
  --card-green: #F2FAF5;
  --icon-circle: #E8F2E4;
  --muted-green: #65B693;

  /* fonts: swap these two lines to change the whole type system */
  --font-heading: "Poppins", system-ui, sans-serif;   /* hero + philosophy headings, buttons, nav, footer */
  --font-body: "Montserrat", system-ui, sans-serif;   /* hero + philosophy body copy and eyebrows */
  --font-believe: "Inter", system-ui, sans-serif;      /* "What We Believe" section */

}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font-heading); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }

/* Design frame: 1440px wide at most, fluid below that. No zoom or scaling. */
.frame { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; }

/* Each band is a size container, so spacing can respond to the real available width. */
.site-header, .hero, .philosophy, .believe, .footer-main { container-type: inline-size; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--primary); color: var(--white);
  font-family: var(--font-heading); font-weight: 700; font-size: 20px; letter-spacing: -0.03em;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(3, 86, 67, 0.28);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: #024a3a; box-shadow: 0 8px 18px rgba(3, 86, 67, 0.32); }

/* =========================================================
   HEADER
   Fixed content (logo 315 + nav words 530 + button 174 = 1019px).
   The 419px of spacing shrinks evenly when the header is narrower than 1440px.
   ========================================================= */
.site-header { background: var(--white); position: relative; z-index: 10; }
.header-frame {
  --k: min(1px, calc((100cqw - 1019px) / 419));
  height: 136px; display: flex; align-items: center;
  padding: 0 calc(var(--k) * 55) 0 calc(var(--k) * 68);
}
.logo { flex: none; }
.logo img { width: 315px; height: auto; }
.main-nav { display: flex; align-items: center; margin-left: calc(var(--k) * 96); }
.main-nav ul { display: flex; gap: calc(var(--k) * 39.5); }
.main-nav ul a {
  position: relative; display: block; padding-top: 8px; white-space: nowrap;
  font-family: var(--font-heading); font-size: 20px; line-height: 30px; color: var(--black);
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--secondary); border-radius: 2px; transform: scaleX(0); transition: transform .2s ease;
}
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.btn-enroll { flex: none; width: 174px; height: 45px; margin: 8px 0 0 calc(var(--k) * 42); }
.nav-toggle { display: none; }

/* =========================================================
   HERO
   Text keeps its approved size. The illustration is sized as a share of the
   frame (845/1440) and its decorations are positioned as shares of the illustration.
   ========================================================= */
.hero { background: var(--light-green); }
.hero-frame { height: 722px; }
.hero-copy { position: relative; z-index: 3; padding: 92px 0 0 74px; }
.hero-eyebrow { font-family: var(--font-body); font-size: 21.7px; line-height: 26.4px; color: var(--primary); }
.hero-title {
  margin: 19.6px 0 0 -1px;
  font-family: var(--font-heading); font-weight: 700; font-size: 53px; line-height: 75px; color: var(--black);
  white-space: nowrap;
}
.hero-title span { display: block; }
.hero-title .l3 { position: relative; color: var(--secondary); margin-top: 1px; font-size: 54px; }
.hero-swoosh { position: absolute; left: 231px; top: 68px; width: 212px; height: 33px; }
.hero-text { margin: 38.5px 0 0 2px; font-family: var(--font-body); font-size: 22px; line-height: 34px; color: var(--text); }
.btn-explore { width: 266px; height: 57px; margin: 35.5px 0 0 -3px; }

.hero-visual { position: absolute; left: 38.8889%; bottom: 53px; width: 58.6806%; z-index: 1; }
.hero-visual img { width: 100%; height: auto; }
.hero-visual svg { position: absolute; height: auto; }
.hero-book { left: 22.249%; top: 25.310%; width: 10.888%; }
.hero-arrow-yellow { left: 35.621%; top: 24.602%; width: 7.811%; }
.hero-bulb { left: 65.562%; top: 7.080%; width: 15.976%; filter: drop-shadow(0 3px 5px rgba(0,0,0,.10)); }
.hero-arrow-green { left: 77.988%; top: 31.504%; width: 11.598%; }

/* =========================================================
   TEACHING PHILOSOPHY
   Two-column grid: text column keeps its 684px width while it can,
   the photo column takes the remaining space.
   ========================================================= */
.philosophy-frame { padding-bottom: 78px; }
.section-eyebrow {
  padding: 89px 0 0 14px; text-align: center;
  font-family: var(--font-body); font-weight: 400; font-size: 35.4px; line-height: 42.6px; color: var(--primary);
}
.philosophy-body {
  display: grid; grid-template-columns: minmax(360px, 1fr) minmax(560px, 684px); column-gap: 36px;
  margin-top: 79.15px; padding: 0 min(78px, 5.4167cqw);
}
.philosophy-media { position: relative; align-self: start; margin-top: 21.25px; }
.philosophy-img { width: 100%; height: auto; }
.philosophy-media svg { position: absolute; height: auto; }
.phil-bulb { left: 0; top: -0.853%; width: 19.326%; }
.phil-sparks { left: 92.199%; top: 17.235%; width: 7.624%; }
.phil-tri { left: 26.064%; top: 95.563%; width: 3.723%; }

.philosophy-copy > h3, .philosophy-copy > p { padding-left: 14px; }
.philosophy-title { font-family: var(--font-heading); font-weight: 700; font-size: 51.5px; line-height: 64px; color: var(--black); white-space: nowrap; }
.philosophy-title .accent { color: var(--secondary); }
.philosophy-copy > p { font-family: var(--font-body); font-size: 21px; line-height: 27.5px; color: var(--text); }
.philosophy-copy > p strong { font-weight: 700; color: var(--text-strong); }
.philosophy-copy .p1 { margin-top: 18.6px; }
.philosophy-copy .p2 { margin-top: 13.5px; }
.philosophy-copy .p3 { margin-top: 23px; }

.philosophy-box {
  position: relative; margin-top: 23px; width: 100%; min-height: 153px;
  background: var(--light-green); border-radius: 28px;
  padding: 25.4px 20px 27px 132px;
}
.box-icon { position: absolute; left: 29px; top: 36px; width: 78px; height: 78px; border-radius: 50%; background: var(--white); }
.box-icon svg { width: 78px; height: 78px; }
.box-label { margin-left: 4px; font-family: var(--font-body); font-size: 14px; line-height: 16.8px; color: var(--primary); }
.box-text { margin-top: 7.8px; font-family: var(--font-body); font-weight: 600; font-size: 19.3px; line-height: 25px; color: var(--primary); white-space: nowrap; }

/* Text column narrower than 684px: let the copy wrap naturally instead of forcing the desktop line breaks. */
@container (max-width: 1208px) {
  .philosophy-copy br.d { display: none; }
  .box-text { white-space: normal; }
}

/* =========================================================
   WHAT WE BELIEVE
   ========================================================= */
.believe-frame { padding-bottom: 136px; font-family: var(--font-believe); }
.believe-wash {
  position: absolute; left: 2.78%; top: 10px; width: 94.44%; height: 230px;
  background: #F4F8F7; border-radius: 50% / 45%; filter: blur(22px); opacity: .9;
}
.believe-head { position: relative; padding: 43px 16px 0 0; text-align: center; }
.believe-eyebrow { font-weight: 600; font-size: 12.4px; line-height: 14.9px; letter-spacing: .15em; color: var(--secondary); }
.believe-rule { display: block; width: 56px; height: 3px; margin: 15.1px auto 0; background: var(--secondary); border-radius: 2px; }
.believe-title { margin-top: 7px; font-weight: 800; font-size: 64px; line-height: 68.2px; letter-spacing: -0.04em; color: var(--primary); }
.believe-sub { margin-top: 6px; font-size: 17px; line-height: 21px; color: var(--sub-text); }
.title-spark { position: absolute; top: 70px; width: 38px; height: 48px; }
.title-spark.left { left: calc(50% - 307px); }
.title-spark.right { left: calc(50% + 252px); }

.belief-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(329px, auto) minmax(344px, auto);
  column-gap: 16px; row-gap: 7px;
  margin: 17px min(86px, 5.9722cqw) 0 min(66px, 4.5833cqw);
}
.belief-card {
  --bg: var(--card-green);
  position: relative; min-width: 0; padding: 14px 0 0 33px;
  background: var(--bg); box-shadow: 0 0 14px 4px var(--bg);
  color: var(--card-text); font-size: 14.2px; line-height: 16.4px; letter-spacing: -0.012em;
  white-space: nowrap;
}
.belief-card.cream { --bg: var(--cream); }
.belief-card.c2 { padding-left: 46px; } .belief-card.c3 { padding-left: 37px; } .belief-card.c4 { padding-left: 37px; }
.belief-card.c5 { padding-left: 34px; } .belief-card.c6 { padding-left: 43px; } .belief-card.c7 { padding-left: 42px; } .belief-card.c8 { padding-left: 37px; }
.c1 { border-radius: 40px 58px 46px 62px / 50px 42px 58px 46px; }
.c2 { border-radius: 56px 44px 60px 40px / 44px 56px 42px 58px; }
.c3 { border-radius: 44px 60px 40px 56px / 56px 46px 60px 42px; }
.c4 { border-radius: 60px 42px 56px 46px / 42px 58px 46px 56px; }
.c5 { border-radius: 46px 56px 42px 60px / 58px 44px 56px 42px; }
.c6 { border-radius: 58px 40px 60px 44px / 46px 60px 42px 56px; }
.c7 { border-radius: 42px 60px 46px 56px / 60px 42px 58px 46px; }
.c8 { border-radius: 56px 46px 58px 42px / 42px 56px 46px 60px; }

.card-icon { position: relative; width: 86px; height: 84px; margin: -8px 0 6px -8px; border-radius: 50%; background: var(--icon-circle); box-shadow: 0 0 8px 3px var(--icon-circle); }
.cream .card-icon { --icon-circle: #EDF2E3; }
.c1 .card-icon { --icon-circle: #F3F3E1; }
.card-icon .ico { position: absolute; left: 18px; top: 17px; width: 50px; height: 50px; }
.card-icon .rays { position: absolute; left: 60px; top: 4px; width: 36px; height: 30px; overflow: visible; }
.c8 .card-icon .rays { left: 13px; top: 0; width: 60px; height: 30px; }
.deco { position: absolute; overflow: visible; }
.belief-card h3 { font-weight: 700; font-size: 20.5px; line-height: 20.8px; letter-spacing: -0.03em; color: var(--primary); }
.card-bar { display: block; width: 38px; height: 3px; margin: 12px 0 10px; background: var(--secondary); border-radius: 2px; }
.belief-card p + p { margin-top: 5px; }
.belief-card strong, .belief-card .em { font-weight: 700; color: var(--primary); }

.believe-arc { position: absolute; }
.believe-arc.right { left: calc(100% - 85px); top: 336px; width: 24px; height: 64px; }
.believe-arc.left { left: min(46px, 3.19cqw); top: 798px; width: 16px; height: 50px; }

/* Cards narrower than their longest desktop line: wrap the copy inside the card. */
@container (max-width: 1379px) {
  .belief-card { white-space: normal; padding-right: 14px; padding-bottom: 18px; }
  .belief-card br.d { display: none; }
  .belief-card.c8 .deco { top: 16px !important; height: 70px !important; }
  .belief-card.c3 .deco { top: 46px !important; }
}

/* =========================================================
   FOOTER
   Fixed content (brand 285 + columns 129/194/149 + newsletter 332 = 1089px).
   The 351px of spacing shrinks evenly when the footer is narrower than 1440px.
   ========================================================= */
.footer-main { background: var(--light-green); }
.footer-frame {
  --k: min(1px, calc((100cqw - 1089px) / 351));
  height: 330px; display: flex; align-items: flex-start; overflow: hidden;
}
.footer-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.leaves { position: absolute; }
.leaves-left { left: 0; top: 270px; width: 118px; }
.leaves-right { right: 0; top: 240px; width: 105px; }

.footer-brand { position: relative; flex: none; width: 285px; margin: 71px 0 0 calc(var(--k) * 68); }
.footer-brand > img { width: 239px; height: auto; }
.footer-rule { display: block; width: 46px; height: 3px; margin-top: 17px; background: var(--secondary); border-radius: 2px; }
.footer-brand p { margin-top: 13px; font-size: 14.6px; line-height: 21.5px; color: var(--footer-text); }
.social { display: flex; gap: 21.7px; margin: 23px 0 0 24px; }
.social a { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; transition: transform .2s ease; }
.social a:hover { transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
.social .fb { background: #1877F2; }
.social .wa { background: #25D366; }
.social .li { background: #0A66C2; }
.social .yt { background: #FF0000; }

.footer-col { position: relative; flex: none; margin: 64.6px calc(var(--k) * 28) 0 calc(var(--k) * 36); }
.col-quick { width: 129px; }
.col-courses { width: 194px; }
.col-support { width: 149px; }
.footer-col::before, .newsletter::before {
  content: ""; position: absolute; top: 3.4px; left: calc(var(--k) * -36);
  width: 1px; height: 211px; background: #cfe2d7;
}
.newsletter::before { top: -32.7px; left: calc(var(--k) * -59); }
.footer-col h4 { font-weight: 700; font-size: 17.3px; line-height: 20.8px; color: var(--primary); }
.footer-col h4::after { content: ""; display: block; width: 34px; height: 2px; margin-top: 11px; background: var(--secondary); border-radius: 2px; }
.footer-col ul { margin-top: 7.5px; }
.footer-col li a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.4px; line-height: 28.9px; color: var(--footer-text); white-space: nowrap;
}
.footer-col li a::after {
  content: ""; width: 6px; height: 6px; margin-right: 1px;
  border-right: 1.5px solid var(--secondary); border-top: 1.5px solid var(--secondary); transform: rotate(45deg);
}
.footer-col li a:hover { color: var(--primary); }

.newsletter { position: relative; flex: none; width: 332px; margin: 100.7px 0 0 calc(var(--k) * 59); }
.newsletter h4 { font-weight: 700; font-size: 21px; line-height: 25.2px; color: var(--primary); }
.newsletter > p { margin-top: 12px; font-size: 13.2px; line-height: 19.5px; color: var(--footer-text); }
.plane { position: absolute; left: 294px; top: -68px; width: 46px; height: 46px; }
.plane-path { position: absolute; left: 180px; top: -40px; width: 130px; height: 45px; }
.subscribe { position: relative; margin-top: 16px; width: 330px; max-width: 100%; height: 43px; margin-left: 1px; }
.subscribe .mail { position: absolute; left: 12px; top: 14px; width: 18px; height: 14px; }
.subscribe input {
  width: 100%; height: 100%; padding: 0 130px 0 43px;
  background: var(--white); border: 1px solid #d6e5dc; border-radius: 7px;
  font-size: 11.3px; color: var(--primary); outline: none;
}
.subscribe input::placeholder { color: #9aa5a1; }
.subscribe input:focus { border-color: var(--secondary); }
.btn-subscribe {
  position: absolute; right: 0; top: 0; width: 121px; height: 43px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: var(--white); border: 0; border-radius: 6px; cursor: pointer;
  font-weight: 600; font-size: 13.4px;
}
.btn-subscribe:hover { background: #024a3a; }
.btn-subscribe svg { width: 13px; height: 11px; }
.privacy { display: flex; align-items: center; gap: 11px; margin-top: 11px; font-size: 11.05px; line-height: 22px; color: var(--footer-text); }
.privacy svg { width: 18px; height: 22px; flex: none; }
.nl-status { position: absolute; left: 0; top: 100%; font-size: 11.25px; color: var(--primary); }

/* ---------- bottom bar ---------- */
.footer-bar { background: var(--primary); color: var(--white); }
.bar-frame { height: 148px; font-size: 11.8px; }
.contact-info { position: absolute; left: 64px; top: 32px; display: flex; }
.contact-info li { position: relative; display: flex; align-items: flex-start; }
.contact-info span { display: flex; flex-direction: column; line-height: 17px; margin-top: -3px; }
.contact-info small { font-size: 11.8px; color: var(--muted-green); }
.contact-info a:hover { text-decoration: underline; }
.ci-loc svg { width: 21px; height: 27px; margin-right: 23px; }
.ci-loc { width: 228px; }
.ci-mail svg { width: 25px; height: 18px; margin: 3px 21px 0 0; }
.ci-mail { width: 316px; }
.ci-time svg { width: 27px; height: 27px; margin-right: 19px; }
.ci-loc::after, .ci-mail::after { content: ""; position: absolute; top: 0; height: 30px; width: 1px; background: rgba(255,255,255,.14); }
.ci-loc::after { left: 196px; }
.ci-mail::after { left: 278px; }
.bar-line { position: absolute; left: 52px; right: 52px; top: 87px; height: 1px; background: rgba(255,255,255,.22); }
.copyright { position: absolute; left: 51px; top: 107px; line-height: 17px; }
.legal { position: absolute; right: 53px; top: 107px; display: flex; gap: 19px; line-height: 17px; }
.legal a:hover { text-decoration: underline; }

/* =========================================================
   SMALLER SCREENS
   Each band switches layout only when its desktop version no longer fits.
   ========================================================= */

/* Header: full navigation needs about 1180px. */
@media (max-width: 1199px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2.5px; background: var(--primary); border-radius: 2px; }
  .header-frame { padding: 0 24px 0 28px; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 28px 24px;
    background: var(--white); box-shadow: 0 12px 20px rgba(0,0,0,.08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav ul a { display: inline-block; padding: 6px 0; font-size: 18px; }
  .main-nav ul a::after { bottom: 2px; }
  .btn-enroll { margin: 6px 0 0; width: 100%; }
}

/* Footer: five columns need about 1240px. */
@media (max-width: 1259px) {
  .footer-frame { height: auto; padding: 44px 28px 110px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-brand, .footer-col, .newsletter { width: auto; margin: 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col::before, .newsletter::before { display: none; }
  .newsletter { grid-column: 1 / -1; max-width: 420px; }
  .plane { left: auto; right: 0; top: -10px; }
  .plane-path { display: none; }
  .subscribe { width: 100%; }
  .leaves-left { top: auto; bottom: 0; }
  .leaves-right { top: auto; bottom: 0; }
}

/* Hero and philosophy: side-by-side layout needs 1150px of real content width
   (container queries measure the page without the scrollbar). */
@container (max-width: 1150px) {
  .hero br.d { display: none; }
  .hero-frame { height: auto; display: flex; flex-direction: column; padding: 40px 28px 32px; }
  .hero-copy { padding: 0; }
  .hero-eyebrow { font-size: 14px; line-height: 20px; }
  .hero-title { margin-top: 12px; font-size: clamp(28px, 6.4vw, 53px); line-height: 1.38; white-space: normal; }
  .hero-title .l3 { display: inline-block; font-size: inherit; margin-top: 0; }
  .hero-title .l3::after {
    content: ""; position: absolute; left: 40%; right: -2%; bottom: -4px; height: 4px;
    background: var(--secondary); border-radius: 4px; transform: rotate(-1deg);
  }
  .hero-swoosh { display: none; }
  .hero-text { margin: 22px 0 0; font-size: 17px; line-height: 1.6; max-width: 34em; }
  .btn-explore { margin: 26px 0 0; width: auto; height: 52px; padding: 0 28px; font-size: 17px; }
  .hero-visual { position: relative; left: auto; bottom: auto; width: 100%; max-width: 640px; margin: 28px auto 0; }
}
@container (max-width: 1150px) {
  .philosophy br.d { display: none; }
  .philosophy-frame { padding: 48px 28px 40px; }
  .section-eyebrow { padding: 0; font-size: clamp(22px, 4.6vw, 34px); line-height: 1.25; }
  .philosophy-body { display: block; margin-top: 28px; padding: 0; }
  .philosophy-media { max-width: 520px; margin: 0 auto; }
  .philosophy-copy { margin-top: 28px; }
  .philosophy-copy > h3, .philosophy-copy > p { padding-left: 0; }
  .philosophy-title { font-size: clamp(28px, 6vw, 48px); line-height: 1.25; white-space: normal; }
  .philosophy-copy > p { font-size: 17px; line-height: 1.6; }
  .philosophy-copy .p1 { margin-top: 18px; }
  .philosophy-copy .p2, .philosophy-copy .p3 { margin-top: 14px; }
  .philosophy-box { margin-top: 24px; min-height: 0; padding: 22px 22px 22px 100px; border-radius: 22px; }
  .box-icon { left: 18px; top: 22px; width: 64px; height: 64px; }
  .box-icon svg { width: 64px; height: 64px; }
  .box-label { margin: 0; font-size: 12px; }
  .box-text { font-size: 16px; line-height: 1.5; white-space: normal; }
}

/* Tablet and phone */
@media (max-width: 1023px) {
  .header-frame { height: 84px; padding: 0 20px; }
  .logo img { width: 190px; }
  .main-nav { padding: 16px 20px 24px; }
  .hero-frame, .philosophy-frame { padding-left: 20px; padding-right: 20px; }

  .believe-frame { padding: 40px 20px 56px; }
  .believe-wash { left: 0; width: 100%; }
  .believe-head { padding: 0; }
  .believe-title { font-size: clamp(38px, 8vw, 60px); line-height: 1.15; }
  .believe-sub { font-size: 15px; line-height: 1.5; }
  .title-spark { display: none; }
  .belief-grid { margin: 32px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 20px; }
  .belief-card { padding: 16px 22px 26px 26px; white-space: normal; font-size: 14px; line-height: 1.5; }
  .belief-card.c2, .belief-card.c3, .belief-card.c4, .belief-card.c5, .belief-card.c6, .belief-card.c7, .belief-card.c8 { padding-left: 26px; }
  .belief-card h3 { font-size: 19px; line-height: 1.2; }
  .deco, .believe-arc { display: none; }

  .footer-frame { padding: 40px 20px 110px; }
  .footer-brand > img { width: 200px; }
  .social { margin-left: 0; }
  .footer-col li a { font-size: 14px; line-height: 32px; }

  .bar-frame { height: auto; padding: 26px 20px 22px; display: flex; flex-direction: column; gap: 18px; font-size: 13px; }
  .contact-info { position: static; flex-direction: column; gap: 16px; }
  .contact-info li { width: auto; }
  .contact-info small { font-size: 12px; }
  .ci-loc::after, .ci-mail::after { display: none; }
  .bar-line { position: static; }
  .copyright, .legal { position: static; }
  .legal { flex-wrap: wrap; gap: 10px 14px; }
}

@media (max-width: 640px) {
  .belief-grid { grid-template-columns: 1fr; }
  .footer-frame { grid-template-columns: 1fr 1fr; }
  .col-support { grid-column: 1 / -1; }
  .philosophy-box { padding: 84px 20px 22px 20px; }
  .box-icon { left: 20px; top: 14px; }
}
