/* Dimitris Gkinos. One figure, one typeface, one page. */

@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-400-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #091418;
  --ink: #e9eeea;
  --grey: #6d8487;
  --accent: #f37021; /* the one accent: Hermes orange */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ground);
  color: var(--ink);
  font-family: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; transition: opacity 0.25s ease; }
a:hover, a:focus-visible { opacity: 0.45; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
ul { list-style: none; }
.muted { color: var(--grey); }

/* The figure's light spills over the whole page, so it sits in the room and not on top of it */
body { overflow-x: hidden; }
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vw 80vh at 24% 52%, rgba(40, 160, 172, 0.13), transparent 70%),
    radial-gradient(30vw 40vh at 26% 44%, rgba(243, 112, 33, 0.05), transparent 70%);
  pointer-events: none;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
}

/* ---------- The figure and what keeps it alive ---------- */
.figure {
  /* no positioning here on purpose: it would wall the video off from the page it blends with */
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure .frame { position: relative; width: min(62vh, 31vw); aspect-ratio: 3 / 4; }
.figure video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: lighten; /* only the light shows; the dark around it is the page itself */
}
.figure svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.figure text { font-size: 23px; letter-spacing: 0.13em; text-transform: uppercase; fill: var(--ink); }
.figure text.cap { fill: var(--grey); }
.figure .line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; }
.figure .liquid { fill: var(--accent); opacity: 0.9; }
.figure .node { fill: var(--accent); }
.figure .hit { fill: transparent; stroke: transparent; stroke-width: 34; }
.figure .flare { fill: #fff; opacity: 0; transition: opacity 0.4s ease; }

/* drops travel down each tube into the body */
.figure .drops { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.01 20; animation: drip 3.6s linear infinite; }
.figure .people .drops { animation-duration: 3s; }
.figure .creating .drops { animation-duration: 3.3s; }
@keyframes drip { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }

.figure .drip { outline: none; transition: opacity 0.35s ease; }
.figure svg:has(.drip:hover) .drip:not(:hover),
.figure svg:has(.drip:focus) .drip:not(:focus) { opacity: 0.25; }
.figure .drip:hover .flare, .figure .drip:focus .flare { opacity: 0.85; }

/* the monitor reads the figure's heart */
.figure .mon .trace, .figure .mon .beat { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.figure .mon .trace { opacity: 0.25; }
.figure .mon .beat { stroke-dasharray: 22 78; animation: sweep 1.8s linear infinite; }
@keyframes sweep { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.figure .mon .bpm { font-size: 19px; fill: var(--grey); }
.figure .mon .blink { fill: var(--accent); animation: blink 0.9s ease-out infinite; }
@keyframes blink { 0% { opacity: 1; } 60%, 100% { opacity: 0.15; } }

/* ---------- The text ---------- */
.text { display: flex; flex-direction: column; justify-content: center; padding: 80px 40px 80px 2vw; }
.index { display: grid; grid-template-columns: 170px minmax(0, 31em); row-gap: 26px; }
.row { display: contents; }
.row dt {
  font-family: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--grey); padding-top: 0.5em;
}
.row dt .n { margin-right: 1em; }
.row dt a { color: inherit; }
.names { max-width: 31em; }
.names li { display: inline; }
.names li a, .names li span { white-space: nowrap; }
.tag { font-family: "Familjen Grotesk", sans-serif; font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--grey); margin-left: 0.9em; }

/* The nudge beside the LNGVT link */
.nudge { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: var(--accent); transform: rotate(-3deg); white-space: nowrap; font-style: normal; }
.nudge svg { width: 26px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.foot { padding: 0 28px 22px; position: fixed; left: 0; bottom: 0; }
.foot span { font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--grey); }

@media (max-width: 860px) {
  html { font-size: 15.5px; }
  body::before { background: radial-gradient(120vw 60vh at 50% 18%, rgba(40, 160, 172, 0.14), transparent 70%); }
  .page { display: flex; flex-direction: column; }
  .figure { height: auto; padding: 70px 0 10px; }
  .figure .frame { width: min(88vw, 400px); }
  .figure text { font-size: 26px; }
  .text { padding: 8px 22px 40px; }
  .index { grid-template-columns: 1fr; row-gap: 0; }
  .row dt { margin-top: 24px; margin-bottom: 2px; padding-top: 0; }
  .foot { position: static; padding: 10px 22px 24px; }
  .nudge { margin-left: 2px; margin-top: 6px; display: flex; transform: rotate(-2deg); transform-origin: left; }
  .nudge svg { transform: rotate(72deg); }
}

@media (prefers-reduced-motion: reduce) {
  a, .figure .flare, .figure .drip { transition: none; }
  .figure .drops, .figure .mon .beat, .figure .mon .blink { animation: none; }
}
