/*
 * Vikin Homes — Main Stylesheet
 * Custom WordPress Theme
 *
 * Sections:
 *   01 — Variables & Resets
 *   02 — Base Typography
 *   03 — Layout Utilities
 *   04 — Accessibility
 *   05 — Buttons
 *   06 — Site Header & Navigation
 *   07 — Mobile Menu
 *   08 — Hero Slider
 *   09 — Intro Section
 *   10 — Services
 *   11 — Featured Projects
 *   12 — About Teaser
 *   13 — Process Section
 *   14 — Testimonial
 *   15 — CTA Section
 *   16 — Site Footer
 *   17 — Responsive (homepage / global)
 *
 * Inner pages (About, Process):
 *   18 — Editorial Banner (compact inner page hero)
 *   19 — Editorial Markers & Statements
 *   20 — About: Who We Are
 *   21 — Editorial Pull Quote
 *   22 — About: What We Do
 *   23 — Editorial Image Break
 *   24 — About: Why We Do It
 *   25 — About: Where to Buy
 *   26 — Editorial CTA (page close)
 *   27 — Process: Opening Intro
 *   28 — Process: Timeline (scroll-pinned rail)
 *   29 — Responsive: Editorial Pages
 *
 * Contact page:
 *   30 — Contact: Opening Intro + Live Time
 *   31 — Contact: Three Inquiry Paths
 *   32 — Contact: The Letter Form
 *   33 — Contact: Office + SVG Map
 *   34 — Contact: FAQ Accordion
 *   35 — Contact: What Happens Next
 *   36 — Responsive: Contact Page
 */


/* ============================================
   01 — VARIABLES & RESETS
   ============================================ */
:root {
    /* Brand colors */
    --teal: #5ea6a5;
    --teal-dark: #4a8a89;
    --teal-darker: #2f5b5a;
    --teal-light: #e8f1f1;
    --teal-pale: #f4f9f9;

    --ink: #1a1a1a;
    --ink-soft: #2c2c2c;
    --charcoal: #3d3d3d;
    --stone: #6b6b6b;
    --bone: #f5f3ee;
    --paper: #faf8f3;

    --line: rgba(26, 26, 26, 0.12);
    --line-soft: rgba(26, 26, 26, 0.06);

    /* Typography */
    --font-display: 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
    --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 40px;
    --space-6: 64px;
    --space-7: 96px;
    --space-8: 120px;

    /* Layout */
    --container-max: 1240px;
    --container-narrow: 880px;
    --header-height: 88px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.2, 0.8, 0.4, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   02 — BASE TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.15;
    font-weight: 400;
}

p { margin: 0; }

::selection {
    background: var(--teal);
    color: var(--paper);
}

/* ============================================
   03 — LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.section-label--light {
    color: var(--teal-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6.5vw, 88px);
    line-height: 0.95;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin-bottom: var(--space-5);
}

.section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

/* ============================================
   04 — ACCESSIBILITY
   ============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* Focus states for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================================
   05 — BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal);
    color: var(--paper);
}

.btn--primary:hover {
    background: var(--teal-darker);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 166, 165, 0.25);
}

.btn--secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn--secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    padding: 16px 0;
    border: none;
    position: relative;
}

.btn--ghost::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s var(--ease);
}

.btn--ghost:hover {
    color: var(--teal);
}

.btn--ghost:hover::after {
    transform: translateX(8px);
}

.btn--large {
    padding: 22px 44px;
    font-size: 13px;
}

/* ============================================
   06 — SITE HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(250, 248, 243, 0.98);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-header__logo img {
    height: 40px;
    width: auto;
    transition: opacity 0.2s var(--ease);
}

.site-header__logo:hover img {
    opacity: 0.75;
}

.site-nav__list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.site-nav__item a {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 8px 0;
    position: relative;
}

.site-nav__item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal);
    transition: width 0.3s var(--ease);
}

.site-nav__item a:hover::after,
.site-nav__item a[aria-current="page"]::after {
    width: 100%;
}

.site-nav__item--cta a {
    background: var(--teal);
    color: var(--paper);
    padding: 12px 22px;
    border-radius: 2px;
    transition: background 0.3s var(--ease);
}

.site-nav__item--cta a:hover {
    background: var(--teal-darker);
}

.site-nav__item--cta a::after {
    display: none;
}

/* ============================================
   07 — MOBILE MENU
   ============================================ */

/* Hamburger toggle — animates to X when menu is open */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    margin: -12px;
    position: relative;
    z-index: 250;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
}

.mobile-toggle__line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transform-origin: center;
    transition:
        transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.3s cubic-bezier(0.65, 0, 0.35, 1),
        background-color 0.3s var(--ease);
}

.mobile-toggle__line:nth-child(2) {
    width: 18px;
    align-self: flex-end;
    margin-right: 12px;
}

/* When menu is open, transform hamburger into an X */
.mobile-toggle[aria-expanded="true"] .mobile-toggle__line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .mobile-toggle__line:nth-child(2) {
    opacity: 0;
    transform: translateX(-12px);
}

.mobile-toggle[aria-expanded="true"] .mobile-toggle__line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu container — full-screen overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--paper);
    padding: 88px 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu[hidden] {
    display: flex;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Layered background reveal — wipes in from top */
.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--paper);
    transform: translateY(-100%);
    transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: -2;
}

.mobile-menu.is-open::before {
    transform: translateY(0);
}

/* Subtle teal accent that sweeps in second, behind the paper layer */
.mobile-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, var(--teal-pale) 0%, var(--paper) 60%);
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.08s;
    z-index: -1;
}

.mobile-menu.is-open::after {
    transform: translateY(0);
}

/* Close button — hidden by default since the hamburger morphs into X */
.mobile-menu__close {
    display: none;
}

/* Menu list */
.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    margin-bottom: auto;
}

.mobile-menu__list li {
    overflow: hidden;
    /* Subtle bottom border to add visual structure */
    border-bottom: 1px solid var(--line-soft);
}

.mobile-menu__list li:last-child {
    border-bottom: none;
}

/* Each link is wrapped in an overflow:hidden container.
   The link itself slides up from below, creating a curtain reveal. */
.mobile-menu__list a {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(40px, 9vw, 56px);
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1;
    padding: 18px 0;
    position: relative;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s var(--ease);
}

/* Stagger the links in, one after another, after the background lands */
.mobile-menu.is-open .mobile-menu__list a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.is-open .mobile-menu__list li:nth-child(1) a { transition-delay: 0.35s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) a { transition-delay: 0.40s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) a { transition-delay: 0.45s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) a { transition-delay: 0.50s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) a { transition-delay: 0.55s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) a { transition-delay: 0.60s; }

/* Small arrow indicator on each link, slides in on hover */
.mobile-menu__list a::after {
    content: '→';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) translateX(-12px);
    opacity: 0;
    color: var(--teal);
    font-size: 24px;
    transition:
        transform 0.4s var(--ease),
        opacity 0.3s var(--ease),
        color 0.3s var(--ease);
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
    color: var(--teal);
}

.mobile-menu__list a:hover::after,
.mobile-menu__list a:focus-visible::after {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* Footer — slides in last */
.mobile-menu__footer {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--stone);
    letter-spacing: 0.06em;
    transform: translateY(20px);
    opacity: 0;
    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s,
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
}

.mobile-menu.is-open .mobile-menu__footer {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu__footer p {
    margin: 4px 0;
}

.mobile-menu__footer a {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.mobile-menu__footer a:hover {
    color: var(--teal);
    border-color: var(--teal);
}

/* On close, reverse the stagger so items exit gracefully (top-to-bottom fade) */
.mobile-menu:not(.is-open) .mobile-menu__list a {
    transition-delay: 0s;
}

/* When closing, body still has the menu visible during the exit transition */
.mobile-menu.is-closing .mobile-menu__list a {
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu.is-closing .mobile-menu__list li:nth-child(1) a { transition-delay: 0s; }
.mobile-menu.is-closing .mobile-menu__list li:nth-child(2) a { transition-delay: 0.03s; }
.mobile-menu.is-closing .mobile-menu__list li:nth-child(3) a { transition-delay: 0.06s; }
.mobile-menu.is-closing .mobile-menu__list li:nth-child(4) a { transition-delay: 0.09s; }
.mobile-menu.is-closing .mobile-menu__list li:nth-child(5) a { transition-delay: 0.12s; }
.mobile-menu.is-closing .mobile-menu__list li:nth-child(6) a { transition-delay: 0.15s; }

.mobile-menu.is-closing::before,
.mobile-menu.is-closing::after {
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.2s;
}

.mobile-menu.is-closing .mobile-menu__footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
}

/* Respect reduced motion — instant transitions */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu::before,
    .mobile-menu::after,
    .mobile-menu__list a,
    .mobile-menu__footer {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* ============================================
   08 — HERO SLIDER
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: var(--ink);
}

.hero__swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: relative;
    width: 100%;
    height: 100%;
}

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

/* Subtle Ken Burns zoom on active slide */
.hero__slide.swiper-slide-active .hero__image {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    0%   { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.35) 0%,
        rgba(26, 26, 26, 0.85) 40%,
        rgba(26, 26, 26, 0.55) 100%
    );
}

