/* ========================================
   Sarubaito Senta Labs
   Editorial Warmth — Boutique Consultancy
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:          #F8F4EF;
  --bg-warm:     #F1ECE4;
  --bg-deep:     #1C1917;
  --text:        #1C1917;
  --text-mid:    #57534E;
  --text-muted:  #A8A29E;
  --accent:      #C2410C;
  --accent-soft: #EA580C;
  --accent-glow: rgba(234, 88, 12, 0.12);
  --border:      #D6D3D1;
  --border-light:#E7E5E4;
  --card-bg:     rgba(255,255,255,0.6);

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Grain overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  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;
  background-size: 200px 200px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

em { font-family: var(--font-display); font-style: italic; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav-scrolled {
  background: rgba(248, 244, 239, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-light);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.logo-dim {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--bg-deep) !important;
  color: var(--bg) !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: transform 0.2s var(--ease-out), opacity 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 16px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12), 0 12px 32px rgba(0,0,0,0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  padding: 16px 24px;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-mid);
  color: var(--text);
}

.btn-lg {
  padding: 20px 40px;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  opacity: 0.7;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero h1 em {
  color: var(--accent);
}

.hero h1 span {
  display: block;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}

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

/* Hero reveal animations */
.reveal, .reveal-delay, .reveal-delay-2 {
  animation: revealUp 0.9s var(--ease-out) forwards;
  opacity: 0;
}
.reveal-delay { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Section headers ---- */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header {
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-header h2 em { color: var(--accent-soft); }

/* ---- Services ---- */
.services {
  padding: 100px 0 80px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.service-card {
  background: var(--card-bg);
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background 0.3s ease;
}

.service-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2).in-view { transition-delay: 0.1s; }
.service-card:nth-child(3).in-view { transition-delay: 0.2s; }

.service-card:hover {
  background: rgba(255,255,255,0.9);
}

.service-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 28px;
  transition: color 0.3s;
}

.service-card:hover .service-number {
  color: var(--accent-soft);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card > p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-details {
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.service-details li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  letter-spacing: 0.01em;
}

.service-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ---- Industries ---- */
.industries {
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.industries-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.industries .section-eyebrow { margin-bottom: 0; white-space: nowrap; }

.industry-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.industry-item {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: -0.01em;
}

.industry-sep {
  color: var(--border);
  font-weight: 300;
}

/* ---- About ---- */
.about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.about-grid.in-view {
  opacity: 1;
  transform: translateY(0);
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text);
}

.about-content p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 300;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.stat {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stat.in-view { opacity: 1; transform: translateY(0); }
.stat:nth-child(2).in-view { transition-delay: 0.1s; }
.stat:nth-child(3).in-view { transition-delay: 0.2s; }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---- Clients ---- */
.clients {
  padding: 64px 0;
  background: var(--bg-warm);
  text-align: center;
}

.clients-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.client-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.client-badge {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.2s;
}

.client-badge.in-view { opacity: 1; transform: translateY(0); }
.client-badge:nth-child(2).in-view { transition-delay: 0.06s; }
.client-badge:nth-child(3).in-view { transition-delay: 0.12s; }
.client-badge:nth-child(4).in-view { transition-delay: 0.18s; }

.client-badge:hover { border-color: var(--text-mid); }

/* ---- Contact ---- */
.contact {
  padding: 120px 0;
  text-align: center;
}

.contact-inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.contact-inner.in-view {
  opacity: 1;
  transform: translateY(0);
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 420px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.65;
}

.contact .btn-primary svg {
  transition: transform 0.25s var(--ease-out);
}

.contact .btn-primary:hover svg {
  transform: translateX(4px);
}

/* ---- Footer ---- */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 140px 0 80px; }
  .hero h1 { font-size: 2.4rem; }
  .service-grid { grid-template-columns: 1fr; }
  .industries-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .industry-list { gap: 8px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; }
  .contact { padding: 80px 0; }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .service-card { padding: 28px 24px; }
  .section-header h2 { font-size: 1.8rem; }
  .contact h2 { font-size: 1.8rem; }
}
