/*
Theme Name: Chaboun Construction
Author: Arius Automation
Description: Custom theme for Chaboun Constructions Ltd. No page builder; motion by GSAP.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: chaboun
*/

/* ---------- Tokens ---------- */
:root {
    --ink: #14171a;
    --ink-2: #1e2327;
    --paper: #f4f1ea;
    --paper-2: #eae5da;
    --white: #fffdf9;
    --muted: #6a6f73;
    --line: rgba(20, 23, 26, .14);
    --line-light: rgba(255, 253, 249, .18);
    --accent: #b8552e;
    --accent-2: #9c4423;
    --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
    --space: clamp(72px, 10vw, 148px);
    --radius: 4px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; }

.h-xl { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 800; }
.h-lg { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 58ch; }
.eyebrow { font: 600 .78rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4em; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--white); }
.accent { color: var(--accent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border: 1.5px solid transparent; border-radius: var(--radius);
    font: 600 .95rem/1 var(--font-head); letter-spacing: .01em; cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 28px; font-size: 1rem; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line-light); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--outline { border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.link-arrow { display: inline-flex; gap: 10px; font: 600 1rem var(--font-head); border-bottom: 1.5px solid var(--accent); padding-bottom: 4px; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span, .card:hover .card__more span { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: transform .35s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.topbar { background: var(--ink); color: var(--white); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a:hover { color: #e9a787; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; color: var(--accent); }
.brand__text { display: grid; line-height: 1; }
.brand__text strong { font: 800 1.35rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.brand__text em { font: 500 .68rem var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.brand--light, .brand--light .brand__text em { color: var(--white); }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu > ul { display: flex; gap: 4px; }
.nav__menu > ul > li { position: relative; }
.nav__menu > ul > li > a { display: block; padding: 26px 14px; font: 600 .95rem var(--font-head); }
.nav__menu > ul > li > a:hover { color: var(--accent); }
.sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 18px 22px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; box-shadow: 0 24px 48px -24px rgba(20, 23, 26, .35); }
.sub--mega { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 28px; left: -120px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 6px 0; font-size: .93rem; }
.sub a:hover { color: var(--accent); }
.sub__title { font: 700 .72rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: var(--white); background: var(--ink); overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 26, .35) 0%, rgba(20, 23, 26, .25) 35%, rgba(20, 23, 26, .88) 100%); }
.hero__inner { position: relative; padding-block: clamp(120px, 16vh, 200px) clamp(56px, 9vh, 104px); }
.hero__title { font-size: clamp(2.6rem, 8.2vw, 7.2rem); font-weight: 800; line-height: .96; letter-spacing: -.035em; margin-bottom: .35em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: #e9a787; }
.hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: rgba(255, 253, 249, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 40px; font: 600 .7rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.hero__scroll span { width: 1px; height: 56px; background: var(--white); transform-origin: top; animation: scroll-hint 2.2s var(--ease) infinite; }
@keyframes scroll-hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.marquee { background: var(--accent); color: var(--white); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 700 1rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; padding-inline: 26px; white-space: nowrap; }
.marquee span::after { content: "/"; margin-left: 52px; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section--tight { padding-block: calc(var(--space) * .5); }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.section__head .h-xl, .section__head .h-lg { margin: 0; }

.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.blueprint { position: relative; color: var(--ink); background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 32px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 100%; border: 1px solid var(--line); padding: 24px; }
.blueprint svg { width: 100%; height: auto; }
.blueprint__tag { position: absolute; font: 600 .68rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--white); padding: 6px 10px; }
.blueprint__tag--a { top: 16%; left: 24%; }
.blueprint__tag--b { top: 50%; right: 5%; }
.blueprint__tag--c { bottom: 15%; left: 8%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num, .stat__suffix { font: 800 clamp(2.6rem, 6vw, 5rem)/1 var(--font-head); letter-spacing: -.04em; }
.stat__suffix { color: var(--accent); }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.card:hover { border-color: var(--ink); box-shadow: 0 28px 48px -32px rgba(20, 23, 26, .5); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font: 600 .72rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card__title { font-size: 1.35rem; margin-bottom: 18px; }
.card__more { margin-top: auto; font: 600 .9rem var(--font-head); color: var(--accent); display: inline-flex; gap: 8px; }
.card__more span { transition: transform .25s var(--ease); }

/* Horizontal project strip (pinned and scrubbed by GSAP on desktop). */
.strip { background: var(--ink); color: var(--white); padding-block: var(--space); overflow: hidden; }
.strip__head { margin-bottom: clamp(28px, 4vw, 56px); }
.strip__viewport { overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
.strip__viewport::-webkit-scrollbar { display: none; }
.motion .strip.is-pinned .strip__viewport { overflow: visible; }
.strip__track { display: flex; gap: clamp(18px, 2.4vw, 36px); width: max-content; }
.strip__item { width: clamp(260px, 30vw, 420px); flex: none; }
.strip__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.strip__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.strip__item:hover img { transform: scale(1.05); }
.strip__meta { padding-top: 18px; }
.strip__index { font: 700 .8rem var(--font-head); color: var(--accent); letter-spacing: .1em; }
.strip__meta h3 { font-size: 1.5rem; margin: 6px 0 8px; }
.strip__meta p { color: rgba(255, 253, 249, .65); font-size: .93rem; margin: 0; }
.strip__item--end { display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: var(--radius); aspect-ratio: 4 / 5; font: 700 1.3rem var(--font-head); align-self: start; }
.strip__item--end:hover { background: var(--accent); border-color: var(--accent); }

.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why__intro { position: sticky; top: 140px; }
.why__list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__num { font: 700 .9rem var(--font-head); color: var(--accent); padding-top: 6px; }
.why__list h3 { font-size: 1.4rem; margin-bottom: 8px; }
.why__list p { color: var(--muted); margin: 0; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.quote { margin: 0; padding-top: 28px; border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; color: rgba(255, 253, 249, .9); }
.quote figcaption { margin-top: auto; font-size: .88rem; color: rgba(255, 253, 249, .6); display: grid; }
.quote figcaption strong { color: var(--white); font-family: var(--font-head); font-size: 1rem; }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.area { padding: 36px 24px 36px 0; border-bottom: 1px solid var(--line); display: grid; gap: 40px; transition: background .3s, color .3s, padding .3s var(--ease); }
.area + .area { padding-left: 24px; border-left: 1px solid var(--line); }
.area:hover { background: var(--ink); color: var(--white); padding-left: 24px; }
.area__name { font: 800 clamp(1.5rem, 2.6vw, 2.2rem) var(--font-head); letter-spacing: -.02em; }
.area__more { font: 600 .85rem var(--font-head); color: var(--accent); }

.cta-band { background: var(--accent); color: var(--white); padding-block: clamp(56px, 8vw, 110px); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; margin: 0; max-width: 14ch; }
.cta-band .eyebrow { color: var(--white); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn--accent { background: var(--ink); }
.cta-band .btn--accent:hover { background: #000; }

.site-footer { background: var(--ink); color: rgba(255, 253, 249, .72); padding-top: clamp(56px, 7vw, 96px); font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer address { margin-top: 22px; line-height: 1.9; }
.site-footer__title { font: 700 .74rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer li { padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line-light); font-size: .82rem; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.page-hero__inner { position: relative; padding-block: clamp(72px, 11vw, 150px) clamp(44px, 6vw, 80px); }
.page-hero.has-image .page-hero__inner { padding-top: clamp(140px, 20vw, 280px); }
.page-hero__media { position: absolute; inset: -12% 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 26, .3), rgba(20, 23, 26, .9)); }
.page-hero__inner { z-index: 1; }
.page-hero .eyebrow { color: #e9a787; }
.page-hero__title { font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.03em; max-width: 18ch; margin: 0; }
.page-hero__intro { margin: 22px 0 0; max-width: 56ch; color: rgba(255, 253, 249, .8); font-size: 1.1rem; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .68em; width: 12px; height: 2px; background: var(--accent); }
.aside-cta { position: sticky; top: 130px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 28px; border-radius: var(--radius); }
.aside-cta h2 { font-size: 1.5rem; }
.aside-cta p { color: var(--muted); font-size: .95rem; }
.aside-cta .btn { width: 100%; }
.aside-cta__phone { display: block; text-align: center; margin-top: 14px; font: 700 1.1rem var(--font-head); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.photo-grid__item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-grid__item:hover img { transform: scale(1.06); }
.photo-grid--masonry .photo-grid__item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 14, 16, .94); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1; }

.project-list { display: grid; gap: clamp(48px, 7vw, 110px); }
.project-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.project-row:nth-child(even) .project-row__media { order: 2; }
.project-row__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.project-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-row:hover img { transform: scale(1.04); }
.project-row__body p { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 600 .95rem var(--font-head); border-top: 1px solid var(--line); padding-top: 28px; }
.pager a:hover { color: var(--accent); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.pill { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font: 600 .88rem var(--font-head); }
.pill:hover, .pill.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; font: 600 .95rem var(--font-head); }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.pagination .current, .pagination a:hover { background: var(--ink); color: var(--white); }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact dl { margin: 0 0 28px; }
.contact dt { font: 700 .72rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.contact dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 500; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 44px); display: grid; gap: 18px; scroll-margin-top: 140px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font: 600 .85rem var(--font-head); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--font-body); padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form__trap { position: absolute; left: -9999px; }
.form__small { font-size: .82rem; color: var(--muted); margin: 0; }
.form__small a { text-decoration: underline; }
.form__notice { margin: 0; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.form__notice--ok { background: #e3efe3; color: #1d4d24; }
.form__notice--error { background: #f7e1da; color: #7c2a10; }
.form .btn { justify-self: start; }

/* ---------- Motion start states (only when motion is allowed) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.motion [data-wipe] { clip-path: inset(0 0 100% 0); }
.motion [data-split] .word > span { display: inline-block; transform: translateY(110%); }
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.motion [data-hero-title] .line > span { transform: translateY(110%); }
.motion [data-hero-fade] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav__toggle { display: grid; gap: 7px; width: 46px; height: 46px; place-content: center; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
    .nav__toggle span:not(.screen-reader-text) { width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
    .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
    .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
    .nav__menu { position: fixed; inset: 0; top: var(--header-h, 108px); background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; }
    .nav__menu.is-open { transform: none; visibility: visible; }
    .nav__menu > ul { flex-direction: column; }
    .nav__menu > ul > li > a { padding: 16px 0; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
    .sub, .sub--mega { position: static; display: block; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 8px 0 8px 14px; min-width: 0; }
    .sub--mega > div + div { margin-top: 12px; }
    .nav__cta { margin-top: 24px; }
    .card-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .layout-aside { grid-template-columns: 1fr; }
    .aside-cta { position: static; }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .topbar__inner > span:first-child { display: none; }
    .topbar__inner { justify-content: center; }
    .about__grid, .why, .contact, .project-row { grid-template-columns: 1fr; }
    .project-row:nth-child(even) .project-row__media { order: 0; }
    .why__intro { position: static; }
    .stats, .areas { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3), .area:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n + 3) { margin-top: 28px; border-top: 1px solid var(--line); }
    .card-grid, .quotes, .form__row { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr; }
    .hero__scroll { display: none; }
    .hero { min-height: 82vh; }
    .area:hover { padding-left: 0; background: none; color: inherit; }
    .area:nth-child(even):hover { padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    @view-transition { navigation: none; }
}
