/* =========================================================================
   Gestiofincas — Colors & Type
   La inmobiliaria de Cambrils · Costa Daurada
   ------------------------------------------------------------------------- */

:root {
  /* ---------- Brand color ----------
     Mint sampled directly from the GF arch mark (avg rgb 78,153,138). */
  --mint-900: #1c3c34;
  --mint-800: #2a564a;
  --mint-700: #38705f;
  --mint-600: #4e998a;   /* PRIMARY — the brand mint */
  --mint-500: #6db1a3;
  --mint-400: #94c7bc;
  --mint-300: #b8d9d2;
  --mint-200: #d4e6e2;
  --mint-100: #e8f1ef;
  --mint-50:  #f3f8f6;

  /* ---------- Neutrals (warm, paper-like) ----------
     The serif logos read as classical / editorial. We tint the neutrals
     with a hint of warmth so the page feels like premium catalogue paper
     rather than dashboard grey. */
  --ink-900: #14110f;    /* near-black, body text on light */
  --ink-800: #2a2520;
  --ink-700: #4a423a;    /* secondary text */
  --ink-600: #6b6158;
  --ink-500: #8b8278;    /* tertiary text, captions */
  --ink-400: #b3aba2;
  --ink-300: #d4cec6;    /* hairlines */
  --ink-200: #e6e1da;    /* dividers, very subtle borders */
  --ink-100: #f1ede6;    /* sand, subtle surface */
  --ink-50:  #f8f5ef;    /* cream, page tint */
  --paper:   #fbf9f4;    /* PAGE BG — warm off-white */
  --white:   #ffffff;

  /* ---------- Semantic ---------- */
  --success: #4e998a;
  --warning: #c89a3a;
  --danger:  #b04a3a;
  --info:    #4a7a99;

  /* ---------- Surfaces ---------- */
  --bg:           var(--paper);
  --bg-elevated:  var(--white);
  --bg-sunken:    var(--ink-100);
  --bg-inverse:   var(--ink-900);

  /* ---------- Foreground (semantic) ---------- */
  --fg-1: var(--ink-900);   /* primary text */
  --fg-2: var(--ink-700);   /* secondary text, body */
  --fg-3: var(--ink-500);   /* tertiary, captions, meta */
  --fg-mute: var(--ink-400);
  --fg-on-mint: var(--white);
  --fg-on-dark: var(--paper);

  /* ---------- Borders ---------- */
  --border-1: var(--ink-200);   /* default */
  --border-2: var(--ink-300);   /* prominent */
  --border-strong: var(--ink-700);

  /* ---------- Accent ---------- */
  --accent:        var(--mint-600);
  --accent-hover:  var(--mint-700);
  --accent-press:  var(--mint-800);
  --accent-soft:   var(--mint-100);

  /* ---------- Type families ----------
     Display: Cormorant Garamond — high-contrast didone-leaning serif.
       Closest free Google Font to the bespoke wordmark. The logo's
       distinctive double-loop "g" is preserved in italic 500.
     Body / UI: Inter — neutral, legible, modern.
     The all-caps tagline ("LA INMOBILIARIA DE CAMBRILS") uses Inter
       at 500 with wide letter-spacing. */
  --font-display: var(--font-serif), "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    var(--font-sans), "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Type scale (modular ~1.25) ---------- */
  --fs-12: 0.75rem;     /* 12 — micro, tags */
  --fs-13: 0.8125rem;   /* 13 — meta, labels caps */
  --fs-14: 0.875rem;    /* 14 — UI small */
  --fs-16: 1rem;        /* 16 — body */
  --fs-18: 1.125rem;    /* 18 — body large, lead */
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;      /* h4 */
  --fs-32: 2rem;        /* h3 */
  --fs-44: 2.75rem;     /* h2 */
  --fs-60: 3.75rem;     /* h1 */
  --fs-84: 5.25rem;     /* hero display */

  --lh-tight: 1.05;
  --lh-snug:  1.2;
  --lh-body:  1.55;
  --lh-loose: 1.75;

  /* Tracking — serif display tightens slightly, caps eyebrows track wide. */
  --tr-tight: -0.02em;
  --tr-normal: 0;
  --tr-wide:   0.08em;
  --tr-caps:   0.18em;

  /* ---------- Spacing (4px base) ---------- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* ---------- Radii ----------
     The brand uses a rounded-arch shape on the mark. We mirror that with
     fully rounded tops on featured cards (--radius-arch) and a generally
     SMALL corner radius elsewhere — the editorial brand reads cleaner
     with crisp corners than chunky pill shapes. */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 999px;
  --radius-arch: 50% 50% 4px 4px / 30% 30% 4px 4px;  /* arched top, square bottom */

  /* ---------- Elevation ----------
     Soft, low-contrast shadows. We avoid drop-shadowy "card" looks; this
     brand is editorial / catalogue-like. */
  --shadow-1: 0 1px 2px rgba(20, 17, 15, 0.04), 0 1px 1px rgba(20, 17, 15, 0.03);
  --shadow-2: 0 2px 8px rgba(20, 17, 15, 0.05), 0 1px 2px rgba(20, 17, 15, 0.04);
  --shadow-3: 0 8px 24px rgba(20, 17, 15, 0.08), 0 2px 6px rgba(20, 17, 15, 0.05);
  --shadow-4: 0 24px 48px rgba(20, 17, 15, 0.12), 0 6px 12px rgba(20, 17, 15, 0.06);
  --shadow-inset: inset 0 0 0 1px var(--border-1);

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 120ms;
  --dur-2: 240ms;
  --dur-3: 400ms;
  --dur-4: 700ms;
}

