/*
  Flavima production styles.

  Direct, readable, editable CSS — no generated utility layer, no build step.
  Organised by primitive/section in build order. Homepage content sections
  (hero, who-we-help, expertise, etc.) are added in a later pass; this file
  currently holds the shared foundations: layout primitives, typography
  utilities, buttons, header/nav, and footer.
*/

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter-mobile);
}

@media (min-width: 640px) {
  .container {
    padding-inline: var(--page-gutter-desktop);
  }
}

.hairline-top {
  border-top: var(--rule-1) solid var(--border-hairline);
}

.hairline-top--soft {
  border-top: var(--rule-1) solid var(--border-hairline-soft);
}

/* eyebrow tick + label, e.g. "DIGITAL INFRASTRUCTURE · RENEWABLE ENERGY" */
.eyebrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
}

.eyebrow::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: var(--rule-len);
  height: var(--rule-1);
  background: var(--accent-rule);
}

.eyebrow__label {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  letter-spacing: var(--type-eyebrow-ls-hero);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-eyebrow-inverse);
}

.eyebrow--on-light .eyebrow__label {
  color: var(--text-eyebrow);
}

.eyebrow--on-light::before {
  display: none;
}

/* ============================================================
   Typography primitives
   ============================================================ */

.type-hero {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-hero-m-size);
  line-height: var(--type-hero-m-lh);
  letter-spacing: var(--type-hero-m-ls);
  color: var(--text-heading);
  margin: 0;
}

@media (min-width: 900px) {
  .type-hero {
    font-size: var(--type-hero-size);
    line-height: var(--type-hero-lh);
    letter-spacing: var(--type-hero-ls);
  }
}

.type-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h2-m-size);
  line-height: var(--type-h2-m-lh);
  letter-spacing: var(--type-h2-m-ls);
  color: var(--text-heading);
  margin: 0;
}

@media (min-width: 900px) {
  .type-h2 {
    font-size: var(--type-h2-size);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-ls);
  }
}

.type-h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-lh);
  color: var(--text-heading);
  margin: 0;
}

.type-h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-lh);
  letter-spacing: var(--type-h4-ls);
  color: var(--text-heading);
  margin: 0;
}

.type-lead {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-lh);
  color: var(--text-body);
  margin: 0;
}

.type-body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--text-body);
  margin: 0;
}

.type-prose {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-prose-size);
  line-height: var(--type-prose-lh);
  color: var(--text-body);
  margin: 0;
}

/* Authored line breaks are a desktop wrap. Below 900px, wrap naturally. */
.break-desktop {
  display: none;
}

@media (min-width: 900px) {
  .break-desktop {
    display: block;
  }
}

/* ============================================================
   Icons (shared sprite, see assets/icons/sprite.svg)
   ============================================================ */

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ============================================================
   Buttons
   ============================================================ */

.button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: var(--control-h-lg);
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--type-label-size);
  line-height: var(--type-label-lh);
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.button--block {
  width: 100%;
}

.button--primary {
  background-color: var(--flav-gold);
  color: var(--flav-navy);
}

.button--primary:hover {
  background-color: var(--flav-yellow);
}

.button--primary:active {
  opacity: 0.82;
}

.button--secondary {
  background-color: transparent;
  box-shadow: var(--ring-inverse);
  color: var(--flav-white);
}

.button--secondary:hover {
  box-shadow: inset 0 0 0 1px var(--flav-gold);
  color: var(--flav-gold);
}

.button--tertiary {
  background: none;
  height: auto;
  padding: 0;
  color: var(--flav-navy);
}

.button--tertiary:hover {
  color: var(--flav-gold);
}

.button--outline {
  background: transparent;
  box-shadow: var(--ring-hairline);
  color: var(--flav-navy);
}

.button--outline:hover {
  box-shadow: inset 0 0 0 1px var(--flav-gold);
  color: var(--flav-gold);
}

/* focus state for every interactive control: 1px navy ring, no colour change */
a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--flav-navy);
  outline-offset: 2px;
}

/* ============================================================
   Site header / navigation
   ============================================================ */

.site-nav-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--nav-h-mobile);
  padding-inline: var(--page-gutter-mobile);
  background: rgba(248, 247, 242, 0.95);
  border-top: 4px solid var(--flav-gold);
  border-bottom: 1px solid var(--border-hairline-faint);
  backdrop-filter: blur(4px);
  transition: height var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard);
}

@media (min-width: 900px) {
  .site-nav {
    height: var(--nav-h);
    padding-inline: var(--page-gutter-desktop);
    background: var(--flav-bone);
    border-top: none;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
  }
}

.site-nav__logo {
  display: block;
  height: var(--nav-logo-h-mobile);
  width: auto;
  transition: height var(--dur-base) var(--ease-standard);
}

