/* ============================================================
   RUGS DE INDISKA - Commission
   Page-specific styles. Reuses shared design tokens, header,
   loader, CTA, footer, reveal and parallax behavior.
   ============================================================ */

.commission-hero{
  position:relative;
  min-height:clamp(390px, 46vw, 560px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
  background:var(--sand);
}
.commission-hero__media{
  position:absolute;
  inset:-10% 0;
  will-change:transform;
}
.commission-hero__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 52%;
  animation:commissionHeroIn 2.2s var(--ease) both;
}
@keyframes commissionHeroIn{ from{ transform:scale(1.08); } to{ transform:none; } }
.commission-hero__scrim{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(12,8,5,.76) 0%, rgba(12,8,5,.42) 44%, rgba(12,8,5,.12) 100%),
    linear-gradient(180deg, rgba(12,8,5,.5) 0%, rgba(12,8,5,.08) 48%, rgba(12,8,5,.28) 100%);
}
.commission-hero__inner{
  position:relative;
  z-index:2;
  padding-block:clamp(58px, 6vw, 88px);
}
.commission-hero__eyebrow{
  font-size:10px;
  margin-bottom:14px;
  opacity:0;
  animation:commissionUp .9s var(--ease) .16s forwards;
}
.commission-hero__title{
  max-width:1180px;
  font-family:var(--ff-display);
  font-weight:300;
  font-size:clamp(42px, 5.2vw, 72px);
  line-height:1.04;
  margin-bottom:12px;
  text-shadow:0 2px 34px rgba(0,0,0,.34);
  opacity:0;
  animation:commissionUp 1s var(--ease) .3s forwards;
}
.commission-hero__copy{
  max-width:86ch;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.84);
  opacity:0;
  animation:commissionUp 1s var(--ease) .46s forwards;
}
@keyframes commissionUp{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:none; }
}
.has-loader:not(.loaded) .commission-hero__media img,
.has-loader:not(.loaded) .commission-hero__eyebrow,
.has-loader:not(.loaded) .commission-hero__title,
.has-loader:not(.loaded) .commission-hero__copy{ animation-play-state:paused; }

.commission-copy{
  max-width:56ch;
  color:var(--ink-soft);
  font-size:14px;
  line-height:1.85;
}
.commission-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:17px 42px;
  background:var(--navy);
  color:#fff;
  font-size:9.5px;
  font-weight:500;
  letter-spacing:.24em;
  text-transform:uppercase;
  transition:background-color .45s var(--ease), transform .45s var(--ease);
}
.commission-btn svg{
  width:22px;
  height:11px;
  transition:transform .5s var(--ease);
}
.commission-btn:hover{ background:var(--navy-2); transform:translateY(-2px); }
.commission-btn:hover svg{ transform:translateX(6px); }

/* ============================================================
   CONSULTATION
   ============================================================ */
.consultation{ padding-block:clamp(80px, 9vw, 132px); }
.consultation__grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  align-items:center;
  gap:clamp(48px, 6vw, 88px);
}
.consultation__text .h2{ white-space:nowrap; }
.consultation__text .h2{ margin-bottom:34px; }
.consultation__text .commission-copy + .commission-copy{ margin-top:24px; }
.consultation__quote{
  border-left:2px solid var(--gold);
  padding-left:22px;
  margin-top:38px;
  max-width:46ch;
  font-family:var(--ff-display);
  font-style:italic;
  font-size:clamp(18px, 1.65vw, 23px);
  line-height:1.58;
  color:var(--ink-soft);
}
.consultation__media{
  position:relative;
  overflow:visible;
}

.consultation__media img{
  width:100%;
  aspect-ratio:1039 / 818;
  object-fit:cover;
}

/* ============================================================
   DEVELOPMENT
   ============================================================ */
