/* =========================================================================
   PARADISO BUILDERS — DESIGN SYSTEM
   Editorial quarterly. Refined display serif (Fraunces) over geometric sans
   (Manrope). Warm paper background with film-grain atmosphere. Single deep
   ink-teal accent threaded through structural details. Threshold mark from
   the logo recurs as the section divider motif.
   ========================================================================= */

:root {
    /* ----- Palette ----- */
    --bg:               #F7F5EE;   /* warm paper cream */
    --bg-deep:          #F1EEE3;
    --bg-blush:         #F5EAE0;   /* warm blush wash for select sections */
    --surface:          #FFFFFF;
    --text:             #131211;   /* near-black with a hair of warmth */
    --text-muted:       #57544D;
    --text-subtle:      #8C887D;
    --rule:             #E2DDCE;   /* hairline divider, warm */
    --rule-strong:      #BFB8A4;
    /* Cool primary accent: deep ink-teal (Texas night, deep water) */
    --accent:           #0F3F4E;
    --accent-hover:     #082A36;
    --accent-soft:      #E2EAEC;
    --accent-ink:       #07242E;
    /* Warm secondary accent: terracotta (Florida sunset, Texas clay) */
    --accent-warm:      #C25A3B;
    --accent-warm-hover:#A24A30;
    --accent-warm-soft: #F5E6DC;
    --accent-warm-ink:  #7E3722;

    /* ----- Typography ----- */
    --font-display: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
    --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* ----- Layout ----- */
    --container-max: 1320px;
    --gutter:        clamp(1.5rem, 5vw, 6rem);
    --section-y:     clamp(5rem, 11vw, 11rem);

    /* ----- Misc ----- */
    --radius-sm: 2px;
    --radius-md: 4px;
    --shadow-soft: 0 1px 2px rgba(15, 15, 15, 0.04), 0 8px 32px rgba(15, 15, 15, 0.04);

    /* ----- Motion ----- */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
    --transition-fast: 180ms var(--ease-out);
    --transition-mid:  340ms var(--ease-out);
    --duration-reveal: 800ms;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, blockquote, figure, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ----- Base ----- */
html, body { background: var(--bg); color: var(--text); }
body {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.6;
    font-weight: 400;
    font-feature-settings: "kern", "ss01", "ss02";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    min-height: 100vh;
}

/* Atmospheric grain — barely there, fixed, multiplies into the page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

/* ----- Typography ----- */
.display {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.75rem, 6.6vw, 6rem);
    line-height: 0.96;
    letter-spacing: -0.028em;
    font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
    max-width: 18ch;
    color: var(--text);
}
.h1 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.25rem, 4.6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.022em;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    max-width: 22ch;
}
.h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.875rem, 3.2vw, 2.875rem);
    line-height: 1.08;
    letter-spacing: -0.018em;
    font-variation-settings: "opsz" 96, "SOFT" 30;
    max-width: 26ch;
}
.h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

/* Italic display variant for accents (pull quotes, callouts) */
.display--italic, .h1--italic, .h2--italic { font-style: italic; }

.lede {
    font-family: var(--font-body);
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 56ch;
    letter-spacing: -0.005em;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-subtle);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.85;
}
/* Variant: warm-accented eyebrow line */
.eyebrow--warm { color: var(--accent-warm-ink); }
.eyebrow--warm::before { background: var(--accent-warm); opacity: 1; height: 2px; }

/* Folio number — magazine-style spread numbering */
.folio {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--text-subtle);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.folio strong { color: var(--text); font-weight: 500; }
.folio em { font-style: normal; color: var(--accent-warm); font-weight: 500; }

p { color: var(--text); }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

/* Threshold rule — the logo motif as a section divider */
.threshold {
    width: 100%;
    height: 14px;
    color: var(--accent);
    opacity: 0.55;
    display: block;
}
.threshold svg { width: 100%; height: 100%; display: block; }