@media (max-width: 899px) {
  .site-header.is-compact .site-nav {
    height: var(--nav-h-mobile-compact);
  }

  .site-header.is-compact .site-nav__logo {
    height: var(--nav-logo-h-mobile-compact);
  }
}

@media (min-width: 900px) {
  .site-header {
    /* Keep in-flow occupancy at rest height so hash-scroll offset
       does not collapse when the visible bar goes compact. */
    height: var(--nav-h);
  }

  .site-nav__logo {
    height: var(--nav-logo-h);
  }

  .site-header.is-compact .site-nav {
    height: var(--nav-h-compact);
    background: rgba(248, 247, 242, 0.95);
    border-bottom-color: var(--border-hairline-faint);
    backdrop-filter: blur(4px);
  }

  .site-header.is-compact .site-nav__logo {
    height: var(--nav-logo-h-compact);
  }
}

.site-nav__links {
  display: none;
}

@media (min-width: 900px) {
  .site-nav__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
  }

  .site-nav__link {
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: var(--type-label-size);
    line-height: 100%;
    white-space: nowrap;
    color: var(--flav-navy);
    text-decoration: none;
  }

  .site-nav__link:hover,
  .site-nav__link.is-active {
    color: var(--flav-gold);
  }

  .site-nav__link.is-active {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
  }

  .site-nav__cta.button {
    height: var(--control-h);
  }
}

.site-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--flav-navy);
  cursor: pointer;
}

.site-nav__toggle .icon {
  width: 44px;
  height: 44px;
}

.site-nav__toggle--inverse .icon {
  fill: none;
  stroke: currentColor;
}

@media (min-width: 900px) {
  .site-nav__toggle {
    display: none;
  }
}

.site-nav__toggle--inverse {
  color: var(--flav-white);
}

/* mobile menu overlay */
.site-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background-color: var(--flav-navy);
  border: 1px solid rgba(0, 12, 106, 0.1);
  backdrop-filter: blur(4px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-base) var(--ease-standard), visibility 0s linear 0s;
}

.site-nav__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/images/mobile-nav-background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
}

.site-nav__overlay > * {
  position: relative;
  z-index: 1;
}

html.is-nav-open,
html.is-nav-open body {
  overflow: hidden;
}

html.is-nav-open body {
  position: fixed;
  width: 100%;
}

.site-nav__overlay[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--dur-base) var(--ease-standard), visibility 0s linear var(--dur-base);
}

.site-nav__overlay-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-inline: var(--page-gutter-mobile);
  flex-shrink: 0;
}

.site-nav__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  padding: var(--space-8) var(--page-gutter-mobile);
  flex-grow: 1;
}

.site-nav__overlay-link {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-nav-overlay-size, 44px);
  line-height: var(--type-nav-overlay-lh, 1);
  letter-spacing: var(--type-nav-overlay-ls, 0);
  color: var(--flav-white);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__overlay-link:hover {
  color: var(--flav-gold);
}

.site-nav__overlay-cta {
  display: flex;
  flex-direction: row;
  height: 80px;
  align-items: center;
  padding-inline: var(--page-gutter-mobile);
  flex-shrink: 0;
}

.site-nav__overlay-cta .button {
  flex-grow: 1;
  height: var(--control-h);
}

@media (min-width: 900px) {
  .site-nav__overlay,
  .site-nav__overlay[hidden] {
    display: none;
  }
}

/* ============================================================
   Site footer
   ============================================================ */

.site-footer {
  display: flex;
  flex-direction: column;
  /* Mobile: 20% more than the 32px footer grid rhythm. 20% of the old
     16px copyright margin (3.2px) is below a noticeable difference. */
  gap: calc(var(--space-8) * 1.2);
  background: var(--flav-navy);
  color: var(--text-on-inverse-body);
  padding: var(--space-12) var(--page-gutter-mobile);
}

@media (min-width: 900px) {
  .site-footer {
    gap: 0;
    padding: var(--page-gutter-desktop) var(--page-gutter-desktop) var(--space-8);
  }
}

.site-footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 900px) {
  .site-footer__grid {
    display: grid;
    grid-template-columns: 2.16fr 4.274fr 5.566fr;
    gap: var(--layout-grid-gap);
    text-align: left;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .site-footer__brand {
    grid-column: 1;
    align-items: flex-start;
    min-width: 312px;
  }
}

.site-footer__logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .site-footer__logo {
    width: 294px;
    max-width: none;
    padding-block: 0;
  }
}

.site-footer__body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-body-size);
  line-height: 32px;
  color: var(--text-on-inverse-body);
}

.site-footer__copy {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: calc((2em + var(--space-3)) / 2);
}

.site-footer__copy .site-footer__body {
  margin-block: 0;
}

.site-footer__copy .site-footer__body:first-child {
  margin-top: 1em;
}

