/* ==========================================
   DESIGN TOKENS
========================================== */

:root {
  --bg: #f8fafc;

  --surface: #ffffff;

  --surface-alt: #f1f5f9;

  --navy: #0f172a;

  --navy-light: #1e293b;

  --text: #64748b;

  --text-light: #94a3b8;

  --accent: #2563eb;

  --accent-light: #60a5fa;

  --border: #e2e8f0;

  --success: #22c55e;

  --radius-xl: 32px;

  --radius-lg: 24px;

  --radius-md: 18px;

  --radius-sm: 12px;

  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.04);

  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);

  --shadow-lg: 0 20px 80px rgba(15, 23, 42, 0.1);

  --gradient-primary: linear-gradient(135deg, #2563eb, #60a5fa);

  --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
}

/* ==========================================
   RESET
========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;

  background: var(--bg);

  color: var(--navy);

  line-height: 1.6;

  overflow-x: hidden;
}

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

section {
  padding: 60px clamp(48px, 10vw, 320px);
}

/* ==========================================
   TYPOGRAPHY
========================================== */

h1 {
  font-size: clamp(4rem, 8vw, 7rem);

  line-height: 0.95;

  letter-spacing: -3px;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);

  line-height: 1.05;

  letter-spacing: -2px;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

p {
  color: var(--text);

  font-size: 1.1rem;
}

/* ==========================================
   NAVIGATION
========================================== */

.navbar {
  position: sticky;

  top: 0;

  z-index: 1000;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 24px clamp(32px, 6vw, 120px);

  backdrop-filter: blur(20px);

  background: rgba(255, 255, 255, 0.8);

  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.logo {
  display: flex;

  align-items: center;

  gap: 14px;
}

.logo-mark {
  width: 40px;

  height: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 12px;

  background: var(--gradient-primary);

  color: white;

  font-weight: 800;
}

.logo-text {
  font-weight: 700;
}

.nav-links {
  display: flex;

  gap: 32px;
}

.nav-links a {
  text-decoration: none;

  color: var(--navy);

  font-weight: 500;

  transition: 0.3s;
}

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

/* NAV TOGGLE (MOBILE) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  border-radius: 2px;
}

/* Mobile nav hidden state */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    right: clamp(16px, 6vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: min(340px, 90vw);
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links a {
    padding: 8px 4px;
    font-size: 1rem;
  }

  .navbar.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* ensure nav sits above hero content */
  .navbar {
    z-index: 1100;
  }
}

/* ==========================================
   BUTTONS
========================================== */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  text-decoration: none;

  padding: 16px 24px;

  border-radius: 14px;

  transition: 0.3s;

  font-weight: 600;
}

.btn-primary {
  background: var(--gradient-primary);

  color: white;

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-4px);
}

.btn-secondary {
  border: 1px solid var(--border);

  color: var(--navy);
}

.btn-secondary:hover {
  background: white;
}

/* ==========================================
   HERO
========================================== */

.hero {

  height: calc(100vh - 89px);

  min-height: 680px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(320px, 44vw);

  gap: clamp(24px, 4vw, 64px);

  align-items: center;

  padding:
    48px
    clamp(32px, 6vw, 120px);

  position: relative;
}

.hero::before {
  content: "";

  position: absolute;

  top: -300px;

  right: -300px;

  width: 800px;

  height: 800px;

  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);

  pointer-events: none;
}

.hero-copy {
  max-width: 100%;
}

.hero-pill {
  display: inline-flex;

  padding: 10px 16px;

  border-radius: 999px;

  background: rgba(37, 99, 235, 0.08);

  color: var(--accent);

  font-weight: 600;

  margin-bottom: 24px;
}

.hero-copy p {

  margin-top: 20px;

  max-width: 100%;

  font-size: 1.05rem;
}

.hero-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}
/* ==========================================
   HERO BENTO GRID
========================================== */

.hero-bento {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 16px;

  max-height: 100%;
  max-width: 100%;
  overflow: hidden;
}

.bento-card {
  background: rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(226, 232, 240, 0.7);

  border-radius: var(--radius-xl);

  padding: 28px;

  min-height: 150px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-md);
}

.bento-card.large {
  grid-column: span 2;

  min-height: 260px;
}

