/* ==========================================================================
   DESIGN SYSTEM — shared across all pages
   ========================================================================== */

:root {
  --cream:          #fcf3df;
  --brown:          #2D1A0B;
  --amber:          #ffb000;
  --orange:         #ff7402;
  --cream-dim:      #f0e2c4;
  --border:         rgba(45, 26, 11, 0.13);
  --text-secondary: rgba(45, 26, 11, 0.65);

  --font-display: 'Sigmar', Georgia, serif;
  --font-body:    'Josefin Sans', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-md:   1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.75rem;
  --text-5xl:  4.75rem;

  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-12: 96px;
  --sp-16: 128px;
  --sp-20: 160px;
  

  --max-width: 1160px;
  --pad:       80px;
  --col-gap:   calc(var(--pad) / 2 + 8px);
  --nav-h:     64px;
  --nav-gap:   16px;

  --checkered: url('websitevisual/portfoliovisuals/checkeredstraight.svg');
  --checkered-rotated: url('websitevisual/portfoliovisuals/checkeredstraight-rotated.svg');
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--brown);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
}


/* ==========================================================================
   CURSOR FLOWER — decorative trail, desktop pointer only
   ========================================================================== */

.cursor-flower {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-flower.is-active { opacity: 0.85; }

@media (hover: none), (pointer: coarse) {
  .cursor-flower { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-flower { display: none; }
}


/* ==========================================================================
   SCROLL REVEAL — slide-in-on-scroll for section-level content.
   .reveal is added by nav.js (not baked into the HTML), so content stays
   fully visible if JS never runs. Skipped entirely under reduced motion.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ==========================================================================
   FLOATING NAV
   ========================================================================== */

.nav {
  position: fixed;
  top: var(--nav-gap);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--pad));
  max-width: 1160px;
  z-index: 200;
  background: var(--cream);
  border-radius: 999px;
  border: 2px solid var(--orange);
  box-shadow: 0 4px 24px rgba(45, 26, 11, 0.14), 0 1px 6px rgba(45, 26, 11, 0.08);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.nav.scrolled {
  box-shadow: 0 8px 32px rgba(45, 26, 11, 0.20), 0 2px 8px rgba(45, 26, 11, 0.10);
}

body:has(.nav-overlay.active) .nav {
  box-shadow: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 28px;
}

.nav__logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav__links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--brown);
  transition: color 0.2s;
}

.nav__links a:first-child { padding-top: 4px; }
.nav__links a:hover, .nav__links a:focus {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.nav__links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav__links .nav__cta {
  background: var(--orange);
  color: var(--cream) !important;
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}

.nav__links .nav__cta:hover, .nav__links .nav__cta:focus { background: var(--amber); color: var(--brown) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--brown);
}

/* Mobile overlay — dropdown card */
.nav-overlay {
  display: none;
  position: fixed;
  top: calc(var(--nav-gap) + var(--nav-h) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--pad));
  max-width: 1160px;
  z-index: 199;
  background: var(--cream);
  border-radius: 20px;
  border: 2px solid var(--orange);
  box-shadow: 0 4px 24px rgba(45, 26, 11, 0.14), 0 1px 6px rgba(45, 26, 11, 0.08);
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.nav-overlay.active { display: flex; }

.nav-overlay a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--brown);
  padding: 13px 24px;
  letter-spacing: 0.12em;
  text-align: center;
  width: 100%;
}

.nav-overlay a:first-child {
  margin: var(--sp-2) 0 0 0 ;
}

.nav-overlay a:last-child {
  margin: var(--sp-2) var(--sp-2) var(--sp-2);
  background: var(--orange);
  color: var(--cream);
  padding: 7px 18px;
  border-radius: 999px;
  text-align: center;
  width: auto;
}

.nav-overlay a:hover, .nav-overlay a:focus {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.nav-overlay a:last-child:hover, .nav-overlay a:last-child:focus { background: var(--amber); color: var(--brown); }


/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--pad) / 2 + 8px);
}


/* ==========================================================================
   CASE STUDY — HEADER
   ========================================================================== */

