/* ============================================================
   Redgum Agency styles.css (v2, editorial)
   Palette: terracotta #C0492E → #8B2A20 · ink #2B1D18 · cream #F5EFE6
   Type: Fraunces (headings) · Inter (body)
   ============================================================ */

:root {
  --cream: #F5EFE6;
  --cream-deep: #EFE6D8;
  --paper: #FBF8F1;
  --ink: #2B1D18;
  --ink-soft: #63503F;
  --terracotta: #C0492E;
  --terracotta-deep: #8B2A20;
  --terracotta-text: #A5391F;
  --gradient: linear-gradient(135deg, #C0492E 0%, #8B2A20 100%);
  --dark: #2B1D18;
  --dark-deeper: #241812;
  --cream-on-dark: #F5EFE6;
  --muted-on-dark: #C9B4A3;

  --hairline: rgba(43, 29, 24, 0.14);
  --hairline-strong: rgba(43, 29, 24, 0.32);
  --hairline-dark: rgba(245, 239, 230, 0.16);

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --z-menu: 40;
  --z-header: 50;
}

/* ---------- Reset & base ---------- */

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

html { scroll-padding-top: 6.5rem; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine paper grain over everything, barely-there texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px;
}

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

::selection { background: var(--terracotta); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(192, 73, 46, 0.6);
  outline-offset: 3px;
  border-radius: 2px;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--terracotta);
}

/* Thin scrollbar, brand thumb */
html { scrollbar-color: rgba(139, 42, 32, 0.45) var(--cream); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: rgba(139, 42, 32, 0.4);
  border-radius: 6px;
  border: 3px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover { background: rgba(139, 42, 32, 0.6); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.container {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container.narrow { max-width: 46rem; }

/* ---------- Buttons: rectangular, editorial ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
              color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn svg { width: 1.15em; height: 1.15em; transition: transform 0.25s ease; }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

/* terracotta gradient sweeps in on hover */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(139, 42, 32, 0.3);
}

.btn-primary:hover::before, .btn-primary:focus-visible::before { opacity: 1; }

.btn-primary:hover svg { transform: translateX(4px); }

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--terracotta);
  color: var(--terracotta-text);
  background: rgba(192, 73, 46, 0.06);
  transform: translateY(-2px);
}

