/* ==========================================================================
   Saheed Alabi — Portfolio
   Warm cream, ink black and one yellow accent. Plus Jakarta Sans throughout.
   ========================================================================== */

:root {
  --cream: #faf2e9;
  --cream-deep: #f3e7d9;
  --white: #ffffff;
  --ink: #0e0e11;
  --ink-soft: #2a2a30;
  --muted: #5b6270;
  --line: rgba(14, 14, 17, 0.09);
  --line-strong: rgba(14, 14, 17, 0.18);
  --accent: #ffb800;
  --accent-deep: #e0a200;
  --accent-soft: #fff1c7;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(14, 14, 17, 0.05);
  --shadow: 0 18px 40px -18px rgba(14, 14, 17, 0.22);
  --shadow-lg: 0 40px 80px -30px rgba(14, 14, 17, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1160px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
strong { font-weight: 700; }

::selection { background: var(--accent); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Lucide icons */
[data-lucide], .lucide { width: 1.1em; height: 1.1em; stroke-width: 2.2; flex-shrink: 0; }
.icon-linkedin { width: 1.15em; height: 1.15em; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn .lucide { transition: transform 0.3s var(--ease-out); }
.btn:hover .lucide { transform: translate(2px, -2px); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(224, 162, 0, 0.7); }

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

.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--white); }

.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s, height 0.3s;
}
.site-header.is-scrolled {
  background: rgba(250, 242, 233, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.scroll-progress {
  position: absolute;
  left: 0; top: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }
.logo-light { color: var(--white); }

.nav-links {
  display: none;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background-color 0.25s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { background: var(--ink); color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta { display: none; }

.menu-toggle {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--ink);
  display: grid;
  place-content: center;
  gap: 6px;
  position: relative;
  z-index: 102;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: var(--ink);
  color: var(--white);
  padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path 0.6s var(--ease-out);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.mobile-menu ul { display: grid; gap: 0.4rem; }
.mobile-menu ul a {
  display: block;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 0.2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out), color 0.2s;
}
.mobile-menu ul a:hover { color: var(--accent); }
.mobile-menu.is-open ul a { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: 0.12s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.17s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.22s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 0.27s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 0.32s; }

body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .logo { color: var(--white); position: relative; z-index: 102; }
body.menu-open .menu-toggle { background: var(--accent); }
body.menu-open .menu-toggle span { background: var(--ink); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 560px) and (max-width: 959px) {
  .nav-cta { display: inline-flex; }
}

/* ---------- Shared section bits ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-white { background: var(--white); }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 860px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 3rem; }
}
.section-head-sm { margin-bottom: 1.75rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.65); }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.section-title-sm { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.section-lead { color: var(--muted); max-width: 44ch; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--accent-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .lucide { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .lucide { transform: translate(2px, -2px); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 60vmax; height: 60vmax;
  right: -22vmax; top: -18vmax;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.18), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
}

.eyebrow-pill {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.hero-name {
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin-bottom: 1.6rem;
}
.hero-line {
  display: block;
  overflow: hidden;
  /* room for the yellow dot that sits slightly outside the first letter */
  padding: 0.04em 0 0.08em 0.18em;
  margin-left: -0.18em;
}
.hero-word { display: inline-block; position: relative; }
.name-dot {
  position: absolute;
  width: 0.92em; height: 0.92em;
  left: -0.14em; top: 0.02em;
  border-radius: 50%;
  background: var(--accent);
  z-index: -1;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-bottom: 1.1rem;
}
.hl {
  background-image: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: highlight 0.9s var(--ease-out) forwards;
}
.hl:nth-child(1) { animation-delay: 1.05s; }
.hl:nth-child(2) { animation-delay: 1.2s; }
.hl:nth-child(3) { animation-delay: 1.35s; }
@keyframes highlight { to { background-size: 100% 100%; } }

.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  max-width: 48ch;
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Hero entrance */
.hero-anim, .hero-word {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 0.11s + 0.1s);
}
.hero-word { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Portrait */
.hero-visual { display: flex; justify-content: center; }
.portrait {
  position: relative;
  width: min(78vw, 360px);
  aspect-ratio: 290 / 360;
}
.portrait-backdrop, .portrait-frame {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 999px;
}
.portrait-backdrop {
  background: var(--accent);
  translate: -14px -14px;
}
.portrait-frame {
  overflow: hidden;
  background: var(--accent);
  box-shadow: var(--shadow-lg);
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.04);
  transition: filter 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.portrait:hover .portrait-frame img { filter: grayscale(0); transform: scale(1.08); }

[data-depth] { transition: transform 0.6s var(--ease-out); will-change: transform; }

.stamp {
  position: absolute;
  right: -28px; bottom: -18px;
  width: 118px; height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow);
  z-index: 3;
}
.stamp > svg {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px); height: calc(100% - 12px);
  animation: spin 18s linear infinite;
}
.stamp text { font-size: 8.4px; font-weight: 800; letter-spacing: 1px; fill: var(--ink); }
.stamp-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease-spring);
}
.stamp:hover .stamp-arrow { transform: scale(1.15) rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.float-chip .lucide { color: var(--accent-deep); }
.chip-web { left: -18%; top: 14%; }
.chip-design { right: -12%; top: 40%; }
.chip-social { left: -10%; bottom: 16%; }
.float-chip > * { pointer-events: none; }
@media (max-width: 480px) {
  .chip-web { left: -6%; }
  .chip-design { right: -4%; }
  .chip-social { left: -2%; }
}

/* ---------- Ribbon ---------- */
.ribbon-wrap {
  overflow: hidden;
  padding: 1.25rem 0;
  margin: -1.25rem 0;
  position: relative;
  z-index: 2;
}
.ribbon {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 1.1rem 0;
  transform: rotate(-1.2deg);
  margin: 0 -2vw;
  position: relative;
  z-index: 2;
}
.ribbon-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon span { font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -0.01em; }
.ribbon i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Results ---------- */
.results { padding: clamp(3.5rem, 7vw, 5rem) 0 0; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 860px) { .results-grid { grid-template-columns: repeat(4, 1fr); } }

.result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.result:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.result-num {
  font-size: clamp(2.3rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.result-num::after {
  content: '';
  display: block;
  width: 28px; height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin-top: 0.8rem;
}
.result-label { color: var(--muted); font-size: 0.92rem; font-weight: 500; }

/* ---------- Work ---------- */
.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.work-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.work-card.is-hidden { display: none; }
.work-card.is-leaving { opacity: 0; transform: scale(0.97); }

.work-media {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  transform-style: preserve-3d;
}
.work-media::after {
  /* soft glare that follows the cursor */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.work-media:hover { box-shadow: var(--shadow-lg); }
.work-media:hover::after { opacity: 1; }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #fbfaf8;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2dcd3; }
.dots i:nth-child(1) { background: #ff6058; }
.dots i:nth-child(2) { background: #ffbd2e; }
.dots i:nth-child(3) { background: #28c840; }
.url {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-deep);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s var(--ease-out);
}
.work-media:hover .shot img { transform: scale(1.06); }

.media-cta {
  position: absolute;
  left: 50%; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  transform: translate(-50%, 140%);
  transition: transform 0.45s var(--ease-spring);
}
.media-cta .lucide { color: var(--accent); }
.work-media:hover .media-cta,
.work-media:focus-visible .media-cta { transform: translate(-50%, 0); }
@media (hover: none) { .media-cta { transform: translate(-50%, 0); } }

.work-info { display: grid; gap: 0.5rem; justify-items: start; }
.work-info h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.work-info p { color: var(--muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.8rem 1.6rem 1.6rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), color 0.35s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: -1;
  clip-path: circle(0% at 100% 0%);
  transition: clip-path 0.6s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); color: var(--white); }
.service-card:hover::before { clip-path: circle(150% at 100% 0%); }
.service-card:hover p { color: rgba(255, 255, 255, 0.72); }

.service-num {
  position: absolute;
  right: 1.4rem; top: 1.2rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.3s;
}
.service-card:hover .service-num { color: var(--accent); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
  transition: transform 0.5s var(--ease-spring);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.service-card p { color: var(--muted); font-size: 0.95rem; transition: color 0.3s; }
.service-go {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 1.2rem;
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover .service-go { transform: translate(4px, -4px); color: var(--accent); }

/* ---------- Designs ---------- */
.design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .design-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1000px) { .design-grid { grid-template-columns: repeat(4, 1fr); } }

.design-tile {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--cream-deep);
  box-shadow: var(--shadow-sm);
}
.design-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.design-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 17, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='none' stroke='%23ffb800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 40px no-repeat;
  opacity: 0;
  transition: opacity 0.35s;
}
.design-tile:hover img, .design-tile:focus-visible img { transform: scale(1.08); }
.design-tile:hover::after, .design-tile:focus-visible::after { opacity: 1; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4.5rem; } }

.about-visual { position: relative; justify-self: center; width: min(80vw, 360px); }
.about-frame {
  aspect-ratio: 4 / 5;
  border-radius: 999px;
  overflow: hidden;
  background: var(--accent);
  box-shadow: 18px 18px 0 var(--accent-soft);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about-badge {
  position: absolute;
  right: -6%; bottom: 10%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  line-height: 1.3;
}
.about-badge .lucide { color: var(--accent); width: 1.6em; height: 1.6em; }
.about-badge strong { display: block; font-size: 1rem; }

.about-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; font-size: 1.04rem; }
.about-copy .section-title { margin-bottom: 0.5rem; }

.vision {
  margin-top: 2rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--cream);
  border-left: 4px solid var(--accent);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.55;
}
.vision .lucide { color: var(--accent-deep); margin-bottom: 0.5rem; width: 1.5em; height: 1.5em; }

/* Journey */
.journey { margin-top: clamp(4rem, 8vw, 6rem); }
.journey-list {
  border-top: 1px solid var(--line);
}
.role { border-bottom: 1px solid var(--line); }
.role summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  transition: padding 0.3s var(--ease-out);
}
.role summary::-webkit-details-marker { display: none; }
.role summary:hover { padding-left: 0.75rem; }
.role-main { display: grid; gap: 0.15rem; min-width: 0; }
.role-title { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.015em; }
.role-org { color: var(--muted); font-size: 0.93rem; }
.role-tag {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.role-tag-accent { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (min-width: 640px) { .role-tag { display: inline-flex; align-items: center; gap: 0.3rem; } }
.role-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}
.role-toggle::before, .role-toggle::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  translate: -50% -50%;
  transition: transform 0.35s var(--ease-out);
}
.role-toggle::after { transform: rotate(90deg); }
.role[open] .role-toggle { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.role[open] .role-toggle::after { transform: rotate(0deg); }
.role ul {
  display: grid;
  gap: 0.6rem;
  padding: 0 0.25rem 1.5rem;
  max-width: 78ch;
}
.role[open] ul { animation: fadeDown 0.45s var(--ease-out); }
.role li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
}
.role li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.role li strong { color: var(--ink); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* Credentials */
.creds {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) { .creds { grid-template-columns: 1fr 1fr; } }
.creds-block {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.creds-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.creds-title:not(:first-child) { margin-top: 2rem; }
.creds-title .lucide { color: var(--accent-deep); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-spring), background-color 0.25s, border-color 0.25s;
}
.chips li:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); }
.chips-soft li { background: transparent; }

