/* ============================================================
   Xaver Brand System — design tokens + base styles
   Reference var(--xv-*) in components; never hardcode hex.
   Source of truth: .claude/design_handoff_xaver_brand
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* Brand colors */
  --xv-navy:      #091435;
  --xv-charcoal:  #241F21;
  --xv-blue:      #8EB8DF;
  --xv-orange:    #F29524;
  --xv-pink:      #F088B2;

  /* Neutral surfaces */
  --xv-paper:     #FFFFFF;
  --xv-mist:      #EDF1F7;

  /* Semantic aliases */
  --xv-bg:        var(--xv-navy);
  --xv-bg-light:  var(--xv-paper);
  --xv-text:      var(--xv-charcoal);
  --xv-text-soft: #5A5358;
  --xv-on-navy:   #FFFFFF;
  --xv-link:      var(--xv-navy);
  --xv-cta:       var(--xv-orange);

  /* Legacy aliases (templates still reference these) */
  --xv-cream:     var(--xv-paper);
  --xv-cream-2:   var(--xv-mist);
  --xv-sky:       var(--xv-blue);
  --xv-navy-deep: #060D24;
  --xv-navy-soft: #0E1C4A;
  --xv-orange-soft: var(--xv-mist);
  --xv-sky-soft:    #EDF4FB;
  --fg-1: var(--xv-charcoal);
  --fg-2: var(--xv-text-soft);
  --fg-3: #8A8490;

  /* Hairlines */
  --xv-line:      rgba(36, 31, 33, .14);
  --xv-line-navy: rgba(255, 255, 255, .16);

  /* Typography */
  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-body:    "Figtree", system-ui, sans-serif;
  --font-mono:    ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(9,20,53,.06), 0 2px 8px rgba(9,20,53,.06);
  --shadow-2: 0 6px 18px -8px rgba(9,20,53,.28);
  --shadow-3: 0 18px 40px -20px rgba(9,20,53,.45);

  /* Motion */
  --ease-standard: cubic-bezier(0.32, 0.08, 0.24, 1);
  --dur-2: 200ms;
}


/* ———————— Typography ———————— */

.xv-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 116px);
  line-height: .95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.xv-display-2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.xv-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.xv-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.xv-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.xv-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--xv-text-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.xv-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.xv-eyebrow .dot {
  display: none;
}

.xv-lede {
  font-family: var(--font-body);
  font-weight: 330;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
}

.xv-body {
  font-family: var(--font-body);
  font-weight: 330;
  font-size: 16px;
  line-height: 1.6;
}

.xv-stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.xv-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}


/* ———————— Buttons ———————— */

.xv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-standard),
              box-shadow var(--dur-2) var(--ease-standard);
}

.xv-btn--primary {
  background: var(--xv-orange);
  color: #fff;
}
.xv-btn--primary:hover {
  background: #d97f12;
}

.xv-btn--navy {
  background: var(--xv-navy);
  color: #fff;
}
.xv-btn--navy:hover {
  background: #060d24;
}

.xv-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--xv-line-navy);
}
.xv-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.xv-btn--ghost-light {
  background: transparent;
  color: var(--xv-navy);
  border: 1px solid var(--xv-line);
}
.xv-btn--ghost-light:hover {
  background: var(--xv-mist);
}


/* ———————— Cards ———————— */

.xv-card {
  background: var(--xv-paper);
  border: 1px solid var(--xv-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-2) var(--ease-standard);
}
.xv-card:hover {
  box-shadow: var(--shadow-2);
}

.xv-card--navy {
  background: var(--xv-navy);
  border-color: var(--xv-line-navy);
  color: #fff;
}
.xv-card--navy .xv-body {
  color: rgba(255, 255, 255, 0.72);
}
.xv-card--navy .xv-mono {
  color: rgba(255, 255, 255, 0.5);
}


/* ———————— Sections ———————— */

.xv-section--navy {
  background: var(--xv-navy);
  color: #fff;
}

.xv-section--cream {
  background: var(--xv-paper);
  color: var(--xv-charcoal);
}

