/* ============================================================
   Novello Labs — one-page site
   Editorial modernist: ink ground, Bodoni display, brass spark.
   ============================================================ */

:root {
    --ink:        #0B0C0F;
    --ink-raised: #101216;
    --ink-deep:   #07080A;
    --paper:      #EDE7DC;
    --paper-mid:  rgba(237, 231, 220, 0.66);
    --paper-dim:  rgba(237, 231, 220, 0.40);
    --rule:       rgba(237, 231, 220, 0.13);
    --rule-soft:  rgba(237, 231, 220, 0.07);
    --brass:      #C89B3C;
    --brass-lit:  #E4B85A;

    --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
    --body:    "Archivo", "Helvetica Neue", sans-serif;

    --gutter: clamp(1.5rem, 5vw, 6rem);
    --ease:   cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;

    /* Two soft blooms so the ground is never flat black. */
    background-image:
        radial-gradient(64rem 42rem at 78% -8%, rgba(200, 155, 60, 0.13), transparent 62%),
        radial-gradient(48rem 38rem at 4% 52%,  rgba(120, 140, 190, 0.07), transparent 60%);
    background-attachment: fixed;
}

/* Fine film grain over everything — kills the flat-CSS look. */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.30;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

main { flex: 1 0 auto; display: flex; flex-direction: column; }

::selection { background: var(--brass); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------------------------------------------- header / brand */

.site-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem var(--gutter);
    border-bottom: 1px solid var(--rule-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.mark {
    width: 30px;
    height: 30px;
    flex: none;
    overflow: visible;
}

.mark-frame { fill: none; stroke: var(--brass); stroke-width: 2.6; }
.mark-inner { fill: none; stroke: var(--paper); stroke-opacity: 0.26; stroke-width: 1; }
.mark-n     { fill: var(--paper); }

.mark, .mark-frame { transition: stroke 0.4s ease, filter 0.4s ease; }

/* Hover switches the sign on. */
.brand:hover .mark { filter: drop-shadow(0 0 6px rgba(228, 184, 90, 0.5)); }
.brand:hover .mark-frame { stroke: var(--brass-lit); }

.brand-type { display: flex; align-items: baseline; gap: 0.5rem; }

.brand-name {
    font-family: var(--display);
    font-size: 1.32rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.brand-sub {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--paper-dim);
    transform: translateY(-1px);
}

.site-nav .nav-link {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--paper-mid);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.site-nav .nav-link:hover { color: var(--paper); border-bottom-color: var(--brass); }

/* ---------------------------------------------- hero */

.hero {
    position: relative;
    padding: clamp(5rem, 15vh, 11rem) var(--gutter) clamp(4rem, 10vh, 7rem);
    max-width: 1500px;
}

/* Hairline column grid, barely there. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0 var(--gutter);
    background-image: linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
    background-size: 25% 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
}

.eyebrow {
    margin: 0 0 clamp(2rem, 6vh, 3.5rem);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--paper-dim);
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 2.6rem;
    height: 1px;
    background: var(--brass);
    vertical-align: middle;
    margin-right: 1.1rem;
    transform: translateY(-1px);
}

.hero-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(3.4rem, 13vw, 11rem);
    line-height: 0.9;
    letter-spacing: -0.025em;
}

.hero-title span { display: block; }

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--brass-lit);
    padding-left: 0.14em;
}

.lede {
    margin: clamp(1.8rem, 5vh, 2.8rem) 0 0;
    max-width: 56ch;
    font-size: clamp(1.05rem, 1.75vw, 1.4rem);
    line-height: 1.6;
    color: var(--paper-mid);
}

/* The one place name gets the Bodoni italic treatment, inline. */
.lede .place {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.08em;
    color: var(--brass-lit);
    white-space: nowrap;
}

.hero-contact {
    margin: clamp(1.6rem, 4vh, 2.2rem) 0 0;
    font-size: 0.95rem;
    color: var(--paper-dim);
}

.hero-contact a {
    color: var(--brass-lit);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.hero-contact a:hover { border-bottom-color: var(--brass); }

.hero-index {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 5vw, 4rem);
    margin-top: clamp(4rem, 12vh, 8rem);
    padding-top: 1.4rem;
    border-top: 1px solid var(--rule);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--paper-dim);
}

/* ---------------------------------------------- contact */

.section-label {
    margin: 0 0 2rem;
    font-family: var(--body);
    font-size: 0.64rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--paper-dim);
}

