:root {
  --white: #fffefe;
  --surface: #fafafa;
  --surface-warm: #f7f3ed;
  --ink: #121d2c;
  --muted: #687383;
  --line: #e1e5e8;
  --mint: #8fcac1;
  --mint-dark: #3f827a;
  --coral: #f18a7e;
  --lavender: #afa0d9;
  --shadow: 0 18px 45px rgba(23, 31, 40, 0.08);
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --shell: min(1320px, calc(100vw - 88px));
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
}

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

button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

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

.home-header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid #eef0f1;
  background: rgba(255, 254, 254, 0.95);
  backdrop-filter: blur(16px);
}

.home-header__shell {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: var(--shell);
  min-height: 88px;
  margin: 0 auto;
}

.home-brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
}

.home-brand {
  margin-right: auto;
}

.home-brand img {
  width: clamp(182px, 18vw, 225px);
}

.footer-logo img {
  width: 180px;
}

.cube-logo {
  position: relative;
  width: 46px;
  height: 38px;
  flex: 0 0 auto;
}

.cube-logo i {
  position: absolute;
  width: 19px;
  height: 19px;
  border: 2px solid #142332;
  background: var(--mint);
  transform: rotate(30deg) skewY(-30deg);
}

.cube-logo i:nth-child(1) {
  top: 0;
  left: 13px;
  background: #d8f1ec;
}

.cube-logo i:nth-child(2) {
  top: 17px;
  left: 2px;
  background: #ffd4cd;
}

.cube-logo i:nth-child(3) {
  top: 17px;
  left: 24px;
  background: #ded6f4;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.6vw, 48px);
  color: #243042;
  font-size: 0.98rem;
  font-weight: 500;
}

.home-nav a,
.home-link {
  position: relative;
  padding: 8px 0;
}

.home-nav a::after,
.home-link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--mint), var(--coral), var(--lavender));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.home-nav a:is(:hover, :focus-visible)::after,
.home-link:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

.home-link {
  color: var(--muted);
  font-weight: 600;
}