.hero__content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    color: var(--paper);
    animation: heroFadeIn 1.2s var(--ease-out) 0.3s both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--teal);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(64px, 11vw, 130px);
    line-height: 0.88;
    letter-spacing: 0.005em;
    margin-bottom: 32px;
    color: var(--paper);
}

.hero__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal-light);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.5;
    font-weight: 300;
    max-width: 560px;
    color: rgba(245, 243, 238, 0.9);
    margin-bottom: 48px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero__actions .btn--ghost {
    color: var(--paper);
}

.hero__actions .btn--ghost:hover {
    color: var(--teal-light);
}

.hero__pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.hero__pagination .swiper-pagination-bullet {
    width: 32px;
    height: 2px;
    background: rgba(245, 243, 238, 0.4);
    border-radius: 0;
    opacity: 1;
    transition: background 0.3s var(--ease);
    cursor: pointer;
    margin: 0;
}

.hero__pagination .swiper-pagination-bullet-active {
    background: var(--paper);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--paper);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 600;
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 60px;
    background: rgba(245, 243, 238, 0.5);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 30px;
    background: var(--paper);
    animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ============================================
   09 — INTRO SECTION
   ============================================ */
.intro {
    padding: var(--space-8) 0;
    background: var(--paper);
    text-align: center;
}

.intro .section-label {
    justify-content: center;
}

.intro__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: 0.005em;
    margin-bottom: var(--space-5);
    color: var(--ink);
}

.intro__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

.intro__text {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.6;
    color: var(--charcoal);
    font-weight: 300;
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================
   10 — SERVICES
   ============================================ */
.services {
    padding: var(--space-8) 0;
    background: var(--bone);
}

.services__header {
    margin-bottom: var(--space-7);
    max-width: 640px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.service {
    padding: var(--space-5) 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.service__number {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--teal);
    letter-spacing: 0.16em;
    margin-bottom: var(--space-4);
}

.service__title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-3);
    color: var(--ink);
}

.service__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: var(--space-4);
    flex: 1;
}

.service__link {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    transition: color 0.2s var(--ease), gap 0.3s var(--ease);
}

.service__link:hover {
    color: var(--teal);
    gap: 14px;
}

/* ============================================
   11 — FEATURED PROJECTS
   ============================================ */
.projects {
    padding: var(--space-8) 0;
    background: var(--paper);
}

.projects__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-7);
    gap: 40px;
}

.projects__header .section-title {
    margin-bottom: 0;
}

.projects__view-all {
    flex-shrink: 0;
    padding-bottom: 12px;
}

.projects__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    min-height: 720px;
}

.project--large {
    grid-row: span 2;
}

.project {
    position: relative;
    overflow: hidden;
    background: var(--bone);
}

.project__link {
    display: block;
    position: relative;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.project__image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: var(--bone);
}

.project__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.project__link:hover .project__image {
    transform: scale(1.04);
}

.project__meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.7) 100%);
    color: var(--paper);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.project__link:hover .project__meta,
.project__link:focus-visible .project__meta {
    transform: translateY(0);
    opacity: 1;
}

.project__tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 8px;
}

.project__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: 0.02em;
    color: var(--paper);
    margin-bottom: 6px;
}

.project__location {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
    color: rgba(245, 243, 238, 0.85);
    font-weight: 300;
}

/* ============================================
   12 — ABOUT TEASER
   ============================================ */
.about-teaser {
    padding: var(--space-8) 0;
    background: var(--bone);
}

.about-teaser__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-teaser__image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.about-teaser__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.about-teaser__image:hover {
    transform: scale(1.03);
}

.about-teaser__content {
    max-width: 480px;
}

.about-teaser__text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal);
    font-weight: 300;
    margin-bottom: var(--space-4);
}

.about-teaser__text:last-of-type {
    margin-bottom: var(--space-5);
}

/* ============================================
   13 — PROCESS SECTION
   ============================================ */
.process {
    padding: var(--space-8) 0;
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--paper);
    position: relative;
}

.process__overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.92) 0%,
        rgba(47, 91, 90, 0.88) 100%
    );
    padding: var(--space-8) 0;
    margin: calc(var(--space-8) * -1) 0;
}

.process__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: 0.005em;
    color: var(--paper);
    margin-bottom: var(--space-7);
    max-width: 720px;
}

.process__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal-light);
    letter-spacing: -0.02em;
}

.process__steps {
    counter-reset: step;
    margin-bottom: var(--space-6);
}

.process__step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: var(--space-5) 0;
    border-top: 1px solid rgba(245, 243, 238, 0.15);
    align-items: start;
}

.process__step:last-child {
    border-bottom: 1px solid rgba(245, 243, 238, 0.15);
}

.process__step-num {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--teal-light);
    letter-spacing: 0.06em;
}

.process__step-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.02em;
    color: var(--paper);
    margin-bottom: 8px;
}

.process__step p {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(245, 243, 238, 0.8);
}

/* ============================================
   14 — TESTIMONIAL
   ============================================ */
.testimonial {
    padding: var(--space-8) 0;
    background: var(--paper);
    text-align: center;
}

.testimonial .section-label {
    justify-content: center;
}

.testimonial__figure {
    margin: 0;
    position: relative;
}

.testimonial__quote-mark {
    width: 56px;
    height: 48px;
    color: var(--teal);
    opacity: 0.4;
    margin: 0 auto var(--space-5);
}

.testimonial__quote {
    margin: 0 0 var(--space-5);
    padding: 0;
}

.testimonial__quote p {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.4;
    font-weight: 300;
    font-style: italic;
    color: var(--ink);
}

.testimonial__attribution {
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    display: inline-block;
    min-width: 280px;
}

.testimonial__name {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 4px;
}

.testimonial__project {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 600;
}

/* ============================================
   15 — CTA SECTION
   ============================================ */
.cta {
    padding: var(--space-8) 0;
    background: var(--bone);
    text-align: center;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin-bottom: var(--space-4);
}

.cta__text {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 300;
    color: var(--charcoal);
    max-width: 540px;
    margin: 0 auto var(--space-5);
}

/* ============================================
   16 — SITE FOOTER
   ============================================ */
.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding: var(--space-7) 0 var(--space-5);
}

.site-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid rgba(245, 243, 238, 0.12);
}

.site-footer__logo {
    height: 56px;
    width: auto;
    margin-bottom: var(--space-3);
}

.site-footer__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 17px;
    font-weight: 300;
    color: rgba(245, 243, 238, 0.7);
    max-width: 320px;
    line-height: 1.5;
}

.site-footer__heading {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: var(--space-4);
    font-weight: 400;
}

.site-footer__list li {
    margin-bottom: 12px;
}

.site-footer__list a {
    font-size: 14px;
    color: rgba(245, 243, 238, 0.75);
    transition: color 0.2s var(--ease);
}

.site-footer__list a:hover {
    color: var(--teal-light);
}

.site-footer__list--contact .site-footer__address {
    font-size: 14px;
    color: rgba(245, 243, 238, 0.75);
    line-height: 1.6;
    font-style: normal;
    margin-top: var(--space-3);
}

.site-footer__social {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(245, 243, 238, 0.75);
    transition: color 0.2s var(--ease);
}

.site-footer__social a:hover {
    color: var(--teal-light);
}

.site-footer__social svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(245, 243, 238, 0.4);
    letter-spacing: 0.04em;
}

.site-footer__copyright {
    margin: 0;
}

.site-footer__credit {
    margin: 0;
    font-family: var(--font-serif);
    font-style: italic;
}

