/* =========================================================================
   Manam — shared styles for the subpages (/about/, /team/, /team/<x>/,
   /contact/).
   Layout mirrors hassellteamaz.com/about/: warm black header band with the
   team card strip, light "About" block + full-bleed group photo, dark
   partners / values bands, dark CTA and footer. Self-contained like
   plots/plots.css (no scrub-site styles). Type sizes are the homepage's,
   via the tokens in type.css.
   ========================================================================= */

:root {
  --color-bg: #e8e7e3;      /* plaster (light sections) */
  --color-fg: #16130f;
  --color-mute: #6c685f;
  --color-line: #d4d1ca;
  --plaster-hi: #f1f0ec;

  /* Brand darks are warm neutrals (black, charcoal, grey), never blue:
     the homepage's ink #16130f and its plaster greys. */
  --black: #16130f;         /* header band, CTA, footer */
  --logo-grey: #dcdddf;     /* the logo's circle; partners band */
  --charcoal: #2b2824;      /* values band */
  --on-dark: #f4f2ee;
  --on-dark-mute: #c2bcb2;  /* warm light grey on the black bands */
  --dark-line: rgba(255, 255, 255, 0.14);

  /* Fonts and the type scale (--text-*, --track-*) come from
     type.css, shared with the homepage. No other families. */

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;

  color-scheme: light;
}

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

html {
  background: var(--black);
}

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--color-fg);
  color: var(--color-bg);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.mono-fine {
  font-family: var(--font-mono);
  font-size: var(--text-fine);
  letter-spacing: var(--track-fine);
  text-transform: uppercase;
  color: var(--color-mute);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Header (dark, nav centred — like Hassell) ---------------------------- */

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 18px var(--gutter);
  background: #ffffff; /* white top bar on every subpage */
  color: var(--color-fg);
  border-bottom: 1px solid var(--color-line);
}

.topbar-logo {
  height: 52px;
  width: auto;
  border-radius: 6px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem clamp(1.2rem, 3vw, 2.8rem);
}

.topnav a {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--color-mute);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--color-fg);
  border-color: var(--color-fg);
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(22, 19, 15, 0.55);
  border-radius: 999px;
  color: var(--color-fg);
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

.round-btn:hover {
  background: var(--black);
  color: #ffffff;
}

/* Three-bar menu button: phones only (same chip as the homepage's) */
.topbar-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: var(--black);
  cursor: pointer;
}

.topbar-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.2s;
}

/* open: the bars turn into an X */
.topbar.is-open .topbar-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.is-open .topbar-burger span:nth-child(2) {
  opacity: 0;
}

.topbar.is-open .topbar-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topbar-burger {
    display: flex;
  }

  .topbar-actions {
    align-items: center;
  }

  /* the nav drops down under the bar when the button is pressed */
  .topnav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 6px;
  }

  .topbar.is-open .topnav {
    display: flex;
  }

  .topnav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .topnav a:last-child {
    border-bottom: 0;
  }

  .topnav a:hover,
  .topnav a[aria-current="page"] {
    border-color: var(--color-line);
  }
}

/* ---- Buttons ---------------------------------------------------------------- */