/* ———————— Container ———————— */

.xv-container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.5rem; /* px-6 */
}
@media (min-width: 768px) {
  .xv-container {
    padding-inline: 4rem; /* md:px-16 */
  }
}

/* ———————— Hero padding (homepage + services index) ———————— */

.xv-hero {
  padding-block: clamp(96px, 10vw, 128px);
}

/* ———————— Card keyboard affordance ———————— */

.xv-card:focus-within {
  box-shadow: var(--shadow-2);
}


/* ———————— Service card CTA link ———————— */

.xv-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--xv-orange);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  text-decoration: none;
  white-space: nowrap;
}
.xv-card-cta:hover {
  color: #d97f12;
}


/* ———————— Nav ———————— */

.xv-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 20, 53, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--xv-line-navy);
  color: #fff;
}
.xv-nav a {
  color: rgba(255, 255, 255, 0.7);
  border-bottom: none;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-2) var(--ease-standard);
}
.xv-nav a:hover {
  color: #fff;
}
.xv-nav button {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
}
.xv-nav button:hover {
  color: #fff;
}
.xv-nav .nav-logo {
  height: 30px;
  width: auto;
  display: block;
}
.xv-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.xv-nav .xv-nav-cta {
  padding: 9px 18px;
  font-size: 14px;
  color: #fff;
}
.xv-nav .xv-nav-cta:hover {
  color: #fff;
}


/* ———————— Footer ———————— */

.xv-footer {
  background: var(--xv-navy);
  color: #fff;
  font-family: var(--font-body);
}
.xv-footer a {
  color: rgba(255, 255, 255, 0.6);
  border-bottom: none;
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-standard);
}
.xv-footer a:hover {
  color: #fff;
}
.xv-footer h3 {
  color: #fff;
}


/* ———————— Recolorable organic shape ———————— */

.xv-shape {
  display: inline-block;
  -webkit-mask: var(--shape) no-repeat center / contain;
          mask: var(--shape) no-repeat center / contain;
  background: var(--shape-color, var(--xv-orange));
}

/* Decorative hero shapes are flourish only (aria-hidden). On small screens they
   sit behind hero copy and cut through the text, so hide them for legibility. */
@media (max-width: 767px) {
  .xv-shape {
    display: none;
  }
}


/* ———————— Pixel-grid texture ———————— */

.xv-pixel-grid {
  background-image:
    linear-gradient(var(--xv-line-navy) 1px, transparent 1px),
    linear-gradient(90deg, var(--xv-line-navy) 1px, transparent 1px);
  background-size: 34px 34px;
}


/* ———————— Focus (accessible) ———————— */

:focus-visible {
  outline: 3px solid rgba(142, 184, 223, .4);
  outline-offset: 2px;
}


/* ———————— Portfolio filter tabs ———————— */

.xv-filter-tab {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--xv-line);
  background: transparent;
  color: var(--xv-text-soft);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-standard);
}
.xv-filter-tab:hover { border-color: var(--xv-orange); color: var(--xv-charcoal); }
.xv-filter-tab.is-active { background: var(--xv-navy); color: #fff; border-color: var(--xv-navy); }


/* ———————— Selected work (homepage editorial cards) ———————— */

.xv-work-card {
  display: flex;
  flex-direction: column;
  background: var(--xv-navy);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  color: #fff;
  text-decoration: none;
  transition: box-shadow var(--dur-2) var(--ease-standard),
              transform var(--dur-2) var(--ease-standard);
}
a.xv-work-card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

.xv-work-media {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(240px, 34vw, 320px);
}
.xv-work-card--hero .xv-work-media {
  min-height: clamp(320px, 42vw, 460px);
}
.xv-work-media--flat {
  background-color: var(--xv-navy);
}

.xv-work-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* The signature moment: hovering slowly scrolls the shipped site inside the frame. */
  transition: object-position 5s var(--ease-standard);
}
a.xv-work-card:hover .xv-work-img {
  object-position: center bottom;
}
@media (prefers-reduced-motion: reduce) {
  .xv-work-img {
    transition: none;
  }
  a.xv-work-card:hover .xv-work-img {
    object-position: center top;
  }
}