.site-footer__copy .site-footer__body:last-child {
  margin-bottom: 1em;
}

.site-footer__columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--space-8) * 1.2 * 1.2);
}

@media (min-width: 900px) {
  .site-footer__columns {
    grid-column: 3;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-8);
    padding-block: var(--space-11);
  }
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .site-footer__column {
    align-items: flex-start;
    flex-grow: 1;
  }
}

.site-footer__eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  letter-spacing: var(--type-eyebrow-ls-footer);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--flav-gold);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .site-footer__nav {
    align-items: flex-start;
  }
}

.site-footer__link {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-lh);
  color: var(--text-on-inverse-body);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--flav-gold);
}

.site-footer__link--underline {
  text-decoration: underline;
}

.site-footer__linkedin {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
}

.site-footer__linkedin-mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.site-footer__copyright {
  display: flex;
  justify-content: center;
  margin-top: 0;
  border-top: var(--rule-1) solid rgba(255, 255, 255, 0.4);
  padding-block: var(--space-4) 0;
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--type-fine-size);
  line-height: var(--type-fine-lh);
  letter-spacing: var(--type-fine-ls);
  color: var(--flav-white-60);
  text-align: center;
}

@media (min-width: 900px) {
  .site-footer__copyright {
    justify-content: flex-start;
    margin-top: 0;
    border-top: none;
    padding-block: var(--space-8) 0;
    text-align: left;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--flav-navy);
  color: var(--flav-white);
  display: flex;
  flex-direction: column;
  padding-block: calc(96px * 0.8) 56px;
}

@media (min-width: 900px) {
  .hero {
    min-height: 806px;
    padding-block: calc(96px * 0.7 * 0.7 * 0.7 * 1.1) 50px;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__picture {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
}

.hero__media.is-video-active .hero__video {
  opacity: 1;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--flav-navy);
  opacity: 0;
  pointer-events: none;
}

.hero__media.is-desktop-poster-active .hero__video-overlay {
  opacity: 0.8;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* first-listed layer paints on top: flat navy veil above the white wash above the photo */
  background: rgba(0, 12, 106, 0.75), var(--scrim-wash);
}

@media (min-width: 640px) {
  .hero__scrim {
    /* Tablet and desktop use a pre-composited photograph; do not stack a CSS overlay. */
    background: none;
  }
}

/* decorative overlay lines — desktop only, per the design system's
   "faint vertical dividers overlay the hero" treatment */
.hero__line {
  display: none;
}

@media (min-width: 900px) {
  .hero__line {
    display: block;
    position: absolute;
    z-index: 4;
  }

  .hero__line--v1 {
    left: 8%;
    top: 45.2%;
    width: 1px;
    height: 54.8%;
    background: rgba(224, 182, 57, 0.7);
  }

  .hero__line--v2 {
    right: 16.7%;
    top: 4.7%;
    width: 1px;
    height: 54.8%;
    background: rgba(224, 182, 57, 0.7);
  }

  .hero__line--h1 {
    left: 0;
    top: 14.5%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero__line--h2 {
    left: 0;
    top: 67.4%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.hero__eyebrow-label {
  order: 1;
  font-family: var(--font-body);
  font-weight: var(--fw-extrabold);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  letter-spacing: var(--type-eyebrow-ls-hero-m);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--flav-gold);
}

.hero__eyebrow-label:last-of-type {
  order: 3;
}

.hero__tick {
  order: 2;
  width: var(--rule-len);
  height: var(--rule-1);
  background: var(--flav-gold);
  flex-shrink: 0;
}

.hero__eyebrow-dot {
  display: none;
  color: var(--flav-gold);
}

@media (min-width: 900px) {
  .hero__eyebrow {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
  }

  .hero__eyebrow-label {
    order: 2;
    letter-spacing: var(--type-eyebrow-ls-hero);
  }

  .hero__eyebrow-label:last-of-type {
    order: 4;
  }

  .hero__tick {
    order: 1;
  }

  .hero__eyebrow-dot {
    display: inline;
    order: 3;
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: 20px;
    line-height: 16px;
  }
}

.hero__heading {
  margin: 0;
  max-width: var(--measure-hero);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  color: var(--flav-white);
  font-size: var(--type-hero-m-size);
  line-height: var(--type-hero-m-lh);
  letter-spacing: var(--type-hero-m-ls);
}

@media (min-width: 900px) {
  .hero__heading {
    font-size: var(--type-hero-size);
    line-height: var(--type-hero-lh);
    letter-spacing: var(--type-hero-ls);
  }
}

.hero__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .hero__foot {
    align-items: flex-end;
  }
}

.hero__lead {
  margin: 0;
  max-width: var(--measure-copy);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-prose-size);
  line-height: var(--type-prose-lh);
  color: var(--text-on-inverse-body);
}

@media (min-width: 900px) {
  .hero__lead {
    font-size: var(--type-body-size);
    line-height: var(--type-body-lh);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
}

.hero__actions .button {
  width: 100%;
}

@media (min-width: 560px) {
  .hero__actions {
    flex-direction: row;
    width: auto;
  }

  .hero__actions .button {
    width: auto;
  }
}

/* ============================================================
   Who We Help
   ============================================================ */

.who-we-help {
  background: var(--surface-warm);
  padding-block: var(--space-20);
}

@media (min-width: 900px) {
  .who-we-help {
    padding-block: var(--layout-section-y);
  }
}

.who-we-help__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.who-we-help__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .who-we-help__header {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-16);
  }
}