/* ============================================
   17 — RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .services__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-teaser__grid {
        gap: 48px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .site-footer__brand {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-7: 64px;
        --space-8: 80px;
        --header-height: 72px;
    }

    .container {
        padding: 0 24px;
    }

    .site-header__inner {
        padding: 16px 24px;
        height: var(--header-height);
    }

    .site-header__logo img {
        height: 32px;
    }

    /* Hide desktop nav, show mobile toggle */
    .site-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 560px;
    }

    .hero__pagination {
        bottom: 24px;
    }

    .hero__scroll {
        display: none;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Projects */
    .projects__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .projects__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
        min-height: 0;
    }

    .project--large {
        grid-row: auto;
    }

    .project {
        aspect-ratio: 4/3;
    }

    .project__meta {
        opacity: 1;
        transform: translateY(0);
        padding: 24px;
    }

    /* About */
    .about-teaser__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-teaser__image-wrap {
        aspect-ratio: 4/5;
        max-width: 500px;
    }

    /* Process */
    .process {
        background-attachment: scroll;
    }

    .process__step {
        grid-template-columns: 60px 1fr;
        gap: 16px;
    }

    /* Footer */
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .site-footer__brand {
        grid-column: span 1;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .site-header__inner {
        padding: 14px 20px;
    }

    .mobile-menu {
        padding: 24px 24px 32px;
    }

    .mobile-menu__list a {
        font-size: 36px;
    }

    .btn {
        padding: 14px 26px;
        font-size: 11px;
    }

    .btn--large {
        padding: 18px 32px;
    }
}


/* ============================================
   18 — EDITORIAL BANNER (compact inner page hero)
   ============================================
   A magazine-style chapter opener. Compact, typography-only,
   no large hero image. Sits on the paper background.
*/
.editorial-banner {
    padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-5);
    background: var(--paper);
    position: relative;
}

.editorial-banner__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--space-5);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stone);
}

.editorial-banner__chapter {
    color: var(--teal);
}

.editorial-banner__rule {
    display: block;
    flex: 0 0 60px;
    height: 1px;
    background: var(--line);
}

.editorial-banner__category {
    color: var(--ink);
}

.editorial-banner__title {
    font-family: var(--font-display);
    font-size: clamp(64px, 9vw, 144px);
    line-height: 0.88;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: 0 0 var(--space-4);
}

.editorial-banner__lede {
    font-family: var(--font-serif);
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.5;
    font-weight: 300;
    color: var(--charcoal);
    max-width: 56ch;
}

.editorial-banner__lede span {
    color: var(--teal);
    font-style: italic;
}

.editorial-banner__divider {
    margin-top: var(--space-6);
    height: 1px;
    background: var(--line);
    width: calc(100% - 80px);
    margin-left: 40px;
    margin-right: 40px;
}


/* ============================================
   19 — EDITORIAL MARKERS & STATEMENTS
   ============================================
   Shared editorial typography utilities used across
   the About and Process pages.
*/

/* Small section markers (e.g. "01 / Who We Are") */
.ed-marker {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 var(--space-3);
    line-height: 1;
}

.ed-marker--centered {
    text-align: center;
}

/* Large editorial statements — display + italic accents */
.ed-statement {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.5vw, 80px);
    line-height: 0.98;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: 0;
}

.ed-statement em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

/* Reusable display section title (slightly smaller than ed-statement) */
.ed-section-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.0;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: 0;
}

.ed-section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}


/* ============================================
   20 — ABOUT: WHO WE ARE
   ============================================
   Asymmetric two-column with a small left margin
   for the marker, large statement, and body copy.
*/
.ed-who {
    padding: var(--space-8) 0;
    background: var(--paper);
}

.ed-who__grid {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 48px 40px;
    align-items: start;
}

.ed-who__aside {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.ed-who__lede {
    grid-column: 2;
    margin-bottom: var(--space-6);
}

.ed-who__body {
    grid-column: 2;
    max-width: 64ch;
}

.ed-who__body p {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--charcoal);
    margin: 0 0 var(--space-4);
}

.ed-who__body p:last-child {
    margin-bottom: 0;
}

/* Drop cap on the first paragraph — editorial touch */
.ed-drop {
    font-size: 19px !important;
    line-height: 1.7 !important;
    color: var(--ink) !important;
}

.ed-drop__cap {
    font-family: var(--font-display);
    font-size: 84px;
    line-height: 0.9;
    float: left;
    margin: 4px 16px 0 -2px;
    color: var(--teal);
    font-weight: 400;
}


/* ============================================
   21 — EDITORIAL PULL QUOTE
   ============================================
   Centered, large, italic, with smart quote glyphs.
*/
.ed-pullquote {
    padding: var(--space-7) 0;
    background: var(--paper);
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ed-pullquote__figure {
    margin: 0;
}

.ed-pullquote blockquote {
    margin: 0;
    padding: 0;
}

.ed-pullquote blockquote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.3;
    color: var(--ink);
    margin: 0;
    position: relative;
}

.ed-pullquote__open,
.ed-pullquote__close {
    color: var(--teal);
    font-style: normal;
    font-family: var(--font-serif);
}

.ed-pullquote__caption {
    margin-top: var(--space-5);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 600;
}


/* ============================================
   22 — ABOUT: WHAT WE DO
   ============================================
   Editorial index — numbered rows with grid layout.
   No images. Pure typography.
*/
.ed-what {
    padding: var(--space-8) 0;
    background: var(--paper);
}

.ed-what__header {
    margin-bottom: var(--space-7);
    max-width: 720px;
}

.ed-what__header .ed-marker {
    margin-bottom: var(--space-3);
}

.ed-what__list {
    display: flex;
    flex-direction: column;
}

.ed-what-row {
    display: grid;
    grid-template-columns: 100px 1fr 2fr auto;
    gap: 40px;
    align-items: baseline;
    padding: var(--space-5) 0;
    border-top: 1px solid var(--line);
    transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}

.ed-what-row:last-child {
    border-bottom: 1px solid var(--line);
}

.ed-what-row:hover {
    background: var(--bone);
    padding-left: 24px;
}

.ed-what-row__num {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.5vw, 48px);
    letter-spacing: 0.04em;
    color: var(--teal);
    line-height: 1;
}

.ed-what-row__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0;
    line-height: 1;
}

.ed-what-row__desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    margin: 0;
}

.ed-what-row__tag {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--stone);
    white-space: nowrap;
    padding-left: 24px;
    border-left: 1px solid var(--line);
}


/* ============================================
   23 — EDITORIAL IMAGE BREAK
   ============================================
   Single asymmetric image with a quiet caption.
   Acts as a visual rest between typography sections.
*/
.ed-image {
    padding: var(--space-7) 0;
    background: var(--paper);
}

.ed-image__grid {
    display: grid;
    grid-template-columns: 1fr 5fr 2fr;
    gap: 40px;
    align-items: end;
}

.ed-image__figure {
    grid-column: 2;
    margin: 0;
}

.ed-image__figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.ed-image__caption {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.5;
    color: var(--stone);
}

.ed-image__caption-label {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--teal);
}


/* ============================================
   24 — ABOUT: WHY WE DO IT
   ============================================
   The centerpiece. Generous spacing, large headline,
   numbered roman-numeral principles.
*/
.ed-why {
    padding: var(--space-8) 0;
    background: var(--paper);
}

.ed-why__header {
    margin-bottom: var(--space-5);
}

.ed-why__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 112px);
    line-height: 0.95;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: 0 0 var(--space-7);
    max-width: 16ch;
}

.ed-why__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

.ed-why__body {
    max-width: 64ch;
    margin-bottom: var(--space-8);
}

.ed-why__lede {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.5;
    font-weight: 300;
    color: var(--charcoal);
    margin: 0;
}

.ed-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin: 0;
    padding: var(--space-6) 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.ed-principle__num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--teal);
    margin: 0 0 var(--space-3);
    letter-spacing: 0.08em;
}

.ed-principle__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 2.8vw, 36px);
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0 0 var(--space-3);
    line-height: 1.05;
}

.ed-principle__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

.ed-principle__text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal);
    margin: 0;
}


/* ============================================
   25 — ABOUT: WHERE TO BUY (interactive showcase)
   ============================================
   Sticky image stack (crossfade between neighborhoods)
   + clickable list with auto-advancing progress bar.
*/
.ed-where {
    padding: var(--space-8) 0;
    background: var(--bone);
}

.ed-where__header {
    max-width: 720px;
    margin-bottom: var(--space-7);
}

.ed-where__header .ed-section-title {
    margin: var(--space-3) 0 var(--space-4);
}

.ed-where__intro {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--charcoal);
    margin: 0;
}

.ed-where__grid {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 80px;
    align-items: start;
}

/* ===== Image side ===== */
.ed-where__image {
    margin: 0;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

/* Stack holds all four slides, layered on top of each other */
.ed-where__image-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--ink);
}

.ed-where__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.ed-where__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Subtle Ken Burns drift on the active slide */
    transform: scale(1);
    transition: transform 7s linear;
}

.ed-where__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.ed-where__slide.is-active img {
    transform: scale(1.05);
}

/* Caption — shows the active neighborhood label */
.ed-where__caption {
    margin-top: var(--space-3);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--stone);
    min-height: 1.5em;
    position: relative;
}