a.link {
    color: var(--accent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    padding-bottom: 1px;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
a.link:hover { border-bottom-color: var(--accent); color: var(--accent-hover); }

a.link-arrow {
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 500;
    border-bottom: 1px solid var(--text);
    padding-bottom: 3px;
    transition: gap var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    font-size: 0.9375rem;
    letter-spacing: -0.005em;
}
a.link-arrow:hover { gap: 1rem; color: var(--accent); border-bottom-color: var(--accent); }
a.link-arrow::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
}

/* ----- Layout primitives ----- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 2;
}
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 6rem); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Section folio — "01 / 04" tag at start of each section */
.section-folio {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    color: var(--text-subtle);
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.section-folio__num strong { color: var(--accent-warm); font-weight: 500; }
.section-folio__line {
    flex: 1;
    height: 1px;
    background: var(--rule);
    max-width: 80px;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1.0625rem 1.875rem;
    border: 1px solid var(--accent-warm);
    background: var(--accent-warm);
    color: var(--bg);
    border-radius: 0;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform 200ms var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn:hover { background: var(--accent-warm-hover); border-color: var(--accent-warm-hover); color: var(--bg); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}
.btn--ghost:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

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

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

/* ===========================================================================
   TOPBAR — slim colored stripe at top of page (no text, just brand color)
   =========================================================================== */
.topbar {
    height: 5px;
    background: linear-gradient(90deg,
        var(--accent) 0%, var(--accent) 38%,
        var(--accent-warm) 38%, var(--accent-warm) 100%);
}

/* ===========================================================================
   NAV
   =========================================================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-mid), background var(--transition-mid);
}
.nav.is-scrolled {
    border-bottom-color: var(--rule);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    gap: 2rem;
}
.nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.6vw, 2.5rem);
}
.nav__link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.005em;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -3px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-mid);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { display: inline-flex; }

.nav__toggle {
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}
.nav__toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__drawer { display: none; }

/* ===========================================================================
   LOGO — Editorial wordmark: Fraunces italic "Paradiso" + tracked sans "BUILDERS"
   =========================================================================== */
.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: var(--text);
    line-height: 1;
}
.logo__word {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-variation-settings: "opsz" 96, "SOFT" 50;
    font-size: 1.625rem;
    letter-spacing: -0.01em;
    line-height: 1;
}
.logo__sub {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.42em;
    line-height: 1;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-left: 1px;
    margin-top: 4px;
}

/* The Threshold rule — horizontal line broken by a doorway notch.
   Hidden in the small (nav) variant, shown at medium and large sizes
   to carry the logo's structural motif into the brand surfaces. */
.logo__rule {
    display: none;
    color: var(--text);
    width: 100%;
    margin-top: 10px;
}
.logo__rule svg { width: 100%; height: 12px; display: block; }

.logo--lg .logo__word { font-size: 2.25rem; }
.logo--lg .logo__sub  { font-size: 0.75rem; letter-spacing: 0.5em; margin-top: 6px; }
.logo--lg .logo__rule { display: block; max-width: 240px; margin-top: 14px; opacity: 0.85; }

.logo--xl .logo__word {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 200;
    font-variation-settings: "opsz" 144, "SOFT" 80;
}
.logo--xl .logo__sub  { font-size: 0.875rem; letter-spacing: 0.62em; color: var(--text-muted); margin-top: 10px; }
.logo--xl .logo__rule { display: block; max-width: 360px; margin-top: 18px; }

/* ===========================================================================
   HERO — Editorial spread: title left, vertical folio + meta right
   =========================================================================== */
.hero {
    padding-top: clamp(3.5rem, 7vw, 7rem);
    padding-bottom: clamp(5rem, 10vw, 10rem);
    position: relative;
    background:
        radial-gradient(ellipse at top right, var(--accent-warm-soft) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 50%),
        var(--bg);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: end;
    position: relative;
}
@media (min-width: 980px) {
    .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

/* Vertical folio running up the right edge of the hero */
.hero__vfolio {
    display: none;
    position: absolute;
    right: -1.25rem;
    top: 0;
    bottom: 4rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-subtle);
    align-items: center;
    gap: 1.25rem;
}
.hero__vfolio em { font-style: normal; color: var(--accent); }
@media (min-width: 1100px) { .hero__vfolio { display: inline-flex; } }

.hero__eyebrow { margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.hero__title { margin-bottom: clamp(1.75rem, 2.8vw, 2.5rem); }
.hero__lede { margin-bottom: clamp(2.25rem, 3.6vw, 3.25rem); max-width: 60ch; }

/* Italic accent inside the headline (one phrase italicized for editorial breath) */
.hero__title em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 80;
    color: var(--accent-warm);
    background: linear-gradient(180deg, transparent 78%, rgba(194, 90, 59, 0.18) 78%, rgba(194, 90, 59, 0.18) 92%, transparent 92%);
    padding: 0 0.05em;
}

/* Editorial flourish: colored seal in upper right of hero */
.hero__seal {
    display: none;
    position: absolute;
    top: 1rem;
    right: 0;
    width: 138px;
    height: 138px;
    border: 1.5px solid var(--accent-warm);
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-warm);
    text-align: center;
    line-height: 1.2;
    transform: rotate(-6deg);
    background: var(--bg);
    z-index: 5;
}
.hero__seal::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px dashed currentColor;
    border-radius: 50%;
    opacity: 0.45;
}
.hero__seal-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.hero__seal-line {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.625rem;
    line-height: 1;
    margin: 0.25rem 0 0.125rem;
    font-variation-settings: "opsz" 96, "SOFT" 80;
}
.hero__seal-foot {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
@media (min-width: 1100px) { .hero__seal { display: inline-flex; } }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }

.hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1rem;
    border-top: 1px solid var(--accent);
    padding-top: 2rem;
    align-self: end;
    position: relative;
}
.hero__meta::before {
    content: "";
    position: absolute;
    top: -3px; left: 0;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
}
.hero__meta-item dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 0.625rem;
}
.hero__meta-item dd {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    margin: 0;
    line-height: 1.45;
    font-weight: 400;
}

/* ===========================================================================
   SERVICES
   =========================================================================== */
.services {
    border-top: 1px solid var(--rule);
    background: var(--bg-deep);
}
.services__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 880px) {
    .services__head {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 4rem;
        align-items: end;
    }
}
.services__list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
}
@media (min-width: 720px)  { .services__list { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
@media (min-width: 1080px) { .services__list { grid-template-columns: repeat(4, 1fr); gap: 3rem 2.5rem; } }

.service {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1.5rem 1.5rem;
    border-top: 3px solid var(--text);
    background: var(--surface);
    position: relative;
    transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 15, 15, 0.06); }
.service__num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-subtle);
    letter-spacing: 0.2em;
    margin-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}
.service__num em {
    font-style: normal;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    color: var(--bg);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}
.service:nth-child(1) { border-top-color: var(--accent-warm); border-top-width: 2px; }
.service:nth-child(2) { border-top-color: var(--accent); border-top-width: 2px; }
.service:nth-child(3) { border-top-color: var(--accent-warm); border-top-width: 2px; }
.service:nth-child(4) { border-top-color: var(--accent); border-top-width: 2px; }
.service:nth-child(1) .service__num em { background: var(--accent-warm); }
.service:nth-child(2) .service__num em { background: var(--accent); }
.service:nth-child(3) .service__num em { background: var(--accent-warm); }
.service:nth-child(4) .service__num em { background: var(--accent); }
.service__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.012em;
    color: var(--text);
    font-variation-settings: "opsz" 72, "SOFT" 30;
}
.service__copy {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 32ch;
}

/* ===========================================================================
   WORK — Selected projects
   =========================================================================== */
.work { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.work__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: clamp(2.75rem, 5vw, 4rem);
}
@media (min-width: 880px) {
    .work__head {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 4rem;
        align-items: end;
    }
}
.work__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem 2.5rem;
}
@media (min-width: 720px)  { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work__grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--text);
}
.project-card__media {
    aspect-ratio: 4 / 5;
    background: var(--bg-deep);
    overflow: hidden;
    position: relative;
}
.project-card__media img,
.project-card__media .placeholder {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
}
.project-card:hover .project-card__media img { transform: scale(1.04); }

