/* ============================================================
   Novello Labs — welcome page
   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;
    --danger:     #D97A62;

    --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); }

/* ---------------------------------------------- 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,
.soon-lede .place {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.08em;
    color: var(--brass-lit);
    white-space: nowrap;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: clamp(2rem, 5vh, 3rem);
    padding: 0.95rem 1.7rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--paper);
    text-decoration: none;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(237, 231, 220, 0.02);
    transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.cta svg, .submit svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s var(--ease);
}

.cta:hover { border-color: var(--brass); background: rgba(200, 155, 60, 0.08); color: var(--brass-lit); }
.cta:hover svg { transform: translateX(5px); }

.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);
}

/* ---------------------------------------------- coming soon */

.soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: clamp(3rem, 10vh, 7rem) var(--gutter);
}

.soon-sign .mark {
    width: clamp(52px, 9vw, 72px);
    height: clamp(52px, 9vw, 72px);
    animation: sign-on 5s ease-in-out infinite;
}

/* The marquee breathes, like a sign idling. */
@keyframes sign-on {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(228, 184, 90, 0.18)); }
    50%      { filter: drop-shadow(0 0 13px rgba(228, 184, 90, 0.42)); }
}

.soon-brand {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 1.6rem 0 0;
}

.soon-name {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 500;
}

.soon-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--paper-dim);
}

.soon-title {
    margin: clamp(2.5rem, 8vh, 4.5rem) 0 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(3rem, 11vw, 8rem);
    line-height: 0.92;
    letter-spacing: -0.025em;
}

.soon-title span { display: block; }

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

.soon-lede {
    margin: clamp(1.6rem, 5vh, 2.4rem) 0 0;
    max-width: 46ch;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    color: var(--paper-mid);
}

.soon-contact {
    margin: 1.4rem 0 0;
    font-size: 0.92rem;
    color: var(--paper-dim);
}

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

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

/* ---------------------------------------------- section label */

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

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

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    padding: clamp(4rem, 12vh, 8rem) var(--gutter) clamp(5rem, 12vh, 8rem);
    border-top: 1px solid var(--rule-soft);
    scroll-margin-top: 2rem;
}

.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-note {
    margin: 1.5rem 0 0;
    max-width: 30ch;
    color: var(--paper-dim);
    font-size: 0.92rem;
}

.contact-form-wrap {
    position: relative;
    background: linear-gradient(180deg, var(--ink-raised), var(--ink-deep));
    border: 1px solid var(--rule);
    padding: clamp(1.6rem, 3.5vw, 2.8rem);
}

/* Brass corner tick — a small printed-mark detail. */
.contact-form-wrap::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 34px;
    height: 34px;
    border-top: 1px solid var(--brass);
    border-left: 1px solid var(--brass);
}

.form { display: flex; flex-direction: column; gap: 1.35rem; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
}

.field { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }

.field label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--paper-dim);
}

.field .opt { text-transform: none; letter-spacing: 0.04em; opacity: 0.6; font-style: italic; }

.field input,
.field textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    padding: 0.7rem 0;
    color: var(--paper);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 300;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.field textarea { resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(237, 231, 220, 0.22); }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--brass);
    background: linear-gradient(to bottom, transparent 55%, rgba(200, 155, 60, 0.06));
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--paper);
    -webkit-box-shadow: 0 0 0 1000px var(--ink-raised) inset;
}

.field-error {
    color: var(--danger);
    font-size: 0.76rem;
}

.field-error:empty { display: none; }

.field input.input-validation-error,
.field textarea.input-validation-error { border-bottom-color: var(--danger); }

.validation-summary { color: var(--danger); font-size: 0.84rem; }
.validation-summary ul { margin: 0; padding-left: 1.1rem; }
.validation-summary:empty { display: none; }

/* Honeypot: off-screen, never focusable by tabbing. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.6rem;
    padding: 1rem 1.9rem;
    border: 0;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s var(--ease);
}

.submit:hover { background: var(--brass-lit); transform: translateY(-2px); }
.submit:hover svg { transform: translateX(5px); }
.submit:active { transform: translateY(0); }

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

/* ---------------------------------------------- sent state */

.sent-panel { padding: 1.5rem 0; }

.sent-tick {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    border: 1px solid var(--brass);
    border-radius: 50%;
    margin-bottom: 1.4rem;
}

.sent-tick::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    width: 8px;
    height: 14px;
    border: solid var(--brass);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.sent-panel h3 {
    margin: 0 0 0.6rem;
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.9rem;
    letter-spacing: -0.01em;
}

.sent-panel p { margin: 0 0 1.6rem; color: var(--paper-mid); }

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

.link-quiet:hover { color: var(--brass-lit); 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-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; }
.d-6 { animation-delay: 0.68s; }

/* Anything below the fold waits for the observer to add .in-view. */
.contact .reveal { animation: none; }
.contact .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; }
    .soon-sign .mark { animation: none; }
    .work-status.is-live::before { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

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

@media (max-width: 900px) {
    .contact { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .field-row { grid-template-columns: 1fr; }
    .submit { align-self: center; }
    .hero::before { display: none; }
    .brand-sub { display: none; }
    .hero-index { flex-direction: column; gap: 0.7rem; }
    .work-item { flex-wrap: wrap; gap: 0.5rem 1rem; }
    .work-rule { display: none; }
}
