/* ============================================================
   Chloe — Portfolio landing page
   Fonts: Bebas Neue (PORTFOLIO) · Mina (nav) · Smooch (script)
          Anonymous Pro (tagline)

   DESKTOP & TABLET (default): rebuilt from the measured
   reference (4096×2033). Positions/sizes derive from measured
   pixel bounds, so the composition scales as one image.
   Nav (everywhere): THE TEA / BENABLE / TIKTOK / YOUTUBE /
   INSTAGRAM — per instruction, not the reference's labels.

   MOBILE (portrait ≤768px): the ORIGINAL mobile website,
   restored exactly from the source file, gated to portrait so
   it never affects desktop, tablet, or landscape.

   Layers: PORTFOLIO word (back) → model cutout (front).
   ============================================================ */

:root {
  --pink: #F5A3D2;          /* measured from reference letters */
  --ink: #111111;
  --bg: #ffffff;
  --frame: 4px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
}

/* ---------- thin black frame ---------- */
.page-frame {
  position: fixed;
  inset: 0;
  border: var(--frame) solid #000;
  pointer-events: none;
  z-index: 50;
}

/* ============================================================
   DESKTOP & TABLET — measured reference composition
   ============================================================ */

/* ---------- navigation (Mina) — five labels, evenly spread ---------- */
.site-nav {
  position: relative;
  z-index: 10;
  padding-top: 3.2vw;               /* ≈ ref nav glyph top y147 @2033 */
}
.site-nav nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  gap: 2vw;
}
.site-nav a {
  font-family: 'Mina', sans-serif;
  font-weight: 700;
  font-size: 1.5vw;
  letter-spacing: 0.32em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4vw 0.2vw;
}
.site-nav a:hover { color: var(--pink); }

/* ---------- hero: the reference canvas (4096×2033) ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4096 / 2033;
}

/* big pink word — behind the model
   measured: top 35.3%H, left edge 4.5%W, glyph height ~41%H */
.hero-word {
  position: absolute;
  left: 50%;
  top: 35.3%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 28.2vw;
  line-height: 0.85;
  letter-spacing: 0.01em;
  color: var(--pink);
  white-space: nowrap;
  user-select: none;
}

/* brush script (Smooch) — "UGC"
   measured: left 10.2%W, top 18.6%H */
.hero-script {
  position: absolute;
  z-index: 3;
  font-family: 'Smooch', cursive;
  color: #000;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.script-ugc {
  left: 10.2%;
  top: 13%;
  font-size: 14.3vw;
  transform: rotate(-7deg);
}
.script-chloe { display: none; }

/* model cutout — in front of the word, right-of-center.
   Asset is full-length (669×1562). Positioned so the icon row
   (left edge 76.8%W) stays clear: model right edge ≈ 76%W. */
.hero-model {
  position: absolute;
  z-index: 2;
  right: 24%;
  bottom: 0;
  height: 90%;
  width: auto;
  pointer-events: none;
}

/* tagline (Anonymous Pro)
   measured: left 4.35%W, line1 top 88.6%H → bottom 7.1%H */
.hero-tagline {
  position: absolute;
  z-index: 4;
  left: 4.35%;
  bottom: 7.1%;
  font-family: 'Anonymous Pro', monospace;
  font-size: 1.55vw;
  line-height: 1.45;
  color: var(--ink);
}

/* social icons
   measured: top 88.2%H, icon height 5%H, right edge 95.9%W */
.hero-socials {
  position: absolute;
  z-index: 4;
  right: 4.1%;
  bottom: 6.8%;
  display: flex;
  align-items: center;
  gap: 3.4vw;
}
.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9vw;
  height: 2.9vw;
  color: var(--ink);
}
.hero-socials svg { width: 2.5vw; height: 2.5vw; }
.hero-socials a:hover { color: var(--pink); }