.gradient-card {
  background: var(--gradient-dark);

  color: white;
}

.gradient-card .card-label {
  color: rgba(255, 255, 255, 0.7);
}

.card-label {
  display: block;

  font-size: 0.85rem;

  font-weight: 600;

  color: var(--text-light);

  margin-bottom: 18px;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.metric {
  margin-bottom: 28px;
}

.metric span {
  display: block;

  color: var(--text);

  margin-bottom: 6px;
}

.metric h3 {
  font-size: 3rem;

  font-weight: 800;

  line-height: 1;
}

/* ==========================================
   EXPERTISE STRIP
========================================== */

.expertise-strip {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 16px;

  padding-top: 0;
}

.expertise-strip div {
  background: white;

  border: 1px solid var(--border);

  border-radius: 16px;

  padding: 18px;

  text-align: center;

  font-weight: 600;

  box-shadow: var(--shadow-sm);

  transition: 0.3s;
}

.expertise-strip div:hover {
  transform: translateY(-4px);

  border-color: rgba(37, 99, 235, 0.3);
}

/* ==========================================
   SECTION HEADER
========================================== */

.section-heading {
  max-width: 900px;

  margin-bottom: 80px;
}

.section-tag {
  display: inline-flex;

  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(37, 99, 235, 0.08);

  color: var(--accent);

  font-size: 0.9rem;

  font-weight: 600;

  margin-bottom: 20px;
}

.section-heading p {
  margin-top: 20px;

  max-width: 650px;
}

/* ==========================================
   PHILOSOPHY
========================================== */

.philosophy {
  text-align: center;

  max-width: 1100px;

  margin: 0 auto;
}

.philosophy h2 {
  margin-top: 20px;
}

.philosophy p {
  max-width: 700px;

  margin: 24px auto 0;
}

/* ==========================================
   FEATURED WORK
========================================== */

.featured-work {
  position: relative;
}

.featured-project {
  display: grid;

  grid-template-columns:
    1.2fr
    1fr;

  gap: 0;

  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  overflow: hidden;

  box-shadow: var(--shadow-sm);

  transition: 0.35s ease;

  margin-bottom: 32px;
}

.featured-project:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-lg);
}

/* ==========================================
   FEATURED PREVIEW
========================================== */

.project-preview {
  min-height: 580px;

  background: linear-gradient(135deg, #0f172a, #1e40af);

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;

  overflow: hidden;
}

.project-preview::before {
  content: "";

  position: absolute;

  width: 500px;

  height: 500px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.25),
    transparent 70%
  );

  top: -150px;

  right: -150px;
}

.project-preview-content {
  position: relative;

  z-index: 2;

  color: white;

  max-width: 420px;
}

.project-preview-content span {
  color: rgba(255, 255, 255, 0.7);

  font-size: 0.9rem;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.project-preview-content h3 {
  font-size: 3rem;

  margin: 20px 0;
}

.project-preview-content p {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   PROJECT CONTENT
========================================== */

.project-content {
  padding: 60px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}

.project-category {
  color: var(--accent);

  font-weight: 700;

  margin-bottom: 16px;
}

.project-content h3 {
  margin-bottom: 20px;
}

.project-content p {
  margin-bottom: 28px;
}

/* ==========================================
   PROJECT TAGS
========================================== */

.project-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-bottom: 32px;
}

.project-tags span {
  padding: 10px 14px;

  border-radius: 999px;

  border: 1px solid var(--border);

  background: white;

  font-size: 0.9rem;

  font-weight: 500;
}

.project-link {
  text-decoration: none;

  color: var(--accent);

  font-weight: 700;
}
/* ==========================================
   PROJECT GRID
========================================== */

.project-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.project-card {
  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  padding: 32px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  box-shadow: var(--shadow-sm);

  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-md);
}

/* Badge (projects & small labels) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.08);
}

/* Navigation small badge next to logo */
.nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 8px;
}

@media (max-width: 768px) {
  .nav-badge { display: none; }
}

.project-card h3 {
  margin: 16px 0;
}

.project-card p {
  margin-bottom: 24px;
}

.project-card a {
  color: var(--accent);

  text-decoration: none;

  font-weight: 700;
}

/* ==========================================
   THINKING SECTION
========================================== */

