/* ==========================================================
   REZN® — Screen 1
   Huge wordmark + floating portrait (see portrait.css)
   ========================================================== */

/* light theme: white page, near-black type */
.hero {
  --bg: #ffffff;
  --bg-2: #f3f3f1;
  --fg: #111111;
  --fg-2: #141414;
  --muted: #8b8b8b;
  --line: rgba(17, 17, 17, .14);
  --accent: #ff4a24;
  --ok: #2fbf5b;
  --display: "Anton", "Impact", sans-serif;
  --pad: clamp(16px, 2.4vw, 40px);
}
.hero .muted { color: var(--muted); }

/* ---------- pills / buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 60px; padding: 0 26px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.pill--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill--accent {
  min-width: 240px; height: 60px; padding: 0 26px;
  background: #111; border-color: #111; color: #fff;
  font-size: 20px; font-weight: 500;
}
.pill--accent:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
/* phones get "Let's talk" (opens the contact form) in place of "Pricing" */
.pill--phone { display: none; }
@media (max-width: 820px) {
  .pill--desk { display: none; }
  .pill--phone { display: inline-flex; }
}

.round {
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-grid; place-items: center;
  transition: background .3s, color .3s;
}
.round:hover { background: var(--fg); color: var(--bg); }

.hero .burger { display: inline-flex; border-radius: 50%; }

.dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 106, .6);
  animation: pulse 2s infinite; vertical-align: 1px;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 106, 0); } }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  padding: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  isolation: isolate;
  color: var(--fg);
  background: var(--bg);
}

.hero__top {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  position: relative; z-index: 3;
}

/* The logo lockup is one system driven by --wm (the wordmark's font size), so its edges line up on every screen.
   Measured on the Anton letters of "REZN": the ink is 1.687 × --wm wide, with .0385 × --wm of empty space on its left
   and its top .036 × --wm above the box. The margins below cancel that space, so the letters sit on the page
   padding, the ® starts level with their top, and the name line runs exactly from the R to the N. */
.brand { --wm: clamp(140px, 14.5vw, 270px); display: inline-grid; grid-template-columns: auto auto; line-height: .8; }
.brand__word {
  font-family: var(--display);
  font-size: var(--wm);
  margin: calc(var(--wm) * .036) 0 0 calc(var(--wm) * -.0385);
  letter-spacing: -.01em;
  color: var(--fg-2);
  text-transform: uppercase;
  display: block;
}
.brand__reg { align-self: start; font-size: clamp(18px, 2.4vw, 40px); font-family: var(--sans); font-weight: 500; color: var(--fg-2); margin: -.118em 0 0 .2em; line-height: 1; }
.brand__sub {
  grid-column: 1; justify-self: start;
  width: calc(var(--wm) * 1.687);
  margin-top: 18px;
  font-size: calc(var(--wm) * .0585); font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap; text-align: justify; text-align-last: justify;
}

