/*
Theme Name: LWH 2026
Description: Custom Theme for Local Web Hub (by Local Web Hub)
Theme URI: https://localwebhub.com
Version: 1.6.2
Author: Dmitriy Agadzhanov
Author URI: https://localwebhub.com
*/

/* 
add font family to reset.min.css
*/

:root {
	/* Paper palette (locked) */
	--bg: #FAFAFA;
	--bg-2: #F0F0F0;
	--fg: #000000;
	--fg-2: #404040;
	--fg-3: #8A8A8A;
	--line: #E0E0E0;
	--accent: #FF3D7F;
	--accent-2: #000000;
	--accent-ink: #FAFAFA;

	/* Editorial typography (locked) */
	--font-display: 'Instrument Serif', Georgia, serif;
	--font-body: 'Inter', -apple-system, system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
	--display-weight: 400;

	/* Theme layout */
	--theme-menu-height: 50px;
	--theme-content-width: 1400px;
	--theme-content-padding: 18px;

	/* Shared aspect ratio for work cards, logo frames, and case-study hero
	   images. Change here to retune card proportions site-wide. */
	--work-image-ratio: 16 / 10;

	/* Responsive spacing - override WordPress preset spacing */
	--wp--preset--spacing--small: 15px;
	--wp--preset--spacing--medium: 30px;
	--wp--preset--spacing--large: 60px;
	--wp--preset--spacing--x-large: 90px;
}

@media (min-width: 992px) {
	:root {
		--theme-content-padding: 28px;
		--theme-menu-height: 63px;
		/* Desktop spacing - override WordPress preset spacing */
		--wp--preset--spacing--small: 30px;
		--wp--preset--spacing--medium: 60px;
		--wp--preset--spacing--large: 90px;
		--wp--preset--spacing--x-large: 120px;
	}
}

/* --------------------------------------------------------------------------
   Reset & base (palette/type tokens are defined in :root above)
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  /* overflow-x: clip doesn't create a scroll context, so position: sticky keeps working. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  background: var(--bg) !important;
}

button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }

::selection { background: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   Type utilities
   -------------------------------------------------------------------------- */
.mono  { font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace; font-feature-settings: "ss02", "zero"; }
.serif { font-family: 'Instrument Serif', 'Fraunces', Georgia, serif; font-weight: 400; }
.sans-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }

.lwh-italic-accent {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  color: var(--accent);
}
.lwh-italic-muted {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  color: var(--fg-3);
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes blink     { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes marquee   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sweep     { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes pulse-dot { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes rotate    { to { transform: rotate(360deg); } }

.cursor::after {
  content: '▊';
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

/* Reusable status dot (availability / activity indicator) */
.lwh-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #2FA774;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.lwh-status-dot--sm { width: 6px; height: 6px; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.lwh-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}
.lwh-container--wide { max-width: 1600px; }

/* Section padding helpers */
.lwh-section                 { padding: 100px 0; position: relative; }
.lwh-section--lg             { padding: 120px 0; }
.lwh-section--hero,.page-hero--section { padding: 100px 0 60px; position: relative; overflow: hidden; }
.lwh-section--page-hero      { padding: 100px 0 60px; }
.lwh-section--page-hero-tight{ padding: 100px 0 40px; }
.lwh-section--page-hero-lg   { padding: 100px 0 80px; }
.lwh-section--page-hero-flush{ padding: 100px 0 60px; }
.lwh-section--muted          { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lwh-section--divided-top    { border-top: 1px solid var(--line); padding: 80px 0; }
.lwh-section--divided-bottom { border-bottom: 1px solid var(--line); }
.lwh-section--padded-sm      { padding: 80px 0; }
.lwh-section--cta            { padding: 80px 0; }
.lwh-section--work-list      { padding-bottom: 80px; }
.lwh-section--work-longtail  { padding: 80px 0; border-top: 1px solid var(--line); }
.lwh-section--contact-form   { padding-bottom: 100px; }

/* Grid lines decorative background */
.lwh-gridlines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Noise overlay */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /></filter><rect width='100%25' height='100%25' filter='url(%23n)' /></svg>");
}

/* --------------------------------------------------------------------------
   Typography primitives (Label, Display)
   -------------------------------------------------------------------------- */
.lwh-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lwh-label--accent { color: var(--accent); }
.lwh-label::before {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
}

.lwh-display {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--display-weight, 700);
  line-height: 0.98;
  letter-spacing: var(--display-tracking, -0.03em);
  text-wrap: balance;
}
.lwh-display--serif { font-family: 'Instrument Serif', serif; }
.lwh-display--s0 { font-size: clamp(40px, 5vw, 72px); }
.lwh-display--s1 { font-size: clamp(56px, 8vw, 128px); }
.lwh-display--s2 { font-size: clamp(36px, 4vw, 56px); }
.lwh-display--s3 { font-size: clamp(24px, 2.4vw, 36px); }

/* Page-hero lead paragraph */
.lwh-lead {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 700px;
  line-height: 1.55;
}
.lwh-lead--lg { font-size: 20px; }

/* Tag/chip — small mono pill used for stack items, deliverables, post-tags */
.lwh-chip {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  display: inline-block;
}
.lwh-chip--xs { font-size: 10px; padding: 3px 8px; color: var(--fg-3); }
.lwh-chip--interactive {
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  background: transparent;
  font-family: var(--font-mono, monospace);
}
.lwh-chip--interactive:hover { border-color: var(--fg-2); color: var(--fg); }
.lwh-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.lwh-marquee {
  overflow: hidden;
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.lwh-marquee__track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: marquee var(--marquee-speed, 40s) linear infinite;
  width: fit-content;
}
.lwh-marquee__item {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 18px;
}
.lwh-marquee__item--accent { color: var(--accent); }
.lwh-marquee__item::before {
  content: "";
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Arrow button
   -------------------------------------------------------------------------- */
.lwh-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.lwh-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.lwh-btn__arrow { display: inline-block; transition: transform 0.2s ease; }
.lwh-btn:hover .lwh-btn__arrow { transform: translateX(4px); }

.lwh-btn--filled {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}
.lwh-btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}

/* Minimal text link (used as "start over", "all projects →") */
.lwh-textlink {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 16px;
}
.lwh-textlink--sm { font-size: 11px; color: var(--fg-3); }

/* --------------------------------------------------------------------------
   Cards & service rows
   -------------------------------------------------------------------------- */
/* Image placeholder */
.lwh-image-placeholder {
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 10px, var(--bg) 10px 20px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lwh-image-placeholder__glow {
  position: absolute; inset: 0;
}
.lwh-image-placeholder__label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--fg-3);
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Service row (home page, expandable) */
.lwh-service-row {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  cursor: pointer;
}
.lwh-service-header {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 24px; align-items: start;
}
.lwh-service-num {
  font-family: var(--font-mono, monospace);
  font-size: 12px; color: var(--accent);
}
.lwh-service-body { min-width: 0; }
.lwh-service-title-row {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
}
.lwh-service-title {
  font-size: clamp(28px, 5vw, 40px);
  font-family: var(--font-display, sans-serif);
  font-weight: var(--display-weight, 700);
  letter-spacing: -0.03em;
  line-height: 1.05;
  flex: 1 1 100%;
}
.lwh-service-kicker {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex: 0 0 auto;
}
.lwh-service-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.lwh-service-expand.is-open {
  max-height: 800px;
  opacity: 1;
}
.lwh-service-row .lwh-service-title-row { margin-bottom: 0; }
.lwh-service-row .lwh-service-expand.is-open { margin-top: 16px; }
.lwh-service-desc {
  font-size: 16px; color: var(--fg-2); line-height: 1.6;
  margin-bottom: 16px; max-width: 600px;
}
.lwh-service-tags {
  display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 8px;
}
.lwh-service-plus {
  font-family: var(--font-mono, monospace);
  font-size: 20px; color: var(--fg-3);
  transition: transform 0.3s ease;
}
.lwh-service-row.is-open .lwh-service-plus { transform: rotate(45deg); }

/* Work card */
.lwh-work-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.lwh-work-card:hover {
  transform: translateY(-4px);
}
.lwh-work-card__body { padding: 24px 28px 28px; }
.lwh-work-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--fg-3);
}
.lwh-work-card__metric { color: var(--accent); }
.lwh-work-card__title {
  font-size: 22px;
  font-family: var(--font-display, sans-serif);
  font-weight: var(--display-weight, 700);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.1;
}
.lwh-work-card__title a {
  color: inherit;
  text-decoration: none;
}
.lwh-work-card__blurb {
  font-size: 14px; color: var(--fg-2); line-height: 1.5;
  margin-bottom: 18px;
}

.lwh-work-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (min-width: 1100px) {
  .lwh-work-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Industries grid (inset hairline tile layout) */
.lwh-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lwh-tile {
  background: var(--bg);
  color: var(--fg);
  padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 180px;
  transition: transform 0.3s ease;
}
.lwh-tile:hover { transform: scale(1.02); }
.lwh-tile--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.lwh-tile__num {
  font-size: 40px;
  font-family: var(--font-display, sans-serif);
  font-weight: var(--display-weight, 700);
  letter-spacing: -0.04em;
  line-height: 1;
}
.lwh-tile__num-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.5;
}
.lwh-tile--accent .lwh-tile__num-label { opacity: 0.8; }
.lwh-tile__name {
  font-size: 17px; font-weight: 600; margin-bottom: 4px;
}
.lwh-tile__note {
  font-size: 12px; opacity: 0.6;
  font-family: var(--font-mono, monospace);
}
.lwh-tile--accent .lwh-tile__note { opacity: 0.85; }

/* Two-col stats grid (About page) */
.lwh-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.lwh-stat { padding: 40px 28px; background: var(--bg); }
.lwh-stat__num {
  font-size: 56px;
  font-family: var(--font-display, sans-serif);
  font-weight: var(--display-weight, 700);
  letter-spacing: -0.04em;
  line-height: 1;
}
.lwh-stat__label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  margin-top: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Deliverables grid (Services page — 2-col inset hairlines) */
.lwh-deliverables-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 20px;
}
.lwh-deliverable {
  padding: 24px 28px; background: var(--bg);
  font-size: 16px;
}
.lwh-deliverable__num {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--accent);
  margin-right: 10px;
}

