*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #526075;
  --primary: #d94a2a;
  --primary-dark: #b83a22;
  --accent: #142b52;
  --accent-soft: #e7edf8;
  --border: #dfe6f0;
  --shadow: 0 24px 50px -32px rgba(15, 23, 42, 0.45);
  --glow: 0 24px 60px -36px rgba(227, 74, 43, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 55%);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 8vw;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 255, 0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 43, 82, 0.12);
  box-shadow: 0 18px 40px -28px rgba(20, 43, 82, 0.35);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

@media (min-width: 861px) {
  .logo img {
    width: 72px;
    height: 72px;
  }
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #ffb199);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -6px;
}

.nav-toggle-label span::after {
  top: 6px;
}

.hero {
  padding: 0 0 4rem;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(31, 42, 102, 0.2), transparent 65%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-card {
  background: linear-gradient(135deg, #f7f8ff 0%, #fff1ea 55%, #eef3ff 100%);
  border-radius: 0 0 1.6rem 1.6rem;
  padding: 3.8rem 3rem 4.8rem;
  border: 1px solid rgba(20, 43, 82, 0.12);
  box-shadow: 0 40px 80px -50px rgba(20, 43, 82, 0.35);
  width: 100%;
  min-height: 520px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.5fr);
  align-items: center;
  gap: 2.5rem;
}

.hero-logo {
  display: flex;
  justify-content: flex-start;
  margin-left: -40px;
}

.hero-logo img {
  width: clamp(260px, 32vw, 420px);
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
}

.logo-intro {
  animation: logoIntro 900ms ease-out both;
}

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-intro {
    animation: none;
  }
}

.hero-card .eyebrow {
  color: var(--primary);
}

.hero-card h1,
.hero-card .subhead,
.hero-card .hero-tagline {
  color: var(--ink);
}

.hero-card .subhead {
  color: var(--muted);
}

.hero-card .hero-tagline {
  color: var(--accent);
}

.hero-card .btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 43, 82, 0.2);
}

.hero-card .btn.ghost:hover {
  box-shadow: none;
  border-color: rgba(20, 43, 82, 0.5);
  transform: translateY(-1px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.subhead {
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-tagline {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-media {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hero-image {
  background: var(--surface);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.hero-image.small {
  align-self: end;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image.profile img {
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-image.profile:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.section {
  padding: 4.5rem 8vw;
}

#about.section {
  padding-top: 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#products.section.alt {
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 100%);
}

#products.section.alt .section-inner {
  padding: 0;
  max-width: none;
}

.product-band {
  background: linear-gradient(135deg, #f7f8ff 0%, #fff1ea 55%, #eef3ff 100%);
  border-radius: 0;
  padding: 3rem 8vw 3.5rem;
  border-top: 1px solid rgba(20, 43, 82, 0.12);
  border-bottom: 1px solid rgba(20, 43, 82, 0.12);
  box-shadow: 0 40px 80px -50px rgba(20, 43, 82, 0.35);
}

.product-band .section-heading h2,
.product-band .section-heading p {
  color: var(--ink);
}

.product-band .section-heading p {
  color: var(--muted);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  max-width: 720px;
}

.section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.work-card,
.quote {
  background: linear-gradient(145deg, #ffffff 0%, #f7f9ff 100%);
  border-radius: 1rem;
  padding: 1.6rem;
  border: 1px solid rgba(20, 43, 82, 0.12);
  box-shadow: 0 24px 50px -36px rgba(20, 43, 82, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.work-card:hover,
.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.badge-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.5rem;
}

.pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.profile-card {
  background: linear-gradient(160deg, #ffffff 0%, #f5f7ff 100%);
  border-radius: 1.2rem;
  border: 1px solid rgba(20, 43, 82, 0.12);
  box-shadow: 0 28px 60px -40px rgba(20, 43, 82, 0.45);
  overflow: hidden;
  display: grid;
  max-width: 420px;
  justify-self: center;
}

.profile-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
  background: #f1f1f1;
}

.profile-card div {
  padding: 1.5rem;
}

.work-grid {
  gap: 1.75rem;
}

.work-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 120px 1fr;
  align-items: center;
}

.work-thumb {
  background: linear-gradient(135deg, #c7d2fe, #bfdbfe);
  height: 80px;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #1e3a8a;
}

.quote span {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.product-grid {
  margin-top: 1.5rem;
}

.product-card {
  background: linear-gradient(135deg, #f7f8ff 0%, #fff1ea 55%, #eef3ff 100%);
  border-radius: 1.1rem;
  border: 1px solid rgba(20, 43, 82, 0.16);
  box-shadow: 0 24px 50px -34px rgba(20, 43, 82, 0.4);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -32px rgba(227, 74, 43, 0.45);
  border-color: rgba(227, 74, 43, 0.4);
}

.product-card h3 {
  font-size: 1.15rem;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(31, 42, 102, 0.2);
}

.product-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  padding-left: 0;
}

.product-card li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 0.6rem;
  font-weight: 700;
}

.gallery {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--glow);
}

.gallery-large {
  margin-top: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-large img {
  height: 280px;
  object-fit: cover;
  background: transparent;
  padding: 0;
}

.gallery-large img.no-crop {
  object-fit: contain;
  background: #ffffff;
}


.rotate-90 {
  transform: rotate(90deg);
}

.icon-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.icon-list div {
  padding: 1rem 1.2rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
  border: 1px solid rgba(20, 43, 82, 0.12);
  font-weight: 600;
  color: var(--accent);
}

.contact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--glow);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--ink);
  background: white;
}

.btn.ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 1.2rem 8vw 1.6rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-info {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-info span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-info p {
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 8vw;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
  }

  .nav-toggle:checked ~ .site-nav {
    transform: scaleY(1);
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-large {
    grid-template-columns: 1fr;
  }

  .gallery-large img {
    height: 240px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-logo {
    margin-left: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .work-card {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-large img {
    height: 220px;
  }
}
