:root {
  --bg: #eef3f0;
  --paper: #ffffff;
  --ink: #17201f;
  --muted: #526261;
  --line: #c5d5d0;
  --accent: #c84c31;
  --deep: #123b3a;
  --edge: #b8cac5;
}

* { box-sizing: border-box; }

html { font-size: 16px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.72), transparent 28%),
    linear-gradient(130deg, #f5f7f4, var(--bg));
  font-family: "Poppins", "Segoe UI", "Noto Sans", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.35) 3px, rgba(255,255,255,.35) 4px);
  opacity: .18;
  z-index: -1;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 2px;
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 1.4rem;
  background: color-mix(in oklab, var(--paper), transparent 35%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid color-mix(in oklab, var(--line), transparent 35%);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid var(--deep);
  background: #1e222a;
  color: #f7f3ea;
  font-weight: 700;
}

.wordmark { font-weight: 700; letter-spacing: .06em; font-size: .82rem; }

.top-nav { display: flex; flex-wrap: wrap; gap: .95rem; margin-top: .8rem; }
.top-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  border-bottom: 1px solid transparent;
  padding-bottom: .1rem;
}
.top-nav a.active,
.top-nav a:hover { color: var(--ink); border-color: currentColor; }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: .36rem .72rem;
  color: var(--ink);
  cursor: pointer;
}

main { width: min(1100px, calc(100vw - 2rem)); margin: 2rem auto 4rem; }

.hero {
  width: 100%;
  min-width: 0;
  min-height: min(560px, 72vh);
  display: grid;
  align-items: end;
  padding: 2rem;
  background:
    linear-gradient(90deg, rgba(18, 35, 34, .88), rgba(18, 35, 34, .54), rgba(18, 35, 34, .18)),
    url("./images/fashion-operations-rack.jpg") center / cover no-repeat;
  border: 1px solid var(--edge);
  border-radius: 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(18, 35, 34, .72), transparent);
  transform: translate3d(0, 0, 0);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: min(650px, 100%);
}

.hero-copy h1 {
  margin: .3rem 0 .8rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.kicker { max-width: 100%; text-transform: uppercase; font-size: .75rem; letter-spacing: .14em; color: var(--muted); overflow-wrap: anywhere; }
.hero .kicker { color: #cfe7df; }
.hero-copy p { color: #eef8f4; max-width: 55ch; }
.hero-links { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.25rem; }

.btn {
  text-decoration: none;
  border-radius: .7rem;
  padding: .62rem 1rem;
  font-size: .92rem;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #1c202d; color: #fff; }
.hero .btn.primary { background: #ffffff; color: var(--deep); }
.hero .btn.ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.62); color: #ffffff; }
.btn.ghost { background: transparent; border: 1px solid #7d9790; color: #22312f; }

.metrics {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.metrics article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .95rem;
  padding: 1rem;
}
.metrics span { font-size: 1.7rem; font-family: "Playfair Display", Georgia, serif; color: var(--deep); }

.panel-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.panel, .wide-panel, .tile, .case-card {
  border: 1px solid var(--edge);
  border-radius: .95rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.panel h3, .tile h3, .case-card h3, .wide-panel h2 { margin-top: .4rem; }
.panel p, .tile p, .case-card p { margin-bottom: .4rem; color: #41514f; }
.panel a { text-decoration: none; color: #3a332c; }

.eyebrow { margin: 0 0 .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #8b3c2e; }

.page-head {
  margin: 1rem 0 1.4rem;
}
.page-head h1 { margin: .25rem 0 .5rem; font-size: clamp(1.7rem, 3vw, 2.2rem); font-family: "Playfair Display", Georgia, serif; }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.tile img { width: 100%; max-height: 190px; object-fit: contain; margin-top: .7rem; border-radius: .62rem; }
.tile img[src$=".jpg"] { aspect-ratio: 16 / 9; object-fit: cover; }

.wide-panel { margin-top: 1rem; }
.wide-panel ul { margin: 0.6rem 0 0 1.15rem; color: #4a3f35; display: grid; gap: .4rem; }

.bundle-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.case-card, .contact-grid .panel { min-height: 230px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.step {
  padding: 1rem;
  border: 1px solid var(--edge);
  border-left: 6px solid var(--accent);
  border-radius: .75rem;
  background: #fefcf8;
}
.step-no {
  width: 1.9rem;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--deep);
  color: var(--deep);
  font-weight: 700;
  margin-bottom: .5rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.contact-grid a,
.wide-panel a { color: #1e2533; }

.reveal { opacity: 1; transform: none; filter: none; }
.js .reveal { opacity: 1; transform: none; filter: none; transition: opacity .25s ease, transform .25s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

.site-footer {
  margin: 3rem auto 1.5rem;
  width: min(1100px, 95vw);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: .84rem;
  color: #584e41;
}

@media (max-width: 920px) {
  .top-nav {
    display: none;
    flex-direction: column;
    margin-top: .6rem;
  }
  .top-nav.open { display: flex; }
  .menu-toggle { display: inline-block; }

  .hero, .metrics, .panel-grid, .tile-grid, .bundle-grid, .application-grid, .timeline, .fact-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    width: 100%;
    min-height: 560px;
    padding: 1.25rem;
    border-radius: .8rem;
  }

  .hero-copy h1 {
    font-size: 1.78rem;
  }

  .hero-copy p {
    font-size: .95rem;
  }

  .hero-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-links .btn {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    gap: .4rem;
  }
}

@media (max-width: 600px) {
  main,
  .site-footer {
    width: min(358px, calc(100vw - 2rem));
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .hero-copy {
    max-width: min(300px, 100%);
  }
}
