/* ─────────────────────────────────────────────────
   Frame & Motion — Minimalist Agency CSS
   ───────────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
  --black: #0a0a0a;
  --off-black: #111111;
  --dark: #181818;
  --card: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --white: #f5f4f0;
  --white-dim: rgba(245,244,240,0.6);
  --white-muted: rgba(245,244,240,0.35);
  --accent: #c8a96e;          /* warm gold */
  --accent-dim: rgba(200,169,110,0.15);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
  --container: 1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── UTILITY ── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}
.section { padding-block: var(--section-pad); }
.section-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
}
.section-title em { font-style: italic; color: var(--accent); }
.section-header { margin-bottom: clamp(40px, 6vw, 80px); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}
.btn:hover::after { transform: scaleX(1); }
.btn > * { position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

.btn-primary {
  background: var(--accent);
  color: var(--black);
}
.btn-primary:hover { color: var(--black); }

.btn-outline {
  border: 1px solid rgba(245,244,240,0.4);
  color: var(--white);
}
.btn-outline:hover { color: var(--black); border-color: var(--white); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(20px, 5vw, 60px);
  z-index: 900;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.25s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--border-hover);
  border-radius: 2px;
  color: var(--white) !important;
  transition: border-color 0.3s, background 0.3s, color 0.3s !important;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--black) !important; }
.nav-cta::after { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 6px; }
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* ── Cinematic crossfade slideshow ── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 32s infinite;
  will-change: opacity, transform;
}
/* stagger each slide by 8s (32s total / 4 slides) */
.hero-slide:nth-child(1) { animation-delay:  0s; }
.hero-slide:nth-child(2) { animation-delay:  8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s; }

@keyframes slideShow {
  /* fade in + subtle Ken Burns zoom */
  0%   { opacity: 0;   transform: scale(1.08); }
  8%   { opacity: 1;   transform: scale(1.04); }
  25%  { opacity: 1;   transform: scale(1.00); }
  33%  { opacity: 0;   transform: scale(0.98); }
  100% { opacity: 0;   transform: scale(0.98); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.55) 60%,
    rgba(10,10,10,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: clamp(20px, 5vw, 60px);
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--white-dim);
  margin-bottom: 48px;
  max-width: 440px;
  font-weight: 300;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px; left: clamp(20px, 5vw, 60px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.scroll-line {
  width: 60px; height: 1px;
  background: var(--white-muted);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2s 1.5s infinite var(--ease);
}
@keyframes scrollLine {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ── REVEAL ANIMATION ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 18px;
  background: var(--off-black);
}
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.marquee-track .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PORTFOLIO GRID ── */
.work-section { background: var(--off-black); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 320px;
  gap: 2px;
}
.portfolio-item { grid-column: span 6; overflow: hidden; cursor: pointer; }
.portfolio-item--large { grid-column: span 7; grid-row: span 2; }
.portfolio-item--wide { grid-column: span 5; }

.portfolio-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.portfolio-img-wrap img {
  transition: transform 0.7s var(--ease);
  filter: brightness(0.8) saturate(0.85);
}
.portfolio-item:hover .portfolio-img-wrap img {
  transform: scale(1.06);
  filter: brightness(0.6) saturate(0.7);
}
.portfolio-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-hover { opacity: 1; }
.portfolio-hover-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.portfolio-hover h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.portfolio-hover p { font-size: 13px; color: var(--white-dim); }

/* ── SERVICES ── */
.services-section { background: var(--black); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
}
.service-card {
  padding: 48px 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-dim);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { border-color: var(--border-hover); }
.service-card:hover::before { transform: scaleY(1); }
.service-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}
.service-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 16px;
  position: relative;
}
.service-desc {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.service-list li {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 1px;
  background: var(--accent);
}

/* ── STATS ── */
.stats-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 80px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}

/* ── ABOUT ── */
.about-section { background: var(--off-black); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-img-col { position: relative; }
.about-img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-img-wrap img { transition: transform 0.8s var(--ease); }
.about-img-wrap:hover img { transform: scale(1.04); }
.about-img-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  z-index: -1;
  opacity: 0.3;
}
.about-text-col .section-tag { margin-top: 0; }
.about-body {
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text-col .btn { margin-top: 16px; }

/* ── TESTIMONIALS ── */
.testimonials-section { background: var(--black); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}
.testimonial-card {
  padding: 48px 40px;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--border-hover); }
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--white);
  font-style: italic;
  margin-bottom: 28px;
}
.testimonial-card footer { display: flex; flex-direction: column; gap: 4px; }
.testimonial-card footer strong { font-size: 13px; font-weight: 500; color: var(--white); }
.testimonial-card footer span { font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }

/* ── CONTACT ── */
.contact-section { background: var(--dark); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-body { font-size: 15px; color: var(--white-dim); line-height: 1.7; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  font-size: 14px;
  color: var(--white-dim);
  transition: color 0.25s;
  position: relative;
  width: fit-content;
}
.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.contact-link:hover { color: var(--accent); }
.contact-link:hover::after { width: 100%; }
.contact-location { font-size: 13px; color: var(--white-muted); letter-spacing: 0.05em; }

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-muted); }
.form-group select option { background: var(--dark); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: none;
  margin-top: 8px;
}
.form-success.visible { display: block; animation: fadeIn 0.4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── FOOTER ── */
.site-footer { background: var(--off-black); border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-block: 60px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--white-muted);
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 16px; }
.social-link {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  color: var(--white-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--white-muted); letter-spacing: 0.08em; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .portfolio-grid { grid-auto-rows: 260px; }
  .portfolio-item--large { grid-column: span 8; }
  .portfolio-item { grid-column: span 4; }
  .portfolio-item--wide { grid-column: span 12; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-col { max-width: 500px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(10,10,10,0.96); backdrop-filter: blur(20px); padding: 32px; gap: 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .portfolio-item, .portfolio-item--large, .portfolio-item--wide { grid-column: 1; grid-row: auto; }
  .portfolio-hover { opacity: 1; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-social { justify-content: center; }
}