.project-card__media .placeholder {
    display: flex; align-items: flex-end;
    padding: 1.5rem;
    color: var(--bg);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    letter-spacing: -0.015em;
    line-height: 1.18;
    font-variation-settings: "opsz" 96, "SOFT" 80;
    font-weight: 300;
}
.project-card:nth-child(3n+1) .project-card__media .placeholder {
    background:
        radial-gradient(circle at 80% 20%, rgba(247, 245, 238, 0.18), transparent 55%),
        linear-gradient(160deg, var(--accent-warm) 0%, var(--accent-warm-hover) 100%);
}
.project-card:nth-child(3n+2) .project-card__media .placeholder {
    background:
        radial-gradient(circle at 20% 80%, rgba(247, 245, 238, 0.22), transparent 55%),
        linear-gradient(160deg, var(--accent) 0%, var(--accent-ink) 100%);
}
.project-card:nth-child(3n+3) .project-card__media .placeholder {
    background:
        radial-gradient(circle at 50% 50%, rgba(247, 245, 238, 0.18), transparent 55%),
        linear-gradient(160deg, #2C2A26 0%, #131211 100%);
    color: var(--bg);
}

.project-card__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-subtle);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: -0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.project-card__num em {
    font-style: normal;
    color: var(--bg);
    font-weight: 600;
    background: var(--accent-warm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    font-size: 0.6875rem;
}
.project-card:nth-child(2) .project-card__num em { background: var(--accent); }
.project-card__media .placeholder em { color: rgba(247, 245, 238, 0.95); }

.project-card__meta {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.project-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.012em;
    font-variation-settings: "opsz" 72, "SOFT" 30;
}
.project-card__copy {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 38ch;
}

.work__cta { margin-top: clamp(2.75rem, 5vw, 4rem); }

/* ===========================================================================
   MARKETS — two states, ghosted backdrop type
   =========================================================================== */
.markets {
    border-top: 1px solid var(--rule);
    background:
        radial-gradient(ellipse 60% 70% at 0% 50%, var(--accent-warm-soft) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 100% 50%, var(--accent-soft) 0%, transparent 60%),
        var(--bg);
}
.markets__head {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    max-width: 56ch;
}
.markets__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 880px) { .markets__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.market {
    padding-top: 2.25rem;
    border-top: 1px solid var(--text);
    position: relative;
}

/* Giant ghosted backdrop letters (FL / TX) — split palette */
.market::before {
    content: attr(data-mark);
    position: absolute;
    right: -0.75rem;
    top: 1rem;
    font-family: var(--font-display);
    font-weight: 200;
    font-style: italic;
    font-size: clamp(7rem, 14vw, 12rem);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -0.05em;
    z-index: 0;
    font-variation-settings: "opsz" 144, "SOFT" 80;
}
.market[data-mark="FL"]::before { color: var(--accent-warm); opacity: 0.10; }
.market[data-mark="TX"]::before { color: var(--accent); opacity: 0.10; }
.market > * { position: relative; z-index: 1; }
.market[data-mark="FL"] { border-top-color: var(--accent-warm); }
.market[data-mark="TX"] { border-top-color: var(--accent); }
.market[data-mark="FL"] .market__label em { color: var(--accent-warm); }
.market[data-mark="TX"] .market__label em { color: var(--accent); }

.market__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 1rem;
    font-weight: 400;
}
.market__label em { font-style: normal; color: var(--accent); }
.market__name {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3.2vw, 2.625rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.022em;
    margin-bottom: 1.25rem;
    font-variation-settings: "opsz" 144, "SOFT" 30;
}
.market__copy {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 50ch;
}
.market__list {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.5rem;
}
.market__list li {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text);
    padding: 0.4375rem 0.875rem;
    border: 1px solid var(--rule-strong);
    letter-spacing: -0.005em;
}

/* ===========================================================================
   TENETS — bold colored callout panel
   =========================================================================== */
.tenets {
    background:
        linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-warm-hover) 100%);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}
