/* ──────────────────────────────────────────────────────────────────
   Misturah Aregbesola — Portfolio styles
   Warm editorial. Generous whitespace. Quiet, confident.
   ────────────────────────────────────────────────────────────────── */

:root {
  --bg: #faf6ef;
  --surface: #f3ede2;
  --ink: #1a1614;
  --sub: #6b6358;
  --accent: #c8956d;
  --line: #e6dccb;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --display-weight: 400;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1180px;
  --rad: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ──────────────────────────────────────────────────────────────────
   Nav
   ────────────────────────────────────────────────────────────────── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 0.5px solid transparent;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-mono {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
}

.topnav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--sub);
}

.topnav-links a {
  transition: color 0.2s;
}

.topnav-links a:hover { color: var(--ink); }

/* ──────────────────────────────────────────────────────────────────
   Theme toggle — sliding pill (sun ↔ moon)
   ────────────────────────────────────────────────────────────────── */
.theme-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:focus-visible .tt-track {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent);
}

.tt-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 0.5px solid var(--line);
  padding: 2px;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.tt-icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--sub);
  transition: color 0.35s ease;
  pointer-events: none;
}

.tt-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--bg);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18),
              0 0 0 0.5px color-mix(in srgb, var(--ink) 12%, transparent);
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
              background 0.4s ease;
  z-index: 1;
}

.theme-toggle.is-dark .tt-thumb {
  transform: translateX(28px);
  background: var(--accent);
}

.theme-toggle.is-light .tt-sun { color: var(--accent); }
.theme-toggle.is-dark  .tt-moon { color: var(--bg); }

.theme-toggle:hover .tt-track {
  background: color-mix(in srgb, var(--surface) 70%, var(--accent) 18%);
}

@media (max-width: 720px) {
  .topnav-links { display: none; }
  .theme-toggle { margin-left: auto; }
}

/* ──────────────────────────────────────────────────────────────────
   Common
   ────────────────────────────────────────────────────────────────── */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  flex: 1;
}

.sect {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
  position: relative;
}

.divider {
  height: 1px;
  background: var(--line);
  position: relative;
}

.divider span {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}

.sect-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 18px;
}

.kicker-rule {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.sect-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.accent-word { color: var(--accent); font-style: italic; }

/* ──────────────────────────────────────────────────────────────────
   Hero — common
   ────────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 8vw, 100px) 0 clamp(60px, 9vw, 120px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sub);
  padding: 7px 14px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 32px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 5%, transparent); }
}

.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 40px;
  text-wrap: balance;
}

.display em { font-style: italic; color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 26px;
  border-radius: 999px;
  border: 0.5px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: -0.005em;
}

.btn-lg { padding: 20px 32px; font-size: 16px; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────
   Hero — centered
   ────────────────────────────────────────────────────────────────── */
.hero-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-centered .display {
  max-width: 18ch;
}

.hero-centered .hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 0.5px solid var(--line);
  flex-wrap: wrap;
  gap: 24px;
}

.hero-mono {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--display-weight);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero-role {
  font-size: 13px;
  color: var(--sub);
  margin-top: 2px;
}

/* ──────────────────────────────────────────────────────────────────
   Hero — split
   ────────────────────────────────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.display-l { font-size: clamp(56px, 9vw, 120px); }

.hero-tag {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--sub);
  line-height: 1.5;
  max-width: 44ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.hero-split-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
}

.hero-card {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: var(--rad);
  padding: 18px 22px;
  width: 100%;
  max-width: 320px;
  font-size: 13.5px;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--line);
  color: var(--sub);
}

.hero-card-row:last-child { border-bottom: 0; }

.hero-card-row span:last-child { color: var(--ink); font-weight: 500; }

@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-r { align-items: flex-start; }
}

/* ──────────────────────────────────────────────────────────────────
   Hero — editorial
   ────────────────────────────────────────────────────────────────── */
.hero-editorial {
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 56px);
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
}

.hero-ed-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(20px, 3vw, 40px);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sub);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--line);
}

.hero-ed-name {
  color: var(--ink);
  font-weight: 600;
}

.display-xl {
  font-size: clamp(54px, 10.5vw, 148px);
  line-height: 0.92;
  margin: 0 0 24px;
  letter-spacing: -0.035em;
}

.hero-ed-amp {
  font-style: italic;
  color: var(--accent);
  margin: 0 0.05em;
}

.hero-ed-bottom {
  display: flex;
  align-items: flex-end;
  margin-top: clamp(16px, 2.5vw, 28px);
}

.hero-tag-ed {
  margin-bottom: 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.4vw, 18px);
}

.hero-ctas-ed {
  margin-top: auto;
  padding-top: 20px;
  border-top: 0.5px solid var(--line);
}

@media (max-width: 720px) {
  .hero-ed-bottom { flex-direction: column; align-items: flex-start; }
}

