/* Mudayon — one landscape-led editorial system. */
:root {
    --night: #171817;
    --deep: #0d0e0d;
    --paper: #F4F1E9;
    --white: #FBFAF5;
    --accent: #D54832;
    --muted: #b9bab2;
    --rule: rgba(244, 241, 233, .2);
    --gutter: clamp(24px, 5vw, 80px);
    --display: "Archivo Black", sans-serif;
    --body: "DM Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--night); color: var(--paper); font: 18px/1.65 var(--body); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
button, .button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--white); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
h2 { font-size: clamp(34px, 4.1vw, 60px); }
h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
p + p { margin-top: 20px; }
ul, ol { margin: 0; padding: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--white); color: var(--night); }
.skip-link:focus { top: 12px; outline-color: var(--accent); }
.section-pad { padding: clamp(72px, 8vw, 120px) var(--gutter); }
.eyebrow { margin-bottom: 24px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.section-intro { max-width: 780px; margin-bottom: 52px; }
.section-intro > p:last-child, .services-heading > p:last-child { max-width: 610px; margin-top: 24px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 2px; font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background .2s; }
.button::after { content: "↗"; font-size: 21px; font-weight: 400; }
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover { background: #b83926; }

/* Navigation remains readable on landscape and page sections. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 30px; height: 84px; padding: 0 var(--gutter); background: rgba(13,14,13,.83); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(244,241,233,.12); }
.brand { font: 24px/1 var(--display); letter-spacing: -.06em; text-decoration: none; color: var(--white); }
.menu-dialog { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.primary-navigation a { font-size: 11px; letter-spacing: .055em; font-weight: 600; text-decoration: none; }
.primary-navigation a:hover { color: #f48a74; }
.menu-toggle, .menu-close, .menu-backdrop { display: none; }

/* Poster is continuous beneath video, including reset fades. */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; min-height: 100dvh; color: var(--white); }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--deep) url("assets/hero/mudayon-desk-poster.webp") center / cover no-repeat; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28) 38%, transparent 62%), linear-gradient(0deg, rgba(0,0,0,.55), transparent 32%); pointer-events: none; }
.hero-lede { position: absolute; left: 50%; transform: translateX(-50%); top: clamp(104px, 17vh, 190px); width: min(760px, calc(100% - (var(--gutter) * 2))); text-align: center; }
.hero h1 { max-width: 20ch; margin-inline: auto; font-size: clamp(38px, 4vw, 58px); line-height: 1.03; color: var(--white); }
.hero-lede p { max-width: 52ch; margin: 20px auto 26px; font-size: 17px; line-height: 1.55; }
.hero-scroll-cue, .video-control, .video-status { position: absolute; bottom: max(30px, calc(20px + env(safe-area-inset-bottom))); font-size: 12px; }
.hero-scroll-cue { left: var(--gutter); display: inline-flex; align-items: center; gap: 20px; min-height: 44px; text-decoration: none; }
.hero-scroll-cue::after { content: "↓"; font-size: 20px; }
.video-control { right: var(--gutter); display: inline-flex; align-items: center; gap: 10px; min-width: 94px; min-height: 44px; border: 1px solid rgba(251,250,245,.6); border-radius: 2px; padding: 10px 16px; background: rgba(13,14,13,.55); color: var(--white); }
.video-control:hover { background: var(--night); }
.video-status { right: var(--gutter); color: var(--paper); }
.video-status:empty { display: none; }

/* Eight life moments scroll past the stationary Mudayon signature. */
.flow-inner.life-inner { background: var(--night); }
.life-layout { display: grid; grid-template-columns: 1.12fr 1fr; align-items: start; gap: clamp(24px, 6vw, 90px); }
.life-list { list-style: none; padding-bottom: 35svh; }
.life-list li { display: flex; align-items: center; min-height: clamp(160px, 23vh, 240px); padding: 28px 0; color: var(--muted); font: 500 clamp(28px, 3.7vw, 54px)/1.16 var(--body); letter-spacing: -.045em; text-wrap: balance; transition: color .22s ease; }
.life-list li.is-current { color: var(--accent); }
.life-brand { position: sticky; top: calc(50svh - 64px); padding-block: 28px; }
.life-brand h2 { font-size: clamp(42px, 6.5vw, 94px); line-height: 1; letter-spacing: -.06em; white-space: nowrap; }
.life-brand p { margin-top: 18px; color: var(--paper); font-size: clamp(15px, 1.7vw, 24px); line-height: 1.4; }