.tenets::before {
    /* layered noise + radial glow for depth */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(247, 245, 238, 0.18), transparent 55%),
        radial-gradient(ellipse at 15% 90%, rgba(15, 63, 78, 0.32), transparent 60%);
    pointer-events: none;
}
.tenets__giant-mark {
    position: absolute;
    top: 50%; right: -2rem;
    transform: translateY(-50%) rotate(8deg);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 200;
    font-size: clamp(20rem, 38vw, 38rem);
    line-height: 1;
    color: rgba(247, 245, 238, 0.06);
    letter-spacing: -0.05em;
    pointer-events: none;
    z-index: 0;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.tenets .container { padding-block: clamp(5rem, 10vw, 8rem); position: relative; z-index: 1; }
.tenets__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 56ch; }
.tenets__head .eyebrow { color: rgba(247, 245, 238, 0.62); margin-bottom: 1.5rem; }
.tenets__head .eyebrow::before { background: rgba(247, 245, 238, 0.7); }
.tenets__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.4vw, 3.625rem);
    font-weight: 200;
    line-height: 1.04;
    letter-spacing: -0.022em;
    color: var(--bg);
    font-variation-settings: "opsz" 144, "SOFT" 50;
    max-width: 22ch;
}
.tenets__title em { font-style: italic; color: color-mix(in srgb, var(--bg) 75%, transparent); }
.tenets__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    counter-reset: tenet;
}
@media (min-width: 880px) { .tenets__list { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.tenet {
    border-top: 1px solid rgba(247, 245, 238, 0.28);
    padding-top: 1.75rem;
    color: var(--bg);
    position: relative;
}
.tenet__num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: rgba(247, 245, 238, 0.6);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    display: block;
}
.tenet__title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    color: var(--bg);
    font-variation-settings: "opsz" 96, "SOFT" 80;
}
.tenet__copy {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(247, 245, 238, 0.86);
    max-width: 36ch;
}

/* ===========================================================================
   INVESTORS BANNER — dark, cinematic
   =========================================================================== */
.invest-banner {
    background: var(--text);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}
.invest-banner::before {
    /* atmospheric depth: warm + cool radial glows */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(194, 90, 59, 0.18), transparent 45%),
        radial-gradient(circle at 82% 78%, rgba(15, 63, 78, 0.32), transparent 55%);
    pointer-events: none;
}
.invest-banner .container { padding-block: clamp(5rem, 10vw, 9rem); position: relative; z-index: 1; }
.invest-banner__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: end;
}
@media (min-width: 880px) {
    .invest-banner__inner {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 5rem;
    }
}
.invest-banner__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 200;
    line-height: 1.02;
    letter-spacing: -0.024em;
    max-width: 18ch;
    color: var(--bg);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.invest-banner__title em { font-style: italic; color: var(--accent-warm); }
.invest-banner .eyebrow { color: rgba(247, 245, 238, 0.52); margin-bottom: 1.75rem; }
.invest-banner .eyebrow::before { background: rgba(247, 245, 238, 0.4); }
.invest-banner__copy {
    color: rgba(247, 245, 238, 0.78);
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 46ch;
    margin-bottom: 2rem;
}
.invest-banner .btn {
    background: var(--bg);
    color: var(--text);
    border-color: var(--bg);
}
.invest-banner .btn:hover { background: transparent; color: var(--bg); border-color: var(--bg); }

.invest-banner__points { display: flex; flex-direction: column; gap: 0; }
.invest-banner__point {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 1.125rem 0;
    border-bottom: 1px solid rgba(247, 245, 238, 0.13);
    color: var(--bg);
    transition: padding-left var(--transition-mid);
}
.invest-banner__point:last-child { border-bottom: 0; }
.invest-banner__point:hover { padding-left: 0.75rem; }
.invest-banner__point:nth-child(odd) span:first-child  { color: var(--accent-warm); }
.invest-banner__point:nth-child(even) span:first-child { color: color-mix(in srgb, var(--accent) 60%, white); }
.invest-banner__point span:first-child {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    flex-shrink: 0;
    width: 2.75rem;
    font-weight: 500;
}
.invest-banner__point span:last-child { font-size: 0.9375rem; line-height: 1.5; letter-spacing: -0.005em; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.footer {
    background: var(--bg);
    border-top: 4px solid var(--text);
    color: var(--text);
    position: relative;
}
.footer::before {
    content: "";
    position: absolute;
    top: -4px; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--accent) 0%, var(--accent) 50%,
        var(--accent-warm) 50%, var(--accent-warm) 100%);
}
.footer .container { padding-block: clamp(4rem, 7vw, 6rem); }
.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px)  { .footer__top { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; } }
@media (min-width: 1080px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; } }

