/* Concord Collegiate Institute
   The idea: the marked-up page. Paper sheets lie on a navy ground and red is the pen. */

:root {
  --navy: #0a1f44;
  --navy-deep: #061530;
  --paper: #f6f6f3;
  --paper-2: #e8e9ec;
  --ink: #0a1f44;
  --muted: #3f4b66;
  --red: #c8102e;
  --red-dark: #a50d26;
  --red-bright: #ff4d5e;
  --white: #ffffff;
  --mark: #ffd5da;

  /* names the pages still use inline */
  --royal: var(--navy);
  --sky: var(--red);
  --light-sky: var(--paper-2);
  --off-white: var(--paper-2);
  --text-dark: var(--ink);
  --text-mid: var(--muted);
  --text-light: var(--muted);

  --serif: 'Boska', 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', 'DM Sans', sans-serif;

  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  --step-display: clamp(2rem, 0.8rem + 4.4vw, 5.2rem);
  --step-sub: 1.4rem;
  --step-sec: 1.9rem;

  --margin: 60px;
  --scallop: 9px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
p, h1, h2, h3, h4, li, label, span, a { word-break: keep-all; overflow-wrap: break-word; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: var(--step-body); line-height: 1.7; background: var(--paper); color: var(--ink); overflow-x: hidden; }
img { max-width: 100%; }
ul { list-style: none; }

:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; }

/* ─── LANGUAGE TOGGLE ─── */
.lang-toggle { display: flex; align-items: center; background: rgba(255,255,255,0.1); padding: 3px; gap: 2px; }
.lang-btn { background: none; border: none; color: rgba(255,255,255,0.75); font-family: var(--sans); font-size: var(--step-small); font-weight: 700; padding: 6px 14px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.lang-btn.active { background: var(--red); color: var(--white); }
.lang-btn:not(.active):hover { color: var(--white); background: rgba(255,255,255,0.12); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--margin);
  background: var(--navy);
  border-bottom: 4px solid var(--red);
  gap: 20px;
}
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.88); text-decoration: none; font-size: var(--step-body); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red-bright); }
.nav-cta { background: var(--red); color: var(--white) !important; padding: 11px 22px; font-weight: 700 !important; transition: background 0.2s, transform 0.2s; }
.nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--white); transition: transform 0.25s, opacity 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 99; background: var(--navy); flex-direction: column; padding: 16px 24px 28px; gap: 2px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--white); text-decoration: none; font-size: 1.1rem; font-weight: 500; padding: 14px 0; }
.mobile-menu a.active { color: var(--red-bright); }
.mobile-menu .nav-cta { margin-top: 10px; padding: 16px 0; text-align: center; }

/* ─── BRAND / LOGOS ─── */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { height: 32px; width: auto; display: block; }
.logo-en { display: none !important; }
html[lang="en"] .logo-ko { display: none !important; }
html[lang="en"] .logo-en { display: block !important; }

