/* ── Custom Font ── */
@font-face {
  font-family: 'CCTimelineMid';
  src: url('CCTimelineMid-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f5f3;
  --gray-200: #e8e8e5;
  --gray-400: #9a9a95;
  --gray-600: #5a5a55;
  --accent: #c8a96e;
  --font-sans: 'CCTimelineMid', sans-serif;
  --font-serif: 'CCTimelineMid', serif;
  --max-w: 1200px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--black); color: var(--white); }

.section-header {
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-top: 12px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.section-label.light { color: var(--gray-400); }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.75; }

.section-dark .btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--black);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}
.btn-text:hover { color: var(--black); }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-logo {
  font-family: 'CCTimelineMid', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.hero-content {
  padding: 80px 48px 80px 64px;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: #b0b0aa;
}

.hero-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 400px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-reel {
  background: var(--black);
  position: relative;
}

.reel-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.reel-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-item { position: relative; }
.portfolio-item.span-2 { grid-column: span 2; }

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item.span-2 .portfolio-thumb { aspect-ratio: 16/9; }

.portfolio-video {
  background: var(--black);
  aspect-ratio: 16/9;
}
.portfolio-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-thumb:hover .portfolio-overlay { opacity: 1; background: rgba(0,0,0,0.5); }

.portfolio-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.portfolio-overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.portfolio-overlay p { font-size: 13px; opacity: 0.7; }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.service-card { padding: 0; }

.service-icon {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.services-body {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 720px;
}

/* ── About ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text .section-label { display: block; margin-bottom: 12px; }
.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 24px;
  line-height: 1.15;
}
.about-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text .btn-primary { margin-top: 16px; }

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.03em;
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text .section-label { display: block; margin-bottom: 12px; }
.contact-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
  line-height: 1.2;
}
.contact-text p { font-size: 15px; color: var(--gray-400); line-height: 1.7; margin-bottom: 32px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-details a {
  font-size: 15px;
  color: var(--accent);
  transition: opacity 0.2s;
}
.contact-details a:hover { opacity: 0.7; }
.contact-details span { font-size: 14px; color: var(--gray-400); }

/* ── Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }

.form-note { font-size: 13px; color: var(--accent); min-height: 20px; }

/* ── Footer ── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--white);
}
.footer-copy { font-size: 13px; color: var(--gray-400); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 60px 24px 40px;
    max-width: 100%;
    margin: 0;
  }
  .hero-reel {
    width: 100%;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-item.span-2 { grid-column: span 2; }

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

  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .nav { padding: 0 20px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    padding: 40px 24px;
    gap: 28px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; color: var(--black); }
  .nav-toggle { display: flex; }

  .hero-content { padding: 48px 20px 40px; }
  .hero-title { font-size: 2.6rem; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.span-2 { grid-column: span 1; }
  .portfolio-item.span-2 .portfolio-thumb { aspect-ratio: 4/3; }

  .services-grid { grid-template-columns: 1fr; gap: 28px; }

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

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
