/* Decor DNA - decordna.ai */

/* Fraunces (SIL Open Font License), served from this site: no font CDN */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fonts/fraunces-latin.woff2') format('woff2');
}

:root {
    --plum: #74254A;
    --blush: #FBEBE6;
    --rose: #CC7B82;
    --ink: #2A1720;
    --muted: #6E5A63;
    --line: rgba(42, 23, 32, 0.12);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--blush);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--plum);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.375rem;
    text-decoration: none;
}

.brand img { width: 44px; height: 44px; border-radius: 10px; }

h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-wrap: balance;
    margin: 40px 0 16px;
}
h2 { font-size: 1.375rem; margin: 36px 0 8px; }
h3 { font-size: 1.0625rem; margin: 20px 0 4px; }
p, li { max-width: 68ch; }
.lead { font-size: 1.25rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9375rem; }

.card {
    margin-top: 32px;
    padding: 20px 22px;
    border-radius: 16px;
    background: #FFFFFF;
}

.card p { margin: 0 0 8px; }
.card p:last-child { margin: 0; }

footer {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }

/* ---- Contact form ---- */
.contact-form { display: flex; flex-direction: column; gap: 6px; margin: 28px 0 24px; max-width: 560px; }
.contact-form label { font-weight: 600; font-size: 0.9375rem; margin-top: 10px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(116, 37, 74, 0.14); }

.contact-form button {
    margin-top: 16px;
    min-height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--plum);
    color: #FFFFFF;
    font: 600 1.0625rem var(--font);
    cursor: pointer;
}

.contact-form button:disabled { opacity: 0.6; cursor: default; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 12px 0 0; font-weight: 600; }
.form-note--ok { color: #2E7D4F; }
.form-note--error { color: #C62828; }

/* =====================================================
   Home page
   ===================================================== */
.home { overflow-x: hidden; }

.hero {
    position: relative;
    overflow-x: clip;   /* photos start off-screen; never let the page scroll sideways */
    padding: 24px 20px 8px;
    text-align: center;
    background: radial-gradient(120% 70% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%);
}

.hero__stage {
    position: relative;
    height: clamp(380px, 62vw, 560px);
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Animated logo ---- */
.logo {
    --w: clamp(120px, 20vw, 190px);
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--w) * 1.5);
    height: calc(var(--w) * 1.6);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.logo__chip {
    position: absolute;
    left: 50%;
    bottom: 4%;
    width: var(--w);
    height: calc(var(--w) * 1.42);
    margin-left: calc(var(--w) / -2);
    border-radius: calc(var(--w) * 0.1);
    transform-origin: 50% 100%;
    box-shadow: 0 18px 40px rgba(116, 37, 74, 0.25);
    animation: chip-in 1s var(--ease-out) var(--delay) both;
}

.logo__chip--1 { background: #F6C3BF; --r: -26deg; --fx: -70vw; --fy: -40vh; --delay: 0.1s; }
.logo__chip--2 { background: #C97980; --r: -9deg;  --fx: 70vw;  --fy: -50vh; --delay: 0.3s; }
.logo__chip--3 {
    background: #74254A; --r: 13deg; --fx: 20vw; --fy: 70vh; --delay: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes chip-in {
    from { transform: translate(var(--fx), var(--fy)) rotate(calc(var(--r) - 140deg)); opacity: 0; }
    55% { opacity: 1; }
    to { transform: translate(0, 0) rotate(var(--r)); opacity: 1; }
}

/* The helix drops onto the top chip after the chips land, then draws itself */
.logo__helix {
    width: 56%;
    height: auto;
    transform: rotate(-38deg);
    animation: helix-land 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 1.45s both;
}

.logo__helix .strand {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 0.9s ease-out 1.6s forwards;
}

.logo__helix .rungs { opacity: 0; animation: fade 0.4s ease-out 2.2s forwards; }

@keyframes helix-land {
    from { transform: translateY(-160%) rotate(-80deg) scale(1.6); opacity: 0; }
    to { transform: translateY(0) rotate(-38deg) scale(1); opacity: 1; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---- Flying room photos ---- */
.fly {
    position: absolute;
    width: clamp(92px, 15vw, 170px);
    aspect-ratio: 2 / 3;
    z-index: 1;
    animation: float 6s ease-in-out calc(var(--delay) + 1.2s) infinite alternate;
}

.fly img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 4px solid #FFFFFF;
    box-shadow: 0 14px 34px rgba(42, 23, 32, 0.2);
    transform: rotate(var(--r));
    animation: fly-in 1.2s var(--ease-out) var(--delay) both;
}

.fly--1 { left: 2%;  top: 4%;  --r: -8deg; --fx: -60vw; --fy: -10vh; --delay: 0.6s; }
.fly--2 { left: 14%; top: 50%; --r: 6deg;  --fx: -70vw; --fy: 30vh;  --delay: 0.8s; }
.fly--3 { right: 2%; top: 2%;  --r: 9deg;  --fx: 60vw;  --fy: -20vh; --delay: 0.7s; }
.fly--4 { right: 14%; top: 52%; --r: -7deg; --fx: 70vw;  --fy: 30vh;  --delay: 0.9s; }
.fly--5 { left: 27%; top: -2%; --r: 4deg;  --fx: -20vw; --fy: -60vh; --delay: 1s; }
.fly--6 { right: 27%; top: -4%; --r: -4deg; --fx: 20vw;  --fy: -60vh; --delay: 1.1s; }

@keyframes fly-in {
    from { transform: translate(var(--fx), var(--fy)) rotate(calc(var(--r) * -6)) scale(0.6); opacity: 0; }
    to { transform: translate(0, 0) rotate(var(--r)) scale(1); opacity: 1; }
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-12px); }
}

/* Phones: fewer, smaller photos tucked into the corners */
@media (max-width: 640px) {
    .fly--5, .fly--6 { display: none; }
    .fly--1 { left: -4%; top: 2%; }
    .fly--2 { left: -2%; top: 58%; }
    .fly--3 { right: -4%; top: 4%; }
    .fly--4 { right: -2%; top: 60%; }
}

/* ---- Hero copy ---- */
.hero__copy { max-width: 680px; margin: 0 auto; }

.wordmark {
    margin: 8px 0 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.5rem, 8vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--plum);
    animation: rise 0.8s var(--ease-out) 1.9s both;
}

.hero h1 {
    margin: 14px auto 16px;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--ink);
    animation: rise 0.8s var(--ease-out) 2.05s both;
}

.hero .lead {
    margin: 0 auto;
    max-width: 60ch;
    animation: rise 0.8s var(--ease-out) 2.2s both;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    padding: 10px 18px 10px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: #FFFFFF;
    font-weight: 600;
    animation: rise 0.8s var(--ease-out) 2.35s both;
}

.pill img { border-radius: 7px; }

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

/* ---- Sections ---- */
.section-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-wrap: balance;
    margin: 0 0 20px;
}