/* Large editorial story, with readable scroll-reveal typography. */
.about-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px 9vw; background: var(--deep); }
.emotional-statement { grid-column: 1 / -1; max-width: 1200px; padding-bottom: 70px; border-bottom: 1px solid var(--rule); font: clamp(36px, 7.4vw, 106px)/1.05 var(--display); letter-spacing: -.045em; }
.emotional-statement > span { display: block; }
.reveal-word { display: inline; }
.statement-warm-white { color: var(--paper); }
.statement-coral { color: var(--accent); }
.about-poster { padding-top: 10px; font: clamp(36px, 4.1vw, 58px)/1.05 var(--display); letter-spacing: -.055em; }
.about-poster > * { display: block; font-weight: 400; }
.about-poster i { margin-top: 26px; font-size: 1.55em; font-style: normal; color: var(--accent); }
.about-copy h2 { margin-bottom: 28px; font-size: clamp(30px, 3vw, 44px); }
.about-copy > p:not(.eyebrow), .story-copy { color: var(--muted); }
.story-copy { margin: 24px 0; }
.about-copy strong { color: var(--paper); }
.about-copy .about-answer { margin-top: 32px; color: var(--paper); font-weight: 600; }

/* The problem and practical work examples. */
.gap-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; }
.gap-collage { align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 40px; }
.cutout { font: clamp(28px, 3.3vw, 48px)/1.08 var(--display); letter-spacing: -.04em; }
.cutout-one { color: var(--muted); }
.cutout-two { max-width: 400px; color: var(--paper); }
.scribble { margin-top: 24px; color: #f48a74; font-size: 21px; line-height: 1.3; }
.gap-copy > p:not(.eyebrow) { margin-top: 24px; color: var(--muted); }
.gap-copy h2 { font-size: clamp(32px, 3.6vw, 50px); }
.principle-card { margin-top: 34px; padding: 20px 0 20px 22px; border-left: 2px solid var(--accent); }
.principle-card strong, .principle-card span { display: block; }
.principle-card span { margin-top: 8px; color: var(--muted); }
.offer-scope { font-size: 14px; }
.work-section { background: var(--deep); }
.work-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.work-note { padding-top: 24px; border-top: 1px solid var(--rule); }
.work-note h3 { font-size: 25px; }
.work-note p { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* Reference-inspired warm-paper services, with explicit ink contrast. */
.services-section { background: var(--paper); color: var(--night); border-radius: 56px 56px 0 0; }
.services-heading { max-width: 1000px; margin: 0 auto 72px; text-align: center; }
.services-heading h2 { font-size: clamp(42px, 7vw, 100px); line-height: 1.02; }
.services-heading > p:last-child { margin: 28px auto 0; color: #51534c; }
.services-section .eyebrow { color: #51534c; }
.service-list { max-width: 1120px; margin: auto; border-bottom: 1px solid rgba(23,24,23,.22); }
.service-row { display: grid; grid-template-columns: minmax(110px, .3fr) 1fr; align-items: start; gap: 18px 64px; padding: 56px 0; border-top: 1px solid rgba(23,24,23,.22); }
.service-number { grid-row: 1 / 4; color: var(--accent); font: clamp(64px, 9vw, 128px)/1 var(--display); letter-spacing: -.07em; }
.service-type { margin-bottom: 14px; color: #51534c; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.service-row h3 { max-width: 680px; font-size: clamp(27px, 3vw, 42px); }
.service-row > p { grid-column: 2; max-width: 660px; margin: 0; color: #51534c; font-size: 18px; }
.service-row > .service-meta { font-size: 12px; color: var(--night); }
.services-section a:focus-visible { outline-color: var(--night); }

/* Desktop cards stack within their own section, never over the calendar. */
.process-section { position: relative; background: var(--deep); border-radius: 56px 56px 0 0; margin-top: -1px; }
.process-section .section-intro { max-width: 1050px; }
.process-section h2 { font-size: clamp(40px, 6.4vw, 88px); }
.process-track { counter-reset: process; display: grid; gap: 28px; list-style: none; padding-bottom: 48px; }
.process-panel { --step: 0; counter-increment: process; position: relative; display: grid; grid-template-columns: .38fr 1fr; align-content: center; gap: 22px 5vw; padding: clamp(32px, 5vw, 72px); border: 1px solid var(--rule); border-radius: 36px; background: var(--night); color: var(--paper); transform-origin: top center; }
.process-panel:nth-child(2) { --step: 1; }
.process-panel:nth-child(3) { --step: 2; }
.process-panel:nth-child(4) { --step: 3; }
.process-panel::before { content: "0" counter(process); grid-row: 1 / 3; display: block; color: var(--accent); font: clamp(70px, 11vw, 156px)/1 var(--display); letter-spacing: -.07em; }
.process-panel > span { display: block; color: var(--paper); font: clamp(36px, 5vw, 68px)/1.1 var(--display); letter-spacing: -.045em; }
.process-panel p { grid-column: 2; max-width: 630px; color: var(--muted); font-size: clamp(17px, 1.7vw, 23px); }
@media (min-width: 768px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
    .process-panel { position: sticky; top: calc(108px + var(--step) * 18px); min-height: 360px; }
}

/* Contact keeps a direct booking fallback while the calendar loads. */
.contact-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 6vw; }
.contact-copy h2 { max-width: 500px; font-size: clamp(36px, 4vw, 58px); }
.contact-copy > p:not(.eyebrow) { max-width: 470px; margin-top: 24px; color: var(--muted); font-size: 17px; }
.final-answer { margin: 40px 0 30px; }
.final-answer span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.final-answer strong { display: block; margin: 8px 0; font: 23px/1.2 var(--display); letter-spacing: -.025em; }
.final-answer p { font-size: 15px; color: var(--muted); }
.calendar-wrap { min-width: 0; padding-top: 24px; border-top: 1px solid var(--rule); background: var(--deep); }
.calendar-fallback { padding: 0 24px 24px; font-size: 15px; color: var(--muted); }
.calendar-fallback a { color: var(--paper); }
#my-cal-inline-discovery-call { width: 100%; min-height: 120px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px var(--gutter); border-top: 1px solid var(--rule); background: var(--deep); }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }

/* Flow Art chapters: full-bleed panels, rotating from the bottom-left corner. */
.story-flow { position: relative; isolation: isolate; overflow: clip; background: var(--deep); }
.flow-section { position: relative; overflow: clip; }
.flow-inner { position: relative; min-height: 100svh; transform-origin: bottom left; background: var(--deep); }
.flow-inner .section-intro { max-width: 1100px; }
.flow-inner .section-intro h2 { font-size: clamp(48px, 7.2vw, 104px); line-height: 1.03; }
.flow-inner .eyebrow { padding-bottom: 22px; border-bottom: 1px solid currentColor; }
.flow-paper { background: var(--paper); color: var(--night); align-content: center; }
.flow-paper .eyebrow, .flow-paper .gap-copy > p:not(.eyebrow), .flow-paper .principle-card span { color: #51534c; }
.flow-paper .cutout-one, .flow-paper .cutout-two { color: var(--night); }
.flow-paper .cutout { font-size: clamp(40px, 5.5vw, 80px); }
.flow-paper .scribble { color: #9f3324; }
.flow-paper .gap-copy h2 { font-size: clamp(38px, 4.5vw, 65px); }
.flow-inner.work-section { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.flow-inner .work-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
    .flow-inner { min-height: auto; }
}
@media (max-width: 767px) {
    .flow-inner .section-intro h2 { font-size: clamp(40px, 10.5vw, 68px); }
    .flow-inner .work-board { grid-template-columns: 1fr; }
    .flow-paper .cutout { font-size: clamp(36px, 10vw, 58px); }
}

@media (max-width: 1100px) {
    .service-row { gap: 18px 40px; }
    .contact-section { grid-template-columns: 1fr; gap: 48px; }
    .contact-copy { max-width: 690px; }
}

/* Center crop preserves source cyclist x49–54%, y48–80%.
   Portrait copy is above the cyclist; controls are below the bicycle. */
@media (max-aspect-ratio: 1/1) {
    .hero-media { background-position: 50% center; }
    .hero-video { object-position: 50% center; }
    .hero-gradient { background: linear-gradient(180deg, rgba(0,0,0,.68), rgba(0,0,0,.3) 35%, transparent 52%), linear-gradient(0deg, rgba(0,0,0,.6), transparent 20%); }
    .hero-lede { top: 128px; bottom: auto; width: min(480px, calc(100% - 2 * var(--gutter))); }
    .hero h1 { font-size: clamp(36px, 5.9vw, 49px); max-width: 430px; }
    .hero-lede p { max-width: 330px; margin: 16px 0 20px; font-size: 16px; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }
    .site-header { height: 72px; }
    .brand { font-size: 22px; }
    .menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; background: none; color: var(--paper); font-size: 13px; outline: 1px solid transparent; outline-offset: 4px; }
    .menu-toggle-lines { display: grid; gap: 5px; width: 18px; }
    .menu-toggle-lines i { height: 1px; background: currentColor; }
    .primary-navigation { display: none; position: fixed; inset: 0; height: 100dvh; z-index: 30; }
    .primary-navigation.is-open { display: block; }
    .menu-backdrop { display: block; position: absolute; inset: 0; background: rgba(0,0,0,.7); }
    .menu-dialog { position: absolute; inset: 0 0 0 auto; width: min(90%, 420px); display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 80px 30px; background: var(--deep); }
    .primary-navigation a { padding: 22px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
    .menu-close { display: block; position: absolute; top: 20px; right: 30px; min-height: 44px; border: 0; padding: 8px 0; background: none; color: var(--paper); font-size: 14px; }
    body.menu-open { overflow: hidden; }
    .hero-lede { top: 106px; }
    .hero h1 { max-width: 340px; font-size: 38px; }
    .hero-lede p { max-width: 300px; font-size: 15px; line-height: 1.5; }
    .hero .button { font-size: 14px; min-height: 48px; padding: 11px 16px; }
    .hero-scroll-cue, .video-control, .video-status { bottom: max(24px, calc(16px + env(safe-area-inset-bottom))); }
    .section-intro { margin-bottom: 36px; }
    .eyebrow { margin-bottom: 20px; font-size: 10px; }
    .life-layout { grid-template-columns: 1.08fr 1fr; gap: 20px; }
    .life-list li { min-height: 150px; font-size: clamp(23px, 5.8vw, 36px); padding: 24px 0; }
    .life-brand { top: calc(50svh - 48px); padding-block: 24px; }
    .life-brand h2 { font-size: clamp(22px, 6vw, 42px); }
    .life-brand p { margin-top: 12px; font-size: 13px; }
    .about-section, .gap-section { grid-template-columns: 1fr; gap: 42px; }
    .emotional-statement { padding-bottom: 40px; font-size: 39px; }
    .about-poster { font-size: 35px; }
    .about-poster > span, .about-poster > strong { display: inline; }
    .about-poster i { display: inline; margin-left: 12px; font-size: 1em; }
    .gap-collage { padding-top: 0; }
    .scribble { margin-top: 8px; }
    .work-board { grid-template-columns: 1fr; gap: 30px; }
    .work-note h3 { font-size: 24px; }
.services-section, .process-section { border-radius: 28px 28px 0 0; }
    .services-heading { margin-bottom: 42px; text-align: left; }
    .services-heading h2 { font-size: clamp(38px, 10vw, 68px); }
    .service-row { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
    .service-number { grid-row: auto; font-size: 68px; }
    .service-row h3 { font-size: 25px; }
    .service-row > p { grid-column: 1; font-size: 16px; }
    .service-row > .service-meta { margin-top: 0; }
    .process-track { gap: 20px; padding-bottom: 0; }
    .process-panel { grid-template-columns: 1fr; gap: 22px; padding: 28px; border-radius: 24px; }
    .process-panel::before { grid-row: auto; font-size: 64px; }
    .process-panel > span { font-size: 32px; }
    .process-panel p { grid-column: 1; margin: 0; font-size: 17px; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 20px; }
}

@media (max-width: 360px) {
    .hero-lede { top: 94px; }
    .hero h1 { font-size: 33px; }
    .hero-lede p { margin: 12px 0 16px; font-size: 14px; }
    .emotional-statement { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .life-brand { position: static; }
    .life-list li { color: var(--paper); }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
