/* proch.io */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111;
  --bg-card: #0f0f0f;
  --text: #e8e6e3;
  --text-muted: #a8a39c;
  --text-dim: #7a756f;
  --border: #2a2a2a;
  --border-light: #1c1c1c;
  --accent: #d4cfc6;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --max-width: 980px;
  --header-h: 76px;
  --radius: 3px;
  --transition: 0.18s ease;
  --space-section: clamp(6rem, 15vw, 11rem);
  --space-section-tight: clamp(4.5rem, 11vw, 8rem);
  --text-base: 1.0625rem;
  --text-sm: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.3125rem;
  --leading: 1.75;
  --leading-tight: 1.65;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

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

.container {
  width: min(100% - clamp(2rem, 8vw, 5.5rem), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
  padding-block: 0.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

.nav .btn-primary {
  color: var(--bg);
}

.nav .btn-primary:hover {
  color: var(--bg);
}

/* Sections */
.section {
  padding: var(--space-section) 0;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border-light);
}

.section-tight {
  padding: var(--space-section-tight) 0;
}

.section-cta {
  padding-top: var(--space-section);
  padding-bottom: calc(var(--space-section) + 2rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.section-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: var(--leading);
}

.section-header {
  margin-bottom: clamp(3.25rem, 9vw, 5rem);
}

/* Hero */
.hero {
  padding: clamp(4.5rem, 15vw, 9.5rem) 0 clamp(5rem, 13vw, 8.5rem);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: clamp(3.5rem, 9vw, 6rem);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.75rem;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0 0 2.5rem;
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 34rem;
  line-height: var(--leading);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-portrait img {
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  border-radius: var(--radius);
}

/* Strip */
.strip {
  padding: clamp(4rem, 11vw, 6.5rem) 0;
  border-bottom: 1px solid var(--border-light);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.75rem 3.25rem;
  padding: 0;
}

.strip-item {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-tight);
}

.strip-item strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.65rem, 4.5vw, 2.25rem);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-tight);
}

/* Work */
.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.25rem);
}

.work-card {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.work-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.work-thumb img {
  max-height: 100px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.work-thumb-logo {
  background: transparent;
  border: none;
  padding: 0.75rem;
}

.work-list--compact {
  gap: 1.15rem;
}

.work-card--compact {
  grid-template-columns: minmax(96px, 128px) 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.35rem;
}

.work-card--compact .work-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
}

.work-card--compact .work-meta {
  margin-bottom: 0.35rem;
}

.work-card--compact .work-link {
  margin-top: 0.65rem;
}

.work-summary {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-tight);
  max-width: 38rem;
}

.work-thumb-preview {
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-light);
}

.work-thumb-preview img {
  width: 100%;
  height: 72px;
  max-height: 72px;
  object-fit: cover;
  object-position: top left;
}

.work-thumb-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.work-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.65rem;
}

.work-meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
}

.work-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1.15rem;
}

.work-facts {
  margin: 0;
}

.work-facts > div {
  margin-bottom: 1.35rem;
}

.work-facts > div:last-child {
  margin-bottom: 0;
}

.work-facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.work-facts dd {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-tight);
}

.work-link {
  display: inline-block;
  margin-top: 1.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Approach */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

.steps p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-tight);
}

/* About */
.about-inner .section-title {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.about-copy p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 40rem;
  font-size: var(--text-md);
  line-height: var(--leading);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* CTA */
.cta-block {
  text-align: center;
  padding: clamp(4rem, 11vw, 7rem) clamp(1.75rem, 5vw, 3.25rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.8vw, 2.125rem);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.cta-block p {
  margin: 0 auto 2.25rem;
  max-width: 30rem;
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: var(--leading);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-legal a {
  color: var(--text-muted);
  margin-left: 1rem;
}

.footer-legal a:hover {
  color: var(--text);
}

/* Case studies */
.case {
  padding: clamp(3rem, 10vw, 5rem) 0 clamp(4rem, 12vw, 7rem);
}

.case-back {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-back a {
  color: var(--text-muted);
}

.case-back a:hover {
  color: var(--text);
}

.case-header {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.case-mark {
  display: block;
  width: auto;
  max-height: 56px;
  margin: 0 0 1.25rem;
}

.case-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.case-lead {
  margin: 0;
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: var(--leading);
}

.case-figure {
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.case-figure figcaption {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid var(--border-light);
  line-height: 1.5;
}

.case-figure--portrait {
  max-width: 420px;
  margin-inline: auto;
}

.case-figure--landscape {
  max-width: 100%;
}

.case-prose {
  max-width: 40rem;
  margin-inline: auto;
}

.case-prose section {
  margin-bottom: 2rem;
}

.case-prose section:last-child {
  margin-bottom: 0;
}

.case-prose h2 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.case-prose p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

/* Responsive */
@media (min-width: 900px) {
  .strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .hero-content {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-portrait {
    order: -1;
  }

  .hero-portrait img {
    max-width: 200px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .work-card,
  .work-card--compact {
    grid-template-columns: 1fr;
  }

  .work-card--compact .work-thumb {
    max-width: 200px;
    margin-inline: auto;
  }

  .work-thumb {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .strip-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-section-tight) 0;
  }

  .section-cta {
    padding-bottom: calc(var(--space-section-tight) + 1.5rem);
  }

  .hero {
    padding: clamp(3.5rem, 12vw, 6rem) 0 clamp(3.5rem, 10vw, 5rem);
  }

  .strip {
    padding: clamp(3rem, 12vw, 5rem) 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