.ed-where__caption-text {
    transition: opacity 0.4s var(--ease);
}

.ed-where__caption-text[hidden] {
    display: none;
}

/* ===== List side (clickable rows) ===== */
.ed-where__list {
    display: flex;
    flex-direction: column;
}

/* Rows are now <button> elements — reset native button styling */
.ed-where-row {
    appearance: none;
    background: transparent;
    border: none;
    border-top: 1px solid var(--line);
    width: 100%;
    text-align: left;
    padding: var(--space-4) 0;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    position: relative;
    transition:
        padding-left 0.4s var(--ease),
        opacity 0.3s var(--ease);
}

.ed-where-row:last-of-type {
    border-bottom: 1px solid var(--line);
}

.ed-where-row:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Inactive rows are muted by default */
.ed-where-row:not(.is-active) {
    opacity: 0.55;
}

.ed-where-row:hover {
    opacity: 0.85;
    padding-left: 12px;
}

.ed-where-row.is-active {
    opacity: 1;
    padding-left: 16px;
}

/* Primary row has a larger vertical padding */
.ed-where-row--primary {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}

.ed-where-row h3 {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.4vw, 36px);
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0 0 var(--space-2);
    line-height: 1;
    transition: color 0.3s var(--ease);
}

/* Active row title goes teal */
.ed-where-row.is-active h3 {
    color: var(--teal);
}

.ed-where-row--primary h3 {
    font-size: clamp(36px, 3.5vw, 52px);
}

.ed-where-row p {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 300;
    font-style: italic;
    color: var(--charcoal);
    margin: 0;
}

.ed-where-row--primary p {
    font-size: 15px;
    font-style: normal;
    letter-spacing: 0.04em;
    color: var(--stone);
    text-transform: uppercase;
    font-weight: 600;
    font-family: var(--font-body);
}

/* ===== Progress bar (only visible on active row) ===== */
.ed-where-row__progress {
    position: absolute;
    bottom: -1px; /* sits over the border-top of the next row */
    left: 0;
    right: 0;
    height: 1px;
    background: transparent;
    overflow: hidden;
    pointer-events: none;
}

.ed-where-row__progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--teal);
    transition: width linear;
}

/* When active, the progress fill animates to 100% over the cycle duration.
   The JS sets the transition-duration based on AUTO_ADVANCE_MS. */
.ed-where-row.is-active .ed-where-row__progress {
    background: rgba(94, 166, 165, 0.08);
}

.ed-where-row.is-active .ed-where-row__progress-fill {
    width: 100%;
}

/* When paused (user is hovering the showcase), freeze the fill in place */
.ed-where__grid.is-paused .ed-where-row.is-active .ed-where-row__progress-fill {
    transition: none;
}

.ed-where__footnote {
    margin-top: var(--space-5);
    font-family: var(--font-serif);
    font-size: 16px;
    font-style: italic;
    font-weight: 300;
    color: var(--stone);
}

.ed-where__footnote a {
    color: var(--teal);
    border-bottom: 1px solid var(--teal);
    transition: color 0.2s var(--ease);
}

.ed-where__footnote a:hover {
    color: var(--teal-darker);
}


/* ============================================
   26 — EDITORIAL CTA (close of page)
   ============================================ */
.ed-cta {
    padding: var(--space-8) 0;
    background: var(--paper);
    text-align: center;
    border-top: 1px solid var(--line);
}

.ed-cta__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: var(--space-4) 0 var(--space-5);
}


/* ============================================
   27 — PROCESS: OPENING INTRO
   ============================================ */
.proc-intro {
    padding: var(--space-7) 0 var(--space-8);
    background: var(--paper);
}

.proc-intro__grid {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 40px;
    align-items: start;
}

.proc-intro__aside {
    grid-column: 1;
}

.proc-intro__body {
    grid-column: 2;
    max-width: 64ch;
}

.proc-intro__text {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--charcoal);
    margin: var(--space-5) 0 0;
}


/* ============================================
   28 — PROCESS: TIMELINE (scroll-pinned rail)
   ============================================
   Layout: a sticky left rail with 4 phase markers
   and a vertical progress line that "fills" with teal
   as the user scrolls. Phases on the right reveal
   in sequence as they enter the viewport.
*/

.timeline {
    background: var(--paper);
    padding: var(--space-6) 0 var(--space-8);
    border-top: 1px solid var(--line);
    position: relative;
}

.timeline__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

/* ===== Sticky rail ===== */
.timeline__rail {
    position: sticky;
    /* Pin below the fixed site header */
    top: calc(var(--header-height) + 48px);
    align-self: start;
    /* Constrain rail height so it doesn't grow tall on long viewports */
    height: calc(100vh - var(--header-height) - 96px);
    max-height: 520px;
    display: flex;
    align-items: center;
}

.timeline__rail-inner {
    position: relative;
    width: 100%;
}

.timeline__rail-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 var(--space-5);
    padding-left: 36px;
}

.timeline__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* The progress line — runs vertically behind the markers */
.timeline__progress {
    position: absolute;
    top: 48px;
    bottom: 12px;
    left: 11px;
    width: 1px;
    background: var(--line);
    overflow: hidden;
    pointer-events: none;
}

.timeline__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--teal);
    transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Marker buttons */
.timeline__nav li {
    margin-bottom: 36px;
    position: relative;
}

.timeline__nav li:last-child {
    margin-bottom: 0;
}

.timeline__marker {
    display: grid;
    grid-template-columns: 24px auto auto;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    color: var(--stone);
    transition: color 0.3s var(--ease);
    width: 100%;
}

.timeline__marker:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 6px;
    border-radius: 2px;
}

/* The dot — small circle that scales/fills on active */
.timeline__marker-dot {
    width: 11px;
    height: 11px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    transition:
        background 0.4s var(--ease),
        border-color 0.4s var(--ease),
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
    position: relative;
    z-index: 1;
}

/* Phase number — display font */
.timeline__marker-num {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--stone);
    transition: color 0.3s var(--ease);
}

/* Phase short label */
.timeline__marker-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    transition: color 0.3s var(--ease);
}

/* Hover state */
.timeline__marker:hover .timeline__marker-dot {
    border-color: var(--teal);
    transform: scale(1.15);
}

.timeline__marker:hover .timeline__marker-num,
.timeline__marker:hover .timeline__marker-label {
    color: var(--ink);
}

/* Active state — the dot fills with teal, text goes ink */
.timeline__marker.is-active .timeline__marker-dot {
    background: var(--teal);
    border-color: var(--teal);
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(94, 166, 165, 0.15);
}

.timeline__marker.is-active .timeline__marker-num {
    color: var(--teal);
}

.timeline__marker.is-active .timeline__marker-label {
    color: var(--ink);
}

/* Completed (past) state — solid teal dot, no ring */
.timeline__marker.is-complete .timeline__marker-dot {
    background: var(--teal);
    border-color: var(--teal);
}

.timeline__marker.is-complete .timeline__marker-num {
    color: var(--teal);
}

/* ===== Phases (right column) ===== */
.timeline__phases {
    position: relative;
}

.t-phase {
    position: relative;
    /* Each phase is at least a viewport tall so the rail tracks meaningfully */
    min-height: 90vh;
    padding: var(--space-6) 0 var(--space-8);
    display: flex;
    align-items: center;
    /* Initial state — content invisible & slightly offset, transitions on reveal */
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.t-phase.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Massive outlined background numeral */
.t-phase__bignum {
    position: absolute;
    top: 50%;
    right: -2vw;
    transform: translateY(-50%) translateX(20px);
    font-family: var(--font-display);
    font-size: clamp(280px, 36vw, 520px);
    line-height: 0.82;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line);
    text-stroke: 1px var(--line);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    transition:
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        -webkit-text-stroke-color 0.8s var(--ease);
}

/* When phase becomes active, the big number slides into place and brightens */
.t-phase.is-visible .t-phase__bignum {
    transform: translateY(-50%) translateX(0);
    -webkit-text-stroke-color: rgba(94, 166, 165, 0.3);
}

.t-phase__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

/* Stagger children — each child fades up after its parent reveals */
.t-phase > .t-phase__inner > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.t-phase.is-visible > .t-phase__inner > * {
    opacity: 1;
    transform: translateY(0);
}

.t-phase.is-visible > .t-phase__inner > *:nth-child(1) { transition-delay: 0.1s; }
.t-phase.is-visible > .t-phase__inner > *:nth-child(2) { transition-delay: 0.18s; }
.t-phase.is-visible > .t-phase__inner > *:nth-child(3) { transition-delay: 0.26s; }
.t-phase.is-visible > .t-phase__inner > *:nth-child(4) { transition-delay: 0.34s; }
.t-phase.is-visible > .t-phase__inner > *:nth-child(5) { transition-delay: 0.42s; }

