/* Fractional Consulting site styles
   Type: Prata (headings) + Montserrat (body)
   Colour: charcoal + Fractional red, from the FC logo */

@font-face { font-family: "Prata"; src: url("../fonts/prata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #141416;
  --ink-2: #1d1d21;
  --ink-3: #2a2a30;
  --red: #ff214f;
  --red-600: #d3113b;
  --red-tint: #ffe4ea;
  --paper: #f7f5f2;
  --white: #ffffff;
  --text: #1b1b1e;
  --muted: #5d5d66;
  --muted-dark: #b4b4bd;
  --line: #e4e0db;
  --line-dark: #34343b;
  --radius: 4px;
  --wrap: 1160px;
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Aptos", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red-600); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; color: inherit; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.on-dark .lead { color: var(--muted-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Eyebrow + accent line (brand line element) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 18px;
}
.on-dark .eyebrow { color: var(--red); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.rule { width: 64px; height: 1px; background: var(--red); border: 0; margin: 22px 0 26px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand svg { width: 40px; height: 37px; flex: none; color: #fff; }
.brand-name { font-family: var(--sans); font-weight: 600; letter-spacing: 0.2em; font-size: 0.8rem; line-height: 1.3; text-transform: uppercase; }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #e9e9ee; text-decoration: none; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.nav .btn { padding: 11px 20px; border: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: #fff; width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; margin: 4px auto; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line-dark); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--line-dark); }
  .nav .btn { margin-top: 18px; width: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff !important; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em;
  padding: 15px 26px; border-radius: var(--radius); border: 1px solid var(--red); cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--red-600); border-color: var(--red-600); }
.btn .arrow { width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: #fff !important; border-color: var(--text); }
.on-dark .btn-ghost { color: #fff !important; border-color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink) !important; }
.text-link { font-weight: 600; font-size: 0.92rem; text-decoration: none; letter-spacing: 0.02em; }
.text-link::after { content: " \2192"; }

/* Sections */
section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.bg-paper { background: var(--paper); }
.on-dark { background: var(--ink); color: #f2f2f5; }
.on-dark a:not(.btn) { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 128px 0 120px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(60deg, transparent 0 55%, rgba(255,255,255,0.025) 55% 100%),
    linear-gradient(120deg, rgba(255,255,255,0.02) 0 30%, transparent 30% 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero p { color: #cfcfd6; max-width: 38em; }
.hero p.hero-strong { color: #fff; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-art { justify-self: end; width: 100%; max-width: 380px; }
.page-hero { padding: 104px 0 88px; }
.page-hero .wrap { grid-template-columns: 1fr; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 16em; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero { padding: 88px 0 80px; }
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 76px 0; }
}

/* Lists with triangle bullets (brand graphic element) */
.tri-list { list-style: none; padding: 0; margin: 0; }
.tri-list li { position: relative; padding-left: 28px; margin: 0 0 12px; }
.tri-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 0; height: 0; border-left: 8px solid var(--red); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.tri-list.cols { columns: 2; column-gap: 40px; }
.tri-list.cols li { break-inside: avoid; }
@media (max-width: 640px) { .tri-list.cols { columns: 1; } }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; position: relative; }
.bg-paper .card { background: #fff; }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--muted); }
.card .num { font-family: var(--serif); color: var(--red-600); font-size: 1.1rem; margin-bottom: 14px; display: block; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
.card-link:hover { border-color: var(--text); color: inherit; transform: translateY(-2px); }
.card-link .text-link { color: var(--red-600); }

/* Capability blocks (What We Do page) */
.capability { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; padding: 64px 0; border-top: 1px solid var(--line); }
.capability:first-child { border-top: 0; padding-top: 0; }
.capability .num { font-family: var(--serif); color: var(--red-600); font-size: 1.1rem; display: block; margin-bottom: 12px; }
.capability p { color: var(--muted); }
@media (max-width: 900px) { .capability { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; } }

/* Tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 0.78rem; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; }
.on-dark .tags li { border-color: var(--line-dark); color: var(--muted-dark); background: transparent; }

/* Lifecycle diagram */
.lifecycle a { display: block; color: inherit; text-decoration: none; }
.lifecycle a:hover h3, .lifecycle a:focus-visible h3 { color: var(--red); }
.lifecycle a:hover p { color: #fff; }
[id] { scroll-margin-top: 96px; }
.capability:target h2 { color: var(--red-600); }
.capability:target { background: linear-gradient(90deg, var(--red-tint), transparent 60%); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.lifecycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: step; position: relative; }
.lifecycle li { position: relative; padding: 0 14px 0 0; }
.lifecycle li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--red); color: #fff; border-radius: 50%;
  font-family: var(--serif); font-size: 0.95rem; margin-bottom: 18px; background: var(--ink); position: relative; z-index: 1;
}
.lifecycle li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1px; background: var(--line-dark); }
.lifecycle li:last-child::after { display: none; }
.lifecycle h3 { font-family: var(--sans); font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; color: #fff; }
.lifecycle p { font-size: 0.84rem; color: var(--muted-dark); line-height: 1.55; margin: 0; }
.lifecycle .stop { display: inline-block; margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
@media (max-width: 1000px) {
  .lifecycle { grid-template-columns: 1fr; gap: 0; }
  .lifecycle li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding: 0 0 26px; }
  .lifecycle li::before { margin: 0; grid-row: span 3; }
  .lifecycle li::after { top: 48px; bottom: 0; left: 24px; right: auto; width: 1px; height: auto; }
}

/* Value vs effort matrix */
.matrix { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 1fr 34px; gap: 10px; max-width: 520px; width: 100%; }
.matrix .y-label, .matrix .x-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.matrix .y-label { writing-mode: vertical-rl; transform: rotate(180deg); }
.matrix .x-label { grid-column: 2; }
.matrix .cells { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1 / 1; }
.matrix .cell { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; background: #fff; }
.matrix .cell strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.matrix .cell span { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.matrix .cell.quick { background: var(--red); border-color: var(--red); color: #fff; }
.matrix .cell.quick span { color: #ffe3e9; }
.matrix .cell.strategic { background: var(--ink); border-color: var(--ink); color: #fff; }
.matrix .cell.strategic span { color: var(--muted-dark); }
.matrix .cell.low { background: transparent; border-style: dashed; }

/* Industry tag */
.industry {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 12px; margin-bottom: 18px; text-decoration: none; line-height: 1.2;
}
.industry::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--red); }
a.industry:hover { border-color: var(--text); color: var(--text); }
.industry-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.industry-strip .industry { margin: 0; }
.strip-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }

/* Selected work */
.work { padding: 56px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.work:first-of-type { border-top: 0; padding-top: 0; }
.work h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.work h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-600); margin: 0 0 10px; }
.work .block { margin-bottom: 28px; }
.work .block p { color: var(--muted); }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; gap: 16px; } }

.work-card h3 { font-size: 1.45rem; }
.work-card h4 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-600); margin: 18px 0 6px; }

/* Stat-free proof strip */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.principles div { padding: 30px 28px 30px 0; }
.principles div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.principles strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: #fff; margin-bottom: 4px; }
.principles span { color: var(--muted-dark); font-size: 0.9rem; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principles div, .principles div + div { padding: 22px 0; border-left: 0; }
  .principles div + div { border-top: 1px solid var(--line-dark); }
}

/* CTA band */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { color: var(--muted-dark); margin: 0; max-width: 36em; }

/* Form */
.form { display: grid; gap: 20px; }
.form label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; color: var(--text); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 14px 16px; border: 1px solid #cfcac4; border-radius: var(--radius); background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,33,79,0.15); }
.form textarea { min-height: 170px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.form .note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0d0d0f; color: #a9a9b3; padding: 64px 0 36px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d9d9e0; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #25252b; padding-top: 24px; margin-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Decorative triangle outlines */
.tri-deco { position: absolute; pointer-events: none; opacity: 0.9; }
.tri-deco path { fill: none; stroke: var(--red); stroke-width: 1.2; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack-lg > * + * { margin-top: 28px; }
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.35; margin: 0; }
.quote em { font-style: normal; color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
