/* Vuyanzi — vuyanzi.co landing */

@font-face { font-family: 'Nohemi'; src: url('fonts/Nohemi-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nohemi'; src: url('fonts/Nohemi-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nohemi'; src: url('fonts/Nohemi-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'NaN SuperX Sans'; src: url('fonts/NaNSuperXSansText-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'NaN SuperX Sans'; src: url('fonts/NaNSuperXSansText-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #FDF051;
  --ink: #103013;
  --ink-press: #0C240E; /* hover/pressed: fill −8% */
  --margin: 8px;        /* margin-marketing, all breakpoints */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --radius-md: 10px;
  --maxw: 1600px;
  --logo-w: 150px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'NaN SuperX Sans', system-ui, sans-serif;
  overflow-x: clip;
}
a { color: var(--ink); }
a:hover { color: var(--ink); }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--margin);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Masthead */
.masthead { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.logo { display: block; min-height: 48px; padding: 0 var(--s2) var(--s2) 0; }
.logo img { display: block; width: var(--logo-w); height: auto; }
.clock {
  display: flex;
  gap: var(--s5);
  font-weight: 500;
  font-size: clamp(10px, 0.75vw, 11px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.clock__col { display: flex; flex-direction: column; }
.clock__col--a { align-items: flex-start; }
.clock__col--b { align-items: flex-end; }

/* Hero */
.hero { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.statement {
  margin: 0;
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}
.statement b { font-weight: 900; }
.statement .w { display: inline-block; }
.statement br { display: none; }
.st-anim .w { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.st-anim.st-in .w { opacity: 1; transform: translateY(0); }
.lede {
  margin: var(--s6) 0 0;
  font-weight: 400;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.55;
  max-width: 600px;
  text-wrap: pretty;
}

/* Footer */
.footer { display: flex; flex-direction: column; gap: var(--s3); padding-bottom: var(--s4); }

/* CTA components — cta-label is the shared type style for both */
.cta-label {
  font-family: 'Nohemi', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}
.btn-primary__arrow { display: none; flex: 0 0 auto; }
.btn-primary:hover { background: var(--ink); color: var(--ground); }
.btn-primary:active { background: var(--ink); color: var(--ground); transform: translateY(1px) scale(0.98); transition-duration: 0.1s; }
.btn-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.link-text {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s3);
  background: transparent;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}
.link-text span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: left calc(100% - 2px);
  background-size: 0% 2px;
  transition: background-size 0.2s ease-out;
}
.link-text:hover span { background-size: 100% 2px; }
.link-text:active { transform: translateY(1px); }
.link-text:active span { text-decoration-thickness: 2px; background-size: 100% 2px; }
.link-text:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.links { display: flex; justify-content: center; align-items: center; gap: var(--s5); }

/* Statement line breaks: .bd = ≥1024, .bt = 600–1023, .bm = <600 */
@media (max-width: 599.98px) {
  :root { --logo-w: 120px; }
  .statement br.bm { display: inline; }
  .hero { justify-content: flex-start; }
  /* fit cap: longest mapped line "FOR STARTUPS AND" = 9.54em */
  .statement { margin-top: var(--s8); font-size: min(40px, calc((100vw - 16px) / 9.7)); }
  /* Mobile CTA strip: full-bleed, flush to viewport bottom; inner content on the 8px axis */
  .footer { gap: var(--s4); padding-bottom: 0; }
  .links { order: -1; }
  .btn-primary {
    display: flex;
    justify-content: space-between;
    gap: var(--s4);
    margin: 0 calc(-1 * var(--margin)) calc(-1 * var(--margin));
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 var(--margin) env(safe-area-inset-bottom, 0px);
    border: 0;
    border-radius: 0;
    transition: background-color 150ms ease-out, color 150ms ease-out;
  }
  .btn-primary:hover { background: #FFFFFF; color: var(--ink); }
  .btn-primary:active { background: var(--ink); color: var(--ground); transform: none; }
  .btn-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
  .btn-primary__arrow { display: block; transition: transform 150ms ease-out; }
  .btn-primary:active .btn-primary__arrow { transform: translateX(4px); }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  :root { --logo-w: 140px; }
  .statement br.bt { display: inline; }
  /* fit cap: longest mapped line "CREATING DIGITAL PRODUCTS" = 14.15em */
  .statement { font-size: min(clamp(56px, 8.5vw, 84px), calc((100vw - 16px) / 14.35)); }
  .clock { font-size: 11px; }
  .lede { font-size: 18px; }
}
@media (min-width: 1024px) {
  .statement br.bd { display: inline; }
  /* fit cap: longest mapped line "PRODUCT DESIGN STUDIO CREATING" = 17.18em */
  .statement { font-size: min(clamp(40px, 7vw, 104px), calc((min(100vw, 1600px) - 16px) / 17.4)); }
}
@media (min-width: 600px) {
  .masthead { flex-direction: row; justify-content: space-between; gap: var(--s5); }
  .clock { margin-top: calc(var(--logo-w) * 0.2023); }
  .footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3) var(--s4); }
  .links { grid-column: 2; grid-row: 1; }
  .btn-primary { grid-column: 3; grid-row: 1; justify-self: end; width: auto; }
}

/* Portrait viewports: statement + lede group centered at ~46% of viewport height */
@media (orientation: portrait) {
  .hero { justify-content: flex-start; }
  .hero::before { content: ''; flex: 46 1 0px; }
  .hero::after { content: ''; flex: 54 1 0px; }
  .statement { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn-primary:active, .link-text:active { transform: none !important; }
}