.t-phase__title {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 112px);
    line-height: 0.92;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: var(--space-3) 0 var(--space-4);
}

.t-phase__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

.t-phase__deck {
    font-family: var(--font-serif);
    font-size: clamp(19px, 1.8vw, 24px);
    line-height: 1.5;
    font-weight: 300;
    color: var(--charcoal);
    margin: 0 0 var(--space-6);
    max-width: 56ch;
}

.t-phase__points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.t-phase__points li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 24px;
    padding: var(--space-4) 0;
    border-top: 1px solid var(--line);
}

.t-phase__points li:last-child {
    border-bottom: 1px solid var(--line);
}

.t-phase__point-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--teal);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.t-phase__points h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0 0 var(--space-2);
    line-height: 1.05;
}

.t-phase__points p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    margin: 0;
}

.t-phase__points em {
    font-style: italic;
    color: var(--teal);
}

.t-phase__cta {
    margin-top: var(--space-5);
}


/* ============================================
   29 — RESPONSIVE: EDITORIAL PAGES
   ============================================ */
@media (max-width: 1024px) {
    .editorial-banner {
        padding: calc(var(--header-height) + 40px) 0 32px;
    }
    .editorial-banner__divider {
        margin-top: 40px;
        margin-left: 24px;
        margin-right: 24px;
        width: calc(100% - 48px);
    }
    .ed-who__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ed-who__aside {
        grid-column: 1;
        grid-row: 1;
        position: static;
    }
    .ed-who__lede {
        grid-column: 1;
        margin-bottom: var(--space-4);
    }
    .ed-who__body {
        grid-column: 1;
    }
    .ed-what-row {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px 24px;
    }
    .ed-what-row__num {
        grid-column: 1;
        grid-row: 1 / span 3;
    }
    .ed-what-row__title {
        grid-column: 2;
    }
    .ed-what-row__desc {
        grid-column: 2;
    }
    .ed-what-row__tag {
        grid-column: 2;
        padding-left: 0;
        border-left: none;
        margin-top: 8px;
    }
    .ed-image__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ed-image__figure,
    .ed-image__caption {
        grid-column: 1;
    }
    .ed-principles {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ed-where__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ed-where__image {
        position: static;
        max-width: 600px;
    }
    .ed-where__image img {
        aspect-ratio: 16/10;
    }
    .proc-intro__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .proc-intro__aside {
        grid-column: 1;
    }
    .proc-intro__body {
        grid-column: 1;
    }
    /* Timeline becomes a stacked layout on tablet/mobile */
    .timeline__container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 32px;
    }
    .timeline__rail {
        display: none;
    }
    .t-phase {
        min-height: 0;
        padding: var(--space-6) 0;
        border-top: 1px solid var(--line);
        /* Always visible on mobile — fade-in still occurs via observer */
        opacity: 1;
        transform: none;
    }
    .t-phase:first-child {
        border-top: none;
    }
    .t-phase.is-visible {
        opacity: 1;
        transform: none;
    }
    .t-phase__bignum {
        font-size: clamp(200px, 50vw, 360px);
        right: -10vw;
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .editorial-banner {
        padding: calc(var(--header-height) + 32px) 0 24px;
    }
    .editorial-banner__meta {
        gap: 12px;
        font-size: 10px;
    }
    .editorial-banner__rule {
        flex: 0 0 40px;
    }
    .ed-drop__cap {
        font-size: 64px;
        margin: 2px 12px 0 -2px;
    }
    .ed-pullquote {
        padding: var(--space-6) 0;
    }
    .ed-what-row {
        padding: var(--space-4) 0;
    }
    .ed-what-row:hover {
        padding-left: 12px;
    }
    .ed-where-row--primary p {
        font-size: 13px;
    }
    .timeline__container {
        padding: 0 24px;
    }
    .t-phase__points li {
        grid-template-columns: 32px 1fr;
        gap: 12px;
        padding: var(--space-4) 0;
    }
    .t-phase__point-num {
        font-size: 16px;
    }
    .t-phase__bignum {
        font-size: clamp(160px, 60vw, 280px);
        right: -14vw;
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .editorial-banner__category {
        display: none;
    }
}

/* Respect reduced motion — no fade/slide, just instant */
@media (prefers-reduced-motion: reduce) {
    .t-phase,
    .t-phase > .t-phase__inner > *,
    .t-phase__bignum,
    .timeline__progress-fill,
    .timeline__marker-dot,
    .timeline__marker-num,
    .timeline__marker-label {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .t-phase {
        opacity: 1;
        transform: none;
    }

    .t-phase > .t-phase__inner > * {
        opacity: 1;
        transform: none;
    }
}


/* ============================================
   30 — CONTACT: OPENING INTRO + LIVE TIME
   ============================================ */
.contact-intro {
    padding: var(--space-7) 0 var(--space-8);
    background: var(--paper);
}

.contact-intro__grid {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 80px;
    align-items: start;
}

.contact-intro__aside {
    grid-column: 1;
}

.contact-intro__time {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    font-family: var(--font-body);
}

.contact-intro__time-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 0 0 var(--space-2);
}

.contact-intro__time-value {
    font-family: var(--font-display);
    font-size: clamp(40px, 4vw, 56px);
    color: var(--teal);
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.contact-intro__time-meta {
    margin: var(--space-2) 0 0;
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--stone);
    font-style: italic;
    font-weight: 300;
}

.contact-intro__time-meta span {
    color: var(--ink);
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 500;
}

.contact-intro__body {
    grid-column: 2;
    max-width: 56ch;
}

.contact-intro__text {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--charcoal);
    margin: var(--space-5) 0 0;
}


/* ============================================
   31 — CONTACT: THREE INQUIRY PATHS
   ============================================ */
.paths {
    padding: var(--space-7) 0 var(--space-8);
    background: var(--bone);
}

.paths__header {
    max-width: 720px;
    margin-bottom: var(--space-6);
}

.paths__header .ed-section-title {
    margin: var(--space-3) 0 0;
}

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

.path {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: var(--space-5) 0;
    border-top: 1px solid var(--line);
    transition: padding-left 0.4s var(--ease);
}

.path:last-child {
    border-bottom: 1px solid var(--line);
}

.path:hover {
    padding-left: 16px;
}

.path__num-wrap {
    display: flex;
    align-items: flex-start;
}

.path__num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(32px, 3vw, 44px);
    color: var(--teal);
    line-height: 0.9;
    letter-spacing: 0.04em;
}

.path__content {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.path__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0;
    line-height: 1;
}

.path__desc {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--charcoal);
    margin: 0;
}

.path__link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    text-align: right;
    transition: color 0.25s var(--ease), gap 0.3s var(--ease);
    word-break: break-all;
}

.path__link:hover {
    color: var(--teal);
    gap: 16px;
}

.path__arrow {
    color: var(--teal);
    font-size: 16px;
}


/* ============================================
   32 — CONTACT: THE LETTER FORM
   ============================================
   Designed to feel like writing a letter on
   high-quality stationery. Inline labels read
   as prose ("My name is" / "you can reach me at"),
   inputs have an underline-only style, and a
   meta-aside on the right shows postmark info.
*/
.letter {
    padding: var(--space-8) 0;
    background: var(--paper);
}

.letter__header {
    max-width: 720px;
    margin-bottom: var(--space-7);
}

.letter__header .ed-section-title {
    margin: var(--space-3) 0 var(--space-4);
}

.letter__deck {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--charcoal);
    margin: 0;
}

.letter-form {
    position: relative;
}

.letter-form__row {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: 60px;
    align-items: start;
}

/* The "paper" — main form container */
.letter-form__paper {
    background: #fffefb;
    padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 72px);
    border: 1px solid var(--line);
    position: relative;
    /* Subtle paper texture using a fine background */
    background-image:
        linear-gradient(rgba(94, 166, 165, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 166, 165, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    box-shadow:
        0 1px 2px rgba(26, 26, 26, 0.02),
        0 8px 24px rgba(26, 26, 26, 0.04);
}

.letter-form__salutation,
.letter-form__signoff {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.4vw, 30px);
    font-style: italic;
    font-weight: 300;
    color: var(--ink);
    margin: 0 0 var(--space-5);
    line-height: 1;
}

.letter-form__signoff {
    margin: var(--space-6) 0 var(--space-4);
}

/* Inline fields — label + input read as prose */
.letter-form__field {
    margin-bottom: var(--space-4);
}

.letter-form__field--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 8px;
}