.who-we-help__intro-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .who-we-help__intro-col {
    flex: 1 1 0;
  }
}

.who-we-help__heading {
  max-width: var(--measure-narrow);
}

.who-we-help__lead {
  max-width: var(--measure-wide);
}

@media (min-width: 900px) {
  .who-we-help__lead {
    flex: 1 1 0;
  }
}

.who-we-help__grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .who-we-help__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

.who-we-help__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-block: var(--space-8);
  border-top: 1px solid var(--border-hairline);
}

@media (min-width: 900px) {
  .who-we-help__card {
    padding: var(--space-10) var(--space-8);
  }

  .who-we-help__card:not(:first-child) {
    border-left: 1px solid var(--border-hairline);
  }
}

.who-we-help__icon {
  display: block;
  width: var(--icon-tile);
  height: var(--icon-tile);
}

/* All three Who we help titles share H4 metrics. Do not enlarge the first card. */
.who-we-help__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-lh);
  color: var(--text-heading);
}

/* ============================================================
   Areas of Expertise
   ============================================================ */

.expertise {
  background: var(--surface-cool);
  padding-block: var(--space-20);
  border-block: 1px solid var(--border-hairline-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

@media (min-width: 900px) {
  .expertise {
    padding-block: var(--layout-section-y);
    border-block: none;
  }
}

.expertise .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.expertise__heading {
  max-width: var(--measure-narrow);
}

.expertise__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expertise__item {
  display: flex;
  flex-direction: column;
  gap: 27.3px;
  padding-block: var(--space-10);
  border-top: 1px solid var(--border-hairline);
}

@media (min-width: 900px) {
  .expertise__item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--layout-grid-gap);
    padding-block: var(--space-16);
    border-top: none;
    border-bottom: 1px solid var(--flav-stroke-warm);
  }

  .expertise__item:last-child {
    border-bottom: none;
  }
}

.expertise__numeral {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--type-numeral-m-size);
  line-height: var(--type-numeral-m-lh);
  color: var(--flav-navy-20);
}

@media (min-width: 900px) {
  .expertise__numeral {
    font-size: var(--type-numeral-size);
    line-height: var(--type-numeral-lh);
  }
}

.expertise__title {
  margin: 0 0 var(--space-5) 0;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h3-size);
  line-height: 40px;
  color: var(--text-heading);
}

.expertise__body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-prose-size);
  line-height: var(--type-prose-lh);
  color: var(--flav-black-cool);
}

@media (min-width: 900px) {
  .expertise__body {
    max-width: 580px;
  }
}

/* ============================================================
   Croatia Market Entry
   ============================================================ */

.market-entry {
  position: relative;
  overflow: hidden;
  background: var(--flav-navy);
  color: var(--text-on-inverse);
  padding-block: var(--space-20);
}

@media (min-width: 900px) {
  .market-entry {
    padding-block: 94px;
  }
}

.market-entry__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.market-entry__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  opacity: 0.6;
}

.market-entry__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-band);
}

.market-entry__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .market-entry__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    column-gap: var(--layout-grid-gap);
    align-items: start;
  }
}

.market-entry__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .market-entry__intro {
    padding-right: 20%;
  }
}

.eyebrow--flag {
  gap: var(--space-3);
}

.eyebrow--flag::before {
  display: none;
}

.market-entry__flag {
  display: block;
  width: 32px;
  height: 20px;
  object-fit: cover;
  border: 1px solid var(--border-inverse);
  box-sizing: border-box;
  flex-shrink: 0;
}

.market-entry__heading {
  color: var(--text-on-inverse);
  width: 100%;
  max-width: none;
}

.market-entry__lead {
  margin: 0;
  max-width: none;
  padding-top: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-prose-size);
  line-height: var(--type-prose-lh);
  color: var(--text-on-inverse-body);
}

@media (min-width: 900px) {
  .market-entry__lead {
    max-width: var(--measure-copy);
  }
}

.market-entry__cols {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  border-top: 1px solid var(--border-inverse);
  padding-top: var(--space-8);
}

@media (min-width: 900px) {
  .market-entry__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10%;
    padding-top: var(--space-11);
    border-top: none;
  }
}

