/* Homepage layout. Loaded after home.css so these rules win.
   Case-study pages do not use this file. */

html.home-page{
  --bg:#FAFAF9;
  --ink:#141414;
  --muted:#4E4E4A;
  --font-display:"Barlow Semi Condensed",sans-serif;
  --font-heading:"Barlow Semi Condensed",sans-serif;
  scroll-padding-top:80px;
  scroll-snap-type:none;
}
html.home-page body{
  background:#FAFAF9;
  color:#141414;
}
html.home-page ::selection{background:#141414;color:#fff}
html.home-page a:focus-visible{
  outline:2px solid #141414;
  outline-offset:3px;
  border-radius:2px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:40;
  box-sizing:border-box;
  height:68px;
  background:rgba(250,250,249,.8);
  -webkit-backdrop-filter:blur(14px) saturate(1.4);
  backdrop-filter:blur(14px) saturate(1.4);
  border-bottom:1px solid transparent;
  transition:border-color .35s cubic-bezier(.32,.72,0,1);
}
.site-header.is-scrolled{border-bottom-color:rgba(20,20,20,.1)}
.bar{
  box-sizing:border-box;
  max-width:1180px;
  height:100%;
  margin:0 auto;
  padding:0 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.site-header .logo{
  font-family:"Barlow Semi Condensed",sans-serif;
  font-stretch:100%;
  font-weight:600;
  font-size:16px;
  letter-spacing:0;
  color:#141414;
  text-decoration:none;
}
.touch{
  font-family:"Work Sans",sans-serif;
  font-weight:500;
  font-size:13px;
  line-height:1;
  color:#141414;
  text-decoration:underline;
  text-underline-offset:5px;
  border-radius:2px;
  transition:background-color .35s cubic-bezier(.32,.72,0,1),color .35s cubic-bezier(.32,.72,0,1),padding .35s cubic-bezier(.32,.72,0,1),height .35s cubic-bezier(.32,.72,0,1);
}
.touch:active{transform:scale(.97)}
.site-header.is-scrolled .touch{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 13px;
  background:#141414;
  color:#fff;
  text-decoration:none;
}

html.home-page .home{
  box-sizing:border-box;
  max-width:1180px;
  margin:0 auto;
  padding:0 48px;
  display:grid;
  grid-template-columns:minmax(0,380px) minmax(0,1fr);
  column-gap:72px;
  align-items:start;
}
html.home-page .intro{
  position:sticky;
  top:68px;
  height:min(900px,calc(100vh - 68px));
  display:flex;
  align-items:center;
  padding:0;
}
.intro-inner{width:100%}
.avatar{
  display:block;
  width:56px;
  height:56px;
  border-radius:2px;
  overflow:hidden;
  box-shadow:0 0 0 1px rgba(20,20,20,.1);
}
.avatar img{
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:42% 36%;
  /* Scale first, then shift. The shift stays 8px, not 8px times the zoom. */
  transform:translateY(-8px) scale(1.9);
  transform-origin:42% 36%;
}
html.home-page .intro h1{
  margin:22px 0 0;
  max-width:14em;
  font-family:"Barlow Semi Condensed",sans-serif;
  font-stretch:100%;
  font-weight:700;
  font-size:29px;
  line-height:1.08;
  letter-spacing:-0.01em;
  text-wrap:balance;
  color:#141414;
}
html.home-page .intro h1 .rest{
  display:block;
  color:#9A6450;
}
html.home-page .intro p{
  margin:20px 0 0;
  max-width:36ch;
  font-family:"Work Sans",sans-serif;
  font-size:14px;
  font-weight:400;
  line-height:1.5;
  color:#4E4E4A;
  text-wrap:pretty;
}
html.home-page .intro p b{
  font-weight:600;
  color:#141414;
}
.ext{
  display:inline-block;
  margin-top:20px;
  font-family:"Work Sans",sans-serif;
  font-weight:500;
  font-size:12.5px;
  color:#4E4E4A;
  text-decoration:underline;
  text-decoration-color:rgba(20,20,20,.1);
  text-underline-offset:3px;
}
.ext:hover{color:#141414}
/* A normal space left LinkedIn and Résumé almost touching. */
.ext + .ext{margin-left:16px}

html.home-page .rail{
  display:flex;
  flex-direction:column;
  gap:128px;
  padding:40px 0 160px;
}
html.home-page .rail > .card{
  position:relative;
  display:block;
  height:auto;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
  scroll-snap-align:none;
  transform:none;
}
html.home-page .rail > .card:hover,
html.home-page .rail > .card:active,
html.home-page .rail > .card:has(a.case-link):hover,
html.home-page .rail > .card:has(a.case-link):active{
  transform:none;
  box-shadow:none;
}
.case-visual,
.case-co,
.case-title,
.case-result,
.link-label{
  transition:transform .8s cubic-bezier(.32,.72,0,1);
}
.link-label{display:inline-block}
html.home-page .card.quest .case-visual > .sq-badge{
  width:112px;
  height:112px;
  transform-origin:center;
  transition:transform 1.4s cubic-bezier(.32,.72,0,1);
}
@media (min-width:768px) and (max-width:1100px){
  html.home-page .card.quest .case-visual > .sq-badge{
    width:88px;
    height:88px;
  }
}
@media (max-width:767px){
  html.home-page .card.quest .case-visual > .sq-badge{
    width:80px;
    height:80px;
  }
}
@media (hover:hover) and (pointer:fine){
  .card:hover .case-visual,
  .card:hover .case-co,
  .card:hover .case-title,
  .card:hover .case-result,
  .card:hover .link-label{transform:translateY(-4px)}
  html.home-page .card[data-case="closet"]:hover .sq-badge{transform:rotate(120deg)}
}
.case-visual{
  position:relative;
  aspect-ratio:582 / 488;
  border-radius:2px;
  overflow:hidden;
  background:radial-gradient(120% 95% at 85% 100%,#7C3B2C 0%,#55281D 32%,#2A1912 66%,#17110D 100%);
}
.rail > .card:nth-child(2) .case-visual{
  background:radial-gradient(120% 95% at 10% 100%,#7C3B2C 0%,#55281D 32%,#2A1912 66%,#17110D 100%);
}
.rail > .card:nth-child(4) .case-visual{
  background:radial-gradient(130% 100% at 50% 0%,#6E3426 0%,#462117 35%,#22160F 70%,#151010 100%);
}

html.home-page .case-visual > .closet-card,
html.home-page .case-visual > .shipped-visual,
html.home-page .atl-slot{
  position:absolute !important;
  inset:0 !important;
  z-index:1;
  width:100% !important;
  height:100% !important;
  aspect-ratio:auto !important;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none;
}
html.home-page .closet-card::before,
html.home-page .shipped-visual::before,
html.home-page .atl-hero::before,
html.home-page .atl-hero::after,
html.home-page .atl-hero-m::before,
html.home-page .atl-hero-m::after{display:none}
html.home-page .closet-fit{
  width:100%;
  height:100% !important;
  aspect-ratio:auto !important;
}
html.home-page .atl-hero,
html.home-page .atl-hero-m{
  background:transparent !important;
  border:0 !important;
}

.case-copy{margin-top:22px}
.case-co{
  margin:0 0 6px;
  font-family:"Work Sans",sans-serif;
  font-weight:500;
  font-size:12.5px;
  line-height:1.3;
  color:#5C5C57;
}
.case-title{
  margin:0;
  font-family:"Barlow Semi Condensed",sans-serif;
  font-stretch:100%;
  font-weight:600;
  font-size:17.5px;
  line-height:1.3;
  letter-spacing:0;
  color:#141414;
  text-wrap:pretty;
}
.case-result{
  margin:6px 0 0;
  font-family:"Work Sans",sans-serif;
  font-weight:400;
  font-size:12.5px;
  line-height:1.4;
  color:#5C5C57;
}
.case-result b,
.case-result .gain{
  font-weight:600;
  color:#141414;
}
html.home-page .case-link{
  align-self:auto;
  display:inline-flex;
  align-items:center;
  height:auto;
  margin-top:10px;
  padding:0;
  border-radius:2px;
  background:transparent;
  color:#141414;
  font-family:"Work Sans",sans-serif;
  font-weight:500;
  font-size:12.5px;
  line-height:1.3;
  text-decoration:none;
  box-shadow:none;
}
/* One link covers the whole card. The card is already position: relative,
   so this layer stretches to its edges. Atlassian has no link. */
html.home-page .rail > .card:has(a.case-link){
  cursor:pointer;
}
html.home-page .rail > .card a.case-link::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:5;
}
/* The picture sits in the card, including inside a shadow or a frame.
   It must not take the click. The link layer above it does. */
html.home-page .case-visual,
html.home-page .case-visual *{
  pointer-events:none;
}
html.home-page .case-link:hover,
html.home-page .case-link:active{background:transparent;color:#141414}
.case-link .arrow{
  display:inline-block;
  margin-left:.35em;
  transition:transform .8s cubic-bezier(.32,.72,0,1);
}
.case-link:hover .arrow{transform:translateX(3px)}
.case-link:active .link-label{transform:translateY(-4px) scale(.97)}
html.home-page .card .soon{
  display:block;
  height:auto;
  margin:10px 0 0;
  padding:0;
  border-radius:0;
  background:transparent !important;
  box-shadow:none !important;
  color:#5C5C57;
  font-family:"Work Sans",sans-serif;
  font-weight:400;
  font-size:12.5px;
  line-height:1.3;
}

.site-foot{
  background:#FAFAF9;
  border-top:1px solid rgba(20,20,20,.1);
}
.site-foot .bar{
  display:block;
  height:auto;
  padding:160px 48px 56px;
}
.site-foot p{
  max-width:26em;
  margin:0;
  font-family:"Barlow Semi Condensed",sans-serif;
  font-weight:500;
  font-size:23px;
  line-height:1.32;
  color:#3A3A37;
}
.site-foot .mail{
  font-weight:600;
  color:#141414;
  text-decoration:underline;
  text-decoration-color:rgba(20,20,20,.3);
  text-underline-offset:3px;
}
.site-foot .mail:hover{text-decoration-color:#141414}
.foot-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:120px;
  font-family:"Work Sans",sans-serif;
  font-weight:400;
  font-size:12.5px;
  color:#5C5C57;
}
.foot-row a{
  color:#5C5C57;
  text-decoration:underline;
  text-decoration-color:rgba(20,20,20,.1);
  text-underline-offset:3px;
}
.foot-row a:hover{color:#141414}
.foot-row a + a{margin-left:16px}

@media (max-width:900px){
  .bar{padding-left:20px;padding-right:20px}
  .touch{
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }
  .site-header.is-scrolled .touch{height:44px}
  html.home-page .home{display:block;padding-left:20px;padding-right:20px}
  html.home-page .intro{
    position:static;
    height:auto;
    display:block;
    padding-top:40px;
  }
  html.home-page .rail{gap:56px;padding-bottom:96px}
  .site-foot .bar{padding:96px 20px 40px}
  .site-foot p{font-size:19px}
  .foot-row{flex-direction:column;align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  html.home-page *,
  html.home-page *::before,
  html.home-page *::after{
    transition:none !important;
  }
  .card:hover .case-visual,
  .card:hover .case-co,
  .card:hover .case-title,
  .card:hover .case-result,
  .card:hover .link-label,
  .card[data-case="closet"]:hover .sq-badge,
  .touch:active,
  .case-link:active,
  .case-link:active .link-label{transform:none}
}