.letter-form__field--inline label {
    font-family: var(--font-serif);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: 0;
    flex-shrink: 0;
}

.letter-form__field--inline input,
.letter-form__field--inline select {
    flex: 1;
    min-width: 200px;
    border: none;
    border-bottom: 1px dashed var(--line);
    background: transparent;
    padding: 6px 4px;
    font-family: var(--font-serif);
    font-size: clamp(18px, 1.6vw, 22px);
    color: var(--ink);
    font-style: italic;
    font-weight: 300;
    transition: border-color 0.25s var(--ease);
    outline: none;
}

.letter-form__field--inline input::placeholder,
.letter-form__field--inline select option[disabled] {
    color: var(--stone);
    opacity: 0.6;
}

.letter-form__field--inline input:focus,
.letter-form__field--inline select:focus {
    border-bottom-color: var(--teal);
    border-bottom-style: solid;
}

.letter-form__field--inline input:valid:not(:placeholder-shown),
.letter-form__field--inline select:valid {
    border-bottom-style: solid;
    border-bottom-color: var(--ink);
    color: var(--ink);
    font-style: normal;
}

/* Style the native select dropdown */
.letter-form__field--inline select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%236b6b6b' stroke-width='1.2'><path d='M3 5l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
    cursor: pointer;
}

/* Block-level field — for the longer message */
.letter-form__field--block {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px dashed var(--line);
}

.letter-form__field--block label {
    display: block;
    margin-bottom: var(--space-3);
    font-family: var(--font-serif);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 300;
    font-style: italic;
    color: var(--charcoal);
}

.letter-form__field--block textarea {
    width: 100%;
    min-height: 160px;
    border: none;
    background: transparent;
    padding: 0;
    font-family: var(--font-serif);
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--ink);
    line-height: 1.7;
    font-weight: 300;
    resize: vertical;
    outline: none;
    /* Lined paper effect for the message area */
    background-image: linear-gradient(transparent calc(1.7em - 1px), var(--line) calc(1.7em - 1px), var(--line) 1.7em, transparent 1.7em);
    background-size: 100% 1.7em;
    background-position: 0 0.7em;
    line-height: 2.1em;
}

.letter-form__field--block textarea::placeholder {
    color: var(--stone);
    font-style: italic;
    opacity: 0.7;
}

/* Signature field */
.letter-form__field--signature {
    margin-top: var(--space-3);
    max-width: 320px;
    position: relative;
}

.letter-form__field--signature input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 4px 4px 8px;
    font-family: 'Fraunces', cursive;
    font-style: italic;
    font-size: clamp(20px, 2vw, 26px);
    color: var(--ink);
    font-weight: 400;
    outline: none;
}

.letter-form__field--signature input::placeholder {
    color: var(--stone);
    opacity: 0.5;
    font-size: 14px;
}

.letter-form__signature-line {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
}

/* Meta column — looks like postmark/envelope info */
.letter-form__meta {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    padding: var(--space-5);
    background: var(--bone);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.letter-form__meta-block {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--line);
}

.letter-form__meta-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.letter-form__meta-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 var(--space-2);
}

.letter-form__meta-value {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--ink);
    margin: 0;
    font-weight: 300;
    line-height: 1.5;
}

.letter-form__meta-value span {
    color: var(--teal);
    font-style: italic;
    font-weight: 400;
}

/* Submit row */
.letter-form__submit-row {
    margin-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.letter-form__disclaimer {
    font-family: var(--font-serif);
    font-size: 14px;
    font-style: italic;
    font-weight: 300;
    color: var(--stone);
    margin: 0;
    max-width: 400px;
}

.letter-form__submit {
    min-width: 220px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.letter-form__submit-text,
.letter-form__submit-sending {
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.letter-form__submit-sending {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
}

/* When submit is in-progress, fade out the text and fade in "Sending" */
.letter-form.is-sending .letter-form__submit {
    pointer-events: none;
}

.letter-form.is-sending .letter-form__submit-text {
    opacity: 0;
    transform: translateY(-8px);
}

.letter-form.is-sending .letter-form__submit-sending {
    opacity: 1;
    transform: translateY(0);
    animation: sendingDots 1.4s infinite;
}

@keyframes sendingDots {
    0%, 20%   { content: 'Sending'; }
    40%       { content: 'Sending.'; }
    60%       { content: 'Sending..'; }
    80%, 100% { content: 'Sending...'; }
}

.letter-form__submit-sending::after {
    content: '';
    display: inline-block;
    width: 24px;
    text-align: left;
    animation: dots 1.4s steps(4, jump-none) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* Success state — replaces the form */
.letter-success {
    text-align: center;
    padding: var(--space-7) 0;
    animation: successFade 0.8s var(--ease-out) both;
}

@keyframes successFade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.letter-success__inner {
    max-width: 600px;
    margin: 0 auto;
}

.letter-success__mark {
    display: inline-block;
    width: 80px;
    height: 80px;
    color: var(--teal);
    margin-bottom: var(--space-5);
    animation: checkDraw 1.2s var(--ease-out) 0.2s both;
}

@keyframes checkDraw {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.letter-success__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    color: var(--ink);
    margin: var(--space-3) 0 var(--space-4);
}

.letter-success__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
}

.letter-success__text {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.6;
    color: var(--charcoal);
    font-weight: 300;
    margin: 0 0 var(--space-4);
}

.letter-success__signature {
    font-family: 'Fraunces', cursive;
    font-style: italic;
    font-size: 22px;
    color: var(--teal);
    margin: var(--space-4) 0 0;
}


/* ============================================
   33 — CONTACT: OFFICE + SVG MAP
   ============================================ */
.office {
    padding: var(--space-8) 0;
    background: var(--bone);
}

.office__header {
    max-width: 720px;
    margin-bottom: var(--space-7);
}

.office__header .ed-section-title {
    margin: var(--space-3) 0 0;
}

.office__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    align-items: start;
}

.office__map {
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 24px;
}

.tampa-map {
    width: 100%;
    height: auto;
    display: block;
}

/* Subtle pulse animation on the map pin */
.tampa-map .map-pin circle:first-child {
    transform-origin: 0 0;
    animation: pinPulse 3s ease-in-out infinite;
}

@keyframes pinPulse {
    0%, 100% { opacity: 0.08; r: 32; }
    50%      { opacity: 0.15; r: 38; }
}

.office__map-caption {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    text-align: center;
}

.office__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.office__block {
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);
}

.office__block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.office__block-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 var(--space-3);
}

.office__address {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    letter-spacing: 0.02em;
    color: var(--ink);
    font-style: normal;
    line-height: 1.3;
    margin-bottom: var(--space-3);
    display: flex;
    flex-direction: column;
}

.office__map-link {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.office__map-link:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.office__hours {
    list-style: none;
    margin: 0;
    padding: 0;
}

.office__hours li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--line);
    font-family: var(--font-body);
    font-size: 14px;
}

.office__hours li:first-child {
    border-top: none;
    padding-top: 0;
}

.office__hours li:last-child {
    padding-bottom: 0;
}

.office__hours li span:first-child {
    color: var(--ink);
    font-weight: 500;
}

.office__hours li span:last-child {
    color: var(--stone);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
}

.office__visit-text {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--charcoal);
    margin: 0 0 var(--space-3);
}

.office__phone {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 36px);
    color: var(--teal);
    letter-spacing: 0.04em;
    transition: color 0.25s var(--ease);
}

.office__phone:hover {
    color: var(--teal-darker);
}


/* ============================================
   34 — CONTACT: FAQ ACCORDION
   ============================================ */
.faq {
    padding: var(--space-8) 0;
    background: var(--paper);
}

.faq__header {
    max-width: 720px;
    margin-bottom: var(--space-6);
}

.faq__header .ed-section-title {
    margin: var(--space-3) 0 0;
}

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

.faq-item {
    border-top: 1px solid var(--line);
    transition: background 0.3s var(--ease);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-item[open] {
    background: var(--bone);
}

/* Remove the default disclosure triangle */
.faq-item__summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: 24px;
    align-items: center;
    padding: var(--space-5) 0;
    transition: padding-left 0.3s var(--ease);
}

.faq-item[open] .faq-item__summary {
    padding-left: 24px;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__summary:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: -4px;
}

.faq-item__num {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.6vw, 22px);
    color: var(--teal);
    letter-spacing: 0.06em;
    line-height: 1;
}

.faq-item__q {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1.15;
}

/* The expand/collapse icon — a custom + that morphs to × */
.faq-item__icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: block;
    justify-self: end;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--ink);
    transition:
        transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
        background-color 0.3s var(--ease);
}