.market-entry__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.market-entry__col + .market-entry__col {
  border-top: 1px solid var(--border-inverse);
  padding-top: var(--space-8);
}

@media (min-width: 900px) {
  .market-entry__col + .market-entry__col {
    border-top: none;
    padding-top: 0;
  }
}

.market-entry__kicker {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  letter-spacing: var(--type-eyebrow-ls);
  text-transform: uppercase;
  color: var(--text-eyebrow-inverse);
}

.market-entry__copy {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-prose-size);
  line-height: var(--type-prose-lh);
  color: var(--text-on-inverse-body);
}

/* ============================================================
   Selected Experience
   ============================================================ */

.experience {
  background: var(--surface-warm);
  padding-block: var(--space-20);
}

@media (min-width: 900px) {
  .experience {
    padding-block: var(--layout-section-y);
  }
}

.experience__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.experience__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .experience__header {
    flex-direction: row;
    gap: 0;
  }
}

.experience__intro-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .experience__intro-col {
    flex: 1 1 0;
  }
}

.experience__heading {
  max-width: var(--measure-narrow);
}

.experience__lead {
  max-width: var(--measure-wide);
}

@media (min-width: 900px) {
  .experience__lead {
    flex: 1 1 0;
  }
}

.experience__grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .experience__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

.experience__card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-5);
  row-gap: var(--space-5);
  align-items: center;
  padding-block: var(--space-8);
  border-top: var(--rule-1) solid var(--border-hairline);
}

.experience__icon {
  display: block;
  width: var(--icon-tile);
  height: var(--icon-tile);
  grid-column: 1;
}

.experience__title {
  grid-column: 2;
}

.experience__card .type-prose {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .experience__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    padding: 42px var(--space-8);
  }

  .experience__card:not(:first-child) {
    border-left: var(--rule-1) solid var(--border-hairline);
  }

  .experience__icon,
  .experience__title,
  .experience__card .type-prose {
    grid-column: auto;
  }
}

.experience__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h5-size);
  line-height: var(--type-h5-lh);
  letter-spacing: var(--type-h5-ls);
  text-transform: uppercase;
  color: var(--text-heading);
}

/* ============================================================
   Why Flavima
   ============================================================ */

.why-flavima {
  background: var(--surface-cool);
  padding-block: var(--space-20);
}

@media (min-width: 900px) {
  .why-flavima {
    padding-block: var(--layout-section-y);
  }
}

.why-flavima__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .why-flavima__inner {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--space-16);
    align-items: start;
  }
}

.why-flavima__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .why-flavima__header {
    position: sticky;
    top: calc(var(--nav-h) + var(--space-10));
    width: max-content;
    max-width: 100%;
  }
}

.why-flavima__heading {
  max-width: var(--measure-narrow);
}

@media (min-width: 900px) {
  .why-flavima__heading {
    width: max-content;
    max-width: 100%;
  }
}

.why-flavima__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 650px;
}

@media (min-width: 900px) {
  .why-flavima__list {
    justify-self: end;
    container-type: inline-size;
    container-name: why-items;
  }
}

.why-flavima__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-8);
  border-top: 1px solid var(--border-hairline);
}

.why-flavima__item:last-child {
  padding-bottom: 0;
}

@media (min-width: 900px) {
  .why-flavima__item {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: var(--space-3);
    padding-block: 24px;
  }

  .why-flavima__item:last-child {
    padding-bottom: 24px;
  }
}

/* After the body copy has compressed about 20% from the 650px list, stack under the title. */
@container why-items (max-width: 520px) {
  .why-flavima__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
}

.why-flavima__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h5-size);
  line-height: var(--type-h5-lh);
  letter-spacing: var(--type-h5-ls);
  color: var(--text-heading);
}

/* ============================================================
   Founder
   ============================================================ */

.founder {
  background: var(--surface-cool);
  padding-block: var(--space-20);
}

@media (min-width: 900px) {
  .founder {
    padding-block: var(--layout-section-y);
  }
}

.founder-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6) var(--page-gutter-mobile);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline-soft);
  border-radius: var(--radius-sm);
}

@media (min-width: 900px) {
  .founder-card {
    padding: var(--space-10) var(--space-8);
    display: grid;
    grid-template-columns: minmax(0, 600fr) minmax(0, 616fr);
    column-gap: var(--space-16);
    row-gap: var(--space-4);
  }
}

.founder-card__logo {
  order: -1;
  width: 105px;
  height: 48px;
  object-fit: contain;
  object-position: right center;
  align-self: flex-end;
}

@media (min-width: 900px) {
  .founder-card__logo {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    width: 260px;
    height: auto;
    align-self: start;
    justify-self: end;
    object-position: center;
  }
}

.founder-card__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  text-align: center;
}

@media (min-width: 900px) {
  .founder-card__intro {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-5);
    text-align: left;
  }
}

