/* ============================================================
   Vivian O. Davines — portfolio
   ============================================================ */

:root{
  --navy:#12243d;
  --navy-2:#1c3557;
  --ink:#16202e;
  --body:#4a5769;
  --muted:#7b8698;
  --line:#e2e6ec;
  --line-2:#eef1f5;
  --bg:#ffffff;
  --bg-alt:#f6f8fa;
  --amber:#d4802a;
  --amber-soft:#fdf3e8;
  --ok:#1d7a52;
  --err:#c0392b;

  --wrap:1180px;
  --r:10px;
  --r-lg:16px;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
  --shadow:0 1px 2px rgba(18,36,61,.04),0 8px 24px -12px rgba(18,36,61,.14);
  --shadow-lg:0 2px 4px rgba(18,36,61,.05),0 24px 48px -20px rgba(18,36,61,.22);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:var(--sans);color:var(--body);background:var(--bg);
  font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{color:var(--ink);margin:0;line-height:1.2;letter-spacing:-.02em}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
ul,ol{margin:0;padding:0;list-style:none}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 28px}
.skip{position:absolute;left:-9999px;top:0;background:var(--navy);color:#fff;padding:12px 20px;z-index:200}
.skip:focus{left:12px;top:12px}

/* ── nav ───────────────────────────────────────────────── */
.nav{
  position:sticky;top:0;z-index:100;background:#fff;
  border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s;
}
.nav.stuck{border-bottom-color:var(--line);box-shadow:0 1px 12px rgba(18,36,61,.05)}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:72px;gap:24px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.brand-mark{
  width:40px;height:40px;border-radius:9px;background:var(--navy);color:#fff;
  display:grid;place-items:center;font-family:var(--serif);font-size:17px;font-weight:600;letter-spacing:.02em;
}
.brand-text{display:flex;flex-direction:column;font-size:15px;font-weight:600;color:var(--ink);line-height:1.25}
.brand-text em{font-style:normal;font-size:12px;font-weight:500;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}

.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{
  text-decoration:none;font-size:14.5px;font-weight:500;color:var(--body);
  padding:9px 13px;border-radius:8px;transition:background .15s,color .15s;white-space:nowrap;
}
.nav-links a:hover{background:var(--bg-alt);color:var(--ink)}
.nav-cta{background:var(--navy)!important;color:#fff!important;padding:10px 20px!important;margin-left:8px}
.nav-cta:hover{background:var(--navy-2)!important}

.burger{display:none;flex-direction:column;gap:5px;background:none;border:0;padding:10px;cursor:pointer}
.burger span{width:22px;height:2px;background:var(--ink);border-radius:2px;transition:transform .25s,opacity .2s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ── buttons ───────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 26px;border-radius:var(--r);font-size:15px;font-weight:600;
  text-decoration:none;border:1px solid transparent;cursor:pointer;
  transition:transform .12s,background .18s,border-color .18s,box-shadow .18s;font-family:inherit;
}
.btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--navy);color:#fff;box-shadow:var(--shadow)}
.btn-primary:hover{background:var(--navy-2);box-shadow:var(--shadow-lg)}
.btn-ghost{background:#fff;color:var(--ink);border-color:var(--line)}
.btn-ghost:hover{border-color:#c6ccd6;background:var(--bg-alt)}
.btn-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.28)}
.btn-light:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.5)}
.btn-small{padding:9px 16px;font-size:13.5px;background:#fff;color:var(--ink);border-color:var(--line)}
.btn-small svg{width:15px;height:15px}
.btn-small:hover{border-color:var(--navy);color:var(--navy)}
.btn-quiet{background:var(--bg-alt);border-color:transparent;color:var(--body)}
.btn-full{width:100%}

/* ── hero ──────────────────────────────────────────────── */
.hero{padding:76px 0 84px;background:
  radial-gradient(900px 420px at 88% -8%,#eef3f9 0%,rgba(238,243,249,0) 62%),
  linear-gradient(180deg,#fbfcfd 0%,#ffffff 100%);
  border-bottom:1px solid var(--line-2);overflow:hidden}
.hero-in{display:grid;grid-template-columns:1.15fr .85fr;gap:64px;align-items:center}

.eyebrow{
  display:inline-flex;align-items:center;gap:9px;margin:0 0 22px;
  font-size:13px;font-weight:600;letter-spacing:.03em;color:var(--ok);
  background:#eaf6f0;border:1px solid #cfe9dd;padding:6px 14px;border-radius:100px;
}
.dot{width:7px;height:7px;border-radius:50%;background:var(--ok);animation:pulse 2.4s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.82)}}

.hero h1{
  font-family:var(--serif);font-size:clamp(2.35rem,4.6vw,3.65rem);font-weight:600;
  letter-spacing:-.028em;line-height:1.1;margin:0 0 22px;
}
.lede{font-size:18.5px;line-height:1.68;max-width:37em;margin:0 0 32px;color:var(--body)}
.hero-btns{display:flex;gap:13px;flex-wrap:wrap;margin-bottom:46px}

.hero-stats{display:flex;gap:40px;flex-wrap:wrap;padding-top:30px;border-top:1px solid var(--line)}
.hero-stats li{display:flex;flex-direction:column;gap:2px}
.hero-stats strong{font-family:var(--serif);font-size:29px;font-weight:600;color:var(--navy);line-height:1.1}
.hero-stats span{font-size:13px;color:var(--muted);font-weight:500}

.hero-photo{position:relative}
.photo-frame{
  position:relative;border-radius:var(--r-lg);overflow:hidden;
  box-shadow:var(--shadow-lg);background:var(--bg-alt);
}
.photo-frame::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(18,36,61,0) 55%,rgba(18,36,61,.16) 100%);
}
.photo-frame img{width:100%}
.photo-badge{
  position:absolute;left:-26px;bottom:34px;display:flex;align-items:center;gap:12px;
  background:#fff;border:1px solid var(--line);border-radius:var(--r);
  padding:13px 18px 13px 15px;box-shadow:var(--shadow-lg);max-width:255px;
}
.photo-badge svg{width:26px;height:26px;flex-shrink:0;fill:var(--amber);stroke:none}
.photo-badge strong{display:block;font-size:13.5px;color:var(--ink);line-height:1.35}
.photo-badge span{display:block;font-size:11.5px;color:var(--muted)}

