/* ==========================================================
   AuraWear — brand identity case study
   Same structural system as sarthi.css / thresca.css. Row layout for
   "Identity in action" matches Sarthi's 3+2+2 pattern (7 real images),
   not Thresca's simpler 3+1 (only 4 images were available there).

   Font: Aquire, self-hosted below as three static weights (Light 300,
   Regular 400, Bold 700), used ONLY in the type-weight slider demo
   (.aw-sample-text / .aw-aa) — that's the one place the supplied font
   files were meant for. It is not a variable font, so the slider snaps
   between the three loaded weights rather than interpolating. Every
   other headline on the page keeps the site's existing display font,
   referenced via --font-display-alt below (General Sans, the same
   stand-in Sarthi/Thresca use).
   ========================================================== */

@font-face { font-family: "Aquire"; src: url("Aquire_Light_300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Aquire"; src: url("Aquire_400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Aquire"; src: url("Aquire_Bold_700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --sw: 1118px;
  --font-display-alt: "General Sans", var(--font-display);
  --aw-navy: #294B7A;
  --aw-green: #00E394;
  --aw-void: #0C1C33;
  --aw-plum: #200149;
  --aw-sand: #ECE6D6;
}

.aw { background: var(--bg-page); }
.aw-wrap { max-width: var(--sw); margin: 0 auto; padding: 0 20px; }

.aw-cap { font: 500 16px/1.4 var(--font-body); color: var(--text-secondary); }
.aw-back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-secondary); margin-bottom: 28px; transition: color .2s; }
.aw-back:hover { color: var(--aw-navy); }
.aw-back svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.aw-hero { padding: 44px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 40px; align-items: start; }
.aw-title { font: 700 clamp(2.4rem, 6.2vw, 60px)/1.08 var(--font-display-alt); letter-spacing: -0.02em; color: var(--bottle-900); margin-top: 6px; }
.aw-title .ch { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; vertical-align: bottom; }
.aw-title .ch > i { display: block; font-style: normal; transform: translate3d(0, 108%, 0); }
.js.is-loaded .aw-title .ch > i { transform: none; transition: transform 1s var(--ease-out) calc(var(--i) * 28ms); }
.aw-title .word { display: inline-block; white-space: nowrap; }
.aw-sub { font: 500 16px/1.5 var(--font-body); color: var(--text-secondary); margin-top: 14px; max-width: 60ch; }
.aw-divider { width: 100%; max-width: 558px; height: 2px; background: var(--border-subtle); margin: 28px 0; border: 0; }
.aw-facts { display: flex; flex-wrap: wrap; gap: 36px; }
.aw-fact dt { font: 500 16px/1.3 var(--font-body); color: var(--text-secondary); margin-bottom: 6px; }
.aw-fact dd { font: 400 14px/1.5 var(--font-body); margin: 0; max-width: 22ch; }

/* aspect-ratio 1/1 matches the real 501x501 source PNG exactly — object-fit:cover below
   fills the box with zero cropping and zero stretching. */
.aw-logocard { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1; border-radius: 24px; background: var(--bg-raised); box-shadow: var(--shadow-sm); overflow: hidden; }
.aw-logocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Context: three wearable-type tiles ---------- */
.aw-context { padding: 88px 0 88px; display: grid; grid-template-columns: minmax(0, 1fr) 610px; gap: 40px; align-items: center; }
.aw-context > div:first-child { align-self: center; }
.aw-context h2 { font: 700 32px/1.2 var(--font-display-alt); letter-spacing: -0.01em; color: var(--bottle-900); margin-top: 10px; }
.aw-context p { font: 500 16px/1.6 var(--font-body); color: var(--text-secondary); margin-top: 16px; max-width: 56ch; }
.aw-devices { width: 610px; height: 350px; max-width: 100%; box-sizing: border-box; border-radius: 24px; background: var(--bg-raised); box-shadow: var(--shadow-sm); padding: 36px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: center; }
.aw-device { text-align: center; }
.aw-device img { width: 40px; height: 40px; margin: 0 auto; }
.aw-device b { display: block; margin-top: 14px; font: 600 14px/1.3 var(--font-body); color: var(--bottle-900); }
.aw-device span { display: block; margin-top: 6px; font: 400 12px/1.4 var(--font-body); color: var(--text-secondary); }

/* ---------- Process cards (same color system as sarthi.css / thresca.css) ---------- */
.aw-process { padding: 0 0 0; }
.aw-pcard {
  position: sticky; top: calc(84px + var(--n, 0) * 18px); transform-origin: 50% 0; will-change: transform;
  width: 100%; min-height: 266px; border-radius: 24px; padding: clamp(24px, 4vw, 44px); margin-bottom: 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 40px); align-items: center;
  box-shadow: 0 -10px 28px rgb(0 50 35 / 0.10);
}
.aw-pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: calc(var(--dim, 0) * 0.16); pointer-events: none; }
.aw-pcard__no { font: 700 60px/1 var(--font-display-alt); letter-spacing: -0.02em; opacity: .9; }
.aw-pcard__body h3 { font: 600 32px/1.2 var(--font-display-alt); letter-spacing: -0.01em; }
.aw-pcard__body p { font: 400 16px/1.5 var(--font-body); margin-top: 8px; opacity: .88; max-width: 60ch; }
.aw-pcard__body ul { margin-top: 12px; display: grid; gap: 6px; }
.aw-pcard__body li { font: 400 16px/1.5 var(--font-body); opacity: .88; display: flex; gap: 10px; }
.aw-pcard__body li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; margin-top: 9px; opacity: .7; }
.aw-pcard__icon { width: 71px; height: 71px; flex: none; display: grid; place-items: center; }
.aw-pcard__icon img { width: 71px; height: 71px; object-fit: contain; }
.aw-pcard--1 { background: var(--bg-raised); color: var(--bottle-900); }
.aw-pcard--2 { background: var(--bg-inverse); color: var(--sand-100); }
.aw-pcard--3 { background: var(--salad-400); color: var(--bottle-900); }
.aw-pcard--4 { background: var(--red-100); color: var(--bottle-900); }
@media (max-width: 760px) {
  .aw-pcard { grid-template-columns: 1fr; text-align: left; }
  .aw-pcard__icon { order: -1; }
}

