/* Evanildo Dagort Junior, personal site. Shared by / (pt-BR) and /en/ (en).
   Visual system: charcoal ground, warm off-white type, hairline column guides,
   neo-grotesk display type, mono micro labels, painterly public-domain art. */

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #1a1a1a;
  --bg-deep: #131313;
  --ink: #ece6dc;
  --ink-2: #c9c2b7;
  --ink-3: #a29c93;
  --gray: #8e8e8e;
  --line: rgba(236, 230, 220, 0.085);
  --line-2: rgba(236, 230, 220, 0.16);
  --box: rgba(236, 230, 220, 0.74);
  --field: rgba(236, 230, 220, 0.05);
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* column guides: positions are shared by the fixed overlay and the page grid */
  --g1: 12px;
  --g2: 12px;
  --g3: calc(100% - 12px);
  --g4: calc(100% - 12px);
  --side: 24px;

  --fs-micro: 11px;
  --fs-small: 13px;
  --fs-body: 15px;
  --fs-lead: 18px;
  --fs-h3: 24px;
  --fs-title: 30px;
  --fs-display: clamp(38px, 10.6vw, 104px);
  --fs-giant: clamp(60px, 19vw, 232px);
  --header-h: 64px;
}

@media (min-width: 700px) {
  :root {
    --g1: 5%;
    --g2: 12%;
    --g3: 88%;
    --g4: 95%;
    --fs-lead: 20px;
    --fs-h3: 28px;
    --fs-title: 34px;
    --fs-display: clamp(52px, 7.4vw, 104px);
    --fs-giant: clamp(96px, 15vw, 232px);
    --header-h: 120px;
  }
}

@media (min-width: 1024px) {
  :root {
    --g1: 10%;
    --g2: 22.5%;
    --g3: 77.5%;
    --g4: 90%;
    --fs-display: clamp(64px, 5.7vw, 104px);
    --fs-giant: clamp(150px, 14.2vw, 232px);
  }
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: rgba(236, 230, 220, 0.55) var(--bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 450;
  line-height: 1.42;
  letter-spacing: -0.011em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

/* ---------------------------------------------------------------- fixed layers */

.ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg) url("img/ground.webp") center / cover no-repeat;
  pointer-events: none;
}

.ground::before,
.ground::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ground::before {
  background: url("img/topo.svg") center / cover no-repeat;
  opacity: 0.055;
}

.ground::after {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.guides {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.guides i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translateX(-50%);
}

.guides i:nth-child(1) { left: var(--g1); }
.guides i:nth-child(2) { left: var(--g2); }
.guides i:nth-child(3) { left: var(--g3); }
.guides i:nth-child(4) { left: var(--g4); }

@media (max-width: 699px) {
  .guides i:nth-child(2),
  .guides i:nth-child(3) {
    display: none;
  }
}

/* content above the guides, imagery below them */
.lift {
  position: relative;
  z-index: 2;
}

.hline {
  height: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------- page grid */

.grid {
  display: grid;
  grid-template-columns:
    [full-start] var(--side)
    [rail-start main-start] minmax(0, 1fr)
    [main-end rail-end] var(--side)
    [full-end];
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns:
      [full-start] var(--g1)
      [rail-start] calc(var(--g2) - var(--g1))
      [main-start] minmax(0, 1fr)
      [main-end] calc(var(--g4) - var(--g3))
      [rail-end] calc(100% - var(--g4))
      [full-end];
  }
}

.grid > * {
  grid-column: main;
}

/* ---------------------------------------------------------------- shared type */

.micro {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  font-size: var(--fs-title);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.035em;
}

.section-title::before {
  content: "";
  flex: none;
  width: 0.52em;
  height: 0.075em;
  background: currentColor;
  transform: translateY(-0.3em);
}

.kicker {
  color: var(--ink-3);
}

.kicker-lg {
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-title);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: none;
}

.giant {
  font-size: var(--fs-giant);
  font-weight: 450;
  line-height: 0.86;
  letter-spacing: -0.058em;
  color: var(--gray);
  white-space: nowrap;
}

