/* ==========================================================================
   Partners In Design — dark premium theme
   ========================================================================== */

:root {
  --bg: #0c0b09;
  --bg-raised: #14120f;
  --text: #ebe6dd;
  --text-muted: #a39b8e;
  --accent: #c3a173;
  --hairline: rgba(235, 230, 221, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --container: 1280px;
  --container-wide: 1520px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 12vw, 10rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.section { padding-block: var(--section-pad); }

/* ---- typography ---- */

.overline {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}
.section__title em {
  font-style: italic;
  color: var(--text-muted);
}

.section__head { margin-bottom: clamp(3rem, 7vw, 5.5rem); }

/* ---- buttons ---- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--accent);
  background: none;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn--solid { background: var(--accent); color: #171310; }
.btn--solid:hover { background: transparent; color: var(--accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--full { width: 100%; text-align: center; }

/* ---- reveal-on-scroll ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 11, 9, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 1.4rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.nav__logo em { font-style: italic; color: var(--accent); text-transform: none; letter-spacing: 0.04em; }
.nav__logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__links a:not(.nav__cta) { color: var(--text-muted); transition: color 0.3s ease; }
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__cta {
  border: 1px solid var(--hairline);
  padding: 0.65rem 1.4rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.nav__burger span {
  width: 28px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease;
}

@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(12, 11, 9, 0.97);
    font-size: 1rem;
    gap: 2.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav.is-menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  .hero__media video { animation: none; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 11, 9, 0.96) 0%, rgba(12, 11, 9, 0.35) 45%, rgba(12, 11, 9, 0.45) 100%),
    linear-gradient(100deg, rgba(12, 11, 9, 0.55) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  padding-top: 9rem;
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8.5vw, 6.75rem);
  line-height: 1.02;
  max-width: 14em;
}
.hero__title em { font-style: italic; color: var(--accent); }

.hero__lede {
  max-width: 34em;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.hero__values {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -50%;
  height: 50%;
  background: var(--accent);
  animation: scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip {
  to { top: 100%; }
}

@media (max-width: 640px) {
  .hero__values { display: none; }
  .hero__foot { justify-content: center; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services__list { border-top: 1px solid var(--hairline); }

.service {
  display: grid;
  grid-template-columns: 5rem 1fr 1.4fr;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.4s ease;
}
.service:hover { padding-left: 0.75rem; }

.service__num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.service__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.service__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 44em;
}

@media (max-width: 720px) {
  .service { grid-template-columns: 3rem 1fr; }
  .service__desc { grid-column: 2; }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.work__item {
  position: relative;
  display: block;
  overflow: hidden;
  grid-column: span 4;
  aspect-ratio: 7 / 5;
  background: var(--bg-raised);
}
.work__item--tall {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: auto;
}
.work__item--wide {
  grid-column: span 12;
  aspect-ratio: 21 / 9;
}

.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.work__item:hover img { transform: scale(1.05); }

.work__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(12, 11, 9, 0.85), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.work__item:hover .work__caption { opacity: 1; transform: none; }

.work__cat {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.work__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.work__more { text-align: center; margin-top: clamp(3rem, 6vw, 5rem); }

@media (max-width: 960px) {
  .work__item, .work__item--tall { grid-column: span 6; }
  .work__item--wide { grid-column: span 12; aspect-ratio: 2 / 1; }
}
@media (max-width: 600px) {
  .work__item, .work__item--tall, .work__item--wide { grid-column: span 12; grid-row: auto; aspect-ratio: 7 / 5; }
  .work__caption { opacity: 1; transform: none; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--bg-raised); }

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}

.about__body {
  color: var(--text-muted);
  max-width: 36em;
  margin-top: 1.5rem;
}

.about__founder {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 2.75rem;
}
.about__founder-avatar {
  width: clamp(140px, 16vw, 180px);
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline);
  object-fit: cover;
}
.about__founder strong {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}
.about__founder span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__media::after {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--hairline);
  z-index: -1;
}

.about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline);
}

.value__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}
.value h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0.75rem 0 0.6rem;
}
.value p { color: var(--text-muted); font-size: 0.875rem; max-width: 30em; }

@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__media::after { display: none; }
  .about__values { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

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

.quote {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.5;
  font-weight: 300;
}
.quote footer strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.quote footer span {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--bg-raised); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact__details {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__details .overline { margin-bottom: 0.25rem; }
.contact__details a { border-bottom: 1px solid var(--hairline); transition: border-color 0.3s ease, color 0.3s ease; }
@media (min-width: 700px) {
  .contact__studio-value { display: inline-block; font-size: 0.875rem; white-space: nowrap; }
}
.contact__details a:hover { color: var(--accent); border-color: var(--accent); }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-raised); }
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }

.contact__form-note {
  font-size: 0.8125rem;
  color: var(--accent);
  min-height: 1.4em;
}

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

/* ==========================================================================
   Payment
   ========================================================================== */

.payment {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--section-pad) + 5rem);
}

.payment__inner {
  max-width: 40em;
  text-align: center;
  margin-inline: auto;
}
.payment__inner .overline { margin-inline: auto; }
.payment__inner .section__title { margin-bottom: 1.75rem; }

.payment__body {
  color: var(--text-muted);
  font-size: 1rem;
}

.payment__cta {
  margin-top: 2.5rem;
}

.payment__amount {
  max-width: 320px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.payment__buttons {
  max-width: 320px;
  margin: 1.75rem auto 0;
}

.payment__note {
  font-size: 0.8125rem;
  color: var(--accent);
  min-height: 1.4em;
  margin-top: 1rem;
}

.payment__methods {
  margin-top: 2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.payment__powered {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 3.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============ WORK LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 11, 9, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}
.lightbox__img {
  max-width: min(90vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lightbox.is-open .lightbox__img {
  opacity: 1;
  transform: none;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { color: var(--accent); }
.lightbox__close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  font-size: 2.25rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 0.5rem 1rem;
}
.lightbox__nav--prev { left: clamp(0.25rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(0.25rem, 2vw, 1.5rem); }

@media (max-width: 640px) {
  .lightbox__nav { font-size: 2rem; padding: 0.5rem; }
  .lightbox__close { font-size: 1.75rem; }
}
.footer__copy { font-size: 0.75rem; color: var(--text-muted); }
.footer__copy a { border-bottom: 1px solid var(--hairline); transition: border-color 0.3s ease, color 0.3s ease; }
.footer__copy a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- cookie banner ---- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--bg-raised);
  border-top: 1px solid var(--hairline);
  padding: 1.25rem var(--gutter);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cookie-banner__text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}
.cookie-banner__text strong { color: var(--text); font-weight: 500; }
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-banner__accept {
  font-size: 0.75rem;
  padding: 0.7rem 1.75rem;
  cursor: pointer;
  font-family: var(--font-body);
}