.development{
  background:var(--cream);
  padding-block:clamp(78px, 9vw, 132px);
}
.development__head{
  max-width:980px;
  margin-bottom:clamp(48px, 6vw, 76px);
}
.development__head .eyebrow{ margin-bottom:18px; }
.development__head .h2{ margin-bottom:26px; }
.development__head p{
  max-width:82ch;
  font-size:14px;
  line-height:1.8;
  color:var(--ink-soft);
}
.development__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:clamp(30px, 5vw, 74px);
  align-items:start;
}
.process-card--lower{ margin-top:clamp(68px, 7vw, 104px); }
.process-card figure{
  overflow:hidden;
  background:var(--sand);
  margin-bottom:28px;
}
.process-card img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  transition:transform 1.4s var(--ease);
}
.process-card:hover img{ transform:scale(1.045); }
.process-card h3{
  font-family:var(--ff-display);
  font-weight:400;
  font-size:clamp(29px, 3vw, 43px);
  line-height:1.16;
  margin-bottom:18px;
}
.process-card p{
  max-width:39ch;
  font-size:13px;
  line-height:1.76;
  color:var(--ink-soft);
}

/* ============================================================
   MATERIALS
   ============================================================ */
.materials{ padding-block:clamp(82px, 9vw, 132px); }
.materials__grid{
  display:grid;
  grid-template-columns:.78fr 1.22fr;
  align-items:center;
  gap:clamp(54px, 8vw, 116px);
}
.materials__text .h2{ margin-bottom:30px; }
.material-list{
  margin-top:42px;
  max-width:480px;
}
.material-list div{
  border-bottom:1px solid var(--hair);
  padding-bottom:22px;
}
.material-list div + div{ padding-top:24px; }
.material-list dt{
  font-size:9px;
  font-weight:500;
  letter-spacing:.25em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:8px;
}
.material-list dd{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:var(--ink-soft);
}
.materials__media{
  position:relative;
  overflow:visible;
}
.materials__media img{
  width:100%;
  aspect-ratio:993 / 877;
  object-fit:cover;
  background:var(--sand);
}
.materials__media figcaption{
  position:absolute;
  right:32px;
  bottom:30px;
  width:min(360px, 54%);
  background:var(--cream);
  padding:28px 34px;
  font-family:var(--ff-display);
  font-style:italic;
  font-size:clamp(18px, 1.7vw, 24px);
  line-height:1.55;
  color:var(--gold);
  box-shadow:0 20px 48px -36px rgba(36,26,18,.45);
}

/* ============================================================
   LEGACY
   ============================================================ */
.legacy{
  position:relative;
  overflow:hidden;
  background:var(--cream);
  padding-block:clamp(76px, 8vw, 118px);
  text-align:center;
}
.legacy::before{
  content:"";
  position:absolute;
  inset:clamp(0px, 0vw, 0px);
  background:url("/images/pattern.avif") center / contain no-repeat;
  mix-blend-mode:multiply;
  pointer-events:none;
}
.legacy__mark{
  display:none;
}
.legacy__mark::before,
.legacy__mark::after{
  content:"";
  position:absolute;
  inset:30px;
  border:1px solid rgba(176,141,79,.055);
}
.legacy__mark::after{ inset:60px; }
.legacy__inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.legacy h2{
  font-family:var(--ff-display);
  font-weight:400;
  font-size:clamp(38px, 4.2vw, 58px);
  line-height:1.16;
  margin-bottom:24px;
}
.legacy p{
  max-width:70ch;
  color:var(--ink-soft);
  font-size:14px;
  line-height:1.85;
  margin-bottom:34px;
}

@media (max-width:1180px){
  .consultation__grid,
  .materials__grid{ gap:52px; }
}

@media (max-width:960px){
  .consultation__grid,
  .materials__grid{ grid-template-columns:1fr; }
  .consultation__media{ order:-1; }
  .consultation__text .h2{ white-space:normal; }
  .development__grid{ gap:32px; }
  .process-card--lower{ margin-top:42px; }
}

@media (max-width:720px){
  .commission-hero{ min-height:clamp(410px, 74vh, 560px); }
  .commission-hero__title{ max-width:11ch; }
  .commission-hero__copy{ max-width:34ch; }
  .consultation__media::after{ display:none; }
  .development__grid{ grid-template-columns:1fr; }
  .process-card--lower{ margin-top:0; }
  .materials__media figcaption{
    position:relative;
    right:auto;
    bottom:auto;
    width:calc(100% - 32px);
    margin:-28px auto 0;
  }
  .commission-btn{ width:100%; max-width:340px; }
}

@media (prefers-reduced-motion:reduce){
  .commission-hero__media img,
  .commission-hero__eyebrow,
  .commission-hero__title,
  .commission-hero__copy{ animation:none; opacity:1; transform:none; }
}
