/* ==========================================================================
   Yousef Alhaddad, portfolio
   Design tokens follow the reference site: fluid 10px rem base, 650px
   breakpoint, white/black palette, expo easing, mix-blend-difference header.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300..700;1,400&family=Instrument+Serif:ital@0;1&display=swap');

/* --- reset ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

img, video, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }

/* --- tokens --------------------------------------------------------------- */

:root {
  --size: 390;                       /* design width, mobile */
  --bg: #ffffff;
  --fg: #000000;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-out: cubic-bezier(.785, .135, .15, .86);
  --dur: 1s;
  --gutter: 2rem;
  --header-h: 8.5rem;
}

@media (min-width: 650px) {
  :root {
    --size: 1500;                    /* design width, desktop */
    --gutter: 5rem;
    --header-h: 11rem;
  }
}

html {
  /* 1rem === 10px at the design width; scales with the viewport, capped.
     The reference floors this at 7px, which makes body copy ~12.6px on a
     900px-wide window, floored at 9px here so it stays readable. */
  font-size: clamp(9px, 14px, 10 * 100vw / var(--size));
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-kerning: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 1.8rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
  background: var(--bg);
  font-weight: 400;
}

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  letter-spacing: 0;
  font-weight: 400;
}

/* --- layout helpers ------------------------------------------------------- */

.site-max {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin-inline: auto;
}

.measure { max-width: 62rem; }

.eyebrow {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1;
}

.muted   { opacity: .45; }
.muted-2 { opacity: .25; }

.rule {
  height: 1px;
  min-height: 1px;
  background: currentColor;
  opacity: .14;
  border: 0;
}

/* --- links ---------------------------------------------------------------- */

.site-link {
  opacity: .25;
  transition: opacity .35s ease-out;
}
.site-link:hover,
.site-link.is-active { opacity: 1; }

/* animated double underline, lifted from the reference */
.uline {
  display: inline-flex;
  position: relative;
  white-space: nowrap;
}
.uline::before,
.uline::after {
  content: '';
  position: absolute;
  bottom: -.2em;
  right: 0;
  left: 0;
  height: .05em;
  min-height: 1px;
  background-color: currentColor;
}
.uline::before {
  transform-origin: left;
  transform: scaleX(1);
  transition: transform .55s var(--ease-out) .5s;
}
.uline::after,
.uline:hover::before {
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .55s var(--ease-out) 0s;
}
.uline:hover::after {
  transform-origin: left;
  transform: scaleX(1);
  transition: transform .55s var(--ease-out) .2s;
}

/* --- media --------------------------------------------------------------- */

