/* === Fonts === */
@font-face{font-family:'Avenir';src:url('../fonts/avenir-light.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Avenir';src:url('../fonts/avenir-heavy.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --color-dark:#281a39;
  --color-text:#626262;
  --color-blue:#0046aa;
  --color-white:#fff;
  --color-light:#f3faff;
  --font:'Avenir','Helvetica Neue',Arial,Helvetica,sans-serif;
}
html{scroll-behavior:smooth}
html,body{overflow-x:hidden}
body{font-family:var(--font);background:#fff;color:var(--color-dark);line-height:1.4;-webkit-font-smoothing:antialiased;min-width:980px;margin:0 auto}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
ul{list-style:none}

/* === Header === */
.site-header{position:sticky;top:0;z-index:100;background:var(--color-blue);height:40px}
.site-header.scrolled{box-shadow:0 2px 8px rgba(0,0,0,.18)}
.header-inner{width:980px;margin:0 auto;position:relative;height:40px}
.nav-logo{position:absolute;left:15px;top:5px;font-weight:800;font-size:24px;color:#fff;letter-spacing:.02em;line-height:28px}
.nav-link{position:absolute;top:11px;font-size:14px;font-weight:800;color:#fff;line-height:18px;transition:opacity .2s}
.nav-link:hover{opacity:.8}
.nav-about{left:630px}
.nav-work{left:695px}
.nav-resume{left:760px}
.nav-email{left:825px}
.nav-linkedin{left:890px}

/* === Hero === */
.hero{
  position:relative;
  background-image:url('../images/blue-banner.png');
  background-repeat:no-repeat;
  background-size:100% 200px;
  background-position:center top;
  background-color:#fff;
}
.hero-inner{width:980px;margin:0 auto;position:relative;height:590px}
.hero-headshot{position:absolute;left:11px;top:24px;width:249px;height:auto;object-fit:cover;z-index:3;transform:rotate(-3deg)}
.hero-heading{
  position:absolute;left:280px;top:53px;width:700px;
  font-size:24px;font-weight:400;line-height:1.3;color:#000;z-index:2;
}
.hero-heading strong{font-weight:800;font-size:24px}
.hero-intro{
  position:absolute;left:280px;top:130px;width:440px;
  font-size:16px;line-height:1.5;color:#000;z-index:2;
}
.hero-intro .hi{display:block;margin-bottom:6px;color:var(--color-blue);font-weight:800;font-size:18px}
.hero-wordcloud{position:absolute;left:56px;top:360px;width:526px;height:212px;object-fit:cover;z-index:2}
.hero-sailing{position:absolute;left:703px;top:260px;width:269px;height:auto;object-fit:cover;z-index:2}

/* === Sections === */
.section{position:relative;background:#fff}
.section-alt{background:var(--color-light)}
.section-inner{width:980px;margin:0 auto;position:relative}

/* === Section heading with watercolor underline === */
.section-underline{position:absolute;width:180px;height:14px;object-fit:cover;opacity:.7}
.section-heading{
  position:absolute;font-size:22px;font-weight:800;color:var(--color-blue);
  line-height:1.2;margin:0;white-space:nowrap;z-index:2;
}
.section-desc{
  position:absolute;font-size:18px;font-weight:400;color:var(--color-text);
  line-height:1.5;margin:0;
}

/* === Logo row (evenly distributed, vertically centered) === */
.logo-row{
  position:absolute;left:35px;right:35px;top:110px;height:90px;
  display:flex;align-items:center;justify-content:space-between;
}
.logo-row .logo-item{
  max-height:80px;max-width:180px;width:auto;height:auto;
  object-fit:cover;flex:0 0 auto;
}
/* Startups + Partners logos 10% smaller */
.sec-startups .logo-row .logo-item,
.sec-partners .logo-row .logo-item{
  max-height:72px;max-width:162px;
}

/* === Startups === */
.sec-startups .section-inner{height:230px}
.sec-startups .section-underline{left:35px;top:42px}
.sec-startups .section-heading{left:35px;top:22px}
.sec-startups .section-desc{left:35px;top:70px}

/* === Partners === */
.sec-partners .section-inner{height:240px}
.sec-partners .section-underline{left:35px;top:44px}
.sec-partners .section-heading{left:35px;top:24px}
.sec-partners .section-desc{left:35px;top:72px}

/* === Companies === */
.sec-companies .section-inner{height:230px}
.sec-companies .section-underline{left:35px;top:43px}
.sec-companies .section-heading{left:35px;top:23px}
.sec-companies .section-desc{left:35px;top:71px}

/* === Expertise === */
.sec-expertise .section-inner{height:360px}
.sec-expertise .section-underline{left:33px;top:45px}
.sec-expertise .section-heading{left:33px;top:25px}
.sec-expertise .expertise-col{
  position:absolute;width:465px;
  font-size:16px;line-height:1.5;color:#000;
}
.sec-expertise .expertise-col ul{list-style:disc;padding-left:22px}
.sec-expertise .expertise-col li{font-weight:400;margin-bottom:18px}
.sec-expertise .expertise-col li strong{font-weight:800}
.sec-expertise .col-left{left:5px;top:85px}
.sec-expertise .col-right{left:483px;top:85px}

/* === Project grid sections === */
.sec-projects .section-inner{padding-bottom:52px}
.sec-projects .section-underline{left:33px;top:46px}
.sec-projects .section-heading{left:33px;top:26px}
.project-thumb{
  position:absolute;display:block;background:#fff;
  border:8px solid #fff;
  box-shadow:0 1px 5px rgba(0,0,0,.22);
  overflow:hidden;transition:transform .2s,box-shadow .2s;
}
.project-thumb:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.28)}
.project-thumb img{width:100%;height:100%;display:block;object-fit:cover}

/* Professional Projects: 7 rows x 2 cols */
.sec-prof .section-inner{height:1600px}
.p-left{left:45px}
.p-right{left:534px}
.p-size-a{width:401px;height:190px}
.p-size-b{width:401px;height:179px}
.p-size-a2{width:401px;height:190px}
.p-row-1{top:85px}
.p-row-2{top:295px}
.p-row-3{top:505px}
.p-row-4{top:715px}
.p-row-5{top:925px}
.p-row-6{top:1135px}
.p-row-7{top:1345px}

/* Passion Projects */
.sec-passion .section-inner{height:730px}
.passion-heyuxheypm{left:45px;top:95px;width:401px;height:190px}
.passion-book{position:absolute;left:175px;top:60px;width:100px;height:auto;object-fit:cover;z-index:3;transform:rotate(-15deg);pointer-events:none;opacity:.9}
.passion-i-wrote{position:absolute;left:200px;top:50px;font-size:13px;color:var(--color-blue);font-weight:600;font-style:italic;z-index:4;pointer-events:none;transform:rotate(-15deg);white-space:nowrap}
.passion-gfi{left:534px;top:95px;width:401px;height:190px}
.passion-biguglyfish{left:45px;top:305px;width:401px;height:190px}
.passion-attache{left:534px;top:305px;width:401px;height:190px}
.passion-single{left:290px;top:515px;width:401px;height:190px}
.passion-single img{object-fit:cover;width:100%;height:100%}

/* === Industries === */
.sec-industries .section-inner{height:350px}
.sec-industries .section-underline{left:35px;top:46px}
.sec-industries .section-heading{left:35px;top:26px}
.sec-industries .ind-col{position:absolute;font-size:18px;line-height:1.5;color:var(--color-dark)}
.sec-industries .ind-col ul{list-style:disc;padding-left:22px}
.sec-industries .ind-col li{margin-bottom:8px}
.sec-industries .ind-left{left:35px;top:82px;width:400px}
.sec-industries .ind-right{left:511px;top:82px;width:400px}

/* === Education === */
.sec-education .section-inner{height:320px}
.sec-education .section-underline{left:35px;top:46px}
.sec-education .section-heading{left:35px;top:26px}
.edu-item{position:absolute;font-size:18px;line-height:1.4;color:var(--color-dark)}
.edu-item strong{font-weight:800}
.edu-icon{position:absolute;object-fit:cover}
.edu-icon-1{left:34px;top:84px;width:55px;height:auto}
.edu-text-1{left:105px;top:83px;width:400px}
.edu-icon-2{left:521px;top:91px;width:75px;height:auto}
.edu-text-2{left:602px;top:83px;width:360px}
.edu-icon-3{left:34px;top:181px;width:55px;height:auto}
.edu-text-3{left:105px;top:172px;width:400px}
.edu-icon-4{left:521px;top:182px;width:75px;height:auto}
.edu-text-4{left:602px;top:172px;width:360px}

/* === Footer === */
.site-footer{background:var(--color-blue);height:37px;position:relative}
.footer-inner{width:980px;margin:0 auto;position:relative;height:37px}
.footer-copy{position:absolute;left:6px;top:7px;font-size:14px;font-weight:700;color:#fff;line-height:18px}
.footer-link{position:absolute;top:5px;font-size:14px;font-weight:700;color:#fff;line-height:18px}
.footer-link:hover{opacity:.8}
.footer-about{left:610px}
.footer-work{left:665px}
.footer-resume{left:720px}
.footer-email{left:775px}
.footer-linkedin{left:830px}

/* === Experience page === */
.exp-hero{
  background-image:url('../images/blue-banner.png');
  background-repeat:no-repeat;
  background-size:100% 200px;
  background-position:center top;
  background-color:#fff;
  padding:50px 0 24px;
}
.exp-hero-inner{width:980px;margin:0 auto;padding:0 35px}
.exp-hero-title{font-size:42px;font-weight:800;color:var(--color-blue);line-height:1.1;margin-bottom:10px}
.exp-hero-sub{font-size:20px;font-weight:400;color:#000;line-height:1.3}
.exp-hero-sub strong{font-weight:800}

.exp-role{background:#fff;padding:24px 0 32px}
.exp-role.section-alt{background:var(--color-light)}
.exp-role-inner{width:980px;margin:0 auto;padding:0 35px;position:relative}
.exp-logo{position:absolute;right:35px;object-fit:cover;box-shadow:none;background:transparent}
.exp-logo-fa{width:75px;height:auto;top:6px}
.exp-logo-lumen{width:150px;height:auto;top:20px}
.exp-logo-sl{width:85px;height:auto;top:4px}
.exp-logo-le{width:80px;height:auto;top:4px}
.exp-logo-rt{width:120px;height:auto;top:14px}
.exp-logo-ag{width:160px;height:auto;top:20px}

.exp-role-title{font-size:22px;font-weight:800;color:var(--color-blue);line-height:1.2;margin:0 0 4px;padding-right:220px}
.exp-role-meta{font-size:16px;font-weight:400;color:#000;margin:0 0 16px;padding-right:220px}
.exp-role-lede{font-size:16px;font-weight:800;color:#000;line-height:1.5;margin:0 0 14px}
.exp-role-lede strong{font-weight:800}
.exp-bullets{list-style:disc;padding-left:22px;font-size:15px;line-height:1.6;color:#000;margin-bottom:22px}
.exp-bullets > li{margin-bottom:6px;font-weight:400}
.exp-bullets strong{font-weight:800}
.exp-sub{list-style:circle;padding-left:22px;margin-top:4px}
.exp-sub li{margin-bottom:2px}
.exp-page .exp-role a{text-decoration:underline}

.exp-strip{margin-top:8px;display:flex;flex-direction:column;gap:10px;align-items:flex-start;width:850px}
.exp-strip img{display:block;border-radius:0;box-shadow:none;background:transparent;max-width:none}
.exp-row{display:flex;flex-direction:row;gap:10px;align-items:flex-start;width:850px}
.exp-row > *{flex:0 0 auto}

/* Target grid width: each row sums to ~850px so every section forms a rectangle */

/* First American: 2 items totaling 850 with gap */
.exp-strip-fa{flex-direction:row;gap:10px}
.exp-strip-fa img:nth-child(1){width:478px;height:224px;object-fit:cover;object-position:top left}
.exp-strip-fa img:nth-child(2){width:362px;height:224px;object-fit:cover}

/* Lumen: 2 rows x 2 items, total width 850 each row */
.exp-strip-lumen .exp-row:nth-of-type(1) img:nth-child(1){width:443px;height:233px;object-fit:cover}
.exp-strip-lumen .exp-row:nth-of-type(1) img:nth-child(2){width:397px;height:233px;object-fit:cover}
.exp-strip-lumen .exp-row:nth-of-type(2) img:nth-child(1){width:443px;height:208px;object-fit:cover}
.exp-strip-lumen .exp-row:nth-of-type(2) img:nth-child(2){width:397px;height:208px;object-fit:cover}

/* Science Logic: both rows total 850; row 2 is taller so 3 tiles still span full width */
.exp-strip-sl .exp-row:nth-of-type(1) img:nth-child(1){width:428px;height:217px;object-fit:cover}
.exp-strip-sl .exp-row:nth-of-type(1) img:nth-child(2){width:412px;height:217px;object-fit:cover}
.exp-strip-sl .exp-row:nth-of-type(2) img:nth-child(1){width:342px;height:260px;object-fit:cover}
.exp-strip-sl .exp-row:nth-of-type(2) img:nth-child(2){width:357px;height:260px;object-fit:cover}
.exp-strip-sl .exp-row img.mobile{width:131px;height:260px;object-fit:cover;background:transparent}

/* Live Earth: 3 rows, each total 850, row 3 is the wide Citi hurricane dashboard */
.exp-strip-le .exp-row:nth-of-type(1) img:nth-child(1){width:420px;height:220px;object-fit:cover}
.exp-strip-le .exp-row:nth-of-type(1) img:nth-child(2){width:420px;height:220px;object-fit:cover}
.exp-strip-le .exp-row:nth-of-type(2) img:nth-child(1){width:420px;height:220px;object-fit:cover}
.exp-strip-le .exp-video{width:420px;height:220px;display:block;border-radius:0;overflow:hidden;box-shadow:none;background:#000;object-fit:cover}
.exp-strip-le .exp-wide{width:850px;height:auto;object-fit:cover;align-self:flex-start}

/* Ringtail: top row = collage (square) + 2 stacked tiles (same total height); bottom row = 3 equal tiles; both rows total ~850 wide */
.exp-strip-rt .rt-top{display:flex;flex-direction:row;gap:10px;align-items:stretch}
.exp-strip-rt .rt-collage-img{width:440px;height:454px;object-fit:cover;box-shadow:none;background:transparent}
.exp-strip-rt .rt-col{display:flex;flex-direction:column;gap:10px;flex:0 0 400px;width:400px}
.exp-strip-rt .rt-col img{width:400px;height:222px;object-fit:cover;flex:0 0 auto}
.exp-strip-rt .rt-bottom{display:flex;flex-direction:row;gap:10px;align-items:stretch}
.exp-strip-rt .rt-bottom img{width:277px;height:200px;object-fit:cover}
.exp-strip-rt .rt-bottom img:last-child{width:276px}

/* AgileGraph: row 1 = 2 charts totaling 850; row 2 = wide 850 toolkit diagram */
.exp-strip-ag .exp-row img:nth-child(1){width:388px;height:233px;object-fit:cover}
.exp-strip-ag .exp-row img:nth-child(2){width:452px;height:233px;object-fit:cover}
.exp-strip-ag .exp-wide{width:850px;height:400px;object-fit:cover;align-self:flex-start}

.exp-cta{background:#fff;padding:36px 0 48px;text-align:center}
.exp-cta-btn{
  display:inline-block;background:var(--color-blue);color:#fff;
  font-weight:800;font-size:16px;padding:12px 32px;border-radius:24px;
  transition:opacity .2s;
}
.exp-cta-btn:hover{opacity:.88}

/* === Mobile (<=760px): stack vertically, drop absolute positioning === */
@media (max-width:760px){
  html,body{overflow-x:hidden}
  body{min-width:0;width:100%;margin:0;zoom:unset !important}

  /* Header: stack nav, center items */
  .site-header{height:auto;padding:8px 0}
  .header-inner{width:100%;height:auto;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 14px;padding:0 12px}
  .nav-logo,.nav-link{position:static}
  .nav-logo{font-size:20px;line-height:1;width:100%;text-align:center;margin-bottom:2px}
  .nav-link{font-size:13px}

  /* Hero: stack image + text + images */
  .hero{background-size:cover;background-position:top center;padding:20px 16px 24px}
  .hero-inner{width:100%;height:auto;display:flex;flex-direction:column;align-items:center;gap:18px}
  .hero-headshot,.hero-heading,.hero-intro,.hero-wordcloud,.hero-sailing{position:static;transform:none}
  .hero-headshot{width:60%;max-width:220px}
  .hero-heading{width:100%;text-align:center;font-size:22px}
  .hero-heading strong{font-size:22px}
  .hero-intro{width:100%;text-align:left;font-size:15px}
  .hero-intro .hi{text-align:center}
  .hero-wordcloud{width:100%;height:auto;max-width:526px}
  .hero-sailing{width:80%;max-width:269px;height:auto}

  /* Generic section containers: flex column so content flows vertically */
  .section-inner{width:100%;height:auto !important;padding:24px 16px 28px;display:flex;flex-direction:column;align-items:flex-start}
  /* Hide the standalone underline image; we paint the underline via background on the heading instead */
  .section-underline{display:none}
  .section-heading{
    position:static;margin:0 0 12px;order:1;font-size:26px;
    background-image:url('../images/heading-underline.png');
    background-repeat:no-repeat;
    background-position:left 85%;
    background-size:140px 12px;
    padding-bottom:6px;
    display:inline-block;
  }
  .section-desc{position:static;order:2;margin:0 0 16px;width:100%;font-size:16px}
  .sec-expertise .expertise-col,
  .sec-industries .ind-col,
  .logo-row,
  .project-thumb,
  .edu-icon,
  .edu-item{order:3}

  /* Logo rows: wrap into grid */
  /* Logo rows: balanced grid, stretched full-width so cells space evenly */
  .logo-row{position:static;display:grid;grid-template-columns:repeat(2,1fr);gap:20px 0;justify-items:center;align-items:center;height:auto;width:100%;padding:0}
  .sec-partners .logo-row{grid-template-columns:repeat(3,1fr)}
  .logo-row .logo-item,
  .sec-startups .logo-row .logo-item,
  .sec-partners .logo-row .logo-item{max-height:54px;max-width:120px;width:auto;height:auto}
  .sec-partners .logo-row .logo-item{max-width:90px}

  /* Expertise + Industries: one column */
  .sec-expertise .expertise-col,
  .sec-industries .ind-col{position:static;width:100%;margin-bottom:16px;left:auto;top:auto}

  /* Project grids: single column stack */
  .sec-projects .section-inner{padding-bottom:24px}
  .project-thumb{position:static;width:100% !important;max-width:500px;height:auto !important;aspect-ratio:401/179;margin:10px auto;order:4;align-self:center}
  .project-thumb img{height:100%}

  /* Passion book callout: hide overlay book/i-wrote in mobile (positioned absolutely relative to card) */
  .passion-book,.passion-i-wrote{display:none}

  /* Education: stack each item with icon */
  .edu-icon,.edu-item{position:static}
  .edu-icon{width:48px !important;height:auto;margin:12px 0 6px}
  .edu-item{width:100%;margin-bottom:8px}

  /* Experience page mobile */
  .exp-hero{padding:20px 16px 24px;background-size:cover}
  .exp-hero-inner{width:100%;padding:0}
  .exp-hero-title{font-size:30px}
  .exp-hero-sub{font-size:16px}
  .exp-role{padding:20px 0 28px}
  .exp-role-inner{width:100%;padding:0 16px}
  .exp-logo{position:static;margin-bottom:10px;max-height:50px !important;max-width:140px !important}
  .exp-role-title,.exp-role-meta{padding-right:0}
  .exp-strip,
  .exp-strip-fa,.exp-strip-lumen,.exp-strip-sl,.exp-strip-le,.exp-strip-rt,.exp-strip-ag,
  .exp-row,.rt-top,.rt-bottom,.rt-col{flex-direction:column !important;padding:0;width:100%;gap:10px}
  .exp-strip img,
  .exp-strip-fa img,
  .exp-strip-lumen img,
  .exp-strip-sl img,
  .exp-strip-sl .exp-row img.mobile,
  .exp-strip-le img,
  .exp-strip-le .exp-video,
  .exp-strip-le .exp-wide,
  .exp-strip-rt img,
  .exp-strip-rt .rt-collage-img,
  .exp-strip-rt .rt-col img,
  .exp-strip-rt .rt-bottom img,
  .exp-strip-ag img,
  .exp-strip-ag .exp-wide{width:100% !important;max-width:100% !important;height:auto !important;flex:0 0 auto}

  /* Hide the Science Logic phone screenshot on mobile */
  .exp-strip-sl .exp-row img.mobile{display:none}

  .exp-cta{padding:24px 0}

  /* Footer: stacked */
  .site-footer{height:auto;padding:12px 0}
  .footer-inner{width:100%;height:auto;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 12px;padding:0 12px;text-align:center}
  .footer-copy,.footer-link{position:static}
  .footer-copy{width:100%;text-align:center;font-size:13px;margin-bottom:4px}
  .footer-link{font-size:13px}
}