.giant > span {
  display: block;
}

.giant .giant-kicker {
  margin-bottom: 1.6em;
  font-size: var(--fs-micro);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.giant [data-fit],
.giant[data-fit] > span {
  font-size: calc(1em * var(--fit-scale, 1));
}

.display {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 450;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.body-2 {
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- buttons, boxes, tags */

.box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--box);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

@media (hover: hover) {
  .box:hover {
    background: var(--ink);
    color: var(--bg);
  }
}

.box-cream {
  border-color: var(--ink);
  background: var(--ink);
  color: #171717;
}

@media (hover: hover) {
  .box-cream:hover {
    background: #fffaf1;
    color: #111;
  }
}

.ico {
  flex: none;
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
}

.split {
  display: inline-grid;
  grid-template-columns: auto 38px;
  align-items: stretch;
  min-height: 34px;
  background: #2a2928;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}

.split > span {
  display: flex;
  align-items: center;
  padding: 0 14px 0 10px;
}

.split > span + span {
  justify-content: center;
  padding: 0;
  border-left: 1px solid rgba(236, 230, 220, 0.1);
}

@media (hover: hover) {
  .split:hover {
    background: #35332f;
  }
}

@media (hover: hover) {
  .split:hover .ico {
    transform: translate(2px, -2px);
  }
}

.split .ico {
  transition: transform 0.3s var(--ease);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.status[data-state="live"]::before {
  background: var(--ink);
  border-color: var(--ink);
}

.status[data-state="review"]::before {
  background: linear-gradient(90deg, var(--ink-2) 50%, transparent 50%);
}

.status[data-state="lab"]::before {
  border-style: dashed;
}

/* ---------------------------------------------------------------- mark */

.mark {
  fill: currentColor;
}

/* ---------------------------------------------------------------- loader */

.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: loader-out 0.38s var(--ease-io) 0.82s forwards;
}

.no-loader .loader {
  display: none;
}

.loader-core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.loader-mark {
  width: 64px;
  height: 64px;
  color: var(--ink);
  -webkit-mask: conic-gradient(#000 var(--sweep), transparent 0);
  mask: conic-gradient(#000 var(--sweep), transparent 0);
  animation: sweep 0.78s var(--ease-io) forwards;
}

.loader-word {
  font-size: 16px;
  font-weight: 450;
  letter-spacing: 0.36em;
  margin-right: -0.36em;
}

.loader-tag {
  position: absolute;
  display: grid;
  gap: 4px;
  color: var(--ink);
  white-space: nowrap;
}

.loader-tag::before {
  content: "";
  height: 10px;
  background: var(--ink);
  transform-origin: left;
  animation: bar 0.6s var(--ease) 0.15s both;
}

.loader-tag-a {
  left: -150px;
  top: -84px;
  justify-items: start;
}

.loader-tag-a::before {
  width: 42px;
}

.loader-tag-b {
  right: -150px;
  bottom: -70px;
  justify-items: end;
}

.loader-tag-b::before {
  order: 2;
  width: 34px;
  transform-origin: right;
}

@keyframes sweep {
  to { --sweep: 360deg; }
}

@keyframes bar {
  from { transform: scaleX(0); }
}

@keyframes loader-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--side) 0;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  background: linear-gradient(rgba(22, 22, 22, 0.9), rgba(22, 22, 22, 0.55) 60%, rgba(22, 22, 22, 0));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.is-scrolled .site-header::before {
  opacity: 1;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand .mark {
  width: 30px;
  height: 30px;
}

.wordmark {
  font-size: 15px;
  font-weight: 450;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.header-start {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ink-3);
}

.lang a,
.lang span[aria-current] {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 4px;
  text-decoration: none;
}

@media (hover: hover) {
  .lang a:hover {
    color: var(--ink);
  }
}

.lang span[aria-current] {
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

@media (max-width: 899px) {
  .site-header {
    padding-top: 10px;
  }

  .site-header .nav,
  .site-header .lang {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 36px;
  }

  .header-end {
    gap: 8px;
  }

  .header-end .box-cream {
    min-height: 36px;
  }

  .brand .mark {
    width: 26px;
    height: 26px;
  }

  .wordmark {
    font-size: 13px;
    letter-spacing: 0.3em;
  }
}

@media (max-width: 379px) {
  .wordmark {
    display: none;
  }
}

/* mobile menu sheet */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 88px var(--side) 32px;
  background: rgba(20, 20, 20, 0.97);
}

.menu-open .menu-sheet {
  display: flex;
}

.menu-open {
  overflow: hidden;
}

.menu-open .site-header {
  z-index: 200;
}

.menu-sheet .nav-list {
  display: grid;
  gap: 10px;
}

.menu-sheet .box {
  justify-content: flex-start;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
}

.menu-sheet .lang {
  gap: 10px;
}

.menu-sheet .lang a,
.menu-sheet .lang span[aria-current] {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
}

.menu-sheet .lang span[aria-current] {
  border-color: var(--box);
}

@media (min-width: 900px) {
  .menu-sheet {
    display: none !important;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-media img {
  flex: none;
  width: auto;
  max-width: none;
  height: min(78svh, 128vw);
  margin-top: max(12svh, 72px);
  opacity: 0.7;
}

.hero-title {
  position: absolute;
  inset: auto 0 0;
  bottom: 30svh;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.28em;
  padding: 0 var(--side);
  text-align: center;
}

.hero-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 0.32em;
}

.hero-line .mark {
  width: 0.78em;
  height: 0.78em;
  filter: drop-shadow(0 0 0.18em rgba(10, 10, 10, 0.85));
}

.hero-foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--side) 26px;
}

.hero-lede {
  max-width: 36ch;
  color: var(--ink-2);
}

.scroll-cue {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--ink-3);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--line-2);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
  animation: cue 2.4s var(--ease-io) 2s infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

@media (min-width: 700px) {
  .hero-media img {
    height: min(84svh, 980px);
    margin-top: 10svh;
  }

  .hero-title {
    bottom: 24svh;
  }

  .hero-line-1 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    column-gap: 0.62em;
  }

  .hero-line-1 > span:first-child {
    justify-self: end;
  }

  .hero-line-1 > span:last-child {
    justify-self: start;
  }

  .hero-foot {
    padding: 0 0 30px;
    display: grid;
    grid-template-columns: var(--g1) calc(var(--g2) - var(--g1)) 1fr calc(var(--g4) - var(--g3)) calc(100% - var(--g4));
  }

  .hero-lede {
    grid-column: 2 / 4;
    padding-left: 16px;
  }

  .scroll-cue {
    grid-column: 4;
    justify-self: center;
  }
}

/* entrance: one orchestrated moment after the loader */
.js .hero-media img {
  animation: emerge 2.2s var(--ease) var(--intro, 0.9s) both;
}

.js .hero-title .hero-line,
.js .hero-foot {
  animation: rise 1.1s var(--ease) calc(var(--intro, 0.9s) + var(--d, 0s)) both;
}

.js .hero-title .hero-line-2 {
  --d: 0.12s;
}

.js .hero-foot {
  --d: 0.5s;
}

.no-loader {
  --intro: 0.05s;
}

@keyframes emerge {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
}

/* ---------------------------------------------------------------- statement */

.statement {
  position: relative;
  min-height: 112vh;
  min-height: 112svh;
  overflow: clip;
  align-content: center;
  padding: 18svh 0;
}

.statement-media {
  grid-column: full;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.statement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.statement-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(26, 26, 26, 0) 16%, rgba(26, 26, 26, 0) 84%, var(--bg) 100%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.34) 0%, rgba(18, 18, 18, 0.42) 45%, rgba(18, 18, 18, 0.6) 100%);
}