.media-fill { position: relative; overflow: hidden; }
.media-fill > img,
.media-fill > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* blur-up: the LQIP sits behind, the real asset fades in over it */
.lqip {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Only hide things when JS is confirmed running (the .js class is added by an
   inline script in <head>). Otherwise a single JS error takes the whole page's
   imagery down with it, which is exactly what happened once already. */
.js .fade-in {
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.js .fade-in.is-loaded { opacity: 1; }

/* --- header -------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  color: #fff;
  mix-blend-mode: difference;   /* black on white, white over imagery */
  pointer-events: none;
}
@media (min-width: 650px) { .header { padding-top: 3.5rem; } }

.header a,
.header button { pointer-events: auto; }

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.logo { display: block; line-height: 1; }
.logo__name {
  font-size: 1.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.logo__disciplines {
  display: block;
  margin-top: .6rem;
  font-size: 1.3rem;
  opacity: .5;
}

.nav {
  display: none;
  gap: 2rem;
  font-size: 1.5rem;
}
@media (min-width: 650px) {
  .nav {
    display: flex;
    position: absolute;
    top: .2rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

.header__cta { display: none; font-size: 1.5rem; }
@media (min-width: 650px) { .header__cta { display: inline-flex; } }

/* mobile nav lives bottom-right so the header stays a single line */
.nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  gap: 1.8rem;
  padding: 1.6rem var(--gutter) 1.8rem;
  font-size: 1.4rem;
  color: #fff;
  mix-blend-mode: difference;
}
@media (min-width: 650px) { .nav-mobile { display: none; } }

/* --- home: horizontal carousel ------------------------------------------- */

.home { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }

.rail {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0;                 /* squares butt together into one continuous strip */
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  /* NB: no scroll-snap here. Snapping fights programmatic scrollLeft, which
     makes the wheel and the arrow buttons feel completely dead. */
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; user-select: none; }
.rail.is-dragging a { pointer-events: none; }

.slide {
  flex: 0 0 auto;
  width: 62vw;
}
@media (min-width: 650px) { .slide { width: 30rem; } }

/* --- carousel arrows ----------------------------------------------------- */

.rail-nav { display: flex; gap: .8rem; align-items: center; }

.rail-nav button {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 50%;
  transition: background-color .3s ease-out, color .3s ease-out,
              border-color .3s ease-out, opacity .3s ease-out;
}
.rail-nav button:hover:not(:disabled) { background: #000; color: #fff; border-color: #000; }
.rail-nav button:disabled { opacity: .2; cursor: default; }
.rail-nav svg { width: 1.3rem; height: 1.3rem; }

/* The square alone sets the slide's height, and the label hangs above it out
   of flow. That way a title wrapping to two lines cannot push its tile out of
   line with its neighbours. Same mechanism the reference site uses. */
.slide__content {
  position: relative;
  padding-top: 100%;
}

.slide__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 1.4rem;
  /* the frames now touch, so the labels need their own gutter or adjacent
     titles run into each other */
  padding-right: 2rem;
  transition: transform var(--dur) var(--ease);
}
@media (min-width: 650px) { .slide__text { padding-right: 3rem; } }
.slide:hover .slide__text { transform: translate3d(0, -.6rem, 0); }

.slide__title {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.slide__tag {
  margin-top: .7rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  opacity: .35;
}

.slide__frame {
  position: absolute;             /* square comes from .slide__content */
  inset: 0;
  overflow: hidden;
}
.slide__frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.slide:hover .slide__frame > * { transform: scale(1.04); }

.rail__end { flex: 0 0 var(--gutter); }

/* Optional staggered strip: every other tile drops down for a zig-zag edge.
   Switch on with STAGGER = True in _build/build.py, then rerun build.py.
   Works because each tile's height is now just the square. */
.rail.is-staggered .slide:nth-child(even) { transform: translateY(7rem); }
@media (max-width: 649px) {
  .rail.is-staggered .slide:nth-child(even) { transform: translateY(4rem); }
}

/* bottom bar: view toggle + clock */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 2rem var(--gutter) 2.4rem;
  font-size: 1.4rem;
  pointer-events: none;
}
@media (min-width: 650px) { .bottom-bar { display: flex; } }
.bottom-bar a, .bottom-bar button { pointer-events: auto; }
.view-toggle { display: flex; gap: 1.6rem; }

/* --- index / list view --------------------------------------------------- */

.page { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 12rem; }

.page__head { margin-bottom: 6rem; }
.page__title {
  font-size: 4.4rem;
  line-height: .95;
  font-weight: 500;
  letter-spacing: -0.03em;
}
@media (min-width: 650px) { .page__title { font-size: 7.2rem; } }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.6rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
}
.section-head h2 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.6rem;
  margin-bottom: 9rem;
}
@media (min-width: 650px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4rem 2.4rem; }
}