.footer__col h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
}
.footer__col h4 em { font-style: normal; color: var(--accent); }
.footer__col li { margin-bottom: 0.75rem; font-size: 0.9375rem; }
.footer__col a { color: var(--text); transition: color var(--transition-fast); }
.footer__col a:hover { color: var(--accent); }
.footer__about p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 40ch;
    margin-top: 1.5rem;
}
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-subtle);
    letter-spacing: 0.04em;
}
.footer__colophon {
    margin-top: 0.5rem;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-subtle);
    letter-spacing: 0.06em;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    line-height: 1.6;
}
.footer__colophon em { font-style: italic; color: var(--text-muted); }

/* ===========================================================================
   PAGE HEADER
   =========================================================================== */
.page-head {
    padding-top: clamp(4rem, 7vw, 6rem);
    padding-bottom: clamp(3rem, 5vw, 5rem);
    border-bottom: 1px solid var(--rule);
    position: relative;
}
.page-head .eyebrow { margin-bottom: 1.75rem; }
.page-head__title { margin-bottom: 1.5rem; }
.page-head__title em {
    font-style: italic;
    color: var(--accent-warm);
    font-variation-settings: "opsz" 144, "SOFT" 80;
}

/* ===========================================================================
   FORMS
   =========================================================================== */
.field { margin-bottom: 1.625rem; }
.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 0.625rem;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    letter-spacing: -0.005em;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 168px; resize: vertical; }
.field--error input,
.field--error textarea,
.field--error select { border-color: #B23A3A; }
.field__error {
    display: block;
    font-size: 0.8125rem;
    color: #B23A3A;
    margin-top: 0.375rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-family: var(--font-body);
}

.flash {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    border-left: 3px solid;
    background: var(--surface);
}
.flash--success { border-color: var(--accent); color: var(--accent); }
.flash--error   { border-color: #B23A3A; color: #8E2A2A; background: #FBE9E9; }

/* ===========================================================================
   ANIMATIONS — staggered hero reveal + scroll-triggered section reveal
   =========================================================================== */
@keyframes paradiso-reveal-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes paradiso-reveal-slow {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero entrance — runs once on page load */
.hero .reveal {
    opacity: 0;
    animation: paradiso-reveal-up var(--duration-reveal) var(--ease-out) forwards;
}
.hero .reveal:nth-child(1) { animation-delay: 100ms; }
.hero .reveal:nth-child(2) { animation-delay: 220ms; }
.hero .reveal:nth-child(3) { animation-delay: 340ms; }
.hero .reveal:nth-child(4) { animation-delay: 460ms; }
.hero .reveal:nth-child(5) { animation-delay: 580ms; }
.hero__meta.reveal { animation-delay: 700ms; }

/* Scroll-triggered reveal — visible by default; JS opts in to the
   hidden state ONLY for elements below the initial fold, so content
   is never blank without JavaScript or in static screenshots. */
.reveal-on-scroll {
    transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
}
.reveal-on-scroll.pre-reveal {
    opacity: 0;
    transform: translateY(28px);
}
.reveal-on-scroll.delay-1 { transition-delay: 80ms; }
.reveal-on-scroll.delay-2 { transition-delay: 160ms; }
.reveal-on-scroll.delay-3 { transition-delay: 240ms; }
.reveal-on-scroll.delay-4 { transition-delay: 320ms; }

/* ===========================================================================
   UTILITIES
   =========================================================================== */
.hide-mobile { display: initial; }
@media (max-width: 779px) {
    .hide-mobile { display: none; }
    .nav__menu { display: none; }
    .nav__cta { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav.is-open .nav__drawer {
        display: flex;
        position: fixed;
        inset: 88px 0 0 0;
        background: var(--bg);
        flex-direction: column;
        padding: 3rem var(--gutter);
        gap: 2rem;
        z-index: 40;
    }
    .nav.is-open .nav__drawer .nav__link {
        font-family: var(--font-display);
        font-size: 2rem;
        font-weight: 300;
        font-variation-settings: "opsz" 72, "SOFT" 30;
    }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--text);
    color: var(--bg);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-on-scroll.pre-reveal { opacity: 1; transform: none; }
    .hero .reveal { opacity: 1; animation: none; }
}
