/* ==========================================================================
   Grey Fort — global styles
   ========================================================================== */

:root {
  --bg: #FBF8F2;
  --text: #2C2A24;
  --text-secondary: #6B6555;
  --border: #E5DFD1;
  --accent: #1F5A54;
  --accent-hover: #17453F;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}

a {
  color: inherit;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Skip link (keyboard accessibility)
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo img {
  height: 68px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

.site-nav a.nav-login {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 0.95rem;
  margin-left: 0.25rem;
}

.site-nav a.nav-login:hover {
  background-color: var(--accent);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Scroll reveal (class applied by js/main.js)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  padding: 4.75rem 0;
  background-color: #F4EEE1;
}

.kicker::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background-color: var(--accent);
  margin-bottom: 1.125rem;
}

.kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero--text .container {
  grid-template-columns: 1fr;
}

.hero--text .hero-text {
  max-width: 48rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.375rem);
  line-height: 1.0;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 32rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.875rem 2rem;
  border: 1px solid var(--accent);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  background-color: transparent;
  border: 1px solid var(--accent);
  padding: 0.7rem 1.4rem;
  margin-top: 2.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-linkedin .ln-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-linkedin:hover {
  background-color: var(--accent);
  color: var(--bg);
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero .portrait {
  aspect-ratio: 1 / 1;
  object-position: 50% 22%;
  filter: grayscale(1);
}

.hero .hero-image {
  position: relative;
  z-index: 0;
}

.hero .hero-image::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 1px solid var(--text-secondary);
  z-index: -1;
}

/* --------------------------------------------------------------------------
   Home — stat strip
   -------------------------------------------------------------------------- */

.stats {
  padding: 3.75rem 0;
}

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

.stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.375rem;
  color: var(--accent);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.stat-single {
  max-width: 42rem;
}

.stat-single .stat-label {
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Home — intro statement
   -------------------------------------------------------------------------- */

.photo-band {
  background-image: linear-gradient(rgba(44, 42, 36, 0.65), rgba(44, 42, 36, 0.65)), url("../images/lislea-road.jpg");
  background-size: cover;
  background-position: 50% 85%;
}

.photo-band .kicker {
  color: rgba(251, 248, 242, 0.65);
}

.photo-band .who {
  border-top: none;
}

.photo-band .who .who-item h3,
.photo-band .case-teaser-plain h2 {
  color: var(--bg);
}

.photo-band .who .who-item p {
  color: rgba(251, 248, 242, 0.82);
}

.photo-band .case-teaser-plain {
  border-top-color: rgba(251, 248, 242, 0.3);
}

.photo-band .case-teaser-plain .text-link {
  color: var(--bg);
  text-decoration-color: rgba(251, 248, 242, 0.6);
}

.photo-band .case-teaser-plain .text-link:hover {
  text-decoration-color: var(--bg);
}

.intro {
  padding: 6.5rem 0 5.5rem;
}

.intro p {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.6;
  max-width: 46rem;
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Home — service summaries
   -------------------------------------------------------------------------- */

.services-summary {
  border-top: 1px solid rgba(251, 248, 242, 0.3);
  padding: 4.5rem 0 5.5rem;
}

.services-summary .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.services-summary h2 {
  font-size: 1.375rem;
  margin-bottom: 0.875rem;
  color: var(--bg);
}

.services-summary p {
  color: rgba(251, 248, 242, 0.82);
  font-size: 0.9875rem;
}

.services-summary .text-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--bg);
  text-decoration-color: rgba(251, 248, 242, 0.6);
}

.services-summary .text-link:hover {
  text-decoration-color: var(--bg);
}

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-header {
  padding: 4.5rem 0;
  background-color: #F4EEE1;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 40rem;
}

.page-header--photo {
  background-color: transparent;
  background-image: linear-gradient(rgba(44, 42, 36, 0.65), rgba(44, 42, 36, 0.65)), url("../images/lislea-road.jpg");
  background-size: cover;
  background-position: 50% 85%;
}

.page-header--photo h1 {
  color: var(--bg);
}

.page-header--photo .kicker {
  color: rgba(251, 248, 242, 0.65);
}

.page-header h1 em {
  font-style: italic;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 34rem;
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Dark statement band (section rhythm)
   -------------------------------------------------------------------------- */

.statement {
  background-color: #2C2A24;
  padding: 6rem 0;
}

.statement .kicker {
  color: rgba(251, 248, 242, 0.6);
}

.statement p {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  line-height: 1.3;
  color: var(--bg);
  max-width: 42rem;
}

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

.service-section {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  scroll-margin-top: 1.5rem;
}

.service-section .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

.service-section .section-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-section .icon {
  width: 44px;
  height: 44px;
  stroke: var(--text);
  margin-bottom: 1.25rem;
}

.service-section h2 {
  font-size: 1.625rem;
}

.service-section .service-body p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.service-section ul {
  list-style: none;
}

.service-section li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  max-width: 40rem;
}

.service-section li:last-child {
  border-bottom: none;
}

.service-section li strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.service-section li span {
  color: var(--text-secondary);
  font-size: 0.9875rem;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about {
  padding: 4.5rem 0 5.5rem;
  background-color: #F4EEE1;
}

.about .about-image {
  position: relative;
  z-index: 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.about h1 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.about .title {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.about .bio p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.team-grid {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 5.5rem;
}

.team-grid h2 {
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
}

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

.team-member h3 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-member .title {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.team-member .member-bio {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 0.6rem;
  line-height: 1.5;
}

.member-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.member-linkedin .ln-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.member-linkedin:hover {
  color: var(--accent-hover);
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-secondary);
  transition: text-decoration-color 0.15s ease;
}

.text-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.arrow-link::after {
  content: " \2192";
  display: inline-block;
  white-space: pre;
  transition: transform 0.2s ease;
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Insights page
   -------------------------------------------------------------------------- */

.insights-list {
  padding-bottom: 5.5rem;
}

.insight {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  max-width: 44rem;
}

.insight .meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.625rem;
}

.insight h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.insight h2 a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.insight h2 a:hover {
  color: var(--text-secondary);
}

.insight p {
  color: var(--text-secondary);
  font-size: 0.9875rem;
}

.insight .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.engagement-detail {
  list-style: none;
  margin: 0.75rem 0 0;
}

.engagement-detail li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.engagement-detail li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.insights-group + .insights-group {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 2.5rem;
}

.insights-group > .kicker {
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Track record table
   -------------------------------------------------------------------------- */

.track-record {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 5.5rem;
}

.track-record h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.track-record .intro-line {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.record-table {
  width: 100%;
  border-collapse: collapse;
}

.record-table th {
  text-align: left;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 1.5rem 1rem 0;
  border-bottom: 1px solid var(--border);
}

.record-table td {
  padding: 1.125rem 1.5rem 1.125rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.9875rem;
}

.record-table td:first-child {
  font-weight: 600;
}

.record-table .outcome {
  color: var(--text-secondary);
}

.table-scroll {
  overflow-x: auto;
}

@media (max-width: 620px) {
  .record-table {
    min-width: 34rem;
  }
}

/* --------------------------------------------------------------------------
   Case study detail
   -------------------------------------------------------------------------- */

.case-detail {
  padding: 3.5rem 0 5rem;
}

.case-detail .container {
  max-width: 46rem;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.case-facts dt {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.case-facts dd {
  font-size: 1.0625rem;
}

.case-detail h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.case-detail p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.case-steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
}

.case-steps li {
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  counter-increment: step;
}

.case-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.15rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.case-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 1.75rem;
  bottom: 0.25rem;
  width: 1px;
  background-color: var(--border);
}

.case-steps strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.case-steps span {
  color: var(--text-secondary);
  font-size: 0.9875rem;
}

.case-back {
  margin-top: 3rem;
  font-size: 0.9375rem;
}

.case-back::before {
  content: "\2190  ";
}

/* Case study — visual / rich layout */

.case-detail--rich .container {
  max-width: 60rem;
}

.case-detail--rich p {
  max-width: 46rem;
}

.deal-snapshot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
  margin-bottom: 3rem;
}

.deal-snapshot .snap-num {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.snap-label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-figure {
  margin: 0 0 3rem;
}

.case-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.case-figure figcaption {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-top: 0.65rem;
}

.phase-timeline {
  list-style: none;
  margin: 1.5rem 0 0;
}

.phase-timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
}

.phase-when {
  font-family: var(--serif);
  color: var(--text-secondary);
  font-size: 1rem;
  padding-top: 0.15rem;
}

.phase-body {
  position: relative;
  padding-left: 1.75rem;
  border-left: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

.phase-timeline li:last-child .phase-body {
  border-left-color: transparent;
}

.phase-body::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--text);
}

.phase-body strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.phase-body span {
  color: var(--text-secondary);
  font-size: 0.9875rem;
}

.coverage-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  margin: 1.5rem 0 0;
  max-width: 46rem;
}

.coverage-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9875rem;
}

.markets-line {
  margin-top: 1.75rem;
  color: var(--text-secondary);
}

.markets-line strong {
  color: var(--text);
  font-weight: 600;
}

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

.outcome-callout {
  background-color: #F4EEE1;
  border-left: 3px solid var(--accent);
  padding: 1.75rem 2rem;
  margin-top: 1rem;
}

.outcome-callout .result {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.outcome-callout p {
  margin: 0;
  color: var(--text-secondary);
}

@media (max-width: 620px) {
  .case-facts {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .phase-timeline li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .phase-when {
    padding-top: 0;
  }
}

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

.contact {
  padding-bottom: 5.5rem;
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background-color: #F4EEE1;
  border: 1px solid var(--border);
  padding: 2.75rem 2.75rem 2.5rem;
}

.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.contact-form label span {
  font-weight: 400;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #A79F8C;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 90, 84, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button {
  margin-top: 0.75rem;
  width: 100%;
  cursor: pointer;
}

.form-status {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #4A6B28;
}

.form-status.is-error {
  color: #8A2F2F;
}

.contact-meta {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2.25rem;
  padding-top: 1.75rem;
}

.meta-item {
  flex: 1;
}

.aside-label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.aside-value {
  font-size: 0.9375rem;
  margin: 0;
}

.meta-item .aside-value + .aside-value {
  margin-top: 0.35rem;
}

.aside-value a {
  text-decoration: none;
}

.aside-value a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details {
  border-top: 1px solid var(--border);
  max-width: 34rem;
}

.contact-details > div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.contact-details dt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact-details dd {
  font-size: 1.0625rem;
}

.contact-details dd a {
  text-decoration: none;
}

.contact-details dd a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Home — case study teaser
   -------------------------------------------------------------------------- */

.case-teaser {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0;
}

.case-teaser .meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.case-teaser h2 {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
}

.case-teaser .teaser-text {
  color: var(--text-secondary);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.photo-band .case-teaser {
  border-top-color: rgba(251, 248, 242, 0.3);
}

.photo-band .case-teaser h2 {
  color: var(--bg);
}

.photo-band .case-teaser .meta,
.photo-band .case-teaser .teaser-text {
  color: rgba(251, 248, 242, 0.82);
}

.photo-band .case-teaser .text-link {
  color: var(--bg);
  text-decoration-color: rgba(251, 248, 242, 0.6);
}

.photo-band .case-teaser .text-link:hover {
  text-decoration-color: var(--bg);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  padding: 5.5rem 0;
  min-height: 26rem;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(44, 42, 36, 0.65), rgba(44, 42, 36, 0.65)), url("../images/lislea-road.jpg");
  background-size: cover;
  background-position: 50% 85%;
}

.cta-band > .container {
  width: 100%;
}

.cta-band h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--bg);
}

.cta-band p {
  color: rgba(251, 248, 242, 0.82);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.cta-band .btn {
  background-color: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}

.cta-band .btn:hover {
  background-color: transparent;
  color: var(--bg);
}

.cta-band--plain {
  background-image: none;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-band--plain h2 {
  color: var(--text);
}

.cta-band--plain .btn {
  background-color: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.cta-band--plain .btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Client area
   -------------------------------------------------------------------------- */

.client-docs {
  padding: 1rem 0 6rem;
}

.doc-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.doc-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}

.doc-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.doc-name {
  font-family: var(--serif);
  font-size: 1.1875rem;
  margin: 0;
}

.doc-sub {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0.25rem 0 0;
}

.doc-link {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.55rem 1.3rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.doc-link:hover {
  background-color: var(--accent);
  color: var(--bg);
}

.doc-note {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (max-width: 620px) {
  .doc-item {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
  .doc-link {
    margin-left: 3.25rem;
  }
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */

.not-found {
  padding-bottom: 8rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 22rem;
}

.footer-heading {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-nav,
.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: flex-start;
}

.footer-nav a {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  .hero {
    padding: 3.5rem 0;
  }

  .hero .container,
  .about .container,
  .service-section .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero .container {
    gap: 3rem;
  }

  .hero .hero-image {
    order: -1;
    max-width: 420px;
  }

  .services-summary .grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-grid .grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-member {
    max-width: 300px;
  }

  .about .about-image {
    max-width: 380px;
  }

  .page-header {
    padding: 3rem 0 2.5rem;
  }

  .service-section {
    padding: 3rem 0;
  }

  .contact-card {
    padding: 2rem 1.5rem 2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-meta {
    flex-direction: column;
    gap: 1.5rem;
  }

  .why-grid,
  .who-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Services — "How we work" process
   -------------------------------------------------------------------------- */

.process {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0;
}

.process h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.process .intro-line {
  color: var(--text-secondary);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.process .phase-timeline {
  max-width: 46rem;
}

/* --------------------------------------------------------------------------
   Home — why Grey Fort
   -------------------------------------------------------------------------- */

.why {
  border-top: 1px solid var(--border);
  padding: 5rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
}

.why-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 0.9875rem;
}

/* --------------------------------------------------------------------------
   Services — who we help
   -------------------------------------------------------------------------- */

.who {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

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

.who-statement {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.3;
  max-width: 40rem;
}

.case-teaser-plain {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0;
}

.case-teaser-plain h2 {
  font-size: 1.75rem;
  max-width: 42rem;
  margin: 0.75rem 0 1.5rem;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.who-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.who-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .skip-link,
  .site-nav,
  .cta-band,
  .case-back,
  .arrow-link::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero,
  .page-header,
  .about,
  .stats,
  .photo-band,
  .intro,
  .services-summary,
  .case-teaser,
  .team-grid,
  .service-section,
  .process,
  .track-record,
  .case-detail {
    background: #fff !important;
  }

  .photo-band {
    background-image: none !important;
  }

  .intro p,
  .services-summary h2,
  .services-summary p,
  .services-summary .text-link,
  .case-teaser h2,
  .case-teaser .meta,
  .case-teaser .teaser-text {
    color: #000 !important;
  }

  .site-header {
    border-bottom: 1px solid #ccc;
  }

  a {
    color: #000;
  }
}