.cs-header {
  background-image: var(--checkered);
  background-repeat: repeat;
  background-size: 1928px 1045px;
  background-origin: border-box;
  /* Shifts the tile up 2px so the seam at its top edge sits just above the
     visible viewport instead of being visible right at the top of the section. */
  background-position: 0 -2px;
  padding-top: calc(var(--nav-h) + var(--nav-gap) * 2 + var(--pad) * 0.5);
  padding-bottom: calc(var(--pad) / 2 + 8px);
  padding-left: calc(var(--pad) / 2 + 8px);
  padding-right: calc(var(--pad) / 2 + 8px);
  overflow: hidden;
}
.cs-header .container { padding-left: 0; padding-right: 0; }

.cs-back {
  display: inline-flex;
  align-items: center;
  color: rgba(252, 243, 223, 0.65);
  margin-bottom: var(--sp-3);
  transition: color 0.2s;
}
.cs-back svg {
  width: 32px;
  height: 32px;
  stroke: var(--orange);
  transform: rotate(90deg);
  display: block;
}

.cs-back:hover, .cs-back:focus { color: var(--amber); }
.cs-back:hover svg, .cs-back:focus svg { stroke: var(--amber); }

.cs-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--sp-2);
}

.cs-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  color: var(--amber);
  line-height: 1.0;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.05em;
}

.cs-subtitle {
  font-size: var(--text-lg);
  color: var(--cream);
  line-height: 1.65;
  max-width: 660px;
}

.cs-header__grid { display: flex; flex-direction: column; gap: 0; }
.cs-header__left { display: flex; flex-direction: column; }

/* Hero image */
.cs-hero-img {
  overflow: hidden;
  background: var(--cream-dim);
  margin-bottom: var(--sp-4);
  border-radius: 16px;
}
.cs-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* cs-header media row (hero img + snapshot) */
.cs-header__media {
  margin-top: var(--sp-4);
}

@media (min-width: 1025px) {
  /* Two-column layout: left = container + hero, right = snapshot */
  .cs-header {
    padding-top: calc(var(--nav-h) + var(--nav-gap) * 2 + var(--sp-4));
    /* Mirror container centering — content aligns with article at every viewport width */
    padding-left: max(calc(var(--pad) / 2 + 8px), calc((100% - var(--max-width)) / 2 + var(--pad) / 2 + 8px));
    padding-right: max(calc(var(--pad) / 2 + 8px), calc((100% - var(--max-width)) / 2 + var(--pad) / 2 + 8px));
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-4) var(--sp-6);
    align-items: start;
  }
  /* cs-back spans full width above; eyebrow + first snap-row top-aligned */
  .cs-header > .cs-back { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
  .cs-header .container { grid-column: 1; grid-row: 2; margin-left: 0; width: 100%; }
  /* display:contents lets hero and snapshot participate directly in cs-header grid */
  .cs-header__media { display: contents; }
  .cs-header__media > .cs-hero-img { grid-column: 1; grid-row: 3; margin-bottom: 0; }
  .cs-header__snapshot { grid-column: 2; grid-row: 2 / 4; align-self: stretch; display: flex; flex-direction: column; }
  /* Higher specificity (0,3,0) beats base .cs-header .snapshot (0,2,0) */
  .cs-header .cs-header__snapshot .snapshot {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-top: 0;
  }
  .cs-header .cs-header__snapshot .snap-row { flex: 1; }
}

/* Article */
.cs-article {
  padding: var(--pad) 0 0;
}