/* Footer newsletter: compact, accessible controls without changing the block footprint. */
.gf-newsletter-form {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.gf-newsletter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 52px;
}

.gf-newsletter-email {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 52px;
  color: var(--mint-400);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.gf-newsletter-email:focus-within {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(148, 199, 188, 0.12);
}

.gf-newsletter-email > svg {
  flex: none;
  margin-left: 16px;
}

.gf-newsletter-email input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 16px 0 10px;
  color: var(--paper);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-body);
  font-size: 15px;
}

.gf-newsletter-email input::placeholder {
  color: rgba(251, 249, 244, 0.46);
}

.gf-newsletter-controls button {
  min-width: 154px;
  height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--white);
  background: var(--mint-600);
  border: 0;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.gf-newsletter-controls button:hover {
  background: var(--mint-700);
}

.gf-newsletter-controls button:focus-visible {
  outline: 2px solid var(--mint-300);
  outline-offset: 3px;
}

.gf-newsletter-controls button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.gf-newsletter-controls button > svg {
  transition: transform 160ms ease;
}

.gf-newsletter-controls button:hover > svg {
  transform: translateX(2px);
}

.gf-newsletter-consent {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(251, 249, 244, 0.72);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}

.gf-newsletter-consent input {
  appearance: none;
  width: 14px;
  height: 14px;
  flex: none;
  margin: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(251, 249, 244, 0.56);
  border-radius: 3px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.gf-newsletter-consent input::after {
  width: 7px;
  height: 4px;
  content: "";
  border-bottom: 1.5px solid var(--ink-900);
  border-left: 1.5px solid var(--ink-900);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 140ms ease;
}

.gf-newsletter-consent input:checked {
  background: var(--mint-400);
  border-color: var(--mint-400);
}

.gf-newsletter-consent input:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.gf-newsletter-consent input:focus-visible {
  outline: 2px solid var(--mint-300);
  outline-offset: 3px;
}

.gf-newsletter-consent a {
  color: var(--paper);
  text-decoration-color: rgba(148, 199, 188, 0.72);
  text-underline-offset: 3px;
}

.gf-newsletter-consent a:hover {
  color: var(--mint-300);
}

.gf-newsletter-error {
  margin: 4px 0 0;
  color: #f2b8b5;
  font-family: var(--font-body);
  font-size: 13px;
}

/* ===========================================================================
   Semantic typography classes
   =========================================================================== */

html { color: var(--fg-1); background: var(--bg); }
body { font-family: var(--font-body); font-size: var(--fs-16); line-height: var(--lh-body); color: var(--fg-2); -webkit-font-smoothing: antialiased; }

/* Display (serif) */
.display-hero,
h1.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw + 1rem, var(--fs-84));
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  color: var(--fg-1);
  text-wrap: balance;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.5vw + 1rem, var(--fs-60));
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  color: var(--fg-1);
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2vw + 1rem, var(--fs-44));
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  color: var(--fg-1);
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-32);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-24);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}

