/* =============================================
   HOME PAGE STYLES
   ============================================= */

/* Fade-in animation */
[data-fade] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-fade].visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 64px;
}

.hero-text .eyebrow { margin-bottom: 20px; }

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual — abstract UI mockup */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px rgba(28,28,30,0.08), 0 1px 4px rgba(28,28,30,0.06);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card--main {
  width: 320px;
  aspect-ratio: 4/3;
  z-index: 2;
  transform: rotate(-2deg);
}

.hero-card--secondary {
  position: absolute;
  right: -20px;
  bottom: 20px;
  width: 200px;
  aspect-ratio: 4/3;
  transform: rotate(3deg);
  opacity: 0.85;
  z-index: 1;
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.card-dot--teal { background: var(--accent); }
.card-dot--dark { background: var(--ink); }

.card-lines { display: flex; flex-direction: column; gap: 8px; }
.card-line {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-alt);
}
.card-line--wide { width: 100%; }
.card-line--mid { width: 70%; }
.card-line--short { width: 45%; }

.card-blocks { display: flex; gap: 10px; margin-top: 4px; }
.card-block {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.card-block--accent { background: var(--accent-pale); }

.hero-stat {
  position: absolute;
  top: 0;
  left: -10px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 4px;
}

/* Client bar */
.hero-clients {
  border-top: 1px solid var(--border);
  padding: 28px 0 32px;
  background: var(--bg);
}

.clients-label {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}

/* Auto-scrolling logo marquee */
.clients-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 28s linear infinite;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.clients-track-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 56px;
  padding-right: 56px;
}

.client-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 560px;
  margin-bottom: 56px;
}
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p { font-size: 1rem; color: var(--ink-mid); line-height: 1.7; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(28,28,30,0.08);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list li {
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  color: var(--ink-mid);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.services-footer {
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--ink-mid);
}

.services-footer a { font-weight: 500; }

/* ---------- Featured work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.work-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}

.work-item:hover {
  box-shadow: 0 12px 48px rgba(28,28,30,0.1);
  transform: translateY(-3px);
}

.work-item--large {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.work-img {
  overflow: hidden;
  flex-shrink: 0;
}

.work-item--large .work-img {
  width: 55%;
}

.work-item:not(.work-item--large) .work-img {
  height: 220px;
}

.work-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.work-img--fintech { background: linear-gradient(135deg, #1a2f3c 0%, #2a4a5e 100%); }
.work-img--marshall { background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%); }
.work-img--pottery { background: linear-gradient(135deg, #e8e0d4 0%, #d4c8b8 100%); }

/* Mock screen inside fintech card */
.mock-screen {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 340px;
  overflow: hidden;
}

.mock-bar {
  height: 36px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-content {
  display: flex;
  height: 160px;
}

.mock-sidebar {
  width: 56px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.mock-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-row {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.mock-row--wide { width: 80%; }
.mock-row--mid { width: 55%; }

.mock-cards {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.mock-card {
  flex: 1;
  height: 52px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
}

.mock-card--accent { background: rgba(74,124,116,0.4); }

/* 3D mockup for Marshall */
.mock-3d {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.mock-amp {
  width: 80px;
  height: 80px;
  background: #1a1a1a;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5), inset 0 0 0 8px rgba(255,255,255,0.04);
}

.mock-amp--sm {
  width: 56px;
  height: 56px;
}

/* Brand mockup for pottery */
.mock-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mock-logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #8a7a6a;
  background: transparent;
}

.mock-brand-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.mock-brand-line {
  height: 6px;
  border-radius: 3px;
  background: #8a7a6a;
}
.mock-brand-line--wide { width: 100px; }
.mock-brand-line--short { width: 60px; opacity: 0.5; }

/* Work meta */
.work-meta {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.work-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.work-meta h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.work-meta p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}

.work-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ---------- Process ---------- */
.process { background: var(--bg-alt); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-num {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}

.step-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--accent);
  padding: 80px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-band-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 440px;
  line-height: 1.65;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--accent-dark);
}

.cta-band .btn-primary:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .hero-visual { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item--large { flex-direction: column; }
  .work-item--large .work-img { width: 100%; height: 200px; }
  .cta-band-inner { flex-direction: column; }
  .cta-band-actions { align-items: stretch; }
}

@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .work-meta { padding: 20px; }
  .work-meta h3 { font-size: 1.15rem; }
  .work-meta p { font-size: 0.85rem; }
  .service-card { padding: 24px; }
  .cta-band { padding: 56px 0; }
  .cta-band-text h2 { font-size: 1.6rem; }
}