/* Outline pill — Hassell's "Our Core Values / Join Our Team" buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.9rem 1.8rem;
  border: 1px solid #6b3a35;
  border-radius: 999px;
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo);
}

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

/* <button> version (contact form): drop the UA chrome, keep .btn's look */
button.btn {
  background: none;
  color: inherit;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.btn.on-dark {
  border-color: rgba(244, 242, 238, 0.7);
  color: var(--on-dark);
}

.btn.on-dark:hover {
  background: var(--on-dark);
  color: var(--black);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* ---- 1. Hero band: breadcrumbs, headline + hashtag, team strip ------------ */

.ab-hero {
  position: relative;
  background: #000; /* flat black, same as the profile band */
  color: var(--on-dark);
  overflow: hidden;
}

/* Header panel, the same on About, Contact and Plots: no photo, flat
   black (About's team strip carries on below without a seam). Breadcrumbs
   at the top, headline at the bottom. */
.ab-hero-top {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(170px, 17vw, 250px); /* min: a wrapped headline on phones can grow it */
  padding-top: clamp(20px, 2.8vw, 32px);
  background: #000;
}

.ab-hero-top .ab-hero-inner {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ab-hero-top .ab-headline {
  margin-top: auto;
  margin-bottom: clamp(20px, 2.8vw, 32px);
}

.ab-hero-top .crumbs {
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.ab-hero-inner,
.ab-hero .strip {
  /* above the panel background */
  position: relative;
  z-index: 1;
}

.ab-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.crumbs {
  font-size: var(--text-fine);
  letter-spacing: var(--track-fine);
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.crumbs a:hover {
  color: var(--on-dark-mute);
}

.crumbs span {
  color: var(--on-dark-mute);
}

.ab-headline {
  display: flex;
  flex-wrap: wrap;
  /* #MANAMWAY sits at the bottom, on the headline's last line */
  align-items: flex-end;
  align-items: last baseline;
  justify-content: space-between;
  gap: 1rem 2.4rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.ab-headline h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2-caps);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

.ab-headline h1 span {
  display: block;
  color: var(--on-dark-mute);
}

.hashtag {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-h2-caps);
  line-height: 1;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--on-dark);
}

.hashtag span {
  color: inherit; /* one colour: no grey "WAY" */
}

/* Team card strip — full-bleed, auto-scrolling loop (Hassell's agent slider).
   The list is rendered twice; the track slides by exactly one copy. */
.strip {
  position: relative;
  overflow: hidden;
}

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

.strip:hover .strip-track,
.strip:focus-within .strip-track {
  animation-play-state: paused;
}

@keyframes strip {
  to {
    transform: translateX(-50%);
  }
}

.strip-list {
  list-style: none;
  display: flex;
  gap: 6px;
  padding-right: 6px;
}

.strip-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(190px, 17.5vw, 252px);
  height: clamp(250px, 23.5vw, 340px);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #221f1b 0%, #16130f 100%);
}

.strip-card a:focus-visible {
  outline: 1px solid var(--on-dark);
  outline-offset: -4px;
}

/* The "figure" standing on the plinth — initials until headshots arrive */
.strip-figure {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--text-initials);
  letter-spacing: 0.04em;
  color: rgba(244, 242, 238, 0.86);
  transition: transform 0.6s var(--ease-out-expo), color 0.6s var(--ease-out-expo);
}

.strip-card a:hover .strip-figure,
.strip-card a:focus-visible .strip-figure {
  transform: translateY(-6px);
  color: #ffffff;
}

/* Portrait filling the card (black shirt; white fades in on hover/focus) */
.strip-photo {
  position: absolute;
  inset: 0;
  background: #8e8e8e; /* the shoot's backdrop grey, while images load */
}

.strip-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.strip-photo-hover {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.strip-card a:hover .strip-photo-hover,
.strip-card a:focus-visible .strip-photo-hover {
  opacity: 1;
}

/* On a photo, the name sits on a dark fade at the foot */
.strip-card.has-photo .strip-plinth {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 56px;
  background: linear-gradient(180deg, rgba(22, 19, 15, 0) 0%, rgba(22, 19, 15, 0.86) 62%);
}

/* Name and title along the card's foot, on the dark card itself */
.strip-plinth {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  flex: none;
  padding: 0 14px 18px;
  color: var(--on-dark);
  text-align: center;
}

.strip-name {
  font-family: var(--font-display);
  font-size: var(--text-name);
  line-height: 1.1;
  text-wrap: balance;
}

.strip-role {
  font-size: var(--text-fine);
  line-height: 1.4;
  letter-spacing: var(--track-fine);
  text-transform: uppercase;
  color: var(--on-dark-mute);
}

@media (prefers-reduced-motion: reduce) {
  .strip {
    overflow-x: auto;
  }

  .strip-track {
    animation: none;
  }

  .strip-list[aria-hidden="true"] {
    display: none;
  }
}

/* ---- 2. About block + full-bleed group photo ------------------------------ */

.ab-about {
  background: #ffffff;
  text-align: center;
  padding-top: clamp(40px, 6vw, 72px);
}

.ab-about-head {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ab-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.3em;
  font-weight: 400;
  line-height: 1;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.ab-title-caps {
  font-family: var(--font-display);
  font-size: var(--text-h2-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

/* Italic accent, as in the homepage's "The <em>People</em> Behind MANAM" */
.ab-title-script {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h2-caps);
}

.ab-small {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: #2f2c27;
}

/* A lead line, not a heading: a <p>, so no capitals, regular weight */
.ab-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.1;
  margin: clamp(28px, 4vw, 44px) 0 10px;
}

.ab-about .btn-row {
  margin: clamp(22px, 3vw, 34px) 0 clamp(28px, 4vw, 48px);
}

.ab-group {
  width: 100%;
  /* the photo's own ratio (2400x1172) at every width, so the whole group
     shows on phones too (no side crop), capped on very wide screens */
  height: auto;
  max-height: 1000px;
  object-fit: cover;
}

.ab-about picture {
  display: contents;
}

/* ---- 3. Partners band (soft grey, dark text) --------------------------------------------- */

.ab-partners {
  background: var(--logo-grey);
  color: var(--color-fg);
  text-align: center;
  padding: clamp(56px, 8vw, 104px) 0;
}

.band-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2-caps);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

.band-title em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  padding: 0 0.12em;
}

.band-desc {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: var(--text-body);
  line-height: 1.65;
  color: rgba(244, 242, 238, 0.78); /* light: the CTA band is black */
}

/* The partners band is light grey, so its copy is dark */
.ab-partners .band-desc {
  color: #34312c;
}

.partner-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 980px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  background: rgba(22, 19, 15, 0.16);
  border: 1px solid rgba(22, 19, 15, 0.16);
}

