:root {
  --color-ink-cypress: #10221f;
  --color-paper-warmth: #f4ebdd;
  --color-tower-stucco: #d8d0bf;
  --color-rose-lacquer: #a83a35;
  --color-terracotta-cap: #9b5a3c;
  --color-rain-blue: #314c5c;
  --color-portland-pine: #2f4a36;
  --color-black-ink: #151515;
  --color-white: #fffaf1;
  --shadow-soft: 0 24px 80px rgba(16, 34, 31, 0.14);
  --radius: 8px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink-cypress);
  background:
    radial-gradient(circle at 12% 0%, rgba(168, 58, 53, 0.08), transparent 24rem),
    linear-gradient(180deg, #f8f0e4 0%, var(--color-paper-warmth) 42%, #efe2d1 100%);
  font-family: var(--sans);
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 14px clamp(20px, 4vw, 54px);
  color: var(--color-white);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--color-ink-cypress);
  background: rgba(244, 235, 221, 0.94);
  border-bottom: 1px solid rgba(16, 34, 31, 0.12);
  box-shadow: 0 10px 34px rgba(16, 34, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 84px;
  overflow: hidden;
  border-radius: 999px 999px 8px 8px;
  background: var(--color-paper-warmth);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.brand-mark img {
  filter: contrast(1.05) saturate(1.05);
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  box-shadow: none;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 25px;
}

.brand-subline {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav a {
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-ink-cypress);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 34, 31, 0.84) 0%, rgba(16, 34, 31, 0.62) 32%, rgba(16, 34, 31, 0.28) 64%, rgba(16, 34, 31, 0.16) 100%),
    linear-gradient(180deg, rgba(16, 34, 31, 0.38) 0%, transparent 40%, rgba(16, 34, 31, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 78px);
  padding-top: 130px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 15px;
  color: var(--color-rose-lacquer);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #edb9aa;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 5.8vw, 78px);
}

h2 {
  max-width: 880px;
  font-size: clamp(32px, 4.2vw, 60px);
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.05;
}

.hero-lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.button-primary {
  color: var(--color-white);
  background: var(--color-rose-lacquer);
}

.button-secondary {
  color: var(--color-white);
  border-color: rgba(255, 250, 241, 0.56);
  background: rgba(255, 250, 241, 0.08);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

section:not(.hero) {
  padding: clamp(78px, 10vw, 132px) 0;
}

.section-band {
  background: rgba(255, 250, 241, 0.48);
  border-top: 1px solid rgba(16, 34, 31, 0.1);
  border-bottom: 1px solid rgba(16, 34, 31, 0.1);
}

.dark-band {
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(168, 58, 53, 0.2), transparent 42%),
    var(--color-ink-cypress);
  border: 0;
}

.dark-band .section-kicker {
  color: #edb9aa;
}

.intro-grid,
.acquisition-grid,
.contact-grid,
.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.74fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.intro-grid p,
.acquisition-copy p,
.place-grid p,
.contact-grid p {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
}

.section-heading {
  display: grid;
  gap: 0;
  max-width: 850px;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-sub {
  margin: 18px 0 0;
  max-width: 720px;
  color: rgba(16, 34, 31, 0.74);
  font-size: clamp(16px, 1.4vw, 19px);
}

.portfolio {
  padding: clamp(60px, 7vw, 96px) 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  border: 1px solid rgba(16, 34, 31, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.62), rgba(216, 208, 191, 0.24)),
    rgba(255, 250, 241, 0.42);
  box-shadow: 0 12px 42px rgba(16, 34, 31, 0.06);
}

.card-index {
  color: var(--color-rose-lacquer);
  font-family: var(--serif);
  font-size: 15px;
  opacity: 0.85;
}

.brand-mark-icon {
  margin-top: 14px;
  height: 56px;
  display: flex;
  align-items: center;
}
/* Marks range from a tall portrait to a wide sunburst; capping width near the
   height keeps their optical weight comparable across the card grid. */
.brand-mark-icon img {
  max-height: 52px;
  max-width: 78px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark-icon.no-mark {
  display: none;
}

.portfolio-card h3 {
  margin-top: 18px;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.15;
}

.brand-tagline {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.15vw, 17px);
  color: rgba(16, 34, 31, 0.9);
  line-height: 1.3;
}

.brand-desc,
.approach-grid p {
  margin: 10px 0 0;
  color: rgba(16, 34, 31, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.approach-grid p {
  font-size: 16px;
  margin-top: 16px;
  max-width: 62ch;
}

.card-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-rose-lacquer);
}

.card-link::after {
  content: "";
  display: block;
  margin-top: 4px;
  height: 1px;
  width: 100%;
  background: currentColor;
  opacity: 0.5;
  transition: opacity 160ms ease;
}

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

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.metrics-row div {
  min-height: 120px;
  padding: 20px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.06);
}