.faq-item__icon::before {
    /* horizontal bar */
    width: 20px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.faq-item__icon::after {
    /* vertical bar */
    width: 1.5px;
    height: 20px;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item[open] .faq-item__icon::before {
    background: var(--teal);
}

.faq-item__body {
    padding: 0 24px var(--space-5) 108px;
    max-width: 70ch;
    animation: faqOpen 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-item__body p {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.7;
    color: var(--charcoal);
    font-weight: 300;
    margin: 0;
}


/* ============================================
   35 — CONTACT: WHAT HAPPENS NEXT
   ============================================ */
.next {
    padding: var(--space-8) 0;
    background: var(--bone);
    text-align: center;
    border-top: 1px solid var(--line);
}

.next__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.5vw, 80px);
    line-height: 1;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: var(--space-4) 0 var(--space-5);
}

.next__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

.next__text {
    font-family: var(--font-serif);
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.6;
    font-weight: 300;
    color: var(--charcoal);
    margin: 0 auto var(--space-5);
    max-width: 560px;
}

.next__signature {
    font-family: 'Fraunces', cursive;
    font-style: italic;
    font-size: clamp(22px, 2.2vw, 28px);
    color: var(--teal);
    margin: var(--space-5) 0 0;
    font-weight: 400;
}


/* ============================================
   36 — RESPONSIVE: CONTACT PAGE
   ============================================ */
@media (max-width: 1024px) {
    .contact-intro__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-intro__aside,
    .contact-intro__body {
        grid-column: 1;
    }
    .contact-intro__time {
        margin-top: var(--space-4);
    }

    .path__content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .path__link {
        justify-self: start;
        text-align: left;
    }

    .letter-form__row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .letter-form__meta {
        position: static;
        order: 2;
        flex-direction: row;
        gap: var(--space-4);
        flex-wrap: wrap;
    }
    .letter-form__meta-block {
        flex: 1;
        min-width: 180px;
        padding-bottom: 0;
        border-bottom: none;
        border-right: 1px solid var(--line);
        padding-right: var(--space-4);
    }
    .letter-form__meta-block:last-child {
        border-right: none;
    }

    .office__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .path {
        grid-template-columns: 60px 1fr;
        gap: 16px;
        padding: var(--space-4) 0;
    }
    .path:hover {
        padding-left: 8px;
    }

    .letter-form__paper {
        padding: 32px 24px;
    }
    .letter-form__field--inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .letter-form__field--inline input,
    .letter-form__field--inline select {
        width: 100%;
        min-width: 0;
    }

    .letter-form__submit-row {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 24px;
    }
    .letter-form__submit {
        width: 100%;
    }
    .letter-form__disclaimer {
        text-align: center;
        max-width: none;
    }

    .letter-form__meta {
        flex-direction: column;
        gap: var(--space-4);
    }
    .letter-form__meta-block {
        flex: none;
        width: 100%;
        padding-bottom: var(--space-4);
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .letter-form__meta-block:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .faq-item__summary {
        grid-template-columns: 40px 1fr 28px;
        gap: 12px;
        padding: var(--space-4) 0;
    }
    .faq-item[open] .faq-item__summary {
        padding-left: 12px;
    }
    .faq-item__body {
        padding: 0 12px var(--space-4) 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tampa-map .map-pin circle:first-child,
    .letter-success__mark,
    .letter-success,
    .faq-item__body,
    .faq-item__icon,
    .faq-item__icon::before,
    .faq-item__icon::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   38 — PORTFOLIO GRID
   ============================================ */
.portfolio {
    padding: var(--space-7) 0 var(--space-8);
    background: var(--paper);
}

.portfolio__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--line);
}

.portfolio__count {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
}

.portfolio__count span {
    color: var(--teal);
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.04em;
    margin-right: 8px;
}

.portfolio__location {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 15px;
    color: var(--stone);
    margin: 0;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ===== Card ===== */
.portfolio-card {
    background: var(--paper);
    border: 1px solid var(--line);
    transition:
        border-color 0.4s var(--ease),
        transform 0.5s var(--ease),
        box-shadow 0.5s var(--ease);
}

.portfolio-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow:
        0 1px 2px rgba(26, 26, 26, 0.02),
        0 16px 40px rgba(26, 26, 26, 0.06);
}

.portfolio-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.portfolio-card__link:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
}

.portfolio-card__header {
    padding: var(--space-4) var(--space-4) var(--space-3);
    text-align: center;
}

.portfolio-card__address {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
    transition: color 0.3s var(--ease);
    line-height: 1.4;
}

.portfolio-card:hover .portfolio-card__address {
    color: var(--teal);
}

/* ===== Image ===== */
.portfolio-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bone);
    margin: 0 var(--space-3);
}

.portfolio-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.portfolio-card:hover .portfolio-card__image {
    transform: scale(1.04);
}

/* Hover overlay — "View Home →" appears centered on the image */
.portfolio-card__view {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 20px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transition:
        opacity 0.4s var(--ease),
        transform 0.4s var(--ease);
    pointer-events: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.portfolio-card__view span {
    color: var(--teal);
}

.portfolio-card:hover .portfolio-card__view,
.portfolio-card__link:focus-visible .portfolio-card__view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Specs row ===== */
.portfolio-card__specs {
    padding: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.portfolio-card__spec {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    white-space: nowrap;
}

.portfolio-card__spec strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-right: 4px;
}

.portfolio-card__spec-divider {
    width: 1px;
    height: 14px;
    background: var(--line);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .portfolio__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    .portfolio-card__specs {
        gap: 12px;
    }
    .portfolio-card__spec {
        font-size: 12px;
    }
}

/* ============================================
   39 — PORTFOLIO ITEM: HEADER
   ============================================ */
.pi-header {
    padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-6);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

/* Breadcrumb */
.pi-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stone);
}

.pi-breadcrumb__back {
    color: var(--ink);
    transition: color 0.25s var(--ease), gap 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pi-breadcrumb__back:hover {
    color: var(--teal);
    gap: 14px;
}

.pi-breadcrumb__trail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pi-breadcrumb__trail a {
    color: var(--stone);
    transition: color 0.2s var(--ease);
}

.pi-breadcrumb__trail a:hover {
    color: var(--teal);
}

.pi-breadcrumb__sep {
    color: var(--line);
    font-weight: 300;
}

/* Title block */
.pi-header__title-wrap {
    text-align: center;
    margin-bottom: var(--space-6);
}

.pi-header__title-wrap .ed-marker {
    justify-content: center;
}

.pi-header__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 112px);
    line-height: 0.95;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: var(--space-3) 0 var(--space-3);
}

.pi-header__location {
    font-family: var(--font-serif);
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--charcoal);
    font-weight: 300;
    margin: 0;
}

.pi-header__location em {
    color: var(--teal);
}

/* Specs strip */
.pi-specs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: var(--space-6) 0 0;
    padding: var(--space-4) 0 0;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.pi-specs__item {
    flex: 1;
    min-width: 140px;
    padding: var(--space-3) var(--space-4);
    text-align: center;
    border-right: 1px solid var(--line);
}

.pi-specs__item:last-child {
    border-right: none;
}

.pi-specs__item dt {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: var(--space-2);
}

.pi-specs__item dd {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.pi-specs__unit {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
}


/* ============================================
   40 — PORTFOLIO ITEM: STICKY INQUIRY BAR
   ============================================ */
.pi-sticky-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(26, 26, 26, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--paper);
    transform: translateY(-100%);
    opacity: 0;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s var(--ease);
    pointer-events: none;
    border-bottom: 1px solid rgba(245, 243, 238, 0.08);
}

.pi-sticky-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pi-sticky-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 16px 0;
}

.pi-sticky-bar__info {
    flex: 1;
    min-width: 0;
}

.pi-sticky-bar__address {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.8vw, 22px);
    letter-spacing: 0.04em;
    color: var(--paper);
    margin: 0 0 2px;
    line-height: 1;
}

.pi-sticky-bar__meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(245, 243, 238, 0.65);
    letter-spacing: 0.04em;
    margin: 0;
}

.pi-sticky-bar__cta {
    flex-shrink: 0;
    background: var(--teal);
}

.pi-sticky-bar__cta:hover {
    background: var(--teal-darker);
}

/* When sticky bar is visible, add top padding to body to prevent jump */
body.has-sticky-bar {
    padding-top: 0; /* the bar overlays the top, doesn't push content */
}


/* ============================================
   41 — PORTFOLIO ITEM: STORY
   ============================================ */
.pi-story {
    padding: var(--space-8) 0;
    background: var(--paper);
}

.pi-story__grid {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 48px;
    align-items: start;
}

.pi-story__aside {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
}

