:root {
  --bg: #f5f7fb;
  --bg-soft: #eef3f9;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --surface-dark: #0d1726;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --primary: #16345f;
  --primary-2: #234b81;
  --accent: #8ea3b9;
  --accent-soft: #dbe5f0;
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(68, 96, 138, 0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(141, 160, 185, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbfd 0%, #f4f7fb 100%);
  line-height: 1.7;
}

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

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

a:hover {
  color: var(--primary-2);
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 251, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}

.brand-text {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(22, 52, 95, 0.08);
}

.nav-cta {
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hero,
.page-hero {
  padding: 5.6rem 0 3rem;
}

.page-hero-compact {
  padding-bottom: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow,
.section-kicker,
.project-overline {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-2);
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.hero-subtitle,
.page-intro,
.hero-intro,
.section-heading p,
.card p,
.project-summary,
.footer-text,
.contact-note,
.form-intro {
  color: var(--text-soft);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero-intro,
.page-intro {
  font-size: 1.06rem;
  max-width: 64ch;
}

.narrow {
  max-width: 760px;
}

.hero-actions,
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.28s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.meta-chip,
.tag {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 52, 95, 0.10), rgba(255, 255, 255, 0.85)),
    #dfe8f1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.floating-card-top {
  top: 8%;
  right: -2%;
}

.floating-card-bottom {
  bottom: 8%;
  left: -3%;
}

.floating-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.section {
  padding: 2.5rem 0 5rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.5));
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.section-heading {
  margin-bottom: 2rem;
}

.value-grid,
.capabilities-grid,
.timeline-grid,
.two-column-section,
.projects-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 1.4rem;
}

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

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

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

.two-column-section,
.about-grid,
.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.project-card,
.capability-card,
.timeline-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}

.card,
.capability-card,
.timeline-card {
  padding: 1.6rem;
}

.card-soft {
  background: rgba(255, 255, 255, 0.68);
}

.card-large {
  padding: 2rem;
}

.card-emphasis {
  background: linear-gradient(180deg, rgba(22, 52, 95, 0.96), rgba(22, 52, 95, 0.82));
  color: #fff;
}

.card-emphasis h2,
.card-emphasis h3,
.card-emphasis p,
.card-emphasis a,
.card-emphasis li,
.card-emphasis .contact-label {
  color: #eef4fb;
}

.capability-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.capability-card:hover,
.project-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.capability-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.preview-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(223,232,241,0.68));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-md);
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
}

.clean-list li + li {
  margin-top: 0.55rem;
}

.timeline-card {
  padding-left: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 1.35rem;
  top: 1.7rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 6px rgba(35, 75, 129, 0.08);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

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

.project-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
}

.project-visual {
  min-height: 320px;
  background: linear-gradient(135deg, #dfe8f1, #edf3f9);
}

.project-content {
  padding: 1.8rem;
}

.project-header {
  margin-bottom: 1rem;
}

.project-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.contact-item a {
  color: #ffffff;
  opacity: 0.92;
  word-break: break-word;
}

.contact-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.contact-form-card {
  padding: 2rem;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.form-group {
  display: grid;
  gap: 0.55rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(35, 75, 129, 0.45);
  box-shadow: 0 0 0 4px rgba(35, 75, 129, 0.08);
  background: #fff;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.brand-footer {
  margin-bottom: 0.8rem;
}

.footer-text {
  max-width: 48ch;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .project-card,
  .two-column-section,
  .value-grid,
  .capabilities-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .floating-card-top,
  .floating-card-bottom {
    position: static;
  }

  .hero-visual {
    gap: 1rem;
    flex-direction: column;
  }

  .preview-panel,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.85rem 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .page-hero {
    padding-top: 4.2rem;
  }

  h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .project-content,
  .card,
  .card-large,
  .contact-form-card {
    padding: 1.35rem;
  }

  .photo-frame {
    border-radius: 24px;
  }

  .section {
    padding: 2rem 0 4rem;
  }
}