/* Approach / How-we-work numbered lists */
.lwh-numbered-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.lwh-numbered-item {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.lwh-numbered-item__num {
  font-family: var(--font-mono, monospace);
  font-size: 13px; color: var(--accent);
  margin-bottom: 14px;
}
.lwh-numbered-item__title {
  font-size: 24px;
  font-family: var(--font-display, sans-serif);
  font-weight: var(--display-weight, 700);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.lwh-numbered-item__desc {
  font-size: 15px; color: var(--fg-2); line-height: 1.55;
}

/* Inline numbered rows (About — How we work) */
.lwh-inline-list { display: flex; flex-direction: column; }
.lwh-inline-list__item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: grid; grid-template-columns: 40px 1fr; gap: 20px;
}
.lwh-inline-list__num {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--accent);
}
.lwh-inline-list__title {
  font-size: 20px;
  font-family: var(--font-display, sans-serif);
  font-weight: var(--display-weight, 700);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.lwh-inline-list__desc {
  font-size: 14px; color: var(--fg-2); line-height: 1.55;
}

/* Two-column sticky layout (Home services overview, Services detail sections) */
.lwh-two-col {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
}
.lwh-two-col--wide-gap { gap: 80px; }
.lwh-two-col--flipped  { grid-template-columns: 2fr 1fr; }
.lwh-two-col--even     { grid-template-columns: 1fr 1fr; }
.lwh-two-col__sticky   { position: sticky; top: 100px; }

/* Home — section heading rows (flex between label+display and right CTA) */
.lwh-heading-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 60px;
}

/* Featured-work / CTA card */
.lwh-cta-card {
  border: 1px solid var(--line);
  padding: 80px 60px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg-2);
}
.lwh-cta-card__glow {
  position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px;
  background: var(--accent); opacity: 0.1;
  border-radius: 50%;
  filter: blur(40px);
}

/* --------------------------------------------------------------------------
   Filters (Work page)
   -------------------------------------------------------------------------- */
.lwh-filter-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lwh-filter {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
}
.lwh-filter:hover { border-color: var(--fg-2); color: var(--fg); }
.lwh-filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.lwh-filter__count { margin-left: 6px; opacity: 0.7; }

/* Long-tail list (Work page) */
.lwh-longtail {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px 40px;
}
.lwh-longtail__row {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--fg-2);
}
.lwh-longtail__row-mark {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--fg-3);
}

/* --------------------------------------------------------------------------
   Blog / Notes
   -------------------------------------------------------------------------- */
/* Notes hero */
.notes-hero--display {
  margin-top: 24px;
  margin-bottom: 28px;
  max-width: 1200px;
}

/* Featured post */
.lwh-post-featured {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: grid; grid-template-columns: 2fr 3fr;
  gap: 60px; margin-bottom: 40px;
  align-items: start;
}
.lwh-post-featured__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.lwh-post-featured__image--placeholder {
  background: var(--bg-2);
  border: 1px solid var(--line);
}
a.lwh-post-featured__image img {
  transition: transform 0.6s ease;
}
a.lwh-post-featured__image:hover img {
  transform: scale(1.02);
}
.lwh-post-featured__body { min-width: 0; }
.lwh-post-featured__title {
  margin-bottom: 20px;
}
.lwh-post-featured__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.lwh-post-featured__title a:hover { color: var(--accent); }

/* Notes meta */
.lwh-post-meta {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--fg-3);
  flex-wrap: wrap;
}
.lwh-post-meta__tag { color: var(--accent); }
.lwh-post-excerpt {
  font-size: 17px; color: var(--fg-2);
  line-height: 1.55; margin-bottom: 24px;
}