.pi-story__body {
    max-width: 64ch;
}

.pi-story__body .ed-statement {
    margin-bottom: var(--space-5);
}

.pi-story__body p {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--charcoal);
    margin: 0 0 var(--space-4);
}

.pi-story__body p:last-child {
    margin: 0;
}


/* ============================================
   42 — PORTFOLIO ITEM: FEATURES LIST
   ============================================ */
.pi-features {
    padding: var(--space-7) 0 var(--space-8);
    background: var(--bone);
    border-top: 1px solid var(--line);
}

.pi-features__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.pi-features__aside {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
}

.pi-features__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: var(--space-3) 0 0;
}

.pi-features__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

.pi-features__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pi-features__list li {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: var(--space-4) 0;
    border-top: 1px solid var(--line);
    align-items: baseline;
}

.pi-features__list li:last-child {
    border-bottom: 1px solid var(--line);
}

.pi-features__list li span:first-child {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
}

.pi-features__list li span:last-child {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.5;
}


/* ============================================
   43 — PORTFOLIO ITEM: MASONRY GALLERY
   ============================================ */
.pi-gallery {
    padding: var(--space-8) 0;
    background: var(--paper);
}

.pi-gallery__header {
    max-width: 720px;
    margin-bottom: var(--space-7);
}

.pi-gallery__header .ed-section-title,
.pi-gallery__header .pi-features__title {
    margin: var(--space-3) 0 0;
}

/* Masonry-style varied grid using CSS Grid */
.pi-gallery__masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

/* Tile is a button so it's keyboard accessible */
.pi-tile {
    appearance: none;
    background: var(--bone);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    grid-column: span 1;
    grid-row: span 2;
    transition: transform 0.4s var(--ease);
}

.pi-tile:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
}

.pi-tile--wide {
    grid-column: span 2;
}

.pi-tile--tall {
    grid-row: span 3;
}

.pi-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}

.pi-tile:hover img {
    transform: scale(1.06);
}

/* Subtle overlay icon — appears on hover to signal lightbox */
.pi-tile::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(250, 248, 243, 0.95);
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7V3h4M21 7V3h-4M3 17v4h4M21 17v4h-4'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    pointer-events: none;
}

.pi-tile:hover::after,
.pi-tile:focus-visible::after {
    opacity: 1;
    transform: scale(1);
}


/* ============================================
   44 — PORTFOLIO ITEM: INQUIRY FORM
   ============================================ */
.pi-form-section {
    padding: var(--space-8) 0;
    background: var(--bone);
    border-top: 1px solid var(--line);
}

.pi-form-section__header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.pi-form-section__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1;
    color: var(--ink);
    margin: var(--space-3) 0 var(--space-4);
}

.pi-form-section__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.02em;
}

.pi-form-section__deck {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--charcoal);
    margin: 0 auto;
    max-width: 560px;
}

.pi-form {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: clamp(32px, 4vw, 56px);
}

.pi-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.pi-form__field {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.pi-form__row .pi-form__field {
    margin-bottom: 0;
}

.pi-form__field label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.pi-form__optional {
    color: var(--stone);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.04em;
    font-weight: 400;
    margin-left: 6px;
}

.pi-form__field input,
.pi-form__field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    border-radius: 2px;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
    outline: none;
}

.pi-form__field input:focus,
.pi-form__field textarea:focus {
    border-color: var(--teal);
    background: #fffefb;
}

.pi-form__field textarea {
    resize: vertical;
    line-height: 1.6;
    font-family: var(--font-serif);
    font-weight: 300;
}

.pi-form__field textarea::placeholder {
    color: var(--stone);
    font-style: italic;
}

.pi-form__submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.pi-form__disclaimer {
    font-family: var(--font-serif);
    font-size: 13px;
    font-style: italic;
    font-weight: 300;
    color: var(--stone);
    margin: 0;
    max-width: 360px;
}

.pi-form__submit {
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pi-form__submit-text,
.pi-form__submit-sending {
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.pi-form__submit-sending {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
}

.pi-form.is-sending .pi-form__submit {
    pointer-events: none;
}

.pi-form.is-sending .pi-form__submit-text {
    opacity: 0;
    transform: translateY(-8px);
}

.pi-form.is-sending .pi-form__submit-sending {
    opacity: 1;
    transform: translateY(0);
}

/* Success state */
.pi-form__success {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    background: var(--paper);
    border: 1px solid var(--line);
    animation: successFade 0.8s var(--ease-out) both;
}

.pi-form__success-mark {
    display: inline-block;
    width: 64px;
    height: 64px;
    color: var(--teal);
    margin-bottom: var(--space-4);
}

.pi-form__success-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    color: var(--ink);
    margin: 0 0 var(--space-3);
}

.pi-form__success-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--teal);
}

.pi-form__success p {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--charcoal);
    font-weight: 300;
    margin: 0 0 var(--space-3);
}

.pi-form__success-signature {
    font-family: 'Fraunces', cursive;
    font-style: italic;
    font-size: 20px;
    color: var(--teal);
    margin-top: var(--space-3) !important;
}


/* ============================================
   45 — PORTFOLIO ITEM: FLOATING CTA (alternate)
   ============================================
   Hidden by default. To use this instead of the
   sticky bar, set [hidden] on .pi-sticky-bar in
   the HTML and remove [hidden] from this button.
*/
.pi-floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 95;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--teal);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(94, 166, 165, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.4s var(--ease),
        transform 0.4s var(--ease),
        background 0.3s var(--ease);
}

.pi-floating-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pi-floating-cta:hover {
    background: var(--teal-darker);
    transform: translateY(-2px);
}

.pi-floating-cta__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.pi-floating-cta__icon svg {
    width: 100%;
    height: 100%;
}


/* ============================================
   46 — LIGHTBOX (used by gallery)
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    padding: 80px 80px;
}

.lightbox[hidden] {
    display: flex;
    pointer-events: none;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox__close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: rgba(245, 243, 238, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s var(--ease);
    z-index: 2;
}

.lightbox__close:hover {
    background: rgba(245, 243, 238, 0.16);
}

.lightbox__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1.5px;
    background: var(--paper);
}

.lightbox__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(245, 243, 238, 0.08);
    color: var(--paper);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 2;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(245, 243, 238, 0.16);
}

.lightbox__prev {
    left: 24px;
}

.lightbox__prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.lightbox__next {
    right: 24px;
}

.lightbox__next:hover {
    transform: translateY(-50%) translateX(4px);
}

.lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    display: block;
    animation: lightboxImgFade 0.3s var(--ease);
}

@keyframes lightboxImgFade {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox__caption {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(245, 243, 238, 0.7);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lightbox__counter {
    color: var(--teal-light);
    font-weight: 600;
}

.lightbox__alt {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 13px;
}


/* ============================================
   47 — RESPONSIVE: PORTFOLIO ITEM
   ============================================ */
@media (max-width: 1024px) {
    .pi-specs {
        gap: 0;
    }
    .pi-specs__item {
        min-width: 120px;
        padding: var(--space-3);
    }
    .pi-story__grid,
    .pi-features__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pi-story__aside,
    .pi-features__aside {
        position: static;
    }
    .pi-gallery__masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
    .pi-tile--tall {
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .pi-breadcrumb__trail {
        display: none;
    }
    .pi-specs {
        flex-wrap: wrap;
    }
    .pi-specs__item {
        flex: 1 1 calc(50% - 1px);
        border-bottom: 1px solid var(--line);
    }
    .pi-specs__item:nth-child(2n) {
        border-right: none;
    }
    .pi-sticky-bar__inner {
        padding: 12px 0;
        gap: 16px;
    }
    .pi-sticky-bar__address {
        font-size: 15px;
    }
    .pi-sticky-bar__meta {
        display: none;
    }
    .pi-sticky-bar__cta {
        padding: 12px 20px;
        font-size: 11px;
    }
    .pi-features__list li {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .pi-gallery__masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 12px;
    }
    .pi-tile--wide {
        grid-column: span 2;
    }
    .pi-tile--tall {
        grid-row: span 2;
    }
    .pi-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pi-form__row .pi-form__field {
        margin-bottom: 24px;
    }
    .pi-form__submit-row {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 20px;
    }
    .pi-form__submit {
        width: 100%;
    }
    .pi-form__disclaimer {
        text-align: center;
        max-width: none;
    }
    .pi-floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 11px;
    }
    .lightbox {
        padding: 60px 12px;
    }
    .lightbox__prev,
    .lightbox__next {
        width: 44px;
        height: 44px;
    }
    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
    .lightbox__close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pi-sticky-bar,
    .pi-floating-cta,
    .lightbox,
    .lightbox__image {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}