/* Welfel Ventures
   Drafting grid, hairlines, mono labels, Geist type on near-black ink. */

:root {
  /* colour */
  --ink-0: #0B1016;          /* page */
  --ink-1: #111820;          /* panels */
  --ink-2: #17202A;          /* raised */
  --fg: #F5F4F0;             /* warm white */
  --fg-2: #C9CCCB;           /* body copy */
  --mute: #8C959D;           /* muted gray */
  --steel: #B5C5D5;          /* accent */
  --line: rgba(181, 197, 213, .12);
  --line-2: rgba(181, 197, 213, .24);
  --guide: rgba(181, 197, 213, .045);

  /* type */
  --sans: 'Geist', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* layout */
  --max: 1440px;
  --gut: clamp(20px, 4vw, 56px);
  --sec: clamp(88px, 9vw, 140px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ink-0); color: var(--fg-2);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--steel); outline-offset: 4px; }
::selection { background: var(--steel); color: var(--ink-0); }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--fg); color: var(--ink-0); padding: 10px 14px; font: 500 14px var(--sans);
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); position: relative; }
.dim { color: var(--mute); }

/* ---------- drafting guides (fixed 12-col) ---------- */
.guides { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.guides__grid { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); }
.guides__grid i { border-left: 1px solid var(--guide); }
.guides__grid i:last-child { border-right: 1px solid var(--guide); }
@media (max-width: 760px) {
  .guides__grid { grid-template-columns: repeat(4, 1fr); }
  .guides__grid i:nth-child(n+5) { display: none; }
  .guides__grid i:nth-child(4) { border-right: 1px solid var(--guide); }
}
main, .foot, .nav { position: relative; z-index: 1; }

/* ---------- type ---------- */
.label, .eyebrow, .sh__label, .sh__ix, .card__ix, .entry__meta, .foot__k, .foot__note {
  font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow { color: var(--steel); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display {
  font-weight: 500; color: var(--fg); letter-spacing: -.04em; line-height: .98;
  font-size: clamp(44px, 7.4vw, 118px);
}
.display span { display: block; }
.h2 {
  font-weight: 500; color: var(--fg); letter-spacing: -.032em; line-height: 1.02;
  font-size: clamp(34px, 4.6vw, 68px); max-width: 16ch;
}
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--fg); letter-spacing: -.01em; }
h3 { font-weight: 500; color: var(--fg); letter-spacing: -.015em; font-size: 21px; line-height: 1.2; }
.prose { display: grid; gap: 20px; max-width: 64ch; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 24px;
  font: 500 15px/1 var(--sans); letter-spacing: -.005em; border: 1px solid var(--fg);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--fg); color: var(--ink-0); }
.btn--solid:hover { background: var(--steel); border-color: var(--steel); }
.btn--line { color: var(--fg); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--fg); background: rgba(245, 244, 240, .04); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 500; font-size: 15px; padding: 6px 0;
  background:
    linear-gradient(var(--steel), var(--steel)) 0 100% / 0 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link::after { content: "\2192"; transition: transform .3s var(--ease); }
.link:hover { background-size: 100% 1px, 100% 1px; }
.link:hover::after { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(11, 16, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 14px; }
.nav__links a { color: var(--mute); transition: color .25s; position: relative; padding: 6px 0; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--fg); }
.nav__links a[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--steel);
}
.nav__toggle { display: none; }
@media (max-width: 760px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line-2); cursor: pointer;
  }
  .nav__toggle i { display: block; width: 18px; height: 1px; background: var(--fg); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded=true] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded=true] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 76px 0 0; background: var(--ink-0); flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gut) 40px; border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; overflow-y: auto;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transition: opacity .3s; }
  .nav.is-open { background: var(--ink-0); }
  .nav__links a {
    font-size: clamp(26px, 6vw, 34px); letter-spacing: -.02em; color: var(--fg);
    padding: 16px 0; border-bottom: 1px solid var(--line);
  }
  .nav__links a[aria-current] { color: var(--steel); }
  .nav__links a[aria-current]::after { display: none; }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); position: relative; }