/* Notes list */
.lwh-post-list { border-top: 1px solid var(--line); }
.lwh-post-row {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 28px 30px 28px 0;
  display: grid;
  grid-template-columns: 120px 120px 1fr 80px;
  gap: 30px; align-items: baseline;
  cursor: pointer;
  transition: background 0.2s ease, padding 0.2s ease;
}
.lwh-post-row:hover {
  background: var(--bg-2);
  padding-left: 20px;
  padding-right: 10px;
}
.lwh-post-row__date {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--fg-3);
  text-transform: uppercase;
}
.lwh-post-row__tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--accent);
}
.lwh-post-row__title {
  font-size: 22px;
  font-family: var(--font-display, sans-serif);
  font-weight: var(--display-weight, 700);
  letter-spacing: -0.02em;
  line-height: 1.15;
  min-width: 0;
}
.lwh-post-row__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.lwh-post-row:hover .lwh-post-row__title a { color: var(--accent); }
.lwh-post-row__read {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--fg-3);
  text-align: right;
  transition: color 0.2s ease;
}
.lwh-post-row:hover .lwh-post-row__read { color: var(--fg); }

/* --------------------------------------------------------------------------
   Single post page (minimalist — no images, no comments)
   -------------------------------------------------------------------------- */
.lwh-single {
  padding: 80px 0 120px;
}
.lwh-single__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 0;
  margin-left: -2px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-3);
  cursor: pointer;
  transition: color 0.2s ease;
}
.lwh-single__back:hover { color: var(--fg); }
.lwh-single__back-arrow {
  transition: transform 0.2s ease;
}
.lwh-single__back:hover .lwh-single__back-arrow {
  transform: translateX(-4px);
}

.lwh-single__article {
  max-width: 720px;
  margin: 64px auto 0;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 28px;
}
.entry-meta__tag { color: var(--accent); }
.entry-meta__tag a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.entry-meta__tag a:hover { opacity: 0.7; }
.entry-meta__dot {
  opacity: 0.4;
}

.entry-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--display-weight, 700);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 36px;
  padding-bottom: 4px;
}

.entry-byline {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-bottom: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.entry-byline__name { color: var(--fg); }

/* Featured image — single blog post. The article column already caps at 720px,
   so the image inherits that ceiling; here we just zero out figure margins
   and let the image span the full column. */
.entry-featured {
  margin: 0 0 48px;
}
.entry-featured img {
  display: block;
  width: 100%;
  height: auto;
}
.entry-featured__caption {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.entry-content {
  font-family: 'Instrument Serif', 'Fraunces', Georgia, serif;
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--fg);
}
.entry-content > p {
  margin-bottom: 1.4em;
  text-wrap: pretty;
}
.entry-content > p:last-child { margin-bottom: 0; }
.entry-content > h2 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--display-weight, 700);
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}
.entry-content > h2:first-child { margin-top: 0; }

.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
}
.entry-content figure {
  margin: 2em 0;
}
.entry-content figure img {
  margin: 0;
}
.entry-content figcaption {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.02em;
}

