/* mattfraleigh.com
   Brand book palette (Fernando / Valentina, Jul 2026), layout from the approved boards (Oct 2026). */
:root {
  --vellum: #E8E3D9;
  --vellum-soft: #F1EDE5;
  --paper: #F3F0EA;
  --field: #FBFAF7;
  --harbor: #243A3D;
  --charcoal: #1E1E1E;
  --umber: #B08A6A;
  --umber-dark: #8C6A4E;
  --umber-light: #C9A27F;
  --ink-2: #3D3F42;   /* secondary text on vellum */
  --ink-3: #4F5255;   /* labels on vellum */
  --ink-4: #5E6164;   /* small print on vellum */
  --mist: #DDD7CB;    /* body text on harbor */
  --fog: #A3A5A7;     /* small print on charcoal */
  --line: rgba(30, 30, 30, 0.14);
  --line-dark: rgba(232, 227, 217, 0.28);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --pad: 48px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--charcoal); text-decoration-color: var(--umber); text-underline-offset: 3px; transition: color .25s ease; }
a:hover { color: var(--umber-dark); }
p { margin: 0 0 18px; }
:focus-visible { outline: 2px solid var(--umber); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 860px) { :root { --pad: 32px; } }
@media (max-width: 600px) { :root { --pad: 16px; } }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; }
.display, h1 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1.0; margin: 0 0 32px; }
h2 { font-weight: 600; font-size: 46px; line-height: 1.12; margin: 0 0 20px; }
h2.display { line-height: 1.08; }
h3 { font-weight: 500; font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
@media (max-width: 600px) {
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
}

.eyebrow {
  margin: 0 0 18px; font-family: var(--mono); font-size: 13px; line-height: 1.5;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--umber-dark);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--charcoal); }
.lede { font-size: 21px; line-height: 1.6; max-width: 660px; }
.intro { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 640px; margin-bottom: 44px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* dark surfaces */
.on-dark { color: var(--vellum); }
.on-dark .eyebrow { color: var(--umber); }
.on-dark a { color: var(--vellum); }
.on-harbor { background: var(--harbor); color: var(--vellum); }
.on-charcoal { background: var(--charcoal); color: var(--vellum); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 18px 30px; border: 0; border-radius: 0;
  font: 600 15px/1.2 var(--sans); letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--charcoal); color: var(--vellum); }
.btn-dark:hover { background: var(--harbor); color: var(--vellum); }
.btn-line { padding: 17px 29px; border: 1px solid var(--charcoal); background: transparent; color: var(--charcoal); }
.btn-line:hover { background: var(--charcoal); color: var(--vellum); }
.btn-light, .on-dark .btn-light { background: var(--vellum); color: var(--charcoal); }
.btn-light:hover, .on-dark .btn-light:hover { background: var(--umber); color: var(--charcoal); }

.text-link {
  font-size: 15px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--umber); padding-bottom: 3px;
}
.arrow { display: inline-block; transition: transform .35s ease; }
.text-link:hover .arrow, .row-link:hover .arrow { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); position: relative; }
.site-header .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 18px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav a { position: relative; text-decoration: none; font-size: 16px; font-weight: 500; line-height: 1.4; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--umber);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:hover { color: var(--charcoal); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-header .wrap { height: 72px; }
  .nav-toggle {
    display: block; background: none; border: 0; padding: 8px 0; cursor: pointer;
    font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal);
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px; z-index: 20;
    flex-direction: column; gap: 0; background: var(--vellum); border-bottom: 1px solid var(--line);
    padding: 4px var(--pad) 12px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--umber-dark); }
}

/* ---------- Sections ---------- */
.section { padding-top: 112px; padding-bottom: 112px; }
.section-soft { background: var(--vellum-soft); }
.page-head { padding-top: 96px; padding-bottom: 56px; }
.page-head h1 { margin-bottom: 24px; max-width: 880px; }
@media (max-width: 600px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .page-head { padding-top: 56px; padding-bottom: 40px; }
}

