:root{
  --ink:#0b0f0d;
  --ink-2:#151b18;
  --paper:#f4f3ed;
  --paper-2:#e9e7de;
  --green:#21b769;
  --green-dark:#118149;
  --yellow:#f3c523;
  --muted:#6b746f;
  --line:rgba(11,15,13,.16);
  --radius:24px;
  --shadow:0 24px 70px rgba(0,0,0,.16);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55;overflow-x:hidden}
body.modal-open{overflow:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit}
img{max-width:100%;display:block}



.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.section-pad{padding:110px 0}
.grain{position:fixed;inset:0;pointer-events:none;opacity:.05;z-index:99;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E")}
.site-header{position:sticky;top:0;z-index:50;background:rgba(244,243,237,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(11,15,13,.08)}
.nav-wrap{height:76px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:-.03em}
.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--ink);color:var(--yellow);display:grid;place-items:center;font-size:13px;letter-spacing:.02em}
.brand-text{font-size:18px}
.primary-nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:700}
.primary-nav a{position:relative;padding:8px 0}
.primary-nav a:after{content:"";position:absolute;left:0;right:100%;bottom:3px;height:2px;background:var(--green);transition:.25s ease}
.primary-nav a:hover:after{right:0}
.menu-toggle{display:none;border:0;background:none;padding:8px}
.menu-toggle span{display:block;width:24px;height:2px;background:var(--ink);margin:5px 0}
.hero{min-height:calc(100vh - 76px);display:flex;align-items:center;position:relative;background:
linear-gradient(rgba(11,15,13,.04) 1px,transparent 1px),
linear-gradient(90deg,rgba(11,15,13,.04) 1px,transparent 1px),
var(--paper);background-size:48px 48px}
.hero:after{content:"";position:absolute;right:-12vw;top:-18vw;width:58vw;height:58vw;border-radius:50%;background:var(--green);opacity:.12;filter:blur(1px)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center;position:relative;z-index:1}
.eyebrow,.kicker{font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--green-dark)}
.hero h1{font-size:clamp(56px,7.5vw,112px);line-height:.87;letter-spacing:-.075em;margin:22px 0 28px;max-width:850px}
.hero h1 span{color:var(--green-dark)}
.hero-lead{font-size:20px;max-width:680px;color:#48504c;margin:0 0 34px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:14px 22px;font-weight:850;border:1px solid transparent;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--ink);color:white;box-shadow:0 12px 30px rgba(0,0,0,.12)}
.btn-ghost{border-color:var(--line);background:rgba(255,255,255,.38)}
.btn-small{padding:11px 16px;font-size:13px}
.hero-meta{display:flex;gap:24px;flex-wrap:wrap;margin-top:34px;color:var(--muted);font-size:13px;font-weight:700}
.hero-meta span{display:flex;align-items:center;gap:8px}
.hero-meta span:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 4px rgba(243,197,35,.2)}
.hero-visual{position:relative;min-height:600px;display:grid;place-items:center}
.profile-card{width:min(420px,90%);background:var(--ink);padding:14px;border-radius:30px;transform:rotate(2.5deg);box-shadow:var(--shadow);position:relative;z-index:2}
.profile-photo-wrap{height:490px;border-radius:22px;overflow:hidden;background:#d2d0c7}
.profile-photo-wrap img{width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.profile-card-copy{padding:18px 8px 8px;color:white;display:flex;justify-content:space-between;align-items:end;gap:20px}
.profile-card-copy strong{font-size:18px}
.profile-card-copy span{font-size:12px;color:#abb2ae;text-align:right}
.floating-tag{position:absolute;z-index:3;background:var(--yellow);border:2px solid var(--ink);border-radius:999px;padding:10px 16px;font-size:12px;font-weight:900;box-shadow:8px 8px 0 var(--ink)}
.tag-one{left:2%;top:17%;transform:rotate(-8deg)}
.tag-two{right:2%;top:29%;transform:rotate(8deg)}
.tag-three{left:7%;bottom:18%;transform:rotate(5deg)}
.ticker{background:var(--yellow);border-block:2px solid var(--ink);overflow:hidden;white-space:nowrap}
.ticker-track{display:inline-flex;gap:28px;align-items:center;padding:14px 0;min-width:max-content;animation:ticker 26s linear infinite;font-size:12px;font-weight:950;letter-spacing:.12em}
@keyframes ticker{to{transform:translateX(-50%)}}
.two-col{display:grid;grid-template-columns:.9fr 1.1fr;gap:90px;align-items:start}
.section-heading h2{font-size:clamp(42px,5vw,72px);line-height:1;letter-spacing:-.055em;margin:18px 0 0}
.section-heading.compact{max-width:720px}
.about-section{background:var(--paper-2)}
.about-copy{font-size:18px;color:#3f4743}
.about-copy p{margin-top:0;margin-bottom:22px}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:40px}
.stats-grid div{border-top:1px solid var(--line);padding-top:18px}
.stats-grid strong{display:block;font-size:34px;letter-spacing:-.04em;color:var(--ink)}
.stats-grid span{font-size:12px;color:var(--muted)}
.services-section{background:var(--ink);color:white}
.services-section .kicker{color:#69d99d}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:54px}
.service-card{border:1px solid rgba(255,255,255,.14);background:#111714;border-radius:var(--radius);overflow:hidden;min-height:100%;transition:transform .25s ease,border-color .25s ease}
.service-card:hover{transform:translateY(-7px);border-color:rgba(105,217,157,.5)}
.service-card img{width:100%;height:210px;object-fit:cover;background:#ddd}
.service-card-body{padding:26px}
.service-index{color:#69d99d;font-size:12px;font-weight:900;letter-spacing:.12em}
.service-card h3{font-size:28px;margin:9px 0 12px;letter-spacing:-.04em}
.service-card p{color:#aab2ae;margin:0;font-size:14px}
.projects-section{background:var(--paper)}
.projects-head{display:flex;gap:30px;align-items:end}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.filter-btn{border:1px solid var(--line);background:transparent;border-radius:999px;padding:9px 15px;font-weight:800;cursor:pointer}
.filter-btn.active,.filter-btn:hover{background:var(--ink);color:white}
.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:54px}
.project-card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;min-height:100%;transition:transform .25s ease,box-shadow .25s ease}
.project-card:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(0,0,0,.09)}
.project-card.hidden{display:none}
.project-card.featured{grid-column:1/-1;display:grid;grid-template-columns:1.05fr .95fr}
.project-media{position:relative;min-height:350px;background:#e5e4de;overflow:hidden}
.project-media img{width:100%;height:100%;object-fit:cover}
.compare-media{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--ink);min-height:520px}
.compare-panel{position:relative;background:#d8d7d0;overflow:hidden}
.compare-panel img{object-fit:cover}
.compare-panel span{position:absolute;left:16px;top:16px;background:var(--ink);color:white;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:900;letter-spacing:.1em}
.project-card.featured .project-body{display:flex;flex-direction:column;justify-content:center;padding:48px}
.project-body{padding:28px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.project-meta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}
.project-meta span{font-size:10px;letter-spacing:.1em;font-weight:900;border:1px solid var(--line);border-radius:999px;padding:6px 9px;color:#545d58}
.project-body h3{font-size:28px;line-height:1.08;letter-spacing:-.04em;margin:0 0 14px}
.project-card.featured h3{font-size:42px}
.project-body p{color:#606964;margin:0 0 24px;font-size:14px}
.project-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:auto}
.text-link{border:0;background:none;padding:0;font-weight:900;cursor:pointer;color:var(--green-dark);text-align:left}
.phone-media{background:linear-gradient(145deg,#d7d5cc,#f4f2eb);display:grid;place-items:center;padding:28px}
.phone-media img{width:auto;height:100%;max-height:420px;object-fit:contain;filter:drop-shadow(0 22px 35px rgba(0,0,0,.2))}
.dark-media{background:#161a18}
.play-overlay{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:74px;height:74px;border-radius:50%;border:1px solid rgba(255,255,255,.5);background:rgba(11,15,13,.64);color:white;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(5px);transition:.2s ease}
.play-overlay:hover{transform:translate(-50%,-50%) scale(1.08);background:var(--green-dark)}
.play-overlay span{margin-left:4px}
.artwork-media{background:#efeee8}
.artwork-media img{object-fit:contain;padding:24px}
.workflow-section{background:var(--yellow);border-block:2px solid var(--ink)}
.workflow-section .kicker{color:#5e4c00}
.workflow-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:50px}
.workflow-step{background:rgba(255,255,255,.45);border:1px solid rgba(11,15,13,.18);padding:24px;border-radius:18px;min-height:230px}
.workflow-step>span{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--ink);color:var(--yellow);font-weight:900;font-size:12px}
.workflow-step h3{font-size:22px;margin:20px 0 8px}
.workflow-step p{font-size:13px;margin:0;color:#4d450f}
.tools-section{background:var(--paper-2)}
.tools-wrap{display:grid;gap:30px}
.tool-group{border-top:1px solid var(--line);padding-top:18px}
.tool-group h3{margin:0 0 14px;font-size:16px}
.chips{display:flex;flex-wrap:wrap;gap:9px}
.chips span{background:white;border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-size:13px;font-weight:750}
.contact-section{background:var(--paper)}
.contact-card{background:var(--green-dark);color:white;border-radius:34px;padding:60px;display:grid;grid-template-columns:1.25fr .75fr;gap:60px;align-items:center;box-shadow:var(--shadow);position:relative;overflow:hidden}
.contact-card:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(255,255,255,.22);border-radius:50%;right:-110px;top:-150px;box-shadow:0 0 0 60px rgba(255,255,255,.03),0 0 0 120px rgba(255,255,255,.02)}
.contact-card .kicker{color:#b9f3d2}
.contact-card h2{font-size:clamp(38px,4vw,62px);line-height:1;letter-spacing:-.05em;margin:18px 0}
.contact-card p{color:#cae9d7;max-width:760px}
.contact-actions{display:flex;flex-direction:column;gap:10px;position:relative;z-index:2}
.btn-light{background:white;color:var(--green-dark)}
.btn-outline-light{border-color:rgba(255,255,255,.35);color:white}
.site-footer{background:var(--ink);color:#aeb7b2;padding:26px 0;font-size:13px}
.footer-inner{display:flex;justify-content:space-between;gap:20px}
.media-modal{border:0;padding:0;background:transparent;width:min(1100px,92vw);max-width:none}
.media-modal::backdrop{background:rgba(0,0,0,.82);backdrop-filter:blur(5px)}
.video-frame-wrap{aspect-ratio:16/9;background:#000;border-radius:20px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.5)}
.video-frame-wrap iframe{width:100%;height:100%;border:0}
.modal-close{position:fixed;right:24px;top:20px;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.24);background:rgba(0,0,0,.6);color:white;font-size:30px;cursor:pointer;z-index:5}
.image-modal{width:min(900px,92vw)}
.image-modal-body{background:white;border-radius:20px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.image-modal-body img{width:100%;max-height:76vh;object-fit:contain;background:#f2f1eb}
.image-modal-body h3{margin:0;padding:18px 22px;font-size:18px}
.reveal{opacity:0;transform:translateY(22px);transition:opacity .65s ease,transform .65s ease}
.reveal.visible{opacity:1;transform:none}
@media (max-width:980px){
  .section-pad{padding:82px 0}
  .hero-grid,.two-col,.contact-card{grid-template-columns:1fr}
  .hero-grid{gap:30px}
  .hero-visual{min-height:510px}
  .profile-card{width:min(390px,78vw)}
  .profile-photo-wrap{height:400px}
  .two-col{gap:38px}
  .service-grid{grid-template-columns:1fr 1fr}
  .project-card.featured{grid-template-columns:1fr}
  .project-card.featured .project-body{padding:30px}
  .workflow-grid{grid-template-columns:repeat(2,1fr)}
  .contact-actions{flex-direction:row;flex-wrap:wrap}
}
@media (max-width:720px){
  .container{width:min(100% - 28px,1180px)}
  .section-pad{padding:68px 0}
  .menu-toggle{display:block}
  .primary-nav{position:absolute;left:14px;right:14px;top:70px;background:var(--ink);color:white;border-radius:18px;padding:18px;display:none;flex-direction:column;align-items:stretch;gap:6px;box-shadow:var(--shadow)}
  .primary-nav.open{display:flex}
  .primary-nav a{padding:12px 10px}
  .hero{min-height:auto;padding-top:78px}
  .hero h1{font-size:56px}
  .hero-lead{font-size:17px}
  .hero-visual{min-height:450px}
  .floating-tag{font-size:10px;padding:8px 12px;box-shadow:5px 5px 0 var(--ink)}
  .stats-grid,.service-grid,.project-grid,.workflow-grid{grid-template-columns:1fr}
  .projects-head{align-items:flex-start;flex-direction:column}
  .project-card.featured{display:flex}
  .compare-media{min-height:440px}
  .project-card.featured h3{font-size:31px}
  .project-media{min-height:320px}
  .contact-card{padding:34px 24px;border-radius:24px;gap:30px}
  .footer-inner{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
}

/* Direct video portfolio */
.direct-video-media{min-height:520px}
.direct-video-frame{width:min(72%,310px);aspect-ratio:9/16;background:#050505;border-radius:30px;overflow:hidden;box-shadow:0 24px 55px rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.2)}
.direct-video-frame iframe,.compare-video-shell iframe{width:100%;height:100%;border:0;display:block;background:#000}
.direct-compare .compare-panel{display:grid;place-items:center;padding:46px 22px 24px;min-width:0}
.compare-video-shell{width:min(88%,280px);aspect-ratio:9/16;background:#050505;border-radius:28px;overflow:hidden;box-shadow:0 24px 55px rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.18)}
.direct-compare .compare-panel span{z-index:2}
.direct-note{font-weight:800;color:var(--green-dark)!important;margin-top:2px!important}
@media (max-width:900px){
  .direct-video-media{min-height:480px}
  .direct-video-frame{width:min(70%,290px)}
  .direct-compare{grid-template-columns:1fr 1fr!important;min-height:500px}
  .compare-video-shell{width:min(92%,250px)}
}
@media (max-width:640px){
  .direct-compare{grid-template-columns:1fr!important;gap:1px;min-height:auto}
  .direct-compare .compare-panel{min-height:520px}
  .compare-video-shell{width:min(74%,270px)}
  .direct-video-frame{width:min(74%,280px)}
}


/* Revision: centered Selected Projects heading */
.projects-head-centered{
  justify-content:center;
  text-align:center;
}
.projects-head-centered .section-heading{
  width:min(900px,100%);
  margin-inline:auto;
}
.projects-head-centered .section-heading h2{
  margin-inline:auto;
}

/* Revision: keep 72 Hours Before/After, but use the same direct-video treatment
   as the Health Explainer and Affiliate projects. */
.project-card.featured.sleep-featured{
  display:flex;
  flex-direction:column;
}
.sleep-featured .direct-compare{
  width:100%;
  grid-template-columns:repeat(2,minmax(0,1fr));
  min-height:590px;
}
.sleep-featured .direct-compare .compare-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:58px 28px 30px;
}
.sleep-featured .direct-compare .compare-panel > span{
  top:18px;
  left:50%;
  transform:translateX(-50%);
  white-space:nowrap;
}
.sleep-featured .compare-player{
  width:min(78%,310px);
  margin-inline:auto;
}
.sleep-featured .project-body{
  width:min(900px,100%);
  margin-inline:auto;
  text-align:center;
  align-items:center;
  padding:38px 48px 46px;
}
.sleep-featured .project-meta{
  justify-content:center;
}
.sleep-featured .project-body p{
  max-width:760px;
}
.sleep-featured .direct-note{
  margin-top:8px;
}

@media (max-width:820px){
  .sleep-featured .direct-compare{
    min-height:520px;
  }
  .sleep-featured .compare-player{
    width:min(82%,270px);
  }
}
@media (max-width:620px){
  .projects-head-centered{
    text-align:center;
    align-items:center;
  }
  .sleep-featured .direct-compare{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .sleep-featured .direct-compare .compare-panel{
    min-height:520px;
    padding:58px 20px 28px;
  }
  .sleep-featured .compare-player{
    width:min(76%,270px);
  }
  .sleep-featured .project-body{
    padding:30px 24px 36px;
  }
}


/* Revision: phone mockup styling for all direct video players */
.direct-video-frame,
.compare-video-shell{
  position:relative;
  width:min(76%,320px);
  aspect-ratio:9/18.6;
  padding:10px;
  background:linear-gradient(180deg,#2b2d30 0%,#0a0b0d 35%,#14171a 100%);
  border-radius:38px;
  overflow:visible;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 20px 40px rgba(0,0,0,.22),
    0 8px 18px rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
}
.direct-video-frame iframe,
.compare-video-shell iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#000;
  border-radius:29px;
  position:relative;
  z-index:1;
}
.direct-video-frame::before,
.compare-video-shell::before{
  content:"";
  position:absolute;
  top:6px;
  left:50%;
  transform:translateX(-50%);
  width:78px;
  height:14px;
  border-radius:0 0 12px 12px;
  background:linear-gradient(180deg,#121416,#070809);
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.08), 0 1px 1px rgba(255,255,255,.04);
  z-index:3;
  pointer-events:none;
}
.direct-video-frame::after,
.compare-video-shell::after{
  content:"";
  position:absolute;
  inset:11px;
  border-radius:28px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09), inset 0 1px 18px rgba(255,255,255,.05);
  pointer-events:none;
  z-index:2;
}
.direct-video-media{min-height:560px}
.phone-media.direct-video-media{padding:34px}
.sleep-featured .compare-player{width:min(82%,320px)}
.sleep-featured .direct-compare .compare-panel{padding:52px 24px 28px}
@media (max-width:900px){
  .direct-video-frame,
  .compare-video-shell{width:min(78%,300px)}
  .direct-video-media{min-height:520px}
  .sleep-featured .compare-player{width:min(84%,300px)}
}
@media (max-width:640px){
  .direct-video-frame,
  .compare-video-shell{width:min(78%,286px)}
  .direct-video-media{min-height:480px}
  .sleep-featured .compare-player{width:min(76%,286px)}
}


/* Revision: center the yellow ticker row */
.ticker{
  display:flex;
  justify-content:center;
}
.ticker-track{
  width:100%;
  max-width:1180px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:28px;
  padding:14px 24px;
  min-width:0;
  animation:none;
  text-align:center;
  flex-wrap:wrap;
}
@media (max-width:720px){
  .ticker-track{
    gap:16px;
    letter-spacing:.08em;
    padding:12px 16px;
  }
}

/* =========================================================
   FINAL OVERRIDE — GOOGLE DRIVE PORTRAIT VIDEO PHONE MOCKUP
   Google Drive iframe is the source of truth (9:16).
   The phone shell only wraps the player and never resizes it
   into a custom 9:18.6 device ratio.
   ========================================================= */

/* Use one clean phone shell around every Google Drive player. */
.direct-video-frame,
.compare-video-shell,
.sleep-featured .compare-player{
  position:relative !important;
  display:block !important;
  width:min(320px,72vw) !important;
  max-width:100% !important;
  aspect-ratio:9 / 16 !important;
  height:auto !important;
  padding:6px !important;
  margin-inline:auto !important;
  background:#0b0d0f !important;
  border:1px solid rgba(255,255,255,.16) !important;
  border-radius:30px !important;
  overflow:hidden !important;
  box-shadow:0 18px 38px rgba(0,0,0,.24) !important;
  transform:none !important;
}

/* Remove the old decorative notch/glass layers.
   They were designed for a taller mockup and interfered with
   the Google Drive player on narrow screens. */
.direct-video-frame::before,
.direct-video-frame::after,
.compare-video-shell::before,
.compare-video-shell::after,
.sleep-featured .compare-player::before,
.sleep-featured .compare-player::after{
  content:none !important;
  display:none !important;
}

/* Google Drive player fills the usable phone screen exactly. */
.direct-video-frame iframe,
.compare-video-shell iframe,
.sleep-featured .compare-player iframe{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  aspect-ratio:9 / 16 !important;
  border:0 !important;
  border-radius:24px !important;
  background:#000 !important;
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
}

/* The media area follows the player; no forced tall empty box. */
.direct-video-media,
.phone-media.direct-video-media{
  min-height:0 !important;
  height:auto !important;
}

.phone-media.direct-video-media{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:32px 24px !important;
}

/* BEFORE / AFTER desktop layout stays side-by-side. */
.sleep-featured .direct-compare,
.direct-compare{
  min-height:0 !important;
  height:auto !important;
}

.sleep-featured .direct-compare .compare-panel,
.direct-compare .compare-panel{
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:54px 24px 30px !important;
}

/* Tablet: let the video use more of the available width. */
@media (max-width:900px){
  .direct-video-frame,
  .compare-video-shell,
  .sleep-featured .compare-player{
    width:min(320px,72vw) !important;
  }
}

/* Mobile: Google Drive portrait player becomes the main visual.
   No tiny fixed phone width. */
@media (max-width:640px){
  .direct-video-frame,
  .compare-video-shell,
  .sleep-featured .compare-player{
    width:min(82vw,320px) !important;
    max-width:calc(100vw - 44px) !important;
    padding:5px !important;
    border-radius:26px !important;
  }

  .direct-video-frame iframe,
  .compare-video-shell iframe,
  .sleep-featured .compare-player iframe{
    border-radius:21px !important;
  }

  .phone-media.direct-video-media{
    padding:22px 10px !important;
  }

  .direct-compare,
  .sleep-featured .direct-compare{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:1px !important;
    min-height:0 !important;
    height:auto !important;
  }

  .direct-compare .compare-panel,
  .sleep-featured .direct-compare .compare-panel{
    min-height:0 !important;
    height:auto !important;
    padding:48px 10px 22px !important;
  }

  .sleep-featured .direct-compare .compare-panel > span,
  .direct-compare .compare-panel > span{
    top:14px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    white-space:nowrap !important;
  }
}

/* Very narrow phones: still fill most of the viewport. */
@media (max-width:360px){
  .direct-video-frame,
  .compare-video-shell,
  .sleep-featured .compare-player{
    width:min(84vw,292px) !important;
    max-width:calc(100vw - 34px) !important;
  }
}


/* =========================================================
   MOBILE V10 — NATIVE VIEWPORT / NO HORIZONTAL OVERFLOW
   This block intentionally leaves Google Drive video sizing alone.
   ========================================================= */
html,
body{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  overflow-x:clip !important;
  zoom:1 !important;
}

body,
.site-header,
main,
main > section,
.site-footer{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}

.container,
.hero-grid,
.two-col,
.service-grid,
.project-grid,
.workflow-grid,
.contact-card,
.project-card,
.service-card,
.project-media,
.project-body,
.section-heading,
.about-copy,
.tools-wrap{
  min-width:0 !important;
  max-width:100% !important;
}

img,
iframe,
video,
svg{
  max-width:100% !important;
}

@media (max-width:720px){
  .container{
    width:calc(100% - 28px) !important;
    max-width:calc(100% - 28px) !important;
    margin-inline:auto !important;
  }

  .hero-grid,
  .two-col,
  .service-grid,
  .project-grid,
  .workflow-grid,
  .contact-card{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
  }

  .hero{
    padding-top:58px !important;
  }

  .hero h1{
    font-size:clamp(44px,13vw,58px) !important;
    line-height:.91 !important;
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }

  .hero-lead,
  .about-copy,
  .project-body p,
  .service-card p,
  .workflow-step p,
  .contact-card p{
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }

  .section-heading,
  .section-heading.compact{
    width:100% !important;
    max-width:100% !important;
  }

  .section-heading h2{
    font-size:clamp(34px,10vw,48px) !important;
    line-height:.98 !important;
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }

  .profile-card{
    width:min(360px,88vw) !important;
    max-width:100% !important;
    transform:none !important;
    margin-inline:auto !important;
  }

  .hero-visual{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .floating-tag{
    max-width:42vw !important;
    white-space:nowrap !important;
  }

  .service-card,
  .project-card,
  .workflow-step,
  .contact-card{
    width:100% !important;
    max-width:100% !important;
  }

  .service-card img{
    width:100% !important;
    height:auto !important;
    aspect-ratio:16 / 10 !important;
    object-fit:cover !important;
  }

  .stats-grid{
    width:100% !important;
    grid-template-columns:1fr !important;
  }

  .contact-card{
    padding:32px 22px !important;
  }

  .contact-actions,
  .contact-actions .btn{
    width:100% !important;
  }

  .ticker,
  .ticker-track{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
}

@media (max-width:420px){
  .container{
    width:calc(100% - 24px) !important;
    max-width:calc(100% - 24px) !important;
  }

  .section-pad{
    padding:58px 0 !important;
  }

  .hero h1{
    font-size:clamp(42px,12.5vw,52px) !important;
  }

  .project-body,
  .project-card.featured .project-body,
  .sleep-featured .project-body{
    padding-left:20px !important;
    padding-right:20px !important;
  }
}


/* =========================================================
   V11 — CLEAN PORTFOLIO VIDEO PLAYER
   Mockup = static poster + ONE custom Play button.
   Google Drive player opens only inside the modal.
   ========================================================= */

/* The existing 9:16 phone shell remains the exact visual viewport. */
.direct-video-frame,
.compare-video-shell,
.sleep-featured .compare-player{
  position:relative !important;
  isolation:isolate !important;
}

.portfolio-video-launch{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:inherit;
  overflow:hidden;
  background:#000;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  display:block;
  z-index:1;
}

.portfolio-video-poster{
  position:absolute;
  inset:0;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block;
  border-radius:inherit;
  transform:none !important;
  transition:filter .2s ease, transform .2s ease;
}

.portfolio-video-launch::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.06));
  pointer-events:none;
  z-index:2;
}

.portfolio-play-icon{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:62px;
  height:62px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 30px rgba(0,0,0,.26);
  z-index:3;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
  pointer-events:none;
}

.portfolio-play-icon::before{
  content:"";
  position:absolute;
  left:52%;
  top:50%;
  transform:translate(-42%,-50%);
  width:0;
  height:0;
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  border-left:15px solid #0b0f0d;
}

.portfolio-video-launch:hover .portfolio-play-icon,
.portfolio-video-launch:focus-visible .portfolio-play-icon{
  transform:translate(-50%,-50%) scale(1.08);
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.32);
}

.portfolio-video-launch:hover .portfolio-video-poster{
  filter:brightness(.94);
}

.portfolio-video-launch:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:-3px;
}

/* Modal: size is controlled by viewport HEIGHT as well as width,
   so a 9:16 player never overflows a phone screen. */
.portfolio-video-modal{
  border:0;
  padding:0;
  margin:auto;
  max-width:none;
  width:auto;
  background:transparent;
  overflow:visible;
}

.portfolio-video-modal::backdrop{
  background:rgba(3,5,4,.86);
  backdrop-filter:blur(7px);
}

.portfolio-video-modal-card{
  width:min(420px,49.5vh,calc(100vw - 28px));
  max-width:calc(100vw - 28px);
  padding:48px 10px 10px;
  border-radius:26px;
  background:#0b0f0d;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  position:relative;
}

.portfolio-video-modal-head{
  position:absolute;
  left:14px;
  right:10px;
  top:9px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:white;
}

.portfolio-video-modal-head strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  letter-spacing:-.01em;
}

.portfolio-video-close{
  flex:0 0 auto;
  width:32px;
  height:32px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:white;
  font-size:24px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.portfolio-video-close:hover{
  background:rgba(255,255,255,.16);
}

.portfolio-video-modal-frame{
  width:100%;
  aspect-ratio:9 / 16;
  overflow:hidden;
  border-radius:18px;
  background:#000;
}

.portfolio-video-modal-frame iframe{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  border:0;
  background:#000;
}

@media (max-width:640px){
  .portfolio-play-icon{
    width:58px;
    height:58px;
  }

  .portfolio-video-modal-card{
    width:min(49.5vh,calc(100vw - 18px));
    max-width:calc(100vw - 18px);
    padding:46px 8px 8px;
    border-radius:22px;
  }

  .portfolio-video-modal-frame{
    border-radius:16px;
  }
}

/* =========================================================
   V12 FINAL OVERRIDE — TRUE CENTERED VIDEO MODAL + THUMBNAILS
   ========================================================= */

/* Ensure every poster truly fills the 9:16 mockup. This overrides
   the older .phone-media img { max-height:420px } rule. */
.direct-video-frame .portfolio-video-launch,
.sleep-featured .compare-player .portfolio-video-launch,
.phone-media .direct-video-frame .portfolio-video-launch{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:inherit !important;
  background:#000 !important;
}

.direct-video-frame .portfolio-video-poster,
.sleep-featured .compare-player .portfolio-video-poster,
.phone-media .direct-video-frame .portfolio-video-poster{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-width:100% !important;
  min-height:100% !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  object-fit:cover !important;
  object-position:50% 50% !important;
  filter:none !important;
  transform:none !important;
}

/* One play button, always dead-center in the poster. */
.direct-video-frame .portfolio-play-icon,
.sleep-featured .compare-player .portfolio-play-icon,
.phone-media .direct-video-frame .portfolio-play-icon{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  margin:0 !important;
  width:62px !important;
  height:62px !important;
  border-radius:50% !important;
  z-index:10 !important;
}

/* The dialog itself becomes a transparent full-screen centering layer.
   This avoids browser/dialog UA positioning putting it at the left edge. */
dialog.portfolio-video-modal[open]{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:20px !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  border:0 !important;
  overflow:hidden !important;
}

/* Keep the actual 9:16 player centered and fully inside the viewport. */
dialog.portfolio-video-modal[open] .portfolio-video-modal-card{
  position:relative !important;
  inset:auto !important;
  flex:0 0 auto !important;
  width:min(420px,45dvh,calc(100vw - 40px)) !important;
  max-width:calc(100vw - 40px) !important;
  max-height:calc(100dvh - 40px) !important;
  margin:0 !important;
  padding:48px 10px 10px !important;
  box-sizing:border-box !important;
  transform:none !important;
}

dialog.portfolio-video-modal[open] .portfolio-video-modal-frame{
  position:relative !important;
  width:100% !important;
  aspect-ratio:9 / 16 !important;
  height:auto !important;
  max-height:calc(100dvh - 108px) !important;
  margin:0 auto !important;
  overflow:hidden !important;
}

dialog.portfolio-video-modal[open] .portfolio-video-modal-frame iframe{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  border:0 !important;
  transform:none !important;
}

@media (max-width:640px){
  dialog.portfolio-video-modal[open]{
    padding:12px !important;
  }

  dialog.portfolio-video-modal[open] .portfolio-video-modal-card{
    width:min(92vw,43dvh) !important;
    max-width:92vw !important;
    max-height:calc(100dvh - 24px) !important;
    padding:46px 8px 8px !important;
  }

  .direct-video-frame .portfolio-play-icon,
  .sleep-featured .compare-player .portfolio-play-icon,
  .phone-media .direct-video-frame .portfolio-play-icon{
    width:58px !important;
    height:58px !important;
  }
}


/* =========================================================
   V17 — LOCAL 1080x1920 VIDEO / CLICK-TO-LOAD
   Resolution remains 1080x1920. No Google Drive iframe.
   ========================================================= */
.local-video-shell{
  position:relative !important;
  width:min(292px,72vw) !important;
  max-width:calc(100% - 18px) !important;
  aspect-ratio:9 / 16 !important;
  margin-inline:auto !important;
  padding:7px !important;
  border-radius:34px !important;
  background:linear-gradient(180deg,#171a1e 0%,#080a0c 100%) !important;
  box-shadow:0 22px 44px rgba(0,0,0,.24) !important;
  overflow:hidden !important;
  border:1px solid rgba(255,255,255,.14) !important;
}
.local-video-shell::before{
  content:"";
  position:absolute;
  top:7px;
  left:50%;
  transform:translateX(-50%);
  width:58px;
  height:5px;
  border-radius:999px;
  background:#0a0b0d;
  z-index:5;
  pointer-events:none;
}
.local-video-screen{
  position:relative;
  width:100%;
  height:100%;
  aspect-ratio:9 / 16;
  overflow:hidden;
  border-radius:27px;
  background:#000;
}
.local-portfolio-video{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:#000;
  border:0;
}
.local-video-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:64px;
  height:64px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.95);
  color:#101312;
  font-size:27px;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.24);
  z-index:4;
  transition:transform .18s ease,opacity .18s ease;
}
.local-video-play span{transform:translateX(2px)}
.local-video-play:hover{transform:translate(-50%,-50%) scale(1.06)}
.local-video-play.is-hidden{opacity:0;pointer-events:none}

/* Make old mockup selectors stop imposing Google Drive-specific sizing. */
.sleep-featured .compare-player.local-video-shell,
.phone-media .local-video-shell{
  width:min(292px,72vw) !important;
}
.sleep-featured .direct-compare .compare-panel,
.direct-compare .compare-panel{
  min-height:500px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.phone-media.direct-video-media{
  min-height:520px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

@media (max-width:640px){
  .local-video-shell,
  .sleep-featured .compare-player.local-video-shell,
  .phone-media .local-video-shell{
    width:min(82vw,300px) !important;
    max-width:calc(100vw - 48px) !important;
    border-radius:30px !important;
  }
  .local-video-screen{border-radius:23px}
  .local-video-play{width:60px;height:60px;font-size:25px}
  .sleep-featured .direct-compare,
  .direct-compare{grid-template-columns:1fr !important}
  .sleep-featured .direct-compare .compare-panel,
  .direct-compare .compare-panel{
    min-height:0 !important;
    padding:48px 12px 22px !important;
  }
  .phone-media.direct-video-media{
    min-height:0 !important;
    padding:24px 12px !important;
  }
}


/* =========================================================
   FINAL PATCH — TRUE 1080x1920 PHONE MOCKUP
   Keep original portrait ratio 9:16
   ========================================================= */

.local-video-shell{
    width:360px !important;
    max-width:100% !important;
    aspect-ratio:9 / 16 !important;
    height:auto !important;
    padding:8px !important;
    border-radius:38px !important;
    background:linear-gradient(180deg,#1b1d20 0%,#080909 100%) !important;
    box-shadow:0 25px 60px rgba(0,0,0,.28) !important;
    margin:auto !important;
}

.local-video-screen{
    width:100% !important;
    height:100% !important;
    aspect-ratio:9 / 16 !important;
    overflow:hidden !important;
    border-radius:30px !important;
    background:#000 !important;
}

.local-portfolio-video{
    width:100% !important;
    height:100% !important;
    aspect-ratio:9 / 16 !important;
    object-fit:cover !important;
    display:block !important;
}

.local-video-play{
    width:72px !important;
    height:72px !important;
}

@media(min-width:1200px){
    .local-video-shell{
        width:390px !important;
    }
}

@media(max-width:900px){
    .local-video-shell{
        width:min(340px,75vw) !important;
    }
}

@media(max-width:640px){
    .local-video-shell{
        width:min(320px,82vw) !important;
        border-radius:32px !important;
    }
    .local-video-play{
        width:60px !important;
        height:60px !important;
    }
}


/* =========================================================
   UPDATE — WIDER 1080x1920 PHONE MOCKUP
   ========================================================= */

.local-video-shell{
    width:420px !important;
    max-width:100% !important;
    aspect-ratio:9 / 16 !important;
}

@media(min-width:1200px){
    .local-video-shell{
        width:450px !important;
    }
}

@media(max-width:900px){
    .local-video-shell{
        width:min(360px,78vw) !important;
    }
}

@media(max-width:640px){
    .local-video-shell{
        width:min(330px,84vw) !important;
    }
}


/* =========================================================
   EXTRA LARGE PHONE MOCKUP
   1080x1920 PORTRAIT DISPLAY
   ========================================================= */

.local-video-shell{
    width:500px !important;
    max-width:100% !important;
    aspect-ratio:9 / 16 !important;
    height:auto !important;
    padding:9px !important;
    border-radius:42px !important;
}

.local-video-screen{
    width:100% !important;
    height:100% !important;
    aspect-ratio:9 / 16 !important;
}

.local-portfolio-video{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}

@media(min-width:1400px){
    .local-video-shell{
        width:520px !important;
    }
}

@media(max-width:1200px){
    .local-video-shell{
        width:460px !important;
    }
}

@media(max-width:900px){
    .local-video-shell{
        width:min(380px,80vw) !important;
    }
}

@media(max-width:640px){
    .local-video-shell{
        width:min(330px,84vw) !important;
    }
}


/* =========================================================
   V18 — CUSTOM PORTRAIT FULLSCREEN VIDEO FIX
   KEEP 1080x1920 / 9:16
   ========================================================= */

.local-video-screen.fullscreen-mode{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100vh !important;
    background:#000 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    z-index:99999 !important;
}

.local-video-screen.fullscreen-mode .local-portfolio-video{
    width:auto !important;
    height:100vh !important;
    max-width:56.25vh !important;
    max-height:100vh !important;
    aspect-ratio:9 / 16 !important;
    object-fit:contain !important;
    background:#000 !important;
}

/* =========================================================
   V19 — DESKTOP VIDEO PREVIEW: FIT THE WHOLE FRAME (NO CROP)
   The phone-shaped shell keeps its 9:16 shape. The video
   itself is NOT forced to 9:16: display its real aspect ratio
   inside the shell, with black bars if necessary.
   Mobile and the existing fullscreen behavior stay unchanged.
   ========================================================= */
@media (min-width:901px){
  .local-video-screen:not(.fullscreen-mode){
    position:relative !important;
    isolation:isolate;
    overflow:hidden !important;
    background:#000 !important;
  }

  .local-video-screen:not(.fullscreen-mode) > video.local-portfolio-video{
    position:absolute !important;
    inset:0 !important;
    display:block !important;
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    max-width:100% !important;
    max-height:100% !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
    object-position:center center !important;
    transform:none !important;
    margin:0 !important;
    padding:0 !important;
    background:#000 !important;
  }
}

/* V20: remove empty project description panels only. */
.project-card > .project-body:empty { display:none !important; padding:0 !important; }
.project-card > .project-body:not(:has(*)) { display:none !important; padding:0 !important; }


/* V22 — use the original transparent PNG as the complete hanging ID card.
   No CSS or SVG lanyard, card frame, or extra background. */
.hero-visual-png { min-width:0; }
.hanging-photo { position:relative; isolation:isolate; }
.hanging-photo-image { display:block; width:100%; height:auto; object-fit:contain; }
.hanging-photo .tag-one { left:7%; top:42%; }
.hanging-photo .tag-two { right:17%; top:51%; }
.hanging-photo .tag-three { left:8%; top:76%; bottom:auto; }
@media (min-width:981px) {
  .hero { overflow:hidden; padding-block:0; }
  .hero-grid { min-height:max(820px, calc(100vh - 76px)); }
  .hero-copy { padding-block:110px; }
  .hero-visual-png { align-self:stretch; min-height:0; }
  .hanging-photo {
    position:absolute;
    bottom:0;
    left:50%;
    height:max(100%, 940px);
    width:auto;
    aspect-ratio:1080 / 1920;
    transform:translateX(-42.7%);
  }
  .hanging-photo-image { width:100%; height:100%; }
}
@media (max-width:980px) {
  .hero-visual-png { min-height:0; display:flex; justify-content:center; }
  .hanging-photo { width:min(460px,100%); transform:translateX(5%); }
}
@media (max-width:720px) {
  .hero-visual-png { overflow:visible !important; }
  .hanging-photo { width:min(380px,100%); transform:translateX(4%); }
  .hanging-photo .tag-one { left:1%; top:43%; }
  .hanging-photo .tag-two { right:9%; top:51%; }
  .hanging-photo .tag-three { left:2%; top:76%; }
}

/* V23 — mobile hero: hanging PNG first, then the introduction. */
@media (max-width:720px) {
  .hero.section-pad {
    padding-top:0 !important;
    align-items:flex-start;
    overflow:hidden;
  }
  .hero-grid {
    grid-template-areas:"portrait" "intro";
    gap:12px;
  }
  .hero-visual-png {
    grid-area:portrait;
    align-self:start;
    min-height:0;
    margin-bottom:-20px;
  }
  .hero-copy {
    grid-area:intro;
    padding-top:0;
  }
  .hanging-photo {
    width:min(285px,69vw);
    width:min(285px,69vw,max(205px,46svh));
    transform:translateX(5%);
  }
  .hero-visual-png.reveal {
    opacity:1;
    transform:none;
  }
}


/* V24 — position the original hanging PNG on the left on desktop.
   Keep the photo orientation, software labels and all non-hero sections. */
@media (min-width:981px) {
  .hero-grid {
    grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
    grid-template-areas:"portrait intro";
  }
  .hero-visual-png { grid-area:portrait; }
  .hero-copy { grid-area:intro; }
  .hero::after { right:auto; left:-12vw; }
}

/* Keep the same portrait-first order on tablet as on mobile. */
@media (min-width:721px) and (max-width:980px) {
  .hero.section-pad { padding-top:0; overflow:hidden; }
  .hero-grid { grid-template-areas:"portrait" "intro"; }
  .hero-visual-png { grid-area:portrait; align-self:start; }
  .hero-copy { grid-area:intro; }
  .hanging-photo { width:min(360px,65vw); }
  .hero-visual-png.reveal { opacity:1; transform:none; }
}


/* V27 — caption mapped to the original PNG's 1080 × 1920 coordinates.
   The bottom edge slopes upward by 0.064 units per horizontal unit.
   The 665-unit caption matches the measured card edges at x=128 and x=793. */
.hanging-photo .lanyard-nameplate {
  position:absolute; inset:0; width:100%; height:100%;
  display:block; z-index:4; pointer-events:none;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.nameplate-name { fill:#fff; letter-spacing:-.025em; }
.nameplate-profession { fill:#c6ccc8; }
.nameplate-stacked { display:none; }
@media (min-width:981px) {
  .hero { min-height:0; }
  .hero-grid { min-height:clamp(820px,calc(100vh - 76px),960px); }
  .hero-grid > * { min-width:0; }
  .hero-copy h1 { overflow-wrap:anywhere; }
}
@media (min-width:981px) and (max-width:1150px) {
  .hero-grid { gap:36px; }
  .hero-copy h1 { font-size:clamp(60px,7vw,80px); }
}
@media (max-width:980px) {
  .hero-grid { gap:24px; }
  .hero-visual-png { margin-bottom:0; }
  .nameplate-wide { display:none; }
  .nameplate-stacked { display:inline; }
}
@media (max-width:360px) {
  .hanging-photo .floating-tag { padding:7px 9px; font-size:9px; }
  .hero-meta { gap:12px; }
  .ticker-track { white-space:normal; }
}
@media (min-width:981px) and (max-height:850px) {
  .hero-grid { min-height:max(620px,calc(100vh - 76px)); }
  .hero-copy { padding-block:48px; }
  .hero-copy h1 { font-size:clamp(60px,6.8vw,96px); }
  .hanging-photo { height:calc(100% + 100px); }
}