/* ---------- Mark ---------- */
.aw-mark { padding: 88px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 48px; align-items: center; }
.aw-mark h2 { font: 700 40px/1.15 var(--font-display-alt); letter-spacing: -0.02em; color: var(--bottle-900); margin-top: 10px; }
.aw-mark > div > p.aw-lede { font: 400 16px/1.6 var(--font-body); color: var(--text-secondary); margin-top: 14px; max-width: 54ch; }
.aw-marknotes { margin-top: 26px; display: grid; gap: 0; }
.aw-marknotes > div { padding: 16px 0; border-top: 1.5px solid var(--aw-green); }
.aw-marknotes > div:first-child { border-top: 1.5px solid var(--aw-green); }
.aw-marknotes dt { font: 500 16px/1.4 var(--font-body); }
.aw-marknotes dd { font: 500 16px/1.5 var(--font-body); color: var(--text-secondary); margin: 4px 0 0; }
.aw-markart { position: relative; width: 100%; max-width: 450px; aspect-ratio: 1; border-radius: 24px; background: var(--bg-raised); box-shadow: var(--shadow-sm); overflow: hidden; display: grid; place-items: center; }
.aw-markart img { max-width: 60%; max-height: 60%; object-fit: contain; }

/* ---------- Colour palette: click a swatch to expand, click the chip to copy ---------- */
.aw-palette { padding: 88px 0 0; }
.aw-palette h2 { font: 700 32px/1.2 var(--font-display-alt); letter-spacing: -0.01em; color: var(--bottle-900); margin-top: 10px; }
.aw-swatches { display: flex; gap: 10px; height: 280px; margin-top: 28px; }
.aw-sw {
  position: relative; flex: 1 1 0; min-width: 0; border: 0; border-radius: 24px; padding: 20px; text-align: left; cursor: pointer; overflow: hidden;
  background: var(--c); color: var(--t, #fff); display: flex; flex-direction: column; justify-content: flex-end; font: inherit;
  transition: flex-grow .7s var(--ease-out);
}
.aw-sw[aria-expanded="true"] { flex-grow: 3.6; }
.aw-sw b { font: 700 1.1rem/1.1 var(--font-display-alt); white-space: nowrap; }
.aw-sw__more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease-out), opacity .5s ease; font: 500 .95rem/1.4 var(--font-body); }
.aw-sw[aria-expanded="true"] .aw-sw__more { max-height: 120px; opacity: 1; transition-delay: 0s, .15s; }
.aw-sw__more span { display: block; }
.aw-sw__chip { display: inline-block; margin-top: 10px; padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 999px; font: 600 12px/1.4 var(--font-body); cursor: pointer; }
.aw-sw__toast { position: absolute; top: 16px; right: 16px; font: 600 12px/1 var(--font-body); padding: 6px 10px; border-radius: 999px; background: rgb(0 0 0 / .25); opacity: 0; transform: translate3d(0, -6px, 0); transition: opacity .3s, transform .3s; }
.aw-sw__toast.on { opacity: 1; transform: none; }
@media (max-width: 620px) {
  .aw-swatches { flex-direction: column; height: auto; }
  .aw-sw { flex: none; min-height: 76px; transition: min-height .7s var(--ease-out); }
  .aw-sw[aria-expanded="true"] { min-height: 230px; flex-grow: 0; }
}