/* ─── BUTTONS ─── */
.btn-primary { display: inline-block; background: var(--red); color: var(--white); padding: 17px 36px; text-decoration: none; font-weight: 700; font-size: var(--step-body); transition: background 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-secondary { display: inline-block; background: rgba(255,255,255,0.12); color: var(--white); padding: 17px 36px; text-decoration: none; font-weight: 600; font-size: var(--step-body); transition: background 0.2s, transform 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ─── HOME HERO: the marked-up page ─── */
.hero {
  background: var(--navy);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px;
  align-items: start;
  padding: 150px var(--margin) 0;
  height: 100vh; min-height: 700px; max-height: 980px;
  position: relative; overflow: hidden;
}
.hero-text { align-self: center; padding-bottom: 110px; }
.hero-desc { font-size: var(--step-lead); line-height: 1.6; color: var(--white); max-width: 30em; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 104px; }
.stat-num { font-family: var(--serif); font-size: var(--step-head); font-weight: 500; color: var(--white); line-height: 1; }
.stat-label { font-size: var(--step-small); color: rgba(255,255,255,0.82); margin-top: 8px; }

.hero-card {
  background: var(--paper); color: var(--ink);
  padding: 56px 48px 0; min-height: 820px;
  -webkit-mask: radial-gradient(var(--scallop) at 50% 0, #0000 98%, #000) 50% 0 / calc(2 * var(--scallop)) 51% repeat-x, linear-gradient(#000, #000) 0 100% / 100% 52% no-repeat;
          mask: radial-gradient(var(--scallop) at 50% 0, #0000 98%, #000) 50% 0 / calc(2 * var(--scallop)) 51% repeat-x, linear-gradient(#000, #000) 0 100% / 100% 52% no-repeat;
}
.hero-card h1 { font-family: var(--serif); font-weight: 500; font-size: var(--step-display); line-height: 1.06; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 20px; }
.hero-card h1 em { display: block; font-style: normal; padding-left: 6%; }
.hero-sub { font-size: var(--step-body); color: var(--muted); margin-bottom: 44px; max-width: 30em; }

.passage { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 28px; align-items: start; }
.passage-text { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.6; color: var(--ink); }
.passage-source { display: block; margin-top: 18px; font-family: var(--sans); font-size: var(--step-small); color: var(--muted); }
.passage-notes { display: flex; flex-direction: column; gap: 44px; padding-top: 4px; }
.passage-notes p { font-family: var(--serif); font-style: italic; font-size: var(--step-body); line-height: 1.35; color: var(--red); }

/* the red pen */
.pen { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5 C 6 1, 10 1, 15 5 S 25 8, 30 4 S 41 1, 46 5 S 55 7, 59 3' fill='none' stroke='%23c8102e' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% 8px no-repeat; padding-bottom: 7px; animation: pen 0.9s 0.9s ease-out both; }
.hl { background-color: var(--mark); color: inherit; padding: 0 3px; animation: hl 0.6s 1.9s ease both; }
@keyframes pen { from { background-size: 0 8px; } to { background-size: 100% 8px; } }
@keyframes hl { from { background-color: transparent; } to { background-color: var(--mark); } }

/* ─── PAGE HERO (subpages): a title page on navy ─── */
.page-hero { background: var(--navy); padding: 170px var(--margin) 96px; text-align: center; }
.page-hero-inner { max-width: 820px; margin: 0 auto; }
.page-hero .section-title { color: var(--white); }
.page-hero .section-title::after { content: ''; display: block; width: 72px; height: 6px; background: var(--red); margin: 26px auto 0; }
.page-hero .section-desc { color: rgba(255,255,255,0.88); margin: 24px auto 0; }

/* ─── SECTIONS ─── */
section { padding: 140px var(--margin); }
.section-tag { display: none; }
.section-title { font-family: var(--serif); font-size: var(--step-head); font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -0.012em; margin-bottom: 22px; }
.section-desc { font-size: var(--step-lead); color: var(--muted); line-height: 1.65; max-width: 34em; }

.bg-white { background: var(--paper); }
.bg-off-white { background: var(--paper-2); }
.detail-container { max-width: 960px; margin: 0 auto; }

/* ─── ABOUT ─── */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; max-width: 1320px; margin: 0 auto; }
.about-card { background: var(--paper); padding: 56px 48px; position: relative; border-left: 8px solid var(--red); }
.about-icon { display: none; }
.about-card h3 { font-family: var(--serif); font-size: var(--step-sec); font-weight: 500; color: var(--ink); margin-bottom: 14px; line-height: 1.2; }
.about-card p { color: var(--muted); font-size: var(--step-body); }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag { background: var(--paper-2); color: var(--ink); padding: 7px 14px; font-size: var(--step-small); font-weight: 500; }
.fact-list { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.fact-list li { display: grid; grid-template-columns: minmax(8.5rem, max-content) minmax(0, 1fr); gap: 12px 28px; align-items: baseline; font-size: var(--step-body); padding: 14px 0; }
.fact-list li:nth-child(even) { background: var(--paper-2); padding-inline: 14px; margin-inline: -14px; }
.fact-list .fact-label { color: var(--red); font-weight: 700; }
.fact-list .fact-value { color: var(--ink); font-weight: 500; }

/* ─── APPROACH ─── */
.approach { background: var(--paper); }
.approach-header { text-align: left; max-width: 640px; margin: 0 0 56px; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1320px; margin: 0 auto; }
.approach-card { background: var(--paper-2); padding: 40px 34px; }
.approach-card:nth-child(2) { margin-top: 36px; }
.approach-card:nth-child(3) { margin-top: 72px; }
.approach-num { display: block; width: 18px; height: 18px; background: var(--red); font-size: 0; margin-bottom: 22px; }
.approach-card h3 { font-family: var(--serif); font-size: var(--step-sub); font-weight: 500; color: var(--ink); margin-bottom: 12px; line-height: 1.25; }
.approach-card p { color: var(--muted); font-size: var(--step-body); }

/* ─── SERVICES ─── */
.services { background: var(--paper); }
.services-header { text-align: left; max-width: 640px; margin: 0 0 64px; }
.service-list { display: flex; flex-direction: column; max-width: 960px; margin: 0 auto; }
.service-row { display: block; padding: 56px 0; }
.service-row:nth-child(even) { background: var(--paper-2); padding-inline: 40px; margin-inline: -40px; }
.service-row:first-child { padding-top: 0; }
.service-row-icon { display: none; }
.service-row-content .service-sub { font-size: var(--step-small); color: var(--red); font-weight: 700; margin-bottom: 8px; }
.service-row-content h3 { font-family: var(--serif); font-size: var(--step-sec); font-weight: 500; color: var(--ink); margin-bottom: 16px; line-height: 1.2; }
.service-row-content p { color: var(--muted); font-size: var(--step-body); margin-bottom: 14px; max-width: 42em; }
.service-row-content p:last-child { margin-bottom: 0; }

/* ─── SUBJECTS INDEX: printed sheets on a navy ground ─── */
.subjects-index { background: var(--navy); }
.subject-category {
  background: var(--paper); color: var(--ink);
  max-width: 780px; margin: 0 auto 72px; padding: 72px 64px;
  -webkit-mask: radial-gradient(var(--scallop) at 50% 0, #0000 98%, #000) 50% 0 / calc(2 * var(--scallop)) 51% repeat-x, radial-gradient(var(--scallop) at 50% 100%, #0000 98%, #000) 50% 100% / calc(2 * var(--scallop)) 51% repeat-x;
          mask: radial-gradient(var(--scallop) at 50% 0, #0000 98%, #000) 50% 0 / calc(2 * var(--scallop)) 51% repeat-x, radial-gradient(var(--scallop) at 50% 100%, #0000 98%, #000) 50% 100% / calc(2 * var(--scallop)) 51% repeat-x;
}
.subject-category:last-child { margin-bottom: 0; }
.subject-category:nth-of-type(even) { transform: translateX(6%); }
.subject-category-header { text-align: center; margin-bottom: 36px; }
.subject-category-header h2 { font-family: var(--serif); font-size: var(--step-head); font-weight: 500; color: var(--ink); line-height: 1.1; }
.subject-category-header .category-count { display: block; font-size: 1rem; color: var(--muted); margin-top: 8px; }
.subject-link-grid { display: flex; flex-direction: column; gap: 6px; }
.subject-link-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 18px; margin-inline: -18px; text-decoration: none; color: inherit; transition: background 0.2s, transform 0.2s; }
.subject-link-card:hover { background: var(--paper-2); transform: translateX(4px); }
.subject-link-top { display: block; }
.subject-link-top .emoji { display: none; }
.subject-link-card h3 { font-family: var(--serif); font-size: var(--step-sub); font-weight: 500; color: var(--ink); line-height: 1.25; margin-bottom: 2px; }
.subject-link-card .tagline { font-size: 1rem; color: var(--muted); }
.subject-link-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.badge-pill { font-size: 1rem; font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge-pill.level { color: var(--red-dark); font-weight: 700; }
.subject-link-view { grid-column: 1 / -1; font-size: 0; height: 0; overflow: hidden; }

/* ─── SUBJECT DETAIL ─── */
.breadcrumb { font-size: var(--step-small); margin-bottom: 26px; }
.breadcrumb a { color: rgba(255,255,255,0.82); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red-bright); }
.breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.5); }
.breadcrumb .current { color: var(--white); }
.detail-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.detail-badge { font-size: var(--step-small); font-weight: 600; padding: 9px 16px; background: rgba(255,255,255,0.12); color: var(--white); display: inline-flex; align-items: center; gap: 8px; }
.level-dots { display: inline-flex; gap: 4px; }
.level-dots span { width: 8px; height: 8px; background: rgba(255,255,255,0.35); }
.level-dots span.filled { background: var(--red-bright); }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step-small); color: var(--ink); text-decoration: none; font-weight: 700; margin-bottom: 28px; transition: color 0.2s; }
.back-link:hover { color: var(--red); }
.detail-lead { font-size: var(--step-lead); color: var(--muted); line-height: 1.7; max-width: 34em; }

.objectives-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; max-width: 960px; }
.objective-card { background: var(--paper-2); padding: 28px 28px; display: flex; gap: 16px; align-items: flex-start; }
.objective-num { width: 14px; height: 14px; background: var(--red); font-size: 0; flex-shrink: 0; margin-top: 0.5em; }
.objective-card p { font-size: var(--step-body); color: var(--ink); line-height: 1.65; }

.curriculum-block { margin-top: 48px; max-width: 960px; }
.curriculum-block-label { font-family: var(--serif); font-size: var(--step-sec); font-weight: 500; color: var(--ink); margin-bottom: 22px; }
.unit-list { display: flex; flex-direction: column; gap: 14px; }
.unit-item { display: flex; gap: 20px; padding: 22px 24px; background: var(--paper); }
.bg-off-white .unit-item { background: var(--paper); }
.unit-index { width: 14px; height: 14px; background: var(--red); font-size: 0; flex-shrink: 0; margin-top: 0.55em; }
.unit-item h4 { font-family: var(--serif); font-size: var(--step-sub); font-weight: 500; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.unit-item p { font-size: var(--step-body); color: var(--muted); line-height: 1.65; }
.official-link { display: inline-block; margin-top: 10px; font-size: var(--step-body); font-weight: 600; color: var(--red-dark); text-decoration: none; }
.official-link:hover { text-decoration: underline; }

.prereq-box { background: var(--paper); border-left: 8px solid var(--red); padding: 26px 30px; margin-top: 32px; max-width: 960px; }
.prereq-box strong { color: var(--ink); font-family: var(--serif); font-size: var(--step-sub); font-weight: 500; }
.prereq-box p { color: var(--muted); font-size: var(--step-body); margin-top: 8px; }

.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; max-width: 760px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--step-body); color: var(--ink); line-height: 1.6; }
.check-list li::before { content: ''; width: 12px; height: 12px; background: var(--red); flex-shrink: 0; margin-top: 0.5em; }