.post-navigation {
  max-width: 720px;
  margin: 96px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.nav-previous, .nav-next { min-width: 0; }
.nav-next { text-align: right; }
.post-navigation__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-navigation__label {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.post-navigation__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.nav-previous:hover .post-navigation__arrow { transform: translateX(-4px); }
.nav-next:hover .post-navigation__arrow    { transform: translateX(4px); }
.post-navigation__link:hover .post-navigation__label { color: var(--accent); }
.post-navigation__title {
  display: block;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--display-weight, 700);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
  transition: color 0.2s ease;
}
.post-navigation__link:hover .post-navigation__title { color: var(--accent); }

@media (max-width: 820px) {
  .lwh-single { padding: 40px 0 72px; }
  .lwh-single__article { margin-top: 40px; }
  .entry-content { font-size: 19px; }
  .entry-meta { flex-wrap: wrap; gap: 10px; }
  .post-navigation { grid-template-columns: 1fr; margin-top: 64px; }
  .nav-next { text-align: left; }
}

/* --------------------------------------------------------------------------
   Tweaks panel
   -------------------------------------------------------------------------- */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line);
  width: 320px; max-height: calc(100vh - 40px);
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  border-radius: 2px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.tweaks-panel header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.tweaks-panel .group { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tweaks-panel .group:last-child { border-bottom: none; }
.tweaks-panel .label { color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; font-size: 10px; }
.tweaks-panel .row { display: flex; gap: 4px; flex-wrap: wrap; }
.tweaks-panel .chip {
  padding: 6px 10px; border: 1px solid var(--line);
  background: transparent; color: var(--fg-2);
  cursor: pointer; font-size: 10px;
  transition: all 0.15s ease; border-radius: 2px;
  font-family: inherit;
}
.tweaks-panel .chip:hover { border-color: var(--fg-2); color: var(--fg); }
.tweaks-panel .chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tweaks-panel input[type=range] { width: 100%; accent-color: var(--accent); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  /* Stack all two-col grids */
  .lwh-two-col,
  .lwh-two-col--flipped,
  .lwh-two-col--even,
  .lwh-work-grid,
  .lwh-post-featured,
  .lwh-stats-grid:not(.case-study__metrics),
  .lwh-deliverables-grid,
  .lwh-numbered-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .lwh-two-col__sticky { position: static; }

  /* Headings rows wrap */
  .lwh-heading-row { flex-direction: column; align-items: flex-start; gap: 24px; }

  /* Section padding */
  .lwh-section, .lwh-section--lg,
  .lwh-section--hero, .lwh-section--page-hero,
  .page-hero--section,
  .lwh-section--page-hero-tight, .lwh-section--page-hero-lg,
  .lwh-section--padded-sm, .lwh-section--cta,
  .lwh-section--divided-top,
  .lwh-section--work-longtail {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .lwh-container, .lwh-container--wide {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Service rows — stack */
  .lwh-service-header { grid-template-columns: 1fr !important; gap: 8px !important; }
  .lwh-service-num    { order: -2; }
  .lwh-service-plus   { position: absolute; top: 28px; right: 0; }
  .lwh-service-row    { position: relative; padding-right: 36px !important; }
  .lwh-service-title-row { flex-direction: column !important; align-items: stretch !important; gap: 6px !important; }
  .lwh-service-tags      { overflow-x: auto; padding-bottom: 20px !important; }

  /* Post rows stack */
  .lwh-post-row { grid-template-columns: 1fr !important; gap: 8px !important; align-items: flex-start !important; }
  .lwh-post-row > * { text-align: left !important; }

  /* CTA card stacks */
  .lwh-cta-card { flex-direction: column; align-items: flex-start; gap: 32px; padding: 48px 28px; }

  /* Tweaks panel */
  .tweaks-panel { width: calc(100vw - 24px); right: 12px; bottom: 12px; max-height: 60vh; }

  h1 { letter-spacing: -0.03em !important; }
}

@media (max-width: 560px) {
  .cta-row { flex-direction: column !important; align-items: stretch !important; }
  .cta-row > * { width: 100%; justify-content: center; }
}

html {
	scroll-behavior: smooth;
	/* Reserve scrollbar space always so body overflow:hidden (mobile menu open) doesn't shift layout */
	scrollbar-gutter: stable;
}

.acf-block-preview,
body:not(.wp-admin) {
	font-family: var(--font-body);
}

/* Neutralize legacy Bootstrap reset (reset.min.css) — components control their own spacing/weight */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

p {
	margin: 0;
}

body:not(.wp-admin) [id] {
	scroll-margin-top: var(--theme-menu-height);
}

.theme-container {
	max-width: var(--theme-content-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--theme-content-padding);
	padding-right: var(--theme-content-padding);
}

.theme-row {
	display: flex;
	flex-wrap: wrap;
	margin-right: calc(-1 * var(--theme-content-padding));
	margin-left: calc(-1 * var(--theme-content-padding));
}

.theme-row > * {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	padding-right: var(--theme-content-padding);
	padding-left: var(--theme-content-padding);
	gap: var(--theme-content-padding);
}

@media (min-width: 992px) {
	.theme-col-lg {
		flex: 1 0 0%;
	}

	.theme-col-lg-auto {
		flex: 0 0 auto;
		width: auto;
	}

    .theme-lg-two-col {
		flex: 1 1 calc((100% - (calc(var(--theme-content-padding)) * 1)) / 2);
    }

	.theme-lg-three-col {
       flex: 1 1 calc((100% - (calc(var(--theme-content-padding)) * 2)) / 3);
    }

    .theme-lg-four-col {
       flex: 1 1 calc((100% - (calc(var(--theme-content-padding)) * 3)) / 4);
    }
	
}

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

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

.alignleft,
.alignright,
.aligncenter {
	display: block;
	margin: 0 auto 30px auto;
}

@media (min-width:768px) {
	.alignleft {
		margin: 0 20px 20px 0;
		float: left;
	}

	.alignright {
		float: right;
		margin: 0 0 20px 20px;
	}
}

.article img {
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: polygon(0px 0px, 0px 0px,0px 0px, 0px 0px);
	position: absolute !important;
	white-space: nowrap;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

@media (max-width: 575px) {
	.sm-ignore-br br {
		display: none;
	}
}

@media (max-width: 767px) {
	.md-ignore-br br {
		display: none;
	}
}

@media (max-width: 991px) {
	.lg-ignore-br br {
		display: none;
	}
}

.acf-block-preview * {
	box-sizing: border-box;
}

.acf-block-preview > section,
.acf-block-preview > div {
	font-size: 12px;
	border: 1px solid #ccc;
	min-height: 50px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.acf-block-preview > div:before,
.acf-block-preview > section:before {
	content: attr(data-blockname);
	position: absolute;
	top: 0;
	left: 0;
	padding: 2px;
	font-size: .875rem;
	background: #ccc;
	color: #000;
	z-index: 4;
}

.slick-slide img.lazyloading {
	opacity: 1;
}

/* .slick-track{
	display: flex !important;
}

.slick-slide {
	display: flex !important;
	height: auto;
} */

.slick-track {
	display: flex;
}

.slick-initialized .slick-slide {
    display: flex;
	flex-direction: column;
	height: auto;
}

.slick-initialized .slick-slide > div {
	flex-grow: 1;
}

.vimeo--video[data-fill="1"] {
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;	
}

.vimeo--video[data-fill="1"] iframe {
	position: absolute;
}

.has-fixed-background {
	background-attachment: fixed;
}

@supports (-webkit-overflow-scrolling: touch) {
	.has-fixed-background {
		background-attachment: scroll; 
	}
}

@media (prefers-reduced-motion: reduce) {
	.has-fixed-background {
		background-attachment: scroll; 
	}
}

.grecaptcha-badge{
	visibility: collapse !important;
}

.recaptcha--terms {
	font-size: .6rem;
}

.single-post--content-width > [data-blockname], 
.single-post--content-width > .alignfull {
	margin-left: -15px;
	margin-right: -15px;
}

@media (min-width: 780px) {
	.single-post--content-width > [data-blockname],
	.single-post--content-width > .alignfull {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - ((100vw - var(--scrollbar-width)) / 2));
		margin-right: calc(50% - ((100vw - var(--scrollbar-width)) / 2));
	}
}

.main--section > p,
.main--section > .wp-block-heading,
.main--section > .wp-block-list {
	max-width: 900px;
	margin: 0 auto 1em;
	padding: 0 30px;
}

.main--section > .wp-block-list {
	padding-left: calc(30px + 1em);
}

/* Site logo — wordmark variant */
.site-logo {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.02em;
	display: inline-flex;
	align-items: baseline;
	gap: 0;
	color: var(--fg);
	text-decoration: none;
	white-space: nowrap;
}

.site-logo__prefix {
	opacity: 0.5;
}

/* Focus ring — WCAG 2.2 AA compliant */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* .menu-toggle focus override lives in css/menubar.css */

/* Marquee — pause on hover/focus */
.lwh-marquee:hover .lwh-marquee__track,
.lwh-marquee:focus-within .lwh-marquee__track {
	animation-play-state: paused;
}

/* Stretched link — post rows fully clickable */
.lwh-post-row { position: relative; }
.lwh-post-row__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}
.lwh-post-row__title a { position: relative; }

/* Entry content — reading typography */
.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--fg); }
.entry-content h2,
.entry-content h3 {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: normal;
	margin-top: 2em;
	margin-bottom: 0.6em;
	line-height: 1.15;
}
.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
	margin-bottom: 1.4em;
}
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
	border-left: 2px solid var(--accent);
	padding-left: 20px;
	margin: 1.6em 0;
	color: var(--fg-2);
	font-style: italic;
}
.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	background: var(--bg-2);
	padding: 2px 6px;
	border: 1px solid var(--line);
}
.entry-content pre {
	font-family: var(--font-mono);
	font-size: 14px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	padding: 20px 24px;
	overflow-x: auto;
	margin-bottom: 1.4em;
}
.entry-content pre code {
	background: none;
	border: none;
	padding: 0;
	font-size: inherit;
}

