/* ============================================================
   Ariel Fashion — single-page corporate site
   Palette: ivory paper / slate blue / ink  ·  Playfair + Manrope
   ============================================================ */

:root {
  --ivory: #F7F4EF;
  --tint: #EFEAE2;
  --paper: #FFFFFF;
  --ink: #23272F;
  --ink-soft: #4A4F59;
  --muted: #7A7E87;
  --slate: #5B6679;
  --slate-deep: #424B5B;
  --slate-ink: #333B49;
  --sand: #C9BBA4;
  --line: rgba(35, 39, 47, 0.14);
  --line-light: rgba(247, 244, 239, 0.18);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'PingFang SC', 'Helvetica Neue', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 84px; }

::selection { background: var(--slate); color: var(--ivory); }

.wrap { width: min(1200px, 92%); margin: 0 auto; }

/* film grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--slate); transition: width .1s linear; }

/* ---------- type ---------- */
h1, h2, h3, .h2 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

.h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

.h2 .mark, .contact__title .dot, .sus .dot { color: var(--slate); }
.section--dark .h2 .mark, .section--dark .dot { color: var(--sand); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 26px;
}
.eyebrow i { display: inline-block; width: 34px; height: 1px; background: var(--slate); flex: none; }
.eyebrow--light { color: var(--sand); }
.eyebrow--light i { background: var(--sand); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid transparent; cursor: pointer;
  transition: all .35s var(--ease);
}
.btn__arrow { transition: transform .35s var(--ease); font-size: 1em; }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--solid { background: var(--slate); color: var(--ivory); }
.btn--solid:hover { background: var(--slate-deep); }

.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--line { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn--line:hover { background: var(--slate); color: var(--ivory); }

.btn--block { width: 100%; justify-content: center; }

.link-underline {
  position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 4px; color: var(--slate);
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(.35); }
.link-underline--light { color: var(--ivory); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: min(1280px, 94%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}

.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong {
  font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: .02em; color: var(--ivory);
  transition: color .4s var(--ease);
}
.brand__text em {
  font-style: normal; font-size: .6rem; letter-spacing: .58em; text-transform: uppercase;
  color: rgba(247, 244, 239, .72); margin-top: 6px; padding-left: 3px;
  transition: color .4s var(--ease);
}

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(247, 244, 239, .85); position: relative; padding: 6px 0;
  transition: color .4s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: currentColor;
  transition: width .35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 12px 22px; background: transparent; border-color: rgba(247,244,239,.5); color: var(--ivory); }
.nav__cta:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* scrolled state */
.nav.scrolled { background: rgba(247, 244, 239, .92); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav.scrolled .brand__text strong { color: var(--ink); }
.nav.scrolled .brand__text em { color: var(--slate); }
.nav.scrolled .nav__links a { color: var(--ink-soft); }
.nav.scrolled .nav__cta { border-color: var(--slate); color: var(--slate); background: transparent; }
.nav.scrolled .nav__cta:hover { background: var(--slate); color: var(--ivory); }

/* burger + mobile menu */
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; z-index: 96; }
.burger span {
  display: block; width: 24px; height: 2px; background: var(--ivory); margin: 5px auto;
  transition: transform .35s var(--ease), opacity .35s, background .4s var(--ease);
}
.nav.scrolled .burger span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--slate-deep);
  display: flex; flex-direction: column; justify-content: center; padding: 0 10%;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__list { display: flex; flex-direction: column; gap: 8px; }
.menu__list a {
  font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--ivory);
  display: flex; align-items: baseline; gap: 18px; padding: 8px 0;
  transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.menu.open .menu__list a { transform: none; opacity: 1; }