.metrics-row strong,
.metrics-row span {
  display: block;
}

.metrics-row strong {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
}

.metrics-row span {
  margin-top: 10px;
  color: rgba(255, 250, 241, 0.7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(16, 34, 31, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 34, 31, 0.14);
}

.approach-grid article {
  min-height: 270px;
  padding: clamp(22px, 2.6vw, 34px);
  background: rgba(255, 250, 241, 0.64);
}

.place-grid {
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  align-items: center;
}

.place-art {
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 34, 31, 0.08), transparent),
    var(--color-paper-warmth);
  box-shadow: var(--shadow-soft);
}

.place-art img {
  width: min(74%, 380px);
  filter: contrast(1.03) saturate(0.92);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(16, 34, 31, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(16, 34, 31, 0.06);
}

.swatch span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.swatch strong {
  font-family: var(--serif);
  font-size: 25px;
}

.ink-cypress,
.rain-blue,
.portland-pine,
.black-ink,
.rose-lacquer,
.terracotta-cap {
  color: var(--color-white);
}

.ink-cypress {
  background: var(--color-ink-cypress);
}

.paper-warmth {
  background: var(--color-paper-warmth);
}

.tower-stucco {
  background: var(--color-tower-stucco);
}

.rose-lacquer {
  background: var(--color-rose-lacquer);
}

.terracotta-cap {
  background: var(--color-terracotta-cap);
}

.rain-blue {
  background: var(--color-rain-blue);
}

.portland-pine {
  background: var(--color-portland-pine);
}

.black-ink {
  background: var(--color-black-ink);
}

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

.contact-copy p {
  margin: 0;
}

.contact-line {
  font-size: clamp(22px, 2.6vw, 30px) !important;
}

.contact-email {
  font-family: var(--serif);
  color: #f4d6cc;
  border-bottom: 1px solid rgba(244, 214, 204, 0.45);
  padding-bottom: 2px;
}

.contact-email:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

.contact-meta {
  font-size: 14px !important;
  color: rgba(255, 250, 241, 0.7) !important;
  line-height: 1.7;
}

.muted {
  color: rgba(255, 250, 241, 0.5);
}

.site-footer {
  padding: 34px clamp(20px, 4vw, 54px);
  color: var(--color-white);
  background: var(--color-black-ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}

.footer-nav a {
  color: rgba(255, 250, 241, 0.7);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 250, 241, 0.5);
}

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

  .site-nav {
    position: fixed;
    inset: 112px 14px auto;
    display: grid;
    gap: 0;
    padding: 16px 16px 22px;
    border: 1px solid rgba(16, 34, 31, 0.12);
    border-radius: var(--radius);
    color: var(--color-ink-cypress);
    background: rgb(246, 238, 226);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(16, 34, 31, 0.1);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-pill {
    justify-content: center;
    margin: 12px 2px 4px;
  }

  .intro-grid,
  .acquisition-grid,
  .contact-grid,
  .place-grid {
    grid-template-columns: 1fr;
  }

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

  .approach-grid article {
    min-height: 230px;
  }

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

  .portfolio-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 84px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 40px;
    height: 60px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-subline {
    font-size: 9px;
  }

  .site-nav {
    inset: 84px 12px auto;
  }

  .hero {
    min-height: 820px;
  }

  .hero-media img {
    object-position: 32% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(16, 34, 31, 0.78) 0%, rgba(16, 34, 31, 0.68) 45%, rgba(16, 34, 31, 0.42) 100%),
      linear-gradient(90deg, rgba(16, 34, 31, 0.82), rgba(16, 34, 31, 0.28));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-top: 110px;
    align-self: start;
  }

  .brand-grid,
  .approach-grid,
  .palette-grid,
  .metrics-row {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 220px;
  }

  .place-art {
    min-height: 380px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Work-with-us 3-up (parent page) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(16, 34, 31, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 34, 31, 0.14);
}

.work-grid article {
  min-height: 220px;
  padding: clamp(22px, 2.6vw, 34px);
  background: rgba(255, 250, 241, 0.64);
}

.work-grid h3 {
  font-size: clamp(21px, 1.8vw, 26px);
}

.work-grid p {
  margin: 12px 0 0;
  color: rgba(16, 34, 31, 0.72);
  font-size: 16px;
  max-width: 60ch;
}

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


/* Imprint headers show the brand's own mark, unchiped */
body[data-brand] .brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
body[data-brand] .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Rodney Noble is a portrait, not a logo — round it and keep it legible on dark */
body[data-brand="rodney-noble"] .brand-mark {
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
body[data-brand="rodney-noble"] .brand-mark img { object-fit: cover; }