/* Italic display — the wordmark’s signature style */
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* Eyebrow / caps label — matches the "LA INMOBILIARIA DE CAMBRILS" tag
   under the wordmark. Always tracked-out, always uppercase. */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-13);
  font-weight: 500;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--ink { color: var(--fg-3); }

/* Body */
.lead {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  line-height: var(--lh-body);
  color: var(--fg-2);
  text-wrap: pretty;
}
p, .body { font-size: var(--fs-16); line-height: var(--lh-body); color: var(--fg-2); text-wrap: pretty; }
.body-sm { font-size: var(--fs-14); line-height: var(--lh-body); color: var(--fg-2); }
.caption  { font-size: var(--fs-13); line-height: var(--lh-body); color: var(--fg-3); }

/* Numerals — tabular for prices */
.price {
  font-family: var(--font-display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tr-tight);
  color: var(--fg-1);
}

/* ===========================================================================
   Agency page — editorial profile
   =========================================================================== */
.gf-agency-page {
  padding-top: 80px;
  background: var(--paper);
}

.gf-agency-shell {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}

.gf-agency-section {
  padding-block: clamp(92px, 10vw, 152px);
}

.gf-agency-heading h2 em {
  color: var(--mint-700);
  font-weight: 500;
}

.gf-agency-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-bottom: clamp(54px, 6vw, 88px);
}

.gf-agency-heading > span {
  padding-top: 14px;
  color: var(--mint-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
}

.gf-agency-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.035em;
}

.gf-agency-heading--center {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  margin-bottom: 30px;
  text-align: center;
}

.gf-agency-heading--center > span {
  padding: 0;
}

.gf-agency-story__grid,
.gf-agency-experience__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(56px, 7vw, 112px);
}

.gf-agency-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink-100);
}

.gf-agency-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(20, 17, 15, .08);
}

.gf-agency-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.gf-agency-photo:hover img {
  transform: scale(1.025);
}

.gf-agency-photo--story {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 8px 8px / 22% 22% 8px 8px;
}

.gf-agency-photo--story img {
  object-position: 47% center;
}

.gf-agency-prose {
  padding-top: 12px;
  columns: 1;
}

.gf-agency-prose p {
  margin: 0;
  padding: 25px 0;
  border-top: 1px solid var(--border-1);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.78;
}

.gf-agency-prose p:first-child {
  padding-top: 0;
  border-top: 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(25px, 2.4vw, 35px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.gf-agency-team {
  background: var(--mint-100);
  color: var(--ink-900);
}

.gf-agency-team .gf-agency-heading h2,
.gf-agency-team .gf-agency-person h3 {
  color: var(--ink-900);
}

.gf-agency-team .gf-agency-heading h2 em {
  color: var(--mint-700);
}

.gf-agency-team .gf-agency-heading > span {
  color: var(--mint-700);
}

.gf-agency-team__header {
  max-width: 820px;
  margin: 0 auto clamp(64px, 7vw, 104px);
  text-align: center;
}

.gf-agency-team__header > p {
  margin: 0 auto;
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.7;
}

.gf-agency-team__header .gf-agency-team__note {
  max-width: 650px;
  margin-top: 12px;
  color: var(--mint-700);
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
}

.gf-agency-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 42px);
  row-gap: clamp(54px, 6vw, 78px);
}

.gf-agency-person {
  position: relative;
  min-width: 0;
  text-align: center;
}