/* Snapshot table */
.snapshot {
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

/* Snapshot inside header — card-per-row style */
.cs-header .snapshot {
  margin-top: var(--sp-6);
  margin-bottom: 0;
  padding-bottom: 0;
  padding: 0;
  border-bottom: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.cs-header .snap-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--cream);
  border-radius: 10px;
  padding: var(--sp-2);
  flex: 1 1 auto;
  min-width: 100px;
}
.cs-header .snap-key {
  font-family: var(--font-display);
  color: var(--brown);
  font-size: var(--text-base);
  line-height: 1;
  display: inline-block;
  align-self: flex-start;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.cs-header .snap-val {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.4;
}
.snapshot table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--col-gap); width: 100%; }
.snapshot tr { display: flex; gap: 12px; border-bottom: 1px solid var(--border); padding: 12px 0; }
.snapshot tr:nth-child(-n+3) { grid-column: 1; }
.snapshot tr:nth-child(n+4)  { grid-column: 2; }
.snapshot tr:nth-child(3), .snapshot tr:last-child { border-bottom: none; }
.snapshot td { display: block; font-size: var(--text-sm); line-height: 1.55; padding: 0; }
.snapshot td:first-child {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 8px;
  padding-top: 2px;
}

/* Sections */
.cs-section { margin-bottom: var(--sp-8); }
.cs-section-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--brown);
  margin-top: 0;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.cs-section-label::after { content: ''; flex: 1; height: 1.5px; background: var(--orange); }
.cs-section > .cs-section-label + * { margin-top: 0; }
.cs-section p {
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: var(--sp-3);
  font-size: var(--text-md);
}
.cs-section p:last-child { margin-bottom: 0; }
.cs-section h3 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--brown);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-1);
}
.cs-section-label + h3:first-child,
.cs-section-label + * h3:first-child { margin-top: 0; }

.cs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--col-gap); align-items: start; }
.cs-row .cs-section { margin-bottom: var(--sp-8); }

/* Project nav */
.cs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
}
.cs-nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  transition: color 0.2s;
}
.cs-nav a:hover, .cs-nav a:focus { color: var(--orange); text-decoration: underline; text-decoration-color: var(--brown); text-decoration-thickness: 2px; text-underline-offset: 4px; }


/* ==========================================================================
   IMAGE HELPERS
   ========================================================================== */

.img-block { margin: var(--sp-6) 0; max-width: 700px; }
.img-block img { width: 100%; border-radius: 6px; }

.img-block--float { margin: var(--sp-6) 0; }
.img-block--float img { width: 100%; object-fit: contain; max-height: 460px; }

@media (min-width: 769px) {
  .img-block--float { margin-top: var(--sp-8); }
}

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: var(--sp-6) 0;
}
.img-pair img { width: 100%; height: auto; border-radius: 6px; }

.img-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: var(--sp-6) 0;
}
.img-trio img { width: 100%; height: auto; border-radius: 6px; }

.img-caption {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-3);
  line-height: 1.5;
}

.text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
  margin: var(--sp-6) 0;
}
.text-image img { width: 100%; height: auto; border-radius: 6px; }
.text-image p { max-width: none; margin-bottom: 0; }


/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */

/* Results metrics */
.results-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin: var(--sp-4) 0 0;
}
.metric-card {
  background: var(--brown);
  border-radius: 10px;
  padding: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--amber);
  line-height: 1;
}
.metric-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.4;
}

/* Results themes */
.results-themes { list-style: none; max-width: 700px; margin-top: var(--sp-2); margin-bottom: var(--sp-4); }
.results-themes li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); font-size: var(--text-md); line-height: 1.7; }
.results-themes li:last-child { border-bottom: none; }
.results-themes li strong { display: block; font-weight: 700; margin-bottom: 4px; }
.theme-card {
  background: var(--brown);
  border-radius: 10px;
  padding: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-card p { margin: 0; }
.card-bullets { list-style: disc; padding-left: 1.2em; margin: 0; }
.card-bullets li + li { margin-top: 4px; }

/* The Point */
.cs-section:has(+ .the-point) { margin-bottom: 0; }
.the-point { background: var(--checkered); background-size: 1928px 1045px; border-radius: 12px; padding: var(--sp-6); margin-top: var(--sp-6); margin-bottom: 0; max-width: 780px; margin-left: auto; margin-right: auto; }
.the-point .cs-section-label { color: var(--cream); }
.the-point p { color: rgba(252, 243, 223, 0.92); max-width: 680px; line-height: 1.8; font-size: var(--text-md); margin-bottom: 0; }

/* cs-section__media layout */
.cs-section__media { display: flex; flex-direction: column; gap: var(--sp-4); }
.cs-section__media .img-block--float { width: 100%; max-width: 100%; }


/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
  position: relative;
  overflow: hidden;
}

