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

/* === Variables === */
:root {
  --bg: #F5F8FC;
  --bg-2: #EBF1F8;
  --bg-3: #DDE8F2;
  --dark: #F0EDE6;
  --text: #18283A;
  --text-muted: #5A7D9A;
  --text-faint: #92B4CA;
  --accent: #1C6EA4;
  --accent-bright: #3592D4;
  --border: rgba(28, 90, 164, 0.1);
  --border-light: rgba(28, 90, 164, 0.18);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --radius-btn: 50px;
  --radius-img: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Base === */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* === Scroll Reveal === */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.22s; }
[data-reveal][data-delay="3"] { transition-delay: 0.34s; }
[data-reveal][data-delay="4"] { transition-delay: 0.46s; }
[data-reveal][data-delay="5"] { transition-delay: 0.58s; }

/* === Particles === */
.particle {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  animation: burst 0.4s ease-out forwards;
  z-index: 9999;
}

@keyframes burst {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* === Typography shared === */
.section-label {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn--primary {
  background-color: var(--accent-bright);
  color: #fff;
}

.btn--primary:hover {
  background-color: #2880c4;
  box-shadow: 0 4px 24px rgba(53, 146, 212, 0.38);
  transform: translateY(-1px);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Legacy alias for backwards compat with contact pages */
.btn--dark {
  background-color: var(--accent-bright);
  color: #fff;
}

.btn--dark:hover {
  background-color: #2880c4;
  box-shadow: 0 4px 24px rgba(53, 146, 212, 0.38);
  transform: translateY(-1px);
}

.btn--dark:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.btn--dark:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--outline {
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
  background: transparent;
  padding: 12px 24px;
}

.btn--outline:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn--outline:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn--outline:active { opacity: 0.7; }

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background-color: rgba(245, 248, 252, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 300;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* === Hero === */
.hero {
  padding: 56px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(53, 146, 212, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 44px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(28, 110, 164, 0.05);
}

.proof__icon {
  width: 16px;
  height: 16px;
  color: var(--accent-bright);
  flex-shrink: 0;
}

.hero__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero__text {
  flex: 0 0 auto;
  max-width: 500px;
}

.hero__text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.14;
  color: var(--text);
  margin-bottom: 30px;
  letter-spacing: -0.025em;
}

.hero__text h1 em {
  font-style: italic;
  color: var(--accent-bright);
  font-weight: 400;
}

.hero__list {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.hero__list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 26px;
  position: relative;
  line-height: 1.55;
  font-weight: 300;
}

.hero__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 0.82rem;
}

.hero__image {
  flex: 1;
  max-width: 200px;
}

.hero__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-img);
  display: block;
  background-color: var(--bg-2);
  box-shadow:
    0 12px 40px rgba(28, 90, 164, 0.14),
    0 3px 10px rgba(28, 90, 164, 0.08),
    inset 0 0 0 1px var(--border);
}

.hero__image--left img  { transform: rotate(-2.5deg); }
.hero__image--right img { transform: rotate(2.5deg); }

/* === Process === */
.process {
  padding: 104px 40px;
  background-color: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(53, 146, 212, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.process__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.process__header {
  text-align: center;
  margin-bottom: 68px;
}

.process__sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 14px auto 0;
  line-height: 1.75;
  font-weight: 300;
}

.process__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.process__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-img);
  background-color: var(--bg-3);
  display: block;
  box-shadow:
    0 20px 56px rgba(28, 90, 164, 0.15),
    inset 0 0 0 1px var(--border);
}

/* === Accordion === */
.process__accordion { display: flex; flex-direction: column; }

.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item:first-child { border-top: 1px solid var(--border); }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion__trigger:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.accordion__trigger:hover .accordion__title { color: var(--accent-bright); }

.accordion__step {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--accent-bright);
  letter-spacing: 0.06em;
  width: 26px;
  flex-shrink: 0;
  opacity: 0.65;
}

.accordion__title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.accordion__toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.35s var(--ease-out);
}

.accordion__toggle::before,
.accordion__toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background-color: var(--text-muted);
  border-radius: 1px;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.accordion__toggle::before { width: 8px; height: 1.5px; }
.accordion__toggle::after  { width: 1.5px; height: 8px; }

.accordion__item.is-open .accordion__toggle {
  border-color: var(--accent-bright);
  background-color: rgba(53, 146, 212, 0.1);
  transform: rotate(45deg);
}

.accordion__item.is-open .accordion__toggle::before,
.accordion__item.is-open .accordion__toggle::after {
  background-color: var(--accent-bright);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.accordion__item.is-open .accordion__content { max-height: 200px; }

.accordion__content p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.78;
  padding: 0 0 24px 42px;
  font-weight: 300;
}

