/* Home page only. Sizes follow the system described in site.css. */

.col{
  max-width:calc(var(--col) + 2 * var(--gutter));
  margin-inline:auto;
  padding:0 var(--gutter);
}

/* a short scroll carries you to the next section */
html.home{scroll-snap-type:y mandatory;scroll-padding-top:0}
html.home section{scroll-snap-align:start}
html.home .intro{scroll-margin-top:52px}
html.home .foot{scroll-snap-align:end}

/* each section gets a screen to itself, with its content centred in it */
section{
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:var(--gap) 0;
}

/* the first one shares its screen with the header (52px tall) */
.intro{
  min-height:calc(100vh - 52px);
  min-height:calc(100svh - 52px);
}

section > h2{padding:0 0 20px}

/* ---------- intro ---------- */

.intro h1{font-size:14px;line-height:20px;font-weight:400}

.role{margin-top:14px;line-height:20px;color:var(--grey)}

.intro .lead{margin-top:32px;color:var(--black)}
.intro p + p{margin-top:20px}

/* ---------- work ---------- */

.list{list-style:none;border-top:.5px solid var(--line)}

/* only titles at rest; the row you point at opens, the others fade back */
.row{display:block;padding:12px 0;border-bottom:.5px solid var(--line)}
.row .head{display:flex;justify-content:space-between;gap:32px}
.row .title{color:var(--text);transition:color .2s ease}
.row .where{flex:none;color:var(--grey)}

/* small outlined tag, used to mark the case study that needs a password */
.tag{
  display:inline-block;
  margin-left:6px;
  padding:3px 6px;
  border:.5px solid var(--grey);
  border-radius:5px;
  font-size:10px;
  line-height:10px;
  letter-spacing:.06em;
  color:var(--grey);
  vertical-align:2px;
}

.row .more{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .35s cubic-bezier(.3,.7,.3,1);
}
.row .more > span{display:block;overflow:hidden}
.row .what{display:block;max-width:440px;padding-top:8px;color:var(--text)}
.row .result{display:block;color:var(--grey)}

.row:hover .more,.row:focus-visible .more{grid-template-rows:1fr}
.row:hover .title,.row:focus-visible .title{color:var(--black)}
.list:hover .row:not(:hover) .title{color:var(--grey)}

/* no hover on touch screens, so everything is open */
@media (hover:none){
  .row .more{grid-template-rows:1fr}
}

/* ---------- about ---------- */

.rows{margin-top:32px;border-top:.5px solid var(--line)}

.rows > div{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:32px;
  padding:16px 0;
  border-bottom:.5px solid var(--line);
}
.rows dt{color:var(--grey)}

/* ---------- contact ---------- */

.contact h2{padding-bottom:24px}

/* ---------- small screens ---------- */

@media (max-width:560px){
  .rows > div{grid-template-columns:88px minmax(0,1fr);gap:20px}
  .row{gap:20px}
}
