@layer reset, styles, prewind;

@import url("theme.css");
@import url("typography.css");
@import url("forms.css");
@import url("ui.css");
@import url("https://unpkg.com/prewindcss@1.3.1");

@layer styles {
  /* Shared proportions for the small, single-purpose owner screens. */
  .admin-access {
    max-width: 29rem;
    margin: clamp(0rem, 4vh, 3rem) auto;
    padding: var(--space-lg);
    border: 1px solid var(--light);
    border-radius: var(--rounded-lg);
    background: var(--white);
    box-shadow: 0 8px 32px rgb(0 0 0 / 0.035);
  }
  .admin-access > h1 {
    letter-spacing: -0.035em;
  }
  .admin-access > p {
    font-size: var(--text-base);
  }
  .admin-access > p:last-child {
    font-size: max(0.875rem, var(--text-sm));
  }
  .container {
    min-width: 0;
    max-width: 100%;
  }
  .admin-access form {
    margin-block: var(--space-lg);
  }
  .admin-access .form-field {
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
  }
  .admin-access input {
    font-size: max(1rem, var(--text-base));
  }
  .admin-access .code-input {
    max-width: none;
  }
  .admin-access [role="alert"],
  .admin-access [role="status"] {
    padding: var(--space-sm);
    border: 1px solid var(--light);
    border-radius: var(--rounded-lg);
    background: var(--lighter);
  }
  main > .container > h1 {
    max-width: 20ch;
  }
  main > .container > h1:first-child {
    margin-top: 0;
  }
  main > .container > p {
    max-width: 58ch;
  }
  .desktop-navigation {
    display: flex;
    gap: var(--space-md);
  }
  .mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--black);
  }
  .mobile-menu-toggle:hover {
    background: transparent;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 22px;
    background:
      linear-gradient(currentColor, currentColor) top/100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) bottom/100% 2px no-repeat;
  }
  #mobile-navigation {
    margin: 0 0 0 auto;
    inset: var(--flea-toolbar-height, 0px) 0 0;
    width: min(22rem, 100%);
    height: calc(100dvh - var(--flea-toolbar-height, 0px));
    overflow: auto;
    padding: var(--space-md);
    border: 0;
    background: var(--white);
    color: var(--black);
    opacity: 0;
    transform: translateX(24px);
  }
  #mobile-navigation:popover-open {
    opacity: 1;
    transform: translateX(0);
  }
  #mobile-navigation::backdrop {
    inset: var(--flea-toolbar-height, 0px) 0 0;
    background: #0005;
    opacity: 0;
  }
  #mobile-navigation:popover-open::backdrop {
    opacity: 1;
  }
  @media (prefers-reduced-motion: no-preference) {
    #mobile-navigation {
      transition:
        opacity 180ms ease,
        transform 180ms ease,
        display 180ms allow-discrete,
        overlay 180ms allow-discrete;
    }
    #mobile-navigation::backdrop {
      transition:
        opacity 180ms ease,
        display 180ms allow-discrete,
        overlay 180ms allow-discrete;
    }
    @starting-style {
      #mobile-navigation:popover-open {
        opacity: 0;
        transform: translateX(24px);
      }
      #mobile-navigation:popover-open::backdrop {
        opacity: 0;
      }
    }
  }
  #mobile-navigation nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  #mobile-navigation button[popovertargetaction="hide"] {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0;
  }
  #mobile-navigation button[popovertargetaction="hide"]::before,
  #mobile-navigation button[popovertargetaction="hide"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  #mobile-navigation button[popovertargetaction="hide"]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  @media (max-width: 900px) {
    .desktop-navigation,
    .header-actions,
    header > nav > a[href="/admin"] {
      display: none;
    }
    .mobile-menu-toggle {
      display: inline-flex;
      margin-left: auto;
    }
  }
  .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-xl);
  }
  @media (max-width: 760px) {
    .contact-layout {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }
  .team-grid article > :last-child > p:last-child {
    margin-bottom: 0;
  }
  @media (max-width: 900px) {
    .team-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 560px) {
    .team-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  /* Global styles go here */
  nav > a,
  .desktop-navigation > a {
    text-decoration: none;
    color: var(--darker);
  }

  /* Full-height shell with independently scrolling navigation and editing. */
  .admin-shell {
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }
  .admin-main {
    min-height: 0;
    overflow: auto;
  }
  .admin-workspace {
    height: 100%;
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
  }
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .admin-page-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }
  .admin-page-list a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
  }
  .admin-page-list a[aria-current="page"] {
    background: var(--white);
    color: var(--black);
    font-weight: var(--font-semibold);
  }
  .admin-content {
    min-width: 0;
    overflow-y: auto;
  }
  .admin-panel {
    max-width: 56rem;
  }
  @media (max-width: 640px) {
    .admin-workspace {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: minmax(0, 30dvh) minmax(0, 1fr);
    }
  }

  /* ---------------------------------------------------------------
     Atlas Title Surveys — public site
     --------------------------------------------------------------- */

  /* Page rail: deterministic width, independent of Prewind's container. */
  .wrap {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-lg);
  }

  /* Keyboard skip link: hidden until focused. */
  .skip-link {
    position: fixed;
    left: var(--space-sm);
    top: 0;
    z-index: 100;
    transform: translateY(-150%);
    background: var(--black);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 0 var(--rounded) var(--rounded) 0;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: transform 0.15s ease;
  }
  .skip-link:focus {
    transform: translateY(0);
  }
  @media (prefers-reduced-motion: reduce) {
    .skip-link {
      transition: none;
    }
  }

  /* Small mono label used as an eyebrow or field note. */
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--brand-2);
  }

  .section {
    padding-block: var(--space-2xl);
  }
  .section-tight {
    padding-block: var(--space-xl);
  }
  .section-ink {
    background: var(--brand-1);
    color: var(--white);
  }
  .section-ink .eyebrow {
    color: var(--brand-3-light);
  }
  .section-bone {
    background: var(--lighter);
  }
  .section-paper {
    background: var(--white);
  }

  /* Header ------------------------------------------------------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--lighter) 86%, transparent);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    backdrop-filter: blur(10px) saturate(1.1);
    border-bottom: var(--border) solid
      color-mix(in srgb, var(--light) 65%, transparent);
  }
  .header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-block: var(--space-sm);
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--black);
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    flex: none;
  }
  .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }
  .brand-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
  }
  .brand-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dark);
    margin-top: 0.32rem;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
  }
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--darker);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
  }
  .header-phone:hover {
    color: var(--brand-2);
  }
  .header-cta {
    min-height: 2.6rem;
    padding-block: 0.35rem;
  }
  .desktop-navigation {
    margin-left: var(--space-lg);
  }
  .desktop-navigation > a {
    position: relative;
    font-weight: 500;
    padding-block: 0.35rem;
    white-space: nowrap;
  }
  .desktop-navigation > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--brand-2);
    transition: right 0.25s ease;
  }
  .desktop-navigation > a:hover::after {
    right: 0;
  }
  @media (prefers-reduced-motion: reduce) {
    .desktop-navigation > a::after {
      transition: none;
    }
  }

  /* Buttons ------------------------------------------------------ */
  .ui-ghost-light {
    background: transparent;
    border-color: color-mix(in srgb, var(--white) 45%, transparent);
    color: var(--white);
  }
  .ui-ghost-light:hover:not(:disabled, [aria-disabled="true"]) {
    background: color-mix(in srgb, var(--white) 14%, transparent);
    filter: none;
  }
  .ui-button .icon,
  .text-link .icon {
    flex: none;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-1);
  }
  .text-link:hover {
    color: var(--brand-2);
  }
  .text-link .icon {
    transition: transform 0.2s ease;
  }
  .text-link:hover .icon {
    transform: translateX(3px);
  }
  @media (prefers-reduced-motion: reduce) {
    .text-link .icon {
      transition: none;
    }
  }

  /* Hero --------------------------------------------------------- */
  .hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(88svh, 840px);
    overflow: hidden;
    background: var(--darker);
    color: var(--white);
  }
  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }
  .hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgb(17 27 26 / 0.58) 0%,
      rgb(17 27 26 / 0.22) 34%,
      rgb(17 27 26 / 0.86) 100%
    );
  }
  .hero-inner {
    position: relative;
    width: 100%;
    padding-block: var(--space-2xl) var(--space-xl);
  }
  .hero-content {
    max-width: 47rem;
  }
  .hero .eyebrow {
    color: color-mix(in srgb, var(--white) 82%, transparent);
  }
  .hero-title {
    color: var(--white);
    font-size: clamp(2.8rem, 1.6rem + 5.2vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: var(--space-sm) 0;
  }
  .hero-title em {
    font-style: italic;
    font-weight: 400;
  }
  .hero-lead {
    color: color-mix(in srgb, var(--white) 90%, transparent);
    font-size: var(--text-lg);
    max-width: 42rem;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
  }
  .hero-scroll {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--white) 65%, transparent);
  }
  .hero-scroll::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
  }

  /* Intro / story ------------------------------------------------ */
  .intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-xl);
    align-items: start;
  }
  .intro-title {
    margin: var(--space-xs) 0 0;
  }
  .intro-copy > p:first-child {
    margin-top: 0;
  }
  .intro-media {
    margin-top: var(--space-lg);
  }
  .stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: var(--border) solid var(--light);
  }
  .stat-value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--brand-1);
  }
  .stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark);
    margin-top: var(--space-2xs);
  }
  @media (max-width: 560px) {
    .stat-row {
      grid-template-columns: minmax(0, 1fr);
      gap: var(--space-sm);
    }
  }
  @media (max-width: 880px) {
    .intro-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .photo-frame {
    position: relative;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
  }
  .photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .photo-caption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--dark);
    margin-top: var(--space-xs);
  }

  /* Section heading pattern ------------------------------------- */
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: end;
    margin-bottom: var(--space-xl);
  }
  .section-head h2 {
    margin: 0;
  }
  .section-head p {
    margin: 0;
    color: var(--dark);
  }
  .section-ink .section-head p {
    color: color-mix(in srgb, var(--white) 78%, transparent);
  }
  @media (max-width: 780px) {
    .section-head {
      grid-template-columns: minmax(0, 1fr);
      align-items: start;
    }
    .section-head p {
      margin-top: var(--space-sm);
    }
  }

  /* Scenario cards ---------------------------------------------- */
  .scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: var(--space-md);
  }
  .scenario-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--white);
    border: var(--border) solid var(--light);
    border-radius: var(--rounded-lg);
  }
  .scenario-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: var(--brand-1-light);
    color: var(--brand-1);
    margin-bottom: var(--space-2xs);
  }
  .scenario-card h3 {
    margin: 0;
    font-size: var(--text-lg);
  }
  .scenario-card p {
    margin: 0;
    max-width: none;
    color: var(--dark);
  }
  .scenario-card .text-link {
    margin-top: auto;
    padding-top: var(--space-sm);
    align-self: flex-start;
  }
  .scenario-card .download-link {
    font-family: var(--font-mono);
    font-size: 0.74rem;
  }

  /* Services list ----------------------------------------------- */
  .service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-xl);
    border-top: var(--border) solid
      color-mix(in srgb, var(--white) 24%, transparent);
  }
  .service-list li {
    border-bottom: var(--border) solid
      color-mix(in srgb, var(--white) 24%, transparent);
  }
  .service-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-block: var(--space-md);
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
  }
  .service-list a:hover {
    color: var(--brand-3-light);
  }
  .service-list .icon {
    flex: none;
    opacity: 0.6;
  }
  @media (max-width: 700px) {
    .service-list {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* CTA band ---------------------------------------------------- */
  .cta-band {
    position: relative;
    overflow: hidden;
    background: var(--darker);
    color: var(--white);
  }
  .cta-band-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
  }
  .cta-band-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgb(15 24 23 / 0.82) 0%,
      rgb(15 24 23 / 0.42)
        52%,
      rgb(15 24 23 / 0.12) 100%
    );
  }
  .cta-band-inner {
    position: relative;
    padding-block: var(--space-2xl);
    max-width: 42rem;
  }
  .cta-band h2 {
    color: var(--white);
    margin-top: var(--space-sm);
  }
  .cta-band p {
    color: color-mix(in srgb, var(--white) 86%, transparent);
    font-size: var(--text-lg);
  }
  .cta-band .hero-actions {
    margin-top: var(--space-lg);
  }

  /* Footer ------------------------------------------------------ */
  .site-footer {
    background: var(--black);
    color: color-mix(in srgb, var(--white) 78%, transparent);
    padding-block: var(--space-2xl) var(--space-lg);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.2fr;
    gap: var(--space-xl);
  }
  .footer-blurb {
    color: color-mix(in srgb, var(--white) 68%, transparent);
    max-width: 34ch;
    font-size: var(--text-sm);
    margin-top: var(--space-md);
  }
  .footer-heading {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--white) 52%, transparent);
    margin: 0 0 var(--space-sm);
  }
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }
  .footer-links a {
    color: color-mix(in srgb, var(--white) 84%, transparent);
    text-decoration: none;
    font-size: var(--text-sm);
  }
  .footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--white);
  }
  .footer-brand .brand-name {
    color: var(--white);
  }
  .footer-brand .brand-sub {
    color: color-mix(in srgb, var(--white) 55%, transparent);
  }
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: var(--border) solid
      color-mix(in srgb, var(--white) 16%, transparent);
    font-size: var(--text-sm);
  }
  .footer-bottom a {
    color: color-mix(in srgb, var(--white) 70%, transparent);
    text-decoration: none;
  }
  .footer-bottom a:hover {
    color: var(--white);
  }
  @media (max-width: 960px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 560px) {
    .footer-grid {
      grid-template-columns: 1fr;
      gap: var(--space-lg);
    }
  }

  /* Contact details reuse -------------------------------------- */
  .contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  .contact-details .label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark);
    display: block;
    margin-bottom: 0.2rem;
  }
  .contact-details a {
    color: var(--darker);
    text-decoration: none;
  }
  .contact-details a:hover {
    color: var(--brand-2);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  /* Inline icon sizing for {icon} output */
  .icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
  }

  /* Header collapses to the popover menu below the desktop breakpoint.
     Declared after the desktop rules so it reliably overrides them. */
  @media (max-width: 900px) {
    .header-actions {
      display: none;
    }
  }

  /* Interior page hero ------------------------------------------- */
  .page-hero {
    padding-block: var(--space-2xl) var(--space-xl);
    background: var(--white);
    border-bottom: var(--border) solid var(--light);
  }
  .page-hero h1 {
    margin: var(--space-sm) 0;
    max-width: 18ch;
  }
  .page-hero .lead {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: var(--text-lg);
    color: var(--dark);
    max-width: 46rem;
    margin: 0;
  }
  .page-hero-actions {
    margin-top: var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .page-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-xl);
    align-items: center;
  }
  .page-hero-media {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--light);
  }
  .page-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  @media (max-width: 860px) {
    .page-hero-split {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* Story / prose ----------------------------------------------- */
  .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
  }
  .story-lead {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: var(--text-lg);
    color: var(--darker);
    margin-top: 0;
  }
  .story-copy > p:first-child {
    margin-top: 0;
  }
  @media (max-width: 860px) {
    .story-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* Team -------------------------------------------------------- */
  .team-grid {
    margin-top: var(--space-xl);
  }
  .team-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
  }
  .team-photo {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--light);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xs);
  }
  .team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .team-role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-2);
    margin: 0;
  }
  .team-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin: 0;
  }
  .team-cred {
    color: var(--dark);
    margin: 0;
    font-size: var(--text-sm);
  }

  /* Services rows ----------------------------------------------- */
  .service-rows {
    border-top: var(--border) solid var(--light);
  }
  .service-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-md) var(--space-lg);
    align-items: baseline;
    padding-block: var(--space-lg);
    border-bottom: var(--border) solid var(--light);
  }
  .service-row .num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--brand-2);
  }
  .service-row h3 {
    margin: 0;
    font-size: var(--text-xl);
    max-width: none;
  }
  .service-row p {
    margin: var(--space-2xs) 0 0;
    color: var(--dark);
    max-width: 58ch;
  }
  .service-row .text-link {
    white-space: nowrap;
  }
  @media (max-width: 640px) {
    .service-row {
      grid-template-columns: auto minmax(0, 1fr);
    }
    .service-row .text-link {
      grid-column: 2;
    }
  }

  /* Contact ----------------------------------------------------- */
  .contact-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-xl);
    align-items: start;
  }
  @media (max-width: 820px) {
    .contact-split {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  .contact-panel {
    background: var(--white);
    border: var(--border) solid var(--light);
    border-radius: var(--rounded-lg);
    padding: var(--space-lg);
  }
  .form-note {
    font-size: var(--text-sm);
    color: var(--dark);
    border-left: 3px solid var(--brand-3);
    padding-left: var(--space-sm);
    margin-top: var(--space-sm);
  }
  .form-actions {
    margin-top: var(--space-md);
  }
  .consent-note {
    font-size: var(--text-sm);
    color: var(--dark);
    max-width: 34ch;
  }
  .form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
}
