/* Madilo Architects. Every selector is prefixed with md- to avoid plugin conflicts. */
@font-face{font-family:"Bell MT";font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/bell-mt-regular.woff2) format("woff2")}

*,*::before,*::after{box-sizing:border-box}
html{font-size:max(10px,.8vw);-webkit-text-size-adjust:100%}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}
body{margin:0;background:#000;color:#111;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-weight:300;overflow-x:hidden;-webkit-font-smoothing:antialiased}
body :where(h1,h2,h3,p,ul,figure){margin:0;padding:0}
body :where(ul){list-style:none}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.md-skip{position:fixed;left:1rem;top:-5rem;z-index:100;background:#fff;color:#000;padding:.8rem 1.2rem;transition:top .2s}
.md-skip:focus{top:1rem}
.md-serif,.md-h1,.md-big,.md-name,.md-title,.md-entry-t{font-family:"Bell MT",Georgia,serif;font-weight:400}
.md-cap{font-size:.95rem;letter-spacing:.2em;text-transform:uppercase;font-weight:400}

/* Sections: each one is exactly one 16:9 slice of the continuous background. */
.md-sec{position:relative;width:100%;aspect-ratio:16/9;background:var(--bg) 0 0/100% 100% no-repeat;overflow:hidden}
.md-sec+.md-sec{margin-top:-1px}
/* Scroll-driven background drift (desktop). The six slices are repeated in .md-bgflow, a layer behind the sections, and each slice
   moves by the same amount at the same time, so the joins between slices never open up. Every slice is drawn
   6% wider than its section so the edges never show. No scaling is used, which keeps the artwork sharp.
   Driven by scrolling, and keeps gliding for a few seconds after the scroll stops (see main.js, DRIFT_TAIL): vertical only, always in the direction of the scroll.*/
.md-flow{position:relative;isolation:isolate;overflow:hidden;overflow:clip}
.md-bgflow{display:none}
.md-bg-mobile{display:none}
@media (min-width:901px){
	/* Desktop never shows the hamburger icon — the menu is always visible inline. */
	.md-burger{display:none}
	.md-flow .md-sec{background:none}
	/* Links like /#projects arriving from another page or on load also stop below the fixed header. */
	.md-sec{scroll-margin-top:5.5rem}
	.md-bgflow{display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:#f4f4f4}
	.md-bgs{display:block;position:relative;width:100%;aspect-ratio:16/9}
	.md-bgs+.md-bgs{margin-top:-1px}
	/* Journal slice is 25% shorter than 16:9 (bg-4 was re-cut to 1672x705), so the About section and its background move up. Keep this ratio equal to .md-s4 below. */
	.md-bg4{aspect-ratio:1672/705}
	.md-bgs::before{content:"";position:absolute;top:0;bottom:0;left:-3%;right:-3%;background-size:100% 100%;background-repeat:no-repeat;transform:translate3d(var(--bx,0px),0,0);will-change:transform}
	/* Vertical drift (the main movement): the whole stack of slices moves up and down together, so the joins stay closed.
	   Above slice 1 and below slice 6 a mirrored copy of the artwork fills the space the movement uncovers, so the page edges never open and nothing is stretched. */
	.md-bgs{transform:translate3d(0,var(--by,0px),0);will-change:transform}
	.md-bg1::after,.md-bg6::after{content:"";position:absolute;left:-3%;right:-3%;height:100%;background-size:100% 100%;background-repeat:no-repeat;transform:translate3d(var(--bx,0px),0,0) scaleY(-1);will-change:transform}
	.md-bg1::after{top:-100%}.md-bg6::after{top:100%}
	.md-bg1::before{background-image:url(../img/bg-1.webp);background-image:image-set(url(../img/bg-1.avif) type("image/avif"),url(../img/bg-1.webp) type("image/webp"))}
	.md-bg1::after{background-image:url(../img/bg-1.webp);background-image:image-set(url(../img/bg-1.avif) type("image/avif"),url(../img/bg-1.webp) type("image/webp"))}
	.md-bg6::after{background-image:url(../img/bg-6.webp);background-image:image-set(url(../img/bg-6.avif) type("image/avif"),url(../img/bg-6.webp) type("image/webp"))}
	.md-bg2::before{background-image:url(../img/bg-2.webp);background-image:image-set(url(../img/bg-2.avif) type("image/avif"),url(../img/bg-2.webp) type("image/webp"))}
	.md-bg3::before{background-image:url(../img/bg-3.webp);background-image:image-set(url(../img/bg-3.avif) type("image/avif"),url(../img/bg-3.webp) type("image/webp"))}
	.md-bg4::before{background-image:url(../img/bg-4.webp);background-image:image-set(url(../img/bg-4.avif) type("image/avif"),url(../img/bg-4.webp) type("image/webp"))}
	.md-bg5::before{background-image:url(../img/bg-5.webp);background-image:image-set(url(../img/bg-5.avif) type("image/avif"),url(../img/bg-5.webp) type("image/webp"))}
	.md-bg6::before{background-image:url(../img/bg-6.webp);background-image:image-set(url(../img/bg-6.avif) type("image/avif"),url(../img/bg-6.webp) type("image/webp"))}
}
/* main.js sets --by (vertical drift) on .md-bgflow from the scroll position, with momentum so the drift coasts to a stop after scrolling ends. There is no sideways movement. */

/* Journal section: 25% shorter than a 16:9 slide (must match .md-bg4 above; phones reset it to auto). */
.md-s4{aspect-ratio:1672/705}
.md-s1{--bg:url(../img/bg-1.avif)}.md-s2{--bg:url(../img/bg-2.avif)}.md-s3{--bg:url(../img/bg-3.avif)}
.md-s4{--bg:url(../img/bg-4.avif)}.md-s5{--bg:url(../img/bg-5.avif)}.md-s6{--bg:url(../img/bg-6.avif)}
.md-ab{position:absolute}
/* Text blocks are static: no scroll parallax. */

/* Positions (percent of the section). */
.md-hero-copy{left:18.5%;top:32%;width:40%}.md-scrollcue{left:18.5%;top:80%}
.md-s3-h{left:7%;top:5%}.md-s3-sc{left:7%;top:20%;width:86%;height:72%}.md-s3-sb{left:94.4%;top:24%;width:1.4%;height:62%}
.md-s4-h{left:6%;top:7%}.md-jr-cap{left:60%;top:5%;font-size:.8rem;white-space:nowrap}
.md-s4-sc{left:6%;top:22%;width:56%;height:72%}.md-s4-sb{left:63.4%;top:26%;width:1.4%;height:62%}

.md-hero-tags{left:auto;right:5%;top:auto;bottom:9%;text-align:left;
  font-family:Helvetica,Arial,"Liberation Sans",sans-serif;
  font-size:.8vw;font-weight:500;letter-spacing:.22em;line-height:1.9;
  text-transform:uppercase;color:#fff}
.md-hero-tags span{display:block}

/* Latest article: top edge level with the first card of the left list (container top 22% + its 1.1rem padding) and bottom edge level with the left container's bottom (22% + 72% = 94%). */
.md-latest{left:68%;top:calc(22% + 1.1rem);width:28%;height:calc(72% - 1.1rem)}
/* Desktop tweaks: Projects block sits 50px lower; the Journal caption sits just above the latest article, on its left edge. */
@media (min-width:901px){
	.md-s3-h{top:calc(5% + 50px)}.md-s3-sc{top:calc(20% + 50px)}.md-s3-sb{top:calc(24% + 50px)}
	.md-jr-cap{left:68%;top:calc(22% - .7rem)}
}
.md-about-copy{left:13%;top:9%;width:37%}.md-photo{left:59%;top:9%;width:20%;height:57%;}
.md-assoc-wrap{background:rgba(255,255,255,.7);margin-top:1.2rem}
.md-contact-copy{left:20%;top:42%;width:60%}
.md-photo{left:59%;top:14.5%;width:20%;height:45%}
/* No reveal or entrance animation: all content is visible and static from the first paint. */

/* Navigation */
.md-nav{position:fixed;inset:0 0 auto 0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:1rem 3.4vw;color:#fff;background:rgba(51, 51, 51, 0.8);}
.md-logo{font-size:1.9rem;letter-spacing:.22em;line-height:1.05;font-weight:400}
.md-logo small{display:block;font-size:.95rem;letter-spacing:.3em}
.md-logo-img{display:block;height:3.4rem;width:auto;max-width:none}
.md-navwrap{margin-left:auto;margin-right:1.9rem}
.md-menu{display:flex;gap:1.9rem;align-items:center;font-size:.95rem;letter-spacing:.14em;text-transform:uppercase}
.md-menu a{position:relative}
.md-menu a::after{content:"";position:absolute;left:0;bottom:-.3rem;height:1px;width:100%;background:#fff;transform:scaleX(0);transform-origin:left;transition:transform .5s}
.md-menu a:hover::after,.md-menu a:focus-visible::after{transform:scaleX(1)}
.md-burger{width:1.7rem;display:grid;gap:.4rem;background:none;border:0;padding:.4rem 0;cursor:pointer;color:inherit}
.md-burger i{height:1px;background:#fff;display:block;transition:transform .4s,opacity .3s}
.md-nav.open .md-burger i:first-child{transform:translateY(.25rem) rotate(45deg)}
.md-nav.open .md-burger i:last-child{transform:translateY(-.25rem) rotate(-45deg)}
.md-nav.open .md-navwrap{position:fixed;inset:0;margin:0;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;z-index:-1}
.md-nav.open .md-menu{flex-direction:column;gap:2rem;font-size:1.6rem;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;letter-spacing:.2em}
#md-bar{position:fixed;left:0;top:0;height:2px;width:100%;background:#fff;mix-blend-mode:difference;transform-origin:left;transform:scaleX(0);z-index:60}

/* Hero */
.md-h1{font-size:3.7rem;line-height:1.02;letter-spacing:-.02em}
.md-ln{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
.md-ln>span{display:block}
.md-rule{width:2.4rem;height:1px;background:#111;margin:1.6rem 0 1.3rem}
.md-hero-sub{font-size:1rem;line-height:1.8;text-align:center;width:max-content;max-width:100%;margin-top:.6rem}.md-hero-sub span{letter-spacing:.14em;text-transform:none}
/* Typewriter: main.js types data-line1/data-line2 into .md-type-txt on load. Hide the plain-rendered text only once
   JS (md-js, set synchronously by boot.js) confirms it can run the animation, so it is never hidden for no-JS visits. */
.md-js .md-hero-sub[data-md-type] .md-type-txt{visibility:hidden}
.md-type-cursor{display:inline-block;width:1px;height:1em;margin-left:.2em;background:currentColor;vertical-align:-0.12em;animation:md-caret-blink 1s step-end infinite}
.md-hero-sub[data-md-type] .md-type-txt.md-type-on{visibility:visible}
@keyframes md-caret-blink{0%,49%{opacity:1}50%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.md-type-cursor{animation:none;opacity:1}}
/* Hero legibility: a soft, feathered light patch behind the copy and scroll cue, plus a light halo on the text, so the
   brush splatter that drifts behind it never makes the words hard to read. Edit the .86 / .72 values to strengthen or soften. */
.md-hero-copy,.md-scrollcue{isolation:isolate}
.md-hero-copy::before,.md-scrollcue::before{content:"";position:absolute;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(255,255,255,.86) 0,rgba(255,255,255,.72) 55%,rgba(255,255,255,0) 100%)}
.md-hero-copy::before{inset:-2.5rem -3.5rem}
.md-scrollcue::before{inset:-1.5rem -2.5rem}
.md-h1,.md-hero-sub,.md-scrollcue .md-cap{text-shadow:0 0 .5rem rgba(255,255,255,.95),0 0 1.2rem rgba(255,255,255,.85)}
.md-sl{position:relative;overflow:hidden;width:1px;height:3.6rem;background:rgba(17,17,17,.5);margin-top:.6rem}
.md-sl::after{content:"";position:absolute;left:0;top:0;width:1px;height:32%;background:#111;animation:md-sl-drip 2.4s cubic-bezier(.65,0,.35,1) infinite}
@keyframes md-sl-drip{0%{transform:translateY(-100%);opacity:0}15%{opacity:1}75%{opacity:1}100%{transform:translateY(410%);opacity:0}}

/* Services slide: two translucent containers over the ink, the line drawing, labels with leader lines.
   Units are cqw (1% of the slide width) so everything keeps its place at any desktop width. */
/* The Services section is a true 16:9 slide like the approved design. The illustration (.md-svc-art) is placed so each label's leader line lands on its building. */
.md-s2{container-type:inline-size;aspect-ratio:16/9}
.md-svc-band{left:0;top:6.64cqw;width:100%;height:9.38cqw;background:rgba(255,255,255,.33)}
.md-svc-panel{left:0;top:16.02cqw;width:100%;bottom:0;background:rgba(255,255,255,.89)}
.md-svc-craft{right:-1cqw;top:11.2cqw;width:20.9%;height:auto;pointer-events:none}
.md-svc-art{left:0;top:25cqw;width:100%;bottom:0;overflow:hidden}
.md-svc-img{display:block;width:100%;max-width:none;height:auto}
.md-svc-cap{left:5.41cqw;top:3.6cqw;font-size:.84rem;letter-spacing:.16em;line-height:1.45;text-transform:uppercase;font-weight:400;white-space:nowrap;color:#444}
.md-svc-caprule{display:none}
.md-lead{left:5.27cqw;top:8.3cqw;width:38cqw;font-family:"Bell MT",Georgia,serif;font-weight:400;font-size:2.04rem;line-height:1.3;letter-spacing:.005em;color:#333}
.md-lead em{font-style:italic;font-weight:700}
.md-svc-col{top:18.7cqw}
.md-svc-c1{left:3.97cqw}.md-svc-c2{left:33.7cqw}
.md-svc-col h2{font-family:"Bell MT",Georgia,serif;font-weight:400;font-size:1.95rem;letter-spacing:.22em;line-height:1}
.md-svc-rule{display:block;width:1.5cqw;height:2px;background:#333;margin:.85rem 0 1.5rem}
.md-tags{font-size:.77rem;letter-spacing:.26em;text-transform:uppercase;font-weight:500;color:#222;line-height:1;margin-bottom:1.3rem;white-space:nowrap}
.md-tl{display:block;font-size:.68rem;letter-spacing:.12em;line-height:1.22rem;text-transform:uppercase;color:#777;white-space:nowrap}
.md-tl b{font-weight:500;color:#222}
.md-tl i{font-style:normal;margin:0 .5em}
.md-svc-vl{left:31.4cqw;top:18.9cqw;width:1px;height:9.1cqw;background:#555}
.md-labs{position:absolute;inset:0;pointer-events:none}
.md-lab{position:absolute;white-space:nowrap;color:#333}
.md-lab strong{display:block;font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#111;line-height:1.26rem}
.md-lab span{display:block;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-weight:400;font-size:.98rem;line-height:1.13rem}
/* Services labels and their pointers (positions follow the approved reference drawing).
   Every label has TWO pointers: a line from its heading (::before, with a small tick into the heading) and a dotted line that starts
   under its description text (::after, with a dot). Numbers are in cqw (1% of the drawing's width) from the drawing's top-left corner, so desktop and the phone strip share them:
   --lx = left edge of the label text (label 2 is right-aligned, so --lx is its right edge)      --cy = height of the label's title line
   --px = x of the heading line      --pt = (unused spare)      --pb = where both lines end on the drawing      --dx = x of the description dot, measured from the text edge
   --oy = where the drawing's top edge sits in the labels' box      --tc = half the height of the title line      --H = height of the label's text block */
.md-lab{--oy:27.4cqw;--tc:.63rem;--dx:2;--H:calc(1.26rem*var(--tl,1) + var(--n,3)*1.13rem);left:calc(var(--lx)*1cqw);top:calc(var(--oy) + var(--cy)*1cqw - var(--tc))}
.md-lab::before{content:"";position:absolute;left:calc((var(--px) - var(--lx))*1cqw);top:0;width:5px;height:calc((var(--pb) - var(--cy))*1cqw + var(--tc));background:linear-gradient(#222,#222) 0 0/5px 1px no-repeat,linear-gradient(#222,#222) 0 0/1px 100% no-repeat}
.md-lab::after{content:"";position:absolute;left:calc(var(--dx)*1cqw - 3px);top:calc(var(--H) + .4rem);width:7px;height:calc((var(--pb) - var(--cy))*1cqw + var(--tc) - var(--H) - .4rem);background:radial-gradient(circle,#111 2.4px,transparent 3px) 0 0/7px 7px no-repeat,linear-gradient(#222,#222) 3px 0/1px 100% no-repeat}
.md-lab-1{--lx:6.23;--cy:4.26;--px:5.36;--pt:6.74;--pb:16.09}
.md-lab-2{--lx:29.6;--cy:5.4;--px:30.33;--pt:6.33;--pb:15.41;left:auto;right:calc((100 - var(--lx))*1cqw);text-align:right}
.md-lab-2::before{left:calc(100% + (var(--px) - var(--lx))*1cqw - 5px);background-position:0 0,100% 0}
.md-lab-2::after{left:calc(100% - var(--dx)*1cqw - 3px)}
.md-lab-3{--lx:43.24;--cy:5.75;--px:42.37;--pt:7.02;--pb:16.64}
.md-lab-4{--lx:58.74;--cy:5.88;--px:56.95;--pt:7.98;--pb:17.47}
.md-lab-5{--lx:68.13;--cy:11.35;--px:67.26;--pt:11.28;--pb:18.43}
.md-lab-6{--lx:79.82;--cy:7.12;--px:78.95;--pt:9.63;--pb:19.94}
.md-lab-7{--lx:91.1;--cy:12.38;--px:90.51;--pt:12.79;--pb:26.41;--tl:2}
@media (max-width:900px){
	.md-svc-pan .md-lab{--oy:26cqw;--dx:.9;--tc:1.43vw;--H:calc(2.86vw*var(--tl,1) + .15rem + var(--n,3)*2.75vw)}
	.md-s1 .md-hero-tags{display:none}
}

/* Shared headings, scrolling lists and the custom scrollbar */
.md-big{font-size:3.4rem;letter-spacing:-.01em}
.md-sc{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-mask-image:linear-gradient(transparent 0,#000 7%,#000 90%,transparent 100%);mask-image:linear-gradient(transparent 0,#000 7%,#000 90%,transparent 100%)}
.md-sc::-webkit-scrollbar{display:none}
.md-sb{z-index:5;cursor:pointer}
.md-sb .md-tr{position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(0,0,0,.16)}
.md-sb .md-tm{position:absolute;left:50%;top:0;width:3px;margin-left:-1.5px;background:#111;border-radius:3px;opacity:.5;transition:opacity .4s,width .3s,margin .3s;cursor:grab}
.md-sb .md-tm::before{content:"";position:absolute;top:-.65rem;left:50%;width:.5rem;height:.5rem;margin-left:-.25rem;border:1px solid #111;border-radius:50%;background:#f4f4f4}
.md-sb:hover .md-tm,.md-sb.on .md-tm{opacity:1;width:5px;margin-left:-2.5px}
.md-sb .md-ct{position:absolute;top:100%;left:50%;translate:-50% .9rem;font-size:.7rem;letter-spacing:.16em;white-space:nowrap;opacity:.65}

/* Projects */
.md-rows{display:grid;gap:.55rem;padding:1.1rem 1.4rem 3rem 0}
.md-row{display:grid;grid-template-columns:8rem 17rem 1fr 4rem 2rem;align-items:center;gap:1.4rem;padding:.4rem .6rem .4rem 0;border-top:1px solid #222;background:rgba(255,255,255,.62);transition:background .5s,padding .5s}
a.md-row:hover{background:rgba(255,255,255,.95);padding-left:.8rem}
.md-th{display:block;height:4.4rem;position:relative;overflow:hidden;background:#3a2417}
.md-th img{width:100%;height:100%;object-fit:cover}
.md-th-ph{display:block;position:absolute;inset:0;background:linear-gradient(135deg,#9b6a45,#3a2417)}
.md-th-ph::after{content:"";position:absolute;left:30%;top:14%;width:34%;height:72%;background:linear-gradient(#e9c58e,#7d4c2a);border-radius:.6rem .6rem 0 0}
.md-row:nth-child(3n+2) .md-th-ph{filter:hue-rotate(-18deg) saturate(.8)}.md-row:nth-child(3n) .md-th-ph{filter:hue-rotate(14deg) brightness(.9)}
.md-rt{display:block}.md-rt-t{display:block;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-weight:400;font-size:1.7rem}.md-rt .md-cap{font-size:.7rem}
.md-rd{font-size:1.05rem;color:#444;background:rgba(0,0,0,.08);padding:.7rem .9rem}
.md-row small{font-size:.95rem;letter-spacing:.18em}
.md-ar{font-size:1.6rem;transition:translate .5s}a.md-row:hover .md-ar{translate:.5rem 0}

/* Journal */
.md-jg{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:9.5rem;grid-auto-flow:dense;gap:1.1rem;padding:1.1rem 1.4rem 3rem 0}
.md-jg .md-box:nth-child(4n+2){grid-row:span 2}.md-jg .md-box:nth-child(7n+4){grid-column:span 2}
.md-box{display:flex;flex-direction:column;justify-content:flex-end;border:1px solid #2b3a55;background:rgba(255,255,255,.55);padding:1.1rem;transition:background .5s,translate .6s}
a.md-box:hover{background:rgba(255,255,255,.95);translate:0 -.5rem}
.md-box .md-cap{font-size:.8rem;color:#2b3a55;margin-bottom:.4rem}
.md-bt{font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-weight:400;font-size:1.6rem;line-height:1.1}
.md-latest .md-bt{font-size:3rem}
.md-im{display:block;flex:1;margin-bottom:1.2rem;overflow:hidden;background:linear-gradient(160deg,#cfcfcf,#8d8d8d)}
.md-im img{width:100%;height:100%;object-fit:cover}

/* About */
.md-name{font-size:1.9rem;letter-spacing:.2em;font-weight:400;margin-bottom:.9rem}
.md-role{font-size:.85rem;margin-bottom:1.3rem}
.md-s5::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.34) 14%,rgba(255,255,255,.34) 86%,rgba(255,255,255,0) 100%)}
.md-about p{font-size:1.2rem;line-height:1.55;margin-bottom:.9rem}
.md-about strong{font-weight:500}
.md-about .md-cap{font-size:.8rem}.md-assoc{margin:1.2rem 0 .3rem!important}
.md-about details{border-bottom:1px solid #111;padding:.45rem 0;font-size:1.05rem;letter-spacing:.06em}
.md-about summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between}
.md-about summary::-webkit-details-marker{display:none}
.md-about summary::after{content:"\25BE"}.md-about details[open] summary::after{content:"\25B4"}
.md-about details p{font-size:0.8rem;margin:.6rem 0 0;color:#444}
.md-photo{overflow:hidden;box-shadow:0 2rem 4rem rgba(0,0,0,.25);background:#2a2a2a}
.md-photo img{width:100%;height:100%;object-fit:cover;filter:grayscale(1)}
.md-photo-ph{display:block;width:100%;height:100%;background:linear-gradient(160deg,#9a9a9a,#2a2a2a)}

/* Last screen: laid out like the approved mockup. Units are cqw (1% of the slide width). */
.md-s6{color:#fff;text-align:left;container-type:inline-size;--ctl:rgba(255,255,255,.88)}
.md-s6.md-foot{margin-top:0}
.md-ct-h{left:4.9cqw;top:25cqw;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-weight:300;font-size:3.5cqw;line-height:3.85cqw;letter-spacing:.125em;text-transform:uppercase;color:var(--ctl);white-space:nowrap}
.md-ct-h span{display:block}
.md-ct-sub{left:5.1cqw;top:34.6cqw;font-size:.95cqw;line-height:1.45cqw;letter-spacing:.27em;text-transform:uppercase;font-weight:400;color:rgba(255,255,255,.8);white-space:nowrap}
.md-ct-logo{left:69.3cqw;top:25.6cqw;width:28.2cqw;height:auto}
.md-ct-logo img{width:100%;height:auto}
.md-ct-logo-txt{background:#000;padding:5cqw 2.2cqw 3.2cqw;font-size:3.1cqw;letter-spacing:.14em;line-height:1.1;font-weight:600;text-align:left}
.md-ct-logo-txt small{display:block;font-size:1.6cqw;letter-spacing:.34em;margin-top:.6cqw;font-weight:400;padding-left:1.2cqw}
.md-ct-rule{left:4.85cqw;top:39.4cqw;width:91cqw;height:1px;background:rgba(255,255,255,.35)}
.md-ct-cta{left:5.1cqw;top:41.5cqw}
.md-ct-cta1{display:block;font-size:.9cqw;letter-spacing:.2em;text-transform:uppercase;font-weight:400;color:rgba(255,255,255,.75);white-space:nowrap}
.md-ct-cta2{display:block;margin-top:.5cqw;font-size:2.75cqw;line-height:1.15;letter-spacing:.15em;text-transform:uppercase;font-weight:300;color:var(--ctl);white-space:nowrap}
.md-ct-vl{left:28.55cqw;top:41.5cqw;width:1px;height:7.8cqw;background:rgba(255,255,255,.4)}
.md-ct-list{left:31.2cqw;top:41.5cqw;font-size:1.05cqw;letter-spacing:.05em;line-height:1.4cqw;color:rgba(255,255,255,.88)}
.md-ct-list li{display:flex;align-items:flex-start;gap:1.35cqw;margin-bottom:.95cqw}
.md-ct-list li:last-child{margin-bottom:0}
.md-ct-list li+li{align-items:center}
.md-ct-list .md-ic{flex:0 0 auto;width:1.75cqw;height:1.75cqw;margin-top:-.15cqw;color:rgba(255,255,255,.7)}
.md-ct-list a{border-bottom:1px solid transparent;transition:border-color .4s}.md-ct-list a:hover{border-color:#fff}
.md-ct-addr span{display:block;max-width:19cqw}
.md-ct-social{left:5.1cqw;top:51.2cqw;display:flex;align-items:center;gap:1.5cqw;font-size:.8cqw;letter-spacing:.06em;color:rgba(255,255,255,.75)}
.md-ct-social .md-ic{width:1.75cqw;height:1.75cqw;display:block;color:rgba(255,255,255,.7);transition:color .3s}
.md-ct-social a:hover .md-ic{color:#fff}
.md-ct-social i{display:block;width:1px;height:.9cqw;background:rgba(255,255,255,.55);margin:0 .1cqw 0 .1cqw}
.md-ct-copy{right:4.2cqw;top:52.3cqw;font-size:.8cqw;letter-spacing:.05em;color:rgba(255,255,255,.75);white-space:nowrap}

/* Mobile-only blocks are hidden on desktop. */
.md-svc-m,.md-ct-mtag,.md-hero-list,.md-tl-m{display:none}

/* Inner pages */
.md-inner{min-height:100vh;padding:10rem 5vw 6rem;background:#f4f4f4 url(../img/bg-3.webp) center/cover no-repeat}
.md-article{max-width:48rem;margin:0 auto;background:rgba(255,255,255,.9);padding:3.4rem}
.md-title{font-size:3.4rem;line-height:1.05;margin:.6rem 0 1.6rem}
.md-hero-img{margin:0 0 2rem}.md-hero-img img{width:100%}
.md-prose{font-size:1.25rem;line-height:1.7}
.md-prose p,.md-prose ul,.md-prose ol{margin:0 0 1.2rem!important}.md-prose ul{list-style:disc;padding-left:1.4rem!important}.md-prose ol{padding-left:1.4rem!important}
.md-prose a{border-bottom:1px solid #111}
.md-entry{padding:1.6rem 0;border-top:1px solid #222}.md-entry-t{font-size:2.2rem}
.md-back{margin-top:2rem;font-size:1rem;letter-spacing:.14em;text-transform:uppercase}
.md-article .navigation.pagination{margin-top:2rem;letter-spacing:.14em}

/* Project page: one 16:9 slide laid out exactly like the approved mockup (everything is a percent of the slide). */
.md-pj{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#f1f1f1}
.md-pj-bg{position:absolute;inset:-4%;z-index:0;background:url(../img/bg-3.avif) center/cover no-repeat}

.md-pj-in{position:absolute;inset:0;z-index:1}
.md-pj-title{left:5.6%;top:12%;font-family:"Bell MT",Georgia,serif;font-weight:400;font-size:4.2rem;line-height:1;letter-spacing:-.01em;white-space:nowrap}
.md-pj-rule{left:5.1%;top:19.5%;width:2.75%;height:3px;background:#9a9a9a}
.md-pj-scope{left:11.8%;top:19.9%;font-size:.95rem;letter-spacing:.15em;text-transform:uppercase;font-weight:400;white-space:nowrap}
.md-pj-scope i{font-style:normal;margin:0 .5rem;opacity:.7}
.md-pj-hline{left:5.1%;top:22.8%;width:89.5%;height:1px;background:rgba(0,0,0,.35)}

.md-pj-btns{left:auto;right:5.4%;top:17%;width:auto;height:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:1.4rem;padding:0;background:none;border:0;color:#111}
.md-pj-btns::before{content:"";width:1px;height:1.9rem;background:#111;order:1}
.md-btn{display:block;order:0;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-size:1rem;line-height:1.15;font-weight:400;color:#111;border:1px solid #111;background:rgba(255,255,255,.85);padding:.7rem 1.4rem;transition:border-color .3s,translate .3s}
.md-btn:hover,.md-btn:focus-visible{border-color:#111;translate:0 -1px}
.md-btn.md-btn-home{order:2;position:relative;width:3.2rem;height:3.2rem;padding:0;font-size:0;overflow:hidden;color:transparent;border:0;background:none}
.md-btn.md-btn-home::before{content:"";position:absolute;inset:0;margin:auto;width:2rem;height:2rem;background:#111;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E") center/contain no-repeat}


.md-pj-panelwrap{left:11.1%;top:23.6%;width:28.4%;height:64.4%;background:rgba(188,188,188,.72);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.md-pj-scroll{height:100%;padding:1.25rem 3rem 1.2rem 1.25rem;-webkit-mask-image:linear-gradient(transparent 0,#000 2%,#000 96%,transparent 100%);mask-image:linear-gradient(transparent 0,#000 2%,#000 96%,transparent 100%)}
.md-pj-abouth,.md-pj-prose{font-family:Helvetica,Arial,"Liberation Sans",sans-serif;color:#000}
.md-pj-abouth{font-weight:700;font-size:1.2rem;line-height:1.2}
.md-pj-prose{font-weight:400;font-size:1.17rem;line-height:1.2}
.md-pj-prose p{margin:0 0 1.4rem!important}
.md-pj-sbv{position:absolute;right:.9rem;top:1.45rem;bottom:1.4rem;width:1rem}
.md-pj-sbv .md-ct{display:none}
.md-pj-vline{left:42.3%;top:25.8%;width:1px;height:48%;background:rgba(0,0,0,.35)}
.md-pj-big{left:46.6%;top:25.8%;width:48.3%;height:48.1%;margin:0;overflow:hidden;background:#d4d4d4}
.md-pj-main{width:100%;height:100%;object-fit:cover;transition:opacity .22s}
.md-pj-main.out{opacity:0}
.md-pj-ph{background:linear-gradient(135deg,#bdbdbd,#8f8f8f)}
.md-pj-thumbs{left:46.6%;top:79.9%;width:48.3%;display:flex;gap:1.2rem;overflow-x:auto;scrollbar-width:none;padding:3px 3px 3px 0}
.md-pj-thumbs::-webkit-scrollbar{display:none}
.md-pj-thumbs::before{content:"";margin-left:auto}
.md-pj-t{flex:0 0 5.6rem;height:3.9rem;padding:0;border:2px solid rgba(150,150,150,.75);background:#cfcfcf;cursor:pointer;opacity:.75;transition:opacity .3s,border-color .3s,box-shadow .3s}
.md-pj-t img{display:block;width:100%;height:100%;object-fit:cover}
.md-pj-t:hover,.md-pj-t:focus-visible{opacity:1}
.md-pj-t.on{opacity:1;border-color:#111}
.md-pj-tph{display:block;cursor:default}
.md-hsb{position:relative;height:1.3rem;cursor:pointer}
.md-hsb .md-tr{position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(0,0,0,.2)}
.md-hsb .md-tm{position:absolute;left:0;top:50%;height:3px;margin-top:-1.5px;background:#111;border-radius:3px;opacity:.5;transition:opacity .4s,height .3s,margin .3s;cursor:grab}
.md-hsb .md-tm::before{content:"";position:absolute;left:-.55rem;top:50%;width:.5rem;height:.5rem;margin-top:-.25rem;border:1px solid #111;border-radius:50%;background:#f4f4f4}
.md-hsb:hover .md-tm,.md-hsb.on .md-tm{opacity:1;height:5px;margin-top:-2.5px}
.md-pj-hsb{position:absolute;left:46.6%;top:86.4%;width:48.3%;margin:0}
.md-pj-foot{left:4.9%;top:88.6%;width:89.7%;height:1px;background:rgba(0,0,0,.35)}
@media (prefers-reduced-motion:reduce){
	*,*::before,*::after{animation:none!important;transition:none!important}
}
/* ==========================================================================
   MOBILE (900px and below). Built from the approved mobile slides.
   Every section is one 9:16 screen (min-height 177.78vw), the artwork fills it, and sizes use vw / cqw
   (cqw = 1% of the screen width) so it scales like the slides on any phone. There is no nested scrolling and no
   scroll-driven JavaScript on phones, which is what keeps it smooth.
   ========================================================================== */
@media (max-width:900px){
	html{font-size:clamp(13px,3.85vw,17px);-webkit-text-size-adjust:100%}
	body{-webkit-tap-highlight-color:transparent}
	a,button,summary{touch-action:manipulation}
	:root{--hdr:4.7rem}

	/* Header */
	.md-nav{inset:.6rem 0 auto 0;padding:.45rem 5vw;background:rgba(28,28,28,.72);transition:transform .35s ease}
	/* Hides the bar on scroll-down, brings it back on scroll-up (see main.js); never applied on desktop. */
	.md-nav.md-nav-hide{transform:translateY(-130%)}
	.md-logo{font-size:1.25rem}.md-logo small{font-size:.62rem}
	.md-logo-img{height:2.3rem}
	.md-navwrap{display:none;margin-right:0}
	.md-nav.open .md-navwrap{display:flex}
	/* Three-line hamburger icon on phones: the middle bar fades out and the outer two spread a little further apart to meet in an X. */
	.md-nav.open .md-burger i:first-child{transform:translateY(.45rem) rotate(45deg)}
	.md-nav.open .md-burger i:nth-child(2){opacity:0}
	.md-nav.open .md-burger i:last-child{transform:translateY(-.45rem) rotate(-45deg)}
	#md-bar{mix-blend-mode:normal;background:#8a8a8a;will-change:transform}
    

	/* Every section = one screen */
	.md-sec{container-type:inline-size;aspect-ratio:auto;min-height:177.78vw;display:flex;flex-direction:column;justify-content:flex-start;gap:0;padding:calc(var(--hdr) + 4vw) 6vw 22vw;background:none;overflow:visible;isolation:isolate}
	/* Seamless joins: each section paints its picture 16vw above its top (fading in) and 16vw below its bottom (solid, so
	   the next section fades in over it). There is no hard edge between sections. */
	.md-sec::before{content:"";position:absolute;left:0;right:0;top:-22vw;bottom:-22vw;z-index:-1;pointer-events:none;background:var(--bg) center top/cover no-repeat;-webkit-mask-image:linear-gradient(transparent 0,#000 22vw);mask-image:linear-gradient(transparent 0,#000 22vw)}
	.md-s1::before{top:0;-webkit-mask-image:none;mask-image:none}
	.md-s6::before{bottom:0}
	.md-ab{position:static;width:auto;height:auto}
	.md-cap{font-size:.62rem;letter-spacing:.16em}
	.md-big{font-size:clamp(2.3rem,11.2vw,3.6rem);line-height:1.05;letter-spacing:-.01em;font-weight:400}
	.md-sc{height:auto;overflow:visible;overscroll-behavior:auto;-webkit-mask-image:none;mask-image:none}
	.md-sb,.md-hsb.md-pj-hsb{display:none}

	/* 1 Hero */
	.md-s1{padding:calc(var(--hdr) + 24vw) 6vw 22vw}
	.md-hero-copy{width:auto}
	.md-h1{font-size:clamp(1.9rem,8.2vw,3.2rem);line-height:1.08}
	.md-rule{margin:5vw 0 4.5vw}
	.md-hero-sub{font-size:.7rem;letter-spacing:.1em;line-height:1.9;text-transform:uppercase}
	.md-hero-sub span{letter-spacing:.1em}
	.md-scrollcue{position:absolute;left:0;right:0;bottom:6vw;top:auto;display:flex;flex-direction:column;align-items:center}
	.md-scrollcue .md-cap{font-size:.9rem;font-weight:600;letter-spacing:.28em;color:#000}
	.md-sl{height:3rem;margin-top:.5rem}

	/* 2 Services — caption, lead and the Hospitality/Retail blocks are tightened; the illustration (image +
	   its overlaid labels) and the scroll hint are back to the original sizing so the horizontal swipe and
	   the label text line up on the image exactly as in the first draft. */
	.md-s2{padding:calc(var(--hdr) + 3vw) 0 22vw}
	.md-s2::after{content:"";position:absolute;left:0;right:0;top:calc(var(--hdr) + 14vw);bottom:0;z-index:-1;background:rgba(255,255,255,.89);pointer-events:none}
	.md-svc-band,.md-svc-panel,.md-svc-craft,.md-svc-caprule,.md-svc-vl,.md-svc-art,.md-s2>.md-labs{display:none}
	.md-svc-cap{display:none}
	.md-lead{order:1;width:auto;padding:5vw 6vw .8vw;font-size:clamp(.85rem,3.4vw,1.15rem);line-height:1.18}
	.md-svc-col{order:2;padding:1.2vw 6vw 0;margin:0}
	.md-svc-col h2{font-size:clamp(1rem,4.8vw,1.45rem);letter-spacing:.14em;line-height:1}
	.md-svc-rule{margin:.3rem 0 .4rem}
	.md-tags{font-size:.44rem;letter-spacing:.12em;line-height:1.3;white-space:normal;margin-bottom:.3rem}
	.md-tl{font-size:.62rem;letter-spacing:.03em;line-height:1.05rem;white-space:normal}
	.md-svc-m{order:3;display:block;margin-top:1vw}
	.md-svc-scrollx{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x pan-y}
	.md-svc-scrollx::-webkit-scrollbar{display:none}
	.md-svc-pan{position:relative;width:340vw;container-type:inline-size;padding:0cqw 0 3cqw;height:auto;overflow:hidden}
	.md-svc-pimg{display:block;width:100%;height:auto;max-width:none}
	.md-svc-pan .md-labs{position:absolute;left:0;top:-26cqw;width:100%;height:100%;pointer-events:none}
	.md-svc-pan .md-lab strong{font-size:2.2vw;line-height:1.3;letter-spacing:.14em;margin-bottom:.2rem}
	.md-svc-pan .md-lab span{font-size:2.2vw;line-height:1.25}
	.md-svc-hint{display:flex;align-items:center;justify-content:center;gap:.7rem;margin:4vw 0 0;font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;font-weight:500}
	.md-svc-hint i{position:relative;display:block;width:2.6rem;height:1px;background:#111;animation:md-hint 1.8s ease-in-out infinite}
	.md-svc-hint i::after{content:"";position:absolute;right:0;top:-3px;width:6px;height:6px;border-top:1px solid #111;border-right:1px solid #111;transform:rotate(45deg)}
	@keyframes md-hint{0%,100%{transform:translateX(0)}50%{transform:translateX(.5rem)}}

	/* 3 Projects */
	.md-s3-h{padding-bottom:3.4vw;margin-bottom:5vw;border-bottom:1px solid rgba(0,0,0,.5);text-transform:uppercase;font-size:calc(1.7rem - 0.5mm)}
	.md-rows{gap:3.2vw;padding:0}
	.md-row{grid-template-columns:27vw 1fr 1.2rem;gap:4vw;padding:0 3vw 0 0;border-top:1px solid rgba(0,0,0,.55);background:rgba(255,255,255,.55)}
	.md-th{display:block;height:15vw}
	.md-rt-t{font-size:1.3rem;line-height:1.15}
	.md-rt .md-cap{font-size:.56rem;margin-top:.15rem}
	.md-rd,.md-row small{display:none}
	.md-ar{font-size:1.2rem}
	a.md-row:hover{padding-left:0;background:rgba(255,255,255,.7)}a.md-row:hover .md-ar{translate:0 0}

	/* 4 Journal */
	.md-s4-h::after{content:"";display:block;width:14vw;height:1px;background:#111;margin-top:3vw}
	.md-jr-cap{order:1;margin:2vw 0 6vw;text-align:right;white-space:normal;font-size:.56rem}
	.md-latest{order:2;min-height:70vw;margin-bottom:4vw}
	.md-latest .md-bt{font-size:2rem}
	/* Journal list: a fixed-height box that scrolls by itself (touch scrolling stays inside it, the page does not move).
	   Height shows about three rows of 32vw plus a peek of the next, so it is clear there is more to scroll. */
	.md-s4-sc{order:3;flex:none;height:112vw;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none;-webkit-mask-image:linear-gradient(#000 0,#000 88%,transparent 100%);mask-image:linear-gradient(#000 0,#000 88%,transparent 100%)}
	.md-s4-sc::-webkit-scrollbar{display:none}
	.md-jg{grid-template-columns:1fr 1fr;grid-auto-rows:32vw;gap:3.5vw;padding:0 0 14vw}
	.md-box{padding:.8rem;min-height:0}
	.md-bt{font-size:1.25rem}
	a.md-box:hover{translate:0 0;background:rgba(255,255,255,.55)}

	/* 5 Founder */
	.md-s5{padding:calc(var(--hdr) + 1vw) 0 22vw}
	.md-about-copy{background:rgba(255,255,255,.86);padding:7vw 7vw 7vw}
	.md-name{font-family:"Bell MT",Georgia,serif;font-size:1.05rem;font-weight:400;letter-spacing:.2em;margin-bottom:.5rem}
	.md-role{font-size:.62rem;letter-spacing:.18em;margin-bottom:5vw}
	.md-about p{font-size:.8rem;line-height:1.55;margin-bottom:3.2vw}
	.md-about .md-cap{font-size:.62rem}
	.md-about details{font-size:.8rem;padding:.4rem 0}
	.md-photo{width:46vw;height:62vw;margin:5vw 0 0 8.6vw;box-shadow:0 1rem 2rem rgba(0,0,0,.25)}

	/* 6 Contact */
	.md-s6{align-items:center;text-align:center;padding:72vw 8vw 9vw;color:#fff}
	.md-ct-h,.md-ct-sub,.md-ct-cta,.md-ct-vl{display:none}
	.md-ct-logo{order:1;width:63vw;margin:0 auto}
	.md-ct-logo-txt{padding:1.4rem 1rem;font-size:1.7rem;text-align:center}
	.md-ct-logo-txt small{font-size:.8rem;padding-left:0}
	.md-ct-mtag{order:2;display:block;margin:6vw 0 0;font-size:.62rem;letter-spacing:.1em;line-height:1.75;text-transform:uppercase;color:rgba(255,255,255,.88)}
	.md-ct-list{order:3;margin-top:8vw;width:auto;align-self:center;font-size:.78rem;letter-spacing:.04em;line-height:1.45;text-align:left}
	.md-ct-list li{gap:.9rem;margin-bottom:.9rem;align-items:flex-start}
	.md-ct-list li+li{align-items:center}
	.md-ct-list .md-ic,.md-ct-social .md-ic{width:1.35rem;height:1.35rem;margin-top:0}
	.md-ct-addr span{max-width:15rem}
	.md-ct-rule{order:4;width:62vw;height:1px;margin:7vw auto 6vw}
	.md-ct-social{order:5;justify-content:center;gap:1rem;font-size:.72rem}
	.md-ct-social i{height:1rem}
	.md-ct-copy{order:6;margin-top:9vw;font-size:.6rem;white-space:normal;text-align:center}

	/* Project page */
	.md-pj{aspect-ratio:auto;min-height:100svh;padding:calc(var(--hdr) + 3vw) 0 10vw}
	.md-pj-bg{inset:0;background:linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.55)),url(../img/bg-3.avif) center top/cover no-repeat}
	.md-pj-in{position:relative;inset:auto;display:flex;flex-direction:column;padding:0 6vw}
	.md-pj-in .md-ab,.md-pj-hsb{position:static;width:auto;height:auto}
	.md-pj-title{font-size:clamp(2.3rem,11vw,3.4rem);white-space:normal;line-height:1.05}
	.md-pj-rule{display:block;width:10vw;height:2px;margin:3vw 0 2vw}
	.md-pj-scope{white-space:normal;font-size:.62rem;letter-spacing:.14em}
	.md-pj-hline,.md-pj-vline,.md-pj-foot{display:none}
	.md-pj-panelwrap{margin-top:6vw;background:rgba(188,188,188,.55);-webkit-backdrop-filter:none;backdrop-filter:none}
	.md-pj-scroll{height:auto;overflow:visible;padding:4.5vw;-webkit-mask-image:none;mask-image:none}
	.md-pj-abouth{font-size:.8rem}.md-pj-prose{font-size:.74rem;line-height:1.35}
	.md-pj-big{margin-top:6vw;aspect-ratio:4/3;height:auto}
	.md-pj-thumbs{margin-top:4vw;gap:3vw;padding:0}
	.md-pj-t{flex:0 0 24vw;height:16vw}
	.md-pj-btns{order:9;flex-direction:row;justify-content:center;gap:4vw;margin-top:9vw;padding:0;background:none;border:0}
	.md-btn{border:1px solid #111;background:rgba(255,255,255,.85);color:#111;padding:.55rem 1.1rem;font-size:.8rem}
	.md-btn:hover,.md-btn:focus-visible{border-color:#111;translate:0 0}

	/* Other pages */
	.md-article{padding:2rem}
	.md-title{font-size:2.6rem}
}

/* Mobile only: one continuous image behind all six sections instead of six separate slices, so there
   is no seam between sections to begin with. Each section's own per-slice background is turned off
   (content:none removes the ::before entirely) and .md-bg-mobile paints the single tall image behind
   the whole flow, stretched to exactly match its total height. */
@media (max-width:900px){
	.md-sec::before{content:none!important}
	.md-bg-mobile{display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(../img/mobile-bg.avif) center top/100% 100% no-repeat;background-color:#f2f2f2}
}

/* Mobile only: background drift + keeping text off the black brush.
   The single tall image is drawn on a layer 75vw taller than the page at the top and bottom, and main.js moves
   that layer up/down with --by while the person scrolls (same effect as desktop, tuned for phones). The extra
   height at the bottom means that edge never shows; the top edge starts exactly at the top of the page, so the top of the image is visible on load. Desktop is untouched. */
@media (max-width:900px){
	/* The layer now reaches 80vw below the page (clipped by .md-flow), so the drift can continue all the way through the last section
	   without uncovering the page. The artwork keeps exactly the same size and position as before (it fills the top of the layer, page height minus 5vw);
	   the extra strip below it is solid black, which is the colour of the bottom of the artwork, so there is no visible join. */
	.md-bg-mobile{top:0vw;bottom:-80vw;background:url(../img/mobile-bg.avif) center top/100% calc(100% - 85vw) no-repeat;background-color:#f2f2f2;transform:translate3d(0,var(--by,0px),0);will-change:transform}
	.md-bg-mobile::after{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(85vw + 2px);background:#000}

	/* Hero: copy stays in the clear (white) left column, left of the brush. */
	.md-s1 .md-hero-copy{width:max-content;max-width:88vw;position:relative;left:0;top:0;margin:0}
	/* No white haze behind the first-screen heading, sub-text or Scroll cue on phones. */
	.md-s1 .md-hero-copy::before,.md-s1 .md-scrollcue::before{content:none}
	.md-s1 .md-h1,.md-s1 .md-hero-sub,.md-s1 .md-scrollcue .md-cap{text-shadow:none}
	/* Headline: exactly two lines (one per headline field), each kept on a single line and sized by screen width so it fits. */
	.md-s1 .md-h1{font-size:clamp(1.5rem,6vw,3rem);letter-spacing:-.045em;white-space:nowrap}
	/* Subtitle: exactly two lines (one per subtitle field, matching the headline above) — each line kept on a
	   single line so "Architecture and Experience Design" and "for Hospitality & Retail" don't wrap further. */
	.md-s1 .md-hero-sub{max-width:90vw;white-space:nowrap}
	.md-s1 .md-hero-sub{font-size:clamp(.6rem,3vw,.82rem);letter-spacing:.08em}
	.md-s1 .md-scrollcue{left:6vw;right:auto;align-items:flex-start}

	/* Everything that holds text further down sits on a near-solid light surface, so the black strokes show
	   between the blocks and never behind the words. */
	.md-svc-cap{background:rgba(176,176,176,.95)}
	.md-s2::after{background:rgba(255,255,255,.94)}
	.md-box{background:rgba(255,255,255,.94)}
	a.md-box:hover{background:rgba(255,255,255,.98)}
	.md-about-copy{background:rgba(255,255,255,.94)}
}

/* Mobile only: first screen matched to the approved mobile reference (desktop untouched). */
@media (max-width:900px){
	/* First screen fills at least the phone screen so the black liner sits at the very bottom of what is seen. */
	.md-s1{min-height:max(177.78vw,100vh);min-height:max(177.78vw,100svh);padding-top:calc(var(--hdr) + 20.5vw);padding-bottom:22vw}
	/* Headline: Bell MT, each line breaks after its first word (True / Experiences, Thoughtfully / Designed). */
	.md-s1 .md-h1{font-family:"Bell MT",Georgia,serif;font-weight:600;font-size:7.2vw;line-height:1.03;letter-spacing:-.05em;white-space:normal;color:#000}
	.md-s1 .md-ln{padding-bottom:0;margin-bottom:0}
	.md-s1 .md-ln>span{width:min-content}
	.md-s1 .md-ln+.md-ln{margin-top:.45em}
	.md-s1 .md-rule{width:7vw;height:3px;background:#000;margin:2vw 0 5vw}
	/* Subtitle: the typed desktop version is hidden; the four-word Helvetica list is shown. */
	.md-s1 .md-hero-sub{display:none}
	.md-s1 .md-hero-list{display:block;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-weight:400;font-size:2.68vw;line-height:1.75;letter-spacing:.2em;text-transform:uppercase;color:#000}
	.md-s1 .md-hero-list span{display:block}
	/* SCROLL: centred, with a dotted arrow pointing down underneath it. */
	.md-s1 .md-scrollcue{left:0;right:0;bottom:40vw;align-items:center;text-align:center}
	.md-s1 .md-scrollcue .md-cap{font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-size:3vw;font-weight:500;letter-spacing:.28em;padding-left:.28em;color:#000}
	.md-s1 .md-sl{width:5px;height:16vw;margin-top:2vw;overflow:visible;background:radial-gradient(circle,#000 .9px,transparent 1.2px) 50% 0/5px 5px repeat-y}
	.md-s1 .md-sl::after{animation:none;left:50%;top:auto;bottom:-3px;width:0;height:0;margin-left:-3.5px;background:none;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-top:6px solid #000;transform:none;opacity:1}
}

/* Mobile only: typewriter list + SCROLL sitting on a white patch. */
@media (max-width:900px){
	.md-js .md-s1 .md-hero-list[data-md-list]{visibility:hidden}
	.md-js .md-s1 .md-hero-list[data-md-list].md-type-on{visibility:visible}
	.md-s1 .md-hero-list .md-type-cursor{display:inline-block;height:1em;vertical-align:-.12em}
}

/* Mobile only: second screen laid out like the approved mobile slide (desktop untouched).
   A 70% white box sits behind the text part only (lead + Hospitality + Retail); the sketch strip below stays uncovered. */
@media (max-width:900px){
	.md-s2::after{content:none;display:none}
	.md-s2 .md-lead,.md-s2 .md-svc-col{background:rgba(255,255,255,.7)}
	.md-s2 .md-lead{padding:6vw 6vw 3vw;font-size:3.9vw;line-height:1.28;color:#222}
	.md-s2 .md-svc-col{padding:3vw 6vw 3vw;margin:0}
	.md-s2 .md-svc-c2{padding-bottom:7vw}
	/* Headings never taller than the firm name in the header (its capitals are 1.12rem high). */
	.md-s2 .md-svc-col h2{font-size:1.6rem;letter-spacing:.16em;line-height:1}
	.md-s2 .md-svc-rule{width:7vw;height:1px;background:#222;margin:2.6vw 0 3.4vw}
	.md-s2 .md-tags{font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-size:2.2vw;font-weight:400;letter-spacing:.22em;color:#222;margin-bottom:4vw;white-space:normal}
	/* Phone wording of the lists: the desktop lines are hidden, the phone lines shown. */
	.md-s2 .md-svc-col>.md-tl{display:none}
	.md-s2 .md-tl-m{display:block}
	.md-s2 .md-tl-m .md-tl{display:block;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-size:2.2vw;line-height:1.4;letter-spacing:.015em;text-transform:uppercase;color:#222;white-space:normal;margin-bottom:2.2vw}
	.md-s2 .md-tl-m .md-tl b{font-weight:700;color:#111}
	.md-s2 .md-tl-m .md-tl i{font-style:normal;margin:0 .35em}
	/* SCROLL under the sketch: left aligned, dotted line ending in a solid arrowhead. */
	.md-s2 .md-svc-hint{justify-content:flex-start;gap:5.5vw;margin:3vw 0 0;padding:0 0 0 8.6vw;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-size:3.1vw;font-weight:500;letter-spacing:.3em;color:#111}
	.md-s2 .md-svc-hint i{width:19.5vw;height:3px;background:radial-gradient(circle,#000 1.15px,transparent 1.5px) 0 50%/5px 5px repeat-x;animation:md-s2-hint-move 2s ease-in-out infinite;transform:none}
	.md-s2 .md-svc-hint i::after{right:-2px;top:50%;width:0;height:0;margin-top:-6px;border:0;border-left:12px solid #000;border-top:6px solid transparent;border-bottom:6px solid transparent;transform:none}
	/* Dots travel toward the arrowhead, looping every 3px (one dot-tile) for a seamless flow. */
	@keyframes md-s2-hint-move{0%,100%{transform:translateX(0);opacity:.45}50%{transform:translateX(7vw);opacity:1}}
}

/* Mobile only: keep the label text above the sketch, and put SCROLL right under it.
    The labels sit in the empty sky at the top of the sketch, so the strip has no extra top padding. */
@media (max-width:900px){
	.md-svc-pan{padding:0}
	/* SCROLL: pulled up into the empty bottom of the picture canvas, so it follows the drawing straight away. */
	.md-s2 .md-svc-hint{margin-top:-35vw;position:relative;z-index:2;pointer-events:none}
}

/* Mobile only: the sketch "Scroll" hint fades away once the drawing is swiped. */
@media (max-width:900px){
	.md-s2 .md-svc-hint{transition:opacity .4s ease}
	.md-s2 .md-svc-hint.md-gone{opacity:0}
}

@media (min-width:901px){
	.md-svc-art{top:27.4cqw}
}

/* Mobile: label text above the sketch a little smaller. */
@media (max-width:900px){
	.md-svc-pan .md-lab strong{font-size:2.2vw;line-height:1.3;margin-bottom:.15rem}
	.md-svc-pan .md-lab span{font-size:2.2vw;line-height:1.25}
}

/* Mobile only: Services (Hospitality / Retail / sketch) tightened so the whole section fits on one phone screen.
   Only the empty white gaps are reduced; text sizes, the sketch and its label leader lines are unchanged.
   Desktop is untouched. */
@media (max-width:900px){
	.md-s2{min-height:0;padding-top:calc(var(--hdr) + 1vw);padding-bottom:4vw}
	.md-s2 .md-lead{padding:2.5vw 6vw 1.5vw}
	.md-s2 .md-svc-col{padding:1.5vw 6vw 1vw}
	.md-s2 .md-svc-c2{padding-bottom:1vw}
	.md-s2 .md-svc-rule{margin:1.8vw 0 2.2vw}
	.md-s2 .md-tags{margin-bottom:2.2vw}
	.md-s2 .md-tl-m .md-tl{margin-bottom:1.2vw}
	/* sketch strip pulled up into the empty space under the Retail list (labels sit ~12vw below the strip's top) */
	.md-s2 .md-svc-m{margin-top:-6vw}
	.md-s2 .md-svc-pan{padding-bottom:0}
	.md-s2 .md-svc-hint{margin-top:-40vw}
}

/* Mobile only: Journal heading matches the Projects heading (same size, all capitals).
   Desktop is untouched. */
@media (max-width:900px){
	.md-s4-h{text-transform:uppercase;font-size:calc(1.7rem - 0.5mm)}
}

/* Mobile only: Projects and Journal each scroll inside their own box, so any number of projects / articles stays reachable.
   Touch scrolling inside a box moves only that list; when the list reaches its start or end, the page scrolls on (overscroll-behavior:auto),
   and a finger outside the boxes always scrolls the page. The bottom edge fades so it is clear there is more. Desktop is untouched. */
@media (max-width:900px){
	.md-s3-sc,.md-s4-sc{overflow-y:auto;overflow-x:hidden;overscroll-behavior:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none;-webkit-mask-image:linear-gradient(#000 0,#000 88%,transparent 100%);mask-image:linear-gradient(#000 0,#000 88%,transparent 100%)}
	.md-s3-sc::-webkit-scrollbar,.md-s4-sc::-webkit-scrollbar{display:none}
	.md-s3-sc{height:100vw}
	.md-s4-sc{height:86vw}
	.md-s3-sc .md-rows{padding-bottom:12vw}
}

/* Desktop + mobile: the bundled founder photo keeps the face inside the tall desktop crop. */
.md-photo .md-founder{object-position:30% 50%}

/* Mobile only: Founder section.
   - Name is the same size as the Projects heading, in capitals.
   - The white block behind the text is 70% white.
   - Photo is a round crop in its natural colours, placed slightly left of centre.
   Desktop is untouched. */
@media (max-width:900px){
	.md-s5 .md-name{font-family:"Bell MT",Georgia,serif;font-weight:400;text-transform:uppercase;font-size:calc(1.7rem - 0.5mm);letter-spacing:-.01em;line-height:1.1;white-space:nowrap;margin-bottom:.5rem}
	.md-s5 .md-about-copy{background:rgba(255,255,255,.7)}
	.md-s5 .md-photo{width:50vw;height:50vw;margin:6vw 0 0 14.5vw;border-radius:50%;box-shadow:0 1rem 2rem rgba(0,0,0,.2)}
	.md-s5 .md-photo img{border-radius:50%;filter:none}
	.md-s5 .md-photo-ph{border-radius:50%}
}

/* Mobile only: first-screen SCROLL cue sits a little higher. */
@media (max-width:900px){
	.md-s1 .md-scrollcue{bottom:21vw}
}

/* Mobile only: footer / contact laid out like the approved reference.
   The block is anchored to the bottom of the page, so the logo starts just under the brush curve and everything
   below it follows in order: logo, tagline, address / phone / email, "Have a project in mind? Let's talk." between
   two lines, then the social row. The copyright line is left out on phones for now. Desktop is untouched. */
@media (max-width:900px){
	.md-s6{justify-content:flex-end;padding:0 8vw 11.6vw}
	.md-ct-logo{order:1;width:60vw;margin:0 auto}
	.md-ct-mtag{order:2;margin:5.6vw 0 0;font-family:Helvetica,Arial,"Liberation Sans",sans-serif;font-weight:500;letter-spacing:0.5px;line-height:1.3;text-transform:none;color:#fff}
	.md-ct-mtag span{display:block}
	.md-ct-mtag span:first-child{font-size:2.8vw;text-transform:uppercase}
	.md-ct-mtag span:last-child{font-size:2.40vw}
	.md-ct-list{order:3;margin-top:5.2vw;font-size:2.5vw;line-height:3.2vw;letter-spacing:.02em}
	.md-ct-list li{gap:3.2vw;margin-bottom:2.2vw}
	.md-ct-list li:last-child{margin-bottom:0}
	.md-ct-list .md-ic{width:4.8vw;height:4.8vw}
	.md-ct-addr span{max-width:48vw}
	.md-ct-rule,.md-ct-copy{display:none}
	.md-ct-cta{order:4;display:block;width:62.6vw;margin:5.2vw auto 0;padding:2.6vw 0 2.2vw;border-top:1px solid rgba(255,255,255,.55);border-bottom:1px solid rgba(255,255,255,.55);text-align:center}
	.md-ct-cta1{font-size:2.3vw;letter-spacing:.2em;line-height:1.3}
	.md-ct-cta2{margin-top:.8vw;font-size:calc(1.7rem - 0.5mm);line-height:1.1;letter-spacing:.04em}
	.md-ct-social{order:5;margin-top:5.2vw;gap:3.4vw;font-size:2.6vw;letter-spacing:.04em}
	.md-ct-social .md-ic{width:4.8vw;height:4.8vw;stroke-width:1.5}
	.md-ct-social i{height:3vw}
}

/* Services labels: the last title (Signage and Wayfinding) is long, so it wraps onto two lines instead of running off the right edge of the drawing. */
.md-lab-7 strong{white-space:normal;max-width:8.5cqw}
@media (max-width:900px){
	.md-svc-pan .md-lab-7 span{font-size:2.2vw}
}
}

/* About accordion: points inside an answer (desktop + mobile). */
.md-about details ul.md-pts{list-style:disc;margin:.6rem 0 0;padding:0 0 0 1.3em;font-size:0.8rem;line-height:1.5;color:#444;letter-spacing: normal;}
.md-about details ul.md-pts li{display:list-item;margin:0 0 .35em;padding:0}

/* Mobile only: the project page has no site footer. Desktop keeps it. */
@media (max-width:900px){
	.md-pj ~ .md-foot{display:none}
}

/* Mobile only: project page fits one phone screen (nothing scrolls except the text box).
   After the title block, the free height is shared: text box 35%, pictures 50% (big image + thumbnails), buttons 15%. */
@media (max-width:900px){
	.md-pj{height:100vh;height:100svh;min-height:0;aspect-ratio:auto;padding:calc(var(--hdr) + 3vw) 0 3vw;overflow:hidden;display:flex;flex-direction:column}
	.md-pj-in{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,35fr) minmax(0,38fr) minmax(0,12fr) minmax(0,15fr);padding:0 6vw}
	/* Title: same size as the "Projects" heading on the previous screen. */
	.md-pj-title{grid-row:1;font-size:calc(1.7rem - 0.5mm);line-height:1.1;letter-spacing:-.01em;white-space:normal}
	.md-pj-rule{grid-row:2;margin:0.6vw 0 1.5vw}
	.md-pj-scope{grid-row:3}
	/* Text box: 35%, scrolls inside itself, with the scrollbar on its right edge. */
	.md-pj-in .md-pj-panelwrap{grid-row:4;position:relative;left:auto;top:auto;margin:3vw 0 0;min-height:0}
	.md-pj-scroll{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none;padding:3vw 8vw 3vw 3.5vw}
	.md-pj-scroll::-webkit-scrollbar{display:none}
	.md-pj-in .md-pj-panelwrap .md-pj-sbv{display:block;position:absolute;right:2.2vw;top:3vw;bottom:3vw;width:3vw}
	/* Pictures: 50% = big image 38 + thumbnails 12. */
	.md-pj-big{grid-row:5;margin:3vw 0 0;aspect-ratio:auto;height:auto;min-height:0}
	.md-pj-thumbs{grid-row:6;margin:0;padding:2vw 2vw;gap:3vw;min-height:0;align-items:stretch;background: rgba(188, 188, 188, .55);}
	.md-pj-t{flex:0 0 auto;height:100%;width:auto;aspect-ratio:3/2}
	/* Buttons: Back to projects + home icon, always visible at the bottom. */
	.md-pj-btns{grid-row:7;margin:0;align-self:center;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4vw}
	.md-btn.md-btn-home{position:relative;width:11vw;height:11vw;padding:0;font-size:0;overflow:hidden;color:transparent;border:0;background:none}
	.md-btn.md-btn-home::before{content:"";position:absolute;inset:0;margin:auto;width:7vw;height:7vw;background:#111;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E") center/contain no-repeat}
	.md-pj-btns::before{content:"";order:1;width:1px;height:7vw;background:#111}
	.md-pj-btns .md-btn:first-child{order:0}
	.md-pj-btns .md-btn-home{order:2}
}