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

:root {
  --charcoal: #1a1a1a;
  --charcoal-light: #2a2a2a;
  --coral: #e8645b;
  --coral-dark: #d1524a;
  --off-white: #f7f6f3;
  --white: #ffffff;
  --gray-100: #f0efeb;
  --gray-200: #e2e0da;
  --gray-300: #c4c1b8;
  --gray-400: #8a8780;
  --gray-500: #5c5a55;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Grain Overlay ─── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.bg-mark {
  position: fixed;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(232,100,91,0.04) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ─── Typography ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 32px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }

.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}
.nav.scrolled {
  background: rgba(247,246,243,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--charcoal);
}
.nav.scrolled .nav-logo { color: var(--charcoal); }

.nav-links {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 80vw);
  height: 100vh;
  background: var(--charcoal);
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}
.nav-links.open { transform: translateX(0); }

.nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-links a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--coral); }

.nav-toggle {
  position: fixed;
  top: 22px; right: 24px;
  z-index: 1001;
  width: 36px; height: 36px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.nav.scrolled .nav-toggle span { background: var(--charcoal); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
  display: block;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--charcoal);
}
.hero-headline .accent {
  color: var(--coral);
  font-style: italic;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 440px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.hero-img-wrap img {
  width: 100%;
  aspect-ratio: 520/680;
  object-fit: cover;
}
.hero-img-accent {
  position: absolute;
  bottom: -20px; left: -20px;
  width: 120px; height: 120px;
  border: 1px solid var(--coral);
  border-radius: 4px;
  z-index: -1;
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.stat { flex: 1; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.stat-divider {
  width: 1px;
  background: var(--gray-200);
  align-self: stretch;
}
.hero-line {
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 1px;
  background: var(--gray-200);
}

/* ─── Services ─── */
.services {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}
.services .container { max-width: 1200px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.service-card {
  background: var(--off-white);
  padding: 48px 40px;
  transition: background 0.4s;
}
.service-card:hover { background: var(--white); }
.service-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--coral);
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--gray-500);
}

/* ─── About ─── */
.about {
  padding: 120px 0;
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(232,100,91,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.about .section-title { color: var(--white); }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 560/420;
  object-fit: cover;
}
.about-img-accent {
  position: absolute;
  top: -16px; right: -16px;
  width: 100px; height: 100px;
  border: 1px solid var(--coral);
  border-radius: 4px;
  z-index: -1;
}
.about-content .lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.about-content p {
  font-size: 0.925rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}
.about-details { display: flex; flex-direction: column; gap: 0; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
}
.detail-value {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.detail-link { color: rgba(255,255,255,0.8); transition: color 0.3s; }
.detail-link:hover { color: var(--coral); }

/* ─── Why Us ─── */
.why {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}
.why-header {
  max-width: 600px;
  margin-bottom: 64px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}
.why-item { position: relative; }
.why-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s;
}
.why-item:hover .why-num { color: var(--coral); }
.why-item h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.why-item p {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 360px;
}

/* ─── CTA ─── */
.cta {
  padding: 100px 0;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  bottom: -40%; left: -5%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(232,100,91,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.cta-text { flex: 1; }
.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.cta-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Contact ─── */
.contact {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 40px;
}
.contact-details { display: flex; flex-direction: column; gap: 0; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: color 0.3s;
}
.contact-item svg { color: var(--coral); flex-shrink: 0; }
.contact-item:hover { color: var(--coral); }

/* ─── Form ─── */
.contact-form-wrap { position: relative; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}
.form-group select {
  appearance: none;
  cursor: pointer;
  color: var(--gray-400);
}
.form-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 16px;
  text-align: center;
}
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 16px;
}
.form-success.show { display: flex; }
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
}
.form-success p {
  font-size: 0.925rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

/* ─── Footer ─── */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 80px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--coral); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--coral); }
.footer-contact span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ─── Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 400px; }
  .hero-img-wrap img { aspect-ratio: 4/5; }
  .hero-img-accent { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-img-accent { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { gap: 40px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 100px 0 60px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}
