/*
  Bytics Lab — navy + cobalt-blue corporate IT theme.
  White/light-gray grounds, deep navy blocks, pill buttons, animated counters.
*/

:root {
  --paper: #ffffff;
  --surface: #f5f6fb;
  --surface-raised: #ffffff;
  --ink: #12163a;
  --ink-soft: #4d5170;
  --muted: #8b8fa3;
  --navy: #10165c;
  --navy-soft: #181f6e;
  --navy-deep: #0a0d3d;
  --accent: #1656d1;
  --accent-deep: #123f9e;
  --accent-soft: #eaf0fd;
  --line: #e6e8f2;
  --line-soft: #eff1f8;

  --gradient-orange: linear-gradient(155deg, #f18a00 0%, #8a4e00 100%);
  --gradient-pine: linear-gradient(155deg, #2f4a3d 0%, #16261f 100%);
  --gradient-navy: linear-gradient(155deg, #2c3a52 0%, #141b28 100%);
  --gradient-plum: linear-gradient(155deg, #423240 0%, #241b23 100%);

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --radius: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  color: var(--ink);
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

/* ---- buttons ---- */

.btn-primary,
.btn-outline,
.btn-white {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-white {
  background: #fff;
  color: var(--navy);
}

.btn-white:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* ---- top bar ---- */

.top-bar {
  background: var(--navy-deep);
  color: #c7cdf5;
  font-size: 12.5px;
}

.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px var(--gutter);
  gap: 14px;
  flex-wrap: wrap;
}

.top-bar__contacts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.top-bar__contacts a {
  color: #c7cdf5;
  text-decoration: none;
}

.top-bar__contacts a:hover {
  color: #fff;
}

/* ---- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  gap: 20px;
}

.site-logo {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.primary-nav__list {
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible,
.primary-nav__list a.is-active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 41;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---- hero ---- */

.hero {
  background: var(--navy);
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06), transparent 45%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero .wrap {
  padding-top: clamp(50px, 6vw, 90px);
  padding-bottom: clamp(50px, 6vw, 90px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.hero .eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fb1f5;
  margin: 0 0 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 1.7rem + 2.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: #c3c9ef;
  max-width: 50ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual__frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.05;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  overflow: hidden;
  border: 6px solid rgba(255,255,255,0.12);
}

.hero-visual__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero-visual__badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--accent);
  color: #fff;
  padding: 18px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgba(16, 22, 92, 0.35);
}

.hero-visual__badge b {
  display: block;
  font-size: 26px;
  font-weight: 900;
}

.hero-visual__ring {
  position: absolute;
  inset: -30px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 50%;
  z-index: -1;
}

/* ---- client marquee ---- */

.marquee-section {
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  width: max-content;
  animation: bl-marquee 28s linear infinite;
  gap: 64px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
    flex-wrap: wrap;
    gap: 24px;
  }
}

.marquee span {
  font-size: 19px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes bl-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- generic section chrome ---- */

section {
  padding: clamp(56px, 7vw, 100px) 0;
}

.section-surface {
  background: var(--surface);
}

.section-head {
  max-width: 62ch;
  margin: 0 0 clamp(32px, 4vw, 52px);
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

.section-head p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* ---- about ---- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
  object-position: center top;
}

.about-media__badge {
  position: absolute;
  bottom: 20px;
  right: -18px;
  background: var(--navy);
  color: #fff;
  padding: 20px 18px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 16px 40px rgba(16, 22, 92, 0.25);
}

.about-media__badge b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
}

.about-media__badge span {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-copy p {
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 24px;
}

.feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-list .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}

.feature-list h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 4px;
}

.feature-list p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

.stat-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-bar b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}

.stat-bar .track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-bar.is-visible .fill {
  width: var(--pct);
}

/* ---- services ---- */

.service-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-icon-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 22, 92, 0.08);
}

.service-icon-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}

.service-icon-card p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.service-icon-card a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.service-icon-card a:hover {
  color: var(--ink);
}

/* ---- why choose (dark split) ---- */

.why-band {
  background: var(--navy);
  color: #fff;
}

.why-band .eyebrow {
  color: #9fb1f5;
}

.why-band .section-head h2 {
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.why-grid .feature-list .check {
  background: #fff;
  color: var(--accent);
}

.why-grid .feature-list h4 {
  color: #fff;
}

.why-grid .feature-list p {
  color: #c3c9ef;
}

.why-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3.2;
}

.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- stats band ---- */

.stats-band {
  background: var(--accent);
  color: #fff;
  padding: clamp(40px, 5vw, 60px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-figure b {
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.8rem);
  font-weight: 900;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat-figure span {
  font-size: 13.5px;
  font-weight: 600;
  color: #dbe4fb;
}

/* ---- founder / team ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: left;
}

.team-card__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/3.4;
  margin-bottom: 16px;
  background: var(--surface);
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.team-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 2px;
}

.team-card span {
  font-size: 13px;
  color: var(--muted);
}

.team-card--open {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  aspect-ratio: 3/3.4;
  color: var(--muted);
}

.team-card--open .plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 14px;
}

.team-card--open h3 {
  font-size: 14.5px;
  color: var(--ink);
}

.team-card--open p {
  font-size: 12.5px;
  margin: 4px 0 0;
}

/* ---- portfolio ---- */

.portfolio-heading-wrap {
  position: relative;
}

.portfolio-ghost {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 3rem + 6vw, 9rem);
  font-weight: 900;
  color: var(--line-soft);
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/3.6;
  display: block;
  text-decoration: none;
  background: var(--surface);
}

.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}

.portfolio-card__arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portfolio-card:hover .portfolio-card__arrow {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.portfolio-card__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 68px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-card:hover .portfolio-card__label {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,13,61,0.75), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portfolio-card:hover::after {
  opacity: 1;
}

/* ---- testimonials ---- */

.testimonial-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}

.testimonial-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.testimonial-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.testimonial-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.testimonial-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.testimonial-card .stars {
  color: #f5a623;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card .sample-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 8px;
  border-radius: 999px;
}

.testimonial-card h3 {
  font-size: 15.5px;
  font-weight: 800;
  margin: 0 0 10px;
}

.testimonial-card p {
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.testimonial-card__author b {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.testimonial-card__author span {
  font-size: 12px;
  color: var(--muted);
}

/* ---- blog ---- */

.blog-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.blog-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  text-decoration: none;
  background: var(--navy);
}

.blog-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.blog-feature__body {
  position: relative;
  padding: 28px;
}

.blog-feature__meta {
  font-size: 12px;
  color: #c3c9ef;
  margin-bottom: 10px;
}

.blog-feature h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blog-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  text-decoration: none;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.blog-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-row__img {
  width: 96px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface);
}

