:root{--navy:#14233a;--clay:#b9664f;--clay-dark:#8f4938;--cream:#f5f0e9;--white:#fffdf9;--ink:#1d2430;--muted:#6f746f;--line:#d7d0c7}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--white);color:var(--ink);font-family:"DM Sans",sans-serif}
a{color:inherit}button{font:inherit}
.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:17px 10vw;background:rgba(255,253,249,.95);backdrop-filter:blur(14px);border-bottom:1px solid rgba(20,35,58,.08)}
.brand{display:grid;place-items:center;width:46px;height:46px;text-decoration:none}
.brand img{display:block;width:38px;height:38px;object-fit:contain}
nav{display:flex;gap:30px}nav a{text-decoration:none;font-size:13px;font-weight:700;letter-spacing:.02em}
.hero{min-height:76vh;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);align-items:center;gap:8vw;padding:7vw 10vw 6vw;background:linear-gradient(90deg,var(--cream) 0 66%,var(--white) 66%)}
.eyebrow{margin:0 0 16px;color:var(--clay-dark);text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:800}
h1,h2,h3{font-family:"Manrope",sans-serif;margin:0}
h1{font-size:clamp(66px,8vw,116px);line-height:.84;letter-spacing:-.065em;color:var(--navy)}h1 span{color:var(--clay)}
.hero-text{max-width:610px;font-size:clamp(18px,1.8vw,23px);line-height:1.58;margin:30px 0 34px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 21px;border:1px solid var(--navy);text-decoration:none;font-weight:700;font-size:14px}
.btn.primary{background:var(--navy);color:#fff}.btn.secondary{background:transparent;color:var(--navy)}.btn.light{background:#fff;color:var(--navy);border-color:#fff}
.portrait-wrap{position:relative;width:min(100%,360px);justify-self:center}
.portrait-wrap img{width:100%;display:block;aspect-ratio:4/5;object-fit:cover;object-position:center 28%;position:relative;z-index:2}
.portrait-accent{position:absolute;inset:10% -9% -8% 16%;background:var(--clay);z-index:1}
.intro-strip{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:19px 10vw;background:var(--navy);color:#fff}.intro-strip p,.intro-strip span{margin:0}.intro-strip p{font-family:"Manrope",sans-serif;font-size:15px;font-weight:600;letter-spacing:.08em;line-height:1.35}.intro-strip span{color:#cbd0d8;font-size:13px;font-weight:500;letter-spacing:.02em}
.section{padding:120px 10vw}
h2{font-size:clamp(38px,4.6vw,66px);line-height:1.02;letter-spacing:-.045em;color:var(--navy)}
.about-section{background:var(--cream);display:grid;grid-template-columns:.8fr 1.2fr;gap:10vw;align-items:start}
.about-title{position:sticky;top:110px}
.about-copy>p{font-size:19px;line-height:1.78;margin:0 0 22px;max-width:760px}
.facts{margin-top:46px;display:grid;border-top:1px solid var(--line)}
.facts div{display:flex;justify-content:space-between;gap:20px;padding:19px 0;border-bottom:1px solid var(--line)}.facts span{color:var(--muted)}
.metrics{grid-template-columns:repeat(2,minmax(0,1fr));border-left:1px solid var(--line)}
.metrics div{min-height:145px;padding:24px 26px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;border-right:1px solid var(--line)}
.metrics strong{font-family:"Manrope",sans-serif;font-size:clamp(34px,4vw,58px);line-height:.95;letter-spacing:-.045em;color:var(--navy)}
.metrics span{max-width:240px;font-size:13px;line-height:1.35;text-transform:uppercase;letter-spacing:.1em;color:var(--clay-dark);font-weight:800;text-wrap:balance}.metrics span small{display:block;margin-top:5px;font-size:12px;line-height:1.35;letter-spacing:0;text-transform:none;color:var(--ink);font-weight:500}
.section-heading{display:grid;grid-template-columns:1fr .72fr;gap:70px;align-items:end;margin-bottom:58px}.section-note{color:var(--muted);line-height:1.75;max-width:500px;justify-self:end;margin:0}
.work-section{background:var(--white)}
.project-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px 24px}
.project-card{position:relative;appearance:none;border:1px solid var(--line);padding:0;overflow:hidden;aspect-ratio:4/5;background:var(--cream);cursor:pointer;text-align:left;transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}
.project-tile{position:absolute;inset:0 0 28% 0;height:72%;padding:24px;display:grid;place-items:center;overflow:hidden;transition:background .35s ease,color .35s ease}
.project-tile::after{content:"";position:absolute;width:72%;aspect-ratio:1;border:1px solid currentColor;border-radius:50%;opacity:.08;transform:scale(.85);transition:transform .6s cubic-bezier(.2,.7,.2,1),opacity .35s ease}
.project-number,.project-arrow{position:absolute;top:20px;font-family:"Manrope",sans-serif;font-size:11px;font-weight:800;letter-spacing:.16em;z-index:2}
.project-number{left:21px}.project-arrow{right:20px;font-size:17px;letter-spacing:0;transition:transform .35s ease}
.project-symbol{position:relative;z-index:2;width:35%;max-width:92px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.tile-cream .project-tile{background:var(--cream);color:var(--navy)}
.tile-navy .project-tile{background:var(--navy);color:var(--cream)}
.tile-clay .project-tile{background:var(--clay);color:var(--white)}
.project-overlay{position:absolute;z-index:2;left:0;right:0;bottom:0;height:28%;padding:19px 20px 20px;color:var(--navy);background:var(--cream);display:flex;flex-direction:column;justify-content:flex-end;border-top:1px solid var(--line);transition:background .35s ease}
.project-overlay span{display:block;margin-bottom:8px;text-transform:uppercase;letter-spacing:.16em;font-size:9px;font-weight:800;color:var(--clay-dark)}
.project-overlay strong{display:block;font-family:"Manrope",sans-serif;font-size:clamp(17px,1.35vw,22px);line-height:1.1}
.project-card:hover{transform:translateY(-6px);border-color:rgba(20,35,58,.38);box-shadow:0 18px 38px rgba(20,35,58,.12)}
.project-card:hover .project-symbol{transform:scale(1.09) rotate(-2deg)}
.project-card:hover .project-tile::after{transform:scale(1.02);opacity:.14}
.project-card:hover .project-arrow{transform:translate(3px,-3px)}
.project-card:hover .project-overlay{background:var(--white)}
.project-card:focus-visible{outline:3px solid rgba(185,102,79,.35);outline-offset:4px}
.resume-band{padding:76px 10vw;background:var(--clay);color:#fff;display:flex;align-items:end;justify-content:space-between;gap:30px}.resume-band .eyebrow{color:#f5ddd5}.resume-band h2{color:#fff;max-width:850px}
.contact-section{text-align:center}.contact-heading{display:block}.contact-section>p:not(.eyebrow){font-size:18px;color:var(--muted)}.contact-links{display:flex;justify-content:center;gap:30px;flex-wrap:wrap;margin-top:30px}.contact-links a{font-weight:700;text-decoration-thickness:2px;text-underline-offset:4px}
footer{display:flex;justify-content:center;align-items:center;padding:24px 10vw;background:var(--navy);color:#d6dbe1;font-size:13px;text-align:center}footer span{white-space:nowrap}
.lightbox{width:min(1100px,94vw);height:min(90vh,900px);border:0;padding:0;background:var(--white);color:var(--ink);overflow:hidden}.lightbox::backdrop{background:rgba(13,21,34,.86)}
.close{position:absolute;right:14px;top:12px;z-index:5;border:0;background:#fff;color:var(--navy);width:42px;height:42px;font-size:30px;line-height:1;cursor:pointer}.lightbox-head{padding:22px 70px 18px 26px;border-bottom:1px solid var(--line)}.lightbox-head p{margin:0 0 4px;color:var(--clay-dark);font-size:11px;text-transform:uppercase;letter-spacing:.14em;font-weight:800}.lightbox-head h3{font-size:clamp(22px,3vw,34px);color:var(--navy)}.lightbox-stage{height:calc(100% - 122px);display:grid;place-items:center;background:#ece8e2;overflow:auto}.lightbox-stage iframe{width:100%;height:100%;border:0;background:#fff}.lightbox-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain}.lightbox-stage video{display:block;background:#000}
.lightbox-stage.video-mode{padding:24px;background:#ded9d2;overflow:hidden}
.video-phone-frame{height:100%;max-height:100%;aspect-ratio:9/16;max-width:100%;display:grid;place-items:center;background:#000;border-radius:16px;overflow:hidden;box-shadow:0 18px 44px rgba(20,35,58,.22)}
.video-phone-frame video{width:100%;height:100%;object-fit:contain;background:#000}.lightbox-controls{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:rgba(20,35,58,.95);color:#fff}.lightbox-controls button{border:0;background:transparent;color:#fff;font-weight:700;cursor:pointer}.lightbox.has-controls .lightbox-stage{height:calc(100% - 170px)}
@media(max-width:1080px){.site-header{padding-left:7vw;padding-right:7vw}.project-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr .7fr;padding-left:7vw;padding-right:7vw}.section{padding-left:7vw;padding-right:7vw}.intro-strip,.resume-band,footer{padding-left:7vw;padding-right:7vw}}
@media(max-width:820px){.hero{grid-template-columns:1fr;padding-top:72px;background:var(--cream)}.portrait-wrap{width:min(68vw,340px);margin-top:34px;justify-self:start}.about-section{grid-template-columns:1fr}.about-title{position:static}.section-heading{grid-template-columns:1fr}.section-note{justify-self:start}}
@media(max-width:640px){.site-header{padding:14px 24px}nav{gap:14px}nav a:nth-child(3){display:none}.hero{padding:58px 24px 55px;min-height:auto}h1{font-size:66px}.section{padding:82px 24px}.project-grid{grid-template-columns:1fr;gap:18px}.intro-strip,.resume-band,footer{padding-left:24px;padding-right:24px}.intro-strip,.resume-band,footer{flex-direction:column;align-items:flex-start}.metrics{grid-template-columns:1fr}.metrics div{min-height:122px}.facts div{flex-direction:column;gap:6px}.lightbox{width:100vw;height:100vh;max-height:none}.lightbox-stage{height:calc(100% - 115px)}.lightbox.has-controls .lightbox-stage{height:calc(100% - 160px)}}

@media(max-width:620px){.intro-strip{align-items:flex-start;flex-direction:column;gap:8px}.intro-strip p{font-size:14px;letter-spacing:.07em}.intro-strip span{font-size:12px}}

@media(max-width:640px){.lightbox-stage.video-mode{padding:16px 12px}.video-phone-frame{border-radius:12px}}

/* Compact editorial project cards on phones */
@media(max-width:640px){
  .project-grid{grid-template-columns:1fr;gap:14px}
  .project-card{aspect-ratio:auto;height:158px;min-height:0}
  .project-tile{inset:0 auto 0 0;width:38%;height:100%;padding:16px}
  .project-tile::after{width:76%}
  .project-number{top:14px;left:15px;font-size:9px}
  .project-arrow{top:12px;right:14px;font-size:15px}
  .project-symbol{width:42%;max-width:54px}
  .project-overlay{left:38%;right:0;top:0;bottom:0;width:auto;height:100%;padding:18px 17px;border-top:0;border-left:1px solid var(--line);justify-content:center}
  .project-overlay span{margin-bottom:7px;font-size:8px;line-height:1.25}
  .project-overlay strong{font-size:17px;line-height:1.12}
  .project-card:hover{transform:none;box-shadow:none}
}

@media(max-width:380px){
  .project-card{height:146px}
  .project-tile{width:36%}
  .project-overlay{left:36%;padding:15px 14px}
  .project-overlay strong{font-size:16px}
}

/* Refined mobile contact section */
@media(max-width:640px){
  .contact-section{padding-top:64px;padding-bottom:64px}
  .contact-heading{display:block}
  .contact-heading h2{font-size:34px;line-height:1;margin:0;white-space:nowrap}
  .contact-section>p:not(.eyebrow){font-size:14px;line-height:1.45;margin-top:20px}
  .contact-links{margin-top:24px;gap:22px;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap}
  .contact-links a{font-size:14px;line-height:1.2;white-space:nowrap}
  footer{font-size:12px;padding-top:22px;padding-bottom:22px;flex-direction:row;align-items:center;justify-content:center}footer span{white-space:nowrap}
}

@media(max-width:380px){
  .contact-heading h2{font-size:30px}
  .contact-section>p:not(.eyebrow){font-size:13px}
  .contact-links{gap:14px}
  .contact-links a{font-size:13px}
}

/* Mobile hero and navigation refinement */
.menu-toggle{display:none;border:0;background:transparent;width:44px;height:44px;padding:9px;cursor:pointer;color:var(--navy)}
.menu-toggle span{display:block;height:2px;background:currentColor;margin:5px 0;transition:transform .25s ease,opacity .2s ease}

@media(max-width:640px){
  .site-header{min-height:72px;padding:12px 22px}
  .brand{width:42px;height:42px}
  .brand img{width:36px;height:36px}
  .menu-toggle{display:block;position:relative;z-index:31}
  .site-header nav{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;gap:0;padding:10px 22px 18px;background:rgba(255,253,249,.99);border-bottom:1px solid rgba(20,35,58,.1);box-shadow:0 14px 26px rgba(20,35,58,.08)}
  .site-header nav.is-open{display:flex}
  .site-header nav a{display:block;padding:13px 2px;font-size:14px;border-bottom:1px solid rgba(20,35,58,.08)}
  .site-header nav a:last-child{border-bottom:0}
  .site-header nav a:nth-child(3){display:block}
  .menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  .menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .hero{padding:46px 24px 42px;gap:0}
  .eyebrow{font-size:10px;letter-spacing:.15em;margin-bottom:14px}
  h1{font-size:62px;line-height:.86}
  .hero-text{font-size:17px;line-height:1.48;margin:26px 0 26px;max-width:34rem}
  .hero-actions{gap:10px;flex-wrap:nowrap}
  .btn{min-height:46px;padding:0 19px;font-size:13px}
  .portrait-wrap{width:min(86vw,360px);margin:34px auto 0;justify-self:center}
  .portrait-accent{inset:8% -6% -5% 14%}
}

@media(max-width:380px){
  .hero{padding-left:20px;padding-right:20px}
  h1{font-size:56px}
  .hero-text{font-size:16px}
  .btn{padding:0 16px}
  .portrait-wrap{width:min(88vw,330px)}
}

/* v18: compact, balanced mobile hero */
@media(max-width:640px){
  .hero{
    padding:44px 24px 38px;
  }

  .hero-copy{
    width:100%;
  }

  .hero .eyebrow{
    font-size:13px;
    letter-spacing:.11em;
    margin-bottom:20px;
    white-space:nowrap;
  }

  .hero h1{
    font-size:clamp(46px,13.5vw,58px);
    line-height:.96;
    letter-spacing:-.055em;
    white-space:nowrap;
  }

  .hero h1 br{
    display:none;
  }

  .hero h1 span::before{
    content:" ";
  }

  .hero-text{
    font-size:16px;
    line-height:1.5;
    margin:24px 0 24px;
    max-width:34rem;
  }

  .hero-actions{
    margin-bottom:0;
  }

  .portrait-wrap{
    width:176px;
    height:176px;
    margin:30px auto 0;
    border-radius:50%;
    overflow:visible;
  }

  .portrait-wrap img{
    width:176px;
    height:176px;
    aspect-ratio:1;
    border-radius:50%;
    object-fit:cover;
    object-position:center 27%;
    border:6px solid var(--cream);
    box-shadow:0 0 0 2px var(--clay);
  }

  .portrait-accent{
    width:52px;
    height:52px;
    inset:auto -12px 5px auto;
    border-radius:50%;
  }
}

@media(max-width:380px){
  .hero .eyebrow{
    font-size:11.5px;
    letter-spacing:.085em;
  }

  .hero h1{
    font-size:43px;
  }

  .portrait-wrap,
  .portrait-wrap img{
    width:158px;
    height:158px;
  }
}


/* v19: final mobile hero composition refinements */
.mobile-positioning{display:none}

@media(max-width:640px){
  .hero{
    padding-bottom:34px;
  }

  .hero .eyebrow{
    letter-spacing:.085em;
  }

  .portrait-wrap{
    width:164px;
    height:164px;
    margin:18px auto 0;
  }

  .portrait-wrap img{
    width:164px;
    height:164px;
    border:0;
    box-shadow:0 10px 28px rgba(20,35,58,.11);
  }

  .portrait-accent{
    width:46px;
    height:46px;
    right:-5px;
    bottom:10px;
    left:auto;
    top:auto;
    z-index:1;
  }

  .portrait-wrap img{
    z-index:2;
  }

  .mobile-positioning{
    display:block;
    width:100%;
    margin-top:24px;
    padding-top:18px;
    border-top:1px solid rgba(20,35,58,.13);
  }

  .mobile-positioning p{
    margin:0;
    max-width:31rem;
    color:var(--navy);
    font-size:13px;
    line-height:1.45;
    font-weight:700;
    letter-spacing:.045em;
    text-transform:uppercase;
  }

  .mobile-positioning span{
    display:block;
    margin-top:7px;
    color:var(--muted);
    font-size:12px;
    font-weight:600;
  }

  .intro-strip{
    display:none;
  }
}

@media(max-width:380px){
  .portrait-wrap,
  .portrait-wrap img{
    width:150px;
    height:150px;
  }

  .mobile-positioning p{
    font-size:12px;
  }
}

/* v20: centered mobile hero with compact portrait */
.hero-copy{grid-column:1;grid-row:1}
.portrait-wrap{grid-column:2;grid-row:1}

@media(max-width:640px){
  .hero{
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  .portrait-wrap{
    order:1;
    width:142px;
    height:142px;
    margin:0 auto 34px;
    justify-self:auto;
  }

  .portrait-wrap img{
    width:142px;
    height:142px;
    border:0;
    box-shadow:0 12px 30px rgba(20,35,58,.14);
  }

  .portrait-accent{
    display:none;
  }

  .hero-copy{
    order:2;
    width:100%;
    text-align:center;
  }

  .hero .eyebrow{
    text-align:center;
  }

  .hero h1{
    text-align:center;
  }

  .hero-text{
    margin-left:auto;
    margin-right:auto;
    text-align:center;
    max-width:31rem;
  }

  .hero-actions{
    justify-content:center;
    align-items:center;
  }

  .hero-actions .btn{
    min-height:42px;
    padding:0 17px;
    font-size:12.5px;
  }

  .mobile-positioning{
    display:none !important;
  }

  .intro-strip{
    display:none;
  }
}

@media(max-width:380px){
  .portrait-wrap,
  .portrait-wrap img{
    width:128px;
    height:128px;
  }

  .hero-actions .btn{
    padding:0 14px;
  }
}

/* v21: approved mobile section balance refinements */
@media(max-width:640px){
  /* Differentiate the opening section from the white content sections. */
  .hero{
    background:#f3f4f2;
    padding-top:38px;
    padding-bottom:46px;
  }

  /* Keep the compact centered composition from v20. */
  .portrait-wrap{
    margin-bottom:28px;
  }

  .hero .eyebrow{
    margin-bottom:16px;
  }

  .hero-text{
    margin-top:20px;
    margin-bottom:22px;
    line-height:1.46;
  }

  /* Tighten the transition into the project grid. */
  .work-section{
    padding-top:68px;
    padding-bottom:72px;
  }

  .section-heading{
    gap:26px;
    margin-bottom:36px;
  }

  .section-note{
    line-height:1.55;
  }

  /* Make the résumé band more compact and use the right side for balance. */
  .resume-band{
    padding-top:54px;
    padding-bottom:54px;
    gap:24px;
  }

  .resume-band h2{
    font-size:clamp(34px,10vw,48px);
    line-height:1.02;
  }

  .resume-band .btn{
    align-self:flex-end;
  }
}

/* v22: final mobile refinements */
@media(max-width:640px){
  /* Return the opening section to the site's warm editorial neutral. */
  .hero{
    background:var(--cream);
  }

  /* Tighten the About label-to-heading relationship. */
  .about-title .eyebrow{
    margin-bottom:10px;
  }

  /* Present career highlights as a compact 2 x 2 mobile grid. */
  .metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-top:1px solid var(--line);
  }

  .metrics div{
    min-height:132px;
    padding:20px 18px;
    justify-content:center;
    gap:10px;
    border-bottom:1px solid var(--line);
  }

  .metrics strong{
    font-size:clamp(34px,10vw,46px);
    line-height:.92;
  }

  .metrics span{
    font-size:11px;
    line-height:1.3;
    letter-spacing:.085em;
  }

  .metrics span small{
    margin-top:4px;
    font-size:10.5px;
    line-height:1.3;
  }

  /* Keep the résumé CTA visually anchored to the final line of the headline. */
  .resume-band{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:22px;
  }

  .resume-band .btn{
    align-self:end;
    justify-self:end;
    margin-bottom:1px;
    white-space:nowrap;
  }
}

@media(max-width:430px){
  .metrics div{
    min-height:124px;
    padding:18px 14px;
  }

  .metrics strong{
    font-size:clamp(31px,9.5vw,41px);
  }

  .resume-band{
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
  }

  .resume-band h2{
    font-size:clamp(30px,9vw,40px);
  }

  .resume-band .btn{
    min-height:42px;
    padding:0 15px;
    font-size:12px;
  }
}

/* v23: clearer mobile separation between hero and About */
@media(max-width:640px){
  .hero{
    background:var(--cream);
  }

  .about-section{
    background:#ffffff;
    border-top:1px solid rgba(21,38,55,.08);
  }
}

/* v24: tighten the mobile About section rhythm */
@media(max-width:640px){
  .about-section{
    padding-top:58px;
    padding-bottom:68px;
    gap:20px;
  }

  .about-title .eyebrow{
    margin-bottom:8px;
  }

  .about-title h2{
    margin-bottom:0;
  }

  .about-copy>p{
    font-size:16px;
    line-height:1.62;
    margin-bottom:18px;
  }

  .about-copy>p:first-child{
    margin-top:0;
  }

  .facts{
    margin-top:30px;
  }
}

/* v25: stronger mobile contrast for the portfolio section */
@media(max-width:640px){
  .work-section{
    background:#efe6da;
  }

  .work-section .section-note{
    color:#3f4546;
  }

  .work-section .section-heading{
    padding-bottom:30px;
    margin-bottom:30px;
    border-bottom:1px solid rgba(20,35,58,.14);
  }
}


/* v26: simplify mobile project affordances and strengthen tan-card contrast */
.mobile-project-hint{display:none}

@media(max-width:640px){
  .mobile-project-hint{
    display:block;
    margin:-14px 0 22px;
    color:#5b5d5a;
    font-size:13px;
    line-height:1.4;
    font-weight:500;
  }

  .project-arrow{display:none}

  .project-card{
    border-color:#c9bdae;
  }

  .tile-cream .project-tile,
  .tile-cream .project-overlay{
    background:#faf6f0;
  }

  .tile-cream .project-tile::after{
    opacity:.16;
  }

  .tile-cream .project-number,
  .tile-cream .project-symbol{
    color:var(--navy);
  }

  .project-overlay{
    border-left-color:#c9bdae;
  }
}

/* v28: balance mobile supporting copy to prevent orphaned final words */
@media(max-width:640px){
  .work-section .section-note,
  .contact-section>p:not(.eyebrow){
    text-wrap:balance;
  }

  .work-section .section-note{
    max-width:34ch;
  }

  .contact-section>p:not(.eyebrow){
    max-width:35ch;
    margin-left:auto;
    margin-right:auto;
  }
}

/* v29: natural mobile paragraph wrapping without forced balanced lines */
@media(max-width:640px){
  .work-section .section-note,
  .contact-section>p:not(.eyebrow){
    text-wrap:pretty;
  }

  .work-section .section-note{
    max-width:none;
    width:100%;
  }

  .contact-section>p:not(.eyebrow){
    max-width:38ch;
  }
}

.mobile-line-break{display:none}
@media(max-width:640px){.mobile-line-break{display:inline}}

/* v32: preserve the approved desktop portrait; tighten only the mobile circular crop */
@media(max-width:640px){
  .portrait-wrap{
    border-radius:50%;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(20,35,58,.14);
  }

  .portrait-wrap img{
    object-position:center 25%;
    transform:scale(1.06);
    box-shadow:none;
  }
}


/* v38: circular back-to-top control on desktop and mobile */
body{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}

main{
  flex:1 0 auto;
}

footer{
  position:relative;
  flex:0 0 auto;
  justify-content:center;
  min-height:92px;
}

.back-to-top{
  position:absolute;
  right:10vw;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.58);
  border-radius:50%;
  color:#fff;
  font-size:24px;
  line-height:1;
  font-weight:500;
  text-decoration:none;
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible{
  background:#fff;
  color:var(--navy);
  transform:translateY(-50%) translateY(-2px);
  outline:none;
}

@media(max-width:1080px){
  .back-to-top{right:7vw}
}

@media(max-width:640px){
  footer{
    min-height:98px;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    padding:22px 78px 22px 24px;
  }

  .back-to-top{
    right:24px;
    width:44px;
    height:44px;
    font-size:22px;
  }
}

/* v39: floating back-to-top button on desktop and mobile */
footer{
  min-height:92px;
  padding-right:10vw;
  padding-left:10vw;
}

.back-to-top{
  position:fixed;
  right:28px;
  bottom:28px;
  top:auto;
  z-index:1200;
  transform:translateY(12px);
  background:var(--navy);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 8px 22px rgba(20,35,58,.2);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible{
  transform:translateY(-2px);
}

@media(max-width:1080px){
  .back-to-top{right:24px}
}

@media(max-width:640px){
  footer{
    min-height:98px;
    padding:22px 24px;
  }

  .back-to-top{
    right:18px;
    bottom:calc(18px + env(safe-area-inset-bottom));
  }
}

/* v41: balance desktop intro strip typography */
@media (min-width: 641px){
  .intro-strip span{
    font-size:15px;
    line-height:1.35;
  }
}
