/* ==========================================================================
   Icons

   Inline SVG throughout — no icon font, no sprite request, and they inherit
   currentColor so they theme themselves. Stroke-based at 1.25px to match the
   hairline language of the rest of the site; a filled icon set would fight
   the thin gold rules everywhere else.
   ========================================================================== */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.icon-lg { width: 2em; height: 2em; }

/* Framed icon — a gold hairline square, echoing the machined-collar motif. */
.icon-frame {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  color: var(--gold-500);
  background: rgba(229, 180, 95, .05);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}
.card:hover .icon-frame,
.work-link:hover .icon-frame {
  border-color: var(--gold-500);
  background: rgba(229, 180, 95, .11);
  transform: translateY(-2px);
}
.icon-frame .icon { width: 24px; height: 24px; }

/* App icon — the real product icon, in a rounded squircle like a home screen. */
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  border: 1px solid var(--hairline-2);
  object-fit: cover;
  background: var(--surface-2);
  flex: 0 0 auto;
}
.app-icon-sm { width: 38px; height: 38px; border-radius: 9px; }

/* Store badges */
.store-badges { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.store-badges img {
  height: 34px;
  width: auto;
  opacity: .8;
  transition: opacity var(--dur-1) var(--ease);
}
.store-badges a:hover img { opacity: 1; }

/* Social icons */
.social { display: flex; gap: var(--s-4); align-items: center; }
.social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-2);
  color: var(--text-3);
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
.social a:hover { color: var(--gold-500); border-color: var(--gold-500); transform: translateY(-2px); }
.social .icon { width: 18px; height: 18px; }

/* A header row pairing an icon with a title. */
.icon-row { display: flex; align-items: center; gap: var(--s-4); }

/* ---- Placements ---------------------------------------------------------- */

.cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
}
.cap-head .cap-index { margin: 0; }

.intake-item { gap: var(--s-4); }
.intake-item .icon { color: var(--gold-500); width: 1em; height: 1em; }

.metric dt { display: flex; align-items: center; gap: var(--s-2); }
.metric dt .icon { color: var(--gold-600); width: 1.1em; height: 1.1em; }

.work-title-row { margin-bottom: var(--s-4); }
.work-title-row .work-name { margin-bottom: 0; }
.work-mini-head { margin-bottom: var(--s-2); }
.work-mini-head h4 { margin-bottom: 0; }
.work-more .icon { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease); }
.work-link:hover .work-more .icon { transform: translateX(4px); }
.store-badges { margin-top: var(--s-4); }

.proof-logo {
  height: 22px;
  width: auto;
  margin-top: var(--s-3);
  opacity: .45;
  filter: grayscale(1);
  transition: opacity var(--dur-2) var(--ease), filter var(--dur-2) var(--ease);
}
.proof-quote:hover .proof-logo { opacity: .9; filter: grayscale(0); }

/* ---- Founder ------------------------------------------------------------- */

/* Same treatment as a project row: a gold-tinted wash and a hairline that
   warms on hover, so the founder reads as one more piece of the work.

   The panel is drawn by a pseudo-element rather than by padding + negative
   margin on .founder itself. .founder is ALSO .shell, and .shell centres the
   block with `margin-inline: auto` — overriding that to a negative value
   knocked the whole founder block out of the page's centred column. */
.founder {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-16);
  align-items: start;
}
.founder::before {
  content: '';
  position: absolute;
  inset: calc(var(--s-6) * -1);
  z-index: -1;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
  pointer-events: none;
}
.founder:hover::before {
  border-color: var(--hairline);
  background: rgba(229, 180, 95, .03);
}
.founder:hover .founder-portrait { border-color: var(--gold-600); }
.founder-portrait {
  position: relative;
  display: block;
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--surface-1);
}
.founder-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(.35) contrast(1.05);
  transition: filter var(--dur-3) var(--ease), transform 1200ms var(--ease);
}
.founder-portrait:hover img { filter: grayscale(0); transform: scale(1.03); }
/* A gold wash tying the portrait to the palette. */
.founder-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(229,180,95,.16), transparent 55%);
  pointer-events: none;
}
.founder-links a { display: inline-flex; align-items: center; gap: var(--s-2); }
.founder-links .icon { width: 1em; height: 1em; }

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; gap: var(--s-8); }
  .founder::before { inset: calc(var(--s-4) * -1); }
  .founder-portrait { max-width: 260px; }
}

/* ---- Firm trust badge ---------------------------------------------------- */

.firm-badge {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  margin-bottom: var(--s-8);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  background: rgba(229, 180, 95, .04);
}
.firm-badge p { margin: 0; }
.firm-badge-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  color: var(--gold-500);
  letter-spacing: .02em;
}

/* ---- Contact details ------------------------------------------------------ */

.contact-direct .icon-row { gap: var(--s-3); align-items: center; }
.contact-direct .icon { color: var(--gold-600); }

@media (max-width: 700px) {
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* ---- Cosmic Shaft Originals badge -----------------------------------------
   Marks a product as our own — built by the firm, not client work. The ✦
   mark echoes the footer's infinite wordmark, tying "our own thing" to the
   same brand motif rather than inventing a new one. */
.originals-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 3px var(--s-3);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(229, 180, 95, .07);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  white-space: nowrap;
}
.originals-badge::before {
  content: '✦';
  font-size: .95em;
  line-height: 1;
}

.work-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-4);
}
.work-meta-row .work-meta { margin-bottom: 0; }