.styles { padding: 72px 0 24px; }
.styles .section-title { text-align: center; padding: 0 20px; }

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__row {
    display: flex;
    gap: 18px;
    width: max-content;
    margin: 0;
    padding: 12px 0 20px;
    list-style: none;
    animation: marquee 60s linear infinite;
}

.marquee:hover .marquee__row { animation-play-state: paused; }

.marquee__row li {
    display: flex;
    flex-direction: column;
    width: 200px;
    max-width: none;
}

.marquee__row img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(42, 23, 32, 0.14);
    margin-bottom: 10px;
}

.marquee__row b { font-family: var(--display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; }
.marquee__row span { color: var(--muted); font-size: 0.9375rem; }

@keyframes marquee { to { transform: translateX(-50%); } }

.home main.wrap { padding-top: 40px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; max-width: none; }
.steps h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.steps__n {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--plum);
    color: #FBE8CF;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.75rem;
    transform: rotate(-6deg);
}

.steps li:nth-child(2) .steps__n { background: #C97980; transform: rotate(4deg); }
.steps li:nth-child(3) .steps__n { background: #F6C3BF; color: var(--plum); transform: rotate(-3deg); }

.book {
    margin-top: 64px;
    padding: 28px 26px;
    border-radius: 22px;
    background: #FFFFFF;
}

.book p { margin: 0 0 10px; }
.book .meta { margin: 0; }

/* ---- FAQ ---- */
.faq { margin-top: 64px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }

.faq details {
    border-radius: 16px;
    background: #FFFFFF;
    padding: 0 20px;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 28px 18px 0;
    position: relative;
    font-weight: 600;
    font-size: 1.0625rem;
}

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

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--plum);
}

.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .logo__chip, .fly, .fly img, .logo__helix, .wordmark, .hero h1, .hero .lead, .pill { animation: none; }
    .logo__chip { transform: rotate(var(--r)); }
    .fly img { transform: rotate(var(--r)); }
    .logo__helix { transform: rotate(-38deg); }
    .logo__helix .strand { animation: none; stroke-dashoffset: 0; }
    .logo__helix .rungs { animation: none; opacity: 1; }
    .marquee__row { animation: none; }
    .marquee { overflow-x: auto; }
}