.gf-agency-monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 218px);
  aspect-ratio: 1;
  margin: 0 auto 26px;
  overflow: hidden;
  border: 1px solid var(--mint-300);
  border-radius: 50%;
  transition: border-radius 550ms var(--ease-out), transform 550ms var(--ease-out), border-color 300ms;
}

.gf-agency-person:hover .gf-agency-monogram {
  transform: translateY(-6px);
  border-color: var(--mint-600);
  border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px;
}

.gf-agency-monogram--1 { background: linear-gradient(145deg, #314c45, #17251f); }
.gf-agency-monogram--2 { background: linear-gradient(145deg, #493e34, #231e19); }
.gf-agency-monogram--3 { background: linear-gradient(145deg, #3d454b, #20252a); }
.gf-agency-monogram--4 { background: linear-gradient(145deg, #4c443a, #28231e); }

.gf-agency-monogram > span {
  position: relative;
  z-index: 1;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 70px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.05em;
}

.gf-agency-monogram img {
  position: absolute;
  right: 8%;
  bottom: -8%;
  width: 52%;
  opacity: .14;
  filter: brightness(1.6);
  transform: rotate(8deg);
}

.gf-agency-person__index {
  margin-bottom: 9px;
  color: var(--mint-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tr-caps);
}

.gf-agency-person h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.1;
}

.gf-agency-person p {
  max-width: 200px;
  margin: 8px auto 0;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.5;
}

.gf-agency-careers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(72px, 8vw, 112px);
  padding-top: 36px;
  border-top: 1px solid var(--mint-300);
}

.gf-agency-careers p {
  max-width: 520px;
  margin: 0;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.7;
}

.gf-agency-careers button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 22px;
  border: 1px solid var(--mint-700);
  border-radius: 4px;
  background: transparent;
  color: var(--mint-800);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  line-height: 1.35;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}

.gf-agency-careers button:hover {
  background: var(--mint-700);
  color: var(--white);
}

/* Careers page — available only from the agency team CTA. */
.gf-careers-page {
  padding-top: 80px;
  background: var(--paper);
}

.gf-careers-shell {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}

.gf-careers-hero {
  padding-block: clamp(68px, 8vw, 118px);
  border-bottom: 1px solid var(--border-1);
}

.gf-careers-back {
  margin: 0 0 54px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--border-2);
  background: transparent;
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  cursor: pointer;
}

.gf-careers-hero h1 {
  max-width: 980px;
  margin: 18px 0 30px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7.5vw, 104px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.04em;
}

.gf-careers-hero h1 em {
  color: var(--mint-700);
  font-weight: 500;
}

.gf-careers-hero > div > p {
  max-width: 680px;
  margin: 0;
  color: var(--fg-2);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.gf-careers-form-section {
  padding-block: clamp(82px, 9vw, 132px);
  background: var(--ink-50);
}

.gf-careers-layout {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(54px, 7vw, 110px);
}

.gf-careers-intro > span {
  display: block;
  margin-bottom: 16px;
  color: var(--mint-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
}

.gf-careers-intro h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}

.gf-careers-intro p {
  margin: 0 0 26px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.75;
}

.gf-careers-intro a {
  color: var(--mint-700);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.gf-careers-card {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  background: var(--white);
}

.gf-careers-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.gf-careers-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

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

.gf-careers-field > span {
  color: var(--mint-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.gf-careers-field input,
.gf-careers-field select,
.gf-careers-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  outline: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 160ms, box-shadow 160ms;
}

.gf-careers-field textarea {
  min-height: 142px;
  resize: vertical;
}

.gf-careers-field input:focus,
.gf-careers-field select:focus,
.gf-careers-field textarea:focus {
  border-color: var(--mint-600);
  box-shadow: 0 0 0 3px rgba(71, 128, 111, .12);
}

.gf-careers-field > small {
  margin: 0;
  color: var(--fg-3);
  font-size: 11px;
}

.gf-careers-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fg-2);
  font-size: 12px;
  line-height: 1.55;
}

.gf-careers-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--mint-600);
}

.gf-careers-honeypot {
  position: absolute;
  left: -9999px;
}

.gf-careers-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #c98579;
  border-radius: 4px;
  background: #fff5f2;
  color: #8d3428;
  font-size: 13px;
  line-height: 1.5;
}

.gf-careers-submit {
  display: flex;
  justify-content: flex-end;
}

.gf-careers-submit button,
.gf-careers-success button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  border: 0;
  border-radius: 4px;
  background: var(--mint-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms, opacity 160ms;
}

.gf-careers-submit button:hover,
.gf-careers-success button:hover {
  background: var(--mint-700);
}

.gf-careers-submit button:disabled {
  cursor: wait;
  opacity: .62;
}

.gf-careers-success {
  max-width: 530px;
  margin-inline: auto;
  padding-block: 36px;
  text-align: center;
}

.gf-careers-success > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 74px;
  margin-bottom: 24px;
  border-radius: 50% 50% 5px 5px / 35% 35% 5px 5px;
  background: var(--mint-100);
  color: var(--mint-700);
}

.gf-careers-success h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.gf-careers-success p {
  margin: 0 auto 28px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
}

.gf-agency-experience {
  background: var(--ink-50);
}

/* Sell page — long-form editorial reasons, without cards or numbering. */
.gf-sell-why__header {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.gf-sell-why__header > p {
  margin-right: auto !important;
  margin-left: auto !important;
}

.gf-sell-editorial {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  gap: 52px;
  text-align: center;
}

.gf-sell-editorial article {
  margin: 0 auto;
}

.gf-sell-editorial article + article {
  padding-top: 52px;
  border-top: 1px solid var(--border-1);
}

.gf-sell-editorial h3 {
  margin: 0 0 20px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.18;
  text-wrap: balance;
}

.gf-sell-editorial p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.8;
}

/* Legal page — partner presentation */
.gf-legal-partner {
  padding: 112px 48px;
  background: var(--mint-100);
}

.gf-legal-partner__inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
}