/* ============================================================
   LANDSCAPE PHONES (short screens): the whole composition must
   fit in frame — no vertical scroll, no horizontal overflow.
   The stage is capped to 93vh tall (nav takes the rest) and
   187.4vh wide (93vh × 4096/2033); every child size becomes
   min(desktop vw, stage-scaled vh) so it can never exceed the
   stage in either constraint. Plain vh only — universally
   supported. Desktop/tablet and the mobile Chloe layout are
   untouched: this query only matches short landscape screens.
   ============================================================ */
@media (orientation: landscape) and (max-height: 640px) {

  .site-nav { padding-top: min(3.2vw, 1.8vh); }
  .site-nav nav { padding: 0 6%; }
  .site-nav a {
    font-size: min(1.5vw, 2.6vh);
    letter-spacing: 0.28em;
    padding: 0.4vh 0.2vw;
  }

  .hero {
    width: min(100%, 187.4vh);
    height: 93vh;
    aspect-ratio: auto;
    margin: 0 auto;
  }

  .hero-word { font-size: min(28.2vw, 52.8vh); }

  .script-ugc { font-size: min(14.3vw, 26.8vh); }

  .hero-model { height: 90%; right: 24%; }

  .hero-tagline { font-size: min(1.55vw, 2.9vh); }

  .hero-socials { gap: min(3.4vw, 6.37vh); }
  .hero-socials a { width: min(2.9vw, 5.43vh); height: min(2.9vw, 5.43vh); }
  .hero-socials svg { width: min(2.5vw, 4.68vh); height: min(2.5vw, 4.68vh); }
}

/* ============================================================
   MOBILE (portrait ≤768px): the ORIGINAL mobile website,
   restored exactly from the source file. Gated to portrait so
   it cannot affect desktop, tablet, or landscape.
   ============================================================ */
@media (max-width: 768px) and (orientation: portrait) {

  /* reference mobile view has no black page frame */
  .page-frame { display: none; }

  .site-nav { padding: 22px 0 0; }
  .site-nav nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
  }
  .site-nav a {
    font-size: 11px;          /* 5 links fit one row @390px viewport */
    letter-spacing: 0.18em;
    line-height: 2.5em;
    padding: 0 7px;
    white-space: nowrap;
  }

  .hero {
    aspect-ratio: auto;       /* release the desktop stage */
    min-height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 29px;
  }

  /* word (Anton): box x100..977 (w877), h197 @1080w */
  .hero-word {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    font-family: 'Anton', sans-serif;
    font-size: 21vw;
    letter-spacing: 0.012em;
    z-index: 1;
    order: 2;
  }

  /* script: ref box x265..555, y608..744 — overlaps word top */
  .script-ugc { display: none; }
  .script-chloe {
    display: block;
    position: relative;
    z-index: 3;
    order: 1;
    font-size: 16.4vw;
    width: auto;
    align-self: flex-start;
    margin-left: 20%;
    margin-bottom: -22px;
    transform: rotate(-4deg) scaleX(0.775);
    white-space: nowrap;
  }

  /* model (mobile): overlays the word like the template;
     does not shift tagline/icons. */
  .hero { position: relative; }
  .hero-model {
    display: block;
    position: absolute;
    z-index: 2;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    top: 103px;
    height: 382px;
    width: auto;
    pointer-events: none;
  }

  /* tagline: ref 3 lines, tight leading, centered */
  .hero-tagline {
    position: relative;
    left: auto;
    bottom: auto;
    text-align: center;
    font-size: 15.4px;
    line-height: 1.65;
    padding: 375px 9% 0;      /* clears the model hem */
    order: 3;
  }
  .hero-tagline br { display: none; }

  /* icons: centered */
  .hero-socials {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: center;
    gap: 34px;
    padding: 28px 0 70px;
    order: 4;
  }
  .hero-socials a { width: 44px; height: 44px; }
  .hero-socials svg { width: 41px; height: 41px; }
}