.menu__list a i { font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .2em; color: var(--sand); }
.menu__foot { margin-top: 40px; display: flex; gap: 24px; color: rgba(247,244,239,.65); font-size: .85rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--slate-ink); color: var(--ivory);
  padding: 170px 0 0; overflow: hidden;
}
.hero__inner {
  width: min(1280px, 94%); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero__title { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: 28px; }
.hero__title span { display: block; }
.hero__title em { font-style: italic; color: var(--sand); }
.hero__desc { max-width: 46ch; color: rgba(247, 244, 239, .78); margin-bottom: 38px; }
.hero__actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__media img { width: 100%; height: min(620px, 72vh); object-fit: cover; object-position: center 18%; }
.hero__media::after {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(247,244,239,.35); pointer-events: none;
}

.hero__stats {
  width: min(1280px, 94%); margin: 70px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light); position: relative; z-index: 2;
  background: var(--slate-ink);
}
.stat { padding: 30px 8px 34px; text-align: center; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: 0; }
.stat strong { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 500; color: var(--ivory); display: block; }
.stat span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,244,239,.6); }

/* ---------- clients marquee ---------- */
.clients { background: var(--slate-ink); padding: 0 0 54px; }
.clients__label {
  text-align: center; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(247,244,239,.45); margin-bottom: 22px;
}
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scroll 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--serif); font-size: 1.25rem; color: rgba(247,244,239,.55); white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- generic section ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--slate-deep); color: var(--ivory); }

.section__head { margin-bottom: 56px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__intro { color: var(--ink-soft); max-width: 52ch; }
.section--dark .section__intro { color: rgba(247,244,239,.75); }
.section__head--row .section__intro { max-width: 44ch; font-size: .95rem; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; }
.about__figure { margin-top: 46px; position: relative; }
.about__figure img { width: 100%; height: 420px; object-fit: cover; object-position: center 30%; }
.about__figure figcaption {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 14px;
}
.about__body p { color: var(--ink-soft); margin-bottom: 22px; }
.about__body p strong { color: var(--ink); }

.about__badges { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.badge {
  border: 1px solid var(--line); padding: 14px 22px; display: flex; flex-direction: column; gap: 2px;
  background: var(--paper);
}
.badge strong { font-family: var(--serif); font-size: 1.05rem; color: var(--slate); }
.badge span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- ranges ---------- */
.ranges__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.range { margin: 0; }
.range img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; filter: saturate(.92); transition: transform .6s var(--ease), filter .6s; }
.range { overflow: hidden; }
.range:hover img { transform: scale(1.045); filter: saturate(1.02); }
.range figcaption {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  padding: 14px 2px 0; border-top: 1px solid var(--line); margin-top: 0;
}
.range figcaption { margin-top: -1px; padding-top: 14px; }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.caps__media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.caps__figure img { width: 100%; object-fit: cover; }
.caps__figure:first-child img { aspect-ratio: 4 / 5; margin-top: 40px; }
.caps__figure--tall img { aspect-ratio: 3 / 4.4; }

.caps__list .h2 { margin-bottom: 40px; }
.cap { display: flex; gap: 26px; padding: 26px 0; border-top: 1px solid var(--line); }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap__no { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--slate); flex: none; padding-top: 2px; }
.cap h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cap p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- sustainability ---------- */
.sus { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.sus__head .h2 { margin-bottom: 22px; }
.sus__desc { color: rgba(247,244,239,.75); max-width: 40ch; }
.sus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-content: start; }
.sus__item { padding: 26px 0; border-top: 1px solid var(--line-light); }
.sus__no { font-family: var(--serif); font-style: italic; color: var(--sand); display: block; margin-bottom: 10px; }
.sus__item h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ivory); }
.sus__item p { font-size: .92rem; color: rgba(247,244,239,.68); }
.sus__figure { grid-column: 1 / -1; margin: 0; }
.sus__figure img { width: 100%; height: 300px; object-fit: cover; }
.sus__figure figcaption { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,244,239,.5); margin-top: 12px; }

/* ---------- factories ---------- */
.fac__hero { margin-bottom: 26px; }
.fac__hero img { width: 100%; height: min(480px, 58vh); object-fit: cover; object-position: center 65%; }

