/* ---------------------------------------------------
   Design tokens
--------------------------------------------------- */
:root {
  --color-white: #fff;
  --color-black: #000;
  --color-grey: #bbb;
  --color-accent: #420303;
  --color-light-grey: #f2f2f2;

  --type: 14px;
  --leading: 22px;
  --big-type: 25px;
  --big-leading: 35px;
  --kerning: 0.01em;

  --gutter: var(--leading);
  --margin: 25px;
  --radius: 8px;
}

@media screen and (min-width: 1920px) {
  :root {
    --type: 16px;
    --leading: 24px;
    --big-type: 32px;
    --big-leading: 44px;
    --margin: 32px;
  }
}

@media screen and (max-width: 991px) {
  :root {
    --type: 13px;
    --leading: 21px;
    --big-type: 21px;
    --big-leading: 31px;
  }
}

@media screen and (max-width: 600px) {
  :root {
    --type: 14px;
    --leading: 22px;
    --big-type: 19px;
    --big-leading: 29px;
    --margin: 20px;
  }
}

/* ---------------------------------------------------
   Base
--------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background-color: var(--color-white);
  color: var(--color-black);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: var(--type);
  line-height: var(--leading);
  letter-spacing: var(--kerning);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, a, address, div, span, article, footer {
  font-weight: 300;
}

h1 {
  font-size: var(--big-type);
  line-height: var(--big-leading);
  letter-spacing: var(--kerning);
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--color-grey);
  text-decoration: none;
  cursor: pointer;
}
a:hover { color: var(--color-accent); }

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---------------------------------------------------
   Scroll container — the info panel slides up over the sticky cover.
   No scroll-snap: native scrolling is the smoothest, and sticky is
   composited by the browser rather than repainted every frame.
--------------------------------------------------- */
.page {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.page::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------
   Cover — sticks at the top; the info panel rides over it
--------------------------------------------------- */
.cover {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100dvh;
  padding: var(--margin);
  background-color: var(--color-accent);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dateline {
  align-self: flex-end;
  font-size: var(--type);
  line-height: var(--leading);
}

.wordmark {
  width: 100%;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  white-space: nowrap;
  /* JS sets the exact size so it spans nearly the full window width;
     this is only a first-paint fallback before the script runs. */
  font-size: clamp(2rem, 17vw, 14rem);
}

/* ---------------------------------------------------
   Info — second screen: content grid
--------------------------------------------------- */
.info {
  position: relative;
  z-index: 2; /* rides over the sticky cover */
  min-height: 100dvh;
  background-color: var(--color-white);
  padding: var(--margin);
  padding-top: calc(var(--margin) * 1.4);
  display: flex;
  align-items: stretch;
}

.grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: var(--gutter);
  row-gap: calc(var(--gutter) * 2);
}

.block { min-width: 0; }

/* Address + email match the main statement's size */
.address {
  grid-column: 1 / 7;
  grid-row: 1;
  font-style: normal;
  font-size: var(--big-type);
  line-height: var(--big-leading);
}
.address p { margin-bottom: var(--big-leading); }

.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Right column: main statement + the three ventures */
.main {
  grid-column: 7 / 13;
  grid-row: 1 / 3;
}

.big-text {
  max-width: 58ch;
  font-size: var(--big-type);
  line-height: var(--big-leading);
}

.ventures {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gutter) * 3);
  margin-top: calc(var(--gutter) * 3);
}

.venture-logo {
  display: inline-block;
  margin-bottom: calc(var(--gutter) * 0.9);
  transition: opacity 0.2s ease;
}
.venture-logo:hover { opacity: 0.55; }

.venture-logo img {
  display: block;
  height: 50px;
  width: auto;
}

.venture p {
  max-width: 30ch;
  font-size: var(--type);
  line-height: var(--leading);
}

/* Inline arrow at the end of each description */
.arrow {
  color: var(--color-black);
  white-space: nowrap;
}
.arrow:hover { color: var(--color-accent); }

/* Instagram handle under each venture */
.venture-social {
  display: inline-block;
  margin-top: calc(var(--gutter) * 0.5);
  font-size: var(--type);
  line-height: var(--leading);
}

/* Bottom-left team photo */
.photo-wrap {
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: end;
  justify-self: start;
}

.photo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}
@media screen and (min-width: 1920px) { .photo { width: 360px; } }
@media screen and (max-width: 991px)  { .photo { width: 230px; } }

.footer {
  grid-column: 7 / 11;
  grid-row: 3;
  align-self: end;
}

.footer-menu {
  display: flex;
  gap: 10px;
  color: var(--color-black);
}
.footer-menu:hover { color: var(--color-accent); }
.footer-text {
  font-size: var(--type);
  line-height: var(--leading);
}

.legal {
  grid-column: 11 / 13;
  grid-row: 3;
  align-self: end;
  justify-self: end;
}
.legal .footer-menu { flex-direction: column; align-items: flex-end; gap: 2px; }

/* ---------------------------------------------------
   Document pages (privacy)
--------------------------------------------------- */
.doc-page {
  height: 100dvh;
  overflow-y: auto;
  padding: var(--margin);
  background: var(--color-white);
}

.doc {
  max-width: 68ch;
  margin: 0 auto;
  padding-bottom: calc(var(--gutter) * 3);
}

.doc-back {
  display: inline-block;
  margin-bottom: calc(var(--gutter) * 2);
  color: var(--color-black);
}
.doc-back:hover { color: var(--color-accent); }

.doc h1 {
  font-size: var(--big-type);
  line-height: var(--big-leading);
  margin-bottom: var(--gutter);
}

.doc h2 {
  font-size: var(--type);
  line-height: var(--leading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: calc(var(--gutter) * 2) 0 calc(var(--gutter) * 0.4);
}

.doc p {
  font-size: var(--type);
  line-height: var(--leading);
  margin-bottom: var(--gutter);
  max-width: 68ch;
}

.doc a { color: var(--color-accent); text-decoration: underline; }

.doc-meta {
  color: var(--color-grey);
  margin-bottom: calc(var(--gutter) * 2);
}

/* ---------------------------------------------------
   Responsive stacking
--------------------------------------------------- */
@media screen and (max-width: 900px) {
  .info { align-items: flex-start; }
  .grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    row-gap: calc(var(--gutter) * 1.4);
  }
  .address    { grid-column: 1 / 3; grid-row: 1; }
  .main       { grid-column: 1 / 3; grid-row: 2; }
  .big-text   { max-width: 60ch; }
  .photo-wrap { grid-column: 1 / 3; grid-row: 3; justify-self: start; }
  .footer     { grid-column: 1 / 2; grid-row: 4; align-self: start; }
  .legal      { grid-column: 2 / 3; grid-row: 4; align-self: start; }
}