.meta { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 56px); padding-top: 6px; }
.meta__item { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.meta__strong { font-weight: 600; }
.meta__muted { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.meta__actions { display: flex; gap: 4px; }

/* services: a quiet static index — eyebrow with a hairline, items with a small superscript number */
.hero__services {
  grid-column: 1; grid-row: 2;
  list-style: none; margin: 34px 0 0; padding: 0;
  width: clamp(200px, 14vw, 270px);
  font-size: clamp(15px, .95vw, 18px); font-weight: 500; letter-spacing: -.02em; line-height: 1.34;
  position: relative; z-index: 3; align-self: start;
}

.hero__claim {
  grid-column: 2; grid-row: 2;
  justify-self: end; align-self: center;
  margin: 0; text-align: right;
  font-size: clamp(26px, 2.8vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: .98;
  position: relative; z-index: 3;
  pointer-events: none;
}

.hero__manifest {
  grid-column: 1; grid-row: 3;
  max-width: min(640px, calc(50vw - clamp(130px, 12vw, 205px) - 7vw)); margin: 0 0 40px;
  font-size: clamp(22px, 2.3vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
  position: relative; z-index: 3;
  pointer-events: none;
}
.hero__manifest .slash { margin-right: 1.4em; }

/* ---------- author signature ---------- */
.author {
  grid-column: 2; grid-row: 3;
  justify-self: end; align-self: end;
  margin: 0 0 44px;
  font-size: clamp(14px, 1vw, 18px); font-weight: 500; letter-spacing: .01em;
  color: var(--fg);
  position: relative; z-index: 3;
}
.author span, .brand__sub span { color: var(--muted); }

.hero__bottom {
  grid-column: 1 / -1; grid-row: 4;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  position: relative; z-index: 3;
  padding-bottom: 40px;
}
.hero__ctas { display: flex; gap: 6px; }

.trusted { display: flex; align-items: center; gap: 32px; min-width: 0; flex: 1; max-width: 720px; }
.trusted__label { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee {
  overflow: hidden; flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--fg-2); opacity: .75; white-space: nowrap; }
.marquee__track .serif { font-weight: 400; letter-spacing: .04em; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* hero intro: see intro.css */
@keyframes heroRise { from { opacity: 0; transform: translateY(40px); } }
@keyframes heroFade { from { opacity: 0; transform: scale(.9); } }


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {
  .meta__item:first-child { display: none; }
  .pill--accent { min-width: 180px; font-size: 17px; }
  .trusted__label { display: none; }
}

/* phones & tablets: one column, everything in normal flow (the portrait included),
   so nothing overlaps and the screen grows instead of squeezing on short devices */
@media (max-width: 820px) {
  .hero {
    height: auto; min-height: 100svh;
    padding: 16px 16px 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto auto;
  }
  .hero__top { display: block; }
  .meta { position: absolute; right: 0; top: 0; padding: 0; }
  .meta__item { display: none; }
  .meta .pill { display: none; }
  .brand { --wm: min(28vw, 190px); grid-template-columns: max-content 1fr; }   /* sized to stay clear of the burger */
  .brand__reg { font-size: clamp(14px, 3.4vw, 26px); }
  .brand__sub { margin-top: 10px; }

  .hero__services { grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; width: auto; margin-top: 18px; font-size: 12px; }
  .hero__services li { padding: 7px 11px; border: 1px solid rgba(17, 17, 17, .14); border-radius: 999px; line-height: 1; white-space: nowrap; }

  /* not shown on phones, but it stays the page's h1 for search engines and screen readers */
  .hero__claim { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero__manifest { grid-row: 4; max-width: 34ch; font-size: clamp(22px, 4.2vw, 34px); margin: 0 0 22px; }
  .hero__manifest .slash { margin-right: .5em; }

  /* buttons first, client logos under them, then an 80px breath before screen 2 */
  .hero__bottom { grid-row: 5; flex-direction: column; align-items: stretch; gap: 20px; padding-bottom: max(80px, env(safe-area-inset-bottom)); min-width: 0; }
  .trusted { order: 2; max-width: none; width: 100%; }
  .hero__ctas { order: 1; }
  .marquee__track { gap: 40px; }
  .marquee__track span { font-size: 18px; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }
  .hero__ctas { width: 100%; }
  .hero__ctas .pill--accent { flex: 1; min-width: 0; height: 60px; font-size: 16px; padding: 0 18px; }

  /* the first screen fills the phone: everything spreads out, the buttons sit near the bottom edge
     and the client logos below them only come in on scroll */
  .hero { min-height: calc(100svh + 92px); padding-top: 34px; }   /* logo and name a little lower */
  .hero__bottom { gap: 42px; padding-bottom: max(36px, env(safe-area-inset-bottom)); }   /* logos a little under the buttons, screen 2 right after them */
  .hero .portrait { align-self: center; }
  .hero :is(.portrait__screen, .portrait__reflect) { width: clamp(170px, min(56vw, 29svh), 320px); }   /* photo a touch bigger */
}

/* phones: under the logo, name and role share one line; the services sit two by two */
@media (max-width: 560px) {
  .brand { display: grid; }
  .brand__sub { grid-column: 1 / -1; width: auto; font-size: calc((100vw - 32px) / 30); line-height: 1; }
  .hero__services { row-gap: 0; }
  .hero__services::before { content: ""; order: 2; flex: 0 0 100%; height: 0; }
  .hero__services li:nth-child(-n+2) { order: 1; }
  .hero__services li:nth-child(n+3) { order: 3; margin-top: 6px; }
}
/* the smallest phones (iPhone SE 1st gen): a smaller photo keeps the buttons on the first screen */
@media (max-width: 820px) and (max-height: 600px) {
  .hero :is(.portrait__screen, .portrait__reflect) { width: clamp(120px, 23svh, 300px); }
}

/* short phones / Safari with both toolbars shown: tighten so the buttons stay on the first screen */
@media (max-width: 820px) and (max-height: 720px) {
  .brand { --wm: min(25vw, 190px); }
  .hero__services { margin-top: 12px; }
  .hero__services li { padding: 6px 10px; }
  .hero .portrait { margin: 22px -16px 0; }   /* .hero prefix: portrait.css loads after this file */
  .hero :is(.portrait__screen, .portrait__reflect) { width: clamp(150px, min(50vw, 26svh), 300px); }
  .hero__manifest { font-size: 20px; margin-bottom: 16px; }
  .hero__bottom { gap: 24px; padding-bottom: 32px; }
  .hero { min-height: calc(100svh + 68px); }   /* keeps the buttons on the first screen */
  .hero__ctas .pill--accent { height: 60px; }
}

/* the very shortest phones have no room left to lower the buttons */
@media (max-width: 820px) and (max-height: 600px) {
  .hero__bottom { gap: 40px; }
}

@media (max-width: 380px) {
  .hero__services li { padding: 6px 9px; font-size: 11px; }
  .hero__ctas .pill--accent { height: 60px; font-size: 15px; padding: 0 14px; }
}