/* ── tools strip ───────────────────────────────────────── */
.strip{background:var(--navy);color:#fff;padding:22px 0}
.strip-in{display:flex;align-items:center;gap:32px;flex-wrap:wrap}
.strip-label{font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.5);flex-shrink:0}
.strip ul{display:flex;gap:30px;flex-wrap:wrap}
.strip li{font-size:15px;font-weight:500;color:rgba(255,255,255,.94)}

/* ── sections ──────────────────────────────────────────── */
.sec{padding:96px 0}
.sec-alt{background:var(--bg-alt);border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}
.sec-head{max-width:640px;margin-bottom:52px}
.kicker{
  display:inline-block;font-size:12px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--amber);margin-bottom:14px;
}
.kicker-light{color:#f0b877}
.sec-head h2{font-family:var(--serif);font-size:clamp(1.85rem,3.2vw,2.55rem);font-weight:600;letter-spacing:-.022em}
.sec-sub{margin-top:15px;font-size:17.5px;color:var(--muted)}

/* ── about ─────────────────────────────────────────────── */
.about-grid{display:grid;grid-template-columns:1.5fr .95fr;gap:56px;align-items:start}
.about-copy .big{font-size:20px;line-height:1.6;color:var(--ink);font-weight:500;margin-bottom:1.2em}
.about-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:30px;box-shadow:var(--shadow);position:sticky;top:100px;
}
.about-card h3{font-size:14px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:20px}
.about-card dl{margin:0}
.about-card dl>div{padding:14px 0;border-top:1px solid var(--line-2)}
.about-card dl>div:first-of-type{border-top:0;padding-top:0}
.about-card dt{font-size:12.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.about-card dd{margin:0;font-size:15.5px;color:var(--ink);line-height:1.5}
.muted{color:var(--muted)}
.card-link{
  display:inline-flex;align-items:center;gap:7px;margin-top:22px;
  font-size:15px;font-weight:600;color:var(--navy);text-decoration:none;
}
.card-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.card-link:hover svg{transform:translateX(4px)}

/* ── services ──────────────────────────────────────────── */
.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:18px}
.svc{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:28px 26px;
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
.svc:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:#d3dae4}
.svc svg{
  width:26px;height:26px;fill:none;stroke:var(--amber);stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;margin-bottom:18px;
}
.svc h3{font-size:16.5px;font-weight:600;margin-bottom:9px;letter-spacing:-.01em}
.svc p{font-size:14.8px;line-height:1.6;color:var(--body);margin:0}

/* ── projects ──────────────────────────────────────────── */
.proj{
  display:grid;grid-template-columns:1.12fr .88fr;gap:52px;align-items:center;
  padding:52px 0;border-top:1px solid var(--line);
}
.proj:first-of-type{border-top:0;padding-top:0}
.proj-flip .proj-media{order:2}
.proj-flip .proj-body{order:1}

.proj-media{display:flex;flex-direction:column;gap:14px}
/* Nothing is cropped: every image keeps its own proportions and is
   shown whole. Documents are portrait, photos landscape - the pair
   grid aligns to the top and lets the rows be uneven. */
.shot{margin:0;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.shot-open{
  display:block;width:100%;padding:0;border:0;background:#fff;
  cursor:zoom-in;position:relative;line-height:0;font-family:inherit;
}
.shot img{width:100%;height:auto;display:block;background:#fff}
.shot figcaption{
  font-size:11.5px;color:var(--muted);padding:8px 12px;
  background:var(--bg-alt);border-top:1px solid var(--line-2);font-weight:500;
}
.shot-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}

/* hover affordance so it is obvious these open */
.shot-zoom{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:9px;
  background:rgba(18,36,61,.62);color:#fff;font-size:14px;font-weight:600;line-height:1.4;
  opacity:0;transition:opacity .18s;
}
.shot-zoom svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.shot-open:hover .shot-zoom,.shot-open:focus-visible .shot-zoom{opacity:1}
.shot-open:focus-visible{outline:3px solid var(--amber);outline-offset:-3px}

/* ── lightbox ──────────────────────────────────────────── */
.lb{
  position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;
  background:rgba(9,17,29,.93);padding:56px 68px 20px;
}
.lb[hidden]{display:none}
.lb-stage{margin:0;display:flex;flex-direction:column;max-width:100%;max-height:100%;gap:0}
.lb-stage img{
  max-width:100%;max-height:calc(100vh - 132px);width:auto;height:auto;
  object-fit:contain;background:#fff;border-radius:6px 6px 0 0;display:block;margin:0 auto;
}
.lb-bar{
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  background:#fff;border-radius:0 0 6px 6px;padding:11px 16px;
  font-size:13.5px;color:var(--body);font-weight:500;
}
.lb-pdf{
  display:inline-flex;align-items:center;gap:7px;color:var(--navy);
  font-weight:600;text-decoration:none;white-space:nowrap;
  border:1px solid var(--line);border-radius:8px;padding:7px 14px;transition:border-color .15s,background .15s;
}
.lb-pdf:hover{border-color:var(--navy);background:var(--bg-alt)}
.lb-pdf svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lb-pdf[hidden]{display:none}
.lb-close,.lb-nav{
  position:absolute;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);
  color:#fff;border-radius:50%;width:44px;height:44px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s;
}
.lb-close:hover,.lb-nav:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.5)}
.lb-close svg,.lb-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lb-close{top:14px;right:16px}
.lb-prev{left:14px;top:50%;transform:translateY(-50%)}
.lb-next{right:14px;top:50%;transform:translateY(-50%)}
body.lb-open{overflow:hidden}
@media (max-width:640px){
  .lb{padding:52px 10px 12px}
  .lb-stage img{max-height:calc(100vh - 168px)}
  .lb-prev{left:8px}.lb-next{right:8px}
  .lb-bar{font-size:12.5px;padding:10px 12px;gap:10px}
  .shot-zoom{opacity:1;background:linear-gradient(180deg,rgba(18,36,61,0) 55%,rgba(18,36,61,.72) 100%);align-items:flex-end;padding-bottom:10px;font-size:12.5px}
}

