/* ---------- Tokens ---------- */
:root {
  --bg: #0d0f12;
  --surface: #15181d;
  --border: #242830;
  --text: #e8eaed;
  --muted: #9aa0a8;
  --accent: #ff5a4d;       /* change this one value to re-color the site */
  --on-accent: #0d0f12;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --header-h: 68px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: .5rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(13, 15, 18, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.site-nav { display: flex; gap: .25rem; }

.site-nav a {
  padding: .5rem .9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); background: var(--surface); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  transition: transform .2s, top .2s;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ff7266; }
.btn-ghost { border-color: var(--border); color: var(--text);}
.btn-ghost:hover { border-color: var(--muted); }
.work-more .btn-ghost{ background: var(--accent); color: var(--on-accent);}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 7rem);
  scroll-margin-top: var(--header-h);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.hero-title {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--accent);
}

.hero-intro {
  margin: 1.25rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

/* The one memorable element: photo with an offset accent outline */
.hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 560px);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 2px solid var(--accent);
  border-radius: 24px;
}
.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  background: var(--surface);
}

/* Single page-load moment: hero content rises in once */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-photo { animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Section shells (filled in later steps) ---------- */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  scroll-margin-top: var(--header-h);
  border-top: 1px solid var(--border);
}
.section-title {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -.02em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
}
/* @media (max-width: 400px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(100%, 320px); justify-self: start; margin-right: 16px; }
} */

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: .75rem 1.25rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none !important; }
  .reveal { opacity: 1 !important; }
}

/* ---------- Accounts ---------- */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.account-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s, border-color .2s;
}
.account-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.account-top {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}
.platform-logo { width: 22px; height: 22px; color: var(--text); }

.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border);
}

.account-handle {
  margin: 1rem 0 .25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.account-count { margin: 0; color: var(--muted); }
.account-count strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.account-visit {
  margin-top: 1.5rem;
  padding-top: 1rem;
  width: 100%;
  border-top: 1px solid var(--border);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.account-card:hover .account-visit { color: var(--accent); }

@media (max-width: 1000px) {
  .accounts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .accounts-grid { grid-template-columns: 1fr; }
}

/* ---------- Work: filters + video grid ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.75rem;
}

.chip {
  padding: .55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: 500 .95rem var(--font-body);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.work-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  /* Room so hovered cards can lift without being clipped while collapsed (nets out to no shift) */
  padding-top: 6px;
  margin-top: -6px;
}
.work-grid.is-clamped { overflow: hidden; }
.work-grid.is-animating { transition: max-height .6s cubic-bezier(.2, .7, .2, 1); }

.work-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.work-more[hidden] { display: none; }

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.video-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-badge {
  position: absolute;
  top: .8rem;
  left: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(13, 15, 18, .8);
  backdrop-filter: blur(6px);
  font-size: .8rem;
  font-weight: 600;
}
.video-badge svg { width: 14px; height: 14px; }

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 15, 18, .35);
  opacity: 0;
  transition: opacity .2s;
}
.video-play svg {
  width: 64px;
  height: 64px;
  padding: 18px 14px 18px 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.video-card:hover .video-play,
.video-card:focus-visible .video-play { opacity: 1; }

.video-info { padding: 1.1rem 1.25rem 1.3rem; }
.video-title {
  margin: 0 0 .4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.video-views { margin: 0; color: var(--muted); }
.video-views strong { color: var(--text); font-weight: 600; }

.empty-state { grid-column: 1 / -1; color: var(--muted); }

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .video-play { opacity: 0; }
}

/* ---------- Services ---------- */
.section-intro {
  margin: -1.25rem 0 2rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.service-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 90, 77, .12);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.service-icon svg { width: 26px; height: 26px; }

.service-title {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.service-desc { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: row; align-items: flex-start; }
}
@media (max-width: 560px) {
  .service-card { flex-direction: column; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-main { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

.contact-intro {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.015em;
}

.contact-email {
  color: var(--muted);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.contact-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.contact-links a:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-links svg { width: 22px; height: 22px; flex: none; }
.contact-links span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.link-platform { font-weight: 600; }
.link-handle { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

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

/* ---------- Page-load intro ---------- */
.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg);
}
.js .loader { display: flex; }
.js:not(.is-loaded) body { overflow: hidden; }

.loader-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  letter-spacing: -.03em;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
.loader-bar {
  width: min(60vw, 220px);
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: load-fill .9s .1s cubic-bezier(.65, 0, .35, 1) both;
}
@keyframes load-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Curtain lifts once the page is ready */
.is-loaded .loader {
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .7s cubic-bezier(.77, 0, .18, 1), visibility 0s .7s;
}

/* Hero entrance waits for the curtain */
.js:not(.is-loaded) .hero-copy > *,
.js:not(.is-loaded) .hero-photo { animation-play-state: paused; }
.js .hero-copy > * { animation-delay: .45s; }
.js .hero-copy > :nth-child(2) { animation-delay: .53s; }
.js .hero-copy > :nth-child(3) { animation-delay: .61s; }
.js .hero-copy > :nth-child(4) { animation-delay: .69s; }
.js .hero-photo { animation-delay: .6s; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Scroll reveal ---------- */
/* Uses the individual `translate` property so card hover transforms still work */
.reveal:not(.is-visible) { opacity: 0; }
.reveal.is-visible {
  animation: reveal .75s calc(var(--i, 0) * 80ms) cubic-bezier(.2, .7, .2, 1) backwards;
}
@keyframes reveal {
  from { opacity: 0; translate: 0 32px; }
  to   { opacity: 1; translate: 0 0; }
}