.contact__bg {
  background: var(--amber);
  border-top: 1px solid var(--orange);
  padding: var(--sp-8) 0;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--brown);
  margin-bottom: var(--sp-6);
  line-height: 1.15;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.contact__flower {
  position: absolute;
  bottom: -66px;
  right: -66px;
  width: 660px;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__form .form-field:nth-of-type(3) { grid-column: 1 / -1; }
.contact__form .form-submit { grid-column: 1 / -1; justify-self: start; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--brown);
  background: var(--cream);
  border: 1px solid rgba(45, 26, 11, 0.15);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(45, 26, 11, 0.30); }

.form-input:focus,
.form-textarea:focus { border-color: var(--orange); outline: 2px solid var(--brown); outline-offset: 1px; }

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

.form-submit {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--orange);
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.form-submit:hover, .form-submit:focus { background: var(--brown); color: var(--cream); }

/* Validity signal — a checkmark next to the label once a field holds a
   value the browser considers valid (:not(:placeholder-shown) keeps this
   from firing on an empty required field, which HTML5 treats as :invalid
   by default).

   Email updates live: a typo there means she can't reply, so it should
   say so the moment the address is actually complete (the pattern
   attribute makes that stricter than plain type="email", which alone
   would accept something like "a@b").

   Name and Message just need "did you fill this in", so their checkmark
   waits until the visitor leaves the field — nav.js adds .is-touched on
   blur — rather than appearing after the first keystroke. */
.form-field:has(#email:valid:not(:placeholder-shown)) .form-label::after,
.form-field.is-touched:has(:valid:not(:placeholder-shown)) .form-label::after {
  content: '✓';
  margin-left: 6px;
  color: #4a7c59;
  font-weight: 700;
}
#email:valid:not(:placeholder-shown) {
  border-color: #4a7c59;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--cream);
  border-top: 1px solid var(--orange);
  position: relative;
}

.footer__inner-wrap {
  position: relative;
  padding: var(--sp-8) 0 12px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr auto auto;
  gap: var(--sp-12);
  margin-bottom: var(--sp-4);
  align-items: start;
}

.footer__brand { justify-self: start; white-space: nowrap; }
.footer__inner > nav { justify-self: end; text-align: right; white-space: nowrap; }

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: var(--sp-2);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--brown);
  /* Matches .footer__nav-list li's rendered line-height so the brand and nav
     columns share the same vertical rhythm. */
  line-height: 29.8px;
  margin-bottom: var(--sp-2);
}

.footer__social-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--brown);
  transition: color 0.2s;
}
.footer__social-link:hover, .footer__social-link:focus { color: var(--amber); }

.footer__nav-heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: var(--sp-2);
}

.footer__nav-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__nav-list a { font-size: var(--text-sm); color: var(--brown); transition: color 0.2s; }
.footer__nav-list a:hover, .footer__nav-list a:focus { color: var(--orange); text-decoration: underline; text-decoration-color: var(--brown); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.footer__contact { display: flex; flex-direction: column; gap: 20px; }
.footer__contact-item { display: flex; flex-direction: column; }

.footer__contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.65;
  /* Matches .footer__nav-list li's rendered line-height, same as .footer__tagline. */
  line-height: 29.8px;
}

