/* Self-hosted fonts (no third-party CDN dependency) */
@font-face {
  font-family: "HelveticaNowDisplay-Medium";
  src: url("fonts/helvetica-now-medium.woff2") format("woff2"),
    url("fonts/helvetica-now-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaNowDisplayW01-Rg";
  src: url("fonts/helvetica-now-rg.woff2") format("woff2"),
    url("fonts/helvetica-now-rg.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --heading: "HelveticaNowDisplay-Medium", "Helvetica Neue", Arial, sans-serif;
  --body: "HelveticaNowDisplayW01-Rg", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --paper: #f4f2ec;
  --paper-2: #eae5d9;
  --ink: #100f0d;
  --ink-soft: rgba(16, 15, 13, 0.64);
  --ink-faint: rgba(16, 15, 13, 0.44);
  --rule: rgba(16, 15, 13, 0.14);

  --on-dark: #f4f2ec;
  --on-dark-soft: rgba(244, 242, 236, 0.66);
  --on-dark-rule: rgba(244, 242, 236, 0.2);

  --accent: #ff5a1f;
  --frame: 14px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.wrap {
  width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero-frame {
  padding: 0;
  background: var(--ink);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  border-radius: 0;
  overflow: hidden;
  background: #0b0b0c;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(1.12) contrast(1.06) brightness(1.06);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(95deg, rgba(8, 8, 9, 0.72) 0%, rgba(8, 8, 9, 0.28) 38%, transparent 66%),
    linear-gradient(0deg, rgba(8, 8, 9, 0.7) 0%, transparent 42%);
}

.hero > * { position: relative; z-index: 1; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  color: var(--on-dark);
}

.brand {
  font-family: var(--heading);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 7px;
  font-size: 14px;
  color: rgba(244, 242, 236, 0.82);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--on-dark); }
.nav-links span { color: rgba(244, 242, 236, 0.4); }

.hero-copy {
  position: absolute;
  inset: auto 32px 7vh;
  color: var(--on-dark);
}

.hero-intro {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--on-dark-soft);
}

.typewriter {
  margin: 0;
  max-width: 17ch;
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 0.06em;
  background: var(--accent);
  vertical-align: -0.06em;
  animation: blink 1.05s step-end infinite;
}

.tw-cursor.done { animation: none; opacity: 0; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Pills ------------------------------------------------------------ */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1.5px solid rgba(244, 242, 236, 0.55);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  font-family: var(--body);
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.13s var(--ease);
}

.pill-primary {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--ink);
}

.pill:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .pill:hover { background: rgba(244, 242, 236, 0.16); }
  .pill-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
}

.copy-email.copied { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section { padding: 112px 0; }

.section-title {
  margin: 16px 0 48px;
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* Work ------------------------------------------------------------- */

.work .eyebrow { margin-bottom: 40px; }

.work-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.work-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.work-media img { width: 54%; height: auto; }

.work-copy h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.work-copy p {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}

.pill-dark {
  margin-top: 32px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

@media (hover: hover) and (pointer: fine) {
  .pill-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
}

/* Founders --------------------------------------------------------- */

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.founder { display: flex; flex-direction: column; }

.founder-photo {
  margin: 0 0 22px;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.role {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(16, 15, 13, 0.72);
}

.bio {
  max-width: 46ch;
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Contact ---------------------------------------------------------- */

.contact {
  margin: 0 var(--frame) var(--frame);
  padding: 96px 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-dark);
}

.contact .wrap { width: min(1180px, calc(100vw - 96px)); }

.eyebrow.on-dark { color: var(--on-dark-soft); }

.contact-title {
  margin: 16px 0 0;
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.contact-sub {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--on-dark-soft);
}

.contact-email {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--heading);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--on-dark-rule);
  padding-bottom: 6px;
  transition: border-color 0.25s var(--ease);
}

.contact-email:hover { border-color: var(--accent); }

/* Footer ----------------------------------------------------------- */

.footer { padding: 28px 0 36px; }

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-wrap a { transition: color 0.2s var(--ease); }
.footer-wrap a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                       */
/* ------------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-copy { inset: auto 22px 5vh; }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .section { padding: 76px 0; }
  .hero-cta { gap: 8px; }
  .footer-wrap { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tw-cursor { animation: none; }
  .pill:active { transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
