/* ============================================================
   KELDI FASHION MFG — quiet luxury, editorial
   Palette: bone / sand / ink / stone
   ============================================================ */
:root {
  --bone:  #F1EDE6;
  --paper: #FAF8F4;
  --sand:  #D9D0C3;
  --stone: #8B8478;
  --ink:   #17140F;
  --ink-2: #211D16;
  --line:  rgba(23, 20, 15, .16);
  --line-l: rgba(241, 237, 230, .22);
  --serif: "Cormorant Garamond", "Songti SC", serif;
  --sans:  "Archivo", "PingFang SC", sans-serif;
  --ease:  cubic-bezier(.19, 1, .22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: var(--ink); color: var(--bone); }

/* ---------- type helpers ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 28px;
}
.kicker--light { color: rgba(241,237,230,.6); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 14px 48px;
}
.nav__brand {
  font-family: var(--sans); font-weight: 500;
  letter-spacing: .3em; font-size: 13px;
  color: var(--bone); mix-blend-mode: difference;
}
.nav__links { display: flex; gap: 36px; mix-blend-mode: difference; }
.nav__links a {
  color: var(--bone); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding-bottom: 3px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--bone); transition: width .4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  color: var(--bone); mix-blend-mode: difference;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--line-l); padding: 10px 22px;
  transition: background .4s, color .4s;
}
.nav__cta:hover { background: var(--bone); color: var(--ink); mix-blend-mode: normal; }
.nav__burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.06);
  animation: heroZoom 2.6s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,13,9,.62) 0%, rgba(15,13,9,.18) 45%, rgba(15,13,9,.28) 100%);
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 48px 12vh;
}
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(52px, 8.4vw, 118px);
  line-height: 1.02; letter-spacing: -.01em;
  color: var(--bone);
}
.hero__sub {
  margin-top: 30px; max-width: 560px;
  color: rgba(241,237,230,.82); font-size: 15px; letter-spacing: .02em;
}
.hero__scroll {
  position: absolute; right: 48px; bottom: 40px;
  color: rgba(241,237,230,.65);
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: rgba(241,237,230,.4); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink); color: var(--bone);
  overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.marquee__track {
  display: flex; gap: 44px; width: max-content; white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.marquee__track span { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.marquee__track i { font-style: normal; font-size: 8px; opacity: .5; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { padding: 20vh 48px; background: var(--paper); }
.statement__inner { max-width: 1180px; margin: 0 auto; }
.statement__text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.28; letter-spacing: -.005em; max-width: 1020px;
}
.statement__text em { color: var(--stone); }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps { padding: 0 48px 18vh; background: var(--paper); }
.caps__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.caps__col { padding: 40px 32px 0 0; border-right: 1px solid var(--line); }
.caps__col:last-child { border-right: none; }
.caps__num { font-family: var(--serif); font-size: 15px; color: var(--stone); margin-bottom: 48px; }
.caps__col h4 {
  font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 16px;
}
.caps__col p { font-size: 14px; color: #4d463c; max-width: 240px; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { padding: 0 48px 16vh; background: var(--paper); }
.products__head { max-width: 1180px; margin: 0 auto 56px; }
.products__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5vw, 72px); line-height: 1.05;
}
.products__group { max-width: 1180px; margin: 72px auto 28px; display: flex; align-items: center; gap: 24px; }
.products__label {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--stone);
  white-space: nowrap;
}
.products__group::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.pgrid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px;
}
.pgrid--knit { grid-template-columns: repeat(3, 1fr); }
.pcard__img { overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.pcard__img img { transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard figcaption {
  margin-top: 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); display: flex; justify-content: space-between;
}
.pcard figcaption::after { content: "·"; color: var(--stone); }
.pnote {
  display: flex; align-items: flex-end; padding-bottom: 8px;
}
.pnote p {
  font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.4;
  color: var(--ink); max-width: 340px;
}
.pnote em { color: var(--stone); }

/* ============================================================
   SPEED (dark section)
   ============================================================ */
.speed { position: relative; padding: 20vh 48px; overflow: hidden; }
.speed__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.speed__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,13,9,.92) 0%, rgba(15,13,9,.78) 46%, rgba(15,13,9,.30) 100%); }
.speed__content { position: relative; max-width: 1180px; margin: 0 auto; color: var(--bone); }
.speed__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 6vw, 88px); line-height: 1.02;
}
.speed__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 280px)); gap: 56px;
  margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line-l);
}
.stat__num { font-family: var(--serif); font-size: clamp(52px, 5vw, 76px); line-height: 1; font-weight: 300; }
.stat__unit { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(241,237,230,.55); margin-left: 10px; }
.stat p { margin-top: 14px; font-size: 13.5px; color: rgba(241,237,230,.75); max-width: 260px; }
.speed__foot { margin-top: 72px; max-width: 560px; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: rgba(241,237,230,.9); }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  max-width: 1180px; margin: 0 auto; padding: 18vh 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.process__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); position: sticky; top: 12vh; }
.process__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; margin-bottom: 56px;
}
.steps { list-style: none; }
.steps li {
  display: flex; gap: 32px; padding: 30px 0;
  border-top: 1px solid var(--line);
}
.steps li span { font-family: var(--serif); font-size: 15px; color: var(--stone); min-width: 34px; }
.steps h4 { font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.steps p { font-size: 14px; color: #4d463c; max-width: 380px; }

/* ============================================================
   SUSTAINABILITY
   ============================================================ */
.sus { padding: 16vh 48px; background: var(--bone); border-top: 1px solid var(--line); }
.sus__head { max-width: 1180px; margin: 0 auto 72px; }
.sus__title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
.sus__lead { margin-top: 28px; max-width: 560px; font-size: 15px; color: #4d463c; }
.sus__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start;
}
.sus__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.certs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.certs li {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.certs li:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 28px; }
.certs li:nth-child(even) { padding-left: 28px; }
.certs strong { font-weight: 500; font-size: 14px; letter-spacing: .22em; }
.certs span { font-size: 12.5px; color: var(--stone); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--bone); padding: 22vh 48px; }
.contact__inner { max-width: 1180px; margin: 0 auto; }
.contact__title { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 8vw, 116px); line-height: 1.02; }
.contact__sub { margin-top: 34px; max-width: 480px; color: rgba(241,237,230,.72); font-size: 15px; }
.contact__row { margin-top: 56px; display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 16px 36px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--line-l);
  transition: background .4s, color .4s;
}
.btn--light:hover { background: var(--bone); color: var(--ink); }
.link-arrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  border-bottom: 1px solid rgba(241,237,230,.4); padding-bottom: 5px;
  transition: border-color .4s;
}
.link-arrow:hover { border-color: var(--bone); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(241,237,230,.5); border-top: 1px solid var(--line-l); padding: 28px 48px; }
.footer__inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { font-size: 12px; letter-spacing: .3em; color: var(--bone); }
.footer__meta { font-size: 11.5px; letter-spacing: .06em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .caps__grid { grid-template-columns: 1fr 1fr; }
  .caps__col { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .pgrid, .pgrid--knit { grid-template-columns: repeat(2, 1fr); }
  .speed__stats { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr; }
  .process__img { position: static; aspect-ratio: 16 / 10; }
  .sus__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { padding: 18px 24px; }
  .nav.is-solid { padding: 14px 24px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; mix-blend-mode: difference; padding: 6px;
  }
  .nav__burger span { width: 26px; height: 1px; background: var(--bone); display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: 32px 24px; gap: 22px; mix-blend-mode: normal;
  }
  .statement, .caps, .products, .speed, .process, .sus, .contact { padding-left: 24px; padding-right: 24px; }
  .statement { padding-top: 12vh; padding-bottom: 12vh; }
  .caps { padding-bottom: 10vh; }
  .products { padding-bottom: 10vh; }
  .speed { padding: 14vh 24px; }
  .process { padding: 10vh 24px; }
  .sus { padding: 10vh 24px; }
  .contact { padding: 14vh 24px; }
  .hero__content { padding: 0 24px 10vh; }
  .hero__scroll { display: none; }
  .pgrid, .pgrid--knit { grid-template-columns: 1fr; gap: 36px; }
  .pnote { order: -1; }
  .certs { grid-template-columns: 1fr; }
  .certs li:nth-child(odd) { border-right: none; padding-right: 0; }
  .certs li:nth-child(even) { padding-left: 0; }
}