.card__frame {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: #f2f2f2;
}
.card__frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .7s var(--ease);
}
.card:hover .card__frame > * { transform: scale(1.045); }

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}
.card__title {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.card__year { font-size: 1.3rem; opacity: .35; flex: 0 0 auto; }
.card__role { margin-top: .4rem; font-size: 1.3rem; opacity: .45; line-height: 1.25; }

/* --- project page -------------------------------------------------------- */

.project__head {
  display: grid;
  gap: 3rem;
  margin-bottom: 5rem;
}
@media (min-width: 650px) {
  .project__head {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 7rem;
  }
}

.project__title {
  font-size: 4rem;
  line-height: .95;
  font-weight: 500;
  letter-spacing: -0.03em;
}
@media (min-width: 650px) { .project__title { font-size: 6.4rem; } }

.project__sub {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
  font-size: 1.4rem;
}

.project__prose > p + p { margin-top: 1.2rem; }
.project__prose { font-size: 1.7rem; line-height: 1.45; }
@media (min-width: 650px) { .project__prose { font-size: 1.8rem; } }

.project__prose a { text-decoration: underline; text-underline-offset: .22em; }

.tools {
  margin-top: 2.4rem;
  font-size: 1.4rem;
  line-height: 1.5;
  opacity: .5;
}
.tools p + p { margin-top: .3rem; }

.links { margin-top: 2.4rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.links a { font-size: 1.4rem; }

.stack { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 650px) { .stack { gap: 4rem; } }

.stack figure { position: relative; }

/* Cap media by height, not width. A 1:1 or portrait asset at full container
   width ends up taller than the screen, so narrow it until it fits. Landscape
   is unaffected on normal displays because its height is small already.
   --ar is the asset's width/height, written inline by the build. */
.frame {
  --media-max: 82vh;
  margin-inline: auto;
  max-width: min(100%, calc(var(--media-max) * var(--ar, 1.7778)));
}

.embed { --media-max: 82vh; margin-inline: auto; max-width: min(100%, calc(var(--media-max) * 1.7778)); }

/* On phones the viewport is tall and narrow, so full width is already the
   smaller constraint. Leave it alone. */
@media (max-width: 649px) {
  .frame, .embed { --media-max: 200vh; }
}

.embed {
  position: relative;
  /* aspect-ratio, not padding-top: percentage padding resolves against the
     container width, so it fought the max-width cap above and skewed the box */
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.embed > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}

/* facade: poster + play button, real player loads on demand */
.embed__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .5s var(--ease), transform 1.2s var(--ease);
}
.embed__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  color: #fff;
}
.embed:hover .embed__poster { opacity: .62; transform: scale(1.02); }
.embed.is-playing .embed__poster,
.embed.is-playing .embed__play { display: none; }

.embed__badge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 2rem 1.2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 100px;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, .28);
  font-size: 1.4rem;
  letter-spacing: .02em;
  transition: background-color .35s ease-out, border-color .35s ease-out;
}
.embed__play:hover .embed__badge { background: rgba(0, 0, 0, .6); border-color: #fff; }
.embed__badge svg { width: 1.4rem; height: 1.4rem; flex: 0 0 auto; }

.embed__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.6rem;
  z-index: 1;
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .7);
  padding: 0 2rem;
  display: none;
}
.embed.is-external .embed__note { display: block; }
.embed.is-playing .embed__note { display: none; }

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

body.is-locked { overflow: hidden; }

.contact {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 2rem, 0);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s;
  overflow-y: auto;
}
.contact.is-open { opacity: 1; visibility: visible; transform: none; }

.contact__inner {
  width: 100%;
  max-width: 78rem;
  margin: auto;
  padding: 10rem var(--gutter) 6rem;
}

.contact__top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 2.5rem var(--gutter);
}
@media (min-width: 650px) { .contact__top { padding-top: 3.5rem; } }

.contact__title {
  font-size: 4rem;
  line-height: .95;
  font-weight: 500;
  letter-spacing: -0.03em;
}
@media (min-width: 650px) { .contact__title { font-size: 6.4rem; } }

.contact__intro { margin-top: 1.6rem; font-size: 1.7rem; opacity: .5; max-width: 46rem; }

.contact form { margin-top: 4.5rem; display: grid; gap: 0; }

.field { position: relative; border-bottom: 1px solid rgba(0, 0, 0, .18); }
.field + .field { margin-top: 0; }

.field label {
  display: block;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .4;
  padding-top: 2.2rem;
}

.field input,
.field textarea {
  width: 100%;
  display: block;
  font: inherit;
  font-size: 1.9rem;
  letter-spacing: -0.015em;
  color: inherit;
  background: none;
  border: 0;
  outline: none;
  padding: .8rem 0 1.8rem;
  resize: none;
}
.field textarea { min-height: 12rem; line-height: 1.4; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(0, 0, 0, .22); }

.contact__actions {
  margin-top: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 2.6rem;
  background: #000;
  color: #fff;
  border-radius: 100px;
  font-size: 1.5rem;
  transition: opacity .3s ease-out;
}
.btn:hover { opacity: .78; }
.btn:disabled { opacity: .35; cursor: default; }

