/* ─────────────────────────────────────────────
   FVI STUDIO — style.css
   ───────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
  --black:       #0a0a0a;
  --white:       #ffffff;
  --off-white:   #f5f4f1;
  --grey-100:    #f0efec;
  --grey-200:    #e4e2dd;
  --grey-400:    #a8a49e;
  --grey-600:    #6b6760;
  --grey-800:    #2e2c28;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h:       68px;
  --max-w:       1160px;
  --gutter:      clamp(1.5rem, 5vw, 3rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── TYPOGRAPHY ── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 0.85rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--black);
}
.section-heading em {
  font-style: italic;
  font-weight: 400;
}
.section-sub {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.7;
  max-width: 58ch;
}
.section-header {
  margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo),
              background 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
}
.btn:hover  { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.14);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.22);
}

/* ────────────────────────
   NAVIGATION
──────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease-in-out),
              border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
  border-color: var(--grey-200);
  background: rgba(255,255,255,0.98);
}
.navbar.hidden { transform: translateY(-110%); }

.nav-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;

  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--grey-800);

  transition:
    color .35s ease,
    transform .35s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 100%;
  height: 1.5px;

  background: var(--black);

  transform: scaleX(0);
  transform-origin: left center;

  transition:
    transform .45s cubic-bezier(.22,1,.36,1);
}

.nav-link:hover {
  color: var(--black);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:not(:hover)::after {
  transform-origin: right center;
}

/* Hamburger */
.hamburger {
  position: absolute;
  right: var(--gutter);
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding: 1.5rem var(--gutter) 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  padding: 1rem 0;
  border-bottom: 1px solid var(--grey-100);
}
.mobile-link:hover { opacity: 0.5; }

/* ────────────────────────
   HERO
──────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--off-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 2rem;
}
.hero-text {
  animation: fadeUp 0.85s var(--ease-out-expo) both;
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--black);
  margin-bottom: 2rem;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
}
.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2.5rem;
}
.hero-bullets li {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.hero-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grey-400);
}

/* Hero image */
.hero-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 540px;
  width: auto;
  /*animation: fadeUp 1s 0.15s var(--ease-out-expo) both; */
}
.persona-img {
  height: 120%;
  width: auto;
  transform: translateY(125px);
}

/* ────────────────────────
   ABOUT
──────────────────────── */
.about {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--white);

  position: relative;
  border-radius: 40px;
  margin-top: -40px;
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.about-text {
  font-size: 1rem;
  color: var(--grey-600);
  line-height: 1.8;
}

/* ────────────────────────
   PROJECTS
──────────────────────── */
.projects {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--off-white);

  position: relative;
  border-radius: 40px;
  margin-top: -40px;
  overflow: hidden;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.12s ease,
              box-shadow 0.12s ease;
  cursor: default;
  will-change: transform;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.09);
}
.project-card--wide {
  grid-column: 1 / -1;
}
.project-image-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--grey-100);
}
.project-card--wide .project-image-wrap {
  aspect-ratio: 2.2 / 1;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out-expo);
}
.project-card:hover .project-img {
  transform: scale(1.04);
}
.project-info {
  padding: 1.25rem 1.5rem 1.5rem;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.6rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  background: var(--grey-100);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

/* ────────────────────────
   CONTACT
──────────────────────── */
.contact {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--white);

  position: relative;
  border-radius: 40px;
  margin-top: -40px;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}
.contact-persona-wrap {
  height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  background: var(--off-white);
}
.contact-persona {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}
.contact-sub {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.7;
  max-width: 42ch;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--off-white);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-400);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black);
  background: var(--white);
}
.form-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}
.form-success {
  display: none;
  font-size: 0.875rem;
  color: #2d8a4e;
  font-weight: 500;
  margin-top: 0.5rem;
}
.form-success.visible { display: block; }

/* ────────────────────────
   FOOTER
──────────────────────── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--grey-400);
  letter-spacing: 0.02em;
}

/* ────────────────────────
   SCROLL ANIMATIONS
──────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────
   REDUCED MOTION
──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ────────────────────────
   RESPONSIVE — 1024px
──────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 340px;
  }
  .hero-image { height: 460px; }
}

/* ────────────────────────
   RESPONSIVE — 768px
──────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 3rem;
    gap: 2rem;
  }
  .hero-image {
    height: 300px;
    order: -1;
    justify-content: flex-end;
  }
  .hero-headline {
    font-size: clamp(2.6rem, 10vw, 3.5rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card--wide {
    grid-column: 1;
  }
  .project-card--wide .project-image-wrap {
    aspect-ratio: 4/3;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-persona-wrap {
    height: 260px;
  }
}

/* ────────────────────────
   RESPONSIVE — 480px
──────────────────────── */
@media (max-width: 480px) {
  .hero-headline { font-size: clamp(2.2rem, 10vw, 3rem); }
  .btn { width: 100%; justify-content: center; }
  .form-submit { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .hero-image {
      display: none;
  }

  .hero-inner {
      grid-template-columns: 1fr;
      justify-items: center;
  }

  .hero-text {
      max-width: 650px;
      text-align: center;
  }

  .hero-bullets {
      align-items: center;
  }

  .hero-bullets li {
      padding-left: 0;
  }

  .hero-bullets li::before {
      display: none;
  }
}