.home-nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 9px;
  font-weight: 600;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.button-dark {
  border: 2px solid transparent;
  color: #ffffff;
  background:
    linear-gradient(135deg, #142235, #263146) padding-box,
    linear-gradient(90deg, var(--mint), var(--coral), var(--lavender)) border-box;
}

.button-outline {
  border: 1px solid #263146;
  background: #fff;
}

.button:is(:hover, :focus-visible) {
  box-shadow: 0 14px 28px rgba(25, 35, 48, 0.16);
  transform: translateY(-2px);
}

.home-hero {
  overflow: hidden;
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 43%, #f9f6f1 100%);
}

.home-hero__shell {
  display: grid;
  grid-template-columns: minmax(410px, 43%) minmax(440px, 1fr);
  align-items: stretch;
  width: var(--shell);
  min-height: min(680px, calc(100svh - 88px));
  margin: 0 auto;
}

.home-hero__copy {
  z-index: 1;
  align-self: center;
  max-width: 590px;
  padding: 64px 0 76px;
}

.home-hero h1 {
  margin: 0 0 23px;
  font-family: var(--display);
  font-size: clamp(3.55rem, 5vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.home-hero p {
  max-width: 520px;
  margin: 0 0 36px;
  color: #596575;
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.home-hero__image {
  align-self: stretch;
  margin: 0 calc((var(--shell) - 100vw) / 2) 0 -74px;
  overflow: hidden;
}

.home-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.home-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(1160px, calc(100vw - 88px));
  margin: -46px auto 0;
  padding: 25px 30px;
  border: 1px solid #edf0f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(30, 37, 45, 0.08);
  backdrop-filter: blur(12px);
}

.home-values article {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-values p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.home-values strong {
  color: var(--ink);
  font-weight: 700;
}

.shop-section {
  width: min(1320px, calc(100vw - 88px));
  margin: 0 auto;
  padding: clamp(82px, 8vw, 112px) 0 30px;
}

.shop-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--mint-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-heading h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.55rem, 4.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.shop-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.category-pill.active {
  border-color: transparent;
  color: #fff;
  background: #17263a;
}

.category-pill.muted {
  color: #8d96a3;
  background: #fafafa;
}

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

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.82fr);
  overflow: hidden;
  min-height: 430px;
  border: 1px solid #e1e5e8;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(22, 31, 42, 0.06);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.product-card:is(:hover, :focus-within) {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  min-height: 100%;
  background: var(--surface-warm);
}

.product-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.product-thumbs {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(28, 34, 44, 0.12);
  backdrop-filter: blur(10px);
}

.product-thumb {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #526072;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-thumb.active {
  color: #fff;
  background: #17263a;
}

.product-info {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
}

.product-topline,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.product-topline strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.product-info h3 {
  margin: 18px 0 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 2.8vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.product-badges span {
  padding: 8px 11px;
  border: 1px solid #e3e8e8;
  border-radius: 999px;
  color: #475566;
  background: #fbfbfb;
  font-size: 0.76rem;
  font-weight: 800;
}

.product-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #edf0f1;
}

.product-buy {
  width: 100%;
  margin-top: 18px;
}

.stripe-ready-note {
  margin-top: 22px;
  padding: 18px 21px;
  border: 1px solid #dfe6e5;
  border-radius: 16px;
  color: #536071;
  background: #fbfdfc;
  line-height: 1.6;
}

.stripe-ready-note strong {
  color: var(--ink);
}

.stripe-ready-note code {
  padding: 3px 6px;
  border-radius: 6px;
  background: #eef5f3;
  color: #1e625a;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.9em;
}

.line-icon,
.card-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.line-icon {
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  color: var(--mint-dark);
}

.line-icon.cube {
  transform: rotate(30deg) skewY(-30deg);
}

.line-icon.heart {
  border-radius: 50% 50% 45% 45%;
  color: var(--coral);
}

.line-icon.leaf {
  border-radius: 100% 0 100% 0;
  color: #8f79bd;
  transform: rotate(-18deg);
}

.collections {
  width: min(1320px, calc(100vw - 88px));
  margin: 0 auto;
  padding: clamp(82px, 8vw, 112px) 0 72px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.kallax-feature h2,
.featured h2,
.made-to-measure h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2.45rem, 4vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-heading p,
.featured-copy p,
.made-to-measure p,
.kallax-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-button {
  padding: 10px 17px;
  border: 1px solid #dce2e4;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-button.active {
  border-color: transparent;
  color: #fff;
  background: #17263a;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.collection-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 29, 39, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.collection-card:not([hidden]):is(:hover, :focus-within) {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.collection-card[hidden] {
  display: none;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
}

.collection-card > div {
  min-height: 160px;
  padding: 21px 22px 24px;
}

.collection-card h3 {
  margin: 13px 0 8px;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.collection-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.card-icon {
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
}

.card-icon.decor {
  color: var(--mint-dark);
  border-radius: 0 45% 45% 45%;
  transform: rotate(45deg);
}

.card-icon.planter {
  color: var(--mint-dark);
  border-radius: 50%;
}

.card-icon.kallax {
  color: var(--coral);
  transform: rotate(30deg) skewY(-30deg);
}

.card-icon.desk {
  color: #8b76bf;
  border-radius: 8px;
}

.kallax-feature {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  width: min(1320px, calc(100vw - 88px));
  margin: 0 auto 76px;
  padding: 34px;
  border: 1px solid #e6e9ea;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbfaf8, #ffffff);
}

.kallax-feature__image {
  overflow: hidden;
  border-radius: 18px;
}

.kallax-feature__image img {
  width: 100%;
  aspect-ratio: 1.32;
  object-fit: cover;
}

.kallax-feature ul {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.kallax-feature li {
  position: relative;
  padding-left: 28px;
  color: #344052;
  line-height: 1.55;
}

.kallax-feature li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--mint-dark);
  content: "";
  transform: rotate(30deg) skewY(-30deg);
}

.legal-note {
  padding-top: 17px;
  border-top: 1px solid #e5e8ea;
  font-size: 0.86rem;
}

.featured {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(38px, 6vw, 90px);
  width: min(1200px, calc(100vw - 88px));
  margin: 0 auto 74px;
  align-items: start;
}

.featured-copy {
  position: sticky;
  top: 122px;
}

.featured-list {
  display: grid;
  gap: 16px;
}

.featured-list article {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.featured-list span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--mint-dark), var(--lavender));
  font-weight: 700;
}

.featured-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 600;
}