.founder-card__name {
  width: 100%;
  font-size: var(--type-h2-m-size);
  line-height: var(--type-h2-m-lh);
  letter-spacing: var(--type-h2-m-ls);
  text-align: center;
}

@media (min-width: 900px) {
  .founder-card__name {
    font-size: var(--type-h2-size);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-ls);
    text-align: left;
  }
}

.founder-card__portrait {
  width: 213px;
  height: 240px;
  margin-inline: auto;
  object-fit: cover;
  object-position: center bottom;
  border-radius: var(--radius-hairline);
}

@media (min-width: 900px) {
  .founder-card__portrait {
    grid-column: 1;
    grid-row: 2;
    width: 206px;
    height: 233px;
    margin-inline: 0;
    justify-self: start;
    z-index: 1;
    object-position: center top;
    border-radius: var(--radius-sm);
  }
}

.founder-card__quote {
  margin: 0;
  padding-left: var(--space-5);
  border-left: var(--rule-accent) solid var(--flav-gold);
}

@media (min-width: 900px) {
  .founder-card__quote {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: calc(206px + var(--space-14));
    align-self: center;
    justify-self: stretch;
    width: auto;
    max-width: 662px;
    min-width: 0;
  }
}

.founder-card__quote p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-quote-size);
  line-height: var(--type-quote-lh);
  color: var(--text-heading);
}

.founder-card__bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .founder-card__bio {
    grid-column: 1;
    grid-row: 3;
  }
}

.founder-card__bio .type-prose {
  color: var(--flav-black-cool);
}

.founder-card__cta {
  align-self: stretch;
  width: 100%;
}

@media (min-width: 900px) {
  .founder-card__cta {
    grid-column: 1;
    grid-row: 4;
    align-self: start;
    justify-self: start;
    width: auto;
    margin-top: var(--space-3);
  }
}

.founder-card__highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .founder-card__highlights {
    grid-column: 2;
    grid-row: 3 / 5;
  }
}

.founder-card__highlights li {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-prose-size);
  line-height: var(--type-prose-lh);
  color: var(--flav-black-cool);
  padding-left: var(--space-5);
  position: relative;
}

.founder-card__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--flav-navy-52);
}

.founder-card__highlights strong {
  color: var(--text-heading);
  font-weight: var(--fw-semibold);
}

/* ============================================================
   Selected Clients
   ============================================================ */

.clients {
  background: var(--surface-warm);
  padding-block: var(--layout-section-y-mobile-tight);
}

@media (min-width: 900px) {
  .clients {
    padding-block: var(--layout-section-y-tight);
  }
}

.clients__inner {
  display: flex;
  flex-direction: column;
}

.clients__heading {
  margin: 0;
  padding-bottom: var(--space-6);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-lh);
  color: var(--text-heading);
}

@media (min-width: 900px) {
  .clients__heading {
    letter-spacing: -0.75px;
  }
}

.clients__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 96px;
  flex-shrink: 0;
}

.clients__logo {
  display: block;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.clients__logo--king {
  width: 219px;
  height: 72px;
  object-fit: cover;
}

.clients__logo--eccos {
  width: 211px;
  height: 56px;
}

.clients__logo--supranet {
  width: 228px;
  height: 40px;
}

.clients__tkb-crop {
  position: relative;
  width: 175px;
  height: 96px;
  overflow: hidden;
}

.clients__logo--tkb {
  position: absolute;
  width: 136.51%;
  height: 164.96%;
  max-width: none;
  left: -18.25%;
  top: -31.76%;
}

.clients__logo--team {
  width: 131px;
  height: 96px;
  object-fit: cover;
}

/* ============================================================
   Final Contact CTA
   ============================================================ */

.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--flav-navy);
  color: var(--text-on-inverse);
  padding-block: var(--space-20);
}

@media (min-width: 900px) {
  .final-cta {
    min-height: 440px;
    padding-block: 100px 64px;
  }
}

.final-cta__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-cta__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 900px) {
  .final-cta__image {
    position: absolute;
    left: 0;
    width: 100%;
    height: 219.65%;
    top: -59.83%;
    object-fit: cover;
  }
}

.final-cta__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-cta);
}

.final-cta__fade {
  display: none;
}

@media (min-width: 900px) {
  .final-cta__fade {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(0, 12, 106, 0) 0%, var(--flav-navy) 97.115%);
  }
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 31px;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.final-cta__heading {
  margin: 0;
  max-width: 591px;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-lh);
  letter-spacing: var(--type-h2-ls);
  color: var(--flav-bone-2);
}

.final-cta__body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--flav-white-90);
}

@media (min-width: 900px) {
  .final-cta__body {
    line-height: var(--type-lead-lh);
  }
}

.final-cta__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.final-cta__actions .button {
  width: 100%;
}

