:root {
  --primary: #000000;
  --bg: #ffffff;
  --surface: #f4f4f4;
  --text: #000000;
  --muted: #2f2f2f;
  --olive: #000000;
  --accent: #ff0088;
  --cta: #fa8334;
  --line: #000000;
  --container: 1120px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: max(884px, 100dvh);
  background: var(--bg);
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  line-height: 1.55;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 0.98;
  color: var(--primary);
}

h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.1rem, 6vw, 4.7rem);
  max-width: 16ch;
}

h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  font-family: "Newsreader", serif;
  font-size: 1.48rem;
  font-weight: 500;
  line-height: 1.12;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.announcement-bar {
  border-bottom: 1px solid var(--line);
  background: var(--cta);
  min-height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  transition: background-color 180ms linear, color 180ms linear;
}

.announcement-bar p,
.announcement-bar a {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  will-change: transform, opacity, color;
  transition: transform 240ms linear, opacity 240ms linear, color 180ms linear;
}

.announcement-bar p {
  font-weight: 600;
}

.announcement-bar .announce-label {
  opacity: 0.8;
  font-weight: 500;
}

.announcement-bar .announce-feature {
  font-weight: 800;
}

.announcement-bar .announce-body {
  font-weight: 600;
}

.announcement-bar a {
  color: #000000;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms linear;
}

.announcement-bar.theme-transita {
  background: #f63c8c;
}

.announcement-bar.theme-transita p {
  color: #ffffff;
}

.announcement-bar.theme-transita a {
  color: #1f202a;
}

.announcement-bar.theme-futvia {
  background: rgb(202, 58, 50);
}

.announcement-bar.theme-futvia p {
  color: #fff3f1;
}

.announcement-bar.theme-futvia a {
  color: #1e0d0b;
}

.announcement-bar.carousel-exit p,
.announcement-bar.carousel-exit a {
  opacity: 0;
  transform: translateX(-18px);
}

.announcement-bar.carousel-enter p,
.announcement-bar.carousel-enter a {
  opacity: 0;
  transform: translateX(18px);
}