.partner-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  background: var(--logo-grey);
}

.partner-col h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.05;
}

.partner-col p {
  font-size: var(--text-body);
  line-height: 1.65;
  color: #34312c;
  max-width: 40ch;
}

.partner-col .btn {
  margin-top: 6px;
}

.band-disc {
  max-width: 720px;
  margin: clamp(30px, 4vw, 44px) auto 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--color-fg);
}

@media (max-width: 720px) {
  .partner-cols {
    grid-template-columns: 1fr;
  }
}

/* ---- 4. Values band (white): title left, list right ------------------------- */

.ab-values {
  background: #ffffff;
  color: var(--color-fg);
  padding: clamp(56px, 8vw, 104px) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.values-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2-caps);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

.values-title em {
  display: block;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-mute);
}

.values-list {
  list-style: none;
  border-top: 1px solid var(--color-line);
}

.values-list li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.4rem 1rem;
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--color-line);
}

.values-num {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  color: var(--color-mute);
  padding-top: 0.55em;
}

.values-head {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1.1;
}

/* second half of each value line: same as the first, no grey or italic */
.values-head em {
  font-style: normal;
  color: inherit;
}

.values-text {
  grid-column: 2;
  font-size: var(--text-body);
  line-height: 1.65;
  color: #3f3b35;
}

.values-grid .btn-row {
  justify-content: flex-start;
  margin-top: clamp(24px, 3vw, 36px);
}

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

/* ---- 5. CTA band (black) ----------------------------------------------------- */

.ab-cta {
  background: var(--black);
  color: var(--on-dark);
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--dark-line);
}

.ab-cta .btn-row {
  margin-top: clamp(26px, 3.4vw, 40px);
}

/* ---- Profile (one page per person) ----------------------------------------- */
/* After hassellteamaz.com/agents/<name>, in Manam's palette and type */

/* 1. Black band: cut-out portrait standing on the band's foot, name beside */
.pf-hero {
  background: #000; /* pure black behind the portrait (client's ask), not the warm --black */
  color: var(--on-dark);
  padding-top: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.pf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.pf-figure {
  position: relative;
  align-self: end;
  display: grid;
  justify-items: center;
  align-items: end;
}

/* both cut-outs share one cell; the white-shirt one fades in on hover */
.pf-figure > .pf-photo {
  grid-area: 1 / 1;
  transition: opacity 0.5s ease;
}

.pf-photo-hover {
  opacity: 0;
}

.pf-figure:hover .pf-photo-hover {
  opacity: 1;
}

.pf-figure:has(.pf-photo-hover):hover .pf-photo:not(.pf-photo-hover) {
  opacity: 0;
}

.pf-photo {
  position: relative;
  display: block;
  width: auto;
  height: clamp(340px, 42vw, 560px);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

.pf-initials {
  display: grid;
  place-items: center;
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 3 / 4;
  font-family: var(--font-display);
  font-size: var(--text-initials);
  color: var(--on-dark-mute);
}

.pf-intro {
  padding-bottom: clamp(36px, 5vw, 64px);
}

.pf-intro .crumbs {
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.pf-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

/* First and last name on one line, sharing a baseline. Wraps only on
   phones, where the longest names can't fit. */
.pf-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: clamp(12px, 1.4vw, 20px);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
}

@media (min-width: 900px) {
  .pf-name { flex-wrap: nowrap; white-space: nowrap; }
}

/* first name and surname alike: same size and colour (flat headings) */
.pf-first {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  color: var(--on-dark);
}

.pf-last {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  color: var(--on-dark);
}

.pf-role {
  font-size: var(--text-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  padding-bottom: 0.4em;
}

.pf-about {
  max-width: 62ch;
  font-size: var(--text-body-sm);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: rgba(244, 242, 238, 0.82);
}

.pf-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 1.4rem;
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
}

.pf-lines a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark);
}

/* 2. White band: two outline buttons, right-aligned under the text */
/* 2. Get to know: title, then the questions as a mosaic of cards */
.pf-know {
  background: #ffffff;
  padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px);
}

.pf-know-title {
  margin-bottom: clamp(28px, 4vw, 52px);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2-caps);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.pf-know-title em {
  font-size: 1.5em;
  text-transform: none;
  letter-spacing: 0;
  padding-left: 0.12em;
}

.pf-cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.pf-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  min-height: 150px;
  padding: clamp(24px, 3vw, 38px) clamp(22px, 3vw, 44px);
  border-radius: 14px;
  text-align: center;
}

.pf-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-qa);
  line-height: 1.3;
}

