:root {
  color-scheme: light;
  --ink: #171714;
  --muted: #68665f;
  --line: rgba(23, 23, 20, 0.13);
  --paper: #f4f1ea;
  --surface: #fff;
  --accent: #876440;
  --accent-soft: #e9dfd2;
  --hero: #e9e3da;
  --display: "Manrope", sans-serif;
  --body: "Manrope", sans-serif;
  --content: 1240px;
}

body.product-lamp {
  --paper: #f4efe6;
  --accent: #aa7036;
  --accent-soft: #ead8bd;
  --hero: #ddc8aa;
}

body.product-timer {
  --paper: #efeee9;
  --accent: #dd4d32;
  --accent-soft: #f2cfc4;
  --hero: #252523;
}

body.product-chair {
  --paper: #f2eee8;
  --accent: #8b6440;
  --accent-soft: #e4d5c4;
  --hero: #e6dfd6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: #fff;
  background: var(--accent);
}

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

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

button {
  font: inherit;
}

.portfolio-nav {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  overflow-x: auto;
  border: 1px solid rgba(36, 36, 48, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(30, 27, 56, 0.13);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transform: translateX(-50%);
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
  scrollbar-width: none;
}

.portfolio-nav::-webkit-scrollbar {
  display: none;
}

.portfolio-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -140%);
}

.portfolio-nav a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: #626272;
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.portfolio-nav a:hover,
.portfolio-nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  padding: 120px max(5vw, 24px) 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.7), transparent 34%),
    var(--hero);
}

.product-timer .hero {
  color: #f8f6f0;
  background:
    radial-gradient(circle at 78% 18%, rgba(221, 77, 50, 0.22), transparent 28%),
    var(--hero);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  width: min(100%, var(--content));
  min-height: calc(min(920px, 100svh) - 176px);
  margin: 0 auto;
  align-items: center;
  gap: clamp(40px, 7vw, 104px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font: 700 clamp(58px, 8vw, 116px) / 0.9 var(--display);
  letter-spacing: -0.075em;
}

.hero-copy {
  max-width: 570px;
  margin: 32px 0 0;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.hero-meta span {
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual::before {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 34px;
  content: "";
}

.hero-visual img {
  position: relative;
  z-index: 1;
  aspect-ratio: 1.14 / 1;
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(42, 31, 20, 0.2);
  object-fit: cover;
}

.product-lamp .hero-visual img {
  object-position: center 52%;
}

.section {
  padding: clamp(88px, 12vw, 168px) max(5vw, 24px);
}

.section-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.section-label {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story {
  background: var(--surface);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 9vw, 140px);
}

.story h2,
.feature-heading h2,
.gallery-heading h2,
.video-heading h2,
.awards h2,
.next-project h2 {
  margin: 0;
  font: 650 clamp(38px, 5.5vw, 74px) / 1.02 var(--display);
  letter-spacing: -0.055em;
}

.story-copy {
  padding-top: 8px;
}

.story-copy p {
  margin: 0 0 24px;
  color: #44433e;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.72;
}

.story-copy .lead {
  margin-bottom: 34px;
  color: var(--ink);
  font-size: clamp(21px, 2.25vw, 30px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.story-copy strong {
  color: var(--ink);
  font-weight: 750;
}

.feature-section {
  background: var(--paper);
}

.feature-heading,
.gallery-heading,
.video-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(44px, 7vw, 80px);
  gap: 32px;
}

.feature-heading p,
.gallery-heading p,
.video-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.feature-card {
  min-height: 300px;
  padding: clamp(26px, 3.5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.feature-card:hover {
  background: #fff;
  box-shadow: 0 22px 60px rgba(47, 38, 27, 0.1);
  transform: translateY(-7px);
}

.feature-card span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 64px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.gallery-section {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.gallery-card.wide {
  grid-column: span 12;
  aspect-ratio: 1.9 / 1;
}

.gallery-card.half {
  grid-column: span 6;
  aspect-ratio: 1.18 / 1;
}

.gallery-card.third {
  grid-column: span 4;
  aspect-ratio: 0.96 / 1;
}

.gallery-card.tall {
  grid-column: span 5;
  grid-row: span 2;
  aspect-ratio: 0.83 / 1;
}

.gallery-card.large {
  grid-column: span 7;
  aspect-ratio: 1.38 / 1;
}

.video-section {
  color: #f7f4ee;
  background: #1b1b19;
}

.video-heading p {
  color: rgba(255, 255, 255, 0.58);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: #0c0c0b;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
}

.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.awards {
  color: #f8f5ef;
  background: #1b1b19;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.award-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 22px 12px 0;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 650;
  transition:
    color 0.2s ease,
    padding 0.25s ease;
}

.award-grid a:nth-child(odd) {
  margin-right: 34px;
}

.award-grid a:hover {
  padding-left: 12px;
  color: #eab98d;
}

.next-project {
  padding: clamp(88px, 12vw, 150px) max(5vw, 24px);
  text-align: center;
  background: var(--accent-soft);
}

.next-project .section-label {
  margin-bottom: 18px;
}

.next-project a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(100%, 720px);
    margin: 24px auto 0;
  }

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

  .feature-heading,
  .gallery-heading,
  .video-heading {
    display: grid;
  }

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

  .feature-card {
    min-height: auto;
  }

  .feature-card span {
    margin-bottom: 44px;
  }
}

@media (max-width: 640px) {
  .portfolio-nav {
    left: 12px;
    max-width: calc(100% - 24px);
    transform: none;
  }

  .portfolio-nav.is-hidden {
    transform: translateY(-140%);
  }

  .portfolio-nav a {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero {
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: clamp(50px, 18vw, 74px);
  }

  .section {
    padding-inline: 20px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-card.wide,
  .gallery-card.half,
  .gallery-card.third,
  .gallery-card.tall,
  .gallery-card.large {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1.2 / 1;
  }

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

  .award-grid a:nth-child(odd) {
    margin-right: 0;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