.xv-work-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 13, 36, .96), rgba(6, 13, 36, .58) 38%, rgba(6, 13, 36, 0) 62%);
}

.xv-work-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 14px;
}
.xv-work-kicker .xv-work-badge {
  margin-left: auto;
}
.xv-work-card .xv-eyebrow {
  color: var(--xv-blue);
}

.xv-work-badge {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(9, 20, 53, 0.55);
  border: 1px solid var(--xv-line-navy);
  color: #fff;
  white-space: nowrap;
}
.xv-work-badge--wip {
  color: rgba(255, 255, 255, 0.65);
}

.xv-work-headline {
  position: relative;
  padding: 24px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 30ch;
  text-wrap: balance;
}
.xv-work-card--hero .xv-work-headline {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.05;
}

.xv-work-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 18px 26px;
  border-top: 1px solid var(--xv-line-navy);
  background: var(--xv-navy-deep);
}
.xv-work-foot-id {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.xv-work-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.xv-work-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.xv-work-metric {
  display: flex;
  flex-direction: column;
}
.xv-work-metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--xv-orange);
}
.xv-work-metric-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}


/* ———————— Brand marquee ticker ———————— */

.xv-ticker {
  overflow: hidden;
  background: var(--xv-paper);
  border-bottom: 1px solid var(--xv-line);
  padding-block: 16px;
}

.xv-ticker-track {
  display: flex;
  width: max-content;
  animation: xv-ticker-scroll 70s linear infinite;
}
.xv-ticker:hover .xv-ticker-track {
  animation-play-state: paused;
}

.xv-ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--xv-navy);
}
.xv-ticker-item::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xv-orange);
  margin-inline: 26px;
}

/* Track holds the phrase list twice, so -50% lands exactly on the seam. */
@keyframes xv-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .xv-ticker-track {
    animation: none;
  }
}


/* ———————— Founder card (hero) ———————— */

.xv-founder-card {
  display: block;
  width: 240px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--xv-navy-soft);
  border: 1px solid var(--xv-line-navy);
  box-shadow: var(--shadow-3);
  text-decoration: none;
  color: #fff;
  transition: transform var(--dur-2) var(--ease-standard),
              box-shadow var(--dur-2) var(--ease-standard);
}
.xv-founder-card:hover {
  transform: translateY(-3px);
}
@media (min-width: 1024px) {
  .xv-founder-card {
    width: 264px;
  }
}

.xv-founder-card-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.xv-founder-card-caption {
  display: block;
  padding: 14px 18px 16px;
}

.xv-founder-card-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.xv-founder-card-role {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--xv-blue);
}

.xv-founder-card-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--xv-orange);
}
.xv-founder-card:hover .xv-founder-card-cta {
  color: #d97f12;
}
/* ———————— Process timeline ———————— */

.xv-process-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xv-process-step {
  position: relative;
  background: var(--xv-navy-soft);
  border: 1px solid var(--xv-line-navy);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}

.xv-process-week {
  color: var(--xv-orange);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.xv-process-week::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--xv-orange);
  flex-shrink: 0;
}

/* Rail connecting the steps across the grid gaps on wide screens */
@media (min-width: 1024px) {
  .xv-process-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 100%;
    width: 24px;
    height: 1px;
    background: var(--xv-line-navy);
  }
}

.xv-process-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.xv-process-deliverables li {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--xv-line-navy);
  color: rgba(255, 255, 255, 0.78);
}


/* ———————— FAQ accordion ———————— */

.xv-faq-item {
  border-bottom: 1px solid var(--xv-line);
}
.xv-faq-q {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--xv-charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.xv-faq-q::-webkit-details-marker { display: none; }
.xv-faq-q::after {
  content: "+";
  font-size: 26px;
  line-height: 1;
  color: var(--xv-orange);
  flex-shrink: 0;
}
details[open] > .xv-faq-q::after { content: "\2013"; }
.xv-faq-a {
  padding: 0 4px 22px;
  color: var(--fg-2);
}
