/* ============================================================
   auroo.art — /uiux (OurFit case study)
   Page-scoped. Nothing else on the site loads this file.
   Every colour here comes from site.css tokens; the only raw
   hex values are the OURFIT product's own palette, and those
   appear as *content* (swatch chips), never as page chrome.
   ============================================================ */

/* ---------- Shared section furniture ---------- */
.of-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-meta);
  margin-bottom: var(--s-3);
}
.of-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--acid);
  flex: 0 0 auto;
}

.of-lead {
  font-family: var(--f-case);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 58ch;
  margin-top: var(--s-3);
}
.of-lead strong { color: var(--fg); font-weight: 600; }

/* The honesty label. Concept work is worth showing — but a reader must
   never mistake a composite persona for a fielded study. */
.of-disclaimer {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: var(--s-3);
  padding: 0.55rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--fg-meta);
  max-width: 62ch;
}
.of-disclaimer::before { content: '◆'; color: var(--acid); line-height: 1.6; }

/* ---------- 1. The live app (P0) ---------- */
.of-live {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.of-live__copy h2 { margin-bottom: var(--s-2); }

.of-live__hints {
  margin-top: var(--s-3);
  display: grid;
  gap: 0.6rem;
  max-width: 46ch;
}
.of-live__hints li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.of-live__hints li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.6rem;
  color: var(--acid);
}
.of-live__hints b { color: var(--fg); font-weight: 600; }

.of-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--s-4);
}

.of-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--fg);
  transition: transform var(--d-fast) var(--e-spring),
              border-color var(--d-fast) var(--e-out),
              background var(--d-fast) var(--e-out),
              color var(--d-fast) var(--e-out);
}
.of-btn:hover { transform: translateY(-2px); border-color: var(--acid); color: var(--acid); }
.of-btn--solid { background: var(--acid); border-color: var(--acid); color: #000; }
.of-btn--solid:hover { background: #fff; border-color: #fff; color: #000; }

/* ---------- 2. The device ----------
   A CSS iPhone. The hero render directly above is a photoreal 3D phone, so
   this frame is drawn to sit in the same family: titanium bezel, dark screen,
   dynamic island. Logical width never drops below 320px — the app inside is
   responsive, so it simply renders its small-phone layout and no transform
   scaling is needed anywhere. */
.of-device {
  position: relative;
  flex: 0 0 auto;
  width: min(390px, 78vw);
  aspect-ratio: 390 / 844;
  padding: 11px;
  border-radius: 56px;
  background:
    linear-gradient(145deg,
      #4a4d53 0%, #101113 16%, #2a2c30 46%,
      #0c0d0e 78%, #52565c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 2px 1px rgba(255, 255, 255, 0.14) inset,
    0 40px 90px rgba(0, 0, 0, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.6);
}

/* side buttons — volume pair on the left, wake on the right */
.of-device::before,
.of-device::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #3d4045, #16171a);
  pointer-events: none;
}
.of-device::before { left: -3px; top: 21%; height: 13%; }
.of-device::after  { right: -3px; top: 27%; height: 11%; }

.of-device__screen {
  position: relative;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
}

.of-device__app {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a0a0a;
}

/* Sits *under* the iframe. The app paints over it, so it only ever becomes
   visible if the embed is refused — no JS needed to detect that. */
.of-device__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  gap: var(--s-2);
  padding: var(--s-4);
  text-align: center;
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--fg-muted);
}
.of-device__fallback a { color: var(--acid); text-decoration: underline; }

.of-device__island {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 27px;
  border-radius: var(--r-pill);
  background: #000;
  pointer-events: none;
}
.of-device__island::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 50%;
  translate: 0 -50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #1d2733, #05070a 70%);
}

.of-device__caption {
  margin-top: var(--s-3);
  text-align: center;
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-meta);
}

/* the live dot */
.of-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(225, 255, 0, 0.6);
  animation: ofPulse 2.4s var(--e-out) infinite;
}
@keyframes ofPulse {
  70%  { box-shadow: 0 0 0 9px rgba(225, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 255, 0, 0); }
}

/* ---------- 3. Manifesto band ----------
   Same recipe as the closing CTA in site.css — layered gradients plus a
   tiled feTurbulence grain, multiplied — held to a quieter scale. */
.of-band {
  --ink: #12130a;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem);
  padding-inline: var(--gutter);
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(125% 90% at 12% 0%,  #f6ff6b 0%, transparent 58%),
    radial-gradient(110% 85% at 88% 100%, #c2dd00 0%, transparent 62%),
    linear-gradient(163deg, #eaff21 0%, #ddf400 46%, #bcd600 100%);
}
.of-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.38;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.of-band__quote {
  font-family: var(--f-case);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-inline: auto;
}
.of-band__src {
  margin-top: var(--s-3);
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ---------- 4. Cards (problem stats, personas, phases) ---------- */
.of-card {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform var(--d-mid) var(--e-out), border-color var(--d-mid) var(--e-out);
}
.of-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.26); }

.of-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1rem);
  margin-top: var(--s-5);
}
.of-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1rem);
  margin-top: var(--s-5);
}

.of-stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--acid);
  font-variant-numeric: tabular-nums;
}
.of-stat__lbl {
  margin-top: var(--s-2);
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--fg-muted);
}
.of-stat__lbl b { color: var(--fg); font-weight: 600; }

/* ---------- 5. Personas + pull quotes ---------- */
.of-persona__role {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
}
.of-persona__name {
  font-family: var(--f-case);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.6rem;
}
.of-persona__meta {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  color: var(--fg-meta);
  margin-top: 0.25rem;
}
.of-persona__body {
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-top: var(--s-2);
}
.of-persona__want {
  display: block;
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--fg);
}
.of-persona__want span { color: var(--fg-meta); }

