:root {
  --paper: #fafaf8;
  --ink: #17221c;
  --green: #173b30;
  --muted: #59625b;
  --line: #e1e5df;
  --orange: #c84c2d;
  --font: Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -.025em; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 112px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
main:focus, section:focus { outline: none; }
.shell { width: min(100% - 80px, 1170px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; background: var(--green); color: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.wordmark { display: inline-block; font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.065em; text-decoration: none; }
.wordmark span { color: var(--orange); }

.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 40; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: #fafaf8f2; box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 30px; }
.header-inner > .wordmark { position: relative; z-index: 2; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a { padding-block: 10px; font-size: 17px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange); }
.nav .nav-portal { padding: 10px 24px; border-radius: 999px; color: white; background: var(--green); transition: background .2s; }
.nav .nav-portal:hover { color: white; background: #254d3e; }
.nav-note, .menu-toggle { display: none; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; overflow: hidden; border-radius: 999px; font-size: 18px; line-height: 1.4; text-decoration: none; transition: transform .2s var(--ease); }
.button-primary { color: white; background: linear-gradient(100deg, var(--green), #397453); }
.button-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, #ffffff40 50%, transparent 80%); transform: translateX(-120%); }
.button:active { transform: scale(.95); }
.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 17px; text-decoration: none; }
.text-link span { transition: transform .2s; }
.text-link:hover { text-decoration: underline; }
.text-link:hover span { transform: translate(2px, -2px); }

.hero { padding: 132px 0 46px; text-align: center; background: linear-gradient(180deg, #dce0dc 0%, var(--paper) 92%); }
.hero h1 { font-size: 60px; line-height: 1.25; letter-spacing: -.025em; }
.hero-lead { margin-top: 26px; font-size: 24px; line-height: 1.4; }
.hero-lead strong { font-weight: 700; }
.hero .button { margin-top: 42px; }
/* Blend the animated container: its stacking context isolates child image blending. */
.hero-product { width: min(580px, 100% - 64px); margin: 46px auto 0; mix-blend-mode: multiply; }
.hero-art { width: 100%; }
.hero-scroll { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 28px auto 0; text-decoration: none; }
.hero-scroll span { font-size: 38px; line-height: 1; }

.journey { position: relative; display: grid; gap: 84px; padding-block: 92px 114px; }
/* Overlay the existing number column without changing the feature grid. */
.journey::before, .journey::after { content: ""; position: absolute; left: var(--journey-x, 50%); top: var(--journey-top, 0px); width: 2px; height: var(--journey-height, 0px); pointer-events: none; transform: translateX(-50%); }
.journey::before { background: var(--line); }
.journey::after { background: var(--green); transform-origin: top; transform: translateX(-50%) scaleY(var(--journey-progress, 0)); }
/* Lateral travel stays within the smallest desktop gutter to prevent scroll overflow. */
.feature { display: grid; grid-template-columns: 1fr 104px 1fr; align-items: center; gap: 54px; --scene-x: -40px; }
.feature-media { grid-column: 1; grid-row: 1; overflow: hidden; border-radius: 22px; }
.feature-art { width: 100%; aspect-ratio: 1.23; object-fit: cover; }
.step-number { position: relative; z-index: 1; grid-column: 2; grid-row: 1; align-self: start; display: grid; place-items: center; width: 36px; height: 36px; margin: 72px auto 0; border-radius: 50%; color: white; background: #9ba49d; font-size: 17px; }
.feature-copy { grid-column: 3; grid-row: 1; }
.feature-copy h3 { padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.feature-copy p { margin-top: 22px; font-size: 18px; line-height: 1.6; }
.feature-copy .copy-mobile { display: none; }
.feature[data-direction="right"] { --scene-x: 40px; }
.feature[data-direction="right"] .feature-media { grid-column: 3; }
.feature[data-direction="right"] .feature-copy { grid-column: 1; }

.ideas { overflow: clip; background: #f6f7f3; color: var(--ink); }
.ideas-inner { padding-block: 105px 72px; }
.ideas-intro { max-width: 650px; margin-inline: auto; text-align: center; }
.ideas-intro h2 { font: 700 clamp(48px, 5.5vw, 68px)/1.04 var(--font); letter-spacing: -.045em; }
.ideas-intro p { max-width: 480px; margin: 17px auto 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.ideas-collage { position: relative; height: 590px; margin: 58px 0 0; padding: 0; list-style: none; }
.ideas-collage > li { position: absolute; }
.idea-card, .idea-art, .idea-image { overflow: hidden; border: 1px solid #e1e5df; border-radius: 20px; box-shadow: 0 22px 45px #17221c17, 0 2px 5px #17221c0d; }
.idea-card { padding: 20px; background: #fff; }
.idea-label { color: #526f5b; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.idea-card h3 { margin-top: 22px; font-size: 21px; line-height: 1.17; letter-spacing: -.035em; }
.idea-card p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.idea-campus { top: 205px; left: 0; width: 195px; height: 215px; transform: rotate(-3deg); }
.idea-route { display: flex; align-items: center; justify-content: space-between; position: relative; margin-top: 25px; }
.idea-route::before { content: ''; position: absolute; top: 5px; left: 5px; right: 5px; height: 2px; background: #cbd8cb; }
.idea-route i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.idea-route i:last-child { background: var(--orange); }
.idea-work { top: 145px; left: 18%; width: 190px; height: 205px; transform: rotate(2deg); }
.idea-art strong span { color: var(--orange); }
.idea-art { top: 35px; left: 50%; width: 210px; height: 285px; border-color: #153b2d; background: var(--green); transform: rotate(-1deg); }
.idea-art img { width: 100%; height: 100%; object-fit: cover; object-position: 84% center; }
.idea-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #071a12a8, transparent 48%, #071a1266); }
.idea-art > div { position: absolute; z-index: 1; inset: 19px 18px auto; display: flex; flex-direction: column; gap: 4px; color: #fff; }
.idea-art > div > span { color: #dce7dd; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.idea-art strong { font-size: 34px; line-height: 1; letter-spacing: -.065em; }
.idea-village { top: 155px; right: 0; width: 190px; height: 220px; transform: rotate(2deg); }
.idea-village-lines { display: grid; gap: 7px; margin-top: 20px; }
.idea-village-lines i { height: 7px; border-radius: 5px; background: #dce8dd; }
.idea-village-lines i:nth-child(2) { width: 70%; background: var(--green); }
.idea-village-lines i:nth-child(3) { width: 45%; background: #e8b799; }
.idea-paid { top: 405px; left: 18%; width: 200px; min-height: 160px; transform: rotate(-2deg); }
.idea-company { top: 395px; right: 22%; width: 205px; min-height: 160px; transform: rotate(3deg); }
.idea-image { background: #e9eee6; }
.idea-image img { width: 100%; height: 100%; object-fit: cover; }
.idea-student { top: 190px; left: 36.5%; width: 145px; height: 198px; transform: rotate(-1.5deg); }
.idea-office { top: 62px; right: 18%; width: 155px; height: 212px; transform: rotate(1.5deg); }
.future-deck { display: none; }
.ideas-outro { margin: 0; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 1100px) and (min-width: 761px) {
  .ideas-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; height: auto; }
  .ideas-collage > li { position: static; width: auto; min-height: 190px; transform: none; }
  .ideas-collage > .idea-art { position: relative; inset: auto; height: 270px; }
  .ideas-collage > .idea-image { height: 270px; }
}
@media (max-width: 760px) {
  .ideas-inner { padding-block: 70px 62px; }
  .ideas-intro h2 { font-size: clamp(42px, 10vw, 58px); }
  .ideas-intro p { font-size: 15px; }
  .ideas-collage { display: none; }
  .future-deck { display: block; max-width: 390px; margin: 46px auto 0; }
  .future-deck-stage { display: grid; gap: 20px; }
  .future-deck-card { overflow: hidden; padding: 8px; border: 1px solid #e3e4df; border-radius: 28px; background: #fffcf6; box-shadow: 0 18px 36px #17221c1a; }
  .future-deck-card img { width: 100%; aspect-ratio: 3 / 3.35; object-fit: cover; border-radius: 21px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
  .future-deck-copy { padding: 17px 18px 24px; }
  .future-deck-copy > span { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .future-deck-copy h3 { margin-top: 11px; font: 400 32px/1.08 var(--font); letter-spacing: -.035em; }
  .future-deck-copy p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
  .future-deck-controls { display: none; align-items: center; justify-content: space-between; gap: 15px; margin: 17px 8px 0; font-size: 13px; }
  .future-deck-controls button { min-height: 44px; padding: 6px 4px; border: 0; background: transparent; color: var(--green); font: 700 14px var(--font); cursor: pointer; }
  .future-deck-controls span { color: var(--muted); }
  .future-deck-hint { display: none; margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
  .future-deck.is-enhanced .future-deck-stage { display: block; position: relative; height: var(--deck-height, 620px); isolation: isolate; }
  .future-deck.is-enhanced .future-deck-stage::before, .future-deck.is-enhanced .future-deck-stage::after { content: ''; position: absolute; inset: 8px 6px 0; border: 1px solid #e4e4dc; border-radius: 28px; background: #ecebe4; box-shadow: 0 8px 16px #17221c0d; pointer-events: none; }
  .future-deck.is-enhanced .future-deck-stage::before { transform: rotate(-2.5deg) translate(-4px, 8px); }
  .future-deck.is-enhanced .future-deck-stage::after { background: #f4f1e9; transform: rotate(1.5deg) translate(4px, 3px); }
  .future-deck.is-enhanced .future-deck-card { position: absolute; z-index: 1; inset: 0; height: max-content; visibility: hidden; opacity: 0; pointer-events: none; user-select: none; transform: translateX(28px) rotate(3deg) scale(.97); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .future-deck.is-enhanced .future-deck-card[data-active='true'] { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(var(--drag-x, 0px)) rotate(var(--drag-rotate, 0deg)); transition-delay: 0s; touch-action: pan-y; cursor: grab; }
  .future-deck.is-enhanced .future-deck-card.is-dragging { transition: none; cursor: grabbing; }
  .future-deck.is-enhanced .future-deck-controls { display: flex; }
  .future-deck.is-enhanced .future-deck-hint { display: block; }
  .ideas-outro { margin-top: 42px; line-height: 1.5; }
}
@media (max-width: 380px) {
  .future-deck-copy h3 { font-size: 29px; }
  .future-deck-copy { padding: 15px 15px 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .future-deck.is-enhanced .future-deck-card { transition: none; }
}

.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 120px; padding-block: 90px 120px; border-top: 1px solid var(--line); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions details.is-animating { overflow: hidden; }
/* Keep keyboard focus inside the temporarily clipped answer frame. */
.questions details.is-animating summary:focus-visible { outline-offset: -3px; }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-block: 20px; list-style: none; cursor: pointer; font-size: 18px; }
.questions summary[aria-disabled='true'] { cursor: default; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary > span { position: relative; flex: none; width: 18px; height: 18px; }
.questions summary > span::before, .questions summary > span::after { content: ""; position: absolute; top: 8px; left: 2px; width: 14px; height: 1px; background: currentColor; transition: transform .25s; }
.questions summary > span::after { transform: rotate(90deg); }
.questions details[open] summary > span::after { transform: none; }
.questions details > p { padding: 0 32px 24px 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
/* Enhance native details; older browsers retain the same readable accordion. */
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .questions details { interpolate-size: allow-keywords; }
  .questions details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .questions details[open]::details-content { block-size: auto; }
  @media (prefers-reduced-motion: reduce) {
    .questions details::details-content { transition: none; }
  }
}
.footer { background: #edf0eb; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding-block: 52px 30px; }
.footer p { margin-top: 16px; color: var(--muted); font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 30px; }
.footer nav a { padding-block: 10px; font-size: 15px; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer small { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid #d9dfd7; color: var(--muted); font-size: 12px; }
.portal-page { background: linear-gradient(180deg, #e0e5de, var(--paper) 75%); }
.portal-main { display: grid; align-items: center; min-height: calc(100svh - 223px); padding: 155px 24px 95px; }
.portal-intro { text-align: center; }
.portal-intro h1 { font-size: 52px; line-height: 1.2; letter-spacing: -.025em; }
.portal-intro p { max-width: 490px; margin: 24px auto 0; color: var(--muted); font-size: 19px; }
.portal-intro .button { margin-top: 32px; }

@keyframes sheen { to { transform: translateX(120%); } }
@keyframes copy-enter { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes product-enter { from { opacity: 0; transform: translateY(54px) scale(.94); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .button-primary:hover::before { animation: sheen .55s ease-out; } }
@media (prefers-reduced-motion: no-preference) {
  .has-js .hero h1 { animation: copy-enter .8s .08s var(--ease) both; }
  .has-js .hero-lead { animation: copy-enter .8s .2s var(--ease) both; }
  /* A retained entrance transform would override the button's pressed scale. */
  .has-js .hero .button { animation: copy-enter .8s .32s var(--ease) backwards; }
  .has-js .hero-product { animation: product-enter 1s .35s var(--ease) both; }
  .has-js .hero-scroll { animation: copy-enter .7s .8s var(--ease) both; }
  .feature-media { transition: opacity .85s var(--ease), transform .85s var(--ease); }
  .feature-copy h3 { transition: opacity .65s .14s var(--ease), transform .65s .14s var(--ease); }
  .feature-copy p { transition: opacity .65s .24s var(--ease), transform .65s .24s var(--ease); }
  .feature-copy p + p { transition-delay: .32s; }
  .step-number { transition: opacity .5s .2s var(--ease), transform .5s .2s var(--ease); }
  .feature.is-pending .feature-media { opacity: 0; transform: translate(var(--scene-x), 12px) scale(.97); }
  .feature.is-pending .feature-copy > * { opacity: 0; transform: translateY(24px); }
  .feature.is-pending .step-number { opacity: 0; transform: scale(.65); }
}

@media (max-width: 1100px) {
  .feature { grid-template-columns: 1fr 40px 1fr; gap: 32px; }
  .step-number { margin-top: 45px; }
  .feature-copy h3 { font-size: 27px; }
  .faq { gap: 80px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 48px); }
  .site-header { position: sticky; }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 16px; padding-block: 18px; }
  .header-inner > .wordmark { font-size: 30px; }
  .nav { flex-wrap: wrap; width: 100%; gap: 12px 24px; }
  .nav a { font-size: 15px; }
  .has-js .site-header { position: fixed; }
  .has-js .header-inner { flex-wrap: nowrap; padding-block: 0; }
  .has-js .menu-toggle { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; border: 0; background: none; color: inherit; cursor: pointer; }
  .menu-toggle > span { width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .has-js .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: flex-start; height: 100dvh; padding: 96px 40px 40px; gap: 12px; overflow-y: auto; color: white; background: var(--green); visibility: hidden; clip-path: circle(0 at calc(100% - 46px) 38px); transition: clip-path .65s var(--ease), visibility 0s .65s; }
  .has-js .nav.open { visibility: visible; clip-path: circle(150vmax at calc(100% - 46px) 38px); transition-delay: 0s; }
  .has-js .nav a { font-size: clamp(28px, 7.5vw, 42px); line-height: 1.3; }
  .has-js .nav a:hover, .has-js .nav a[aria-current="page"] { color: #e3b496; }
  .has-js .nav .nav-portal { margin-top: 12px; padding: 8px 30px; color: var(--green); background: var(--paper); }
  .has-js .nav .nav-portal:hover { color: var(--green); background: #e3ece4; }
  .has-js .nav-note { display: block; margin-top: 32px; color: #bacdc1; font-size: 15px; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: transparent; color: white; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero { padding-top: 110px; padding-bottom: 30px; }
  .hero h1 { font-size: 42px; line-height: 1.2; }
  .hero-lead { max-width: 420px; margin: 20px auto 0; font-size: 19px; }
  .hero .button { margin-top: 28px; }
  .hero-product { width: min(480px, 100% - 48px); margin-top: 28px; }
  .hero-scroll { margin-top: 22px; }
  .journey { gap: 65px; padding-block: 65px 75px; }
  .journey::before, .journey::after { display: none; }
  .feature { grid-template-columns: 36px 1fr; gap: 24px 18px; --scene-x: 0px; }
  .feature[data-direction="right"] { --scene-x: 0px; }
  .feature .feature-copy, .feature[data-direction="right"] .feature-copy { grid-column: 2; grid-row: 1; }
  .step-number { grid-column: 1; grid-row: 1; margin: 2px 0 0; width: 30px; height: 30px; font-size: 15px; }
  .feature-copy h3 { font-size: 28px; padding-bottom: 18px; }
  .feature-copy p { margin-top: 18px; font-size: 17px; }
  .feature-copy .copy-desktop { display: none; }
  .feature-copy .copy-mobile { display: inline; }
  .feature .feature-media, .feature[data-direction="right"] .feature-media { grid-column: 1 / -1; grid-row: 2; }
  .feature-media { border-radius: 18px; }
  .faq { grid-template-columns: 1fr; gap: 40px; padding-block: 60px; }
  h2 { font-size: 32px; }
  .faq { padding-bottom: 80px; }
  .footer-inner { gap: 24px; padding-block: 40px 25px; }
  .footer nav { gap: 12px 24px; max-width: 250px; }
  .portal-main { min-height: calc(100svh - 246px); padding: 150px 24px 85px; }
  .portal-intro h1 { font-size: 42px; }
  .portal-intro p { font-size: 17px; }
}

@media (max-width: 540px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { min-height: 76px; }
  .hero { padding-top: 98px; }
  .hero h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.025em; }
  .hero-lead { max-width: 320px; margin-top: 20px; font-size: 16px; line-height: 1.45; }
  .hero .button { margin-top: 24px; }
  .button { min-height: 44px; padding: 11px 23px; font-size: 16px; }
  .hero-product { width: calc(100% - 48px); margin-top: 24px; }
  .hero-scroll { margin-top: 20px; width: 44px; height: 44px; }
  .hero-scroll span { font-size: 27px; }
  .feature-copy h3 { font-size: 25px; }
  .feature-copy p { font-size: 16px; line-height: 1.6; }
  .questions summary { font-size: 17px; }
  .questions details > p { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer nav { max-width: none; }
  .portal-main { min-height: calc(100svh - 300px); }
  .portal-intro h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .feature.is-pending .feature-media, .feature.is-pending .feature-copy > *, .feature.is-pending .step-number { opacity: 1; transform: none; }
}