@media (min-width: 640px) {
  .final-cta__actions .button {
    width: auto;
  }
}

/* ============================================================
   Contact page (/contact/) — digital business card
   Scoped so homepage section styles are untouched.
   ============================================================ */

.contact-page {
  min-width: 20rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--flav-bone);
  color: var(--text-heading);
}

.contact-page .icon {
  fill: none;
}

.contact-shell {
  position: relative;
  flex: 1 0 auto;
  overflow: clip;
}

.contact-shell__rule {
  display: none;
}

@media (min-width: 900px) {
  .contact-shell__rule {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
  }

  .contact-shell__rule--split {
    left: 58%;
    width: 1px;
    background: var(--flav-navy-10);
  }

  .contact-shell__rule--gold {
    left: 81.93%;
    width: 1px;
    background: rgba(224, 182, 57, 0.65);
  }
}

.contact-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--nav-h-mobile);
  padding-inline: var(--page-gutter-mobile);
  background: rgba(248, 247, 242, 0.95);
  border-bottom: 1px solid var(--border-hairline-faint);
  backdrop-filter: blur(4px);
}

@media (min-width: 900px) {
  .contact-header {
    height: var(--nav-h);
    max-width: var(--layout-max);
    margin-inline: auto;
    padding-inline: var(--page-gutter-desktop);
    background: var(--flav-bone);
    border-bottom: none;
    backdrop-filter: none;
  }
}

.contact-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.contact-header__logo {
  display: block;
  height: var(--nav-logo-h-mobile);
  width: auto;
}

@media (min-width: 900px) {
  .contact-header__logo {
    height: 67.2px; /* 56px Figma lockup + 20% — locked, do not revert */
  }
}

.contact-header__home {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding-inline: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--type-label-size);
  line-height: var(--type-label-lh);
  color: var(--flav-navy);
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .contact-header__home {
    padding-inline: 22px;
  }
}

.contact-header__home:hover {
  color: var(--flav-gold);
}

.contact-header__home .icon {
  width: 20px;
  height: 20px;
}

.contact-main {
  position: relative;
  z-index: 2;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding: var(--space-10) var(--page-gutter-mobile);
  padding-top: calc(var(--space-12) * 0.42);
  padding-bottom: calc(var(--space-10) * 0.6);
}

@media (min-width: 900px) {
  .contact-card {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--layout-grid-gap);
    align-items: start;
    min-height: calc(1024px - var(--nav-h) - var(--space-32));
    padding: var(--space-16) var(--page-gutter-desktop);
    padding-top: var(--space-32);
    padding-bottom: calc(var(--space-16) * 0.6);
  }
}

.contact-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  width: 100%;
}

@media (min-width: 900px) {
  .contact-card__copy {
    grid-column: 1 / span 7;
    padding-right: var(--space-12);
  }
}

.contact-card__eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  letter-spacing: var(--type-eyebrow-ls);
  text-transform: uppercase;
  color: var(--flav-navy);
}

.contact-card__name {
  margin: 0;
  padding-top: var(--space-1);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-hero-m-size);
  line-height: 44.64px;
  letter-spacing: var(--type-hero-m-ls);
  color: var(--flav-navy);
}

@media (min-width: 900px) {
  .contact-card__name {
    font-size: 72px;
    line-height: 72px;
    letter-spacing: -1.8px;
  }
}

.contact-card__role {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
  padding-left: 22px;
  border-left: var(--rule-accent) solid var(--flav-gold);
}

.contact-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--type-label-size);
  line-height: var(--type-label-lh);
  color: var(--flav-navy);
}

.contact-card__descriptor {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-lh);
  color: var(--flav-ink-70);
}

.contact-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: var(--measure-copy);
  padding-top: var(--space-4);
}

@media (min-width: 720px) {
  .contact-card__actions {
    flex-direction: row;
    align-items: stretch;
  }
}

.contact-card__save,
.contact-card__email {
  width: 100%;
  min-height: 56px;
  height: auto;
  padding-block: 17.5px 18px;
}

.contact-card__email {
  font-weight: var(--fw-medium);
}

.contact-card__note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-card__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--measure-copy);
  margin: 0;
  padding: 17px 0 0;
  list-style: none;
  border-top: var(--rule-1) solid var(--border-hairline);
}

.contact-card__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  box-sizing: border-box;
  min-height: 56px;
  padding-block: 17.5px 18.5px;
  border-bottom: var(--rule-1) solid var(--border-hairline);
  color: var(--text-body);
  text-decoration: none;
  cursor: pointer;
}

.contact-card__row:hover,
.contact-card__row:hover .contact-card__row-meta {
  color: var(--flav-gold);
}

.contact-card__row-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-label-size);
  line-height: var(--type-label-lh);
  color: inherit;
  min-width: 0;
}