.contact-simple {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    padding: clamp(4.5rem, 12vh, 8rem) var(--gutter) clamp(5rem, 13vh, 9rem);
    border-top: 1px solid var(--rule-soft);
    scroll-margin-top: 1rem;
}

.contact-simple .section-label { margin: 0; }

.contact-head {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.contact-head em { font-style: italic; font-weight: 400; color: var(--brass-lit); }

.contact-email {
    width: fit-content;
    max-width: 100%;
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(1.7rem, 4.4vw, 3rem);
    color: var(--brass-lit);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    overflow-wrap: anywhere;
    transition: border-color 0.3s ease;
}

.contact-email:hover { border-bottom-color: var(--brass); }

.contact-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--paper-dim);
}

/* ---------------------------------------------- legal pages */

.legal {
    max-width: 68ch;
    padding: clamp(3.5rem, 10vh, 7rem) var(--gutter) clamp(4rem, 12vh, 8rem);
}

.legal-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
}

.legal-title em { font-style: italic; font-weight: 400; color: var(--brass-lit); }

.legal-date {
    margin: 1.4rem 0 0;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--paper-dim);
}

.legal-lede {
    margin: clamp(2rem, 5vh, 2.8rem) 0 0;
    padding-bottom: clamp(1.5rem, 4vh, 2.2rem);
    border-bottom: 1px solid var(--rule);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--paper-mid);
}

.legal-lede strong { font-weight: 500; color: var(--paper); }

.legal h2 {
    margin: clamp(2.4rem, 6vh, 3.2rem) 0 1rem;
    font-family: var(--body);
    font-size: 0.64rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--brass);
}

.legal p,
.legal li { color: var(--paper-mid); }

.legal p { margin: 0 0 1.1rem; }

.legal ul { margin: 0 0 1.1rem; padding: 0; list-style: none; }

.legal li {
    position: relative;
    margin-bottom: 0.9rem;
    padding-left: 1.8rem;
}

.legal li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 0.9rem;
    height: 1px;
    background: var(--brass);
}

.legal strong { font-weight: 500; color: var(--paper); }

.legal-address {
    padding-top: 1.2rem;
    border-top: 1px solid var(--rule);
    line-height: 1.9;
}

.legal a {
    color: var(--brass-lit);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.3s ease;
}

.legal a:hover { border-bottom-color: var(--brass); }

/* ---------------------------------------------- footer */

.site-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.8rem var(--gutter) 2.4rem;
    border-top: 1px solid var(--rule-soft);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--paper-dim);
}

.foot-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.foot-link:hover { color: var(--brass-lit); }

.foot-mark em {
    font-family: var(--display);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.02em;
}

/* ---------------------------------------------- motion */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.9s var(--ease) forwards;
}

.d-1 { animation-delay: 0.08s; }
.d-2 { animation-delay: 0.18s; }
.d-3 { animation-delay: 0.32s; }
.d-4 { animation-delay: 0.44s; }
.d-5 { animation-delay: 0.56s; }

/* Anything below the fold waits for the observer to add .in-view. */
.scroll-reveal .reveal { animation: none; }
.scroll-reveal .reveal.in-view { animation: rise 0.9s var(--ease) forwards; }

/* No JS? Nothing stays invisible. */
.no-js .reveal { opacity: 1; transform: none; animation: none; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

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

/* ---------------------------------------------- responsive */

@media (max-width: 620px) {
    .hero::before { display: none; }
    .brand-sub { display: none; }
    .hero-index { flex-direction: column; gap: 0.7rem; }
}