.header-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav-inner {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.wordmark {
  text-decoration: none;
  font-family: "Space Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--cta);
  color: var(--primary);
  padding: 0.55rem 0.75rem;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-muted {
  background: transparent;
  color: var(--primary);
}

.btn-muted:hover {
  color: #ffffff;
}

.main-shell {
  width: min(1200px, 96%);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.section {
  border-bottom: 1px solid var(--line);
  padding: 3.3rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-grid > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem;
}

.section::before {
  content: none;
  display: none;
}

.stack > * + * {
  margin-top: 0.95rem;
}

.eyebrow,
.section-index {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
}

.hero-lead {
  max-width: 62ch;
  font-size: 1.16rem;
  color: #2f2b27;
}

.hero-headshot {
  margin: 0;
  background: var(--surface);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-headshot img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  max-height: 500px;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform: none;
  filter: grayscale(1) contrast(1.06);
}

.collab-intro {
  max-width: 62ch;
  margin: 0;
  text-align: left;
  font-size: 1.1rem;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.about-copy {
  max-width: 68ch;
}

.about-headshot {
  margin: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.6rem;
}

.about-headshot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
}

.about-copy p {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.52;
  color: #2f2b27;
}

.collab-logos {
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.collab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 120px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1rem;
  transition: background 120ms ease;
}

.collab-item:hover {
  background: var(--surface);
}

.collab-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-miro img {
  max-width: 74%;
}

.logo-unity img {
  max-width: 86%;
}

.logo-wix img {
  max-width: 68%;
}

.logo-etsy img {
  max-width: 62%;
}

.actions,
.links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.section-hero .actions {
  margin-top: 1.35rem;
  gap: 0.85rem;
}

.section-hero .btn-transita {
  border-color: #f63c8c;
}

.section-hero .btn-futvia {
  border-color: rgb(202, 58, 50);
}

.section-hero .btn-reports {
  border-color: var(--cta);
}

.section-hero .btn-transita:hover,
.section-hero .btn-transita:focus-visible {
  border-color: #f63c8c;
}

.section-hero .btn-futvia:hover,
.section-hero .btn-futvia:focus-visible {
  background: rgb(202, 58, 50);
  border-color: rgb(202, 58, 50);
  color: #ffffff;
}

.section-hero .btn-reports:hover,
.section-hero .btn-reports:focus-visible {
  background: var(--cta);
  border-color: var(--cta);
  color: #ffffff;
}

.section-hero .links {
  margin-top: 1.15rem;
  gap: 1.15rem;
}

.links a {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.links a:hover {
  color: var(--cta);
}

.brand-futvia {
  color: rgb(202, 58, 50);
  font-weight: 700;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tag-list li {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.32rem 0.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b3632;
  margin: 0;
}

ul {
  margin: 0.3rem 0 0.8rem 1.1rem;
}

li {
  color: #3c3733;
  margin-bottom: 0.3rem;
}

.metrics-grid,
.three-col {
  display: grid;
  gap: 0;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 1.1rem;
}

#work .three-col .card {
  padding-top: 1.55rem;
}

#work .tag-list {
  margin-top: 1.1rem;
}

.metrics-grid .metric-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 1.35rem 1rem 1rem;
}

.metrics-grid .metric-value {
  font-family: "Newsreader", serif;
  font-size: clamp(4.2rem, 7vw, 6.4rem);
  line-height: 0.9;
  margin: 0.1rem 0 0.22rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.metrics-grid .metric-label {
  margin: auto 0 0.08rem;
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.metrics-grid .metric-context {
  margin: 0 0 0.05rem;
  font-size: 0.95rem;
  line-height: 1.22;
  color: #35312e;
}

/* Case-study system: shared structure + brand accents only */
.section-case-study {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-case-study .container {
  background: var(--bg);
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.35rem 1.5rem;
}

.section-case-study .container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--cs-watermark);
  background-repeat: no-repeat;
  background-position: right var(--cs-watermark-x, -3rem) top 6%;
  background-size: var(--cs-watermark-size, clamp(30rem, 56vw, 48rem) auto);
  opacity: var(--cs-watermark-opacity, 0.1);
  mix-blend-mode: multiply;
}

.section-case-study .container > * {
  position: relative;
  z-index: 1;
}

.section-case-study .eyebrow,
.section-case-study .section-index {
  color: var(--cs-accent);
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.section-case-study h2 {
  color: var(--primary);
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-style: normal;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.section-case-study h3 {
  color: var(--primary);
}

.section-case-study p,
.section-case-study li {
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.5;
}

.section-case-study .stack > * + * {
  margin-top: 0.95rem;
}

.section-case-study h2 + p {
  color: var(--primary);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.16;
  font-weight: 700;
  max-width: 29ch;
}

.section-case-study ul {
  margin-top: 1.5rem;
  margin-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.section-case-study li::marker {
  color: var(--cs-marker);
}

.section-case-study .btn {
  background: var(--cs-btn-bg);
  border-color: var(--cs-btn-border);
  color: #ffffff;
  box-shadow: 4px 4px 0 var(--cs-btn-shadow);
  transition: transform 140ms linear, box-shadow 140ms linear, background 200ms linear, border-color 200ms linear;
}

.section-case-study .btn:hover {
  background: var(--cs-btn-hover-bg);
  border-color: var(--cs-btn-hover-border);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(10, 10, 10, 0.9);
  color: #ffffff;
}

.section-case-study .btn:focus-visible {
  background: var(--cs-btn-hover-bg);
  border-color: var(--cs-btn-hover-border);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(10, 10, 10, 0.9);
  outline: 2px solid var(--cs-focus);
}

.section-case-study .btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.95);
}

.section-transita {
  --cs-watermark: url("assets/transita_logo.png");
  --cs-watermark-x: -3.5rem;
  --cs-watermark-mobile-x: -7rem;
  --cs-watermark-opacity: 0.11;
  --cs-accent: #f63c8c;
  --cs-marker: #f63c8c;
  --cs-btn-bg: #f63c8c;
  --cs-btn-border: #1c1e27;
  --cs-btn-shadow: #1c1e27;
  --cs-btn-hover-bg: #1c1e27;
  --cs-btn-hover-border: #1c1e27;
  --cs-focus: #f7a9ce;
}

.section-futvia {
  --cs-watermark: url("assets/futvia_logo.svg");
  --cs-watermark-x: -2.2rem;
  --cs-watermark-mobile-x: -5.5rem;
  --cs-watermark-size: clamp(41rem, 76vw, 65rem) auto;
  --cs-watermark-size-mobile: clamp(30rem, 122vw, 44rem) auto;
  --cs-watermark-opacity: 0.09;
  --cs-accent: #a01824;
  --cs-marker: #5c5c57;
  --cs-btn-bg: #0a0a0a;
  --cs-btn-border: #0a0a0a;
  --cs-btn-shadow: #a01824;
  --cs-btn-hover-bg: rgb(202, 58, 50);
  --cs-btn-hover-border: rgb(202, 58, 50);
  --cs-focus: #d9a2a8;
}

.section-futvia h2 .brand-futvia,
.section-futvia .btn .brand-futvia,
.section-futvia .eyebrow .brand-futvia {
  color: inherit;
  font-weight: inherit;
}

.section-futvia .brand-futvia {
  color: rgb(202, 58, 50);
  font-weight: 700;
}

@media (max-width: 900px) {
  .section-case-study .container::before {
    background-position: right var(--cs-watermark-mobile-x, -6rem) top 5%;
    background-size: var(--cs-watermark-size-mobile, clamp(22rem, 90vw, 30rem) auto);
    opacity: 0.08;
  }

  .section-case-study p,
  .section-case-study li {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-case-study .btn,
  .section-case-study .btn:hover,
  .section-case-study .btn:active {
    transition: none;
    transform: none;
    box-shadow: 4px 4px 0 var(--cs-btn-shadow);
  }
}

blockquote {
  margin: 0 0 0.8rem;
  font-family: "Newsreader", serif;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--primary);
}

.testimonials-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.testimonial-entry {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 1.2rem;
  background: var(--bg);
}

.testimonial-entry.featured,
.testimonial-entry.secondary {
  grid-column: 1 / -1;
}

.testimonial-entry.featured {
  position: relative;
  overflow: visible;
}

.testimonial-entry.featured::before {
  content: "“";
  position: absolute;
  top: 0.45rem;
  left: 0.5rem;
  color: var(--accent);
  font-family: "Newsreader", serif;
  font-size: 7.4rem;
  line-height: 1;
  font-weight: 700;
  opacity: 0.9;
  pointer-events: none;
}

.testimonial-entry.featured blockquote {
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--primary);
  margin-top: 0.85rem;
}

.testimonial-entry.secondary blockquote {
  font-size: 1.58rem;
  color: #181818;
}

.testimonials-wall .extra {
  display: none;
}

.testimonials-wall.is-expanded .extra {
  display: block;
}

.testimonial-entry blockquote {
  margin-bottom: 0.7rem;
  font-family: "Newsreader", serif;
  font-style: normal;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.28;
  color: #232323;
}

.testimonial-name,
.testimonial-role {
  margin: 0;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  color: var(--primary);
}

.testimonial-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.testimonial-role {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.7);
}

.testimonial-toggle {
  margin-top: 0.9rem;
  align-self: flex-start;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

#reports .card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer {
  padding: 1.6rem 0;
  background: var(--bg);
}

.footer p:last-child {
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .collab-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 780px) {
  .header-nav {
    position: static;
  }

  .nav-inner {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.8rem 0;
  }

  .main-shell {
    width: 100%;
    border-left: 0;
    border-right: 0;
  }

  .section {
    padding: 2.8rem 0;
  }

  .section::before {
    content: none;
    display: none;
  }

  .btn {
    width: 100%;
  }

  .actions {
    width: 100%;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-headshot {
    height: auto;
  }

  .about-headshot img {
    height: auto;
  }
}

@media (max-width: 640px) {
  .metrics-grid,
  .three-col,
  .testimonials-wall {
    grid-template-columns: 1fr;
  }

  .collab-item {
    height: 104px;
    padding: 0.85rem;
  }

  p {
    font-size: 1.1rem;
  }
}