.statement-title {
  display: grid;
  gap: 0.5em;
}

.statement-title > span {
  display: block;
}

.statement-title .st-2 {
  justify-self: end;
  text-align: right;
}

.statement-title,
.statement-copy {
  text-shadow: 0 1px 22px rgba(12, 12, 12, 0.38);
}

.statement-copy {
  position: relative;
  max-width: 24ch;
  margin-top: 13svh;
  justify-self: end;
  color: var(--ink);
}

/* local scrim so the paragraph keeps AA contrast over the bright clouds */
.statement-copy::before {
  content: "";
  position: absolute;
  inset: -55% -45%;
  z-index: -1;
  background: radial-gradient(farthest-side, rgba(16, 16, 16, 0.46) 38%, rgba(16, 16, 16, 0) 100%);
  pointer-events: none;
}

.statement-copy .indent {
  display: block;
  padding-left: 4.4em;
}

.statement .credit {
  grid-column: full;
  position: absolute;
  right: var(--side);
  bottom: 18px;
  z-index: 2;
  max-width: 60ch;
  color: rgba(236, 230, 220, 0.62);
  text-align: right;
}

.statement-rules {
  grid-column: full;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto 1fr auto 1fr;
  pointer-events: none;
}

.statement-rules .hline {
  border-color: rgba(236, 230, 220, 0.14);
}

