:root {
  --cream: #fdf1f4;
  --peach: #f6c9d6;
  --ink: #2a2622;
  --ink-soft: #55504a;
  --rust: #b5563c;
  --line: rgba(42, 38, 34, 0.12);
  --max-width: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Archivo Black", "Arial Black", var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 201, 214, 0.85);
  backdrop-filter: blur(6px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--rust);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

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

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 18px;
    display: none;
  }

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

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 100%);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin: 0 0 8px;
}

.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--ink-soft);
  margin: 0 0 20px;
}

/* Bio section */
.bio {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
  padding: 56px 24px;
}

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

  .bio .portrait {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
}

.bio p {
  margin: 0 0 18px;
}

.bio .portrait img {
  width: 100%;
  box-shadow: 0 12px 30px rgba(42, 38, 34, 0.15);
}

.bio .portrait {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .wrap,
  .bio {
    padding-left: 28px;
    padding-right: 28px;
  }

  .bio .portrait {
    max-width: none;
    margin: 0;
  }

  .hero .tagline {
    font-size: min(0.95rem, 4.1vw);
    white-space: nowrap;
  }

  .tagline-extra {
    display: none;
  }
}

.btn {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(181, 86, 60, 0.35);
}

/* Section headings */
.section-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 8px;
}

.bio .lede {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  color: var(--rust);
  margin: 0 0 20px;
}

.section-sub {
  color: var(--ink-soft);
  margin: 0 0 40px;
}

.page-header {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
}

.outlet-filter {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.filter-pill {
  font-family: var(--sans);
  font-size: 0.8rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.filter-pill:hover {
  background: var(--ink);
  color: #fff;
}

.filter-pill.is-active {
  background: var(--ink);
  color: #fff;
}

.article-list li[hidden] {
  display: none;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  padding: 48px 0 72px;
}

.project-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(42, 38, 34, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

a.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(42, 38, 34, 0.14);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card .caption {
  padding: 14px 18px;
}

.project-card h3 {
  font-family: var(--serif);
  margin: 0;
  font-size: 1.1rem;
}

/* Editorial list */
.article-list {
  list-style: none;
  margin: 0;
  padding: 40px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-list li {
  border-bottom: 1px solid var(--line);
}

.article-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  padding: 22px 4px;
  transition: padding-left 0.15s, color 0.15s;
}

.article-list a:hover {
  padding-left: 10px;
  color: var(--rust);
}

.article-list .outlet {
  display: flex;
  align-items: center;
  min-width: 110px;
}

.article-list .outlet.outlet-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.article-list .outlet img {
  max-height: 22px;
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply;
  filter: grayscale(1);
}

.article-list .outlet img.outlet-icon {
  max-height: 34px;
}

.article-list .headline {
  flex: 1;
  font-size: 1.05rem;
}

.article-list .date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
  min-width: 110px;
  text-align: right;
}

.article-list .arrow {
  opacity: 0.5;
}

@media (max-width: 600px) {
  .article-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .article-list .date {
    text-align: left;
  }
}

/* Case study pages */
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 12px;
}

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

.case-study {
  padding-top: 40px;
  padding-bottom: 72px;
}

.case-section + .case-section {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 48px;
}

.case-section h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--rust);
  margin: 0 0 24px;
}

.case-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.case-intro img,
.case-intro video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(42, 38, 34, 0.15);
}

.case-intro .video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(42, 38, 34, 0.15);
}

.case-intro .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.case-intro .case-text p,
.case-section > .case-text p {
  margin: 0 0 16px;
}

.case-section > .case-text {
  margin-bottom: 32px;
}

.case-intro.text-wrap,
.case-intro.case-intro-full {
  display: block;
}

.case-intro.text-wrap::after {
  content: "";
  display: table;
  clear: both;
}

.case-intro.text-wrap .case-media {
  float: right;
  width: 46%;
  margin: 4px 0 24px 32px;
}

/* Caps a small/portrait hero image so it doesn't upscale beyond its native
   size and tower over a short text column. */
.case-intro.text-wrap .case-media.case-media-narrow {
  width: 200px;
}

@media (max-width: 760px) {
  .case-intro.text-wrap .case-media {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }

  .case-intro.text-wrap .case-media.case-media-narrow {
    width: 100%;
  }
}

.case-text img.case-banner {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(42, 38, 34, 0.08);
}

.case-gallery {
  columns: 3 220px;
  column-gap: 16px;
  column-fill: auto;
}

.case-gallery img {
  width: 100%;
  margin: 0 0 16px;
  border-radius: 12px;
  break-inside: avoid;
  box-shadow: 0 6px 18px rgba(42, 38, 34, 0.08);
}

.case-gallery img.gallery-wide {
  column-span: all;
}

.case-gallery .video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  break-inside: avoid;
  box-shadow: 0 6px 18px rgba(42, 38, 34, 0.08);
}

.case-gallery .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

  .case-gallery {
    columns: 2 160px;
  }
}

@media (max-width: 480px) {
  .case-gallery {
    columns: 1;
  }
}

/* JS-balanced masonry: overrides the CSS column layout above once assets have
   loaded, since browser column-balancing can silently collapse to one column
   when a gallery has several large break-inside:avoid items. */
.case-gallery.js-masonry {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  columns: unset;
}

.case-gallery.js-masonry .gallery-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
}

.case-gallery.js-masonry img,
.case-gallery.js-masonry video {
  break-inside: auto;
}

.case-gallery.js-masonry img.gallery-wide {
  column-span: unset;
  flex: 1 1 100%;
  width: 100%;
  margin: 0 0 16px;
}

.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  overflow-y: auto;
  background: rgba(20, 16, 14, 0.9);
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  width: auto;
  max-height: none;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  cursor: zoom-out;
}

@media (min-width: 640px) {
  .lightbox-img {
    max-width: min(90vw, 900px);
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.lightbox-lock {
  overflow: hidden;
}

/* Contact */
.contact {
  padding: 56px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.contact-links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-links a {
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.contact-links a:hover {
  color: var(--rust);
  border-color: var(--rust);
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer .socials {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--rust);
}

.outlet-filter-industry {
  margin-top: 28px;
}

.case-back ~ .section-sub {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: var(--rust);
}

@media (max-width: 760px) {
  .lede-br {
    display: none;
  }
}

@media (min-width: 761px) {
  .bio {
    grid-template-columns: 0.582fr 1fr;
    align-items: start;
  }

  .bio > div:last-child {
    container-type: inline-size;
  }

  .bio > div:last-child p {
    font-size: calc(100cqw / 36);
    line-height: 1.5;
    margin: 0 0 calc(100cqw / 36);
  }

  .bio .portrait {
    margin-top: 0;
  }

  .bio .portrait img {
    display: block;
  }

  .hero h1 {
    font-size: calc(100cqw / 9.9);
    margin: 0 0 calc(100cqw / 40);
  }

  .hero .tagline {
    font-size: calc(100cqw / 26);
    margin: 0 0 calc(100cqw / 36);
  }

  .bio .lede {
    font-size: calc(100cqw / 28.5);
    margin: 0 0 calc(100cqw / 36);
  }

  .bio .bio-cta {
    letter-spacing: -0.02em;
    word-spacing: -0.04em;
  }
}
