@import url("aqua-brand/tokens.css");

:root {
  --ink: var(--aqua-ink, #152025);
  --lime: var(--aqua-product, #d8ff3e);
  --lime-light: var(--aqua-product-light, #e3ff74);
  --gold: var(--aqua-product-deep, #bd9a27);
  --aqua: #00bdaa;
  --blue: var(--aqua-wave-accent, #5a78ff);
  --blue-accessible: #4b63db;
  --surface: var(--aqua-surface, #f3f6fb);
  --white: #fff;
  --line: rgba(21, 32, 37, .18);
  --page: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: "Avenir Next", Avenir, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 16px; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 16px max(24px, calc((100vw - 1240px) / 2)); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: block; width: min(240px, 52vw); }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: .84rem; font-weight: 750; letter-spacing: .04em; }
.main-nav a:hover { text-decoration: underline; }
.language-link { justify-content: center; min-width: 46px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 13px 10px; background: transparent; border: 0; }
.menu-toggle span[aria-hidden] { display: block; height: 2px; margin: 7px 0; background: var(--ink); }

.hero { min-height: calc(100svh - 84px); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .65fr); gap: clamp(48px, 8vw, 130px); align-items: end; padding: clamp(80px, 11vw, 160px) max(24px, calc((100vw - 1240px) / 2)) clamp(64px, 8vw, 112px); background: radial-gradient(circle at 87% 5%, rgba(255,255,255,.52), transparent 30%), linear-gradient(128deg, var(--lime-light), var(--lime) 58%, var(--gold)); }
.hero-copy { max-width: 880px; }
.eyebrow { margin: 0 0 20px; font-size: .78rem; font-weight: 850; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 940px; margin-bottom: 30px; font-size: clamp(3rem, 7.2vw, 7rem); line-height: .93; letter-spacing: -.055em; text-wrap: balance; }
.hero-lede { max-width: 710px; margin-bottom: 40px; font-size: clamp(1.12rem, 1.6vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-size: .9rem; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.button-dark { color: var(--white); background: var(--ink); }
.button-light { color: var(--ink); background: var(--white); border-color: var(--ink); }
.text-link, .area-card a, .card-link, .highlight-grid a { font-weight: 800; }
.hero-mark { min-height: 300px; display: grid; grid-template-columns: auto 1fr auto; align-content: end; gap: 16px; }
.hero-year { font-weight: 850; }
.hero-line { height: 1px; align-self: center; background: var(--ink); }
.hero-mark p { grid-column: 1 / -1; margin: 22px 0 0; font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.hero-visual { align-self: stretch; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; background: var(--ink); border-radius: 8px; box-shadow: 0 24px 60px rgba(21,32,37,.2); }
.hero-visual img { width: 100%; min-height: 0; flex: 1 1 auto; object-fit: cover; object-position: 48% center; }
.hero-visual figcaption { padding: 16px 18px; color: var(--white); background: var(--ink); }
.hero-visual figcaption span { display: block; font-weight: 800; }
.hero-visual figcaption small { display: block; margin-top: 3px; color: rgba(255,255,255,.7); font-size: .7rem; line-height: 1.45; }
.hero-visual figcaption a, .history-photo figcaption a { color: inherit; }

.origin-photo { position: relative; min-height: 420px; max-height: 760px; overflow: hidden; background: var(--ink); }
.origin-photo img { width: 100%; height: clamp(420px, 62vw, 760px); object-fit: cover; object-position: center 58%; }
.origin-photo figcaption, .history-photo figcaption { display: flex; justify-content: space-between; gap: 24px; color: var(--white); background: var(--ink); }
.origin-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; align-items: center; padding: 16px max(24px, calc((100vw - 1240px) / 2)); background: rgba(21,32,37,.9); }
.origin-photo figcaption span, .history-photo figcaption span { font-weight: 800; }
.origin-photo figcaption small, .history-photo figcaption small { color: rgba(255,255,255,.72); font-size: .75rem; text-align: right; }

.section { padding: clamp(78px, 10vw, 150px) max(24px, calc((100vw - 1240px) / 2)); }
.section-intro { max-width: 780px; margin-bottom: clamp(44px, 6vw, 78px); }
.section-intro h2, .pathways > h2, .contact h2 { margin-bottom: 24px; font-size: clamp(2.35rem, 5vw, 5rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.section-intro > p:last-child, .split-intro > p { max-width: 660px; font-size: 1.08rem; }
.split-intro { max-width: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 48px; align-items: end; }

.areas { background: var(--ink); color: var(--white); }
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.area-card { min-height: 340px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 52px); border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.area-number { margin-bottom: auto; font-size: .8rem; font-weight: 800; letter-spacing: .14em; }
.area-card h3 { max-width: 440px; margin: 54px 0 14px; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; }
.area-card p { max-width: 490px; margin-bottom: 28px; color: rgba(255,255,255,.8); }
.area-card a { align-self: flex-start; }
.area-sport { box-shadow: inset 5px 0 0 var(--aqua); }
.area-commerce { box-shadow: inset 5px 0 0 #ffbd59; }
.area-tech { box-shadow: inset 5px 0 0 var(--blue); }
.area-education { box-shadow: inset 5px 0 0 var(--lime); }

.portfolio { background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { min-height: 46px; padding: 8px 18px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 750; cursor: pointer; }
.filter.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { min-height: 390px; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); background: var(--white); border: 1px solid rgba(21,32,37,.1); border-radius: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(21,32,37,.1); }
.product-card[hidden] { display: none; }
.product-top { min-height: 138px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-icon { width: 82px; height: 82px; flex: 0 0 auto; border-radius: 19px; object-fit: cover; box-shadow: 0 10px 24px rgba(21,32,37,.16); }
.product-monogram { width: 70px; height: 70px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 18px; font-size: 2rem; font-weight: 900; }
.status { padding: 7px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status-live { background: #c9f4e7; }
.status-prep { background: rgba(21,32,37,.08); }
.product-platform { margin-bottom: 12px; font-size: .73rem; font-weight: 850; letter-spacing: .13em; }
.product-card h3 { margin-bottom: 12px; font-size: 1.75rem; line-height: 1.1; }
.product-card > p:not(.product-platform) { color: rgba(21,32,37,.74); }
.card-link { margin-top: auto; align-self: flex-start; }
.card-link.is-muted { color: rgba(21,32,37,.76); text-decoration: none; }
.product-store .product-monogram { background: #183b7a; }
.product-aist .product-monogram { background: #007a6e; }
.product-plans .product-monogram { background: var(--blue); }
.product-cronos .product-monogram { background: var(--aqua); }
.product-school .product-monogram { color: var(--ink); background: var(--lime); }
.product-experiences .product-monogram { color: var(--ink); background: #ffbd59; }

.history { background: var(--white); }
.timeline { max-width: 980px; margin: 0 0 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 190px 1fr; gap: 34px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-size: 1.1rem; font-weight: 850; }
.timeline h3 { margin-bottom: 8px; font-size: 1.45rem; }
.timeline p { max-width: 680px; margin-bottom: 0; color: rgba(21,32,37,.72); }
.history-photo { max-width: 980px; margin: 70px 0 0 auto; overflow: hidden; border-radius: 8px; background: var(--ink); }
.history-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 46%; }
.history-photo figcaption { align-items: center; padding: 14px 18px; }

.highlights { background: var(--lime); }
.highlight-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.highlight-grid article { min-height: 380px; display: flex; flex-direction: column; padding: clamp(26px, 4vw, 46px); background: var(--white); border-radius: 8px; }
.highlight-grid .highlight-feature { color: var(--white); background: var(--ink); }
.highlight-meta { font-size: .75rem; font-weight: 850; letter-spacing: .13em; }
.highlight-grid h3 { margin: auto 0 16px; font-size: clamp(1.65rem, 2.8vw, 2.8rem); line-height: 1.05; }
.highlight-grid p:not(.highlight-meta) { color: currentColor; opacity: .76; }
.highlight-grid a { margin-top: 22px; align-self: flex-start; }

.pathways { color: var(--white); background: var(--blue-accessible); }
.pathways > h2 { max-width: 740px; margin-bottom: 56px; }
.pathway-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.45); }
.pathway-list a { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.45); text-decoration: none; }
.pathway-list a:nth-child(odd) { padding-right: 34px; }
.pathway-list a:nth-child(even) { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.45); }
.pathway-list span { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 800; }
.pathway-list small { color: rgba(255,255,255,.96); text-align: right; font-size: .8rem; }

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr); gap: clamp(60px, 10vw, 150px); background: var(--surface); }
.contact-copy > p { max-width: 500px; }
.contact address { display: flex; flex-direction: column; gap: 10px; margin-top: 46px; font-style: normal; }
.contact address span { margin-bottom: 10px; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: clamp(26px, 5vw, 52px); background: var(--white); border-radius: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid rgba(21,32,37,.42); border-radius: 3px; }
textarea { resize: vertical; }
.consent-field { display: grid; grid-template-columns: 24px 1fr; align-items: start; }
.consent-field input { width: 22px; min-height: 22px; margin: 2px 0 0; }
.contact-form .button { justify-self: start; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: rgba(21,32,37,.68); }

.site-footer { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; padding: 72px max(24px, calc((100vw - 1240px) / 2)) 34px; color: var(--white); background: var(--ink); }
.site-footer img { filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; margin: 24px 0 0; color: rgba(255,255,255,.7); }
.site-footer h2 { margin-bottom: 18px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer a, .site-footer span, .footer-button { color: rgba(255,255,255,.78); font-size: .92rem; }
.copyright { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); font-size: .8rem; color: rgba(255,255,255,.6); }

.legal-page { min-height: 70vh; padding: clamp(70px, 9vw, 130px) max(24px, calc((100vw - 900px) / 2)); }
.legal-page h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.legal-page h2 { margin-top: 44px; font-size: 1.55rem; }
.legal-page p, .legal-page li { max-width: 760px; }
.back-link { display: inline-block; margin-bottom: 36px; font-weight: 800; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 84px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 24px 28px; background: var(--white); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 8px 0; }
  .language-link { align-self: flex-start; margin-top: 10px; padding: 0 14px !important; }
  .hero { grid-template-columns: 1fr; align-items: center; }
  h1 { max-width: 100%; font-size: clamp(2.5rem, 4.5vw, 4rem); overflow-wrap: anywhere; }
  .hero-lede { max-width: 100%; }
  .hero-mark { min-height: auto; max-width: 430px; }
  .hero-visual { min-height: 430px; }
  .origin-photo img { height: min(68vw, 600px); min-height: 400px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .highlight-feature { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer > div:nth-of-type(4) { grid-column: 2; }
}
@media (max-width: 700px) {
  :root { --page: calc(100vw - 36px); }
  .site-header { min-height: 74px; padding: 13px 18px; }
  .main-nav { top: 74px; }
  .hero { min-height: calc(100svh - 74px); padding: 70px 18px 48px; }
  .hero-copy { min-width: 0; }
  .hero-visual { min-height: 360px; }
  .hero-visual img { min-height: 280px; }
  h1 { font-size: clamp(2.35rem, 10vw, 2.85rem); }
  .section { padding: 74px 18px; }
  .origin-photo { min-height: 340px; }
  .origin-photo img { height: 430px; min-height: 0; object-position: 52% center; }
  .origin-photo figcaption, .history-photo figcaption { flex-direction: column; align-items: flex-start; gap: 2px; }
  .origin-photo figcaption { padding: 13px 18px; }
  .origin-photo figcaption small, .history-photo figcaption small { text-align: left; }
  .section-intro h2, .pathways > h2, .contact h2 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .split-intro { grid-template-columns: 1fr; gap: 10px; }
  .area-grid, .product-grid, .highlight-grid, .pathway-list, .contact-form, .site-footer { grid-template-columns: 1fr; }
  .area-card { min-height: 300px; }
  .timeline { margin: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .history-photo { margin-top: 48px; }
  .pathway-list a:nth-child(odd), .pathway-list a:nth-child(even) { padding: 22px 0; border-left: 0; }
  .contact-form { padding: 24px 18px; }
  .field-wide, .copyright, .site-footer > div:nth-of-type(4) { grid-column: 1; }
  .site-footer { padding: 58px 18px 28px; }
}
