/* ==========================
   Theme & Global Styles
   ========================== */

:root {
  /* Colors */
  --clr-bg: #f9fafb;
  --clr-surface: #ffffff;
  --clr-surface-alt: #f3f4f6;
  --clr-primary: #4f46e5;
  --clr-primary-soft: #eef2ff;
  --clr-primary-strong: #3730a3;
  --clr-accent: #f97316;
  --clr-text: #111827;
  --clr-text-muted: #6b7280;
  --clr-border: #e5e7eb;

  /* Layout */
  --max-width: 1120px;
  --nav-height: 4.5rem;

  /* Radii & Shadow */
  --radius-lg: 1.25rem;
  --radius-md: 0.875rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-subtle: 0 12px 30px rgba(15, 23, 42, 0.05);

  /* Transitions */
  --transition-base: 220ms ease;
}

/* Reset / Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Typography */

h1,
h2,
h3,
h4 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--clr-text);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.15rem;
}

/* Layout Helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--clr-surface-alt);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header.center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: #e5edff;
  color: var(--clr-primary-strong);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-intro {
  margin: 0;
  color: var(--clr-text-muted);
  max-width: 40rem;
}

/* Skip Link */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background-color: var(--clr-primary);
  color: #fff;
  font-size: 0.875rem;
}

.skip-link:focus-visible {
  left: 0.75rem;
}

/* ==========================
   Navbar
   ========================== */

.site-header {
  position: relative;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(249, 250, 251, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: radial-gradient(circle at 20% 20%, #f97316, #4f46e5);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.brand-mark.small {
  width: 24px;
  height: 24px;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* Nav menu */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  position: relative;
  padding-block: 0.2rem;
  transition: color var(--transition-base);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  transition: width var(--transition-base);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--clr-text);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

/* Nav CTA */

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(79, 70, 229, 0.2);
  background-color: #fdfcff;
  color: var(--clr-primary-strong);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgba(79, 70, 229, 0.5);
  background-color: var(--clr-primary-soft);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-1px);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.24rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  padding-inline: 0.6rem;
  background-color: rgba(17, 24, 39, 0.03);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
  transform-origin: center;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base),
    background-color var(--transition-base);
}

/* Toggle animation */

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(6px) rotate(40deg);
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-6px) rotate(-40deg);
}

/* ==========================
   Hero
   ========================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.75rem 0 4.5rem;
  background: radial-gradient(circle at top left, #eef2ff 0, #eff6ff 40%, #f9fafb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3.25rem;
  z-index: 1;
}

/* Hero content */

.hero-content {
  max-width: 32rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-pill);
  background-color: rgba(15, 23, 42, 0.03);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background-image: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
}

.hero-subtitle {
  margin: 0.25rem 0 1.75rem;
  color: var(--clr-text-muted);
  max-width: 30rem;
}

/* Hero buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 500;
  border: none;
  background: transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.btn-ghost {
  border: 1px solid rgba(17, 24, 39, 0.06);
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--clr-text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 24, 39, 0.16);
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}

.btn-full {
  width: 100%;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

/* Hero actions & meta */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-text-muted);
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Hero visual */

.hero-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  gap: 1.1rem;
  align-content: flex-start;
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.hero-card.primary {
  max-width: 360px;
}

.hero-card.secondary {
  max-width: 260px;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

.hero-card.secondary p {
  margin: 0 0 0.9rem;
}

.hero-card.secondary .avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: inline-block;
  margin-right: 0.4rem;
}

.hero-card.secondary .avatar-name {
  font-size: 0.85rem;
  color: var(--clr-text);
}

.hero-card .chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  font-size: 0.76rem;
  border-radius: var(--radius-pill);
  background-color: rgba(79, 70, 229, 0.05);
  color: var(--clr-primary-strong);
  margin-bottom: 0.7rem;
}

.hero-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.hero-card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

.hero-labels {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.hero-labels span {
  font-size: 0.75rem;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: #f3f4ff;
  color: #4338ca;
}

/* Orbits */

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(79, 70, 229, 0.28);
}

.hero-orbit--1 {
  width: 220px;
  height: 220px;
  right: -40px;
  top: -30px;
}

.hero-orbit--2 {
  width: 150px;
  height: 150px;
  left: -20px;
  bottom: -30px;
}

/* Simple entrance animation */

.hero-content,
.hero-visual {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 700ms ease forwards;
}