/* ──────────────────────────────────────────────────────────────────
   About
   ────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

.about-body {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

.about-body:nth-child(2) { color: var(--sub); }

.about-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 0.5px solid var(--line);
}

.stat-n {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-l {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sub);
  line-height: 1.4;
}

.tools {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 0.5px solid var(--line);
}

.tools-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sub);
  font-weight: 600;
}

.tools-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  flex-wrap: wrap;
}

.tools-list li {
  font-size: 13px;
  padding: 6px 12px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ──────────────────────────────────────────────────────────────────
   Services
   ────────────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 0.5px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
}

.svc {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 44px);
  transition: background 0.35s ease, color 0.35s ease;
  cursor: default;
}

.svc:hover {
  background: var(--accent);
  color: var(--bg);
}

.svc:hover .svc-n,
.svc:hover .svc-title,
.svc:hover .svc-body {
  color: var(--bg);
}

.svc-n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  transition: color 0.35s ease;
}

.svc-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(26px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  transition: color 0.35s ease;
}

.svc-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--sub);
  margin: 0;
  text-wrap: pretty;
  transition: color 0.35s ease;
}

/* "And so much more" — special 5th card that spans the row */
.svc-more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) clamp(28px, 3.5vw, 44px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.svc-more .svc-n { margin-bottom: 0; font-size: 28px; font-style: normal; line-height: 1; }
.svc-more .svc-title { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.svc-more .svc-body { max-width: 56ch; }

.svc-more-cta {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.25s ease, color 0.35s ease;
}

.svc-more:hover .svc-more-cta { color: var(--bg); }
.svc-more:hover { transform: none; }

@media (max-width: 720px) {
  .svc-more {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   Brands / experience — marquee
   ────────────────────────────────────────────────────────────────── */
.sect-brands { overflow: hidden; }

.marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);  /* break out of max-width container */
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.logo-card {
  flex: 0 0 auto;
  width: 240px;
  height: 130px;
  border-radius: 16px;
  border: 0.5px solid var(--line);
  display: grid;
  place-items: center;
  padding: 24px 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
              0 8px 24px -16px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.25);
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Full-bleed variant: image fills the card edge-to-edge (use when the logo
   PNG has been padded to the card aspect ratio already). */
.logo-card-bleed {
  padding: 0;
  overflow: hidden;
}
.logo-card-bleed img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* CTA card: "Your brand could be next" — dashed, accent-tinted, clickable */
.logo-card-cta {
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.logo-card-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-3px);
}

.cta-plus {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 0.8;
  color: var(--accent);
  transition: color 0.3s ease;
}

.logo-card-cta:hover .cta-plus { color: var(--bg); }

.cta-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cta-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo-card-cta { position: relative; }
.logo-card-cta:hover .cta-arrow { color: var(--bg); transform: translateX(4px); }

.marquee-fade { display: none; } /* using mask instead — kept hook in case */

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

@media (max-width: 720px) {
  .logo-card { width: 180px; height: 100px; padding: 18px 22px; }
}

/* Names underneath, as a quiet roster */
.brand-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 0.5px solid var(--line);
}

.brand-name-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sub);
  padding: 6px 12px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ──────────────────────────────────────────────────────────────────
   Testimonials
   ────────────────────────────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(28px, 3vw, 40px);
  margin: 0;
  position: relative;
}

.testi-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  position: absolute;
  top: 22px;
  right: 28px;
  font-style: italic;
}

.testi-q {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.testi-cap {
  padding-top: 18px;
  border-top: 0.5px solid var(--line);
}

.testi-who { font-weight: 500; font-size: 14px; }
.testi-role { font-size: 13px; color: var(--sub); margin-top: 2px; }

@media (max-width: 960px) {
  .testi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   Contact
   ────────────────────────────────────────────────────────────────── */
.contact-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--sub);
  max-width: 50ch;
  line-height: 1.55;
  margin: 0 0 48px;
  text-wrap: pretty;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  margin-bottom: 48px;
}

.contact-row {
  background: var(--bg);
  display: grid;
  grid-template-columns: 100px 1fr 28px;
  align-items: center;
  padding: 22px 0;
  gap: 16px;
  transition: background 0.25s, padding 0.25s;
}

.contact-row:hover {
  background: var(--surface);
  padding-left: 16px;
  padding-right: 16px;
}

.contact-row:hover .contact-arrow { transform: translateX(4px); color: var(--accent); }

.contact-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sub);
  font-weight: 600;
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.01em;
}

.contact-arrow {
  font-size: 18px;
  color: var(--sub);
  transition: all 0.25s ease;
  text-align: right;
}

.contact-cv {
  display: flex;
  justify-content: center;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────────── */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--sub);
  border-top: 0.5px solid var(--line);
}

@media (max-width: 600px) {
  .footer { flex-direction: column; gap: 8px; }
}

/* ──────────────────────────────────────────────────────────────────
   Animations on scroll (gentle)
   ────────────────────────────────────────────────────────────────── */
.sect, .hero {
  animation: fadeUp 0.6s ease-out backwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