.statement-rules .hline:nth-child(1) { grid-row: 2; }
.statement-rules .hline:nth-child(2) { grid-row: 4; }

@media (min-width: 1024px) {
  .statement-title {
    grid-column: main;
    gap: 1.15em;
  }

  .statement-copy {
    grid-column: main;
    justify-self: start;
    margin-left: 52%;
    margin-top: 9svh;
    max-width: 27ch;
  }
}

/* ---------------------------------------------------------------- proof */

.proof {
  padding: 18svh 0 16svh;
}

.proof-kicker {
  margin-bottom: 18px;
  color: var(--ink-3);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}

.proof-item {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 22px 14px 26px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 699px) {
  .proof-item:nth-child(2n) {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }
}

.proof-num {
  display: block;
  font-size: calc(clamp(44px, 12.4vw, 92px) * var(--fit-scale, 1));
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.proof-label {
  max-width: 22ch;
  color: var(--ink-3);
}

@media (min-width: 700px) {
  .proof-kicker {
    grid-column: rail;
    margin-left: 3.6%;
  }

  .proof-list {
    grid-column: rail;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 3.6%;
  }

  .proof-item {
    padding: 30px 20px 34px;
    border-left: 1px solid var(--line);
  }

  .proof-item:nth-child(3n + 1) {
    border-left: 0;
    padding-left: 0;
  }

  .proof-num {
    font-size: calc(clamp(64px, 7.4vw, 124px) * var(--fit-scale, 1));
  }
}

/* ---------------------------------------------------------------- process (what I do) */

.process {
  position: relative;
  padding: 14svh 0 10svh;
}

.process-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.process-dots {
  display: none;
}

.process:not(.is-pinned) .process-rules {
  display: none;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line-2);
}

.step-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  font-weight: inherit;
}

.step-label {
  color: var(--ink-2);
}

.step-art {
  order: -1;
  width: min(100%, 420px);
  justify-self: center;
  margin-bottom: 8px;
}

.step-art svg {
  width: 100%;
  height: auto;
  max-height: 46svh;
  margin: 0 auto;
}