.proj-tag{
  display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--amber);background:var(--amber-soft);padding:5px 12px;border-radius:100px;margin-bottom:15px;
}
.proj-body h3{font-family:var(--serif);font-size:1.85rem;font-weight:600;margin-bottom:5px;letter-spacing:-.02em}
.proj-loc{font-size:14px;color:var(--muted);font-weight:500;margin-bottom:18px}
.proj-body p{font-size:16px;line-height:1.68}
.proj-role{
  background:var(--bg-alt);border-left:3px solid var(--amber);padding:15px 18px;
  font-size:15px!important;color:var(--body);margin:20px 0!important;
}
.proj-role strong{color:var(--ink)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.chips li{
  font-size:12.5px;font-weight:600;color:var(--navy);background:#eef2f7;
  padding:5px 12px;border-radius:6px;
}
.proj-links{display:flex;flex-wrap:wrap;gap:10px}
.proj-more{
  text-align:center;margin:8px auto 0;max-width:660px;padding-top:44px;
  border-top:1px solid var(--line);font-size:16px;color:var(--body);
}
.proj-more strong{color:var(--ink);font-weight:600}
.proj-more a{color:var(--navy);font-weight:600;text-decoration:none;white-space:nowrap}
.proj-more a:hover{text-decoration:underline}

/* ── timeline ──────────────────────────────────────────── */
.timeline{position:relative;max-width:930px}
.timeline::before{content:"";position:absolute;left:7px;top:10px;bottom:10px;width:2px;background:var(--line)}
.timeline li{position:relative;padding-left:44px;padding-bottom:40px}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{
  content:"";position:absolute;left:0;top:8px;width:16px;height:16px;border-radius:50%;
  background:#fff;border:3px solid var(--line);
}
.timeline li:first-child::before{border-color:var(--amber);background:var(--amber)}
.tl-when{
  font-size:13px;font-weight:600;color:var(--muted);margin-bottom:7px;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.tl-now{
  font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:#fff;background:var(--amber);padding:3px 9px;border-radius:5px;
}
.tl-what h3{font-size:19.5px;font-weight:600;margin-bottom:3px}
.tl-org{font-size:15.5px;color:var(--navy);font-weight:600;margin-bottom:14px}
.tl-what ul{display:flex;flex-direction:column;gap:9px}
.tl-what ul li{position:relative;padding-left:20px;font-size:15.5px;line-height:1.62}
.tl-what ul li::before{content:"";position:absolute;left:2px;top:10px;width:5px;height:5px;border-radius:50%;background:var(--amber)}
.tl-sup{margin-top:16px;font-size:14.5px;color:var(--muted);padding-top:14px;border-top:1px solid var(--line)}
.tl-sup strong{color:var(--body)}

/* ── credentials ───────────────────────────────────────── */
.cred-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px}
.cred-h{font-size:13px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);margin-bottom:20px}
.cred-h-sp{margin-top:42px}
.cred-list{display:flex;flex-direction:column}
.cred-list li{padding:16px 0;border-top:1px solid var(--line)}
.cred-list li:first-child{border-top:0;padding-top:0}
.cred-list strong{display:block;font-size:16.5px;font-weight:600;color:var(--ink);margin-bottom:2px}
.cred-list span{font-size:14.5px;color:var(--muted)}
.skill-list{display:flex;flex-wrap:wrap;gap:9px}
.skill-list li{
  font-size:14px;font-weight:500;color:var(--navy);background:#fff;
  border:1px solid var(--line);padding:8px 15px;border-radius:100px;
}