.contact-card__row-meta {
  flex-shrink: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-lh);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-position: from-font;
  overflow-wrap: anywhere;
  text-align: right;
}

.contact-card__row-meta--plain {
  text-decoration: none;
}

.contact-card__row-arrow {
  display: block;
  flex-shrink: 0;
  fill: none;
}

.contact-card__portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 384px;
  margin: 0;
}

@media (min-width: 900px) {
  .contact-card__portrait {
    grid-column: 9 / span 4;
    justify-self: start;
    width: 372px;
    max-width: 372px;
  }
}

.contact-card__portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 372 / 448;
  overflow: hidden;
  background: var(--flav-navy);
}

@media (min-width: 900px) {
  .contact-card__portrait-frame {
    width: 372px;
    height: 448px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
}

.contact-card__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  border-radius: var(--radius-hairline);
}

@media (min-width: 900px) {
  .contact-card__photo {
    width: 372px;
    height: 448px;
  }
}

.contact-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 17px 20px 16px;
  background: var(--flav-navy);
  border-top: var(--rule-1) solid var(--border-inverse);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  letter-spacing: var(--type-eyebrow-ls);
  text-transform: uppercase;
  text-align: center;
  color: var(--flav-white);
}

.contact-card__corner {
  display: none;
}

@media (min-width: 900px) {
  .contact-card__corner {
    display: block;
    position: absolute;
    left: -24px;
    bottom: -16px;
    width: 64px;
    height: 64px;
    border-left: 1px solid var(--flav-gold);
    border-bottom: 1px solid var(--flav-gold);
    pointer-events: none;
  }
}

/* ============================================================
   404 / error page
   Reuses contact-page, contact-shell, contact-header, and footer.
   ============================================================ */

.error-page .contact-shell {
  display: flex;
  flex-direction: column;
  min-height: 852px;
}

.error-page .contact-shell__rule--gold {
  display: none;
}

@media (min-width: 900px) {
  .error-page .contact-shell {
    /* Fill the visible window so the copy block centers on screen,
       not inside the taller 1024px Figma frame (which hid the buttons). */
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* contact-header uses margin-inline: auto at desktop. As a flex child of
   .contact-shell that shrink-wraps to the logo + home link; stretch it. */
.error-page .contact-header {
  width: 100%;
  flex-shrink: 0;
  align-self: stretch;
}

.error-page__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space-12) * 0.7) var(--page-gutter-mobile) var(--space-16);
}

@media (min-width: 900px) {
  .error-page__main {
    align-items: safe center;
    justify-content: safe center;
    min-height: 0;
    padding: calc(var(--space-20) * 0.7) var(--page-gutter-desktop) var(--space-16);
  }
}

.error-page__inner {
  width: 100%;
  max-width: 768px;
}

.error-page__eyebrow::before {
  display: none;
}

.error-page__eyebrow .eyebrow__label {
  color: var(--text-eyebrow);
}

.error-page__stack {
  display: flex;
  flex-direction: column;
  margin-top: 27px;
}

.error-page__numeral {
  margin: 0 0 -40px;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-404-m-size);
  line-height: var(--type-404-m-lh);
  letter-spacing: var(--type-404-m-ls);
  color: var(--flav-navy-08);
  pointer-events: none;
  user-select: none;
}

@media (min-width: 900px) {
  .error-page__numeral {
    margin-bottom: -80px;
    font-size: var(--type-404-size);
    line-height: var(--type-404-lh);
    letter-spacing: var(--type-404-ls);
  }
}

.error-page__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}

@media (min-width: 900px) {
  .error-page__copy {
    gap: var(--space-5);
  }
}

.error-page__heading {
  margin: 0;
  max-width: 672px;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--type-hero-m-size);
  line-height: 45.12px;
  letter-spacing: var(--type-hero-m-ls);
  color: var(--text-heading);
}

@media (min-width: 900px) {
  .error-page__heading {
    font-size: 72px;
    line-height: 72px;
    letter-spacing: -1.8px;
  }
}

.error-page__lead {
  margin: 0;
  max-width: var(--measure-copy);
  padding-top: 5px;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-lh);
  color: var(--flav-ink-70);
}

@media (min-width: 900px) {
  .error-page__lead {
    padding-top: var(--space-1);
    font-size: var(--type-body-size);
    line-height: var(--type-prose-lh);
  }
}

.error-page__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
  padding-top: 17px;
}

@media (min-width: 900px) {
  .error-page__actions {
    flex-direction: row;
    align-items: stretch;
    width: auto;
    padding-top: var(--space-4);
  }
}

.error-page__actions .button {
  min-height: 56px;
  height: auto;
  padding-inline: var(--space-6);
}

.error-page__actions .icon {
  width: 18px;
  height: 18px;
}

.error-page__contact {
  font-weight: var(--fw-medium);
}