/* ---------- Type: a live weight slider across the three loaded Aquire weights ---------- */
.aw-type-section { padding: 88px 0 0; }
.aw-type-section h2 { font: 700 32px/1.2 var(--font-display-alt); letter-spacing: -0.01em; color: var(--bottle-900); margin-top: 10px; }
.aw-type { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 64px); align-items: center; margin-top: 32px; }
.aw-slider { display: grid; gap: 8px; }
.aw-slider label { font: 500 14px/1 var(--font-body); color: var(--text-secondary); display: flex; justify-content: space-between; }
.aw-slider input { width: 100%; accent-color: var(--aw-green); height: 28px; }
.aw-sample-text { font: 600 clamp(1.4rem, 3vw, 2.1rem)/1.2 "Aquire", var(--font-display); font-weight: var(--w, 700); letter-spacing: -0.02em; margin-top: 22px; padding: 14px 16px; border: 1.5px dashed var(--border-subtle); border-radius: 16px; }
.aw-scale { margin-top: 22px; display: grid; gap: 10px; }
.aw-scale div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--border-subtle); padding-top: 10px; }
.aw-scale span { font: 500 14px/1.4 var(--font-body); }
.aw-scale small { font: 500 12px/1 var(--font-body); color: var(--text-secondary); }
.aw-aa { font-family: "Aquire", var(--font-display); font-size: clamp(6rem, 18vw, 13rem); line-height: .9; letter-spacing: -0.05em; font-weight: var(--w, 700); color: var(--aw-navy); text-align: center; transition: font-weight .15s linear; }
.aw-type-note { margin-top: 26px; font: 500 14px/1.5 var(--font-body); color: var(--warning-text); background: var(--warning-bg); display: inline-block; padding: 8px 14px; border-radius: 10px; }
@media (max-width: 760px) {
  .aw-type { grid-template-columns: 1fr; }
  .aw-aa { font-size: clamp(5rem, 24vw, 9rem); margin-top: 20px; }
}