.contact__status { font-size: 1.4rem; opacity: .55; min-height: 2rem; }
.contact__status.is-error { opacity: 1; color: #b00020; }
.contact__status.is-ok { opacity: 1; }

.contact__direct { margin-top: 4rem; font-size: 1.4rem; opacity: .5; }
.contact__direct a { text-decoration: underline; text-underline-offset: .22em; }

.close-btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-size: 1.4rem;
}
.close-btn svg { width: 1.2rem; height: 1.2rem; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 9rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(0, 0, 0, .14);
}
.pager__item { max-width: 45%; }
.pager__label { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .07em; opacity: .35; }
.pager__title { margin-top: .5rem; font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.pager__item.is-end { text-align: right; margin-left: auto; }

/* --- press -------------------------------------------------------------- */

.press-item {
  display: grid;
  gap: 1.4rem;
  padding: 3.2rem 0;
  border-top: 1px solid rgba(0, 0, 0, .14);
  transition: opacity .4s ease-out;
}
@media (min-width: 650px) {
  .press-item { grid-template-columns: 20rem 1fr 14rem; gap: 4rem; padding: 4rem 0; align-items: start; }
}
.press-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, .14); }

.press-item__pub { font-size: 1.4rem; opacity: .45; }
.press-item__title { font-size: 2.4rem; line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; }
@media (min-width: 650px) { .press-item__title { font-size: 3.2rem; } }
.press-item__excerpt { margin-top: 1.2rem; font-size: 1.6rem; line-height: 1.45; opacity: .6; max-width: 52rem; }
.press-item__quote { margin-top: 1.6rem; font-size: 2rem; line-height: 1.3; }
.press-item__go { font-size: 1.4rem; }
@media (min-width: 650px) { .press-item__go { text-align: right; } }

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

.about {
  display: grid;
  gap: 5rem;
}
@media (min-width: 650px) {
  .about { grid-template-columns: 1.15fr .85fr; gap: 8rem; align-items: start; }
}

.about__lead {
  font-size: 2.4rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 2.8rem;
}
@media (min-width: 650px) { .about__lead { font-size: 3.2rem; } }

.about__body { font-size: 1.7rem; line-height: 1.5; }
.about__body p + p { margin-top: 1.4rem; }
@media (min-width: 650px) { .about__body { font-size: 1.8rem; } }

.about__aside { font-size: 1.5rem; }

.deflist { display: grid; gap: 0; }
.deflist > div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
}
.deflist dt { opacity: .45; flex: 0 0 auto; }
.deflist dd { text-align: right; }

.credit-list { display: grid; gap: 0; }
.credit-list > li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
  font-size: 1.5rem;
}
.credit-list span:last-child { opacity: .45; text-align: right; flex: 0 0 auto; }

/* stacked variant: label on its own line, detail muted underneath. For entries
   whose two halves are both too long to sit side by side in the aside column. */
.credit-list--stack > li {
  display: block;
  padding: 1.4rem 0;
}
.credit-list--stack span:first-child { display: block; line-height: 1.3; }
.credit-list--stack span:last-child {
  display: block;
  margin-top: .4rem;
  text-align: left;
  font-size: 1.4rem;
  line-height: 1.3;
}

/* wider right column, for prose-length values like the favourites list */
.credit-list--wide > li { gap: 3rem; align-items: baseline; }
.credit-list--wide span:first-child { flex: 0 0 7rem; opacity: .45; }
.credit-list--wide span:last-child {
  opacity: 1;
  text-align: left;
  flex: 1 1 auto;
  line-height: 1.35;
}

/* --- footer ------------------------------------------------------------- */

.footer {
  /* extra bottom room on mobile so the fixed bottom nav never covers this */
  padding: 4rem 0 9rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(0, 0, 0, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 3rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.4rem;
}
.footer__links { display: flex; gap: 2rem; }
@media (min-width: 650px) { .footer { padding-bottom: 5rem; } }

/* --- page transition ---------------------------------------------------- */

.t-mask {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease-out, visibility .4s;
}
.t-mask.is-active { opacity: 1; visibility: visible; }

/* reveal-on-enter, also gated on JS being alive */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 1.6rem, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .fade-in { opacity: 1; }
}

/* --- focus ------------------------------------------------------------- */

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 1rem 1.6rem;
  background: #000;
  color: #fff;
  font-size: 1.4rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