.thinking {
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.02));
}

.thinking-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.thinking-card {
  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  padding: 40px;

  transition: 0.3s;

  box-shadow: var(--shadow-sm);
}

.thinking-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-md);
}

.thinking-card span {
  color: var(--accent);

  font-weight: 700;

  font-size: 0.85rem;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.thinking-card h3 {
  margin-top: 16px;

  line-height: 1.3;
}

/* ==========================================
   ABOUT
========================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 500px);
  gap: 80px;
  align-items: center;
  justify-content: center;
}

.about-copy {
  flex: 0 0 720px;
}

.about-visual {
  flex: 0 0 500px;
}

.about-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 32px;
}

.about-tags span {
  padding: 10px 14px;

  border-radius: 999px;

  border: 1px solid var(--border);

  background: white;

  font-size: 0.9rem;
}

.portrait-card {
  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  overflow: hidden;

  box-shadow: var(--shadow-md);
}

.portrait-card img {
  width: 100%;

  display: block;
}

/* ==========================================
   CONTACT
========================================== */

.contact {
  text-align: center;

  max-width: auto;

  margin: 0 auto;
}

.contact h2 {
  margin: 24px 0;
}

.contact p {
  max-width: 600px;

  margin: 0 auto 40px;
}

.contact-actions {
  display: flex;

  justify-content: center;

  gap: 16px;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  border-top: 1px solid var(--border);

  padding: 40px clamp(32px, 6vw, 120px);
}

.footer-content {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.footer h4 {
  margin-bottom: 8px;
}

.footer p {
  max-width: 420px;

  font-size: 0.95rem;
}

/* ==========================================
   SCROLL ANIMATIONS
========================================== */

.fade-up {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;

  transform: translateY(0);
}

.navbar-scrolled {
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.nav-links a.active {
  color: var(--accent);

  font-weight: 700;
}

body.loaded .hero-copy,
body.loaded .hero-bento {
  opacity: 1;

  transform: translateY(0);
}

.hero-copy,
.hero-bento {

  opacity: 0;

  transform:
    translateY(24px);

  transition:
    opacity .8s ease,
    transform .8s ease;
}

body.loaded .hero-copy {

  opacity: 1;

  transform:
    translateY(0);

  transition-delay: .1s;
}

body.loaded .hero-bento {

  opacity: 1;

  transform:
    translateY(0);

  transition-delay: .3s;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1200px) {

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero {

    height: auto;

    min-height: auto;

    grid-template-columns: 1fr;

    padding-top: 80px;

    padding-bottom: 80px;
  }

  .hero-copy {

    max-width: 100%;
  }

  .hero-bento {

    width: 100%;
  }

  .featured-project {

    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {

    grid-template-columns:
      repeat(2,1fr);
  }

  .thinking-grid {

    grid-template-columns:
      repeat(2,1fr);
  }

  .expertise-strip {

    grid-template-columns:
      repeat(3,1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    gap: 28px;
  }

  .hero-copy {
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  .hero {

    padding-top: 48px;

    padding-bottom: 48px;

    gap: 32px;
  }

  .navbar {
    justify-content: center;
    gap: 14px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero h1 {

    font-size:
      clamp(
        2.5rem,
        12vw,
        4rem
      );
  }

  .hero-actions {

    flex-direction: column;

    width: 100%;
  }

  .hero-actions .btn {

    width: 100%;
  }

  .hero-bento {

    grid-template-columns: 1fr;
  }

  .bento-card.large {

    grid-column: span 1;
  }

  .expertise-strip {

    grid-template-columns:
      repeat(2,1fr);
  }

  .project-grid {

    grid-template-columns: 1fr;
  }

  .thinking-grid {

    grid-template-columns: 1fr;
  }

  .contact-actions {

    flex-direction: column;
  }

  .footer-content {

    flex-direction: column;

    align-items: flex-start;

    gap: 24px;
  }
}

@media (max-width: 480px) {
h1 {

  font-size:
    clamp(
      3rem,
      6vw,
      6rem
    );

  line-height: .95;

  letter-spacing: -3px;
}

  .expertise-strip {
    grid-template-columns: 1fr;
  }
}

html,
body {
  width: 100%;
  overflow-x: clip;
}