/* ---------- Home: hero ---------- */
.hero {
  padding-top: 72px; padding-bottom: 112px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 72px; align-items: center;
}
.hero h1 { white-space: nowrap; font-size: clamp(60px, 7.4vw, 100px); line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 22px; }
.hero-sub { margin: 0 0 22px; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.3; font-weight: 500; color: var(--harbor); max-width: 540px; }
.hero-lede { margin: 0 0 40px; font-size: 19px; line-height: 1.65; max-width: 540px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 600px) {
  .hero { padding-top: 40px; padding-bottom: 72px; gap: 48px; }
  .hero h1 { font-size: 56px; }
}

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 32px; max-width: 540px;
}
.stat-num { font-family: var(--mono); font-size: 42px; line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
@media (max-width: 420px) {
  .stats { gap: 16px; }
  .stat-num { font-size: 34px; }
}

/* ---------- Home: How I work (Harbor band with photo blend) ---------- */
.band { position: relative; overflow: hidden; }
.band-photo { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 50%; background: var(--harbor); }
.band-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  filter: grayscale(1) contrast(1.12) brightness(1.05); mix-blend-mode: luminosity; opacity: 0.92;
}
.band-photo::before, .band-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.band-photo::before { background: linear-gradient(90deg, #243a3d 0%, rgba(36,58,61,0.82) 18%, rgba(36,58,61,0.18) 55%, rgba(36,58,61,0.3) 100%); }
.band-photo::after { background: linear-gradient(0deg, #243a3d 0%, rgba(36,58,61,0) 32%, rgba(36,58,61,0) 82%, rgba(36,58,61,0.6) 100%); }
.band-copy { position: relative; padding-top: 120px; padding-bottom: 120px; }
.band-inner { max-width: 600px; }
.band-inner > .intro { color: var(--mist); margin-bottom: 56px; }
@media (max-width: 860px) {
  .band-photo { position: relative; width: 100%; height: 440px; }
  .band-copy { padding-top: 56px; padding-bottom: 80px; }
}

.offers { display: grid; gap: 40px; }
.card { border-top: 1px solid var(--line); padding-top: 28px; transition: border-color .35s ease; }
.on-dark .card { border-top-color: var(--line-dark); }
.card:hover, .on-dark .card:hover { border-top-color: var(--umber); }
.card-num { margin: 0 0 10px; font-family: var(--mono); font-size: 13px; color: var(--umber); }
.card p:not(.card-num) { font-size: 17px; line-height: 1.7; }
.on-dark .card p:not(.card-num) { color: var(--mist); }
.card p:last-child { margin-bottom: 0; }
.card .text-link { color: var(--vellum); }

/* ---------- Row links (case studies, writing) ---------- */
.rows { border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.row-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap;
  padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .35s ease, background-color .35s ease;
}
.row-link:hover { padding-left: 20px; padding-right: 20px; background: rgba(36, 58, 61, 0.07); color: var(--charcoal); }
.row-title { font-weight: 500; font-size: 26px; line-height: 1.3; }
.row-note { display: block; margin-top: 6px; font-size: 16px; font-weight: 400; color: var(--ink-3); }
.row-tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--umber-dark); white-space: nowrap; }
@media (max-width: 600px) {
  .row-link { padding: 24px 0; }
  .row-title { font-size: 22px; }
}

/* ---------- Home: writing / subscribe ---------- */
.writing { display: flex; gap: 64px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; padding-top: 96px; padding-bottom: 96px; }
.writing-copy { flex: 999 1 460px; min-width: 0; max-width: 600px; }
.writing-copy p:last-child { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.subscribe { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.subscribe label { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.subscribe .btn { padding: 18px 28px; }
@media (max-width: 600px) { .writing { padding-top: 72px; padding-bottom: 72px; gap: 32px; } }

/* ---------- Closing CTA (dark, sits on the footer) ---------- */
.cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; padding-top: 112px; padding-bottom: 112px; }
.cta-copy { max-width: 660px; }
.cta .eyebrow { font-size: 16px; margin-bottom: 20px; }
.cta h2 { font-size: 56px; line-height: 1.06; margin: 0; }
@media (max-width: 600px) {
  .cta { padding-top: 72px; padding-bottom: 72px; gap: 32px; }
  .cta h2 { font-size: 40px; }
}

/* ---------- Forms ---------- */
.field-label {
  display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.field-label input, .field-label textarea { margin-top: 8px; }
input:not([type="hidden"]), textarea {
  width: 100%; padding: 16px; font: 17px/1.5 var(--sans); color: var(--charcoal); letter-spacing: 0; text-transform: none;
  background: var(--field); border: 1px solid rgba(30, 30, 30, 0.25); border-radius: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--umber); outline-offset: 0; border-color: var(--umber); }
textarea { min-height: 140px; resize: vertical; }
.form { display: grid; gap: 22px; max-width: 560px; }
.form label { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.hp { position: absolute !important; left: -9999px; }

/* ---------- Projects ---------- */
.map { padding-bottom: 72px; }
.map img { width: 100%; height: auto; }
.map-key { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 15px; color: var(--ink-2); }
.map-key span { font-family: var(--mono); color: var(--umber-dark); margin-right: 4px; }

.projects { padding-bottom: 112px; }
.group-head { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.1; color: var(--harbor); margin: 56px 0 16px; }
.group-head:first-child { margin-top: 24px; }
.project {
  border-top: 1px solid var(--line); padding: 56px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px; align-items: start;
}
.project h2 { font-size: 36px; line-height: 1.15; margin: 0 0 8px; transition: color .3s ease; }
.project:hover h2 { color: var(--harbor); }
.project p { line-height: 1.7; margin-bottom: 16px; }
.project-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.project-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.project-meta { margin: 0 0 14px !important; font-family: var(--mono); font-size: 13px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--umber-dark); }
.project-kind { font-size: 17px; color: var(--ink-3); margin-bottom: 22px !important; }
.project-solo { max-width: 760px; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-num { font-family: var(--mono); font-size: 24px; line-height: 1.3; }
.fig-label { font-size: 14px; line-height: 1.4; color: var(--ink-3); margin-top: 4px; }
.role { margin: 0 !important; font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.figs + .role { margin-top: 18px !important; }
@media (max-width: 600px) {
  .project { padding: 40px 0; gap: 28px; }
  .project h2 { font-size: 30px; }
  .group-head { font-size: 38px; }
  .fig-num { font-size: 20px; }
}

.availability { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; padding-top: 72px; padding-bottom: 72px; }
.availability-copy { max-width: 640px; }
.availability .eyebrow { margin-bottom: 12px; }
.availability-copy p:last-child { margin: 0; font-size: 21px; line-height: 1.6; }

/* ---------- About ---------- */
.story { padding-top: 96px; padding-bottom: 72px; display: flex; gap: 72px; flex-wrap: wrap; align-items: flex-start; }
.story-photo { flex: 1 1 340px; max-width: 440px; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.story-copy { flex: 999 1 520px; min-width: 0; max-width: 660px; }
.story-copy .lede { font-size: 22px; margin-bottom: 22px; }
.story-copy p:not(.eyebrow) { font-size: 19px; margin-bottom: 22px; }
@media (max-width: 600px) { .story { padding-top: 48px; gap: 40px; } .story-copy .lede { font-size: 20px; } }

.timeline { border-top: 1px solid rgba(30, 30, 30, 0.16); }
.step {
  display: grid; grid-template-columns: 28px minmax(140px, 220px) 1fr; gap: 24px; align-items: baseline;
  padding: 24px 12px; border-bottom: 1px solid rgba(30, 30, 30, 0.12); transition: background-color .3s ease;
}
.step:hover { background: rgba(36, 58, 61, 0.06); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--harbor); display: block; transition: background-color .3s ease, transform .3s ease; }
.dot-now { background: var(--umber); }
.step:hover .dot { background: var(--umber); transform: scale(1.25); }
.step-when { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; color: var(--umber-dark); }
.step-what { font-size: 18px; line-height: 1.6; }
.after-timeline { margin: 40px 0 0; font-size: 19px; max-width: 760px; }
@media (max-width: 600px) {
  .step { grid-template-columns: 20px 1fr; gap: 4px 12px; padding: 20px 4px; }
  .step .dot { grid-row: 1; align-self: center; }
  .step-what { grid-column: 2; }
}

.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 48px 56px; }
.proof-grid .card { padding-top: 24px; }
.proof-grid h3 { font-size: 24px; }
.on-harbor h2 { margin-bottom: 52px; }

.mentoring { display: flex; gap: 72px; flex-wrap: wrap-reverse; align-items: center; }
.mentoring-copy { flex: 999 1 520px; min-width: 0; max-width: 640px; }
.mentoring-copy h2 { margin-bottom: 24px; }
.mentoring-copy p:not(.eyebrow) { font-size: 19px; }
.mentoring-copy p:last-child { margin: 0; }
.mentoring-photo { flex: 1 1 280px; max-width: 380px; }
.mentoring-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }

/* ---------- Case study ---------- */
.cs-head { padding-top: 88px; padding-bottom: 72px; }
.cs-head .eyebrow { font-size: 13px; margin-bottom: 20px; color: var(--umber); }
.cs-head .eyebrow a:hover { color: var(--vellum); }
.cs-head h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.02; margin: 0 0 48px; max-width: 880px; }
.cs-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; border-top: 1px solid rgba(232, 227, 217, 0.25); padding-top: 28px; }
.cs-strip-label { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--umber-light); margin-bottom: 10px; }
.cs-strip-value { font-size: 18px; line-height: 1.5; }
.cs-tested { margin: 28px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--umber); }
@media (max-width: 600px) {
  .cs-head { padding-top: 56px; padding-bottom: 56px; }
  .cs-head h1 { margin-bottom: 36px; }
  .cs-strip { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .cs-strip-label { font-size: 13px; }
  .cs-strip-value { font-size: 16px; }
}

.cs-body { padding-top: 88px; padding-bottom: 104px; display: flex; gap: 72px; flex-wrap: wrap; align-items: flex-start; }
.toc { flex: 1 1 220px; max-width: 260px; position: sticky; top: 32px; }
.toc-label { margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.toc nav { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.4; }
.toc a { text-decoration: none; transition: padding-left .3s ease, color .25s ease; }
.toc a:hover { padding-left: 8px; }
.prose { flex: 999 1 560px; min-width: 0; max-width: 700px; }
.prose p { font-size: 18px; line-height: 1.75; margin: 0 0 18px; }
.prose h2 { font-size: 30px; line-height: 1.2; margin: 48px 0 16px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose .note { font-size: 14px; line-height: 1.6; color: var(--ink-4); margin-top: 48px; }
.prose .actions { margin-top: 32px; }
@media (max-width: 860px) {
  .cs-body { gap: 40px; padding-top: 56px; padding-bottom: 72px; }
  .toc { position: static; max-width: none; flex-basis: 100%; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
}

.callout {
  margin: 28px 0 32px; padding: 28px 32px; background: var(--charcoal); color: var(--vellum);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px;
}
.callout-num { font-family: var(--mono); font-size: 34px; line-height: 1; }
.callout-label { font-size: 13px; line-height: 1.45; color: #B9B3A8; margin-top: 10px; }

/* PDF download box (rendered by build.py when DOWNLOADS_ON) */
.download { margin-top: 56px; padding: 32px; border: 1px solid rgba(30, 30, 30, 0.18); }
.download .eyebrow { font-size: 13px; margin-bottom: 8px; }
.download p { font-size: 16px; }
.download .form { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download .form label { font-size: 12px; margin-bottom: 6px; }
.download .form > div:last-child { grid-column: 1 / -1; }
.download input:not([type="hidden"]) { padding: 13px 14px; font-size: 16px; background: var(--paper); border-color: rgba(30, 30, 30, 0.2); }
.download .btn { padding: 16px 28px; font-size: 14px; }
@media (max-width: 600px) { .download { padding: 24px 20px; } .download .form { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 72px; align-items: start; padding-bottom: 112px; }
.contact .lede { font-size: 19px; line-height: 1.7; }
.direct { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 12px; }
.direct p { font-size: 17px; margin-bottom: 10px; }
.direct a { font-weight: 600; }
@media (max-width: 600px) { .contact { gap: 48px; padding-bottom: 72px; } }

/* ---------- Blog article ---------- */
.article { max-width: 700px; padding-bottom: 112px; }
.article p { font-size: 19px; line-height: 1.75; }
.article .lede { font-size: 22px; line-height: 1.6; }
.byline { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.3; margin-top: 40px; }
.byline span { display: block; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 600px) { .article { padding-bottom: 72px; } .article p { font-size: 18px; } .article .lede { font-size: 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--vellum); border-top: 1px solid rgba(232, 227, 217, 0.14); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer img { height: 48px; width: auto; }
.site-footer .foot-links { margin: 0; display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--mono, 'JetBrains Mono', monospace); font-size: 13px; letter-spacing: 0.06em; }
.site-footer .foot-links a { color: var(--vellum); text-decoration: none; border-bottom: 1px solid rgba(176,138,106,0.6); padding-bottom: 2px; transition: color .25s ease, border-color .25s ease; }
.site-footer .foot-links a:hover { color: #b08a6a; border-color: #b08a6a; }
.site-footer .legal { margin: 0; font-size: 13px; line-height: 1.6; color: var(--fog); max-width: 520px; }

/* ---------- Image zoom on hover ---------- */
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.4s var(--ease-out); }
.zoom:hover img { transform: scale(1.04); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s var(--ease-out) both; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .26s; }
.d3 { animation-delay: .4s; }
.d4 { animation-delay: .54s; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small helpers ---------- */
h2.tight { margin-bottom: 14px; }
.writing-copy h2 { margin-bottom: 16px; }
.path { padding-bottom: 112px; }
@media (max-width: 600px) { .path { padding-bottom: 72px; } }
.page-head .lede:last-child { margin-bottom: 0; }
.list-section { padding-bottom: 112px; }
.page-short { padding-bottom: 200px; }
@media (max-width: 600px) { .list-section { padding-bottom: 72px; } .page-short { padding-bottom: 96px; } }
.cs-head .eyebrow a { color: inherit; }
.download .btn { background: var(--charcoal); color: var(--vellum); }
.download .btn:hover { background: var(--harbor); color: var(--vellum); }

/* Contact: three ways to work together */
.ways { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid rgba(30,30,30,0.14); max-width: 720px; }
.ways li { padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(30,30,30,0.14); font-size: 19px; line-height: 1.5; position: relative; }
.ways li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: #b08a6a; }

/* Cookie consent (only rendered when ad/analytics tags are set) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--charcoal); color: var(--vellum); padding: 18px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1 1 260px; }
.consent div { display: flex; gap: 10px; }
.consent .btn { padding: 10px 18px; font-size: 14px; }
.consent .btn-line { color: var(--vellum); border-color: rgba(232,227,217,.5); background: transparent; }

/* Hero: career credentials line */
.formerly { margin: 0 0 44px; padding-top: 4px; max-width: 540px; font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.formerly span { color: var(--umber-dark); margin-right: 6px; }

/* Brand texture: the "Hueso" linen/plaster grain from the brand book, drawn in CSS (no image to load) */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .44 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
@media print { body::before { display: none; } }

/* Texture strips: Matt's own drone footage, used between sections like the brand book's material pages */
.texture-strip { position: relative; height: clamp(140px, 17vw, 260px); background-size: cover; background-position: center; background-repeat: no-repeat; filter: saturate(.85); }
.strip-cap { position: absolute; left: 24px; bottom: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.45); }
@media (min-width: 900px) { .strip-cap { left: max(48px, calc((100vw - 1200px) / 2 + 48px)); } }

/* WhatsApp: quiet umber button, phones only */
.wa-float { display: none; }
@media (max-width: 760px) {
  .wa-float { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: var(--umber-dark); color: var(--vellum); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
}
.wa-line a { display: inline-flex; align-items: center; gap: 8px; color: var(--umber-dark); text-decoration: none; border-bottom: 1px solid rgba(176,138,106,.5); padding-bottom: 2px; }
.wa-line a:hover { color: var(--charcoal); border-color: var(--charcoal); }
