/* ================================================================
   SCRIPTA ACADEMIC — Stylesheet
   ================================================================ */

/* ----------------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-dark: #0D1B2A;
  --bg-dark-deep: #0A1628;
  --bg-light: #F7F7F7;
  --navy: #1B2A4A;
  --blue-accent: #2E75B6;
  --teal: #0D7377;
  --teal-light: #10A3A8;
  --text-light: #E8E8E8;
  --text-dark: #1A1A1A;
  --gold: #C9A96E;
  --white: #FFFFFF;
  --divider-dark: rgba(255, 255, 255, 0.1);
  --divider-light: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing (8px system) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 300ms;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Layout */
  --max-width: 1200px;
  --navbar-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--teal);
  color: var(--white);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   Utility Classes
   ---------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.section {
  padding: var(--sp-12) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section--light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: var(--sp-2);
  color: var(--text-dark);
}

.section__title--light {
  color: var(--text-light);
}

.section__subtitle {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.section__subtitle--light {
  color: rgba(232, 232, 232, 0.7);
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.3);
}

.btn--white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--text-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn--lg {
  padding: var(--sp-2) var(--sp-5);
  font-size: 1rem;
}

/* ----------------------------------------------------------------
   Links
   ---------------------------------------------------------------- */
.link--teal {
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all var(--duration) var(--ease);
}

.link--teal:hover {
  color: var(--teal-light);
  border-bottom-color: var(--teal-light);
}

/* ----------------------------------------------------------------
   NAVBAR
   ---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  transition: background var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.navbar--solid {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--divider-dark);
}

.navbar__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.navbar__logo-bold {
  font-family: var(--font-serif);
  font-weight: 700;
}

.navbar__logo-light {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.85em;
  opacity: 0.7;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.navbar__link {
  color: rgba(232, 232, 232, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: var(--sp-1) 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal-light);
  transition: width var(--duration) var(--ease);
}

.navbar__link:hover {
  color: var(--text-light);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  background: var(--teal);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all var(--duration) var(--ease);
}

.navbar__cta:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.navbar__badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-1);
  z-index: 1001;
}

.navbar__toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.navbar__toggle--active .navbar__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle--active .navbar__toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar__toggle--active .navbar__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--bg-dark) 0%, var(--navy) 100%);
  overflow: hidden;
}

/* Geometric dot pattern */
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-3);
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: var(--sp-3);
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  color: var(--teal-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(232, 232, 232, 0.7);
  max-width: 560px;
  margin: 0 auto var(--sp-6);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.hero__scroll-link {
  color: rgba(232, 232, 232, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.hero__scroll-link:hover {
  color: var(--teal-light);
}

.hero__arrow {
  display: inline-block;
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal-light), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ----------------------------------------------------------------
   CREDENTIALS BAR
   ---------------------------------------------------------------- */
.credentials {
  background: var(--navy);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--divider-dark);
  border-bottom: 1px solid var(--divider-dark);
}

.credentials__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.credentials__item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: rgba(232, 232, 232, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.credentials__icon {
  width: 18px;
  height: 18px;
  color: var(--teal-light);
  flex-shrink: 0;
}

.credentials__divider {
  width: 1px;
  height: 16px;
  background: var(--divider-dark);
}

/* ----------------------------------------------------------------
   SERVICES
   ---------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: var(--sp-4);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(13, 115, 119, 0.08);
  color: var(--teal);
  margin-bottom: var(--sp-3);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: var(--sp-1);
  color: var(--text-dark);
}

.service-card__desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: var(--sp-3);
  flex-grow: 1;
}

.service-card__price {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--teal);
}

.services__cta {
  text-align: center;
  margin-top: var(--sp-6);
  font-size: 1.0625rem;
  color: #555;
}

/* ----------------------------------------------------------------
   WHY SECTION
   ---------------------------------------------------------------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.why__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(16, 163, 168, 0.1);
  color: var(--teal-light);
  margin-bottom: var(--sp-3);
}

.why__icon svg {
  width: 28px;
  height: 28px;
}

.why__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--sp-1);
  color: var(--text-light);
}

.why__desc {
  font-size: 0.9375rem;
  color: rgba(232, 232, 232, 0.65);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   STATS COUNTERS
   ---------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--divider-dark);
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--teal-light);
  line-height: 1.1;
}

.stats__plus {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--teal-light);
}

.stats__label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(232, 232, 232, 0.55);
  margin-top: var(--sp-1);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.why__divider {
  margin-top: var(--sp-8);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold),
    transparent
  );
  opacity: 0.3;
}

/* ----------------------------------------------------------------
   ABOUT
   ---------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-8);
  align-items: center;
}

.about__paragraph {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: var(--sp-3);
}

.about__credentials {
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.about__credentials li {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.about__check {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

.about__photo-placeholder {
  aspect-ratio: 3 / 4;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: rgba(0, 0, 0, 0.02);
}

.about__photo-icon {
  width: 48px;
  height: 48px;
  color: rgba(0, 0, 0, 0.15);
}

.about__photo-label {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.about__team-block {
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.06), rgba(13, 115, 119, 0.02));
  border-color: var(--teal);
  border-style: solid;
  aspect-ratio: auto;
  padding: var(--sp-8) var(--sp-4);
}

.about__team-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal);
  text-align: center;
}

.about__team-subtitle {
  font-size: 0.8125rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ----------------------------------------------------------------
   PORTFOLIO
   ---------------------------------------------------------------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--divider-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.portfolio-card:hover {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

.portfolio-card__cover {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy), var(--bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card__cover-icon {
  width: 40px;
  height: 40px;
  color: rgba(232, 232, 232, 0.2);
}

.portfolio-card__info {
  padding: var(--sp-3);
}

.portfolio-card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.portfolio-card__year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-light);
  background: rgba(16, 163, 168, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: var(--sp-1);
}

.portfolio-card__detail {
  font-size: 0.8125rem;
  color: rgba(232, 232, 232, 0.5);
}

/* ----------------------------------------------------------------
   TESTIMONIALS
   ---------------------------------------------------------------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.testimonial {
  padding: var(--sp-4);
  border: 1px solid var(--divider-light);
  border-radius: 8px;
  background: var(--white);
  position: relative;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: rgba(13, 115, 119, 0.15);
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-3);
  user-select: none;
}

.testimonial__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #444;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.testimonial__affiliation {
  font-size: 0.8125rem;
  color: #888;
}

/* ----------------------------------------------------------------
   PROCESS / TIMELINE
   ---------------------------------------------------------------- */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
  position: relative;
}

/* Horizontal connector line */
.process__timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: var(--divider-dark);
}

.process__step {
  text-align: center;
  position: relative;
}

.process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 163, 168, 0.1);
  border: 1px solid var(--teal);
  color: var(--teal-light);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.process__connector {
  display: none;
}