/* Work card — title as stretched link. The ::after fills the card so the
   whole tile is clickable; relying on .lwh-work-card being position: relative
   as the absolute containing block. The title <a> itself must NOT be
   positioned, otherwise the ::after would shrink to wrap just the title text. */
.lwh-work-card { position: relative; }
.lwh-work-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

/* Work card — accent perimeter trace on hover. SVG injected by
   initWorkCardTrace(); animates stroke-dashoffset clockwise from the
   top-left over 1s with a strong ease-out. stroke-width=2 (effective)
   gets clipped to 1px by the card's overflow:hidden, sitting flush
   against the inside of the existing line border. */
.lwh-work-card__trace {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.lwh-work-card:hover .lwh-work-card__trace {
	opacity: 1;
}
.lwh-work-card__trace rect {
	fill: none;
	stroke: var(--accent);
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 100 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.lwh-work-card:hover .lwh-work-card__trace rect {
	stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
	.lwh-work-card__trace,
	.lwh-work-card__trace rect { transition: none; }
}

/* Case-study archive — page hero typography spacing */
.lwh-section--page-hero-tight .lwh-display { margin-top: 24px; margin-bottom: 28px; }
.lwh-section--page-hero-tight .lwh-lead    { margin-bottom: 40px; }

/* Work card image frame — uniform ratio across archive + work-grid block */
.lwh-work-grid .lwh-work-card .object-fit-cover,
.lwh-work-grid .lwh-work-card .object-fit-contain,
.lwh-work-grid .lwh-work-card .lwh-image-placeholder { aspect-ratio: var(--work-image-ratio); overflow: hidden; }

/* =============================================================
   Scroll-reveal — auto-applied via main.js initReveal() to display
   headings, labels, leads, entry titles, and selected grid items
   (.lwh-work-card, .lwh-stat, .lwh-tile, .lwh-inline-list__item,
   .lwh-numbered-item). Skipped inside .home-hero--section,
   .page-hero--section, and any [data-no-reveal] subtree.
   --reveal-delay is set per-element by JS for sibling stagger.
   ============================================================= */

[data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 1.4s cubic-bezier(0.2, 0.65, 0.2, 1) var(--reveal-delay, 0ms),
	            transform 1.4s cubic-bezier(0.2, 0.65, 0.2, 1) var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}

[data-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}

/* Work-card flourish: as the card lifts in, its featured image wipes
   open from left → right. Combined with the row stagger above, the grid
   cascades like a contact sheet developing. */
[data-reveal-card] .object-fit-cover,
[data-reveal-card] .object-fit-contain,
[data-reveal-card] .lwh-image-placeholder {
	clip-path: inset(0 100% 0 0);
	transition: clip-path 1.4s cubic-bezier(0.65, 0, 0.2, 1) calc(var(--reveal-delay, 0ms) + 250ms);
}
[data-reveal-card].is-revealed .object-fit-cover,
[data-reveal-card].is-revealed .object-fit-contain,
[data-reveal-card].is-revealed .lwh-image-placeholder {
	clip-path: inset(0 0 0 0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	[data-reveal-card] .object-fit-cover,
	[data-reveal-card] .object-fit-contain,
	[data-reveal-card] .lwh-image-placeholder { clip-path: none; transition: none; }
	.lwh-marquee__track { animation: none; }
	.lwh-status-dot { animation: none; }
	.cursor::after { animation: none; }
	.lwh-service-expand { transition: none; }
	.lwh-btn,
	.lwh-work-card,
	.lwh-tile,
	.lwh-filter,
	.lwh-chip--interactive,
	.menu-item > a,
	.lwh-single__back { transition: none; }
}

/* =============================================================
   Case study — single-page layout rhythm
   ============================================================= */

.single-case_study .entry-header { max-width: 960px; margin-bottom: 60px; }
.single-case_study .entry-meta { margin-bottom: 24px; }

.single-case_study .entry-header__blurb { margin-top: 24px; }
.single-case_study .entry-header__chips { margin-top: 20px; }

/* Paired CTAs under the entry-header chips: pink "Visit the live project"
   (with hostname stacked beneath) and outlined "Start a project like this". */
.case-study__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}
.case-study__cta {
	flex: 1 1 260px;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	min-height: 64px;
	box-sizing: border-box;
}
.case-study__cta-stack {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	line-height: 1.2;
}
.case-study__cta-label {
	font-family: var(--font-mono, monospace);
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.case-study__cta-url {
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	letter-spacing: 0.02em;
	text-transform: lowercase;
	font-weight: 400;
	opacity: 0.85;
}
/* Metrics: always a single-column stack (hairline-divided cells). The global
   .lwh-stats-grid is 2-col by default and the 820px rule excludes this one
   via :not(.case-study__metrics), so the sidebar look is consistent at every
   width. Below 992px it sits BELOW the content as a full-width block, so we
   give it a top margin to separate it from the copy above. */
.single-case_study .case-study__metrics {
	grid-template-columns: 1fr;
	max-width: 960px;
	margin-top: 60px;
	margin-bottom: 60px;
}
.single-case_study .case-study__content { max-width: 720px; }
.single-case_study .case-study__nav { max-width: 720px; }

/* ≥992px: metrics become a right sidebar next to the article body. */
@media (min-width: 992px) {
	.single-case_study .case-study__layout {
		display: grid;
		grid-template-columns: minmax(0, 720px) 280px;
		gap: 60px;
		align-items: start;
	}
	.single-case_study .case-study__layout .case-study__metrics {
		max-width: none;
		margin-top: 0;
		margin-bottom: 0;
	}
}

/* Inside the 2-col hero the header has no container-wide max-width
   (the grid column already constrains it), so reset the default. */
.lwh-case-hero .entry-header { max-width: none; margin-bottom: 0; }

/* =============================================================
   Case study — featured image frame
   Background + fit mode modifiers reused on the work archive
   cards and the single-page 2-col hero.
   ============================================================= */

/* Contain mode: pad the frame so logos breathe. Combined with
   .object-fit-contain (already defined) which sets object-fit on <img>.
   Background color comes from an inline style set by the ACF color picker.
   Aspect ratio is locked to 16:10 so logos with varying natural ratios all
   sit in visually identical frames across the archive grid and hero. */
.lwh-image-frame--padded {
	aspect-ratio: var(--work-image-ratio);
	padding: clamp(20px, 3vw, 40px);
	box-sizing: border-box;
}

/* =============================================================
   Case study — single page 2-col hero
   Entry-header left, featured image right, stacked on mobile.
   ============================================================= */

.lwh-case-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
	margin-bottom: 60px;
}

.lwh-case-hero__header {
	max-width: 560px;
}

.lwh-case-hero__image {
	aspect-ratio: var(--work-image-ratio);
	overflow: hidden;
	border: 1px solid var(--line);
}

@media (max-width: 820px) {
	.lwh-case-hero {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* =============================================================
   Case study — auto-generated metadata plate
   Renders in place of the featured image on single case studies
   when no hero image is uploaded. Composes from client_name,
   year, industry, primary metric, and scope chips.
   ============================================================= */

.lwh-case-plate {
	position: relative;
	aspect-ratio: 21 / 9;
	margin-bottom: 60px;
	padding: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 64px);
	background: var(--bg-2);
	border: 1px solid var(--line);
	display: grid;
	grid-template-rows: auto 1fr auto;
	overflow: hidden;
	isolation: isolate;
}

/* Subtle dotted grid backdrop */
.lwh-case-plate::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle, var(--line) 1px, transparent 1.4px);
	background-size: 28px 28px;
	background-position: 0 0;
	opacity: 0.5;
	pointer-events: none;
	z-index: 0;
}

/* Accent corner rule */
.lwh-case-plate::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 80px;
	height: 2px;
	background: var(--accent);
	z-index: 1;
}