.gf-legal-partner__copy {
  max-width: 650px;
}

.gf-legal-partner__eyebrow {
  margin-bottom: 16px;
  color: var(--mint-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
}

.gf-legal-partner__copy h2 {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.gf-legal-partner__copy p {
  max-width: 620px;
  margin: 0;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.75;
}

.gf-legal-partner__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 390px);
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  text-decoration: none;
}

.gf-legal-partner__card:hover,
.gf-legal-partner__card:focus-visible {
  outline: none;
}

.gf-legal-partner__logo {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.gf-legal-partner__logo img {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

.gf-legal-partner__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-top: 28px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--border-2);
  background: transparent;
  color: var(--mint-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.gf-legal-partner__link span:last-child {
  flex: 0 0 auto;
  font-size: 20px;
  transition: transform 180ms ease;
}

.gf-legal-partner__card:hover .gf-legal-partner__link span:last-child,
.gf-legal-partner__card:focus-visible .gf-legal-partner__link span:last-child {
  transform: translate(3px, -3px);
}

.gf-legal-partner__card:hover .gf-legal-partner__link,
.gf-legal-partner__card:focus-visible .gf-legal-partner__link {
  border-color: var(--mint-700);
  background: transparent;
  color: var(--ink-900);
}

.gf-agency-experience__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: stretch;
}

.gf-agency-experience__list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid var(--border-2);
}

.gf-agency-experience__list article:last-child {
  border-bottom: 1px solid var(--border-2);
}