.fac__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fac { background: var(--paper); border: 1px solid var(--line); }
.fac__media { overflow: hidden; }
.fac__media img { width: 100%; height: 250px; object-fit: cover; transition: transform .7s var(--ease); }
.fac:hover .fac__media img { transform: scale(1.05); }
.fac__body { padding: 30px 32px 34px; }
.fac__country {
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--slate); font-weight: 600;
  display: block; margin-bottom: 12px;
}
.fac h3 { font-size: 1.35rem; margin-bottom: 12px; }
.fac p { font-size: .93rem; color: var(--ink-soft); }
.fac p strong { color: var(--ink); }

.fac__facts { display: flex; gap: 0; list-style: none; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.fac__facts li { flex: 1; }
.fac__facts li + li { border-left: 1px solid var(--line); padding-left: 18px; }
.fac__facts strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--slate); display: block; }
.fac__facts span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- brand ---------- */
.brand__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.brand__figure { position: relative; }
.brand__figure img { width: 100%; height: min(600px, 76vh); object-fit: cover; object-position: center 20%; }
.brand__figure::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(247,244,239,.4); pointer-events: none; }
.brand__body p { color: var(--ink-soft); margin-bottom: 18px; max-width: 54ch; }
.brand__logo { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-bottom: 26px; }
.brand__logo em { font-style: italic; color: var(--slate); }
.brand__body .btn { margin-top: 16px; }

/* ---------- contact ---------- */
.contact { background: var(--slate-ink); color: var(--ivory); }
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; }
.contact__title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 24px; }
.contact__desc { color: rgba(247,244,239,.75); max-width: 46ch; margin-bottom: 44px; }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.office { border-top: 1px solid var(--line-light); padding-top: 22px; }
.office h3 { font-size: 1.3rem; margin-bottom: 12px; }
.office h3 span { font-family: var(--sans); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); display: block; margin-top: 4px; }
.office p { font-size: .88rem; color: rgba(247,244,239,.65); margin-bottom: 14px; }
.office a { display: block; font-size: .88rem; color: rgba(247,244,239,.85); margin-top: 4px; }
.office a:hover { color: var(--sand); }

/* form */
.form .field { margin-bottom: 20px; }
.form label { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,244,239,.6); margin-bottom: 8px; }
.form label i { color: var(--sand); font-style: normal; }
.form input, .form textarea {
  width: 100%; background: transparent; border: 1px solid var(--line-light); color: var(--ivory);
  padding: 14px 16px; font-family: var(--sans); font-size: .95rem; transition: border-color .3s;
  border-radius: 0;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(247,244,239,.35); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sand); }
.form textarea { resize: vertical; }
.form__note { font-size: .75rem; color: rgba(247,244,239,.45); margin-top: 14px; }
.form__success {
  margin-top: 20px; padding: 18px 22px; border: 1px solid var(--sand); color: var(--sand);
  font-size: .9rem; letter-spacing: .04em;
}

/* ---------- footer ---------- */
.footer { background: #2C333F; color: rgba(247,244,239,.75); }
.footer__inner { display: flex; justify-content: space-between; gap: 60px; padding: 70px 0 50px; flex-wrap: wrap; }
.brand__text--light strong { color: var(--ivory); font-size: 1.5rem; }
.brand__text--light em { color: rgba(247,244,239,.6); }
.footer__brand p { margin-top: 18px; font-size: .85rem; line-height: 1.8; }

.footer__cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: .85rem; }
.footer__k { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); margin-bottom: 6px; }
.footer__col a:hover { color: var(--ivory); }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line-light); padding: 22px 0; font-size: .75rem; color: rgba(247,244,239,.45);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }
.reveal[data-d="5"] { transition-delay: .5s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media img { height: 56vh; }
  .about__grid, .caps, .sus, .brand__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .ranges__grid { grid-template-columns: repeat(3, 1fr); }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line-light); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .section { padding: 76px 0; }
  .hero { padding-top: 130px; }
  .ranges__grid { grid-template-columns: repeat(2, 1fr); }
  .fac__grid { grid-template-columns: 1fr; }
  .sus__grid { grid-template-columns: 1fr; }
  .caps__media { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; gap: 40px; }
}
