/* Helvetica Light from the visitor's system; bundled Inter Light where it is missing.
   With a licensed webfont, add it to fonts/ and list its url() before Inter. */
@font-face {
  font-family: "VEFT Sans";
  font-weight: 300;
  font-display: swap;
  src: local("Helvetica Neue Light"), local("HelveticaNeue-Light"),
       local("Helvetica Light"), local("Helvetica-Light"),
       url("fonts/Inter-Light.otf") format("opentype");
}

@font-face {
  font-family: "VEFT Thin";
  font-weight: 100;
  font-display: swap;
  src: local("Helvetica Neue Thin"), local("HelveticaNeue-Thin"),
       url("fonts/Inter-Thin.otf") format("opentype");
}

@font-face {
  font-family: "VEFT Bold";
  font-weight: 700;
  font-display: swap;
  src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
       local("Helvetica Bold"), local("Helvetica-Bold"),
       url("fonts/Inter-Bold.otf") format("opentype");
}

@font-face {
  font-family: "VEFT Regular";
  font-weight: 400;
  font-display: swap;
  src: local("Helvetica Neue"), local("HelveticaNeue"),
       local("Helvetica"), url("fonts/Inter-Regular.otf") format("opentype");
}

:root { --paper: #000; --ink: #fff; --muted: #999; color-scheme: dark; --ui: 1.125rem; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font: 300 1rem/1.6 "VEFT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(3.5rem, 9vh, 6.5rem);
  padding: 4rem 1.5rem 6rem;
}

/* Logo: coordinates are the logo file's own units, cropped to the artwork (2751 x 864). */
.lockup { position: relative; width: min(34rem, 76vw); aspect-ratio: 2751 / 864; flex: none; }
.lockup svg { display: block; width: 100%; height: 100%; fill: var(--ink); overflow: visible; }

.flap-board {
  position: absolute;
  left: 48.709%;   /* 1340 / 2751 */
  top: 41.667%;    /*  360 /  864 */
  width: 63.977%;  /* 1760 / 2751 */
  height: 45.139%; /*  390 /  864 */
  perspective: 900px;
}
.flap-board > svg { position: absolute; inset: 0; }
.lockup text { font-family: "VEFT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; font-size: 334px; }

.half { position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden; background: var(--paper); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.half svg { position: absolute; left: 0; width: 100%; height: 200% !important; }
.top    { top: 0; }
.top svg { top: 0; }
.bottom { top: 50%; }
.bottom svg { bottom: 0; }
.flap.top    { transform-origin: 50% 100%; }
.flap.bottom { transform-origin: 50% 0; }

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 2;
  display: flex; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) 1.5rem 1.25rem;
  background: var(--paper);
}
.nav nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav a, .corners {
  font-family: "VEFT Thin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 100; font-size: var(--ui); letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
}
.nav a, .person img { transition: opacity .25s ease; }
@media (hover: hover) {
  .nav a:hover, .person img:hover { opacity: 0.6; }
}

/* About: fills the last screen, so the end of the scroll leaves the text block centred.
   Same light face and weight as the navigation (VEFT Thin = Helvetica Neue Thin, Inter Thin fallback). */
.about { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 7rem 1.5rem; text-align: left; font-family: "VEFT Thin", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 100; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.45; }
.about > div { max-width: 36em; }
/* Two weights heavier than the body copy: Regular (VEFT Regular = Helvetica Neue, Inter Regular fallback) instead of Thin. */
.about h1 { font: inherit; font-family: "VEFT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; }
.about h1 ~ p { margin-top: 1.2em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Fixed bottom row: location, contact, copyright. No background; "difference"
   keeps it readable when text or photos pass underneath. */
.corners {
  position: fixed; inset: auto 0 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "place reach copy";
  align-items: end; column-gap: 1rem;
  padding: 0 1.5rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  line-height: 1.35;
  mix-blend-mode: difference;
  pointer-events: none;
}
.corners address { grid-area: place; font-style: normal; text-align: left; }
.corners .reach { grid-area: reach; }
.corners .copy { grid-area: copy; text-align: right; white-space: nowrap; }
.corners a { pointer-events: auto; text-underline-offset: 0.25em; }

.people { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 8rem 1.5rem; }
.people ul { width: 100%; max-width: 56rem; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 0.75rem; text-align: left; }
.person { container-type: inline-size; }
.photo { overflow: hidden; border-radius: 8px; }
.person img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
.photo--zoom img { transform: scale(1.025); }  /* trims the white edge in Victor's photo */
.person h2, .person a { font-size: min(var(--ui), 6vw); font-size: min(var(--ui), 7.6cqw); }
.person h2 { font-weight: 300; line-height: 1.35; margin-top: 0.75rem; }
.person a { display: inline-block; white-space: nowrap; }

/* Not enough room for three across: contact line sits centred above the corners. */
@media (max-width: 1099px) {
  .corners { grid-template-columns: auto auto; justify-content: space-between; grid-template-areas: "reach reach" "place copy"; row-gap: 1rem; }
}
@media (max-width: 899px) {
  .people ul { max-width: 28rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  :root { --ui: 0.8125rem; }
  .nav, .corners { padding-left: 1rem; padding-right: 1rem; }
  .about { padding-left: 1.25rem; padding-right: 1.25rem; }
  .people { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (max-width: 339px) {
  .corners { font-size: 0.6875rem; }
  .people ul { grid-template-columns: minmax(0, 13rem); justify-content: center; }
}

.view[hidden] { display: none; }

/* Cursor trail */
.trail { position: fixed; top: 0; left: 0; z-index: 3; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; }

/* Scroll reveal (only hidden once the script is running) */
.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .person:nth-child(even) { transition-delay: .12s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Typing dots after "Designing what comes next": . .. ... (nothing), then repeat. Space is always reserved. */
.typing span { opacity: 0; animation: type-dot 2.4s infinite step-end; }
.typing span:nth-child(1) { animation-name: type-dot-1; }
.typing span:nth-child(2) { animation-name: type-dot-2; }
.typing span:nth-child(3) { animation-name: type-dot-3; }
@keyframes type-dot-1 { 0% { opacity: 1; } 75% { opacity: 0; } }
@keyframes type-dot-2 { 0% { opacity: 0; } 25% { opacity: 1; } 75% { opacity: 0; } }
@keyframes type-dot-3 { 0% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: 1; } }

/* Notion-style "->" arrow: long shaft, open chevron head spanning the cap height; drawn so it looks the same in every font. */
.arrow { display: inline-block; width: 0.725em; height: 0.608em; margin-right: 0.35em; vertical-align: -0.02em; fill: none; stroke: currentColor; stroke-width: 4; stroke-linejoin: miter; overflow: visible; }
