/* ============================================================
   Founder page. Loaded after style.css; everything here is
   page-only. Tokens, type and motion primitives come from the
   design system in style.css.
   ============================================================ */

/* ---------- hero ---------- */
.fhero {
  position: relative;
  overflow: hidden;
}
.lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse 62% 78% at 66% 50%,
    #000 35%,
    transparent 100%
  );
  mask-image: radial-gradient(ellipse 62% 78% at 66% 50%, #000 35%, transparent 100%);
}
.fhero__in {
  position: relative;
  z-index: 1;
}
.fhero__role {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.7vw, 1.46rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--chalk-f);
  margin: 22px 0 0;
}
.fhero__role .human {
  color: var(--human-l);
}
.fhero .lede {
  margin-top: 22px;
  max-width: 42ch;
}
.fhero__port {
  width: min(100%, clamp(240px, 27vw, 380px));
  justify-self: center;
}
@media (max-width: 900px) {
  .fhero .hero__in {
    grid-template-columns: 1fr;
  }
  .fhero__port {
    justify-self: start;
    width: min(100%, 300px);
  }
}

/* ---------- what I build ---------- */
.facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  max-width: 60ch;
}
.facts li {
  display: grid;
  grid-template-columns: clamp(88px, 9vw, 116px) 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--chalk-f);
}
.facts li:last-child {
  border-bottom: 1px solid var(--rule);
}
.facts span {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--chalk-g);
  padding-top: 0.28em;
}
.facts a {
  color: var(--chalk);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}
.facts a:hover {
  color: var(--human-l);
  border-color: var(--human);
}

/* ---------- how I work ---------- */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.principles li {
  background: var(--void);
  padding: clamp(22px, 2.6vw, 34px);
}
.principles__n {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  color: var(--human-l);
  margin-bottom: 14px;
}
.principles h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.26rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--chalk);
  margin: 0 0 10px;
}
.principles p {
  margin: 0;
  color: var(--chalk-f);
  font-size: 0.98rem;
  line-height: 1.62;
}

/* ---------- the path ---------- */
.path {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 74ch;
}
.path li {
  display: grid;
  grid-template-columns: clamp(96px, 10vw, 132px) 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.path li:last-child {
  border-bottom: 1px solid var(--rule);
}
.path__when {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-g);
  padding-top: 0.3em;
}
.path__what {
  color: var(--chalk-d);
  font-size: 1.02rem;
  line-height: 1.6;
}
.path__what strong {
  color: var(--chalk);
  font-weight: 600;
}
.path li.now .path__when,
.path li.now .path__what strong {
  color: var(--human-l);
}

/* ---------- sites shipped ---------- */
.sites {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
@media (max-width: 720px) {
  .sites {
    grid-template-columns: 1fr;
  }
}
.site {
  margin: 0;
  background: var(--void-2);
  border: 1px solid var(--rule);
}
.site__view {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--void-3);
  overflow: hidden;
  cursor: pointer;
}
.site__view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(0.3) contrast(1.02);
  transition: filter 0.5s var(--ease);
}
.site:hover .site__view img {
  filter: none;
}
.site__view iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.site__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
}
.site__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--chalk);
}
.site__kind {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-g);
  margin-top: 5px;
}
.site__acts {
  display: flex;
  gap: 8px;
}
.site__acts .btn {
  padding: 9px 14px;
  font-size: 13.5px;
  cursor: pointer;
  background: none;
  color: inherit;
  font-family: inherit;
}
.site.live .site__load {
  display: none;
}

/* ---------- writing ---------- */
.writing {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
@media (max-width: 720px) {
  .writing {
    grid-template-columns: 1fr;
  }
}
.post {
  background: var(--void-2);
  border: 1px solid var(--rule);
}
.post__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.post__view {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--void-3);
  overflow: hidden;
}
.post__view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.02);
  transform: scale(1.005);
  transition:
    filter 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.post__link:hover .post__view img,
.post__link:focus-visible .post__view img {
  filter: none;
  transform: scale(1.035);
}
.post__view::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(8, 10, 13, 0.55), transparent);
  pointer-events: none;
}
.post__cap {
  display: block;
  padding: clamp(16px, 1.7vw, 22px) clamp(16px, 1.7vw, 22px)
    clamp(18px, 2vw, 24px);
}
.post__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-g);
}
.post__when {
  color: var(--human-l);
}
.post__kind::before {
  content: '/ ';
  color: var(--rule-2);
}
.post__title {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--chalk);
  transition: color 0.3s;
}
.post__link:hover .post__title,
.post__link:focus-visible .post__title {
  color: var(--human-l);
}

/* ---------- nav and footer ---------- */
.foot__imprint {
  width: 100%;
  margin: 6px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--chalk-g);
}

/* ---------- the card in place of the mark ---------- */
.close__card {
  width: clamp(200px, 26vw, 360px);
  aspect-ratio: 3 / 2;
  border-radius: clamp(8px, 0.9vw, 14px);
  object-fit: cover;
  border: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .close__card {
    width: min(100%, 320px);
  }
}