.hero-visual {
  animation-delay: 100ms;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================
   About
   ========================== */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-highlights {
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.about-highlights li + li {
  margin-top: 0.4rem;
}

.about-media {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

.about-stat {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.9rem;
  backdrop-filter: blur(12px);
  background-color: rgba(17, 24, 39, 0.75);
  color: #f9fafb;
}

.about-stat-number {
  font-weight: 600;
  font-size: 1.1rem;
}

.about-stat-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ==========================
   Services
   ========================== */

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.service-card {
  padding: 1.5rem 1.6rem;
  border-radius: 1.1rem;
  background-color: var(--clr-surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.04);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  border-color: rgba(79, 70, 229, 0.4);
  background-color: #ffffff;
}

.service-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background-image: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
}

.service-card p {
  margin: 0.35rem 0 0;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

/* Extra services: hidden by default */
.service-card-extra {
  display: none;
}

/* Container for the show more button */
.services-actions {
  margin-top: 1.75rem;
  text-align: center;
}

/* Optional fine‑tuning for the button */
.btn-show-more {
  padding-inline: 1.7rem;
  font-size: 0.95rem;
}

/* ==========================
   Our Work
   ========================== */

.work-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 1.1rem;
  background-color: var(--clr-surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(79, 70, 229, 0.45);
}

.work-image {
  border-radius: 0.9rem;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.work-body {
  display: flex;
  flex-direction: column;
}

.work-tag {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-text-muted);
}

.work-body h3 {
  margin-bottom: 0.35rem;
}

.work-body p {
  margin: 0 0 0.9rem;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.work-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  font-size: 0.8rem;
}

.work-meta span {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #4b5563;
}

/* Extra work cards: hidden by default */
.work-card-extra {
  display: none;
}

/* Container for the show more button in work section */
.work-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Optional fine‑tuning for the button */
.btn-show-more-work {
  padding-inline: 1.7rem;
  font-size: 0.95rem;
}

/* ==========================
   OUR TEAM SECTION
   ========================== */

.team-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.team-card {
  position: relative;
  padding: 1.7rem 1.5rem 1.6rem;
  border-radius: 1.2rem;
  background-color: var(--clr-surface);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.13);
  border-color: rgba(79, 70, 229, 0.7);
  background-color: #ffffff;
}

.team-avatar {
  margin-bottom: 1rem;
}

.team-avatar-ring {
  width: 88px;
  height: 88px;
  padding: 2px;
  border-radius: 999px;
  background-image: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background-color: #e5e7eb;
}

.team-name {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.team-role {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--clr-text-muted);
}

.team-bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  max-width: 22rem;
}

/* Responsive layout for team grid */
@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================
   Contact
   ========================== */

.contact-grid {
  display: grid;
  gap: 2.75rem;
  align-items: flex-start;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

.contact-label {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.contact-details a {
  color: var(--clr-primary-strong);
  font-weight: 500;
}

.map-placeholder {
  border-radius: 1rem;
  background: repeating-linear-gradient(
    135deg,
    #e5e7eb 0,
    #e5e7eb 1px,
    #f9fafb 1px,
    #f9fafb 10px
  );
  padding: 1.7rem 1.2rem;
  color: #6b7280;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-wrap {
  border-radius: 1.2rem;
  background-color: var(--clr-surface);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 1.7rem 1.6rem;
}

/* Contact form */

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  background-color: #f9fafb;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-base);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--clr-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

.form-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

.form-success {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background-color: #ecfdf3;
  color: #166534;
  font-size: 0.9rem;
  border: 1px solid #bbf7d0;
}

.form-error {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background-color: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
  border: 1px solid #fecaca;
}

/* ==========================
   Footer
   ========================== */

.site-footer {
  padding: 1.6rem 0 1.9rem;
  background-color: #0b1120;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: #e5e7eb;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background-image: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* ==========================
   Responsive
   ========================== */

@media (max-width: 768px) {
  /* Nav */
  .nav-toggle-label {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset-inline: 0.9rem;
    top: calc(var(--nav-height) + 0.6rem);
    padding: 0.7rem 0.75rem;
    border-radius: 1rem;
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    display: none;
    flex-direction: column;
    gap: 0.6rem;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.45rem 0.4rem;
  }

  .nav-cta {
    align-self: stretch;
    justify-content: center;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: 3.25rem;
  }

  .hero-card.primary {
    max-width: 100%;
  }

  .hero-card.secondary {
    max-width: 70%;
  }

  /* Work cards */
  .work-card {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-form-wrap {
    padding: 1.4rem 1.3rem;
  }
}

@media (min-width: 640px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.02fr);
    align-items: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  .section {
    padding-block: 4.5rem;
  }
}