.gf-agency-experience__list article > span {
  padding-top: 6px;
  color: var(--mint-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
}

.gf-agency-experience__list h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.gf-agency-experience__list p {
  max-width: 670px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.gf-agency-photo--experience {
  min-height: 620px;
  border-radius: 8px 8px 50% 50% / 8px 8px 18% 18%;
}

.gf-agency-photo--experience img {
  object-position: center;
}

@media (max-width: 980px) {
  .gf-agency-story__grid,
  .gf-agency-experience__grid {
    grid-template-columns: 1fr;
  }

  .gf-agency-photo--story {
    width: min(100%, 640px);
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }

  .gf-agency-team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gf-careers-layout {
    grid-template-columns: 1fr;
  }

  .gf-careers-intro {
    max-width: 620px;
  }

  .gf-agency-photo--experience {
    min-height: 520px;
    order: -1;
  }

  .gf-legal-partner__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .gf-legal-partner__card {
    width: min(100%, 390px);
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .gf-agency-page {
    padding-top: 64px;
  }

  .gf-agency-shell {
    width: min(100% - 40px, 1280px);
  }

  .gf-agency-section {
    padding-block: 76px;
  }

  .gf-sell-why {
    padding: 76px 20px !important;
  }

  .gf-sell-why__header {
    margin-bottom: 50px !important;
    text-align: left;
  }

  .gf-sell-why__header > p {
    margin-left: 0 !important;
  }

  .gf-sell-editorial {
    gap: 42px;
    text-align: left;
  }

  .gf-sell-editorial article + article {
    padding-top: 42px;
  }

  .gf-sell-editorial h3 {
    margin-bottom: 16px;
    font-size: clamp(27px, 8.5vw, 34px) !important;
  }

  .gf-sell-editorial p {
    font-size: 15px;
    line-height: 1.75;
  }

  .gf-legal-partner {
    padding: 76px 20px;
  }

  .gf-legal-partner__inner {
    gap: 36px;
  }

  .gf-legal-partner__copy h2 {
    font-size: clamp(38px, 12vw, 52px) !important;
  }

  .gf-legal-partner__logo {
    max-width: 320px;
    justify-content: flex-start;
  }

  .gf-legal-partner__link {
    gap: 16px;
    margin-top: 22px;
    padding: 16px 0 0;
    font-size: 11px;
  }

  .gf-agency-heading {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 44px;
  }

  .gf-agency-heading h2 {
    font-size: clamp(42px, 13vw, 58px) !important;
  }

  .gf-agency-heading--center {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gf-agency-story__grid,
  .gf-agency-experience__grid {
    gap: 40px;
  }

  .gf-agency-prose p {
    padding-block: 20px;
    font-size: 15px;
  }

  .gf-agency-prose p:first-child {
    font-size: 26px;
  }

  .gf-agency-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 48px;
  }

  .gf-agency-team__header {
    margin-bottom: 60px;
  }

  .gf-agency-team__header > p {
    font-size: 15px;
  }

  .gf-agency-team__header .gf-agency-team__note {
    font-size: 19px;
  }

  .gf-agency-monogram {
    margin-bottom: 20px;
  }

  .gf-agency-person h3 {
    font-size: 21px;
  }

  .gf-agency-person p {
    font-size: 11px;
  }

  .gf-agency-careers {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 68px;
  }

  .gf-agency-careers button {
    width: 100%;
  }

  .gf-careers-page {
    padding-top: 64px;
  }

  .gf-careers-shell {
    width: min(100% - 40px, 1180px);
  }

  .gf-careers-hero {
    padding-block: 54px 70px;
  }

  .gf-careers-back {
    margin-bottom: 44px;
  }

  .gf-careers-hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .gf-careers-form-section {
    padding-block: 72px;
  }

  .gf-careers-layout {
    gap: 42px;
  }

  .gf-careers-card {
    padding: 26px 20px;
  }

  .gf-careers-form {
    grid-template-columns: 1fr;
  }

  .gf-careers-field,
  .gf-careers-field--wide,
  .gf-careers-consent,
  .gf-careers-error,
  .gf-careers-submit {
    grid-column: 1;
  }

  .gf-careers-submit button {
    width: 100%;
  }

  .gf-agency-experience__list article {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    padding-block: 28px;
  }

  .gf-agency-experience__list h3 {
    font-size: 25px;
  }

  .gf-agency-experience__list p {
    font-size: 14px;
  }

  .gf-agency-photo--experience {
    min-height: 380px;
    border-radius: 8px;
  }
}
