/* The homepage inherits the site's approved neutral palette and typography. */
.homepage { background: var(--bg); }
.homepage svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.homepage [hidden] { display: none !important; }
html.no-js .home-preview-controls { display: none; }
.homepage .home-hero { padding: 136px 0 82px; min-height: auto; overflow: clip; }
.home-launch { display: grid; grid-template-columns: .95fr 1.15fr; align-items: center; gap: 44px; }
.homepage .home-introduction h1 { margin: 0 0 8px; max-width: none; font-size: clamp(48px, 5.3vw, 76px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 680; }
.home-role { margin: 0 0 36px; color: var(--ink-soft); font-size: 17px; }
.home-value { max-width: 18ch; margin: 0 0 20px; font-size: clamp(27px, 2.6vw, 36px); line-height: 1.18; font-weight: 620; letter-spacing: -0.025em; text-wrap: balance; }
.home-summary { max-width: 46ch; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.homepage .hero__actions { margin-top: 30px; gap: 16px; flex-wrap: wrap; }
.homepage .cta-button { min-height: 48px; border-radius: 9px; padding: 12px 18px; font-size: 14px; gap: 12px; }
.homepage .secondary-button { padding: 12px 2px; min-height: 48px; background: transparent; border: 0; box-shadow: none; color: var(--ink-soft); font-size: 14px; gap: 8px; }
.homepage .secondary-button:hover { color: var(--blue); background: transparent; }
.home-location { margin: 26px 0 0; color: var(--ink-muted); font-size: 13px; }
.home-proof { display: grid; grid-template-columns: .42fr 1fr; gap: 18px; align-items: end; min-width: 0; }
.home-proof a { display: block; min-width: 0; transition: transform 240ms var(--ease-out); }
.home-proof a:hover { transform: translateY(-5px); }
.home-proof__hackathon { margin-bottom: 0; }
.home-proof__lms { margin-top: 0; }
.home-proof__image { position: relative; overflow: hidden; }
.home-proof__hackathon .home-proof__image { height: auto; }
.home-proof__hackathon img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-proof__lms .home-proof__image { height: auto; }
.home-proof__lms img { height: 100%; width: 100%; object-fit: cover; object-position: 28% top; }
.home-proof a > span { position: relative; display: block; padding: 16px 24px 0 0; }
.home-proof strong { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 650; }
.home-proof span span { display: block; color: var(--ink-muted); font-size: 12px; line-height: 1.5; }
.home-proof svg { position: absolute; right: 0; top: 18px; width: 16px; height: 16px; }
.home-work { padding: 64px 0 88px; background: var(--surface); }
.home-section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: baseline; gap: 48px; margin-bottom: 44px; }
.home-section-heading h2 { margin: 0; font-size: clamp(35px, 4vw, 48px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; }
.home-section-heading > p { margin: 0; max-width: 45ch; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.home-case { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 56px; padding: 48px; border-radius: 16px; }
.home-case + .home-case { margin-top: 32px; }
.home-case--hackathon { background: var(--dark); color: #fff; }
.home-case--lms { background: var(--bg); }
.home-case__copy h3 { margin: 0 0 12px; font-size: clamp(28px, 2.9vw, 36px); font-weight: 620; line-height: 1.12; letter-spacing: -0.025em; }
.home-case__copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.home-case__context { margin: 0 0 24px; font-size: 12px; line-height: 1.6; color: var(--ink-muted); }
.home-case--hackathon .home-case__context { color: var(--dark-muted); }
.home-case__copy > p:not(.home-case__context) { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.home-case--hackathon .home-case__copy > p:not(.home-case__context) { color: var(--dark-soft); }
.home-case__facts { margin: 0; }
.home-case__facts > div + div { margin-top: 18px; }
.home-case__facts dt { margin-bottom: 5px; font-size: 12px; font-weight: 650; }
.home-case__facts dd { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.home-case--hackathon .home-case__facts dd { color: var(--dark-soft); }
.home-case__facts strong { font-weight: 550; color: var(--ink); }
.home-case--hackathon .home-case__facts strong { color: #fff; }
.home-case__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.home-demo-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.home-demo-link:hover { text-decoration-thickness: 2px; }
.home-demo-link svg { width: 16px; height: 16px; }
.home-case-preview { margin: 0; min-width: 0; }
.home-preview-controls { display: none; width: fit-content; margin: 0 auto 18px; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; }
[data-preview-ready="true"] .home-preview-controls { display: flex; }
.home-preview-controls button { min-height: 44px; border: 0; border-radius: 5px; padding: 7px 14px; background: transparent; color: var(--ink-soft); font-size: 14px; cursor: pointer; }
.home-preview-controls button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.home-preview-controls button:hover { color: var(--blue); }
.home-case--hackathon .home-preview-controls { border-color: #363b45; }
.home-case--hackathon .home-preview-controls button { color: var(--dark-soft); }
.home-case--hackathon .home-preview-controls button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.home-case-preview__stage { position: relative; display: block; overflow: hidden; }
.home-case-preview__stage--phone { width: 220px; max-width: 100%; height: auto; margin: auto; background: transparent; }
.home-case-preview__stage--phone img { width: 100%; height: auto; }
.home-case-preview__stage--lms { width: 100%; aspect-ratio: 3984 / 2433; }
.home-case-preview__stage--lms img { height: 100%; width: 100%; object-fit: cover; object-position: left top; }
.home-case-preview figcaption { margin-top: 14px; color: var(--ink-muted); text-align: center; font-size: 12px; line-height: 1.5; }
.home-case--hackathon figcaption { color: var(--dark-muted); }
.home-experience { padding: 84px 0; }
.home-experience .home-section-heading { margin-bottom: 36px; }
.home-experience-list article { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: 48px; border-top: 1px solid var(--line); padding: 32px 0; }
.home-experience-list h3 { margin: 0 0 8px; font-size: 21px; font-weight: 630; letter-spacing: -0.015em; }
.home-job { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.8; }
.home-experience-copy { min-width: 0; max-width: 70ch; }
.home-experience-scope { margin: 0 0 16px; color: var(--ink); font-size: 16px; line-height: 1.6; font-weight: 550; }
.home-experience-copy ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.home-experience-copy li { padding-left: 3px; }
.home-experience-copy li + li { margin-top: 12px; }
.home-experience-copy strong { color: var(--ink); font-weight: 600; }
.home-experience-projects { margin: 20px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 1.8; }
.home-experience-projects a { display: inline; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.home-experience-projects span { padding-inline: 4px; }
.home-experience-action { margin-top: 14px; }
.home-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blue); font-size: 15px; font-weight: 550; text-decoration: underline; text-underline-offset: 5px; }
.homepage .home-contact { padding: 76px 0 28px; }
.homepage .contact-section__lead > h2 { max-width: 18ch; font-size: clamp(38px, 4.8vw, 60px); font-weight: 620; line-height: 1.08; letter-spacing: -0.03em; }
.homepage .contact-section__lead > p { max-width: 58ch; margin-top: 24px; font-size: 17px; line-height: 1.65; }
.homepage .contact-section__lead .home-contact-focus { margin-top: 16px; font-size: 13px; color: var(--dark-muted); }
.home-contact-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.home-contact-actions > a:not(.cta-button) { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.home-contact-details { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 25px; color: var(--dark-soft); font-size: 13px; }
.home-contact-details a { display: inline-flex; align-items: center; min-height: 36px; }
.home-contact-details a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.homepage .home-contact footer { margin-top: 54px; padding-top: 22px; gap: 16px 24px; font-size: 12px; }
.homepage .home-contact footer span:last-child { margin-left: auto; }
@media (max-width: 1100px) {
 .home-launch { gap: 30px; }
 .home-case { padding: 36px; column-gap: 36px; }
 .home-case__actions { gap: 12px; }
 .home-proof__hackathon .home-proof__image { height: auto; }
 .home-proof__lms .home-proof__image { height: auto; }
}
@media (max-width: 860px) {
 .homepage .home-hero { padding-top: 110px; padding-bottom: 54px; }
 .home-launch { grid-template-columns: 1fr; gap: 36px; }
 .home-value { max-width: 25ch; font-size: 32px; }
 .home-summary { max-width: 58ch; }
 .home-role { margin-bottom: 26px; }
 .home-proof { grid-template-columns: .42fr 1fr; gap: 20px; max-width: 620px; width: 100%; margin: 0 auto; align-items: end; }
 .home-proof__hackathon { margin-bottom: 0; }
 .home-proof__lms { margin-top: 0; }
 .home-proof__hackathon .home-proof__image { height: auto; }
 .home-proof__lms .home-proof__image { height: auto; }
 .home-section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
 .home-section-heading > p br { display: none; }
 .home-case { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
 .home-case__copy > p:not(.home-case__context) { max-width: 65ch; }
 .home-case__copy h3 br { display: none; }
 .home-case-preview__stage--phone { width: 220px; max-width: 100%; height: auto; margin: auto; background: transparent; }
 .home-case-preview__stage--lms { max-width: 580px; margin: auto; aspect-ratio: 3984 / 2433; }
 .home-experience-list article { grid-template-columns: 1fr; gap: 14px; }
 .home-experience-list article > p { max-width: 66ch; }
}
@media (max-width: 480px) {
 .homepage { --page-pad: 22px; }
 .homepage .home-introduction h1 { font-size: 47px; }
 .home-role { font-size: 15px; margin-bottom: 26px; }
 .home-value { font-size: 29px; max-width: 20ch; }
 .home-summary { font-size: 16px; line-height: 1.6; }
 .homepage .hero__actions { gap: 10px; margin-top: 24px; }
 .homepage .cta-button { padding-inline: 14px; font-size: 13px; }
 .homepage .secondary-button { font-size: 13px; }
 .home-location { max-width: 35ch; font-size: 12px; line-height: 1.6; margin-top: 20px; }
 .home-proof { gap: 14px; grid-template-columns: .5fr 1fr; }
 .home-proof__hackathon .home-proof__image { height: auto; }
 .home-proof__lms .home-proof__image { height: auto; }
 .home-proof__lms { margin-top: 0; }
 .home-proof strong { font-size: 14px; }
 .home-proof span span { font-size: 12px; }
 .home-proof a > span { padding-top: 12px; padding-right: 20px; }
 .home-proof svg { top: 14px; width: 14px; height: 14px; }
 .home-work { padding: 48px 0; }
 .home-section-heading h2 { font-size: 36px; }
 .home-section-heading > p { font-size: 16px; }
 .home-case { margin-inline: -8px; padding: 26px 22px; gap: 28px; }
 .home-case__copy h3 { font-size: 30px; }
 .home-case__context { margin-bottom: 20px; }
 .home-case__copy > p:not(.home-case__context) { font-size: 15px; }
 .home-case__actions { margin-top: 24px; gap: 12px 18px; }
 .home-demo-link { font-size: 12px; }
 .home-case-preview__stage--phone { width: 220px; max-width: 100%; height: auto; margin: auto; background: transparent; }
 .home-preview-controls button { padding-inline: 11px; }
 .home-experience { padding: 54px 0; }
 .homepage .home-contact { padding-top: 54px; }
 .homepage .contact-section__lead > h2 { font-size: 40px; }
 .homepage .contact-section__lead > p { font-size: 16px; }
 .homepage .home-contact footer { margin-top: 36px; flex-wrap: wrap; }
 .homepage .home-contact footer span:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
 .home-proof a { transition: none; }
 .home-proof a:hover { transform: none; }
}
@media print {
 .home-proof, .home-preview-controls, .home-case-preview { display: none; }
 .home-launch, .home-case, .home-section-heading, .home-experience-list article { display: block; }
 .home-case { break-inside: avoid; color: #000; background: #fff; }
 .home-case--hackathon .home-case__copy > p, .home-case--hackathon .home-case__facts dd, .home-case--hackathon .home-case__facts strong { color: #000; }
}

/* Fixed silhouette: iPhone 16 Pro width/height 71.5/149.6 mm.
   https://support.apple.com/en-us/121031
   Every hardware detail uses this device's width (cqw), never the viewport.
   Device size is chosen by its slot; the whole device scales uniformly. */
.home-iphone { position: relative; display: block; width: calc(100% - 8px); max-width: 300px; height: auto; aspect-ratio: 715 / 1496; margin: 4px auto; container-type: inline-size; }
.home-iphone-frame { position: absolute; inset: 0; border: .666667cqw solid #74767e; border-radius: 15.333333cqw; background: #141518; }
.home-iphone-frame::before, .home-iphone-frame::after { content: ''; position: absolute; width: 1cqw; border-radius: .666667cqw; background: #777981; }
.home-iphone-frame::before { left: -1.333333cqw; top: 30cqw; height: 21.333333cqw; }
.home-iphone-frame::after { right: -1.333333cqw; top: 38.666667cqw; height: 14.666667cqw; }
.home-iphone-screen { position: absolute; inset: 3cqw; display: block; overflow: hidden; border-radius: 12.333333cqw; background: #1e1c24; }
.homepage .home-iphone-screen img { position: static; display: block; width: 100%; height: auto; object-fit: initial; }
.homepage .home-iphone-status { display: flex; align-items: center; justify-content: space-between; height: 14.666667cqw; padding: 0 6cqw; color: white; font-size: 3.666667cqw; font-weight: 600; }
.homepage .home-iphone-status > span { display: inline; color: white; font-size: 3.666667cqw; }
.homepage .home-iphone-status svg { position: static; width: 14.666667cqw; height: 4cqw; }
.home-iphone-island { position: absolute; top: 6.666667cqw; left: 50%; width: 29.333333cqw; height: 8.333333cqw; transform: translateX(-50%); border-radius: 6cqw; background: #050506; }
.home-iphone-island::after { content: ''; position: absolute; top: 3cqw; right: 3.333333cqw; width: 2.333333cqw; height: 2.333333cqw; border-radius: 50%; background: #151b2b; }
.home-iphone-screen::after { content: ''; position: absolute; bottom: 1.666667cqw; left: 35%; width: 30%; height: 1cqw; border-radius: 1cqw; background: #fff; opacity: .75; }
/* Preserve the source PNG's natural aspect ratio; only scale it uniformly. */
.home-macbook { position: relative; display: block; width: 100%; aspect-ratio: 3984 / 2433; overflow: hidden; }
.homepage .home-macbook-hardware { position: absolute; z-index: 2; left: -11.4207%; top: -19.5232%; width: 122.8163%; max-width: none; height: auto; pointer-events: none; }
.home-macbook-screen { position: absolute; display: block; left: 9.0896%; top: 2.2203%; width: 81.8775%; height: 86.6831%; overflow: hidden; background: #1e1c24; border-radius: 1.3% 1.3% 0 0; }
.homepage .home-macbook-screen img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.home-demo-boundary { margin: 24px 0 0; text-align: center; color: var(--ink-muted); font-size: 12px; }

/* Crop the composition only. The complete hardware inside keeps its real ratio. */
.home-device-crop { position: relative; aspect-ratio: 715 / 1196.8; overflow: hidden; }
.home-device-crop .home-iphone { position: absolute; top: 4px; left: 4px; margin: 0; }