.edu-list, .cert-list { display: grid; gap: 1rem; }
.edu-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.edu-year {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}
.edu-list strong { display: block; line-height: 1.35; }
.edu-list span:not(.edu-year) { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.distinction {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.cert-list { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.cert-list li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
}
.cert-list strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.cert-list span { color: var(--muted); font-size: 0.82rem; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  width: 50vmax; height: 50vmax;
  left: -20vmax; bottom: -25vmax;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.16), transparent 60%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  gap: 3rem;
  position: relative;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }

.contact-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
}
.hl-dark { color: var(--accent); }
.contact-lead { color: rgba(255, 255, 255, 0.7); max-width: 46ch; margin-bottom: 2rem; }

.contact-methods { display: grid; gap: 0.6rem; }
.contact-methods a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s, border-color 0.25s, transform 0.35s var(--ease-out);
  word-break: break-word;
}
.contact-methods a:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 184, 0, 0.5); transform: translateX(6px); }
.contact-methods small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.cm-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
}

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.form-card > p { color: var(--muted); margin: 0.3rem 0 1.5rem; }

#contact-form { display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 1.35rem 1rem 0.55rem;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--cream);
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field textarea { min-height: 140px; }
.field label {
  position: absolute;
  left: 1rem; top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.25s var(--ease-out), color 0.25s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 2rem);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.25);
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.6rem) scale(0.78);
  color: var(--ink);
  font-weight: 600;
}
.field.has-error input, .field.has-error textarea { border-color: #dc2626; }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-feedback { display: none; padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.92rem; font-weight: 500; }
.form-feedback.success { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-feedback.error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-feedback a { font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0 1.5rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-weight: 600; font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease-spring);
}
.footer-social a:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}
.to-top { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.to-top:hover { color: var(--accent); }

/* ---------- Project modal ---------- */
.modal, .lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  /* closing: fade out, then hide */
  transition: opacity 0.35s, visibility 0s linear 0.35s;
}
.modal[hidden], .lightbox[hidden] { display: grid; }
.modal.is-open, .lightbox.is-open {
  opacity: 1;
  visibility: visible;
  /* opening: visible immediately so focus can move inside, then fade in */
  transition: opacity 0.35s, visibility 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.5s var(--ease-out);
}
.modal.is-open .modal-panel { transform: none; }
@media (min-width: 900px) { .modal-panel { grid-template-columns: 1.55fr 1fr; } }

