/* ==========================================================================
   About page
   ========================================================================== */

.about-hero { padding: 120px 0 clamp(64px, 8vw, 104px); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}

/* ---------- Intro ---------- */
.about-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px) 0;
}
.about-intro .section-head { margin-bottom: clamp(32px, 6vh, 64px); }
.about-intro h1 {
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.lede {
  font-family: var(--font-alt);
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 48px;
}
/* ---------- CTA ---------- */
.about-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9bbf8a;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(3); opacity: 0; }
}
.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.cta-actions .btn svg { width: 15px; height: 15px; }
.cta-actions .btn .icon-out { width: 12px; height: 12px; transition: transform .25s ease; }
.cta-actions .btn:hover { opacity: 1; background: #e3d9bf; }
.cta-actions .btn:hover .icon-out { transform: translate(2px, -2px); }
.link-underline {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-muted);
  transition: border-color .2s ease;
}
.link-underline:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
}

/* ---------- Image (placeholder: sunlit concrete + plant) ---------- */
.about-image {
  position: relative;
  min-height: clamp(420px, 62vh, 680px);
  border-radius: 4px;
  overflow: hidden;
  background: #1d1b16;
}
.about-image-layer {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
  background:
    /* plant foliage */
    radial-gradient(ellipse 12% 9% at 72% 52%, #2f3322 60%, transparent 62%),
    radial-gradient(ellipse 10% 8% at 82% 44%, #383d28 60%, transparent 62%),
    radial-gradient(ellipse 11% 7% at 64% 62%, #2a2e1f 60%, transparent 62%),
    radial-gradient(ellipse 9% 7% at 86% 58%, #33372a 60%, transparent 62%),
    radial-gradient(ellipse 8% 6% at 76% 36%, #3d4230 60%, transparent 62%),
    /* stem */
    linear-gradient(#1b1c14, #1b1c14) 75% 70% / 2px 22% no-repeat,
    /* diagonal sunlight */
    linear-gradient(118deg, transparent 38%, rgba(208,197,171,.16) 38%, rgba(208,197,171,.1) 58%, transparent 58%),
    /* window recess */
    linear-gradient(#0e0d0a, #0e0d0a) 88% 10% / 18% 30% no-repeat,
    /* concrete panels */
    repeating-linear-gradient(90deg, transparent 0 24%, rgba(0,0,0,.25) 24% calc(24% + 2px)),
    linear-gradient(160deg, #3a362d, #24211b);
}
/* Real photo: no drawn ledge, image fills the frame (layer is taller for the parallax drift) */
/* Frame matches the photo's proportions (651 × 805), so the full portrait shows uncropped */
.about-image--photo { margin: 0; background: #e9e9ea; align-self: center; aspect-ratio: 651 / 805; min-height: 0; }
.about-image--photo::after { display: none; }
.about-image--photo .about-image-layer {
  display: block;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  background: none;
}
:root[data-theme="light"] .about-image--photo .about-image-layer { background: none; }
.about-image::after {
  /* ledge at the bottom */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 9%;
  background: linear-gradient(#4a453a, #2c2922);
  box-shadow: 0 -10px 30px rgba(0,0,0,.35);
}

/* ---------- Stats ---------- */
.about-stats { padding-bottom: clamp(80px, 10vw, 140px); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.stat { padding: 0 32px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:nth-child(2) { transition-delay: .08s; }
.stat:nth-child(3) { transition-delay: .16s; }
.stat:nth-child(4) { transition-delay: .24s; }
.stat-value {
  font-size: clamp(36px, 3.8vw, 56px);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.stat-value--text {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-label { font-family: var(--font-alt); font-size: 22px; color: var(--ink); }
.stat-sub { font-family: var(--font-alt); font-size: 18px; color: var(--ink-muted); }

/* ---------- Contract projects ---------- */
.contract {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border-radius: 4px;
}
.contract-intro { display: flex; flex-direction: column; gap: 14px; }
.contract-text {
  font-family: var(--font-alt);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}
.contract-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.contract-stats .stat { padding: 0 32px; }
.contract-stats .stat:first-child { border-left: 1px solid var(--line); }

/* ---------- Credentials ---------- */
.credentials { padding-bottom: clamp(80px, 10vw, 140px); }
.cred-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px clamp(32px, 5vw, 80px); }
.cred-group:nth-child(2) { transition-delay: .1s; }
.cred-label {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.cred-list { margin: 0; padding: 0; list-style: none; }
.cred-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.cred-list h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 8px; }
.cred-list p { font-family: var(--font-alt); font-size: 19px; color: var(--ink-soft); }
.cred-list span { display: block; margin-top: 2px; font-family: var(--font-alt); font-size: 16px; color: var(--ink-muted); }
@media (max-width: 760px) {
  .cred-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Client testimonials ---------- */
:root { --star: #e3ae62; }
:root[data-theme="light"] { --star: #b8772a; }

.testimonials { padding-bottom: clamp(80px, 10vw, 140px); overflow: hidden; }
.t-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.t-head-row h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.t-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-alt);
  font-size: 18px;
  color: var(--ink-soft);
}
.t-summary strong { font-family: var(--font); font-weight: 700; color: var(--ink); }

/* Star bar: five faint stars with a coloured overlay clipped to the rating */
.stars {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--ink-faint);
}
.stars::before { content: "★★★★★"; }
.stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: var(--fill, 100%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--star);
}

.t-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* fade the cards out at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.t-row { overflow: hidden; }
.t-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 10px;
}
.t-row.is-running .t-track {
  animation: marquee var(--duration, 60s) linear infinite;
}
.t-row[data-direction="right"].is-running .t-track { animation-direction: reverse; }
.t-row.is-running:hover .t-track,
.t-row.is-running:focus-within .t-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.t-card {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: clamp(280px, 30vw, 380px);
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border-radius: 4px;
  transition: background-color .3s ease;
}
.t-card:hover { background: var(--surface-2); }
.t-rating { display: flex; align-items: center; gap: 10px; }
.t-score { font-size: 14px; font-weight: 700; color: var(--ink); }
.t-quote {
  margin: 0;
  flex: 1;
  font-family: var(--font-alt);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.t-project {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.t-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 0; padding: 0; list-style: none; }
.t-tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* No auto-scroll for reduced motion: rows become swipeable instead */
@media (prefers-reduced-motion: reduce) {
  .t-row { overflow-x: auto; scroll-snap-type: x mandatory; }
  .t-card { scroll-snap-align: start; }
  .t-rows { -webkit-mask-image: none; mask-image: none; }
}

.site-footer { padding-bottom: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  .about-hero { padding-top: 100px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { min-height: 420px; }
  .stat { padding: 0 20px; }
  .contract { grid-template-columns: 1fr; }
  .contract { padding: 24px; }
  .contract-stats .stat { padding: 0 20px; }
  .contract-stats .stat-label { white-space: nowrap; }
  .contract-stats .stat:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] .about-image { background: #dadad7; }
:root[data-theme="light"] .about-image-layer {
  background:
    radial-gradient(ellipse 12% 9% at 72% 52%, #5d6542 60%, transparent 62%),
    radial-gradient(ellipse 10% 8% at 82% 44%, #6b744d 60%, transparent 62%),
    radial-gradient(ellipse 11% 7% at 64% 62%, #545b3b 60%, transparent 62%),
    radial-gradient(ellipse 9% 7% at 86% 58%, #646c48 60%, transparent 62%),
    radial-gradient(ellipse 8% 6% at 76% 36%, #737c53 60%, transparent 62%),
    linear-gradient(#3d3a2f, #3d3a2f) 75% 70% / 2px 22% no-repeat,
    linear-gradient(118deg, transparent 38%, rgba(255,255,255,.4) 38%, rgba(255,255,255,.25) 58%, transparent 58%),
    linear-gradient(#5a5446, #5a5446) 88% 10% / 18% 30% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 24%, rgba(60,50,30,.15) 24% calc(24% + 2px)),
    linear-gradient(160deg, #d2d2ce, #aeaea9);
}
:root[data-theme="light"] .about-image::after {
  background: linear-gradient(#e6e6e3, #c6c6c2);
  box-shadow: 0 -10px 30px rgba(60,50,30,.18);
}
:root[data-theme="light"] .cta-actions .btn:hover { background: #3a362d; }