.blog-row__meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.blog-row h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.blog-empty {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.case-gallery__item {
  margin: 0;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.case-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .case-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- talk banner ---- */

.talk-banner {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.talk-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.talk-banner h2 {
  color: #fff;
  font-size: clamp(2.2rem, 1.7rem + 3vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.talk-banner .ring-arrow {
  width: clamp(60px, 6vw, 100px);
  height: clamp(60px, 6vw, 100px);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ---- scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span, .primary-nav, .primary-nav li, .primary-nav__panel { transition: none !important; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- interior page hero (About / Services) ---- */

.page-hero {
  background: var(--navy);
  color: #fff;
}

.page-hero .wrap {
  padding: clamp(48px, 6vw, 90px) var(--gutter) clamp(40px, 5vw, 64px);
}

.page-hero__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 32px);
}

.page-hero .eyebrow {
  color: #9fb1f5;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 18ch;
  text-wrap: balance;
}

.page-hero .hero-body {
  color: #c3c9ef;
}

.portrait {
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 3px solid rgba(255,255,255,0.2);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait--sm { width: 56px; height: 56px; }
.portrait--lg { width: 92px; height: 92px; }

/* ---- prose / timeline (About page) ---- */

.prose-block {
  max-width: 74ch;
}

.prose-block p {
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.timeline__item:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline__years {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.03em;
  padding-top: 4px;
}

.timeline__item h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
}

.timeline__item p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ---- services page ---- */

.service-grid {
  display: flex;
  flex-direction: column;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ---- case study single ---- */

.case-single__header {
  background: var(--navy);
  color: #fff;
  padding: clamp(48px, 6vw, 84px) 0 clamp(36px, 4vw, 56px);
}

.breadcrumb a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #9fb1f5;
}

.breadcrumb a:hover {
  color: #fff;
}

.case-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9fb1f5;
  margin: 18px 0;
}

.case-single h1 {
  color: #fff;
  font-size: clamp(2rem, 1.7rem + 1.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 20ch;
  text-wrap: balance;
}

.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.case-stats div b {
  display: block;
  font-size: 26px;
  font-weight: 900;
}

.case-stats div span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9fb1f5;
}

.case-single__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

/* object-fit: contain — the whole image is always shown, letterboxed on the
   surface background rather than cropped, regardless of its native aspect
   ratio (screenshots vary wildly: tall full-page captures vs. wide browser
   captures vs. portrait mobile screens). */
.case-media__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-media__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 0.04em;
}

.case-media__fallback--orange { background: var(--gradient-orange); }
.case-media__fallback--pine { background: var(--gradient-pine); }
.case-media__fallback--navy { background: var(--gradient-navy); }
.case-media__fallback--plum { background: var(--gradient-plum); }

.case-single__body {
  padding: clamp(40px, 5vw, 70px) 0;
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.75;
}

.case-single__body p {
  margin: 0 0 20px;
}

.case-single__body h2 {
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 1.4em 0 0.6em;
}

.case-single__body h3 {
  font-size: 1.2em;
  font-weight: 800;
  margin: 1.2em 0 0.5em;
}

.case-single__body img {
  border-radius: var(--radius, 12px);
  margin: 0 0 20px;
}

.case-single__cta {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 70px) 0 clamp(50px, 6vw, 90px);
}

.case-single__cta h2 {
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 22px;
}

/* ---- archive ---- */

.pagination,
.nav-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 700;
}

.pagination a,
.nav-links a {
  text-decoration: none;
  color: var(--ink);
}

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

/* ---- responsive ---- */

@media (max-width: 980px) {
  .hero-inner,
  .about-grid,
  .why-grid,
  .testimonial-layout,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }
  .hero-visual__frame { width: min(280px, 70vw); }

  .service-icon-grid,
  .team-grid,
  .portfolio-grid,
  .testimonial-cards,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .top-bar { display: none; }

  .stat-bars,
  .method-grid,
  .timeline__item,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-hero__inner {
    flex-direction: column;
  }

  .talk-banner h2 {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .service-icon-grid,
  .team-grid,
  .portfolio-grid,
  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  .blog-row {
    grid-template-columns: 76px 1fr;
  }
}

/* --------------------------------------------------------------------------
   2026 editorial layer: tokens, header, footer and homepage.
   Desktop values are drawn at 1440px, mobile values at 390px.
   ----------------------------------------------------------------------- */

:root {
  --paper: #f6f5f0;
  --surface: #eeece4;
  --surface-raised: #fff;
  --ink: #11130f;
  --ink-soft: #55584f;
  --muted: #6b6e64;
  --navy: #182d28;
  --navy-deep: #10201c;
  --accent: #c4401f;
  --accent-deep: #a8361a;
  --accent-light: #f0997f;
  --accent-soft: #f8dfd6;
  --line: #d9d8d0;
  --line-soft: #ecebe5;
  --wrap: 1440px;
  --gutter: clamp(40px, 7.78vw, 112px);
  --radius: 5px;
}

body { background: var(--paper); color: var(--ink-soft); font-family: var(--font-sans); }
html, body { max-width: 100%; overflow-x: clip; }
h1, h2 { font-family: var(--font-sans); font-weight: 500; }
h3, h4 { font-family: var(--font-sans); font-weight: 600; }
.site-shell { overflow: clip; }

/* Header */
.site-header { background: #fff; border-color: #e7e5de; }
.site-header__inner { min-height: 75px; padding-top: 0; padding-bottom: 0; }
.site-logo { color: var(--ink); }
.site-logo svg { display: block; width: auto; height: 30px; }
.primary-nav__list { gap: 36px; }
.primary-nav__list a { font-size: 14px; font-weight: 550; }
.primary-nav__hint, .primary-nav__panel { display: none; }
.header-contact { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); padding: 6px 0; }

/* Shared by the About, Services and case study pages */
.btn-primary { background: var(--accent); border-radius: 2px; padding: 16px 22px; font-size: 13.5px; }
.btn-primary:hover { background: var(--accent-deep); }
.text-link { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link span { color: var(--accent); }
.status-line { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--ink); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; font-weight: 700; }
.status-line > span { width: 7px; height: 7px; background: #5c9c65; border-radius: 50%; box-shadow: 0 0 0 5px rgba(92,156,101,.12); }
.eyebrow { color: var(--accent); font-size: 10.5px; letter-spacing: .14em; margin-bottom: 16px; }
.editorial-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 50px; margin-bottom: clamp(45px, 6vw, 80px); }
.editorial-heading h2 { margin: 0; color: var(--ink); font-size: clamp(2.45rem, 4.2vw, 4.65rem); line-height: 1; letter-spacing: -.022em; text-wrap: balance; }
.editorial-heading > p { margin: 0 0 4px; font-size: 15px; line-height: 1.7; max-width: 48ch; }

/* Homepage building blocks */
.site-header, .home-fold, .home-section, .site-footer { line-height: normal; }
.home-eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-title { margin: 0; color: var(--ink); font-size: clamp(40px, 3.75vw, 54px); line-height: 1.06; font-weight: 500; letter-spacing: -.028em; }
.home-intro { margin: 22px 0 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.home-head { max-width: 760px; }
.home-section { padding-block: 120px; }
.home-btn { display: inline-flex; align-items: center; gap: .28em; padding: 17px 26px; border: 0; border-radius: 3px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .2s; }
.home-btn:hover { background: var(--accent-deep); color: #fff; }
.home-btn--outline { gap: 12px; padding: 15px 22px; border: 1px solid var(--ink); border-radius: 0; background: none; color: var(--ink); }
.home-btn--outline span { color: var(--accent); }
.home-btn--outline:hover { background: var(--ink); color: var(--paper); }
.home-link { color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.home-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-available { display: flex; align-items: center; gap: 8px; }
.home-available::before, .home-quote__note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #5c9c65; }

/* First fold: hero + services strip, spaced as drawn (55px around the hero content) */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 88px; align-items: center; padding-block: 55px; }
.home-hero .home-eyebrow { margin-bottom: 22px; }
.home-hero__title { margin: 0; color: var(--ink); font-size: clamp(44px, 4.3vw, 62px); line-height: 1.05; letter-spacing: -.03em; }
.home-hero__lead { margin: 24px 0 0; max-width: 600px; font-size: 19px; line-height: 1.6; }
.home-hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.home-stats { display: flex; gap: 56px; margin: 40px 0 0; }
.home-stats dt { color: var(--ink); font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.home-stats dt span { color: var(--accent); }
.home-stats dd { margin: 6px 0 0; font-size: 14px; }
.home-portrait { position: relative; justify-self: end; width: min(380px, 100%); margin: 0; }
.home-portrait::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; background: var(--accent); }
.home-portrait__img { position: relative; width: 100%; height: auto; aspect-ratio: 380 / 470; object-fit: cover; object-position: center 22%; }
.home-portrait__card { position: absolute; left: -36px; bottom: 30px; width: 280px; box-sizing: border-box; padding: 16px 18px; background: var(--ink); color: #c9cbc2; font-size: 13px; }
.home-portrait__card strong { display: block; margin-bottom: 4px; color: var(--paper); font-size: 15px; font-weight: 650; }
.home-portrait__card .home-available { margin-top: 12px; color: #9fd0a6; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

.home-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: max(0px, (100% - var(--wrap)) / 2); background: #fff; border-top: 1px solid #e7e5de; }
.home-strip__item { display: block; padding: 26px 28px 28px; border-right: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.home-strip__item:first-child { padding-left: var(--gutter); }
.home-strip__item:last-child { padding-right: var(--gutter); border-right: 0; }
.home-strip__num { display: block; color: var(--accent); font-size: 12px; font-weight: 700; }
.home-strip__title { display: block; margin-top: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.home-strip__detail { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.home-strip__item:hover .home-strip__title { color: var(--accent); }

/* Case studies */
.home-work { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; padding-block: 112px 120px; }
.home-work .home-intro { max-width: 620px; }
.home-work__grid { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 48px; }
.home-work__all { grid-column: 2; grid-row: 1; align-self: end; }
.case-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.case-card__media { display: block; aspect-ratio: 582 / 420; overflow: hidden; background: var(--surface); border: 1px solid rgba(17,19,15,.1); }
.case-card__img, .case-card__media .case-media__fallback { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.case-card:hover .case-card__img { transform: scale(1.025); }
.case-card__category { margin: 22px 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.case-card__title { margin: 0; color: var(--ink); font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.case-card__footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.case-card__footer strong { font-weight: 650; }
.case-card__footer span { font-weight: 600; color: var(--ink-soft); }

/* Services */
.home-services { background: var(--navy-deep); color: var(--paper); }
.home-services .home-eyebrow { color: var(--accent-light); }
.home-services .home-title { color: var(--paper); }
.home-services .home-intro { color: #c3cdc8; }
.home-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 64px 0 0; padding: 0; list-style: none; }
.home-service { display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid rgba(246,245,240,.13); background: rgba(246,245,240,.03); }
.home-service .home-icon { color: var(--accent-light); }
.home-service h3 { margin: 22px 0 12px; color: var(--paper); font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.home-service p { margin: 0; color: #b8c4be; font-size: 15px; line-height: 1.6; }
.home-service a { margin-top: auto; padding-top: 24px; color: var(--paper); font-size: 14px; font-weight: 650; text-decoration: none; }
.home-service a span { color: var(--accent-light); }
.home-service a:hover { color: var(--accent-light); }
.home-services__closing { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(246,245,240,.13); }
.home-services__closing p { margin: 0; color: #c3cdc8; font-size: 18px; }
.home-services__closing .home-btn { flex: none; padding: 16px 24px; }

/* Personal practice */
.home-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 96px; align-items: center; }
.home-about__lead { margin: 28px 0 0; color: var(--ink); font-size: 21px; line-height: 1.55; }
.home-about__text { margin: 20px 0 0; font-size: 17px; line-height: 1.7; }
.home-about__card { background: #fff; border: 1px solid #e3e1d9; box-shadow: 0 30px 70px rgba(32,28,21,.06); }
.home-about__quote { margin: 0; padding: 40px 40px 34px; }
.home-about__quote blockquote { margin: 0; color: var(--ink); font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
.home-principles { padding: 30px 40px 40px; border-top: 1px solid var(--line-soft); }
.home-principles__title { margin: 0 0 24px; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.home-principles__title span { color: var(--accent); }
.home-principles ul { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.home-principles li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.home-principles strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; font-weight: 650; line-height: normal; }
.home-principles__tile { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #fbeee9; color: var(--accent); }
.home-principles__tile .home-icon { width: 20px; height: 20px; stroke-width: 1.7; }

/* Process */
.home-process { background: #fff; border-top: 1px solid #e7e5de; }
.home-process .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px 64px; }
.home-process__cta { grid-column: 2; grid-row: 1; align-self: end; }
.home-process__steps { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; margin: 0; padding: 0; list-style: none; }
.home-process__steps::before { content: ""; position: absolute; top: 8px; left: 9px; right: 0; height: 2px; background: #e3e1d9; }
.home-process__steps li { position: relative; padding-top: 44px; }
.home-process__steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; box-sizing: border-box; border: 3px solid var(--accent); border-radius: 50%; background: #fff; }
.home-process__label { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-process h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.02em; }
.home-process__steps p:last-child { margin: 0; font-size: 15.5px; line-height: 1.65; }

/* Get a quote */
.home-quote { background: #ece8de; }
.home-quote__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 96px; align-items: start; }
.home-quote .home-intro { margin-top: 24px; }
.home-contact { margin-top: 44px; border-top: 1px solid var(--ink); }
.home-contact a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid #cfcbbf; color: var(--ink); font-size: 20px; font-weight: 550; text-decoration: none; }
.home-contact small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-contact a > span:last-child { color: var(--accent); font-size: 18px; }
.home-quote__note { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 14px; }
.home-form { display: grid; gap: 24px; padding: 44px; background: #fff; box-shadow: 0 30px 70px rgba(32,28,21,.08); }
.home-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-form label:not(.home-form__chips label), .home-form legend { display: block; margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 13.5px; font-weight: 650; }
.home-form label span { font-weight: 450; color: var(--muted); }
.home-form input:not([type="checkbox"]), .home-form select, .home-form textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid #d3d1c8; border-radius: 3px; background: #fbfaf7; color: var(--ink); font: inherit; font-size: 15px; }
.home-form textarea { resize: vertical; }
.home-form fieldset { margin: 0; padding: 0; border: 0; }
.home-form__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.home-form__chips label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #d3d1c8; border-radius: 3px; background: #fbfaf7; color: var(--ink); font-size: 14px; font-weight: 550; cursor: pointer; }
.home-form__chips input { margin: 0; accent-color: var(--accent); }
.home-form__submit { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-form__submit .home-btn { flex: none; padding: 17px 28px; }
.home-form__privacy { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.home-form__status { margin: 0; color: var(--ink); font-size: 15px; }
.home-form__status:empty { display: none; }
.home-form.is-sent > :not(.home-form__success) { display: none; }
.home-form__success { padding: 12px 0 4px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.home-form__tick { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #e4efe5; }
.home-form__tick::after { content: ""; width: 18px; height: 9px; margin-top: -4px; border: solid #2f6b3a; border-width: 0 0 2.5px 2.5px; rotate: -45deg; }
.home-form__success h3 { margin: 24px 0 10px; color: var(--ink); font-size: 26px; line-height: 1.2; letter-spacing: -.02em; outline: none; }
.home-form__success p { margin: 0; }
.home-form__next { margin-top: 28px !important; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-form__success ol { display: grid; gap: 12px; margin: 16px 0 28px; padding: 0; list-style: none; counter-reset: step; }
.home-form__success li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; counter-increment: step; }
.home-form__success li::before { content: counter(step); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fbeee9; color: var(--accent); font-size: 13px; font-weight: 700; }
.home-form__again { padding: 0 0 4px; background: none; border-width: 0 0 1px; cursor: pointer; font-family: inherit; }
.home-form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Social icons (quote section and footer) */
.social { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.social__label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.social__list { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social__list a { width: 44px; height: 44px; display: grid; place-items: center; box-sizing: border-box; border: 1px solid #cfcbbf; border-radius: 50%; background: var(--paper); color: var(--ink); }
.social__list svg { width: 18px; height: 18px; }

/* Footer */
.site-footer { padding: 88px 0 36px; background: var(--ink); color: #d3d5cd; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 48px; }
.site-footer .site-logo { color: var(--paper); }
.site-footer .site-logo svg { height: 26px; }
.site-footer__brand p { max-width: 300px; margin: 18px 0 0; font-size: 12px; line-height: 1.6; }
.site-footer__label { margin: 0 0 14px; color: #8d9086; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin: 0 0 10px; font-size: 12px; line-height: 1.45; }
.site-footer .social__list a { border-color: rgba(246,245,240,.2); background: none; color: #e4e6df; }
.site-footer .social__list svg { width: 16px; height: 16px; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(246,245,240,.12); color: #9a9d93; font-size: 12px; }

@media (max-width: 1199px) {
  .home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  .home-hero, .home-about, .home-quote__grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero { gap: 0; padding-block: 36px 44px; }
  .home-portrait { justify-self: start; width: calc(100% - 12px); max-width: 560px; margin-top: 36px; }
  .home-portrait::before { inset: 12px -12px -12px 12px; }
  .home-portrait__img { aspect-ratio: auto; height: 400px; }
  .home-portrait__card { position: relative; left: 0; bottom: 0; width: auto; margin: -40px 24px 0 0; padding: 14px 16px; font-size: 12.5px; }
  .home-portrait__card strong { margin-bottom: 3px; }
  .home-portrait__card .home-available { margin-top: 10px; font-size: 11px; }
  .home-strip { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid #e7e5de; }
  .home-strip__item, .home-strip__item:first-child, .home-strip__item:last-child { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 18px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .home-strip__item:last-child { border-bottom: 0; }
  .home-strip__num { padding-top: 3px; }
  .home-strip__title { margin-top: 0; font-size: 16.5px; letter-spacing: 0; }
  .home-strip__detail { margin-top: 4px; line-height: 1.45; }
  .home-work, .home-process .wrap { display: block; }
  .home-work__grid { margin-top: 36px; }
  .home-work__all, .home-process__cta { display: flex; justify-content: center; margin-top: 44px; }
  .home-process__cta { margin-top: 40px; }
  .home-about__card { margin-top: 32px; }
  .home-process__steps { display: flex; flex-direction: column; gap: 32px; margin: 36px 0 0 8px; padding-left: 34px; border-left: 2px solid #e3e1d9; }
  .home-process__steps::before { content: none; }
  .home-process__steps li { padding-top: 0; }
  .home-process__steps li::before { left: -45px; }
  .home-form { margin-top: 32px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; gap: 32px 20px; }
  .site-footer__brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .site-footer__col--explore { order: 1; }
  .site-footer__col--contact { order: 2; }
  .site-footer__col--services { order: 3; }
  .site-footer__col--plugins { order: 4; }
}

@media (max-width: 860px) {
  .site-header__inner { min-height: 63px; }
  .header-contact { display: none; }
  .site-header { z-index: 60; }
  .menu-toggle { display: block; position: relative; width: 44px; height: 44px; padding: 0; }
  .menu-toggle span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; transition: transform .3s cubic-bezier(.6,0,.2,1), opacity .2s; }
  .menu-toggle span:nth-child(1) { top: 16px; }
  .menu-toggle span:nth-child(2) { top: 21px; }
  .menu-toggle span:nth-child(3) { top: 26px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .primary-nav { position: fixed; z-index: 55; inset: 64px 0 0; display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; background: var(--paper); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s .3s; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
  .primary-nav__list { flex-direction: column; gap: 0; }
  .primary-nav__list li { border-bottom: 1px solid #e3e1d9; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
  .primary-nav.is-open .primary-nav__list li { opacity: 1; transform: none; }
  .primary-nav.is-open li:nth-child(1) { transition-delay: .06s; }
  .primary-nav.is-open li:nth-child(2) { transition-delay: .11s; }
  .primary-nav.is-open li:nth-child(3) { transition-delay: .16s; }
  .primary-nav.is-open li:nth-child(4) { transition-delay: .21s; }
  .primary-nav.is-open li:nth-child(n+5) { transition-delay: .26s; }
  .primary-nav__list a { position: relative; display: block; padding: 16px 32px 16px 0; color: var(--ink); font-size: 22px; font-weight: 600; line-height: normal; letter-spacing: -.015em; }
  .primary-nav__list a::after { content: "→"; position: absolute; right: 0; top: 50%; translate: 0 -50%; color: var(--accent); font-size: 18px; font-weight: 400; }
  .primary-nav__list .current-menu-item > a { color: var(--accent); }
  .primary-nav__hint { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; font-weight: 400; letter-spacing: 0; }
  .primary-nav__panel { display: block; margin-top: auto; padding-top: 24px; opacity: 0; transition: opacity .35s ease; }
  .primary-nav.is-open .primary-nav__panel { opacity: 1; transition-delay: .3s; }
  .primary-nav__panel .home-btn { display: flex; justify-content: center; padding: 16px 20px; font-size: 16px; }
  .primary-nav__contact { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
  .primary-nav__contact a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid #cfcbbf; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
  .primary-nav__contact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .primary-nav__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 13px; text-align: center; }
  .primary-nav__note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #5c9c65; }
  html.nav-open { overflow: hidden; }
  .editorial-heading { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  section { padding: 72px 0; }
  .site-logo svg { height: 26px; }
  .home-eyebrow { margin-bottom: 14px; font-size: 11px; }
  .home-title { font-size: 32px; line-height: 1.1; letter-spacing: -.025em; }
  .home-intro, .home-quote .home-intro { margin-top: 16px; font-size: 16px; }
  .home-section { padding-block: 64px; }
  .home-hero .home-eyebrow { margin-bottom: 16px; font-size: 11px; line-height: 1.5; letter-spacing: .09em; }
  .home-hero__title { font-size: 38px; line-height: 1.08; letter-spacing: -.028em; }
  .home-hero__lead { margin-top: 18px; font-size: 16.5px; }
  .home-hero__actions { display: block; margin-top: 26px; }
  .home-hero__actions .home-btn { display: flex; justify-content: center; padding: 17px 20px; font-size: 16px; }
  .home-hero__actions .home-link { display: inline-block; margin-top: 18px; }
  .home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
  .home-stats dt { font-size: 26px; }
  .home-stats dd { margin-top: 4px; font-size: 12.5px; line-height: 1.35; }
  .home-work__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .case-card__media { aspect-ratio: auto; height: 220px; }
  .case-card__category { margin: 16px 0 8px; font-size: 11px; }
  .case-card__title { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }
  .case-card__footer { margin-top: 16px; padding-top: 12px; font-size: 13.5px; }
  .home-work__all, .home-process__cta { padding: 16px 20px; }
  .home-services__grid { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
  .home-service { padding: 22px 20px; }
  .home-service .home-icon { display: none; }
  .home-service h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: 0; }
  .home-service p { font-size: 14.5px; line-height: 1.55; }
  .home-service a { margin-top: 14px; padding-top: 0; }
  .home-services__closing { display: block; margin-top: 0; padding-top: 0; border-top: 0; }
  .home-services__closing p { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(246,245,240,.13); font-size: 16px; line-height: 1.55; }
  .home-services__closing .home-btn, .home-form__submit .home-btn { display: flex; justify-content: center; margin-top: 18px; padding: 17px 20px; font-size: 16px; }
  .home-about__lead { margin-top: 20px; font-size: 18px; }
  .home-about__text { margin-top: 16px; font-size: 15.5px; line-height: 1.65; }
  .home-about__quote { padding: 26px 22px 22px; }
  .home-about__quote blockquote { font-size: 22px; letter-spacing: -.015em; }
  .home-principles { padding: 22px 22px 26px; }
  .home-principles__title { margin-bottom: 20px; font-size: 16.5px; letter-spacing: 0; }
  .home-principles ul { gap: 18px; }
  .home-principles li { grid-template-columns: 38px 1fr; gap: 12px; font-size: 13.5px; line-height: 1.45; }
  .home-principles strong { margin-bottom: 3px; font-size: 15.5px; }
  .home-principles__tile { width: 38px; height: 38px; }
  .home-principles__tile .home-icon { width: 19px; height: 19px; }
  .home-process__label { margin-bottom: 6px; font-size: 11px; }
  .home-process h3 { margin-bottom: 8px; font-size: 21px; letter-spacing: 0; }
  .home-process__steps p:last-child { font-size: 15px; line-height: 1.6; }
  .home-contact { margin-top: 26px; }
  .home-contact a { padding: 16px 0; font-size: 17px; }
  .home-contact small { margin-bottom: 3px; font-size: 11px; }
  .home-form { gap: 20px; padding: 24px 20px; }
  .home-form__row { grid-template-columns: minmax(0, 1fr); }
  .home-form label:not(.home-form__chips label), .home-form legend { margin-bottom: 7px; }
  .home-form input:not([type="checkbox"]), .home-form select, .home-form textarea { padding: 14px; font-size: 16px; }
  .home-form__chips { gap: 8px; }
  .home-form__chips label { min-height: 44px; box-sizing: border-box; padding: 0 12px; font-weight: 400; }
  .home-form__submit { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .home-form__submit .home-btn { margin-top: 0; }
  .home-form__privacy { max-width: none; font-size: 12.5px; text-align: center; }
  .site-footer { padding: 56px 0 28px; }
  .site-footer__brand p { max-width: none; margin-top: 14px; font-size: 13px; line-height: 1.6; }
  .site-footer__label { margin-bottom: 10px; }
  .site-footer__list li { margin: 0 0 2px; padding: 5px 0; font-size: 13px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; padding-top: 20px; }
}

/* ---- Case study detail: editorial, reusable layout ---- */

.case-single {
  --case-accent: #df4b2b;
  background: var(--paper);
  color: var(--ink);
}

.case-single--pine { --case-accent: #2f6b56; }
.case-single--navy { --case-accent: #465b91; }
.case-single--plum { --case-accent: #825273; }

.case-single__hero {
  padding: clamp(42px, 6vw, 82px) 0 clamp(70px, 9vw, 132px);
  background: #d9e5df;
}

.case-single__back { margin: 0 0 clamp(65px, 10vw, 135px); }
.case-single__back a {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-decoration: none;
}
.case-single__back a:hover { color: var(--case-accent); }

.case-single__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .65fr);
  gap: clamp(60px, 10vw, 155px);
  align-items: start;
}

.case-single__intro .eyebrow { margin-bottom: 24px; color: var(--case-accent); }
.case-single__intro h1 {
  max-width: 930px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(3.45rem, 6.3vw, 7.1rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.case-single__summary {
  max-width: 760px;
  margin: clamp(34px, 5vw, 60px) 0 0;
  color: #39443f;
  font-size: clamp(1.12rem, 1.65vw, 1.42rem);
  line-height: 1.6;
}

.case-single__facts {
  padding: clamp(30px, 4vw, 48px);
  border-radius: 3px;
  background: #18241f;
  color: #fff;
  box-shadow: 0 30px 60px rgba(20, 34, 28, .13);
}
.case-single__facts-title {
  margin: 0 0 32px;
  color: #ef765b;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.case-single__facts div { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.16); }
.case-single__facts span { display: block; margin-bottom: 6px; color: #9fafa7; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.case-single__facts strong { display: block; font-size: 14px; font-weight: 560; line-height: 1.5; }

.case-single__feature {
  height: clamp(560px, 72vw, 960px);
  margin: 0;
  overflow: hidden;
  background: #0b0d0c;
}
.case-single__feature .case-media__img,
.case-single__feature .case-media__fallback { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.case-single__story { padding: clamp(85px, 11vw, 165px) 0; }
.case-single__story-grid {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) minmax(0, 1.58fr);
  gap: clamp(65px, 11vw, 170px);
  align-items: start;
}
.case-single__story-label { position: sticky; top: 120px; padding-top: 8px; }
.case-single__story-label .eyebrow { color: var(--case-accent); }
.case-single__story-label span { display: block; max-width: 18ch; margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.case-single .case-single__body {
  max-width: 850px;
  padding: 0;
  font-size: clamp(1.03rem, 1.2vw, 1.18rem);
  line-height: 1.8;
}
.case-single__body > p { max-width: 72ch; margin: 0 0 26px; }
.case-single__body > p:first-child {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -.032em;
}
.case-single__body h2 {
  margin: clamp(70px, 9vw, 110px) 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.022em;
}
.case-single__body h3 { margin: 45px 0 16px; font-size: clamp(1.4rem, 2vw, 2rem); }
.case-single__body strong { color: var(--ink); font-weight: 800; }
.case-single__body h2 + p strong,
.case-single__body h2 ~ p strong { color: var(--case-accent); }
.case-single__body ul, .case-single__body ol { margin: 25px 0 35px; padding-left: 1.2em; }
.case-single__body li { margin-bottom: 12px; padding-left: 8px; }

.case-single__gallery-section {
  padding: clamp(85px, 11vw, 155px) 0;
  overflow: hidden;
  background: #e9e3d8;
}
.case-single__gallery-heading { max-width: 980px; margin-bottom: clamp(55px, 8vw, 100px); }
.case-single__gallery-heading .eyebrow { color: var(--case-accent); }
.case-single__gallery-heading h2 {
  max-width: 800px;
  margin: 20px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 5.8vw, 6.5rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.022em;
}
.case-single .case-gallery { display: block; margin: 0; }
.case-gallery__chapter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(55px, 10vw, 150px);
  align-items: center;
  padding: clamp(55px, 8vw, 105px) 0;
  border-top: 1px solid #bdb7ad;
}
.case-gallery__chapter:first-child { padding-top: 0; border-top: 0; }
.case-gallery__chapter:nth-child(even) .case-gallery__chapter-copy { order: 2; }
.case-gallery__chapter:nth-child(even) .case-gallery__item { order: 1; }
.case-gallery__chapter-copy { max-width: 470px; }
.case-gallery__chapter-index {
  display: block;
  color: var(--case-accent);
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.022em;
}
.case-gallery__chapter-copy h3 {
  margin: clamp(24px, 4vw, 45px) 0 18px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.2vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.case-gallery__chapter-copy p { max-width: 48ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.case-single .case-gallery__item {
  aspect-ratio: auto;
  margin: 0;
  overflow: visible;
  border-radius: 0;
}
.case-single .case-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 55px rgba(32, 27, 20, .12);
}
.case-gallery__item figcaption { padding-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.case-single__cta { padding: clamp(90px, 12vw, 175px) 0; border: 0; background: #10251f; color: #fff; }
.case-single__cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px 80px; align-items: end; }
.case-single__cta .eyebrow { grid-column: 1 / -1; margin: 0; color: #ef765b; }
.case-single__cta h2 { max-width: 900px; margin: 0; color: #fff; font-family: var(--font-sans); font-size: clamp(3rem, 5.8vw, 6.4rem); font-weight: 800; line-height: .96; letter-spacing: -.022em; }
.case-single__cta .btn-primary { margin-bottom: 8px; white-space: nowrap; }

@media (max-width: 900px) {
  .case-single__hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .case-single__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
  .case-single__facts-title { grid-column: 1 / -1; }
  .case-single__story-grid { grid-template-columns: 1fr; gap: 45px; }
  .case-single__story-label { position: static; }
  .case-single__story-label span { max-width: none; }
  .case-single__cta-grid { grid-template-columns: 1fr; align-items: start; }
  .case-single__cta .btn-primary { width: max-content; }
}

@media (max-width: 640px) {
  .case-single__hero { padding-bottom: 70px; }
  .case-single__back { margin-bottom: 65px; }
  .case-single__intro h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .case-single__facts { display: block; padding: 28px; }
  .case-single__feature { height: 68vw; min-height: 310px; }
  .case-gallery__chapter { grid-template-columns: 1fr; gap: 35px; padding: 58px 0; }
  .case-gallery__chapter:nth-child(even) .case-gallery__chapter-copy,
  .case-gallery__chapter:nth-child(even) .case-gallery__item { order: initial; }
  .case-gallery__chapter-index { font-size: 2.5rem; }
  .case-gallery__chapter-copy h3 { margin-top: 20px; }
  .case-single .case-gallery__item img { width: min(100%, 430px); margin: 0 auto; }
}

@media (hover: none) {
  .work-item__footer span { color: var(--accent); }
  .portfolio-card__label { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- About page: built from the homepage blocks ---- */

.about-hero { padding-block: 64px 96px; }
.about-story { background: #fff; border-top: 1px solid #e7e5de; }
.about-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 96px; align-items: start; }
.about-history { margin: 0; padding: 0; list-style: none; }
.about-history li { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.about-history h3 { margin: 0 0 14px; color: var(--ink); font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.about-history p:not(.home-process__label) { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; }
.home-service .home-eyebrow { margin-bottom: 14px; }
.home-service .home-eyebrow + h3 { margin-top: 0; }
.about-reach__card .home-principles { padding-top: 28px; }

@media (max-width: 1023px) {
  .about-hero { padding-block: 36px 64px; }
  .about-story__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 640px) {
  .about-history h3 { font-size: 21px; }
  .about-history p:not(.home-process__label) { font-size: 15px; line-height: 1.6; }
  .about-reach__card .home-btn { display: flex; justify-content: center; }
}

/* ---- Services page ---- */

.services-page-hero { padding: clamp(78px, 8vw, 125px) 0; background: var(--paper); }
.services-page-hero__grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(60px, 9vw, 145px); align-items: end; }
.services-page-hero h1 { max-width: 800px; margin: 0; color: var(--ink); font-size: clamp(3.5rem, 6.2vw, 6.6rem); line-height: .94; letter-spacing: -.022em; text-wrap: balance; }
.services-page-hero__aside { padding-bottom: 8px; }
.services-page-hero__aside > p { margin: 0 0 18px; max-width: 48ch; font-size: 15px; line-height: 1.72; }
.services-page-hero__aside .text-link { margin-top: 12px; }

.services-index { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.services-index .wrap { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.services-index a { flex: 1 0 190px; display: flex; align-items: center; min-height: 74px; padding: 16px 22px; border-right: 1px solid var(--line); color: var(--ink); font-size: 11px; font-weight: 750; line-height: 1.35; text-decoration: none; }
.services-index a:first-child { padding-left: 0; }
.services-index a:last-child { border-right: 0; }
.services-index a:hover { color: var(--accent); }

.services-detail { padding: 0; background: var(--paper); }
.service-detail { scroll-margin-top: 100px; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(60px, 9vw, 140px); padding: clamp(68px, 8vw, 115px) 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail__heading h2 { max-width: 13ch; margin: 0; color: var(--ink); font-size: clamp(2.75rem, 4.6vw, 5rem); line-height: .98; letter-spacing: -.022em; text-wrap: balance; }
.service-detail__intro { max-width: 49ch; margin: 28px 0 0; color: var(--ink); font-size: clamp(1.05rem, 1.45vw, 1.25rem); line-height: 1.55; }
.service-detail__body > p:first-child { max-width: 65ch; margin: 0 0 35px; font-size: 15px; line-height: 1.78; }
.service-detail__body h3 { margin: 0 0 14px; color: var(--ink); font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-detail__body ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-detail__body li { position: relative; padding: 14px 0 14px 25px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 650; }
.service-detail__body li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 9px; height: 2px; background: var(--accent); }
.service-detail__stack { margin: 26px 0 0; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }

.engagements-section { background: var(--navy-deep); color: #b8c4be; }
.engagements-section .editorial-heading h2 { color: #fff; }
.engagements-section .editorial-heading > p { color: #b8c4be; }
.engagements-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.25); }
.engagements-grid article { min-height: 300px; padding: 35px clamp(24px, 3vw, 42px) 20px; border-right: 1px solid rgba(255,255,255,.16); }
.engagements-grid article:first-child { padding-left: 0; }
.engagements-grid article:last-child { border-right: 0; }
.engagements-grid span { color: #e9785e; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.engagements-grid h3 { margin: 65px 0 16px; color: #fff; font-size: clamp(1.65rem, 2.6vw, 2.7rem); line-height: 1.05; }
.engagements-grid p { margin: 0; max-width: 38ch; font-size: 13.5px; line-height: 1.72; }

.services-cta { background: #e8e3d7; }
.services-cta__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(60px, 8vw, 120px); align-items: center; padding-top: clamp(52px, 6vw, 80px); padding-bottom: clamp(52px, 6vw, 80px); border-top: 1px solid rgba(17,19,15,.32); border-bottom: 1px solid rgba(17,19,15,.32); }
.services-cta h2 { max-width: 650px; margin: 0; color: var(--ink); font-size: clamp(2.6rem, 4vw, 4.35rem); line-height: 1; letter-spacing: -.022em; text-wrap: balance; }
.services-cta__content { padding-left: clamp(30px, 4vw, 62px); border-left: 1px solid rgba(17,19,15,.2); }
.services-cta__content > p { max-width: 49ch; margin: 0 0 30px; font-size: 15px; line-height: 1.75; }
.services-cta__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.services-cta__email { display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-size: 13px; font-weight: 750; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.services-cta__email span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }

@media (max-width: 900px) {
  .services-page-hero__grid, .service-detail, .services-cta__grid { grid-template-columns: 1fr; }
  .services-page-hero__grid, .service-detail, .services-cta__grid { gap: 45px; }
  .services-cta__content { padding: 0; border-left: 0; }
  .service-detail__heading h2 { max-width: 16ch; }
}

@media (max-width: 640px) {
  .services-page-hero { padding: 55px 0 70px; }
  .services-page-hero h1 { font-size: clamp(3rem, 14vw, 4.55rem); }
  .services-index a { flex-basis: 155px; min-height: 68px; padding: 14px 18px; font-size: 10px; }
  .service-detail { padding: 70px 0; gap: 32px; }
  .service-detail__heading h2 { font-size: clamp(2.65rem, 12vw, 3.8rem); }
  .engagements-grid { grid-template-columns: 1fr; }
  .engagements-grid article, .engagements-grid article:first-child { min-height: 0; padding: 30px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .engagements-grid article:last-child { border-bottom: 0; }
  .engagements-grid h3 { margin-top: 30px; }
  .services-cta__actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .services-cta__email { width: max-content; }
}

@media (max-width: 640px) {
  .incubation-case__hero { padding: 55px 0 70px; }
  .incubation-case__hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .incubation-case__summary dl, .case-narrative__copy, .case-engineering__list, .case-outcome__grid > div:last-child { grid-template-columns: 1fr; }
  .incubation-case__summary dl { gap: 18px; }
  .incubation-case__summary dl div { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .case-narrative__copy { gap: 22px; }
  .case-engineering__list article, .case-engineering__list article:nth-child(even) { min-height: 0; padding: 28px 0; border-right: 0; }
  .case-outcome__grid > div:last-child { gap: 22px; }
  .browser-frame__viewport { height: 360px; }
  .case-system__grid { grid-template-columns: 1fr; }
  .case-system article, .case-system article:first-child { min-height: 0; padding: 30px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .case-system article:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .case-system h3 { margin-top: 30px; }
  .case-mobile-showcase__grid { grid-template-columns: 1fr; gap: 35px; }
  .case-mobile-showcase figure, .case-mobile-showcase figure:nth-child(2) { transform: none; }
  .case-mobile-showcase figure img { width: min(100%, 420px); margin: 0 auto; }
}
.nowrap { white-space: nowrap; }

/* ---- Plugins: /plugins/ and single plugin pages (reuse the homepage blocks) ---- */

.plugins-hero { padding-block: 96px 56px; }
.plugins-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 120px; }
.plugin-card { display: flex; flex-direction: column; padding: 32px; background: #fff; border: 1px solid #e3e1d9; line-height: normal; }
.plugin-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plugin-icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 18px; font-weight: 700; object-fit: cover; }
.plugin-status { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #efede6; color: var(--muted); font-size: 12px; font-weight: 650; }
.plugin-status.is-live { background: #e4efe5; color: #2f6b3a; }
.plugin-card__category { margin: 24px 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plugin-card__title { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; }
.plugin-card__title a { color: var(--ink); text-decoration: none; }
.plugin-card__text { flex: 1; margin: 12px 0 0; font-size: 15px; line-height: 1.6; }
.plugin-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.plugin-card__download { color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }

.plugin-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-block: 64px 96px; line-height: normal; }
.plugin-crumbs { margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.plugin-crumbs a { color: var(--ink); text-decoration: none; }
.plugin-hero__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.plugin-hero__head .home-eyebrow { margin: 0; }
.plugin-hero__head .plugin-icon { width: 48px; height: 48px; border-radius: 10px; font-size: 16px; }
.plugin-stats { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.plugin-stats dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plugin-stats dd { margin: 6px 0 0; color: var(--ink); font-size: 18px; font-weight: 600; }
.plugin-video { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); box-shadow: 0 30px 70px rgba(32,28,21,.12); }
.plugin-video iframe, .plugin-video video, .plugin-video img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.plugin-video__play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.plugin-video__play span { position: absolute; inset: 50% auto auto 50%; width: 72px; height: 72px; translate: -50% -50%; border-radius: 50%; background: var(--accent); }
.plugin-video__play span::after { content: ""; position: absolute; inset: 50% auto auto 54%; translate: -50% -50%; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.plugin-placeholder { display: grid; place-items: center; height: 100%; min-height: 200px; box-sizing: border-box; padding: 24px; background: #ece8de; border: 1px dashed #cfcbbf; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; text-align: center; }

.plugin-features { background: #fff; border-top: 1px solid #e7e5de; }
.plugin-prose { max-width: 680px; margin-top: 22px; font-size: 18px; line-height: 1.6; }
.plugin-prose > * { margin: 0 0 14px; }
.plugin-features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 56px 0 0; padding: 0; list-style: none; }
.plugin-features__grid li { padding: 28px; border: 1px solid #e3e1d9; border-top: 2px solid var(--accent); background: var(--paper); }
.plugin-features__grid h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; letter-spacing: -.01em; }
.plugin-features__grid p { margin: 0; font-size: 15px; line-height: 1.6; }

.plugin-screens__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.plugin-screens__grid figure { margin: 0; }
.plugin-screens__grid img { width: 100%; height: auto; border: 1px solid #e3e1d9; background: #fff; }
.plugin-screens__grid figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.plugin-screens__grid figcaption strong { color: var(--ink); }
.plugin-screens .plugin-placeholder { aspect-ratio: 16 / 10; height: auto; }

.plugin-compare { background: var(--navy-deep); }
.plugin-compare .home-title { color: var(--paper); }
.plugin-compare__scroll { margin-top: 48px; overflow-x: auto; }
.plugin-compare__table { width: 100%; border-collapse: collapse; }
.plugin-compare__table th, .plugin-compare__table td { padding: 18px 20px; border-bottom: 1px solid rgba(246,245,240,.13); text-align: left; }
.plugin-compare__table thead th { color: #8d9086; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plugin-compare__table tbody th { color: var(--paper); font-size: 16px; font-weight: 500; }
.plugin-compare__table td { width: 180px; color: #c3cdc8; font-size: 15px; }
.plugin-compare__yes::before { content: "✓"; color: var(--accent-light); font-size: 18px; font-weight: 700; }
.plugin-compare__no::before { content: "–"; color: #6b7a74; font-size: 18px; }
.plugin-compare__pro { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 40px; }
.plugin-compare__pro p { margin: 0; color: #c3cdc8; font-size: 18px; }
.plugin-compare__pro .home-btn { flex: none; }

.plugin-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: start; }
.plugin-details__title { margin: 0 0 24px; color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.plugin-requirements { margin: 0; }
.plugin-requirements div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plugin-requirements dd { margin: 0; color: var(--ink); font-weight: 600; }
.plugin-links { margin: 28px 0 0; padding: 0; list-style: none; }
.plugin-links li { margin-bottom: 12px; }
.plugin-links a { color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--ink); }
.plugin-faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.plugin-faq details:first-child { border-top: 1px solid var(--line); }
.plugin-faq summary { display: flex; justify-content: space-between; gap: 16px; color: var(--ink); font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.plugin-faq summary::-webkit-details-marker { display: none; }
.plugin-faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.plugin-faq details[open] summary::after { content: "–"; }
.plugin-faq p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; }

.plugins-cta { background: #ece8de; }
.plugins-cta__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.plugins-cta__inner .home-btn { flex: none; }

@media (max-width: 1023px) {
  .plugins-list, .plugin-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plugin-hero, .plugin-details { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 36px 64px; }
  .plugin-details { padding-block: 64px; }
}

@media (max-width: 640px) {
  .plugins-hero { padding-block: 40px 32px; }
  .plugins-list, .plugin-features__grid, .plugin-screens__grid { grid-template-columns: minmax(0, 1fr); }
  .plugins-list { gap: 16px; padding-bottom: 64px; }
  .plugin-card { padding: 24px; }
  .plugin-card__title { font-size: 21px; }
  .plugin-stats dd { font-size: 16px; }
  .plugin-prose { font-size: 16px; }
  .plugin-features__grid { margin-top: 32px; gap: 12px; }
  .plugin-features__grid li { padding: 22px 20px; }
  .plugin-screens__grid { margin-top: 32px; gap: 24px; }
  .plugin-compare__scroll { margin-top: 32px; }
  .plugin-compare__table th, .plugin-compare__table td { padding: 14px 12px; }
  .plugin-compare__table td { width: auto; }
  .plugin-compare__pro, .plugins-cta__inner { flex-direction: column; align-items: stretch; }
  .plugin-compare__pro .home-btn, .plugins-cta__inner .home-btn { justify-content: center; padding: 17px 20px; font-size: 16px; }
  .plugin-details__title { font-size: 22px; }
}

/* ---- Case studies archive (homepage case cards) ---- */

.cases-list { padding-bottom: 120px; }
.cases-list .pagination { margin-top: 64px; }

@media (max-width: 640px) {
  .cases-list { padding-bottom: 64px; }
}
