:root {
  --bg: #f4efe7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fff9f1;
  --text: #151515;
  --muted: #5d554f;
  --line: rgba(21, 21, 21, 0.1);
  --accent: #ff6a3d;
  --accent-deep: #dc4d26;
  --accent-soft: #ffd8c7;
  --shadow: 0 24px 70px rgba(25, 19, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 61, 0.25), transparent 30%),
    radial-gradient(circle at right 20%, rgba(16, 126, 255, 0.14), transparent 25%),
    linear-gradient(180deg, #f6f1e9 0%, #ede4d8 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(21, 21, 21, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(244, 239, 231, 0.78);
  backdrop-filter: blur(16px);
}

.brand,
.nav a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

section {
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 32px;
  min-height: calc(100vh - 110px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  max-width: 12ch;
}

.hero-text,
.section-heading p:not(.eyebrow),
.service-card p,
.project-copy p,
.process-steps p,
.timeline span,
.quote-card,
.contact-card p,
.mini-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.05rem;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.showcase-card,
.mini-panel,
.project-card,
.service-card,
.process-panel,
.experience-stats article,
.timeline article,
.quote-card,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.primary-card {
  padding: 28px;
  min-height: 360px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 106, 61, 0.94), rgba(32, 18, 7, 0.96)),
    #1c130f;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  position: relative;
}

.primary-card::before,
.primary-card::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.primary-card::before {
  width: 240px;
  height: 240px;
  top: -60px;
  right: -40px;
}

.primary-card::after {
  width: 140px;
  height: 140px;
  bottom: 22px;
  left: -30px;
}

.card-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
}

.primary-card h2 {
  max-width: 9ch;
}

.primary-card p {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.8);
}

.showcase-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.mini-panel,
.service-card,
.experience-stats article,
.timeline article,
.quote-card,
.about-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.mini-panel span,
.experience-stats strong,
.process-steps span {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  line-height: 1;
}

.profile-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.profile-panel-head span {
  margin-bottom: 8px;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.profile-panel-head p {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.profile-photo-wrap {
  width: 100%;
  height: 260px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(21, 21, 21, 0.18);
  background: #ddd3c8;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.profile-panel-copy {
  max-width: 26ch;
}

.profile-panel-copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.mini-panel.accent {
  display: grid;
  align-content: start;
  background: linear-gradient(180deg, var(--accent-soft), rgba(255, 255, 255, 0.65));
}

.marquee-band {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 40px;
  min-width: max-content;
  animation: slide 22s linear infinite;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-35%);
  }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  font: inherit;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--text);
  color: #fff;
}

.portfolio-grid,
.services-grid,
.media-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.85fr;
  gap: 20px;
}

.about-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-portrait {
  padding: 0;
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.about-story p + p {
  margin-top: 16px;
}

.about-highlights {
  display: grid;
  gap: 14px;
}

.about-highlights div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.about-highlights div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-highlights strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.about-highlights span {
  color: var(--text);
  line-height: 1.6;
}

.project-meta {
  margin-bottom: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card h3,
.media-card h3,
.timeline h3,
.process-steps h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.portfolio-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-block.is-hidden {
  display: none;
}

.portfolio-block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
}

.portfolio-block-head > div {
  display: grid;
  align-content: start;
}

.portfolio-block-head .project-meta {
  margin: 0 0 8px;
}

.portfolio-label {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.media-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.media-video-wrap {
  overflow: hidden;
  margin: 14px 0 12px;
  border-radius: 18px;
  background: #0e0e0e;
  box-shadow: 0 18px 36px rgba(21, 21, 21, 0.18);
  aspect-ratio: 16 / 11;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.portfolio-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  image-rendering: auto;
}

.graphics-empty,
.graphics-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  margin: 14px 0 12px;
  padding: 20px;
  border: 1px dashed rgba(21, 21, 21, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 106, 61, 0.08), transparent),
    rgba(255, 255, 255, 0.66);
  text-align: center;
  flex: 0 0 auto;
}

.graphics-preview {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #ddd3c8;
  box-shadow: 0 18px 36px rgba(21, 21, 21, 0.12);
}

.graphics-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.graphics-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #f5f1ea;
}

.graphics-empty strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.graphics-empty p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  min-height: 4.6rem;
  display: flex;
  align-items: flex-start;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  padding: 32px;
  background: rgba(14, 14, 14, 0.9);
}

.lightbox.is-open {
  display: grid;
  place-items: center;
}

.lightbox-stage {
  max-width: min(1200px, calc(100vw - 80px));
  max-height: calc(100vh - 100px);
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.media-card code {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.08);
  font-family: inherit;
  font-weight: 800;
}

.process-panel {
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 239, 230, 0.9));
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-steps article {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.experience-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
}

.experience-stats {
  display: grid;
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline p {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-card {
  margin: 0;
  font-size: 1.06rem;
}

.quote-card cite {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 61, 0.16), transparent 30%),
    var(--surface-strong);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 21, 21, 0.24);
  background: #fff;
}

.contact-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
} */


/* SAFE reveal animation (mobile-friendly) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

/* When visible */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero,
  .services-grid,
  .about-layout,
  .experience-layout,
  .contact-card,
  .process-steps,
  .showcase-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-video-wrap,
  .graphics-empty,
  .graphics-preview {
    aspect-ratio: auto;
    height: auto;
    min-height: 260px;
  }

  .portfolio-block-head {
    min-height: auto;
  }

  .portfolio-summary {
    min-height: auto;
  }

  .profile-photo-wrap {
    height: 320px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand-text {
    display: none;
  }

  section {
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 20px;
  }

  .primary-card,
  .contact-card,
  .process-panel {
    border-radius: 24px;
  }

  .profile-panel-head span {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .profile-photo-wrap {
    height: 280px;
    border-radius: 22px;
  }
}

/* Mobile fallback (prevents hidden content bug) */
@media (max-width: 768px) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}