/* ── contact ───────────────────────────────────────────── */
.contact{background:var(--navy);color:rgba(255,255,255,.82);border:0}
.contact h2{color:#fff}
.contact-in{display:grid;grid-template-columns:1fr 1fr;gap:66px;align-items:start}
.contact-copy p{font-size:17.5px;line-height:1.68;max-width:34em}
.contact-list{margin:34px 0 30px;display:flex;flex-direction:column;gap:15px}
.contact-list li{display:flex;align-items:center;gap:14px;font-size:16px}
.contact-list svg{
  width:20px;height:20px;flex-shrink:0;fill:none;stroke:#f0b877;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.contact-list a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.26);transition:border-color .18s}
.contact-list a:hover{border-bottom-color:#f0b877}

.form-card{background:#fff;border-radius:var(--r-lg);padding:34px;box-shadow:var(--shadow-lg)}
.field{margin-bottom:18px}
.field label{display:block;font-size:13.5px;font-weight:600;color:var(--ink);margin-bottom:7px}
.opt{font-weight:400;color:var(--muted);font-size:12.5px}
.field input,.field textarea{
  width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:var(--r);
  font-family:inherit;font-size:15.5px;color:var(--ink);background:#fff;
  transition:border-color .16s,box-shadow .16s;resize:vertical;
}
.field input::placeholder,.field textarea::placeholder{color:#b3bbc7}
.field input:focus,.field textarea:focus{
  outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(28,53,87,.1);
}
.field.bad input,.field.bad textarea{border-color:var(--err)}
.err{font-size:13px;color:var(--err);margin:6px 0 0;min-height:0;display:none}
.field.bad .err{display:block}
.hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}
.form-note{margin:15px 0 0;font-size:14.5px;text-align:center;display:none}
.form-note.show{display:block}
.form-note.ok{color:var(--ok)}
.form-note.bad{color:var(--err)}
#submit-btn[disabled]{opacity:.6;cursor:progress}

/* ── footer ────────────────────────────────────────────── */
.foot{background:#0d1b2e;color:rgba(255,255,255,.5);padding:28px 0;font-size:14px}
.foot-in{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.foot p{margin:0}
.foot-links{display:flex;gap:22px}
.foot-links a{color:rgba(255,255,255,.72);text-decoration:none}
.foot-links a:hover{color:#f0b877}

/* ── responsive ────────────────────────────────────────── */
@media (max-width:1000px){
  .hero-in,.about-grid,.cred-grid,.contact-in{grid-template-columns:1fr;gap:44px}
  .proj,.proj-flip{grid-template-columns:1fr;gap:32px}
  .proj-flip .proj-media,.proj-flip .proj-body{order:unset}
  .about-card{position:static}
  .hero-photo{max-width:420px}
  .photo-badge{left:auto;right:-12px}
}
@media (max-width:820px){
  .nav-links{
    position:fixed;inset:72px 0 auto;flex-direction:column;align-items:stretch;gap:2px;
    background:#fff;border-bottom:1px solid var(--line);padding:14px 20px 22px;
    box-shadow:0 18px 36px -18px rgba(18,36,61,.3);
    transform:translateY(-130%);opacity:0;pointer-events:none;transition:transform .28s ease,opacity .2s;
  }
  .nav-links.open{transform:translateY(0);opacity:1;pointer-events:auto}
  .nav-links a{padding:13px 14px;font-size:16px;border-radius:8px}
  .nav-cta{margin:8px 0 0!important;text-align:center;justify-content:center}
  .burger{display:flex}
}
@media (max-width:640px){
  body{font-size:16px}
  .wrap{padding:0 20px}
  .hero{padding:52px 0 60px}
  .sec{padding:66px 0}
  .sec-head{margin-bottom:38px}
  .lede{font-size:17px}
  .hero-btns{gap:10px}
  .hero-btns .btn{flex:1 1 100%}
  .hero-stats{gap:26px;padding-top:24px}
  .hero-stats strong{font-size:25px}
  .photo-badge{position:static;margin:16px auto 0;max-width:none;box-shadow:var(--shadow)}
  .hero-photo{max-width:none}
  .strip-in{gap:14px}
  .strip ul{gap:8px 20px}
  .strip li{font-size:14px}
  .about-copy .big{font-size:18px}
  .shot-pair{grid-template-columns:1fr}
  .shot-pair .shot img{height:auto;max-height:280px}
  .shot-lead img{max-height:250px}
  .proj-body h3{font-size:1.55rem}
  .form-card{padding:24px 20px}
  .foot-in{flex-direction:column;text-align:center;gap:14px}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

@media print{
  .nav,.burger,.form-card,.hero-btns,.proj-links,.foot-links{display:none}
  .contact,.strip{background:#fff;color:#000}
  .sec{padding:24px 0}
}

/* headline break only where the line is long enough to need it */
@media (max-width:700px){ .brk{display:none} }

/* ============================================================
   BACKGROUND LAYERS
   Hand-drawn construction artwork (SVG), held far back.
   Depth comes from three things stacked:
     1. an engineering grid, nearest the surface
     2. illustrated architecture, further back
     3. the skyline art's own three internal depth planes
   Every layer lives on a ::before/::after at z-index 0, so its
   opacity can never touch text contrast.
   ============================================================ */

.hero,.sec,.strip,.contact{position:relative}
.hero>.wrap,.sec>.wrap,.strip>.wrap,.contact>.wrap{position:relative;z-index:1}
#services,#experience,#credentials,.contact,.strip,.hero{overflow:hidden}

/* --- layer 1: engineering grid ---------------------------- */
.hero::before,.sec-alt::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(18,36,61,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(18,36,61,.05) 1px,transparent 1px);
  background-size:48px 48px;
}
#projects::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(18,36,61,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(18,36,61,.035) 1px,transparent 1px);
  background-size:64px 64px;
}
#credentials::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(18,36,61,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(18,36,61,.04) 1px,transparent 1px);
  background-size:48px 48px;
}
.strip::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:34px 34px;
}
.contact::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:52px 52px;
}

/* --- layer 2: photographic architecture -------------------
   Generated construction photography, desaturated at export.
   The fade is done with a gradient stacked ON the image inside
   one background shorthand, not mask-image: masks on tall
   full-bleed layers force expensive off-GPU compositing and can
   blank the section on weaker hardware. A gradient running from
   the section's own colour to transparent looks identical and
   composites for free. --- */

/* hero — tower crane against open sky */
.hero::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  left:0;right:0;bottom:0;height:76%;opacity:.46;
  background:
    linear-gradient(180deg,#fbfcfd 0%,rgba(251,252,253,.55) 34%,rgba(251,252,253,0) 62%),
    url("img/bg-photo-hero.jpg") no-repeat center bottom;
  background-size:100% 100%,cover;
}

/* services — concrete frame as a low horizon beneath the cards */
#services::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  left:0;right:0;bottom:0;height:44%;opacity:.44;
  background:
    linear-gradient(180deg,#f6f8fa 0%,rgba(246,248,250,.5) 42%,rgba(246,248,250,0) 78%),
    url("img/bg-photo-frame.jpg") no-repeat center bottom;
  background-size:100% 100%,cover;
}

/* experience — frame to the right of the timeline, faded leftward */
#experience::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  right:0;top:0;width:54%;height:100%;opacity:.44;
  background:
    linear-gradient(90deg,#f6f8fa 0%,rgba(246,248,250,.55) 38%,rgba(246,248,250,0) 82%),
    url("img/bg-photo-frame.jpg") no-repeat right center;
  background-size:100% 100%,cover;
}

/* contact — navy skyline; the photo is already near the section
   colour, so it carries a higher opacity than the light sections */
.contact::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  left:0;right:0;bottom:0;height:78%;opacity:.34;
  background:
    linear-gradient(180deg,#12243d 0%,rgba(18,36,61,.55) 38%,rgba(18,36,61,0) 70%),
    url("img/bg-photo-skyline.jpg") no-repeat center bottom;
  background-size:100% 100%,cover;
}

/* about — drafting table, low on the right.
   NOTE: #about must NOT get overflow:hidden - the "At a glance"
   card uses position:sticky, which a clipping ancestor kills.
   So this layer stays inside the section's own bounds. */
#about::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  right:0;bottom:0;width:62%;height:62%;opacity:.44;
  background:
    linear-gradient(300deg,rgba(255,255,255,0) 18%,rgba(255,255,255,.6) 52%,#fff 82%),
    url("img/bg-photo-plans.jpg") no-repeat right bottom;
  background-size:100% 100%,cover;
}

/* projects — deliberately the quietest section: Vivian's own plan
   sheets are the content here, so the photo stays a faint horizon */
#projects::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  left:0;right:0;bottom:0;height:30%;opacity:.30;
  background:
    linear-gradient(180deg,#fff 0%,rgba(255,255,255,.5) 45%,rgba(255,255,255,0) 80%),
    url("img/bg-photo-frame.jpg") no-repeat center bottom;
  background-size:100% 100%,cover;
}

/* credentials — tied rebar lattice, abstract texture bottom-left */
#credentials::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  left:0;bottom:0;width:58%;height:66%;opacity:.40;
  background:
    linear-gradient(60deg,rgba(255,255,255,0) 20%,rgba(255,255,255,.6) 55%,#fff 85%),
    url("img/bg-photo-rebar.jpg") no-repeat left bottom;
  background-size:100% 100%,cover;
}

/* --- small screens: ease off, never switch off ------------
   Narrow text columns sit closer to the artwork, so each layer
   steps down - but stays visible. .contact is listed separately
   because it is deliberately the strongest and must not be
   dragged down by a shared rule. --- */
@media (max-width:820px){
  .hero::after{opacity:.34;height:52%}
  #about::after,#credentials::after{opacity:.30;width:78%}
  #services::after,#experience::after{opacity:.30}
  #experience::after{width:76%}
  #projects::after{opacity:.18}
  .contact::after{height:56%}
}
@media (max-width:560px){
  .hero::after{opacity:.24;height:40%}
  #about::after,#credentials::after{opacity:.22;width:100%}
  #services::after,#experience::after{opacity:.22}
  #projects::after{opacity:.13}
  .contact::after{opacity:.26;height:42%}
  .hero::before,.sec-alt::before{background-size:38px 38px}
}

/* ============================================================
   MOTION
   Only opacity and transform are animated — both are composited,
   so nothing here triggers layout or paint on scroll.
   Everything is scoped to .js: without JavaScript the page
   renders fully rather than sitting invisible at opacity 0.
   ============================================================ */

.js [data-rv]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform;
}
.js [data-rv="left"]{transform:translateX(-22px)}
.js [data-rv="right"]{transform:translateX(22px)}
.js [data-rv="scale"]{transform:scale(.965)}
.js [data-rv].rv-in{opacity:1;transform:none}
/* release the compositing hint once the element has arrived */
.js [data-rv].rv-done{will-change:auto}

/* nav: mark the section you are currently reading */
.nav-links a.here{color:var(--ink);background:var(--bg-alt)}
.nav-links a.nav-cta.here{background:var(--navy-2)!important}

/* project images lift very slightly under the cursor */
.shot-open img{transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.shot-open:hover img{transform:scale(1.028)}

/* service icons nudge up with their card */
.svc svg{transition:transform .25s cubic-bezier(.22,.61,.36,1)}
.svc:hover svg{transform:translateY(-3px)}

/* the "current role" dot on the timeline breathes */
@keyframes tl-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(212,128,42,.45)}
  50%{box-shadow:0 0 0 7px rgba(212,128,42,0)}
}
.js .timeline li:first-child::before{animation:tl-pulse 2.8s ease-in-out infinite}

/* Reduced motion: this MUST also force the revealed state. Killing the
   transition alone would strand every [data-rv] element at opacity 0. */
@media (prefers-reduced-motion:reduce){
  .js [data-rv]{opacity:1!important;transform:none!important;transition:none!important}
  .js .timeline li:first-child::before{animation:none}
  .shot-open:hover img,.svc:hover svg{transform:none}
}
