/* =========================================================
   olehabib — Home
   Breakpoints (match the Framer site):
     Desktop  ≥ 1200px
     Tablet   810px – 1199.98px
     Mobile   ≤ 809.98px
   Content is capped at 1440px wide; beyond that it stays
   centered and only the background / dividers stretch.
   ========================================================= */

:root {
  --bg: #080808;
  --fg: #ffffff;
  --muted: #c2c2c2;
  --dim: #949494;
  --accent: #2bf99b;
  --accent-soft: #2bf99b;
  --line: rgba(255, 255, 255, 0.12);

  --max: 1440px;
  --gutter: 40px;          /* outer page padding */
  --inset: 140px;          /* narrow content inset (projects, testimonials, footer) */

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-meta: "Inter", sans-serif;
  --font-mono: "Antonio", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.accent { color: var(--accent-soft); }
/* Read by search engines and screen readers, not shown (used for page h1s the design doesn't display) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { display: flex; justify-content: center; }

/* ---------- Layout containers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { padding-inline: var(--inset); }
.container--bleed { padding-inline: 0; }

/* ---------- Load + scroll reveal (shared by every page) ----------
   An inline script in <head> adds .js-reveal to <html>; main.js then adds .is-in
   to each [data-reveal] element when it loads in view or is scrolled to.
   Default: fade up 40px. data-reveal="up-30" rises 30px; data-reveal="grow" also scales from 70%. */
.js-reveal [data-reveal] {
  opacity: 0;
  translate: 0 var(--reveal-y, 40px);
  transition:
    opacity .9s cubic-bezier(.44, 0, .56, 1),
    translate .9s cubic-bezier(.44, 0, .56, 1),
    scale .9s cubic-bezier(.44, 0, .56, 1);
}
.js-reveal [data-reveal="up-30"] { --reveal-y: 30px; }
.js-reveal [data-reveal="grow"] { scale: .7; }
.js-reveal [data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; translate: none; scale: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { text-align: center; align-items: center; }
.section-head__eyebrow { font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.section-head__title { font-size: 72px; line-height: 1; letter-spacing: -0.02em; color: var(--accent-soft); }
.section-head__title--md { font-size: 56px; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 18px; letter-spacing: -0.02em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__inner { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { width: 135px; height: auto; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { font-size: 16px; letter-spacing: 0.01em; color: var(--dim); transition: color .2s; }
.nav__links a:hover { color: var(--fg); }
/* Current page (each page marks its own link with aria-current="page") */
.nav__links a[aria-current="page"] { color: var(--fg); }
.nav__toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
/* Desktop: hero fills the window below the nav and the stats sit 16px above its bottom edge */
.hero {
  min-height: calc(100svh - 70px);
  display: flex; flex-direction: column;
  padding-top: 40px; padding-bottom: 16px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 441px;
  column-gap: 66px;
  align-items: start;
}
.hero__avatar--top { width: 160px; height: 160px; object-fit: cover; }
.hero__avatar--bottom { display: none; }
.hero__title { font-size: 66px; line-height: 0.98; letter-spacing: -0.02em; max-width: 669px; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; font-size: 24px; line-height: 1.2; font-weight: 300; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: auto;
  padding-top: 48px;       /* minimum gap above the stats on short windows */
}
.stat__num { font-size: 80px; line-height: 1; letter-spacing: -0.02em; display: flex; align-items: flex-start; }
.stat__num sup { font-size: 40px; line-height: 1; margin-left: 4px; }
.stat__label { margin-top: 24px; font-size: 16px; line-height: 1.2; text-transform: uppercase; color: var(--fg); }

/* =========================================================
   BRANDS
   ========================================================= */
.brands { padding-top: 160px; }
.brands .container { padding-inline: 40px; }
.brands__grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.brands__cell {
  display: flex; align-items: center; justify-content: center;
  height: 200px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brands__cell img { width: 300px; max-width: 90%; height: 120px; object-fit: contain; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { padding-top: 200px; }
.projects__grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 24px; row-gap: 72px;
}
.project { display: flex; flex-direction: column; }
.project__media { aspect-ratio: 568 / 468; overflow: hidden; background: #151515; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.project:hover .project__media img { transform: scale(1.04); }
.project__meta { margin-top: 16px; font-family: var(--font-meta); font-size: 16px; line-height: 1.7; color: var(--muted); }
.project__title { margin-top: 8px; font-size: 24px; line-height: 1.2; }
.projects .center { margin-top: 80px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding-top: 160px; }
.services__headline {
  text-align: center;
  font-size: 240px; line-height: 1; letter-spacing: -0.01em;
  color: var(--accent-soft);
  padding-bottom: 80px;
}
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__inner {
  padding: 32px var(--inset);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.service__text { display: grid; grid-template-columns: 40px 1fr; column-gap: 0; }
.service__num { grid-column: 1; font-size: 32px; line-height: 1; }
.service__title { grid-column: 2; font-size: 56px; line-height: 1; letter-spacing: -0.02em; margin-top: 16px; }
.service__desc { grid-column: 2; max-width: 600px; margin-top: 24px; font-size: 22px; line-height: 1.3; color: var(--muted); }
.service__icon { display: block; width: 220px; height: 220px; flex: none; }
.service__icon img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 120px 0; border-bottom: 1px solid var(--line); }
.testimonial { margin-top: 64px; display: flex; justify-content: space-between; gap: 64px; }
.testimonial__body { max-width: 991px; transition: opacity .3s ease; }
.testimonial__body.is-fading { opacity: 0; }
.testimonial__person { display: flex; align-items: center; gap: 24px; }
.testimonial__photo { width: 88px; height: 88px; object-fit: cover; }
.testimonial__name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.testimonial__role { margin-top: 12px; font-size: 24px; letter-spacing: -0.02em; color: var(--muted); }
.testimonial__quote { margin-top: 40px; display: flex; flex-direction: column; gap: 35px; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.testimonial__pager { display: flex; flex-direction: column; align-items: center; gap: 24px; flex: none; width: 205px; }
.testimonial__pager button { font-size: 48px; line-height: 1; letter-spacing: -0.02em; color: var(--muted); transition: font-size .3s ease, color .3s ease; }
.testimonial__pager button.is-active { font-size: 120px; color: var(--fg); }

/* =========================================================
   EXPLORATIONS
   ========================================================= */
.explore { padding-top: 80px; }
.explore .btn { margin-top: 48px; }
.explore__grid {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.explore__grid a { overflow: hidden; aspect-ratio: 1; }
/* The source images carry a thin white edge; a slight scale crops it inside the tile */
.explore__grid img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform .6s ease; }
.explore__grid a:hover img { transform: scale(1.08); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 80px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; }
.footer__eyebrow { font-size: 24px; letter-spacing: -0.02em; }
.footer__email { display: inline-block; margin-top: 16px; font-size: 56px; line-height: 1; letter-spacing: -0.02em; color: var(--accent-soft); transition: opacity .2s; }
.footer__email:hover { opacity: .75; }
.footer__note { margin-top: 16px; max-width: 360px; font-size: 14px; line-height: 1; letter-spacing: -0.02em; color: var(--muted); }
.footer__social { list-style: none; margin: 0; padding: 0; width: 140px; display: flex; flex-direction: column; gap: 16px; }
.footer__social a { font-size: 24px; letter-spacing: -0.02em; transition: color .2s; }
.footer__social a:hover { color: var(--accent-soft); }
.footer__bottom {
  margin-top: 120px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 16px; line-height: 1.7;
}
.footer__bottom p:last-child { width: 140px; }

/* =========================================================
   TABLET  810px – 1199.98px
   ========================================================= */
@media (min-width: 810px) and (max-width: 1199.98px) {
  :root { --inset: 40px; }

  .hero__inner { grid-template-columns: 1fr; row-gap: 40px; }
  .hero__title { max-width: none; font-size: 66px; line-height: 1; }
  .hero__copy { max-width: 679px; }
  .hero { min-height: 0; padding-bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 64px; margin-top: 80px; padding-top: 0; }
  .stat__label { color: var(--muted); }

  .brands .container { padding-inline: var(--gutter); }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .brands__cell img { width: 210px; height: 84px; }

  .projects__grid { column-gap: 24px; row-gap: 56px; }

  .services__headline { font-size: 160px; padding-bottom: 64px; }
  .service__text { grid-template-columns: 40px 1fr; }
  .service__title { font-size: 48px; }
  .service__desc { max-width: 430px; font-size: 18px; }
  .service__icon { width: 140px; height: 140px; margin-right: 0; }

  .testimonial { gap: 40px; }
  .testimonial__quote { max-width: 598px; }
  .testimonial__pager { width: 100px; }
  .testimonial__pager button { font-size: 40px; }
  .testimonial__pager button.is-active { font-size: 88px; }

  .footer__email { font-size: 48px; }
  .footer__social { width: 120px; }
  .footer__bottom p:last-child { width: 120px; }
}

/* =========================================================
   MOBILE  ≤ 809.98px
   ========================================================= */
@media (max-width: 809.98px) {
  :root { --gutter: 20px; --inset: 20px; }
  .hide-mobile { display: none; }

  /* Nav → hamburger */
  .nav__inner { height: 70px; }
  .nav__logo img { width: 102px; }
  .nav__toggle {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    width: 32px; height: 32px; justify-content: center;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s ease, width .3s ease; }
  .nav__toggle span:first-child { width: 18px; }
  .nav__toggle span:last-child { width: 12px; }
  .nav__toggle[aria-expanded="true"] span:first-child { width: 20px; transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { width: 20px; transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    /* absolute, not fixed: .nav's backdrop-filter makes it the containing block */
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - 70px);
    flex-direction: column; gap: 0;
    padding: 24px var(--gutter);
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { font-size: 40px; color: var(--fg); padding: 16px 0; border-bottom: 1px solid var(--line); }
  /* every link is white in the open menu, so the current page is marked in green */
  .nav__links a[aria-current="page"] { color: var(--accent); }
  body.menu-open { overflow: hidden; }

  /* Hero */
  .hero { min-height: 0; padding-top: 40px; padding-bottom: 0; }
  .br-desktop { display: none; }
  .hero__inner { grid-template-columns: 1fr; row-gap: 24px; }
  .hero__avatar--top { display: none; }
  .hero__avatar--bottom { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-top: 40px; }
  .hero__title { font-size: 42px; line-height: 0.98; max-width: none; }
  .hero__copy { font-size: 18px; gap: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 40px; margin-top: 48px; padding-top: 0; }
  .stat__num { font-size: 48px; }
  .stat__num sup { font-size: 28px; }
  .stat__label { margin-top: 16px; font-size: 14px; color: var(--muted); }

  /* Section heads */
  .section-head { gap: 12px; }
  .section-head__eyebrow { font-size: 24px; }
  .section-head__title { font-size: 36px; }
  .section-head__title--md { font-size: 48px; }

  /* Brands */
  .brands { padding-top: 80px; }
  .brands .container { padding-inline: 0; }
  .brands__grid { margin-top: 48px; grid-template-columns: repeat(2, 1fr); border-left: 0; }
  .brands__cell { height: 100px; }
  .brands__cell:nth-child(2n) { border-right: 0; }
  .brands__cell img { width: 160px; height: 64px; }

  /* Projects */
  .projects { padding-top: 120px; }
  .projects__grid { margin-top: 40px; grid-template-columns: 1fr; row-gap: 56px; }
  .project__meta { font-size: 14px; }
  .project__title { font-size: 18px; }
  .projects .center { margin-top: 56px; }
  .btn { height: 44px; padding: 0 24px; font-size: 16px; }

  /* Services */
  .services { padding-top: 120px; }
  .services__headline { font-size: 92px; padding-bottom: 48px; }
  .service__inner { flex-direction: column; align-items: flex-start; padding: 40px var(--gutter) 48px; gap: 40px; }
  .service__text { display: block; }
  .service__num { display: block; font-size: 24px; }
  .service__title { font-size: 40px; margin-top: 24px; }
  .service__desc { font-size: 18px; margin-top: 24px; }
  .service__icon { width: 121px; height: 121px; }

  /* Testimonials */
  .testimonials { padding: 80px 0; }
  .testimonial { position: relative; margin-top: 40px; display: block; }
  .testimonial__person { flex-direction: column; align-items: flex-start; gap: 20px; }
  .testimonial__name { font-size: 22px; }
  .testimonial__role { margin-top: 10px; font-size: 16px; }
  .testimonial__quote { margin-top: 32px; max-width: 298px; font-size: 22px; gap: 24px; }
  .testimonial__pager { position: absolute; top: 0; right: 0; width: auto; gap: 12px; align-items: flex-end; }
  .testimonial__pager button { font-size: 24px; }
  .testimonial__pager button.is-active { font-size: 48px; }

  /* Explorations */
  .explore { padding-top: 64px; }
  .explore .btn { margin-top: 32px; }
  .explore__grid { margin-top: 48px; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 16px; }
  .explore__grid a:nth-child(n + 7) { display: none; }

  /* Footer */
  .footer { padding-top: 64px; border-top: 1px solid var(--line); margin-top: 24px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__eyebrow { font-size: 18px; }
  .footer__email { font-size: 28px; margin-top: 12px; }
  .footer__note { max-width: 268px; line-height: 1.1; }
  .footer__social { width: 100%; gap: 0; }
  .footer__social li { border-bottom: 1px solid var(--line); }
  .footer__social a { display: block; padding: 12px 0; font-size: 48px; line-height: 1; }
  .footer__bottom { margin-top: 64px; flex-direction: column; }
  .footer__bottom p:last-child { width: auto; }
}