.pf-card p {
  font-size: var(--text-body-sm);
  line-height: 1.7;
}

/* mosaic: wide/narrow alternating, colours across the brand's neutrals */
.pf-card-1 {
  grid-column: span 7;
  background: var(--logo-grey);
  color: var(--color-fg);
}

.pf-card-2 {
  grid-column: span 5;
  background: var(--black);
  color: var(--on-dark);
}

.pf-card-3 {
  grid-column: span 5;
  background: #ece6dc; /* warm cream */
  color: var(--color-fg);
}

.pf-card-4 {
  grid-column: span 7;
  background: var(--charcoal);
  color: var(--on-dark);
}

.pf-card-2 p,
.pf-card-4 p {
  color: rgba(244, 242, 238, 0.82);
}

.pf-card-1 p,
.pf-card-3 p {
  color: #3f3b35;
}

/* prev / next person */
.pf-more {
  background: #ffffff;
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
}

.profile-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--color-mute);
}

.profile-pager a:hover {
  color: var(--color-fg);
}

.profile-pager .next {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 860px) {
  .pf-hero-grid {
    grid-template-columns: 1fr;
  }

  /* phones: name and About first, the portrait standing at the foot */
  .pf-figure {
    order: 2;
  }

  .pf-intro {
    padding-bottom: 0;
  }

  .pf-photo {
    height: clamp(300px, 90vw, 440px);
  }

  .pf-card-1,
  .pf-card-2,
  .pf-card-3,
  .pf-card-4 {
    grid-column: 1 / -1;
  }
}

/* ---- Contact (/contact/) ---------------------------------------------------- */
/* Hassell's contact body: dark breadcrumb band, then a card with a tall image
   left and a panel right (company name, underline form, contact lines). */

.ct-main {
  background: #ffffff;
  padding: clamp(20px, 2.6vw, 32px) 0 clamp(48px, 6vw, 80px);
}

/* No image: the original card (name, form, details), centred at a
   width that keeps the fields a comfortable length. */
.ct-card {
  max-width: 900px;
}

.ct-panel {
  background: var(--logo-grey); /* same grey as the footer */
  padding: clamp(28px, 4.4vw, 60px) clamp(22px, 4.6vw, 64px);
}

.ct-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2-caps);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.ct-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 28px);
}

.ct-field-wide {
  grid-column: 1 / -1;
}

.ct-field label {
  display: block;
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

/* Underline-only inputs */
.ct-field input,
.ct-field textarea {
  display: block;
  width: 100%;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(22, 19, 15, 0.5);
  border-radius: 0;
  background: transparent;
  color: var(--color-fg);
  font: inherit; /* the 16px/1.5 body base; 16px also stops iOS zooming on focus */
  transition: border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.ct-field textarea {
  min-height: 76px;
  resize: none;
}

.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-fg);
  box-shadow: 0 1px 0 var(--color-fg);
}

.ct-field [aria-invalid="true"] {
  border-bottom-color: #6b3a35;
}

.ct-error {
  display: block;
  margin-top: 6px;
  font-size: var(--text-small);
  letter-spacing: var(--track-small);
  color: #6b3a35;
}

.ct-error:empty {
  display: none;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin-top: clamp(24px, 3vw, 36px);
}

.ct-note {
  max-width: 34ch;
  font-size: var(--text-small);
  letter-spacing: var(--track-small);
  line-height: 1.5;
  color: #2f2c27;
}

/* Live region: always rendered (so it's announced), spaced only when filled */
.ct-status {
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.ct-status:not(:empty) {
  margin-top: 14px;
}

.ct-lines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid rgba(22, 19, 15, 0.16); /* sets the details apart from the form */
  font-size: var(--text-body-sm);
  line-height: 1.65;
}

.ct-lines li {
  display: flex;
  align-items: flex-start; /* icon on the first line of a wrapped address */
  gap: 14px;
}

.ct-lines svg {
  flex: none;
  margin-top: 0.3em;
}

.ct-lines .ct-line-wide {
  flex-basis: 100%;
}

.ct-lines a:hover {
  color: var(--color-mute);
}

/* Round outline social icons */
.ct-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

/* Handle and "Follow us" beside the Instagram icon */
.ct-social-count {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: var(--text-body-sm);
  line-height: 1.3;
  color: var(--color-fg);
}

.ct-social-handle {
  font-size: var(--text-fine);
  letter-spacing: var(--track-fine);
  text-transform: uppercase;
  color: var(--color-mute);
}


.ct-social-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #6b3a35;
  border-radius: 999px;
  color: var(--color-fg);
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo);
}

a.ct-social-btn:hover {
  background: var(--color-fg);
  border-color: var(--color-fg);
  color: var(--color-bg);
}

@media (max-width: 520px) {
  .ct-fields {
    grid-template-columns: 1fr;
  }
}
