/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/work-03.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroPan 24s ease-in-out infinite alternate;
}
@keyframes heroPan {
  0% { transform: scale(1.06) translate(-1%, -0.5%); }
  100% { transform: scale(1.12) translate(1%, 0.5%); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 92%, transparent) 35%, color-mix(in oklab, var(--bg) 55%, transparent) 60%, color-mix(in oklab, var(--bg) 25%, transparent) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 30%, transparent) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.dark .hero-bg { opacity: 0.55; }
.hero-bg-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.hero-bg-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--moss);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-copy { position: relative; z-index: 5; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-tag-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--moss);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--moss) 20%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--moss) 30%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--moss) 0%, transparent); }
}

.hero h1 {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; transform: translateY(110%); animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero h1 em { font-style: italic; color: var(--moss); font-family: var(--serif); }
.hero h1 .amp { font-style: italic; color: var(--sand); margin: 0 0.05em; }

.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 480px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade 0.8s ease 0.5s forwards;
}
@keyframes fade { to { opacity: 1; } }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fade 0.8s ease 0.7s forwards; }

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 540px;
  opacity: 0;
  animation: fade 0.8s ease 0.9s forwards;
}
.hero-stat { border-top: 1px solid var(--line); padding-top: 14px; }
.hero-stat-num { font-family: var(--serif); font-size: 36px; line-height: 1; letter-spacing: -0.03em; }
.hero-stat-num em { font-style: italic; color: var(--moss); }
.hero-stat-lbl { font-size: 12px; color: var(--ink-3); margin-top: 6px; letter-spacing: 0.02em; }

/* === Hero collage === */
.hero-collage {
  position: relative;
  aspect-ratio: 1 / 1.1;
  max-width: 620px;
  margin-left: auto;
  perspective: 1200px;
}
@media (max-width: 1024px) { .hero-collage { max-width: 100%; aspect-ratio: 1 / 1; } }

.hc-card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s;
  will-change: transform;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  opacity: 0;
  animation: cardIn 1s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.92) rotate(var(--r, 0deg)); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r, 0deg)); }
}
.hc-card:nth-child(1) { top: 4%; left: 8%; width: 46%; aspect-ratio: 3/4; --r: -5deg; animation-delay: 0.4s; z-index: 3; }
.hc-card:nth-child(2) { top: 0%; right: 0%; width: 52%; aspect-ratio: 4/5; --r: 4deg; animation-delay: 0.5s; z-index: 2; }
.hc-card:nth-child(3) { bottom: 18%; left: 0%; width: 44%; aspect-ratio: 4/3; --r: 3deg; animation-delay: 0.6s; z-index: 4; }
.hc-card:nth-child(4) { bottom: 0%; right: 8%; width: 50%; aspect-ratio: 5/4; --r: -4deg; animation-delay: 0.7s; z-index: 3; }
.hc-card:nth-child(5) { bottom: 30%; left: 32%; width: 30%; aspect-ratio: 1/1; --r: 8deg; animation-delay: 0.8s; z-index: 5; }

.hc-card .img { width: 100%; height: 100%; position: relative; }
.hc-card .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55));
}
.hc-card .label {
  position: absolute;
  bottom: 14px; left: 14px;
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
}
.hc-card .label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--moss-2); }

/* Floating decorative leaf */
.hero-decor {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  pointer-events: none;
  color: var(--moss);
  opacity: 0.25;
}
.hero-decor-1 { top: 18%; right: -2%; font-size: 220px; line-height: 1; transform: rotate(-8deg); }
.hero-decor-2 { bottom: 6%; left: -3%; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); writing-mode: vertical-rl; opacity: 0.7; }

.hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fade 0.8s ease 1.4s forwards;
}
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, var(--ink-3), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* ===== Marquee infinite ===== */
.marquee-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink-3); display: flex; align-items: center; gap: 48px; }
.marquee-item::after { content: "✦"; color: var(--moss); font-style: normal; font-size: 14px; }

/* ===== About ===== */
.about { padding: 140px 0; position: relative; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-num {
  font-family: var(--serif);
  font-size: clamp(180px, 26vw, 380px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink);
  position: relative;
}
.about-num em { font-style: italic; color: var(--moss); }
.about-num-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
}
.about-copy h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 18px 0 24px;
  letter-spacing: -0.02em;
}
.about-copy h2 em { font-style: italic; color: var(--moss); }
.about-copy p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 56ch;
}
.about-features { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-feature { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elev); transition: transform 0.3s, border-color 0.3s; }
.about-feature:hover { transform: translateY(-3px); border-color: var(--moss); }
.about-feature-icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: color-mix(in oklab, var(--moss) 14%, transparent); display: grid; place-items: center; color: var(--moss); }
.about-feature-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.about-feature-text span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 560px) { .about-features { grid-template-columns: 1fr; } }

/* ===== Services ===== */
.services { padding: 100px 0 140px; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: end; margin-bottom: 60px; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }
.section-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
}
.section-head h2 em { font-style: italic; color: var(--moss); }
.section-head p { color: var(--ink-2); max-width: 52ch; font-size: 17px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.svc-card {
  grid-column: span 4;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.4s, box-shadow 0.4s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--moss); box-shadow: var(--shadow-md); }
.svc-card:hover .svc-arrow { transform: translate(4px, -4px); color: var(--moss); }
.svc-card:hover .svc-bg { transform: scale(1.05) rotate(2deg); opacity: 0.18; }
.svc-card.span-6 { grid-column: span 6; }
.svc-card.span-8 { grid-column: span 8; }
.svc-card.feature { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-card.feature .svc-num,
.svc-card.feature .svc-desc { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.svc-card.feature:hover { border-color: var(--ink); }
@media (max-width: 900px) { .svc-card, .svc-card.span-6, .svc-card.span-8 { grid-column: span 12; } }

.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); }
.svc-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.4s, color 0.4s, border-color 0.4s; color: var(--ink-2); }
.svc-card.feature .svc-arrow { border-color: rgba(255,255,255,0.18); color: var(--bg); }

.svc-body { margin-top: 60px; }
.svc-card h3 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 12px; }
.svc-card h3 em { font-style: italic; color: var(--moss); }
.svc-card.feature h3 em { color: var(--moss-2); }
.svc-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 42ch; }

.svc-bg {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 220px; height: 220px;
  opacity: 0.10;
  transition: transform 0.6s, opacity 0.6s;
  color: var(--moss);
  pointer-events: none;
}
.svc-card.feature .svc-bg { color: var(--moss-2); opacity: 0.15; }