.btn-wide { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: rgba(245, 239, 230, 0.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(245, 239, 230, 0.9);
  border-bottom-color: var(--hairline);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
}

.header-inner {
  max-width: 74rem;
  margin-inline: auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { width: 34px; transition: transform 0.35s ease; }

.brand:hover .brand-mark { transform: rotate(-8deg); }

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name em {
  font-style: italic;
  font-weight: 480;
  color: var(--terracotta-text);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 0.6rem 0.15rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.35rem;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover { color: var(--terracotta-text); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta { min-height: 2.75rem; padding: 0.6rem 1.3rem; font-size: 0.74rem; }

/* Mobile nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0 11px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  border-top: 1px solid var(--hairline);
}

.mobile-menu a:not(.btn) {
  padding: 0.8rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 29, 24, 0.07);
}

.mobile-menu .btn { margin-top: 1rem; }

body.menu-open .mobile-menu { display: flex; }

@media (max-width: 860px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 5.5rem;
  text-align: center;
  overflow: hidden;
}

/* oversized leaf watermark, gently swaying */
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -10vmin;
  width: 62vmin;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
  animation: sway 18s ease-in-out infinite alternate;
}

@keyframes sway {
  from { transform: translateY(-50%) rotate(-2.5deg); }
  to   { transform: translateY(-52%) rotate(3deg); }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: min(640px, 90vw);
  margin-bottom: 0.6rem;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.8rem, 6.8vw, 5rem);
}

/* line-mask headline reveal */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.line-inner { display: inline-block; }

html.js .reveal-line {
  transform: translateY(112%);
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--d, 0s);
}

html.js .reveal-line.in { transform: none; }

.hero-sub {
  max-width: 46ch;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding: 1.05rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.mq-group {
  display: flex;
  align-items: center;
  gap: 3.4rem;
  padding-right: 3.4rem;
}

.mq-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: rgba(43, 29, 24, 0.72);
  white-space: nowrap;
}

.mq-leaf { width: 17px; opacity: 0.85; }

/* Track holds 6 identical groups; shifting by exactly one group (-100%/6)
   and snapping back is invisible, so the strip never shows a gap. */
@keyframes marquee {
  to { transform: translateX(-16.6667%); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }

.section-alt { background: var(--cream-deep); }

.section-dark {
  background: var(--dark);
  color: var(--cream-on-dark);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.section h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }

.section-dark h2 em { color: #E0805F; }

.kicker-leaf { width: 26px; }

/* Kicker: echoes the "AGENCY" divider treatment in the logo */

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta-text);
}

.kicker span {
  width: 2.6rem;
  height: 1px;
  background: rgba(192, 73, 46, 0.45);
}

.kicker.left { justify-content: flex-start; margin-bottom: 1.3rem; }
.kicker.left span:last-child { display: none; }

.section-dark .kicker { color: #E0805F; }
.section-dark .kicker span { background: rgba(224, 128, 95, 0.45); }

/* ---------- Services ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative;
  padding: 2.2rem 1.9rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 73, 46, 0.45);
  box-shadow: 0 18px 40px rgba(43, 29, 24, 0.1);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(192, 73, 46, 0.4);
  border-radius: 4px;
  color: var(--terracotta);
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.card-icon svg { width: 1.5rem; height: 1.5rem; }

.card:hover .card-icon {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: rotate(-4deg);
}

.card h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }

.card p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 1.75rem;
}

@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

.work-card { transition: transform 0.3s ease; }

.work-card:hover { transform: translateY(-4px); }

.mock {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 16px 36px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.work-card:hover .mock {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 26px 52px rgba(0, 0, 0, 0.45);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: #EDE7DA;
}

.mock-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(43, 29, 24, 0.22);
}

.mock-body {
  aspect-ratio: 4 / 3;
  padding: 7.5%;
  display: flex;
  flex-direction: column;
  gap: 8%;
  background: var(--mBg);
}

/* mock primitives */

.ml {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--mInk);
}
.ml.f { opacity: 0.32; }
.ml.w40 { width: 40%; } .ml.w50 { width: 50%; } .ml.w60 { width: 60%; }
.ml.w70 { width: 70%; } .ml.w80 { width: 80%; }
.ml.mid { margin-inline: auto; }

.m-nav { display: flex; align-items: center; justify-content: space-between; }

.m-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mAcc); }
.m-dot.big { width: 20px; height: 20px; margin-inline: auto; }

.m-links { display: flex; gap: 8px; }
.m-links i { display: block; width: 16px; height: 5px; border-radius: 3px; background: var(--mInk); opacity: 0.4; }

.m-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--mAcc) 14%, var(--mBg));
}

.m-btn { display: block; width: 58px; height: 15px; border-radius: 3px; background: var(--mAcc); }

.m-row { display: flex; gap: 6%; }

.m-thumb {
  flex: 1;
  aspect-ratio: 5 / 4;
  border-radius: 4px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--mAcc) 45%, var(--mBg)), var(--mAcc));
}

.m-split { flex: 1; display: flex; gap: 8%; align-items: stretch; }

.m-copy { flex: 1.15; display: flex; flex-direction: column; justify-content: center; gap: 10px; }

.m-img {
  flex: 1;
  border-radius: 4px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--mAcc) 45%, var(--mBg)), var(--mAcc));
}

.m-center { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }

.m-menu { display: flex; gap: 10%; margin-top: 4px; }
.m-menu > span { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.work-meta { margin-top: 1.15rem; }

.work-meta h3 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 1.28rem;
  color: var(--cream-on-dark);
}

.work-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 480;
  font-size: 0.95rem;
  color: #E0805F;
}

