/* ============================================================
   Frank Dosu — Web Designer portfolio
   Reproduction of the "Design & Strategy" reference site
   ============================================================ */

:root {
  --bg-light: #eaeae7;
  --bg-dark: #0a0a0a;
  --ink: #0c0c0c;
  --paper: #ededed;
  --muted: #8a8a8a;
  --muted-dark: #5a5a5a;
  --red: #e0392b;
  --red-hover: #f2493a;
  --line: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --pad: clamp(20px, 3.4vw, 56px);
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--ink);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), opacity .25s;
  mix-blend-mode: normal;
}
.cursor.is-hover { width: 46px; height: 46px; background: rgba(224,57,43,.18); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- shared ---------- */
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: none;
}
.tag--red { color: var(--red); }

.section--dark {
  background: var(--bg-dark);
  color: var(--paper);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--ink);
  transition: color .4s var(--ease);
}
.nav.nav--over-dark { color: var(--paper); }
.nav__logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
.nav__logo-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid currentColor; position: relative;
}
.nav__logo-dot::after {
  content: ""; position: absolute; inset: 2px;
  border-radius: 50%; background: currentColor;
}
.nav__logo-short { display: none; }
.nav__links { display: flex; gap: clamp(28px, 12vw, 220px); font-size: 14px; font-weight: 500; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__lang { display: inline-flex; align-items: center; gap: 7px; }
.nav__lang a { opacity: 0.45; transition: opacity .3s; }
.nav__lang a.is-active { opacity: 1; font-weight: 600; }
.nav__lang a:hover { opacity: 1; }
.nav__lang a:last-child::before { content: "/"; margin-right: 7px; opacity: 0.55; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(22px, 4.5vh, 48px); text-align: center;
}
.hero__eyebrow {
  font-size: clamp(12px, 1vw, 14px); font-weight: 500; letter-spacing: 0.01em;
  color: var(--muted-dark);
}
.hero__marquee { width: 100%; overflow: hidden; pointer-events: none; will-change: transform; }
.hero__track { display: flex; width: max-content; will-change: transform; }
.hero__track span {
  font-size: clamp(80px, 16vw, 240px);
  font-weight: 700; letter-spacing: -0.05em; line-height: 0.85;
  white-space: nowrap; padding-right: 0.04em; color: var(--ink);
}
.hero__tagline {
  font-size: clamp(16px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink); max-width: 24ch;
}

.hero__socials, .hero__role {
  position: absolute; bottom: 26px; z-index: 5;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; font-weight: 500;
}
.hero__socials { left: var(--pad); }
.hero__socials a { color: var(--muted-dark); transition: color .3s; }
.hero__socials a:hover { color: var(--ink); }
.hero__role { right: var(--pad); text-align: right; font-size: clamp(15px, 1.4vw, 20px); font-weight: 600; }
.hero__role span:first-child { color: var(--red); }

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  position: relative;
  padding: clamp(70px, 12vh, 150px) var(--pad) clamp(90px, 16vh, 200px);
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
}
.intro .tag { position: absolute; top: 26px; left: var(--pad); }
.intro__inner { max-width: 1400px; margin: 0 auto; width: 100%; }
.intro__statement {
  font-size: clamp(30px, 5.2vw, 82px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
  max-width: 15ch;
}
.intro__statement em { font-style: normal; color: var(--red); }
.reveal-lines .word { display: inline-block; }
.intro__foot {
  margin-top: clamp(40px, 8vh, 90px);
  display: flex; align-items: flex-end; justify-content: flex-end; gap: 40px; flex-wrap: wrap;
}
.intro__sub {
  max-width: 42ch; margin-left: auto; font-size: 14px; line-height: 1.5;
  color: var(--muted);
}
.btn-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 600; font-size: 14px;
  padding: 14px 26px; border-radius: 40px;
  transition: background .3s, transform .3s var(--ease);
}
.btn-pill:hover { background: var(--red-hover); transform: translateY(-2px); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { position: relative; }
.services__tag { position: sticky; top: 24px; left: 0; margin: 0 0 0 var(--pad); display: block; z-index: 6; width: max-content; padding-top: 24px; }
.services__wrap {
  position: relative;
  display: grid; grid-template-columns: 40% 60%;
  padding: 0 var(--pad);
  margin-top: -34px;
}
.services__num {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center;
}
.services__num-item {
  position: absolute;
  font-size: clamp(140px, 22vw, 320px); font-weight: 700; line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237,237,237,0.35);
  opacity: 0; transform: translateY(40px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.services__num-item.is-active { opacity: 1; transform: translateY(0); }

.services__content { padding: 0; }
.service {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 12vh 0;
}
.service h3 {
  font-size: clamp(34px, 4.6vw, 68px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1;
}
.service > p {
  margin-top: 18px; max-width: 46ch; color: var(--muted);
  font-size: 14px; line-height: 1.5;
}
.service ul { margin-top: clamp(30px, 6vh, 64px); border-top: 1px solid var(--line); }
.service li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  font-size: clamp(14px, 1.2vw, 17px); font-weight: 500;
  transition: padding-left .35s var(--ease), color .35s;
  cursor: default;
}
.service li:hover { padding-left: 18px; }
.service li i { font-style: normal; color: var(--muted-dark); font-size: 12px; }

/* ============================================================
   PROJECTS  (stacked sticky cards)
   ============================================================ */
.projects { position: relative; padding-bottom: 8vh; }
.projects__tag { position: sticky; top: 24px; display: block; margin: 0 0 0 var(--pad); padding-top: 24px; z-index: 6; width: max-content; }
.projects__list { margin-top: -20px; }
.project {
  position: sticky; top: 0;
  height: 100svh; display: flex; align-items: center;
  padding: 0 var(--pad);
}
.project__card {
  display: grid; grid-template-columns: 1fr 34%;
  gap: clamp(20px, 3vw, 48px);
  width: 100%; height: 78vh;
  background: var(--bg-dark);
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  align-items: stretch;
  will-change: transform;
}
.project__media {
  position: relative; overflow: hidden; background: #141414;
  border-radius: 12px; margin: 14px 0 14px 14px;
}
.project__media img {
  object-position: center top;
  transition: transform 1.2s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); }
.project__view {
  position: absolute; top: 50%; left: 50%;
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .4s var(--ease);
  pointer-events: none;
}
.project__media:hover .project__view { transform: translate(-50%, -50%) scale(1); }
.project__info {
  padding: clamp(24px, 3vw, 48px) clamp(20px, 2.4vw, 40px) clamp(24px, 3vw, 48px) 0;
  display: flex; flex-direction: column;
}
.project__year { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.project__title {
  margin-top: 10px; font-size: clamp(30px, 3.6vw, 56px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 0.98;
}
.project__desc { margin-top: 20px; max-width: 40ch; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.project__tags { margin-top: auto; display: flex; flex-direction: column; gap: 0; }
.project__tags span {
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: #cfcfcf;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 16vh var(--pad) 0;
}
.testimonials .tag { position: absolute; top: 26px; left: var(--pad); }
.testimonials__wrap { position: relative; max-width: 1100px; margin: 0 auto; width: 100%; }
.testimonials__counter { font-size: 12px; color: var(--muted-dark); margin-bottom: 26px; }
.testimonials__counter em { font-style: normal; color: var(--red); }
.testimonials__quote {
  position: absolute; top: 40px; left: 0; width: 100%;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.testimonials__quote.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.testimonials__quote p {
  font-size: clamp(26px, 3.7vw, 54px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.08; max-width: 20ch;
}
.testimonials__quote em { font-style: normal; color: var(--red); }
.testimonials__quote cite {
  display: flex; flex-direction: column; gap: 2px; margin-top: 34px;
  font-style: normal; font-size: 14px; font-weight: 600;
}
.testimonials__quote cite span { color: var(--muted-dark); font-weight: 400; font-size: 13px; }
.testimonials__avatars {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
}
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid transparent; background: #222; color: #ddd;
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: .5; transition: opacity .3s, border-color .3s, transform .3s;
}
.avatar:hover { opacity: .85; }
.avatar.is-active { opacity: 1; border-color: var(--red); transform: scale(1.05); }

.logos {
  margin-top: clamp(60px, 12vh, 130px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0;
  margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1);
}
.logos__track { display: flex; gap: 80px; width: max-content; will-change: transform; padding-left: 80px; }
.logos__track span { font-size: 22px; font-weight: 600; color: #4a4a4a; white-space: nowrap; letter-spacing: -0.01em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative; height: 100svh; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.contact__inner {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(18px, 3.5vh, 40px); text-align: center;
}
.contact__eyebrow { font-size: clamp(12px, 1vw, 14px); font-weight: 500; color: var(--muted-dark); }
.contact__marquee { width: 100%; overflow: hidden; }
.contact__track { display: flex; width: max-content; will-change: transform; }
.contact__track span {
  font-size: clamp(80px, 16vw, 240px); font-weight: 700; letter-spacing: -0.05em;
  line-height: 0.85; white-space: nowrap; color: var(--ink);
}
.contact__cta {
  font-size: clamp(18px, 2vw, 30px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 4px;
  transition: color .3s;
}
.contact__cta:hover { color: var(--red); }
.contact__meta { position: absolute; left: var(--pad); bottom: 26px; z-index: 5; font-size: 12.5px; line-height: 1.7; color: var(--muted-dark); }
.contact__meta strong { color: var(--ink); font-weight: 600; }
.contact__socials { position: absolute; left: var(--pad); bottom: 26px; display: none; }
.contact__top {
  position: absolute; top: 26px; right: var(--pad); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: background .3s, color .3s;
}
.contact__top:hover { background: var(--ink); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---------- touch devices: always show the "View" pill ---------- */
@media (hover: none) {
  .project__view { transform: translate(-50%, -50%) scale(1); }
}

/* ---------- TABLET ---------- */
@media (max-width: 900px) {
  .nav { padding: 18px var(--pad); }
  .nav__links { gap: 22px; font-size: 13px; }
  .intro__foot { justify-content: flex-start; }
  .intro__sub { margin-left: 0; }

  /* services: drop the giant sticky number, show an outline number per block */
  .services__wrap { grid-template-columns: 1fr; margin-top: 0; }
  .services__num { display: none; }
  .service { min-height: auto; padding: 12vh 0 8vh; }
  .service::before {
    content: "\00D8" attr(data-index);
    display: block; margin-bottom: 14px;
    font-size: clamp(70px, 24vw, 130px); font-weight: 700; letter-spacing: -0.04em;
    line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(237,237,237,0.32);
  }

  /* projects: stop the sticky stacking, stack cards normally */
  .projects__list { margin-top: 0; }
  .project { position: relative; top: auto; height: auto; padding: 5vh var(--pad); }
  .project__card { grid-template-columns: 1fr; height: auto; }
  .project__media { margin: 12px; height: 34vh; min-height: 220px; }
  .project__info { padding: 6px 20px 24px; }
  .project__tags { margin-top: 20px; }

  .testimonials { padding-top: 14vh; }
  .testimonials__avatars { position: static; flex-direction: row; transform: none; margin-top: 34px; }
}

/* ---------- PHONE ---------- */
@media (max-width: 560px) {
  :root { --pad: 18px; }
  .nav { padding: 16px var(--pad); }
  .nav__logo-text { display: none; }
  .nav__logo-short { display: inline; }
  .nav__links { gap: 15px; font-size: 12px; }

  .hero__eyebrow { max-width: 24ch; line-height: 1.3; }
  .hero__track span { line-height: 0.9; }
  .hero__tagline { font-size: 17px; max-width: 26ch; }
  .hero__socials { font-size: 12px; }
  .hero__role { font-size: 13px; }

  .intro { padding-top: 90px; }
  .intro__statement { font-size: clamp(27px, 8vw, 40px); }

  .service h3 { font-size: clamp(30px, 9vw, 44px); }
  .service li { font-size: 14px; padding: 15px 2px; }

  .project__media { height: 28vh; min-height: 190px; }
  .project__title { font-size: clamp(28px, 9vw, 40px); }
  .project__desc { font-size: 13.5px; max-width: none; }

  .testimonials__quote p { font-size: clamp(24px, 7.5vw, 34px); max-width: none; }
  .avatar { width: 42px; height: 42px; }

  .contact__cta { font-size: 18px; }
  .contact__meta { font-size: 12px; }
}