.step-word {
  display: block;
  font-size: clamp(56px, 17vw, 168px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: calc(clamp(56px, 17vw, 168px) * var(--fit-scale, 1));
}

.step-desc {
  max-width: 34ch;
  color: var(--ink-2);
}

.step-rule {
  display: none;
}

/* line art */
.art path {
  fill: #181818;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.86;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.art path.o {
  fill: none;
}

.art path.h {
  stroke-opacity: 0.3;
}

.art path.d {
  fill: none;
  stroke-dasharray: 3 4;
  stroke-opacity: 0.55;
}

/* pinned sequence on large screens (enabled by site.js, never with reduced motion) */
@media (min-width: 1024px) {
  .process.is-pinned {
    height: calc(var(--steps, 4) * 100vh);
    height: calc(var(--steps, 4) * 100svh);
    padding: 0;
  }

  .is-pinned .process-stage {
    grid-column: full;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: clip;
  }

  .is-pinned .process-rules {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 35fr auto 28fr auto 37fr;
    pointer-events: none;
  }

  .is-pinned .process-rules .hline:nth-child(1) { grid-row: 2; }
  .is-pinned .process-rules .hline:nth-child(2) { grid-row: 4; }

  .is-pinned .process-head {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0;
    display: block;
  }

  .is-pinned .process-head .kicker-lg {
    position: absolute;
    top: calc(var(--header-h) + 22px);
    left: 14%;
    font-size: 40px;
  }

  .is-pinned .process-dots {
    position: absolute;
    top: calc(var(--header-h) + 84px);
    left: 14%;
    display: flex;
    gap: 13px;
  }

  .process-dots li {
    width: 7px;
    height: 7px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    transition: background-color 0.4s var(--ease);
  }

  .process-dots li.is-on {
    background: var(--ink);
  }

  .is-pinned .process-steps {
    position: absolute;
    inset: 0;
  }

  .is-pinned .step {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    pointer-events: none;
  }

  .is-pinned .step > *,
  .is-pinned .step-head > * {
    position: absolute;
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  }

  .is-pinned .step:not(.is-active) > *,
  .is-pinned .step:not(.is-active) .step-head > * {
    opacity: 0;
  }

  .is-pinned .step > .step-head {
    position: static;
    display: block;
    opacity: 1;
  }

  .is-pinned .step-label {
    top: calc(var(--header-h) + 30px);
    left: 57%;
    max-width: 22ch;
  }

  .is-pinned .step-art {
    top: calc(var(--header-h) + 40px);
    bottom: 25%;
    left: 31%;
    right: 20%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .is-pinned .step-art svg {
    width: auto;
    height: 100%;
    max-height: none;
    max-width: 100%;
  }

  .is-pinned .step-desc {
    top: 60%;
    left: 14%;
    width: 16.5%;
    min-width: 210px;
    font-size: 15px;
  }

  .is-pinned .step-rule {
    display: block;
    top: 86%;
    left: 14%;
    width: 10%;
    height: 1px;
    background: var(--ink);
  }

  .is-pinned .step-word {
    right: 14%;
    bottom: 4svh;
    left: 32%;
    text-align: right;
    font-size: calc(min(11.6vw, 22svh) * var(--fit-scale, 1));
  }

  .is-pinned .step.is-active .step-word {
    transform: none;
  }

  .is-pinned .step:not(.is-active) .step-word {
    transform: translateY(0.12em);
  }

  .is-pinned .step:not(.is-active) .step-art {
    transform: translateY(14px);
  }
}

/* ---------------------------------------------------------------- section heads */

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.section-head .kicker {
  margin-bottom: 8px;
}

.section-lead {
  max-width: 24ch;
  font-size: var(--fs-h3);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 44ch;
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    column-gap: 6%;
    margin-bottom: 52px;
  }

  .section-head .kicker {
    grid-column: 1 / -1;
  }

  .section-head .section-title {
    grid-column: 1;
    font-size: 40px;
  }

  .section-note {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------------------------------------------------------------- apps gallery */

.apps {
  padding: 14svh 0 12svh;
}

.gallery {
  display: grid;
  gap: 56px;
}

.gallery-panel {
  display: grid;
  gap: 18px;
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  background: #101010;
  aspect-ratio: 9 / 11;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.gallery-name {
  font-size: var(--fs-h3);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.035em;
}

.gallery-line {
  max-width: 30ch;
}

.gallery-desc {
  max-width: 44ch;
  color: var(--ink-2);
}

.gallery-meta .box {
  justify-self: start;
  margin-top: 6px;
  min-height: 36px;
}

.lab-tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16% 20%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20% 100%,
    #141414;
}

.lab-tile svg {
  width: 100%;
  height: 100%;
}

.lab-tile .lab-stamp {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--ink-3);
}

.gallery-tabs {
  display: flex;
  gap: 10px;
}

.gallery-tab {
  display: grid;
  gap: 7px;
  justify-items: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  text-align: left;
}

.gallery-tab .thumb {
  position: relative;
  display: block;
  width: 96px;
  height: 60px;
  overflow: hidden;
  background: #141414;
  outline: 1px solid var(--line-2);
  outline-offset: -1px;
  opacity: 0.55;
  filter: grayscale(0.6);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}

.gallery-tab .thumb img,
.gallery-tab .thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tab .thumb-lab {
  padding: 6px;
}

.gallery-tab .thumb-lab svg {
  object-fit: contain;
}

.gallery-tab[aria-selected="true"] {
  color: var(--ink);
}

.gallery-tab[aria-selected="true"] .thumb {
  opacity: 1;
  filter: none;
  outline-color: var(--ink);
}

@media (hover: hover) {
  .gallery-tab:hover .thumb {
    opacity: 0.9;
    filter: none;
  }
}

.gallery-tab:focus-visible {
  outline: none;
}

.gallery-tab:focus-visible .thumb {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* tabs behaviour only when site.js enhanced the gallery */
.gallery.is-enhanced {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0;
}

.gallery.is-enhanced .gallery-panel {
  grid-column: 1;
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
  gap: 0;
}

.gallery.is-enhanced .gallery-frame {
  grid-row: 1;
}

.gallery.is-enhanced .gallery-meta {
  grid-row: 3;
  padding-top: 22px;
}

.gallery.is-enhanced .gallery-tabs {
  grid-column: 1;
  grid-row: 2;
  z-index: 3;
  padding-top: 16px;
  overflow-x: auto;
}

.gallery.is-enhanced .gallery-panel[hidden] {
  display: none;
}

.gallery.is-enhanced .gallery-panel.is-entering .gallery-frame img,
.gallery.is-enhanced .gallery-panel.is-entering .lab-tile {
  animation: frame-in 0.7s var(--ease) both;
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
}

@media (min-width: 700px) {
  .gallery-frame {
    aspect-ratio: 16 / 10;
  }

  .apps .gallery {
    grid-column: rail;
    padding: 0 3.6%;
  }
}

@media (min-width: 1024px) {
  .gallery.is-enhanced {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 32px;
  }

  .gallery.is-enhanced .gallery-panel {
    grid-column: 1 / -1;
    grid-row: 1 / span 2;
    grid-template-columns: subgrid;
  }

  .gallery.is-enhanced .gallery-frame {
    grid-column: 1 / -1;
  }

  .gallery.is-enhanced .gallery-meta {
    grid-column: 1;
    grid-row: 2;
    padding-top: 26px;
    grid-template-columns: auto 1fr;
    column-gap: 28px;
  }

  .gallery.is-enhanced .gallery-meta > * {
    grid-column: 2;
  }

  .gallery.is-enhanced .gallery-meta .status {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    min-width: 10.5em;
    max-width: 16em;
  }

  .gallery.is-enhanced .gallery-tabs {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding-top: 26px;
    overflow: visible;
  }
}

/* ---------------------------------------------------------------- agent systems */

.agents {
  position: relative;
  padding: 16svh 0;
  background: rgba(10, 10, 10, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.agents-lead {
  max-width: 30ch;
}

.agents-graph {
  margin: 44px 0 8px;
}

.graph {
  width: 100%;
  height: auto;
  overflow: visible;
}

.graph circle,
.graph rect,
.graph ellipse,
.graph path {
  fill: #151515;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.86;
  vector-effect: non-scaling-stroke;
}

.graph .o {
  fill: none;
}

.graph .h {
  fill: none;
  stroke-opacity: 0.28;
}

.graph .d {
  fill: none;
  stroke-dasharray: 3 4;
  stroke-opacity: 0.55;
}

.graph .dot {
  fill: var(--ink);
  stroke: none;
}

.graph .bg {
  fill: #121212;
  stroke: none;
}

.graph .fillmark {
  color: var(--ink);
  fill: var(--ink);
  stroke: none;
}

.graph text {
  fill: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media (max-width: 699px) {
  .graph text {
    font-size: 19px;
  }
}

.agents-list {
  display: grid;
  border-top: 1px solid var(--line-2);
}

.agents-list li {
  display: grid;
  gap: 8px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}

.agents-list h3 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.agents-list p {
  max-width: 46ch;
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .agents-inner {
    grid-column: rail;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 6%;
    padding: 0 3.6%;
  }

  .agents-inner .section-head {
    grid-column: 1 / -1;
  }

  .agents-graph {
    grid-column: 1;
    margin: 0;
    align-self: start;
    position: sticky;
    top: max(calc(var(--header-h) + 24px), calc(50svh - 240px));
  }

  .agents-list {
    grid-column: 2;
    align-self: start;
  }
}

/* ---------------------------------------------------------------- rows (open source, client work) */

.oss,
.clients {
  padding: 15svh 0 0;
}

.clients {
  padding-bottom: 16svh;
}

.rows {
  border-top: 1px solid var(--line-2);
}

.row {
  border-bottom: 1px solid var(--line);
}

.row-body {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 44px 24px 0;
  color: inherit;
  text-decoration: none;
}

a.row-body {
  transition: background-color 0.3s var(--ease);
}

@media (hover: hover) {
  a.row-body:hover {
    background: rgba(236, 230, 220, 0.035);
  }
}

.row-name {
  font-size: 22px;
  font-weight: 450;
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.row-desc {
  max-width: 48ch;
  color: var(--ink-2);
}

.row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-arrow {
  position: absolute;
  top: 26px;
  right: 6px;
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) {
  a.row-body:hover .row-arrow {
    transform: translate(3px, -3px);
  }
}

.row-cat {
  color: var(--ink-3);
}

.rows-foot {
  margin-top: 22px;
}

@media (min-width: 1024px) {
  .rows {
    grid-column: rail;
    margin: 0 3.6%;
  }

  .apps .section-head,
  .oss .section-head,
  .clients .section-head,
  .rows-foot {
    grid-column: rail;
    margin-left: 3.6%;
    margin-right: 3.6%;
  }

  .row-body {
    grid-template-columns: 30% minmax(0, 1fr) 26%;
    align-items: start;
    column-gap: 28px;
    padding: 26px 56px 28px 0;
  }

  .row-tags {
    justify-content: flex-start;
  }

  .row-arrow {
    top: 30px;
  }

  .row-cat {
    justify-self: end;
    text-align: right;
    padding-top: 6px;
  }
}

/* ---------------------------------------------------------------- thesis */

.thesis {
  padding: 16svh 0 14svh;
}

.thesis .hline,
.contact .hline {
  grid-column: full;
}

.giant-wrap {
  overflow: clip;
  padding: 3svh 0 3svh;
}

.giant-wrap > .kicker {
  margin-bottom: 1.6em;
}

.thesis-figure {
  margin-top: 4svh;
}

.thesis-figure img {
  width: 100%;
}

.credit {
  margin-top: 10px;
  color: var(--ink-3);
}

.thesis-copy {
  display: grid;
  gap: 1.1em;
  margin-top: 9svh;
  max-width: 38ch;
}

.thesis-copy .split {
  justify-self: start;
  margin-top: 0.8em;
}

@media (min-width: 1024px) {
  .thesis-copy {
    margin-left: 12%;
    max-width: 34ch;
  }
}

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

.contact {
  padding: 8svh 0 14svh;
}

.contact-lead {
  max-width: 30ch;
  margin-top: 8svh;
  color: var(--ink-3);
}

.contact-form {
  display: grid;
  gap: 26px;
  margin-top: 9svh;
}

.field {
  display: grid;
  gap: 12px;
}

.field label {
  color: var(--ink-3);
  font-size: 15px;
}

.field ::placeholder {
  color: #8f8a82;
  opacity: 1;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(236, 230, 220, 0.12);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

@media (hover: hover) {
  .field input:hover,
  .field textarea:hover {
    border-color: rgba(236, 230, 220, 0.24);
  }
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: rgba(236, 230, 220, 0.075);
  outline: none;
}

.field [aria-invalid="true"] {
  border-color: #e0a89b;
}

.form-error {
  color: #efb9ad;
}

.form-actions {
  display: grid;
  gap: 18px;
  align-items: center;
}

.form-alt {
  color: var(--ink-3);
}

.form-alt a {
  color: var(--ink);
}

.submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--box);
  background: #1e1e1d;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

@media (hover: hover) {
  .submit:hover {
    background: var(--ink);
    color: var(--bg);
  }
}

@media (min-width: 700px) {
  .contact-lead {
    justify-self: end;
    margin-right: 4%;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
    column-gap: 9%;
  }

  .field-wide,
  .form-error,
  .form-actions {
    grid-column: 1 / -1;
  }

  .form-actions {
    grid-template-columns: 1fr auto;
  }

  .submit {
    justify-self: end;
  }
}

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

.site-footer {
  padding: 13svh 0 0;
  border-top: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.6);
}

.foot-inner {
  display: grid;
  align-items: start;
  gap: 48px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.36em;
  color: #8a887f;
  font-size: clamp(40px, 11vw, 60px);
  line-height: 1;
  text-decoration: none;
}

.foot-brand .mark {
  width: 0.92em;
  height: 0.92em;
}

.foot-word {
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
}

.foot-head {
  margin-bottom: 18px;
  color: #8a887f;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.foot-col ul {
  display: grid;
  gap: 2px;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  .foot-col a:hover {
    text-decoration: underline;
  }
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 11svh;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  color: #8a887f;
  font-size: 13px;
  font-weight: 550;
  text-transform: uppercase;
}

.foot-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

@media (hover: hover) {
  .foot-bottom a:hover {
    color: var(--ink);
  }
}

.foot-bottom .lang a,
.foot-bottom .lang span[aria-current] {
  min-height: 44px;
  padding: 0 6px;
}

.foot-credits {
  padding-bottom: 28px;
  color: #77746d;
  max-width: 110ch;
}

@media (min-width: 1024px) {
  .foot-inner {
    grid-column: rail;
    grid-template-columns: 38% 1fr;
    margin: 0 3.6%;
  }

  .foot-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .foot-bottom,
  .foot-credits {
    grid-column: rail;
    margin-left: 3.6%;
    margin-right: 3.6%;
  }
}

/* ---------------------------------------------------------------- touch targets on small screens */

@media (max-width: 699px) {
  .box,
  .split,
  .gallery-meta .box,
  .site-header .box,
  .header-end .box-cream,
  .menu-toggle {
    min-height: 44px;
  }

  .foot-col a,
  .foot-brand {
    min-height: 44px;
  }

  .form-alt a {
    display: inline-block;
    padding: 13px 0;
    margin: -13px 0;
  }
}

/* ---------------------------------------------------------------- reveal for the two giant titles */

.js .reveal {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.12em);
  transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease);
}

.js .reveal.is-in {
  clip-path: inset(-0.2em -0.2em -0.3em -0.2em);
  transform: none;
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .loader {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    clip-path: none;
    transform: none;
  }

  .js .hero-media img,
  .js .hero-title .hero-line,
  .js .hero-foot,
  .gallery.is-enhanced .gallery-panel.is-entering .gallery-frame img,
  .gallery.is-enhanced .gallery-panel.is-entering .lab-tile {
    animation: none !important;
  }

  .scroll-cue i::after {
    display: none;
  }
}

/* ---------------------------------------------------------------- thesis essays */

.thesis .essays {
  grid-column: main;
  margin: 9svh 0 0;
}

@media (min-width: 1024px) {
  .thesis .essays {
    grid-column: main;
    margin: 9svh 0 0 12%;
  }
}

/* ---------------------------------------------------------------- experience cases */

.cases {
  border-top: 1px solid var(--line-2);
}

.case {
  display: grid;
  gap: 14px;
  padding: 6svh 0 6.5svh;
  border-bottom: 1px solid var(--line);
}

.case-name {
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.case-result {
  max-width: 22ch;
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 450;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.case-desc {
  max-width: 58ch;
  margin-top: 6px;
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .cases {
    grid-column: rail;
    margin: 0 3.6%;
  }

  .case {
    grid-template-columns: 30% minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
  }

  .case-name {
    padding-top: 0.55em;
  }

  .case-result,
  .case-desc {
    grid-column: 2;
  }
}