.exam-badge { display: inline-block; background: rgba(255,255,255,0.12); color: var(--white); font-size: var(--step-small); font-weight: 600; padding: 6px 14px; }

/* ─── HOW IT WORKS: a row of steps, rising and falling ─── */
.how { background: var(--paper-2); }
.how-header { text-align: left; max-width: 640px; margin: 0 0 72px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; max-width: 1320px; margin: 0 auto; align-items: start; }
.step { text-align: left; }
.step:nth-child(2) { margin-top: 56px; }
.step:nth-child(3) { margin-top: 20px; }
.step:nth-child(4) { margin-top: 84px; }
.step-num { width: 18px; height: 18px; background: var(--red); font-size: 0; margin-bottom: 20px; }
.step-plate { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 22px; filter: grayscale(1) contrast(1.05); transition: filter 0.4s; }
.step:hover .step-plate { filter: grayscale(0); }
.step h4 { font-family: var(--serif); font-size: var(--step-sub); font-weight: 500; color: var(--ink); margin-bottom: 10px; line-height: 1.25; }
.step p { font-size: var(--step-body); color: var(--muted); line-height: 1.65; }

/* ─── ONLINE BANNER ─── */
.online-banner { max-width: 1320px; margin: 96px auto 0; }
.online-banner-inner { background: var(--navy); padding: 56px 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.online-icon { display: none; }
.online-text { min-width: 0; }
.online-text h3 { font-family: var(--serif); font-size: var(--step-sec); font-weight: 500; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.online-text p { font-size: var(--step-body); color: rgba(255,255,255,0.88); line-height: 1.7; }
.online-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.online-feat { display: flex; align-items: center; gap: 8px; font-size: var(--step-small); color: var(--white); background: rgba(255,255,255,0.1); padding: 14px 16px; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--paper); }
.testimonials-header { text-align: left; max-width: 640px; margin: 0 0 64px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1320px; margin: 0 auto; align-items: start; }
.testimonial-card { background: var(--paper-2); padding: 40px 34px; }
.testimonial-card:nth-child(2) { margin-top: 40px; }
.testimonial-card:nth-child(3) { margin-top: 80px; }
.testimonial-text { font-family: var(--serif); font-size: var(--step-sub); color: var(--ink); line-height: 1.6; margin-bottom: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 44px; height: 44px; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; flex-shrink: 0; }
.author-info strong { display: block; font-size: var(--step-body); font-weight: 700; color: var(--ink); }
.author-info span { font-size: var(--step-small); color: var(--muted); }

/* ─── FAQ ─── */
.faq { background: var(--paper); }
.faq-header { text-align: left; max-width: 640px; margin: 0 0 64px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--paper-2); cursor: pointer; transition: background 0.2s; }
.faq-item:hover { background: #dedfe3; }
.faq-question { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; user-select: none; }
.faq-question h4 { font-family: var(--serif); font-size: var(--step-sub); font-weight: 500; color: var(--ink); line-height: 1.4; }
.faq-toggle { font-size: 0.8rem; color: var(--red); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-toggle { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.3s ease; padding: 0 28px; }
.faq-item.open .faq-answer { max-height: 60rem; padding: 0 28px 26px; }
.faq-answer p { font-size: var(--step-body); color: var(--muted); line-height: 1.75; }

.category-group { max-width: 820px; margin: 0 auto 72px; }
.category-group:last-child { margin-bottom: 0; }
.category-group-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.category-group-header h2 { font-family: var(--serif); font-size: var(--step-sec); font-weight: 500; color: var(--ink); }
.category-group-header .category-count { font-size: var(--step-small); color: var(--muted); }

/* ─── CONTACT ─── */
.contact { background: var(--navy); }
.contact-inner { max-width: 720px; margin: 0 auto; text-align: left; }
.contact-inner .section-title { color: var(--white); }
.contact-inner .section-desc { color: rgba(255,255,255,0.88); margin: 0 0 52px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; text-align: left; }
.form-group label { font-size: var(--step-small); font-weight: 600; color: var(--white); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { background: rgba(255,255,255,0.1); border: 0; border-bottom: 3px solid rgba(255,255,255,0.3); padding: 15px 18px; color: var(--white); font-family: var(--sans); font-size: var(--step-body); outline: none; transition: border-color 0.2s, background 0.2s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.6); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-bottom-color: var(--red-bright); background: rgba(255,255,255,0.16); }
.form-group select option { background: var(--navy); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 140px; }
.btn-submit { background: var(--red); color: var(--white); border: none; padding: 20px 48px; font-family: var(--sans); font-size: var(--step-body); font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.2s; margin-top: 8px; width: 100%; }
.btn-submit:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-error { display: none; margin-top: 14px; font-size: var(--step-body); color: #ffd0d4; text-align: center; }
.form-error.visible { display: block; }

/* ─── CLOSING CALL: a field of red ─── */
.home-cta { background: var(--red); text-align: left; padding: 150px var(--margin); }
.home-cta-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 80px; align-items: end; }
.home-cta .section-title { color: var(--white); grid-column: 1; margin-bottom: 0; }
.home-cta .section-desc { color: var(--white); grid-column: 1; margin: 0; }
.home-cta .btn-primary { grid-column: 2; grid-row: 1 / span 2; background: var(--navy); }
.home-cta .btn-primary:hover { background: var(--navy-deep); }

/* ─── FOOTER ─── */
footer { background: var(--navy-deep); padding: 56px var(--margin); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
footer > div:first-child { justify-self: start; }
footer > div:nth-child(2) { justify-self: center; text-align: center; }
footer > div:last-child { width: auto !important; }
footer p { font-size: var(--step-small); color: rgba(255,255,255,0.88) !important; }
footer a { color: var(--white); text-decoration: none; }
footer a:hover { color: var(--red-bright); }
.credits { grid-column: 1 / -1; font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.7; max-width: 62ch; justify-self: start; }
.credits a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ─── PLATES: archive pictures set on the page ─── */
.plates { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; margin-top: 56px; align-items: end; max-width: 960px; }
.plate { margin: 0; }
.plate img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.plate figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* ─── MOTION ─── */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-text, .hero-card { animation: none; }
  .pen { animation: none; }
  .hl { animation: none; }
}
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* ─── SKIP LINK ─── */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--red); color: var(--white); padding: 12px 20px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  :root { --margin: 40px; }
  .hero { gap: 40px; }
  .hero-card { padding: 56px 36px 0; }
  .passage { grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(even) { margin-top: 48px; }
}
@media (max-width: 900px) {
  :root { --margin: 24px; --scallop: 8px; }
  nav { padding: 10px var(--margin); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .brand img { height: 36px; }
  section { padding: 88px var(--margin); }
  .hero { display: block; height: auto; max-height: none; padding: 112px var(--margin) 0; }
  .hero-text { padding-bottom: 56px; }
  .hero-card { min-height: 0; padding: 48px 24px 56px; margin-inline: calc(var(--margin) * -0.5); }
  .hero-card h1 em { padding-left: 0; }
  .passage { grid-template-columns: minmax(0, 1fr); }
  .passage-notes { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .hero-stats { gap: 28px; margin-top: 88px; }
  .page-hero { padding: 132px var(--margin) 72px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-card:nth-child(n) { margin-top: 0; }
  .fact-list li { grid-template-columns: 1fr; gap: 4px; }
  .service-row:nth-child(even) { padding-inline: 20px; margin-inline: -20px; }
  .subject-category { padding: 56px 28px; margin-bottom: 48px; }
  .subject-category:nth-of-type(even) { transform: none; }
  .subject-link-card { margin-inline: -10px; padding: 16px 10px; }
  .objectives-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:nth-child(n) { margin-top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .online-banner-inner { grid-template-columns: minmax(0, 1fr); padding: 40px 26px; }
  .home-cta { padding: 100px var(--margin); }
  .home-cta-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-cta .btn-primary { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
  .plates { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  footer > div:last-child { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step:nth-child(n) { margin-top: 0; }
  .subject-link-card { grid-template-columns: 1fr; }
  .subject-link-badges { align-items: flex-start; text-align: left; flex-direction: row; gap: 14px; flex-wrap: wrap; }
}

/* ─── PLATE TIPPED INTO THE HERO CARD ─── */
.card-plate { display: flex; gap: 22px; align-items: flex-start; margin: 48px 0 0 14%; }
.card-plate img { width: 210px; height: auto; flex-shrink: 0; filter: grayscale(1) contrast(1.05); transform: rotate(-2deg); }
.card-plate figcaption { font-size: var(--step-small); color: var(--muted); line-height: 1.5; max-width: 12em; padding-top: 30px; }
@media (max-width: 900px) { .card-plate { margin-left: 0; } .card-plate img { width: 150px; } }

.step-plate, .plate img, .card-plate img { transition: filter 0.4s, transform 0.6s ease; }
.step:hover .step-plate { transform: scale(1.02); }
.testimonial-card, .objective-card, .unit-item, .approach-card, .online-feat { transition: transform 0.25s, opacity 0.7s ease; }
.testimonial-card:hover, .objective-card:hover, .approach-card:hover { transform: translateY(-3px); }
.btn-primary:active, .btn-secondary:active, .nav-cta:active, .btn-submit:active { transform: translateY(0); }
@media (max-width: 900px) { .testimonial-text { font-size: var(--step-body); } :root { --step-display: clamp(2rem, 1rem + 4.2vw, 3.4rem); } }
@media (prefers-reduced-motion: reduce) { .step:hover .step-plate, .testimonial-card:hover, .objective-card:hover, .approach-card:hover { transform: none; } }

/* a slow drift on the tipped-in plate */
@keyframes drift { from { transform: rotate(-2deg) scale(1); } to { transform: rotate(-1deg) scale(1.04) translateY(-6px); } }
.card-plate img { animation: drift 12s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .card-plate img { animation: none; } }

/* ─── SUBJECT SHEETS WITH THEIR PLATES ─── */
.sheet-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 780px) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1320px; margin: 0 auto 88px; }
.sheet-row:last-child { margin-bottom: 0; }
.sheet-row .subject-category { grid-column: 2; grid-row: 1; margin: 0; transform: none !important; }
.sheet-plate { grid-column: 1; grid-row: 1; margin: 0; justify-self: end; max-width: 300px; }
.sheet-row.flip .sheet-plate { grid-column: 3; justify-self: start; }
.sheet-plate img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.sheet-plate figcaption { font-size: 1rem; color: rgba(255,255,255,0.88); margin-top: 12px; line-height: 1.5; }
@media (max-width: 1100px) { .sheet-row { grid-template-columns: minmax(0, 1fr); gap: 28px; } .sheet-row .subject-category, .sheet-plate, .sheet-row.flip .sheet-plate { grid-column: 1; } .sheet-row .subject-category { grid-row: 1; } .sheet-plate { grid-row: 2; justify-self: start; max-width: 320px; } }
.page-hero .section-title { font-size: clamp(2.2rem, 0.9rem + 3.8vw, 4.6rem); }

/* ─── LEGAL PAGES ─── */
.legal { max-width: 780px; }
.legal-section { margin-bottom: 72px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { font-family: var(--serif); font-size: var(--step-sec); font-weight: 500; color: var(--ink); line-height: 1.2; margin-bottom: 18px; }
.legal-section p { color: var(--ink); font-size: var(--step-body); line-height: 1.8; margin-bottom: 14px; }
.legal-section a { color: var(--red-dark); text-underline-offset: 3px; }
.legal-list { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 14px; }
.legal-list li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--step-body); line-height: 1.75; color: var(--ink); }
.legal-list li::before { content: ''; width: 10px; height: 10px; background: var(--red); flex-shrink: 0; margin-top: 0.65em; }
.legal-dl { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.legal-dl > div { background: var(--paper-2); padding: 20px 24px; }
.legal-dl dt { font-family: var(--serif); font-size: var(--step-sub); font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.legal-dl dd { font-size: var(--step-body); line-height: 1.75; color: var(--muted); }
.legal-links { font-size: var(--step-small); }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── CONSENT CHECKBOX ─── */
.consent-label { display: flex; gap: 14px; align-items: flex-start; color: var(--white); font-size: var(--step-body); line-height: 1.65; cursor: pointer; text-align: left; }
.consent-label input { width: 24px; height: 24px; flex-shrink: 0; margin-top: 3px; accent-color: var(--red); cursor: pointer; }
.consent-label a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.consent-label a:hover { color: var(--red-bright); }

.form-group .consent-label { font-weight: 400; margin-bottom: 0; font-size: var(--step-body); }

/* ─── COOKIE BANNER ─── */
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--paper); color: var(--ink); border-top: 6px solid var(--red); padding: 22px var(--margin); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cc-banner[hidden] { display: none; }
.cc-text { font-size: var(--step-body); line-height: 1.6; max-width: 62ch; }
.cc-more { color: var(--red-dark); text-underline-offset: 3px; white-space: nowrap; }
.cc-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cc-actions button { font-family: var(--sans); font-size: var(--step-body); font-weight: 700; padding: 14px 32px; border: 0; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.cc-yes { background: var(--red); color: var(--white); }
.cc-yes:hover { background: var(--red-dark); transform: translateY(-2px); }
.cc-no { background: var(--paper-2); color: var(--ink); }
.cc-no:hover { background: #dcdde1; transform: translateY(-2px); }
@media (max-width: 700px) { .cc-banner { flex-direction: column; align-items: stretch; padding: 18px 24px; } .cc-actions { width: 100%; } .cc-actions button { flex: 1; } }
