@font-face{font-family:Display;src:url('/assets/display.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:Body;src:url('/assets/body.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}

:root{
  --green:#173b2b;--green-deep:#102a20;--green-mid:#1f4a37;
  --coral:#f1917a;--coral-deep:#d8735c;--cream:#f6efdf;--cream-deep:#ebe2cc;--lemon:#ffd60a;
  --ink:#173b2b;--ink-soft:#3f5247;--mist:#c9d1bf;--line:rgba(246,239,223,.22);--line-ink:rgba(23,59,43,.18);
  --body:Body,Arial,sans-serif;--display:Display,'Arial Narrow',Impact,sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);--gutter:clamp(20px,4.5vw,72px);
  --z-sticky:10;--z-dialog:50;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px;scrollbar-gutter:stable}
body{margin:0;background:var(--green);color:var(--cream);font-family:var(--body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid currentColor;outline-offset:5px;border-radius:2px}
img{max-width:100%;display:block}
h1,h2,h3,p,ul,ol,dl,dd{margin:0}
h1,h2{font-family:var(--display);font-weight:700;line-height:.88;letter-spacing:-.02em;text-wrap:balance}
h3{font-weight:600;line-height:1.15;letter-spacing:-.02em}
em{font-style:normal;color:var(--coral)}
.skip{position:fixed;left:20px;top:-100px;z-index:100;background:var(--cream);color:var(--green);padding:14px}
.skip:focus{top:12px}

/* Header */
.header{padding:26px var(--gutter) 10px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.wordmark{font-size:15px;font-weight:bold;line-height:1.05;letter-spacing:-.04em}
.header nav{display:flex;gap:clamp(18px,3vw,36px);font-size:14px}
.header nav a{padding:10px 0;position:relative}
.header nav a::after{content:'';position:absolute;left:0;right:0;bottom:6px;height:1px;background:var(--coral);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.header nav a:hover::after{transform:scaleX(1)}
.header nav sup{font-size:11px;color:var(--coral);margin-left:2px}

/* Pills and links */
.pill{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;padding:16px 24px;border-radius:60px;font-size:15px;line-height:1;transition:background .3s var(--ease),color .3s var(--ease),transform .3s var(--ease)}
.pill span{font-size:20px;line-height:1}
.pill.coral{background:var(--coral);color:var(--green)}
.pill.small{padding:11px 16px;font-size:13px;gap:12px}
.pill.small span{font-size:15px}
.pill.outline{border:1px solid var(--line)}
.text-link{display:inline-flex;gap:22px;align-items:center;padding:7px 0;border-bottom:1px solid currentColor;font-size:15px;white-space:nowrap;transition:gap .3s var(--ease)}
.text-link:hover{gap:32px}
.text-link span{font-size:20px;line-height:1}
.coral-link{color:var(--coral)}

/* Hero */
.hero{padding:22px var(--gutter) 30px}
.hero-kicker,.section-top{display:flex;justify-content:space-between;gap:20px;font-size:12px;letter-spacing:.07em}
.hero-kicker{color:var(--mist);padding-bottom:26px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:clamp(24px,4vw,64px);align-items:center}
.hero h1{color:var(--coral);font-size:clamp(84px,11.5vw,196px);line-height:.8;letter-spacing:-.02em}
.hero-line{display:block}
.asterisk{font-family:Arial,sans-serif;font-weight:400;font-size:.28em;vertical-align:top;display:inline-block;margin:.12em 0 0 .18em;color:var(--cream)}
.roles{text-wrap:balance;margin-top:26px;font-size:clamp(15px,1.4vw,19px);letter-spacing:.01em;color:var(--cream)}
.roles b{color:var(--coral);font-weight:400;padding:0 .35em}
.lede{margin-top:16px;font-size:clamp(16px,1.35vw,19px);line-height:1.55;color:var(--mist);max-width:44ch;text-wrap:pretty}
.hero-actions{display:flex;align-items:center;gap:28px;margin-top:30px;flex-wrap:wrap}
.hero-foot{display:flex;justify-content:space-between;gap:20px;margin-top:36px;font-size:12px;letter-spacing:.07em;color:var(--mist)}

.entered .hero h1 .hero-line{animation:rise .7s var(--ease) both}
.entered .hero h1 .hero-line:nth-child(2){animation-delay:.08s}
.entered .roles,.entered .lede,.entered .hero-actions{animation:rise .7s var(--ease) both .2s}
@keyframes arrive{from{opacity:0;transform:translateY(28px) scale(.98)}to{opacity:1;transform:none}}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

/* Sections */
.section{padding:clamp(60px,7vw,96px) var(--gutter) clamp(70px,8vw,110px)}
.section-top{padding-bottom:clamp(28px,4vw,44px)}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:clamp(36px,5vw,64px)}
.section-heading h2{font-size:clamp(56px,7.4vw,124px)}
.section-heading p{font-size:16px;max-width:30ch;color:var(--ink-soft);text-wrap:pretty}
.work{background:var(--cream);color:var(--ink)}
.work .section-heading h2 em{color:#5f6f47}

/* Projects */
.project{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.9fr);grid-template-areas:'visual info';gap:clamp(28px,5vw,80px);align-items:center;padding:clamp(40px,5vw,72px) 0;border-top:1px solid var(--line-ink)}
.project-visual{grid-area:visual}
.project-info{grid-area:info}
.project.flip{grid-template-columns:minmax(300px,.9fr) minmax(0,1.25fr);grid-template-areas:'info visual'}
.project:first-of-type{border-top:0;padding-top:0}
.project-visual{background:#aab78d;border-radius:8px;padding:clamp(18px,3vw,44px)}
.project-visual.dark{background:#1b2632}
.project:nth-of-type(3) .project-visual{background:#e9cbb8}
.shot{position:relative;display:block;width:100%;border-radius:6px;overflow:visible;transform:rotate(-2deg);transition:transform .6s var(--ease)}
.project.flip .shot{transform:rotate(2deg)}
.shot:hover,.shot:focus-visible{transform:rotate(0) scale(1.015)}
.shot img{width:100%;height:auto;border-radius:6px;box-shadow:0 22px 44px #173b2b33}
.shot-open{position:absolute;right:-14px;bottom:-14px;width:54px;height:54px;border-radius:50%;background:var(--green);color:var(--cream);display:grid;place-items:center;font-size:26px;transition:transform .4s var(--ease),background .3s}
.shot:hover .shot-open{transform:translate(4px,-4px);background:var(--coral);color:var(--green)}
.project-head{display:grid;grid-template-columns:auto 1fr;gap:6px 18px;align-items:baseline}
.num{font-family:var(--display);font-size:clamp(40px,4vw,64px);line-height:1;color:var(--coral-deep);grid-row:1/3}
.project h3{font-size:clamp(28px,3vw,46px);letter-spacing:-.035em;line-height:1}
.what{grid-column:2;font-size:16px;line-height:1.55;color:var(--ink-soft);max-width:42ch;text-wrap:pretty}
.did{margin-top:26px;padding:0;list-style:none;border-top:1px solid var(--line-ink)}
.did li{padding:12px 0 12px 28px;border-bottom:1px solid var(--line-ink);position:relative;font-size:15.5px;line-height:1.5;max-width:52ch}
.did li::before{content:'';position:absolute;left:0;top:14px;width:19px;height:19px;background:url('/assets/flower-of-life.webp') center/contain no-repeat;border-radius:50%}
.meta{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:22px}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tags i{font-style:normal;font-size:12px;letter-spacing:.03em;padding:6px 10px;border:1px solid var(--line-ink);border-radius:30px}
.status{font-size:12px;letter-spacing:.03em;padding:7px 11px;border-radius:30px}
.status.pending{background:var(--cream-deep);color:var(--ink-soft)}
.status.live{background:var(--green);color:var(--cream)}
.status.live:hover{background:var(--coral);color:var(--green)}
.project .text-link{margin-top:26px}

/* This site aside */
.this-site{margin-top:clamp(40px,5vw,72px);display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:clamp(24px,4vw,64px);align-items:center;background:var(--coral);border-radius:8px;padding:clamp(22px,3vw,44px)}
.type-composition{font-family:var(--display);font-size:clamp(60px,9.5vw,150px);line-height:.8;letter-spacing:-.02em;color:var(--green)}
.type-composition>span{display:block}
.type-composition>span:nth-child(2){text-align:right;margin:8px 0}
.outline-type{-webkit-text-stroke:1.5px var(--green);color:transparent}
.composition-flower{display:inline-block;width:.55em;height:.55em;object-fit:contain;margin-left:.08em;vertical-align:top;-webkit-mask:url('/assets/flower-silhouette.svg') center/contain no-repeat;mask:url('/assets/flower-silhouette.svg') center/contain no-repeat}
.this-site-copy{color:var(--green)}
.this-site-copy h3{font-size:clamp(24px,2.4vw,34px)}
.this-site-copy p{margin-top:14px;line-height:1.55;max-width:40ch;text-wrap:pretty}
.this-site-copy .text-link{margin-top:22px}

/* About */
.about{background:var(--green-deep)}
.about-grid{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);gap:clamp(32px,7vw,110px);align-items:center}
.about h2{font-size:clamp(52px,7vw,120px)}
.about-copy p{font-size:clamp(16px,1.3vw,18px);line-height:1.6;max-width:56ch;margin-top:28px;text-wrap:pretty}
.about-copy .muted{color:var(--mist);margin-top:14px}
.about-copy .text-link{margin-top:30px}

/* Approach */
.approach h2{font-size:clamp(50px,6.8vw,112px);margin:10px 0 44px}
.approach-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.approach-list li{display:grid;grid-template-columns:72px 1fr;gap:20px;border-bottom:1px solid var(--line);padding:30px 0;align-items:start}
.approach-list li>span{font-family:var(--display);font-size:34px;line-height:1;color:var(--coral)}
.approach-list li>div{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;align-items:start}
.approach-list h3{font-size:clamp(24px,2.8vw,38px);letter-spacing:-.035em}
.approach-list p{color:var(--mist);max-width:48ch;line-height:1.55;text-wrap:pretty}
.pipeline{margin-top:48px;border:1px solid var(--line);border-radius:6px}
.pipeline summary{cursor:pointer;padding:20px 24px;display:flex;justify-content:space-between;list-style:none;font-size:15px}
.pipeline summary::-webkit-details-marker{display:none}
.pipeline summary span{font-size:24px;line-height:1;transition:transform .35s var(--ease)}
.pipeline[open] summary span{transform:rotate(45deg)}
.pipeline-grid{padding:0 24px 24px;display:grid;grid-template-columns:repeat(3,1fr);gap:25px}
.pipeline-grid>div{border-top:1px solid var(--line);padding-top:20px}
.pipeline-grid span{font-size:12px;color:var(--coral);letter-spacing:.03em}
.pipeline-grid h3{font-size:22px;margin:14px 0}
.pipeline-grid p{font-size:14px;color:var(--mist);line-height:1.5}

/* Contact */
.contact{background:var(--coral);color:var(--green);padding-bottom:50px}
.contact h2{font-size:clamp(110px,22vw,340px);position:relative;line-height:.82}
.contact h2 em{color:var(--green);padding-left:18vw}
.contact h2>span{font-family:Arial,sans-serif;position:absolute;right:1vw;top:.05em;font-size:.6em;font-weight:400}
.contact-bottom{display:flex;justify-content:space-between;gap:40px;align-items:flex-end;margin-top:50px}
.contact-bottom p{font-size:20px;line-height:1.3}
.contact-bottom p span{font-size:14px}
.pending-links{display:flex;gap:40px}
.pending-links button{display:flex;flex-direction:column;align-items:flex-start;padding:10px 0;border-bottom:1px solid #173b2b80;font-size:18px}
.pending-links span{font-size:12px;opacity:.75;margin-top:8px}
footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px var(--gutter);font-size:12px;letter-spacing:.035em}
footer button{font-size:12px;padding:6px 0;border-bottom:1px solid #f6efdf55}

/* Dialog */
dialog{border:0;background:var(--cream);color:var(--green);padding:30px;max-width:720px;width:calc(100% - 32px);max-height:85svh;border-radius:8px;box-shadow:0 24px 100px #0005;z-index:var(--z-dialog)}
dialog::backdrop{background:#071c14c4}
.dialog-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;border-bottom:1px solid #173b2b40;padding-bottom:16px;margin-bottom:25px}
.close-dialog{font-size:32px;line-height:1;width:44px;height:44px}
dialog h2{font-size:clamp(44px,7vw,70px);margin-bottom:24px}
dialog p{margin:15px 0;line-height:1.65}
dialog h3{font-size:21px;margin-top:25px}
dialog ul{padding-left:22px}
dialog li{margin-bottom:8px}
dialog .dialog-status{font-size:12px;letter-spacing:.035em;background:#dde2cf;padding:12px}
dialog a{text-decoration:underline}

/* Scroll reveals: visible by default, animated only when JS confirms observer support and motion is allowed */
.js .reveal:not(.in){opacity:0;transform:translateY(26px)}
.js .reveal{transition:opacity .8s var(--ease),transform .8s var(--ease)}
.js .reveal.in{opacity:1;transform:none}
.js .project.reveal .project-visual{transition:transform .9s var(--ease) .05s;transform:translateY(18px)}
.js .project.reveal.in .project-visual{transform:none}

/* Responsive */
@media(max-width:1100px){
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr)}
  .approach-list li>div{grid-template-columns:1fr}
}
@media(max-width:880px){
  .hero-grid{grid-template-columns:1fr;gap:36px}
  .hero h1{font-size:clamp(84px,17vw,150px)}
  .project,.project.flip{grid-template-columns:1fr;grid-template-areas:'visual' 'info';gap:28px}
  .this-site{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr;gap:40px}
  .pipeline-grid{grid-template-columns:1fr}
  .section-heading{flex-direction:column;align-items:flex-start;gap:16px}
}
@media(max-width:650px){
  :root{--gutter:6vw}
  .header{padding:20px var(--gutter) 8px}
  .header nav{gap:16px;font-size:13px}
  .header nav a:nth-child(3){display:none}
  .pill.small{padding:9px 12px;font-size:12px;gap:8px}
  .pill.small span{font-size:13px}
  .hero{overflow-x:clip}

  .wordmark{font-size:13px}
  .hero-kicker span:last-child{display:none}
  .hero h1{font-size:clamp(64px,20vw,110px)}
  .roles{font-size:clamp(.65625rem,3.28vw,.875rem);margin-top:20px;white-space:nowrap;letter-spacing:0}
  .roles b{padding:0 .15em}
  .lede{font-size:16px}
  .hero-actions{gap:20px;margin-top:24px}
  .pill{padding:14px 18px;font-size:14px;gap:16px}
  .hero-foot{flex-direction:column;gap:8px;margin-top:28px}
  .section-heading h2{font-size:14vw}
  .project{padding:36px 0}
  .project-visual{padding:14px}
  .shot-open{width:42px;height:42px;right:-8px;bottom:-10px}
  .shot-arrow{width:22px;height:22px}
  .project h3{font-size:30px}
  .num{font-size:38px}
  .what{font-size:15px}
  .did li{font-size:15px}
  .meta{flex-direction:column;align-items:flex-start}
  .type-composition{font-size:17vw}
  .about h2{font-size:17vw}
  .approach h2{font-size:13vw}
  .approach-list li{grid-template-columns:44px 1fr;gap:14px;padding:24px 0}
  .approach-list li>span{font-size:26px}
  .approach-list h3{font-size:26px}
  .pipeline summary{padding:17px;font-size:13px}
  .pipeline-grid{padding:0 17px 20px}
  .contact h2{font-size:31vw}
  .contact h2 em{padding-left:14vw}
  .contact h2>span{right:0;top:.1em}
  .contact-bottom{display:block;margin-top:30px}
  .pending-links{margin-top:25px;gap:20px;justify-content:space-between}
  .pending-links button{font-size:16px;min-width:72px}
  footer{flex-wrap:wrap;gap:14px}
  footer button{order:3;width:100%;text-align:left}
  dialog{padding:20px}
}
@media(max-width:350px){.header nav a:nth-child(2){display:none}
.header nav{gap:12px}
.header{gap:12px}}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js .reveal{opacity:1;transform:none}
}

/* Desmond's selected revision. */
:root{--header-height:88px;--strip-height:64px}
.header{min-height:var(--header-height);padding-top:16px;padding-bottom:16px}
.header nav a:focus-visible::after{transform:scaleX(1)}
.hero{min-height:calc(100svh - var(--header-height) - var(--strip-height));display:flex;flex-direction:column;justify-content:center;gap:0;padding-bottom:32px}
.hero-grid{flex:1}
.hero h1{font-size:clamp(84px,min(11.5vw,22vh),196px)}
.project.flip .shot:hover,.project.flip .shot:focus-visible,.shot:hover,.shot:focus-visible{transform:rotate(0) scale(1.015)}
.shot:focus-visible .shot-open{transform:translate(4px,-4px);background:var(--coral);color:var(--green)}


.portrait-mask{width:100%;overflow:hidden;border-radius:6%;animation:portrait-shape 8s ease-in-out infinite}
.portrait-mask img{border-radius:0;box-shadow:none;aspect-ratio:1;object-fit:cover}
@keyframes portrait-shape{0%,18%,100%{border-radius:6%}25%,43%{border-radius:45% 45% 12% 12%}50%,68%{border-radius:50%}75%,93%{border-radius:12% 45% 12% 45%}}
.contact-heading-link{display:block;position:relative;padding-bottom:.04em}
.contact-title-words{display:block;transform-origin:left center;transition:transform .4s var(--ease),text-shadow .4s var(--ease)}
.contact-heading-link>.contact-arrow{position:absolute;right:1vw;top:.05em;width:.6em;height:.6em;transform-origin:center;transition:transform .4s var(--ease)}
.contact-heading-link:is(:hover,:focus-visible)>.contact-arrow{transform:translate(4px,-4px) rotate(45deg) scale(1.05)}
.contact-heading-link:is(:hover,:focus-visible) .contact-title-words{transform:translateY(-5px) scale(1.015);text-shadow:3px 4px 0 #f6efdf88}
.contact-links{display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.contact-email{background:var(--green);color:var(--cream);min-width:180px}
.email-address{font-size:15px;text-underline-offset:5px;overflow-wrap:anywhere}
.email-address:hover{text-decoration:underline}
.contact-bottom p span{display:inline-block;max-width:40ch;margin-top:8px;line-height:1.6}
.project-dialog-heading{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:22px}
.project-dialog-heading h2{margin:0}
.project-dialog-heading .live-site{font-size:14px;flex-shrink:0;text-decoration:none}
.project-dialog-heading .live-site:hover{background:var(--green);color:var(--cream)}
.dialog-top{position:sticky;top:-30px;background:var(--cream);z-index:2;margin-top:-4px}
.reveal.in{animation:section-arrival .75s var(--ease) both}
@keyframes section-arrival{from{opacity:.65;translate:0 18px}to{opacity:1;translate:0 0}}
@media(max-width:880px){.hero-grid{flex:initial}
.hero h1{font-size:clamp(84px,17vw,150px)}
.hero{min-height:auto}
}
@media(max-width:650px){:root{--header-height:76px;--strip-height:56px}
.header{gap:12px}
.header nav{gap:14px}
.header nav a:last-child{display:none}
.header .pill{font-size:12px;gap:8px;padding:10px 12px;white-space:nowrap}
.hero{padding-bottom:32px}
.hero h1{font-size:clamp(64px,20vw,110px)}
.contact-links{align-items:flex-start;margin-top:26px}
.contact-heading-link>.contact-arrow{right:0}
.email-address{font-size:14px}
.dialog-top{top:-20px}
.project-dialog-heading h2{font-size:clamp(36px,9.5vw,52px)}
.project-dialog-heading{gap:14px}
.project-dialog-heading .live-site{padding:13px 17px}}
@media(prefers-reduced-motion:reduce){.reveal.in{animation:none}
.portrait-mask{border-radius:6%}}

/* Selected polish: original ornament and button structure. */
.hero-flower{display:inline-block;width:.47em;height:.47em;object-fit:contain;vertical-align:top;margin:-.015em 0 0 .1em;border-radius:50%}
.pill .pill-label{font:inherit;line-height:inherit}
.shimmer-pill{position:relative;overflow:hidden;isolation:isolate}
.shimmer-pill>*{position:relative;z-index:1}
.cta-arrow{flex:none;transform-origin:center;transition:transform .38s var(--ease)}
.contact-pill:is(:hover,:focus-visible) .cta-arrow{transform:rotate(45deg) scale(1.14)}
.contact-email{min-width:0;gap:12px;padding:15px 22px;justify-content:center}
.header .cta-arrow{width:18px;height:18px}
.pill:focus-visible{border-radius:60px}

/* Fable pass: Builds With strip, entry shimmer, flower turn. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Buttons: the sweep is a one-shot animation on entry, so it plays while the pointer is on the button and replays on re-entry. */
.pill{transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease),transform .3s var(--ease),box-shadow .3s var(--ease)}
.shimmer-pill::after{content:'';position:absolute;inset:0 auto 0 -30%;width:55%;z-index:0;pointer-events:none;background:linear-gradient(105deg,transparent 22%,#ffffff2e 40%,#ffffffb8 50%,#ffffff2e 60%,transparent 78%);transform:translateX(-220%) skewX(-14deg)}
.shimmer-pill:is(:hover,:focus-visible)::after{animation:pill-sweep .7s cubic-bezier(.35,0,.2,1) forwards}
@keyframes pill-sweep{from{transform:translateX(-220%) skewX(-14deg)}to{transform:translateX(360%) skewX(-14deg)}}
.pill.coral:is(:hover,:focus-visible){background:var(--coral);color:var(--green);transform:translateY(-2px);box-shadow:0 10px 26px #08160f59}
.pill.outline:is(:hover,:focus-visible){background:#f6efdf14;color:var(--cream);border-color:var(--cream);transform:translateY(-2px)}
.contact-email:is(:hover,:focus-visible){background:var(--green);color:var(--cream);transform:translateY(-2px);box-shadow:0 10px 26px #7a3d2c4d}
.pill:active{transform:translateY(0)}

/* Flower of life: a smooth half turn on hover, driven by app.js so it always turns forward. */
.hero-flower{transition:transform 1.3s var(--ease);will-change:transform}

/* Builds With strip: fixed label, marks paired with their names, seamless loop. */
.bw{position:relative;display:flex;align-items:center;gap:clamp(16px,2.6vw,34px);height:var(--strip-height);padding-left:var(--gutter);border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden}
.bw__label{flex:none;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--coral);white-space:nowrap}
.bw__viewport{position:relative;flex:1;min-width:0;height:100%;display:flex;align-items:center;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 90%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 90%,transparent 100%)}
.bw__track{display:flex;align-items:center;width:max-content;animation:bw-scroll var(--bw-dur,24s) linear infinite;user-select:none}
.bw__group{display:flex;align-items:center;flex:none}
.bw__item{flex:none;display:inline-flex;align-items:center;gap:10px;padding:0 clamp(15px,2.3vw,28px);font-size:15px;line-height:1.4;color:var(--cream);white-space:nowrap}
.bw__mark{display:block;flex:none;object-fit:contain}
@keyframes bw-scroll{from{transform:translateX(0)}to{transform:translateX(var(--bw-shift,-50%))}}

@media(max-width:650px){.bw{gap:14px}
.bw__label{font-size:10px;letter-spacing:.14em}
.bw__item{font-size:14px;gap:8px;padding:0 14px}
.bw__viewport{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 86%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 86%,transparent 100%)}}
@media(prefers-reduced-motion:reduce){.shimmer-pill::after{display:none}
.bw__track{animation:none}
.bw__viewport{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
.bw__group+.bw__group{display:none}}

/* Portrait pass: the animated polo portrait anchors the hero; About is a short personal introduction with the family polaroid. */
.hero-portrait{width:min(100%,clamp(220px,calc(100svh - 300px),440px));aspect-ratio:1;margin-left:auto;justify-self:end}
.hero-portrait .portrait-mask{width:100%;overflow:hidden;border-radius:6%;background:var(--lemon);animation:portrait-shape 8s ease-in-out infinite;box-shadow:0 26px 60px #05120b66}
.hero-portrait img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center 20%}
.entered .hero-portrait{animation:arrive .9s var(--ease) both .15s}

.about-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:clamp(32px,7vw,110px);align-items:center}
.about-copy p+p{margin-top:16px}
.about-family{display:flex;justify-content:center}
.polaroid{margin:0;width:min(100%,340px);background:#fbf7ee;color:var(--green);padding:14px 14px 18px;border-radius:4px;box-shadow:0 24px 54px #05120b66;transform:rotate(-3deg)}
.polaroid img{display:block;width:100%;height:auto;border-radius:2px}
.polaroid-caption{padding-top:14px;font-family:var(--display);font-size:26px;line-height:1;letter-spacing:.01em;text-align:center}

@media(max-width:880px){.hero-portrait{width:min(100%,300px);margin:14px auto 0;justify-self:center}.about-grid{grid-template-columns:1fr;gap:36px}.polaroid{width:min(100%,300px)}}
@media(max-width:650px){.hero-portrait{width:min(100%,280px)}}
@media(prefers-reduced-motion:reduce){.hero-portrait .portrait-mask{border-radius:6%}}

/* Arrows turn horizontal on hover everywhere: text links, the footer preview button, the Open the tool pill and the dialog live-site pill. */
.arrow-link .cta-arrow{flex:none;transform-origin:center;transition:transform .38s var(--ease)}
.arrow-link:is(:hover,:focus-visible) .cta-arrow{transform:rotate(45deg) scale(1.14)}
.text-link.arrow-link{gap:16px}
.text-link.arrow-link:is(:hover,:focus-visible){gap:22px}
.status.arrow-link{display:inline-flex;align-items:center;gap:7px}
footer button.arrow-link{display:inline-flex;align-items:center;gap:6px}
.project-dialog-heading .live-site{gap:14px;padding:15px 22px}
.project-dialog-heading .live-site:is(:hover,:focus-visible){background:var(--coral);color:var(--green)}

/* Tighter pairing: the hero copy and portrait, and the About copy and polaroid, sit closer so the eye does not travel across empty space. The work section is untouched. */
@media(min-width:881px){
  .hero-grid{grid-template-columns:auto minmax(280px,min(440px,40vw));justify-content:start;gap:clamp(56px,10.5vw,160px)}
  .hero-portrait{width:min(100%,clamp(220px,calc(100svh - 300px),440px));margin-left:0;justify-self:start}
  .about-grid{grid-template-columns:auto minmax(280px,380px);justify-content:start;gap:clamp(56px,10.5vw,160px)}
  .about-family{justify-content:start}
  .polaroid{width:min(100%,380px)}
}

/* The original polaroid carries its own frame and lettering, so it gets only the tilt and a drop shadow that follows its edges. */
.polaroid-original{background:none;padding:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 22px 26px #05120b8c)}

/* About pair sits a little in from the left on wide screens; the gap between copy and polaroid is unchanged. */
@media(min-width:881px){.about-grid{margin-left:clamp(0px,(100vw - 1100px) * .22,72px)}}

/* Hero pair is inset the same way on wide screens; the gap between copy and portrait is unchanged. */
@media(min-width:881px){.hero-grid{margin-left:clamp(0px,(100vw - 1100px) * .16,64px)}}


/* Codex final review: project numbers deepened one step so they clear 3:1 on cream (3.41:1); the rest of the palette is unchanged. */
.num{color:#c9634c}

/* Optional analytics uses the existing palette; the page remains usable without it. */
.analytics-choice{position:fixed;z-index:50;bottom:16px;right:16px;width:min(410px,calc(100% - 32px));padding:18px 20px;background:var(--cream,#f6efdf);color:var(--green,#173b2b);border:1px solid currentColor;border-radius:16px;box-shadow:0 8px 28px #0002;font-size:14px;line-height:1.5}
.analytics-choice[hidden]{display:none}
.analytics-choice p{margin:0 0 12px}
.analytics-choice>div{display:flex;flex-wrap:wrap;gap:10px}
.analytics-choice button{font:inherit;padding:7px 12px;border:1px solid currentColor;border-radius:30px;color:inherit;background:transparent;cursor:pointer}
.analytics-choice button:hover,.analytics-choice button:focus-visible{background:#173b2b;color:#f6efdf}