/* ---------- Complete Visual Identity: autoplaying logo-loop + Apple-style player ---------- */
.aw-identity { padding: 88px 0 0; }
.aw-identity h2 { font: 600 32px/1.2 var(--font-display-alt); letter-spacing: -0.01em; color: var(--bottle-900); }
.aw-switcher { position: relative; margin-top: 32px; border-radius: 24px; background: var(--bg-raised); box-shadow: var(--shadow-sm); padding: clamp(20px, 5vw, 48px); }
.aw-stage { position: relative; height: clamp(220px, 34vw, 340px); }
.aw-frame {
  position: absolute; inset: 20px;
  opacity: 0; transform: scale(.97); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); pointer-events: none;
}
.aw-frame.is-active { opacity: 1; transform: scale(1); }
.aw-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.aw-dots { display: none; }
.aw-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-subtle); transition: background-color .4s, transform .4s, width .4s, border-radius .4s; }
.aw-dots i.is-active { width: 28px; border-radius: 999px; background: #181818; transform: none; }

/* ---------- Apple-style animation player ---------- */
.aw-player {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  height: 63px;
  pointer-events: none;
}
.aw-player__reveal {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #D4D4D4;
  box-shadow: 0 2px 10px rgb(0 0 0 / .08);
  cursor: pointer;
  pointer-events: auto;
  transition: width .55s cubic-bezier(.22,1,.36,1), height .55s cubic-bezier(.22,1,.36,1), background-color .25s ease, border-radius .55s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
.aw-player__body {
  width: 0;
  height: 63px;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0F0F0;
  border-radius: 999px;
  pointer-events: none;
  transform: scale(.72);
  transform-origin: right center;
  transition: width .6s cubic-bezier(.22,1,.36,1), opacity .22s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.aw-player__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 225px;
  height: 63px;
  flex: none;
}
.aw-player__track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #BDBDBD;
  transition: width .4s cubic-bezier(.22,1,.36,1), background-color .3s ease;
}
.aw-player__track i.is-active {
  width: 47px;
  border-radius: 999px;
  background: #1A1A1A;
}
.aw-player__pause {
  width: 63px;
  height: 63px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #F0F0F0;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  color: #171717;
  box-shadow: 0 2px 10px rgb(0 0 0 / .04);
  transition: transform .25s ease, background-color .25s ease;
}
.aw-player__pause:hover { background: #E9E9E9; transform: scale(1.04); }
.aw-player__pause:active { transform: scale(.97); }
.aw-player__pause svg { width: 26px; height: 26px; fill: currentColor; }
.aw-player__pause .play { display: none; }
.aw-player.is-expanded .aw-player__body {
  width: 225px;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.aw-player.is-expanded .aw-player__reveal {
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.aw-player.is-paused .aw-player__pause .pause { display: none; }
.aw-player.is-paused .aw-player__pause .play { display: block; }
.aw-player.is-paused .aw-player__track i.is-active { background: #777; }
.aw-player:focus-within .aw-player__body,
.aw-player:hover .aw-player__body { opacity: 1; }
.aw-player__reveal:focus-visible,
.aw-player__pause:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 4px; }

/* ---------- Identity in action ---------- */
.aw-grid { display: grid; gap: 16px; margin-top: 28px; }
.aw-row { display: flex; gap: 16px; width: 100%; }
.aw-row--1 { height: clamp(150px, 22vw, 260px); }
.aw-row--2 { height: clamp(170px, 26vw, 300px); }
.aw-row--3 { height: clamp(190px, 30vw, 340px); }
.aw-row figure { margin: 0; height: 100%; border-radius: 12px; overflow: hidden; background: var(--bg-sunken); flex: 1 1 0; min-width: 0; }
.aw-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .aw-row { flex-wrap: wrap; height: auto !important; }
  .aw-row figure { flex: 1 1 auto; height: clamp(140px, 45vw, 220px); }
}

/* ---------- Next project ---------- */
.aw-next-wrap { padding: 88px 0 64px; }
.aw-next {
  width: 100%; min-height: 215px; border-radius: 24px; background: var(--bg-inverse); color: var(--text-inverse);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 48px);
  text-decoration: none;
}
.aw-next__top { font: 500 22px/1.2 var(--font-body); opacity: .75; }
.aw-next__title { font: 700 clamp(2rem, 7vw, 60px)/1.05 var(--font-display-alt); letter-spacing: -0.02em; margin-top: 8px; }
.aw-next svg { width: clamp(48px, 8vw, 80px); height: clamp(48px, 8vw, 80px); flex: none; transition: transform .35s var(--ease-standard); }
.aw-next:hover svg { transform: translate(8px, -8px); }

/* ---------- Reveal ---------- */
.js [data-sr] { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.js [data-sr].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .aw-hero, .aw-context, .aw-mark { grid-template-columns: 1fr; }
  .aw-logocard, .aw-devices, .aw-markart { max-width: 100%; justify-self: center; }
}
@media (max-width: 560px) {
  .aw-wrap { padding: 0 24px; }
}
@media (max-width: 900px) {
  .aw-context { padding-bottom: 72px; }
}
@media (max-width: 760px) {
  .aw-player { bottom: 14px; height: 54px; gap: 7px; }
  .aw-player__body { height: 54px; }
  .aw-player__track { width: 190px; height: 54px; gap: 6px; }
  .aw-player__track i { width: 5px; height: 5px; }
  .aw-player__track i.is-active { width: 38px; }
  .aw-player__pause { width: 54px; height: 54px; }
  .aw-player__pause svg { width: 24px; height: 24px; }
  .aw-player.is-expanded .aw-player__body { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-sr] { opacity: 1; transform: none; transition: none; }
  .aw-title .ch > i { transform: none !important; transition: none !important; }
  .aw-pcard { position: static; transform: none !important; box-shadow: none; }
  .aw-pcard::after { display: none; }
  .aw-sw { transition: none; }
  .aw-frame { transition: none; }
  .aw-frame.is-active { opacity: 1; transform: none; }
  .aw-player__body, .aw-player__reveal, .aw-player__track i { transition: none; }
}