.modal-close {
  position: absolute;
  right: 0.8rem; top: 0.8rem;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  transition: transform 0.35s var(--ease-spring), background-color 0.25s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--accent); color: var(--ink); }

.modal-media { background: #0f0f11; display: flex; flex-direction: column; }
.modal-media .browser-bar { background: #1a1a1f; border-color: rgba(255, 255, 255, 0.06); }
.modal-media .url { background: #26262c; border-color: transparent; color: rgba(255, 255, 255, 0.7); }
.modal-screen { position: relative; aspect-ratio: 16 / 10; background: #0f0f11; }
.modal-screen video { width: 100%; height: 100%; object-fit: contain; }
.modal-poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: none;
}
.modal-poster.is-visible { display: block; }
.modal-play {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.4rem;
  box-shadow: 0 0 0 10px rgba(255, 184, 0, 0.2);
  transition: transform 0.35s var(--ease-spring), opacity 0.3s;
}
.modal-play:hover { transform: scale(1.08); }
.modal-play.is-hidden { opacity: 0; pointer-events: none; }
.modal-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  color: var(--white);
  font-size: 0.8rem;
}
.modal-controls.is-hidden { visibility: hidden; }
.modal-controls button { color: var(--white); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.modal-controls button:hover { background: rgba(255, 255, 255, 0.1); }
.modal-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.modal-progress { height: 100%; width: 0; background: var(--accent); }
.modal-time { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.7); }

.modal-info {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.9rem;
}
.modal-info h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.modal-info p { color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { background: rgba(14, 14, 17, 0.94); padding: 1rem 0.5rem; }
.lb-figure {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: min(92vw, 900px);
  touch-action: pan-y;
}
.lb-figure img {
  max-height: calc(100svh - 9rem);
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.lb-figure img.is-loading { opacity: 0.35; }
.lb-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.92rem;
  display: grid;
  gap: 0.2rem;
  max-width: 60ch;
}
.lb-count { color: var(--accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; }
.lb-close, .lb-nav {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.3rem;
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease-spring);
  z-index: 2;
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: var(--ink); }
.lb-close { right: 1rem; top: 1rem; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }
@media (max-width: 640px) {
  .lb-nav { top: auto; bottom: 1rem; translate: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-figure img { max-height: calc(100svh - 12rem); }
}

body.no-scroll { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero-anim, .hero-word, .js .reveal { opacity: 1 !important; transform: none !important; }
  .hl { background-size: 100% 100%; }
  .ribbon-track { animation: none; }
}