.footer__contact-value {
  font-size: var(--text-sm);
  color: var(--brown);
  transition: color 0.2s;
}
.footer__contact-value:hover, .footer__contact-value:focus { color: var(--orange); text-decoration: underline; text-decoration-color: var(--brown); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.footer__bottom {
  padding-top: var(--sp-2);
  border-top: 1px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer__flower-icon { height: 22px; width: auto; opacity: 0.65; }
.footer__bottom-text { font-size: var(--text-xs); color: var(--brown); }


/* ==========================================================================
   LARGE SCREENS
   ========================================================================== */

@media (min-width: 1440px) {
  :root {
    --max-width: 1360px;
    --pad: 112px;
  }
  html { font-size: 17px; }
  /* Container content = 1144px (nav 1160px − 16px). Box = 1144 + padding*2 = 1160px. */
  .container { max-width: 1160px; }
  /* cs-header mirrors the same cap — keeps header content aligned with article below */
  .cs-header {
    padding-left: max(calc(var(--pad) / 2 + 8px), calc((100% - 1160px) / 2 + var(--pad) / 2 + 8px));
    padding-right: max(calc(var(--pad) / 2 + 8px), calc((100% - 1160px) / 2 + var(--pad) / 2 + 8px));
  }
}

@media (min-width: 1920px) {
  :root {
    --max-width: 1760px;
    --pad: 160px;
  }
  html { font-size: 18px; }
  .container { padding: 0 calc(var(--pad) * 0.75); }
  :root { --col-gap: calc(var(--pad) * 0.75); }
}

@media (min-width: 1100px) {
  .cs-section:has(.cs-section__media) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--col-gap);
    align-items: start;
  }
  .cs-section:has(.cs-section__media):nth-of-type(even) .cs-section__text { order: 2; }
  .cs-section:has(.cs-section__media):nth-of-type(even) .cs-section__media { order: 1; }
  .cs-section:has(.cs-section__media) > .cs-section-label { grid-column: 1 / -1; }

  /* Results: paragraph + metrics cards side by side, cards centered to paragraph */
  .cs-section:has(> .results-metrics):not(.cs-section--wide-media) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--col-gap);
    align-items: center;
  }
  .cs-section:has(> .results-metrics):not(.cs-section--wide-media) > .cs-section-label { grid-column: 1 / -1; }
  .cs-section:has(> .results-metrics):not(.cs-section--wide-media) > p { max-width: none; margin-bottom: 0; }
  .cs-section:has(> .results-metrics):not(.cs-section--wide-media) > .results-metrics { margin-top: 0; }
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr auto auto; gap: 40px; }

  /* The stacked layout below 1025px is tall enough that the checkered background
     repeats vertically, exposing a seam baked into the source photo. checkeredstraight
     -rotated.svg is the same asset pre-rotated 90deg inside the file itself (rather
     than via a CSS transform, which couldn't be pinned to the container's edge
     without fighting the rotation's own corner math) — its long axis now runs
     vertically, so it may not need to repeat at the heights this section reaches.
     background-size is swapped (1045x1928) since the asset's own dimensions are. */
  .cs-header {
    background-image: var(--checkered-rotated);
    background-size: 1045px 1928px;
    /* The seam is now on the left (top -> left under the 90deg rotation) — shift
       2px left so it sits just outside the visible viewport instead. */
    background-position: -2px 0;
  }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }

  .cs-header { padding-left: var(--pad); padding-right: var(--pad); }
  .cs-header .snapshot { margin-top: var(--sp-4); margin-bottom: var(--sp-4); grid-template-columns: 1fr 1fr; }
  .cs-article { margin-top: var(--sp-8); }

  .results-metrics { grid-template-columns: repeat(2, 1fr); }

  html, body { overflow-x: hidden; }

  .nav { width: calc(100% - var(--pad)); }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .cs-header__grid { grid-template-columns: 1fr; }
  .cs-row { grid-template-columns: 1fr; }
  .text-image { grid-template-columns: 1fr; }
  .img-pair { grid-template-columns: 1fr; }
  .img-trio { grid-template-columns: 1fr; }

  .contact__form { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 28px 40px; }
  .footer__brand { grid-column: 1; grid-row: 1 / 3; white-space: normal; }
  .footer__inner > nav { grid-column: 2; justify-self: end; text-align: right; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__brand { grid-column: unset; grid-row: unset; }
  .footer__inner > nav { grid-column: unset; justify-self: start; text-align: left; }
}

@media (min-width: 480px) and (max-width: 768px) {
  .cs-header .snapshot { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cs-header .snapshot { grid-template-columns: repeat(3, 1fr); }
}