.featured-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.made-to-measure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: min(1320px, calc(100vw - 88px));
  margin: 0 auto 70px;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 30%, rgba(143, 202, 193, 0.28), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(241, 138, 126, 0.2), transparent 30%),
    #f8f6f2;
}

.made-to-measure div {
  max-width: 760px;
}

.home-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  width: var(--shell);
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
}

.home-footer nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-footer p {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-toast {
  position: fixed;
  z-index: 20;
  right: 28px;
  bottom: 28px;
  max-width: min(390px, calc(100vw - 42px));
  padding: 17px 22px;
  border: 1px solid #d4dce1;
  border-radius: 9px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
}

@media (max-width: 1080px) {
  :root {
    --shell: calc(100vw - 48px);
  }

  .home-header__shell {
    gap: 18px;
  }

  .home-nav {
    gap: 18px;
    font-size: 0.92rem;
  }

  .home-hero__shell {
    grid-template-columns: 1fr 50%;
  }

  .home-hero__image {
    margin-left: -28px;
  }

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

  .shop-heading,
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-media img {
    aspect-ratio: 1.4;
    min-height: 0;
  }

  .kallax-feature,
  .featured {
    grid-template-columns: 1fr;
  }

  .featured-copy {
    position: static;
  }
}

@media (max-width: 790px) {
  :root {
    --shell: calc(100vw - 38px);
  }

  .home-header {
    position: relative;
  }

  .home-header__shell {
    min-height: 82px;
  }

  .home-brand img {
    width: 158px;
  }

  .cube-logo {
    width: 38px;
    height: 32px;
  }

  .cube-logo i {
    width: 16px;
    height: 16px;
  }

  .cube-logo i:nth-child(1) {
    left: 11px;
  }

  .cube-logo i:nth-child(2) {
    top: 14px;
  }

  .cube-logo i:nth-child(3) {
    top: 14px;
    left: 20px;
  }

  .home-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 7px;
    order: 2;
    width: 40px;
    padding: 8px 4px;
  }

  .home-nav-toggle span {
    width: 27px;
    height: 2px;
    background: var(--ink);
  }

  .home-link {
    display: none;
  }

  .home-nav {
    position: absolute;
    top: 81px;
    left: -19px;
    right: -19px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: white;
  }

  .home-nav.open {
    display: flex;
  }

  .home-hero__shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
  }

  .home-hero__copy {
    width: var(--shell);
    padding: 48px 0 36px;
  }

  .home-hero h1 {
    max-width: 320px;
    font-size: 2.7rem;
    line-height: 1.04;
  }

  .home-hero p {
    max-width: 320px;
  }

  .home-actions {
    flex-direction: column;
  }

  .home-hero__image {
    width: 100%;
    height: 340px;
    margin: 0;
  }

  .home-hero__image img {
    object-position: 58% center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-values {
    grid-template-columns: 1fr;
    width: var(--shell);
    margin-top: 24px;
  }

  .collections,
  .shop-section,
  .kallax-feature,
  .featured,
  .made-to-measure {
    width: var(--shell);
  }

  .collections {
    padding-top: 58px;
  }

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

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

  .shop-heading {
    gap: 18px;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-thumbs {
    left: 12px;
    right: 12px;
    justify-content: center;
  }

  .kallax-feature {
    padding: 18px;
  }

  .made-to-measure {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  .home-footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-footer p {
    justify-self: center;
  }
}
