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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
}

::selection { background: #f3f4f6; color: #111827; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* ---------- Layout helpers ---------- */
.container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.container.narrow { max-width: 48rem; } /* ~768px (max-w-3xl) */
.container.wide   { max-width: 56rem; } /* ~896px (max-w-4xl) */

.section {
  padding: 6rem 1.5rem;
}
@media (min-width: 768px) { .section { padding: 8rem 1.5rem; } }
@media (min-width: 1024px){ .section { padding: 10rem 1.5rem; } }

.section-alt { background: rgba(249, 250, 251, 0.5); }

/* ---------- Language switcher ---------- */
.lang-switcher {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .lang-switcher { top: 2rem; right: 2.5rem; }
}
.lang-btn {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: #9ca3af;
  transition: color 0.3s ease, font-weight 0.3s ease;
}
.lang-btn:hover { color: #4b5563; }
.lang-btn.active { color: #111827; font-weight: 600; }
.lang-sep { color: #d1d5db; user-select: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 60%, rgba(249, 250, 251, 0.3) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
  margin: 0 auto;
}
.hero-logo img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
}
@media (min-width: 768px) {
  .hero-logo img { width: 8rem; height: 8rem; }
}
@media (min-width: 1024px) {
  .hero-logo img { width: 9rem; height: 9rem; }
}

.hero-title {
  margin-top: 1.5rem;
}
.hero-title {
  text-align: center;
}
.hero-title h1 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #111827;
}
@media (min-width: 768px) { .hero-title h1 { font-size: 1.125rem; } }
.hero-title .brand-name { text-transform: none; }
.hero-powered {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
}

.hero-tagline {
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .hero-tagline { margin-top: 3.5rem; } }
.hero-tagline p {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 300;
  color: #374151;
  line-height: 1.8;
}
@media (min-width: 768px) { .hero-tagline p { font-size: 1.25rem; } }
@media (min-width: 1024px){ .hero-tagline p { font-size: 1.5rem; } }

.hero-divider {
  margin-top: 5rem;
}
@media (min-width: 768px) { .hero-divider { margin-top: 7rem; } }
.hero-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, #d1d5db, #9ca3af);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ---------- Section label ---------- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .section-label { font-size: 0.875rem; margin-bottom: 5rem; }
}
.section-label-block {
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .section-label-block { margin-bottom: 3.5rem; }
}
.section-label-tight {
  margin-bottom: 1.5rem;
}

/* ---------- Project / Legacy entry ---------- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
@media (min-width: 768px) { .project-list { gap: 5rem; } }

.project { display: block; }

.project-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.project-text { flex: 1; }
.project-text h3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #111827;
  letter-spacing: -0.025em;
  line-height: 1.25;
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .project-text h3 { font-size: 1.5rem; } }
@media (min-width: 1024px){ .project-text h3 { font-size: 1.875rem; } }
.project:hover .project-text h3 { color: #4b5563; }

.project-text p {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 300;
  color: #4b5563;
  line-height: 1.625;
  max-width: 32rem;
}
@media (min-width: 768px) {
  .project-text p { margin-top: 1rem; font-size: 1.125rem; }
}

.arrow-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #d1d5db;
  flex-shrink: 0;
  margin-top: 0.375rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.project:hover .arrow-icon {
  color: #4b5563;
  transform: translate(0.125rem, -0.125rem);
}

.project-divider {
  margin-top: 2rem;
  height: 1px;
  background: #f3f4f6;
  transition: background 0.3s ease;
}
.project:hover .project-divider { background: #e5e7eb; }

/* ---------- Connections big-text block ---------- */
.big-text {
  font-size: 1.25rem;
  font-weight: 300;
  color: #374151;
  line-height: 1.7;
}
@media (min-width: 768px) { .big-text { font-size: 1.5rem; } }
@media (min-width: 1024px){ .big-text { font-size: 1.875rem; } }

/* ---------- Founder ---------- */
.founder-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .founder-name { font-size: 1.875rem; } }
@media (min-width: 1024px){ .founder-name { font-size: 2.25rem; } }

.founder-desc {
  font-size: 1rem;
  font-weight: 300;
  color: #4b5563;
  line-height: 1.625;
  max-width: 32rem;
}
@media (min-width: 768px) { .founder-desc { font-size: 1.125rem; } }

/* ---------- Clients ---------- */
.clients-header {
  text-align: center;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .clients-header { margin-bottom: 5rem; } }
.clients-header .section-label { margin-bottom: 1rem; }
.clients-desc {
  font-size: 1rem;
  font-weight: 300;
  color: #4b5563;
}
@media (min-width: 768px) { .clients-desc { font-size: 1.125rem; } }

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}
.clients-logos img {
  width: 100%;
  height: auto;
  max-width: 900px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.5s ease;
}
.clients-logos img:hover { opacity: 0.75; }

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}
@media (min-width: 768px) { .footer { padding: 6rem 1.5rem; } }

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-links { flex-direction: row; gap: 2.5rem; }
}
@media (min-width: 768px) {
  .footer-links { gap: 3.5rem; }
}
.footer-links a {
  font-size: 0.875rem;
  color: #6b7280;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .footer-links a { font-size: 1rem; } }
.footer-links a:hover { color: #111827; }

.footer-sep {
  display: none;
  width: 1px;
  height: 1rem;
  background: #e5e7eb;
}
@media (min-width: 640px) { .footer-sep { display: block; } }

.footer-divider {
  width: 2.5rem;
  height: 1px;
  background: #e5e7eb;
  margin: 0 auto 2rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  letter-spacing: 0.05em;
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.fade-in,
.fade-in-soft {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-soft.is-visible {
  opacity: 0.3;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger inner children of reveal sections */
.reveal .project,
.reveal .clients-logos {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible .project,
.reveal.is-visible .clients-logos {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-visible .project:nth-child(1) { transition-delay: 0.15s; }
.reveal.is-visible .project:nth-child(2) { transition-delay: 0.27s; }
.reveal.is-visible .project:nth-child(3) { transition-delay: 0.39s; }
.reveal.is-visible .clients-logos { transition-delay: 0.2s; }