.work-meta p {
  margin-top: 0.2rem;
  padding-left: 1.85rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--muted-on-dark);
}

.work-note {
  margin-top: 3.2rem;
  text-align: center;
  font-size: 0.93rem;
  color: var(--muted-on-dark);
}

/* ---------- Process ---------- */

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
  margin-top: 1rem;
  list-style: none;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: 9%;
  right: 9%;
  border-top: 1px dashed rgba(192, 73, 46, 0.35);
}

.step { text-align: center; }

/* numbered node sitting on the timeline */
.step-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1.4rem;
  background: var(--cream);
  border: 1px solid rgba(192, 73, 46, 0.5);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 550;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--terracotta-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.step:hover .step-node {
  transform: translateY(-3px);
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 42, 32, 0.22);
}

.step h3 { font-size: 1.4rem; margin-bottom: 0.55rem; }

.step p { font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}

@media (max-width: 540px) {
  .process-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
}

/* ---------- Why Redgum ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

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

.why-lead h2 { text-align: left; }

.why-sub {
  margin: 1.3rem 0 2.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.why-list { list-style: none; display: flex; flex-direction: column; }

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(43, 29, 24, 0.12);
}

.why-list li:first-child { padding-top: 0.25rem; }
.why-list li:last-child { border-bottom: 0; padding-bottom: 0.25rem; }

.leaf-bullet {
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  margin-top: 0.2rem;
  transition: transform 0.3s ease;
}

.why-list li:hover .leaf-bullet { transform: rotate(-8deg) scale(1.06); }

.leaf-bullet.big { width: 2.75rem; height: 2.75rem; margin: 0 auto 0.9rem; }

.why-list h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }

.why-list p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-sub { color: var(--ink-soft); max-width: 44ch; }

.form-card {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(43, 29, 24, 0.07);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field .optional { font-weight: 400; text-transform: none; letter-spacing: 0.02em; color: var(--ink-soft); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(43, 29, 24, 0.22);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 7.5rem; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(99, 80, 63, 0.6); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 73, 46, 0.14);
}

.field input.invalid,
.field textarea.invalid { border-color: #B3261E; }

.form-error {
  margin: -0.2rem 0 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #B3261E;
}

.form-success { text-align: center; padding: 1.5rem 0.5rem; }

.form-success h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }

.form-success p { color: var(--ink-soft); }

.contact-alt {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.contact-alt a { font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark-deeper);
  color: var(--cream-on-dark);
  padding: 4.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2.5rem 4rem;
  align-items: start;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(245, 239, 230, 0.12);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.footer-badge {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  background: var(--cream);
  border-radius: 50%;
}

.footer-badge img { width: 2rem; }

.footer-brand .brand-name { color: var(--cream-on-dark); font-size: 1.5rem; }
.footer-brand .brand-name em { color: #E0805F; }

.footer-brand p {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--muted-on-dark);
  max-width: 30ch;
}

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

.footer-nav-label {
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #E0805F;
}

.footer-nav a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}

/* short terracotta rule that slides out on hover, echoing the section kickers */
.footer-nav-rule {
  width: 0;
  height: 1px;
  margin-right: 0;
  background: #E0805F;
  transition: width 0.28s ease, margin-right 0.28s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--cream-on-dark);
}

.footer-nav a:hover .footer-nav-rule,
.footer-nav a:focus-visible .footer-nav-rule {
  width: 1.6rem;
  margin-right: 0.85rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.88rem;
  color: var(--muted-on-dark);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.back-top:hover {
  color: var(--cream-on-dark);
  border-color: var(--terracotta);
  background: rgba(192, 73, 46, 0.16);
  transform: translateY(-2px);
}

/* ---------- Scroll reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}

html.js .reveal.in { opacity: 1; transform: none; }

/* Animations always run (per client request), independent of the OS
   "reduce motion" setting. A JS failsafe guarantees .reveal content still
   becomes visible even if the reveal observer never fires. */