/* === Portfolio === */
.portfolio {
  padding: 104px 40px;
  background-color: var(--bg);
}

.portfolio__inner { max-width: 1200px; margin: 0 auto; }

.portfolio__sub {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 36px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.portfolio__track-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portfolio__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding-bottom: 4px;
}

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

.portfolio__card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-out);
}

.portfolio__card:hover { transform: translateY(-4px); }

.portfolio__thumb {
  position: relative;
  margin-bottom: 14px;
  border-radius: var(--radius-img);
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 8px 28px rgba(28, 90, 164, 0.14),
    inset 0 0 0 1px var(--border);
}

.portfolio__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background-color: var(--bg-3);
  transition: transform 0.5s var(--ease-out);
}

.portfolio__thumb:hover img { transform: scale(1.04); }

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
  pointer-events: none;
}

.portfolio__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), background-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 2px;
}

.portfolio__thumb:hover .portfolio__play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.portfolio__play-btn:hover { background: rgba(53, 146, 212, 0.35); }

.portfolio__play-btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.portfolio__play-btn:active { opacity: 0.7; }

.portfolio__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 50px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio__card h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}

.portfolio__meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 300;
}

.portfolio__arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.portfolio__arrow:hover {
  background: rgba(53, 146, 212, 0.08);
  color: var(--text);
  border-color: var(--accent-bright);
}

.portfolio__arrow:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.portfolio__arrow:active { transform: scale(0.93); }

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lightbox.is-open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__video,
.lightbox__iframe {
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  border-radius: 12px;
  outline: none;
  aspect-ratio: 16 / 9;
}

.lightbox__iframe {
  display: none;
  border: none;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover  { background: rgba(255, 255, 255, 0.18); }
.lightbox__close:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.lightbox__close:active { opacity: 0.7; }

/* === About === */
.about {
  padding: 104px 40px;
  background-color: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(53, 146, 212, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.about__text .section-label { margin-bottom: 22px; }

.about__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 30px;
  letter-spacing: -0.022em;
}

.about__text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 18px;
  font-weight: 300;
}

.about__text p:last-child { margin-bottom: 0; }

.about__media {
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow:
    0 28px 72px rgba(28, 90, 164, 0.18),
    0 8px 24px rgba(28, 90, 164, 0.1),
    inset 0 0 0 1px var(--border);
}

.about__media video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background-color: var(--bg-3);
}

.about__unmute {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.42);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.03em;
}

.about__unmute:hover  { background: rgba(0, 0, 0, 0.65); color: #fff; }
.about__unmute:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.about__unmute:active { opacity: 0.7; }

/* === Footer === */
.footer {
  background-color: #0C1E30;
  color: #8BAEC6;
  padding: 72px 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo { color: #F0F4F8; }

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: #F0F4F8;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list li { font-size: 0.84rem; }

.footer__list li::before {
  content: '›';
  margin-right: 8px;
  color: var(--accent-bright);
  font-weight: 700;
}

.footer__list a,
.footer__list span {
  color: #8BAEC6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list a:hover { color: #F0F4F8; }

.footer__list--contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__list--contact li::before { display: none; }

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__info p {
  font-size: 0.84rem;
  color: #6A90AA;
  line-height: 1.6;
  font-weight: 300;
}

.footer__list--contact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent-bright);
}

.footer__socials { display: flex; gap: 12px; }

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8BAEC6;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.footer__socials a:hover {
  border-color: rgba(53, 146, 212, 0.55);
  color: #F0F4F8;
  background: rgba(53, 146, 212, 0.1);
}

.footer__socials a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.footer__socials svg { width: 17px; height: 17px; }

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  font-size: 0.74rem;
  color: #3D5A70;
  font-weight: 300;
}

/* === Responsive === */
@media (max-width: 960px) {
  .hero__content {
    flex-direction: column;
    gap: 36px;
  }

  .hero__image {
    max-width: 160px;
    order: 0;
  }

  .hero__text {
    order: -1;
    max-width: 100%;
  }

  .hero__image--right { order: 1; }

  .hero__image--left img  { transform: rotate(-1.5deg); }
  .hero__image--right img { transform: rotate(1.5deg); }

  .process__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process__image {
    max-width: 360px;
    margin: 0 auto;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .header { padding: 16px 20px; }

  .hero { padding: 40px 20px 80px; }

  .process,
  .portfolio,
  .about { padding: 72px 20px; }

  .footer { padding: 56px 20px 0; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
