:root {
  --navy: #071b2f;
  --navy-soft: #0f2941;
  --ocean: #0c7b86;
  --aqua: #7be3df;
  --coral: #ff6a5f;
  --ink: #102132;
  --muted: #687683;
  --line: #dbe2e7;
  --paper: #f5f8fa;
  --white: #ffffff;
  --content: min(1200px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image: linear-gradient(rgba(7, 27, 47, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 47, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  background: rgba(7, 27, 47, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(123, 227, 223, 0.7);
  color: var(--aqua);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  transform: rotate(-6deg);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.13em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--aqua);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.36em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.header-actions > a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.header-actions > a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.header-actions > a:hover::after,
.header-actions > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-control select {
  min-height: 40px;
  padding: 0 28px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  color: var(--white);
  background: var(--navy-soft);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  min-height: 620px;
  color: var(--white);
  background: var(--navy);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 94px) clamp(24px, 7vw, 96px)
    clamp(48px, 6vw, 80px) max(24px, calc((100vw - 1200px) / 2));
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.eyebrow-dark {
  color: var(--ocean);
}

h1,
h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.75rem, 5.4vw, 5.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-intro {
  max-width: 610px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  color: var(--navy);
  background: var(--aqua);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--white);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--aqua);
  color: var(--aqua);
}

.collection-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 630px;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.collection-index li {
  padding: 16px 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--aqua);
  font-size: 0.74rem;
  font-weight: 700;
}

.collection-index span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(170px, 0.65fr);
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-soft);
}

.hero-image {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #e9eef1;
}

.hero-image-main {
  grid-row: 1 / 3;
}

.hero-image img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-image:hover img {
  transform: scale(1.025);
}

.collections {
  width: var(--content);
  padding: clamp(72px, 9vw, 120px) 0;
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: end;
}

.section-heading p:last-child {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
}

.filter-row {
  display: flex;
  gap: 8px;
  padding: 26px 0 22px;
  margin-top: 42px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--ocean);
  color: var(--ocean);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 16px;
}

.product-card {
  min-width: 0;
  animation: cardIn 300ms ease both;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper);
}

.product-image-wrap::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(7, 27, 47, 0.05);
}

.product-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.025);
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.product-meta h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-meta span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: 40px;
  align-items: end;
  padding: clamp(66px, 9vw, 110px) max(24px, calc((100vw - 1200px) / 2));
  color: var(--white);
  background: var(--ocean);
}

.contact h2 {
  max-width: 750px;
  font-size: clamp(2rem, 4vw, 4.1rem);
}

.contact .eyebrow {
  color: #c9fffa;
}

.contact-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: end;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  text-decoration: none;
}

.contact-link span:first-child {
  grid-column: 1 / 3;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-link strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.contact-link span:last-child {
  font-size: 1.55rem;
  transition: transform 180ms ease;
}

.contact-link:hover span:last-child,
.contact-link:focus-visible span:last-child {
  transform: translate(4px, -4px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
  padding: 24px max(24px, calc((100vw - 1200px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
}

footer p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-brand {
  color: var(--white);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 560px;
    padding-right: max(24px, calc((100vw - 720px) / 2));
  }

  .hero-gallery {
    min-height: 610px;
  }

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

@media (max-width: 700px) {
  :root {
    --content: calc(100vw - 28px);
  }

  .site-header {
    min-height: 70px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 0.78rem;
  }

  .brand-copy small {
    font-size: 0.6rem;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions > a {
    display: none;
  }

  .hero-copy {
    min-height: 565px;
    padding: 58px 18px 38px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .collection-index {
    margin-top: 48px;
  }

  .collection-index li {
    font-size: 0.68rem;
  }

  .collection-index span {
    font-size: 0.7rem;
  }

  .hero-gallery {
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 470px;
  }

  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .collections {
    padding: 74px 0;
  }

  .section-heading {
    gap: 24px;
  }

  .filter-row {
    margin-top: 32px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 10px;
  }

  .product-meta {
    display: block;
  }

  .product-meta h3 {
    font-size: 0.88rem;
  }

  .product-meta span {
    display: block;
    margin-top: 5px;
    font-size: 0.68rem;
  }

  .contact {
    padding-right: 18px;
    padding-left: 18px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