.process__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: var(--sp-1);
}

.process__desc {
  font-size: 0.8125rem;
  color: rgba(232, 232, 232, 0.55);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   CTA FINAL
   ---------------------------------------------------------------- */
.cta-final {
  background: linear-gradient(135deg, var(--teal) 0%, #0a5c5f 100%);
  text-align: center;
  color: var(--white);
  padding: var(--sp-12) 0;
}

.cta-final__container {
  max-width: 640px;
}

.cta-final__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--sp-2);
}

.cta-final__subtitle {
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: var(--sp-6);
}

.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.footer {
  background: var(--bg-dark-deep);
  color: rgba(232, 232, 232, 0.6);
  padding: var(--sp-8) 0 var(--sp-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.footer__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: var(--sp-2);
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(232, 232, 232, 0.4);
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--sp-2);
}

.footer__list li {
  margin-bottom: var(--sp-1);
}

.footer__list a {
  font-size: 0.875rem;
  transition: color var(--duration) var(--ease);
}

.footer__list a:hover {
  color: var(--teal-light);
}

.footer__payment {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__journal {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.footer__journal-issn {
  font-size: 0.8125rem;
  color: var(--teal-light);
}

.footer__bottom {
  border-top: 1px solid var(--divider-dark);
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(232, 232, 232, 0.35);
}

/* ----------------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   ---------------------------------------------------------------- */
.reveal-fade,
.reveal-up {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-fade {
  transform: none;
}

.reveal-up {
  transform: translateY(32px);
}

.reveal-fade.revealed,
.reveal-up.revealed {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ----------------------------------------------------------------
   RESPONSIVE — Tablet (≤ 960px)
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

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

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

  .about__photo {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

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

  .process__timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }

  .process__timeline::before {
    display: none;
  }

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

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

/* ----------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 640px)
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --navbar-height: 64px;
  }

  .section {
    padding: var(--sp-8) 0;
  }

  /* Navbar mobile menu */
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--navbar-height) + var(--sp-4)) var(--sp-4) var(--sp-4);
    gap: var(--sp-1);
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
  }

  .navbar__menu--open {
    transform: translateX(0);
  }

  .navbar__link {
    font-size: 1rem;
    padding: var(--sp-2) 0;
    width: 100%;
    border-bottom: 1px solid var(--divider-dark);
  }

  .navbar__cta {
    margin-top: var(--sp-2);
    width: 100%;
    text-align: center;
  }

  .navbar__badge {
    display: none;
  }

  /* Services grid */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Process vertical timeline */
  .process__timeline {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    padding-left: var(--sp-6);
  }

  .process__timeline::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process__step {
    text-align: left;
  }

  .process__number {
    position: absolute;
    left: calc(-1 * var(--sp-6));
    top: 0;
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  .process__title {
    font-size: 1rem;
  }

  .process__desc {
    font-size: 0.875rem;
  }

  /* Credentials scroll */
  .credentials__container {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: var(--sp-3);
    padding-bottom: var(--sp-1);
  }

  .credentials__container::-webkit-scrollbar {
    display: none;
  }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .footer__bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* CTA actions stack */
  .cta-final__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions {
    gap: var(--sp-2);
  }
}

/* ----------------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-fade,
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__arrow,
  .hero__scroll-line {
    animation: none;
  }
}
