/* Base layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background: #0b0b0b;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

/* Header & navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.logo span {
  color: #ffffff;
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar a {
  font-size: 0.9rem;
  color: #cbd5f5;
  opacity: 0.85;
  position: relative;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.18s ease;
}

.navbar a:hover {
  opacity: 1;
  color: #f9fafb;
}

.navbar a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-pill {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5f5;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.lang-pill:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(229, 231, 235, 0.9);
  color: #f9fafb;
}

.lang-pill.is-active {
  background: #ffffff;
  color: #05070a;
  border-color: #ffffff;
  opacity: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.15rem 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(9, 13, 22, 0.96);
  color: #f5f5f5;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  border-color: rgba(229, 231, 235, 0.75);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.nav-toggle:focus {
  outline: none;
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 245, 245, 0.9);
}

/* Main layout */
.page-content {
  flex: 1;
}

.hero-section {
  padding: 5rem 0 4rem;
  background: #0b0b0b;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a5b4fc;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7), 0 12px 40px rgba(15, 23, 42, 0.9);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
}

.hero-title {
  margin: 1.5rem 0 1rem;
  font-size: clamp(2.35rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  color: #f9fafb;
}

.hero-highlight {
  color: #ffffff;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: #e5e7eb;
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  color: #9ca3af;
  font-size: 0.86rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #ffffff;
  color: #05070a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
}

.btn-ghost:hover {
  border-color: #38bdf8;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 60%),
    rgba(15, 23, 42, 0.96);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 65%),
    rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  font-size: 0.78rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #ffffff;
  color: #05070a;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-card {
  border-radius: 1.5rem;
  padding: 1.4rem 1.5rem;
  background: #05070a;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: #cbd5f5;
}

.hero-card-tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.75rem;
}

.hero-card-body {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #e5e7eb;
}

.hero-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.hero-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.hero-card-bullet {
  margin-top: 0.2rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
}

/* Generic section pages */
.section-wrapper {
  padding: 4.25rem 0 4rem;
  background: #0b0b0b;
}

.section-header {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: #a5b4fc;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.3vw, 2.3rem);
  letter-spacing: -0.03em;
  color: #f9fafb;
  margin: 0 0 0.9rem;
}

.section-description {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.97rem;
  line-height: 1.8;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.projects-grid {
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.project-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card {
  border-radius: 1.25rem;
  padding: 1.4rem 1.5rem;
  background: #05070a;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.8);
  border-color: rgba(148, 163, 184, 0.6);
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  color: #cbd5f5;
  margin-bottom: 0.85rem;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  color: #f9fafb;
}

.card-text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e5e7eb;
  max-width: 38ch;
}

.card-meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.projects-grid .card {
  min-height: 260px;
}

.projects-grid .card .project-actions {
  margin-top: auto;
}

.project-card-thumb {
  margin-bottom: 0.85rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
}

.project-card-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* Project page: sections with images */
.project-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.project-section-title {
  font-size: 1.25rem;
  color: #f9fafb;
  margin: 0 0 0.75rem;
}

.project-section-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 0 0 1rem;
  max-width: 60ch;
}

.project-section-text:last-of-type {
  margin-bottom: 1.5rem;
}

.project-detail {
  max-width: 960px;
}

.project-section--narrow {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.project-figure {
  margin: 0 0 2rem;
}

.project-figure:last-child {
  margin-bottom: 0;
}

.project-image {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0a0c10;
}

.project-figcaption {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

.project-video-wrapper {
  margin-top: 0.5rem;
}

.project-video-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
}

.project-video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-readme {
  margin-top: 0.5rem;
  padding: 1.3rem 1.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #05070a;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.7;
}

.project-readme h1,
.project-readme h2,
.project-readme h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #f9fafb;
}

.project-readme p {
  margin: 0 0 0.8rem;
}

.project-readme ul,
.project-readme ol {
  padding-left: 1.3rem;
  margin: 0 0 0.8rem;
}

.project-readme code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
}

.project-readme pre {
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  background: #020617;
  overflow-x: auto;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  color: #cbd5f5;
}

/* Projects / case studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.case-card {
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.92),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.case-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: #f9fafb;
}

.case-tag {
  font-size: 0.76rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #cbd5f5;
}

.case-body {
  font-size: 0.9rem;
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Architecture page */
.timeline {
  border-left: 1px solid rgba(148, 163, 184, 0.4);
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-bullet {
  position: absolute;
  left: -0.55rem;
  top: 0.25rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid #0b0b0b;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.timeline-title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  color: #f9fafb;
}

.timeline-text {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
  line-height: 1.7;
}

.timeline-meta {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Contact / footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #0b0b0b;
  color: #e5e7eb;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 2rem;
  padding: 2.8rem 1.5rem 2.25rem;
}

.footer-title {
  font-size: 1.4rem;
  margin: 0 0 0.7rem;
}

.footer-text {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.footer-meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #cbd5f5;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label span {
  font-size: 0.74rem;
  color: #9ca3af;
}

.form-input,
.form-textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  padding: 0.55rem 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 2.4rem;
}

.form-textarea {
  min-height: 5rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.form-status {
  min-height: 1.1rem;
}

.form-status.success {
  color: #ffffff;
}

.form-status.error {
  color: #b0b0b0;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.85rem 1.5rem 1.1rem;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-card {
    order: -1;
  }

  .section-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding-inline: 1.25rem;
  }

  .navbar {
    position: absolute;
    inset-inline: 1rem;
    top: 4rem;
    padding: 0.7rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  }

  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .lang-switch {
    margin-left: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-open .navbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* SVG icon stays the same on open; only the menu panel animates */

  .hero-section {
    padding-top: 4.1rem;
  }

  .section-wrapper {
    padding-top: 4.1rem;
  }

  .section-grid,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .footer-content {
    padding-inline: 1.25rem;
  }
}