.sec--panel { background: var(--ink-1); }
.sh { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(40px, 5vw, 72px); color: var(--mute); }
.sh__ix { color: var(--steel); }
.sh__rule { flex: 1; height: 1px; background: var(--line); position: relative; }
.sh__rule::before, .sh__rule::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--line-2); }
.sh__rule::before { left: 0; }
.sh__rule::after { right: 0; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.split > :first-child { grid-column: 1 / span 6; }
.split__body { grid-column: 8 / span 5; display: grid; gap: 20px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split > :first-child, .split__body { grid-column: auto; }
}

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; overflow: hidden; }
.hero--page { min-height: 0; padding-top: clamp(150px, 16vw, 220px); }
.hero > .wrap { width: 100%; }
.hero__fig {
  position: absolute; top: 96px; right: var(--gut); bottom: 210px; width: min(46vw, 720px);
  pointer-events: none; color: var(--steel);
}
.hero__fig svg { width: 100%; height: 100%; }
.hero__fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink-0) 0%, transparent 30%), linear-gradient(0deg, var(--ink-0) 0%, transparent 22%);
}
.fig-note { position: absolute; right: 0; color: var(--mute); font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; z-index: 1; }
.fig-note--t { top: 12px; }
.fig-note--b { bottom: -28px; }
.hero__inner { display: grid; gap: 28px; padding-bottom: clamp(48px, 6vw, 80px); max-width: 760px; }
.hero__inner .lede { max-width: 34ch; }
.hero--page .hero__inner { max-width: none; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 76px; }
  .hero--page { padding-top: clamp(130px, 30vw, 180px); }
  .hero__fig { position: relative; inset: auto; width: auto; height: clamp(200px, 52vw, 340px); margin: 28px var(--gut) 36px; }
  .hero__fig::after { background: linear-gradient(0deg, var(--ink-0) 0%, transparent 30%); }
  .fig-note { display: none; }
}

/* ---------- cards (4-up / 2-up hairline grid) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.card {
  display: grid; align-content: start; gap: 14px; padding: 28px 28px 40px 0;
  border-right: 1px solid var(--line); position: relative;
}
.card + .card { padding-left: 28px; }
.card:last-child { border-right: 0; }
.card__ix { color: var(--mute); }
.card p { color: var(--mute); font-size: 15px; line-height: 1.55; max-width: 46ch; }
a.card { transition: background .3s var(--ease); }
a.card h3 { display: flex; align-items: center; gap: 12px; }
a.card h3::after { content: "\2192"; color: var(--steel); transition: transform .3s var(--ease); }
a.card:hover h3::after { transform: translateX(4px); }
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 24px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.person { display: grid; gap: 18px; align-content: start; padding: 32px 40px 8px 0; }
.person + .person { padding: 32px 0 8px 40px; border-left: 1px solid var(--line); }
.person p { font-size: 16px; line-height: 1.65; }
@media (max-width: 900px) {
  .people { grid-template-columns: 1fr; }
  .person, .person + .person { padding: 28px 0 36px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- portfolio entries ---------- */
.entries { border-top: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 144px 1fr auto; gap: clamp(20px, 4vw, 60px); align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.entry__logo {
  width: 144px; aspect-ratio: 5 / 3; border: 1px solid var(--line-2); background: var(--ink-0);
  display: grid; place-items: center; overflow: hidden;
}
.entry__logo img { width: auto; height: auto; max-width: 64%; max-height: 52px; opacity: .92; }
.entry h3 { margin-bottom: 6px; }
.entry__meta { color: var(--mute); }
@media (max-width: 640px) {
  .entry { grid-template-columns: 112px 1fr; }
  .entry__logo { width: 112px; }
  .entry__logo img { max-height: 40px; }
  .entry .link { grid-column: 2; justify-self: start; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 88px); background: var(--ink-0); }
.foot__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-bottom: clamp(48px, 5vw, 72px); }
.foot__brand { grid-column: 1 / span 5; display: grid; gap: 24px; align-content: start; }
.foot__brand img { height: 40px; width: auto; }
.foot__tag { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; color: var(--fg); letter-spacing: -.025em; line-height: 1.15; }
.foot__col { grid-column: span 3; display: grid; gap: 14px; align-content: start; }
.foot__col:first-of-type { grid-column: 8 / span 2; }
.foot__k { color: var(--mute); font-size: 11px; margin-bottom: 6px; }
.foot__col a { color: var(--fg-2); font-size: 15px; transition: color .25s; }
.foot__col a:hover { color: var(--fg); }
.foot__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--mute); font-size: 12px;
}
.foot__note { font-size: 11px; }
@media (max-width: 900px) {
  .foot__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__col, .foot__col:first-of-type { grid-column: auto; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70svh; }

/* ---------- logo strip (home) ---------- */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logos .entry__logo { width: 100%; transition: border-color .3s; }
.logos .entry__logo img { max-width: 48%; max-height: 64px; }
@media (max-width: 760px) { .logos .entry__logo img { max-height: 40px; } }
.logos .entry__logo:hover { border-color: var(--fg); }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(3, 1fr); } }