.of-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: var(--s-5);
}
.of-quote {
  border-left: 2px solid var(--acid);
  padding-left: clamp(1rem, 2vw, 1.75rem);
}
.of-quote p {
  font-family: var(--f-case);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
}
.of-quote cite {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-meta);
}

/* ---------- 6. The Flip: diagram + steps ---------- */
.of-flip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: var(--s-5);
}
.of-diagram { width: 100%; height: auto; overflow: visible; }
.of-diagram .of-node { fill: #0a0a0a; stroke: var(--line); stroke-width: 1; }
.of-diagram .of-node--live { stroke: var(--acid); }
.of-diagram .of-arrow { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; }
.of-diagram .of-t {
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: var(--fg);
  text-anchor: middle;
}
.of-diagram .of-t--sm {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: var(--fg-meta);
}
.of-diagram .of-t--acid { fill: var(--acid); }

.of-steps { display: grid; }
.of-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line-soft);
  transition: padding-left var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.of-step:last-child { border-bottom: 1px solid var(--line-soft); }
.of-step:hover { background: rgba(255, 255, 255, 0.02); padding-left: 0.6rem; }
.of-step__idx {
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--acid);
}
.of-step h3 {
  font-family: var(--f-case);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.of-step p {
  margin-top: 0.5rem;
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 48ch;
}
.of-step p b { color: var(--fg); font-weight: 600; }

/* ---------- 7. Journey rail ---------- */
.of-journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin-top: var(--s-5);
}
.of-leg { position: relative; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.of-leg::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
}
.of-leg__no {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--fg-meta);
}
.of-leg h3 {
  font-family: var(--f-case);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.4rem;
}
.of-leg p {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--fg-muted);
  margin-top: 0.4rem;
}
.of-leg__feel {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acid);
}

/* ---------- 8. Design system: swatches + specimen ---------- */
.of-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1rem);
  margin-top: var(--s-5);
}
.of-swatch {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #0a0a0a;
}
.of-swatch__chip { height: 84px; background: var(--c); }
.of-swatch__meta { padding: 0.75rem 0.85rem 0.9rem; }
.of-swatch__name {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
}
.of-swatch__hex {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--fg-meta);
  text-transform: uppercase;
}
.of-swatch__use {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--fg-muted);
}

.of-specimen { display: grid; gap: 0; margin-top: var(--s-5); }
.of-face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.of-face:last-child { border-bottom: 1px solid var(--line-soft); }
.of-face__sample {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  /* Product faces are named as content — if a visitor's machine lacks them the
     fallback still communicates the tone, so no webfont is loaded for this. */
}
.of-face__sample--display { font-family: 'Archivo Black', 'Archivo', var(--f-ui); text-transform: uppercase; }
.of-face__sample--grotesk { font-family: 'Space Grotesk', var(--f-ui); font-weight: 700; }
.of-face__sample--serif   { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; }
.of-face__sample--mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(1.125rem, 2.2vw, 1.5rem); letter-spacing: 0.04em; }
.of-face__name {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
}
.of-face__role {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  line-height: 1.55;
  color: var(--fg-muted);
}

/* ---------- 9. Roadmap phases ---------- */
.of-phase__tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--acid);
  color: #000;
}
.of-phase__tag--ghost { background: transparent; color: var(--fg-meta); border: 1px solid var(--line); }
.of-phase h3 {
  font-family: var(--f-case);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: var(--s-2);
}
.of-phase ul { margin-top: var(--s-2); display: grid; gap: 0.65rem; }
.of-phase li {
  position: relative;
  padding-left: 1.3rem;
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.of-phase li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.55rem;
  color: var(--acid);
}
.of-phase li b { color: var(--fg); font-weight: 600; }

/* the build note under the roadmap */
.of-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--s-4);
}
.of-spec {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}
.of-spec b { color: var(--fg); font-weight: 600; }

/* ---------- 9b. Case-study figures ----------
   Deck boards and product renders sit between the paragraphs rather than in
   a gallery at the end, so the page reads as an argument with evidence
   attached. Natural aspect ratio only: these are 16:9 artboards with type
   set to the edges, and any crop cuts a headline in half. */
.of-fig { margin-top: var(--s-5); }
.of-fig img {
  display: block;
  width: 100%;
  /* height:auto + the width/height attributes give the box the file's own
     ratio; object-fit:contain is the guarantee — if anything ever forces a
     height on this box, the artwork letterboxes instead of distorting. */
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  background: #0c0c0c;
}
.of-fig figcaption {
  margin-top: var(--s-2);
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  line-height: 1.55;
  color: var(--fg-meta);
  max-width: 62ch;
}
/* Boards with a light artboard need an edge or they bleed off the page. */
.of-fig--sheet img { box-shadow: inset 0 0 0 1px var(--line); }

.of-figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* start, not the default stretch: a shorter caption must not pull its
     figure to the height of the taller one. */
  align-items: start;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.of-figs .of-fig { margin-top: 0; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1024px) {
  .of-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .of-figs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .of-live { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .of-live__copy { max-width: 62ch; }
  .of-flip { grid-template-columns: minmax(0, 1fr); }
  .of-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .of-quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .of-grid-4 { grid-template-columns: minmax(0, 1fr); }
  /* ≤ 80vw keeps a live gutter either side of the phone: inside the frame a
     touch scrolls the app, not the page, so the page needs somewhere to grab. */
  .of-device { width: min(320px, 76vw); border-radius: 46px; padding: 9px; }
  .of-device__screen { border-radius: 38px; }
  .of-device__island { width: 84px; height: 24px; top: 8px; }
  .of-face { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .of-dot { animation: none; }
  .of-card:hover { transform: none; }
}