.lwh-case-plate > * {
	position: relative;
	z-index: 2;
}

/* Head row: kicker left, year right */
.lwh-case-plate__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-3);
}

.lwh-case-plate__year {
	color: var(--fg-2);
}

/* Body: giant client name, optional metric on the right */
.lwh-case-plate__body {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 40px;
	padding: clamp(24px, 3vw, 48px) 0;
}

.lwh-case-plate__client {
	font-family: var(--font-display, 'Instrument Serif', serif);
	font-weight: 400;
	font-size: clamp(40px, 6vw, 88px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--fg);
	margin: 0;
	text-wrap: balance;
	max-width: 12ch;
}

.lwh-case-plate__metric {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	white-space: nowrap;
}

.lwh-case-plate__metric-value {
	font-family: var(--font-display, 'Instrument Serif', serif);
	font-weight: 400;
	font-size: clamp(32px, 4.5vw, 64px);
	line-height: 1;
	color: var(--accent);
	letter-spacing: -0.01em;
}

.lwh-case-plate__metric-label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-3);
	margin-top: 8px;
}

/* Foot: industry dot + scope chips */
.lwh-case-plate__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--fg-2);
	padding-top: 12px;
	border-top: 1px dashed var(--line);
}

.lwh-case-plate__industry {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 10px;
	color: var(--fg-2);
}

.lwh-case-plate__industry > span[aria-hidden] {
	color: var(--accent);
	font-size: 10px;
}

.lwh-case-plate__scope {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
}

.lwh-case-plate__chip {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--line);
	font-size: 10px;
	letter-spacing: 0.05em;
	color: var(--fg-3);
	background: var(--bg);
}

@media (max-width: 820px) {
	.lwh-case-plate {
		aspect-ratio: auto;
		padding: 28px 24px;
	}
	.lwh-case-plate__body {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 28px 0;
	}
	.lwh-case-plate__metric {
		align-items: flex-start;
		text-align: left;
	}
	.lwh-case-plate__foot {
		flex-direction: column;
		align-items: flex-start;
	}
	.lwh-case-plate__scope {
		margin-left: 0;
	}
}
