/* =========================================================
   NOCT — Video Editor & Visual Artist
   Dark, atmospheric, cinematic. Purple + red accents.
   ========================================================= */

:root {
    --bg:           #08080a;
    --bg-soft:      #0d0d10;
    --bg-card:      #14141a;
    --bg-card-2:    #1a1a22;
    --border:       #26262e;
    --border-soft:  #1d1d24;
    --text:         #ebedeb;
    --text-dim:     #a1a1aa;
    --text-mute:    #71717a;
    --accent:       #a855f7;          /* primary purple */
    --accent-soft:  #c084fc;          /* lighter purple for hover/text */
    --accent-deep:  #7e22ce;          /* deeper purple for gradients */
    --accent-glow:  #d8b4fe;          /* glow / gradient highlight */
    --red:          #ef4444;          /* red accent */
    --red-soft:     #f87171;
    --red-deep:     #991b1b;
    --teal:         #2dd4bf;          /* faint cinematic teal */
    --shadow:       0 10px 30px rgba(168, 85, 247, 0.30);
    --radius:       14px;
    --radius-sm:    8px;
    --font-sans:    'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-mono:    'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --grain:        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    --ease-out:      cubic-bezier(.22, 1, .36, 1);
    --ease-out-soft: cubic-bezier(.16, 1, .3, 1);
    --anim-fast:     .25s;
    --anim-base:     .55s;
    --anim-slow:     .85s;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(168, 85, 247, 0.10), transparent 60%),
        radial-gradient(900px 500px at 95% 10%, rgba(239, 68, 68, 0.06), transparent 60%),
        var(--bg);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: var(--grain);
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.main { position: relative; z-index: 1; }

a {
    color: var(--accent-soft);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--text); }

img { max-width: 100%; display: block; }

h1, h2, h3 {
    margin: 0 0 .5em;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

/* ---------- layout ---------- */

.main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.section { margin: 4.5rem 0; }
.section--cta {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    margin-top: 5rem;
}
.section__head { margin-bottom: 1.75rem; }
.section__head--spaced { margin-top: 3rem; }
.section__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-left: 1rem;
}
.section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .25rem;
    bottom: .25rem;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--red));
    border-radius: 2px;
}
.section__sub {
    margin: .25rem 0 0 1rem;
    color: var(--text-mute);
    font-size: .95rem;
}

/* ---------- navbar ---------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 8, 10, .75);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
}

.navbar__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    font-weight: 700;
}
.navbar__brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--red-deep) 100%);
    color: #ffffff;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    letter-spacing: -0.04em;
}
.navbar__brand-name {
    font-family: var(--font-mono);
    letter-spacing: 0.18em;
    font-size: .95rem;
}

.navbar__links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar__links a {
    color: var(--text-dim);
    font-weight: 500;
    position: relative;
    padding: .25rem 0;
    font-size: .95rem;
}
.navbar__links a:hover { color: var(--text); }
.navbar__links a.is-active { color: var(--accent-soft); }
.navbar__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--red));
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease-out);
}
.navbar__links a:hover::after,
.navbar__links a.is-active::after {
    transform: scaleX(1);
}

.navbar__cta {
    background: var(--accent);
    color: #0a0a0a !important;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.navbar__cta:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, .35);
}

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

.hero {
    position: relative;
    margin-top: -1rem;
    margin-bottom: 1rem;
}
.hero__inner {
    position: relative;
    padding: 4rem 0 2.5rem;
}

.showreel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: var(--radius);
    pointer-events: none;
}
.showreel__video,
.showreel__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.showreel__poster {
    background:
        radial-gradient(circle at 18% 24%, rgba(168, 85, 247, .55), transparent 55%),
        radial-gradient(circle at 82% 78%, rgba(239, 68, 68, .28), transparent 60%),
        radial-gradient(circle at 50% 110%, rgba(45, 212, 191, .10), transparent 60%),
        linear-gradient(135deg, #0c0a14 0%, #08080a 70%);
}
.showreel__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: .35;
    mix-blend-mode: overlay;
}
.showreel__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,.85) 65%, var(--bg) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent-soft);
    background: rgba(168, 85, 247, .10);
    border: 1px solid rgba(168, 85, 247, .4);
    padding: .4rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.hero__accent {
    background: linear-gradient(90deg, var(--accent-soft), var(--accent-glow) 50%, var(--red-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lede {
    font-size: 1.1rem;
    max-width: 42rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s var(--ease-out), background .2s ease, border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
    background: var(--accent);
    color: #0a0a0a;
    box-shadow: var(--shadow);
}
.btn--primary:hover {
    background: var(--accent-soft);
    color: #0a0a0a;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(168, 85, 247, .35);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-soft);
}
.btn--block { width: 100%; }

/* ---------- video cards ---------- */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}

.video-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 50%),
        linear-gradient(135deg, var(--accent-deep) 0%, var(--red-deep) 100%);
    overflow: hidden;
}

.video-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.video-card__thumb--placeholder {
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.06), transparent 50%),
        repeating-linear-gradient(45deg,
            rgba(0,0,0,.10) 0,
            rgba(0,0,0,.10) 8px,
            transparent 8px,
            transparent 16px),
        linear-gradient(135deg, var(--accent) 0%, var(--red) 100%);
}
.video-card:hover .video-card__thumb { transform: scale(1.04); }

.video-card__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text);
    pointer-events: none;
    background: rgba(0, 0, 0, .15);
    transition: background .2s ease;
}
.video-card__play svg {
    background: var(--red);
    color: #0a0a0a;
    padding: 12px;
    border-radius: 50%;
    width: 46px; height: 46px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.video-card:hover .video-card__play { background: rgba(0, 0, 0, .35); }

.video-card__chip {
    position: absolute;
    top: .65rem;
    left: .65rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(8, 8, 10, .8);
    color: var(--accent-soft);
    border: 1px solid rgba(168, 85, 247, .4);
}

.video-card__body {
    padding: 1.1rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}
.video-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.video-card__client {
    margin: 0;
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent-soft);
}
.video-card__desc {
    margin: .35rem 0 0;
    color: var(--text-dim);
    font-size: .9rem;
}

.link {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--text);
    border-bottom: 1px solid transparent;
    align-self: flex-start;
    margin-top: auto;
    padding-top: .5rem;
}
.link:hover {
    color: var(--accent-soft);
    border-color: var(--accent-soft);
}

.empty {
    color: var(--text-mute);
    font-style: italic;
}

/* ---------- services / what I create ---------- */

.services {
    display: grid;
    gap: 1.25rem;
}
.services--grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.services--socials {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    position: relative;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.service::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .35), transparent);
    opacity: 0;
    transition: opacity .25s ease;
}
.service:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, .5);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .4);
}
.service:hover::before { opacity: 1; }
.service__title {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
    color: var(--text);
    letter-spacing: -0.005em;
}
.service__body {
    margin: 0;
    color: var(--text-dim);
    font-size: .92rem;
    line-height: 1.6;
}

/* ---------- creative style: influence chips ---------- */

.influences {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.influence-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--text-dim);
    background: rgba(168, 85, 247, .08);
    border: 1px solid rgba(168, 85, 247, .25);
    padding: .45rem .85rem;
    border-radius: 999px;
    letter-spacing: .02em;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .15s var(--ease-out);
}
.influence-chip::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--red));
    flex-shrink: 0;
}
.influence-chip:hover {
    color: var(--text);
    border-color: rgba(168, 85, 247, .6);
    background: rgba(168, 85, 247, .14);
    transform: translateY(-2px);
}

/* ---------- tools (software & experience) ---------- */

.tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.tools__col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
}
.tools__col::after {
    content: "";
    position: absolute;
    top: 0; left: 1.5rem; right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .35), transparent);
}
.tools__heading {
    margin: 0 0 1rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent-soft);
    font-family: var(--font-mono);
}
.tools__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .75rem;
}
.tools__list--single {
    grid-template-columns: 1fr;
}
.tools__item {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: .85rem;
    color: var(--text-dim);
    padding: .35rem 0;
    border-bottom: 1px dashed var(--border);
}
.tools__list--single .tools__item {
    padding: .55rem 0;
}

/* ---------- about ---------- */

.about-hero {
    padding: 3rem 0 1rem;
    position: relative;
}
.about-hero__title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #EB0038;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}
.about-grid__copy p { font-size: 1.02rem; line-height: 1.75; }
.about-grid__copy strong { color: var(--text); font-weight: 600; }
.about-grid__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: fit-content;
    position: relative;
    overflow: hidden;
}
.about-grid__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--red));
    border-radius: var(--radius) var(--radius) 0 0;
}
.card__title {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.facts { margin: 0; }
.facts__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--border);
}
.facts__row:last-child { border-bottom: 0; }
.facts__row dt {
    color: var(--text-mute);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.facts__row dd {
    margin: 0;
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: .82rem;
    text-align: right;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid var(--border);
}
.timeline__item {
    position: relative;
    padding: 0 0 1.75rem 1.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
    position: absolute;
    left: -1.85rem;
    top: .35rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(239, 68, 68, .6);
}
.timeline__period {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent-soft);
    margin: 0 0 .25rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.timeline__role {
    font-size: 1.15rem;
    margin: 0;
}
.timeline__company {
    color: var(--text-dim);
    margin: 0 0 .5rem;
    font-style: italic;
}
.timeline__summary {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.7;
}

.approach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.approach__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    border-top: 2px solid var(--accent);
    position: relative;
}
.approach__item:nth-child(2n) { border-top-color: var(--red); }
.approach__label {
    margin: 0 0 .5rem;
    font-size: 1rem;
    color: var(--text);
}
.approach__body {
    margin: 0;
    color: var(--text-dim);
    font-size: .92rem;
    line-height: 1.65;
}

/* ---------- sitewide reveal animation system ---------- */

/* Keyframes used by [data-anim="..."] variants. All variants use @keyframes
   (not transitions) so the JS observer can remove/re-add the is-visible class
   to restart the animation on every viewport crossing. */

@keyframes fadeIn         { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseFromBelow  { from { opacity: 0; transform: translateY(40px); }
                            to   { opacity: 1; transform: none; } }
@keyframes scaleIn        { from { opacity: 0; transform: scale(.96); }
                            to   { opacity: 1; transform: none; } }
@keyframes slideInLeft    { from { opacity: 0; transform: translateX(-40px); }
                            to   { opacity: 1; transform: none; } }
@keyframes slideInRight   { from { opacity: 0; transform: translateX(40px); }
                            to   { opacity: 1; transform: none; } }

[data-anim]            { opacity: 0; will-change: transform, opacity;
                         animation-delay: var(--anim-delay, 0ms);
                         animation-play-state: paused; }
[data-anim="fade"]     { animation-name: fadeIn; }
[data-anim="rise"]     { animation-name: riseFromBelow; }
[data-anim="scale"]    { animation-name: scaleIn; }
[data-anim="left"]     { animation-name: slideInLeft; }
[data-anim="right"]    { animation-name: slideInRight; }

[data-anim].is-visible { animation-fill-mode: forwards;
                         animation-play-state: running;
                         animation-duration: var(--anim-base);
                         animation-timing-function: var(--ease-out);
                         will-change: auto; }
[data-anim="scale"].is-visible    { animation-duration: var(--anim-slow); }
.influence-chip[data-anim].is-visible { animation-duration: var(--anim-fast); }

/* Navbar: persistent, so it gets a one-shot entrance, not the JS observer. */

@keyframes navbarIn { from { opacity: 0; transform: translateY(-6px); }
                      to   { opacity: 1; transform: none; } }
.navbar { animation: navbarIn .4s var(--ease-out) both; }

/* Skip-to-content: sits off-screen until focused via keyboard tab. */

.skip-link { position: absolute; top: -40px; left: 1rem;
             background: var(--accent); color: #0a0a0a;
             padding: .5rem .85rem; border-radius: 6px;
             font-weight: 600; z-index: 200;
             transition: top .2s var(--ease-out); }
.skip-link:focus { top: 1rem; }

/* Visible keyboard focus on every interactive element. */

:focus-visible { outline: 2px solid var(--accent-soft);
                 outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible,
.navbar__cta:focus-visible { outline-color: var(--accent);
                            box-shadow: 0 0 0 3px rgba(168, 85, 247, .35); }

/* Scroll-progress bar pinned to the top; width driven by --scroll on :root. */

.scroll-progress { position: fixed; top: 0; left: 0;
                   height: 2px; width: var(--scroll, 0%);
                   background: var(--accent-soft);
                   box-shadow: 0 0 8px rgba(168, 85, 247, .55);
                   z-index: 60; pointer-events: none;
                   transition: width .08s linear; }

/* Deep-link anchor offset so jump-to-section lands below the sticky navbar. */

.section { scroll-margin-top: 80px; }

/* Brand-mark hover pulse — single-shot, only when the user actually hovers. */

@keyframes brandPulse { 0% { transform: scale(1); }
                        50% { transform: scale(1.08); }
                        100% { transform: scale(1); } }
.navbar__brand:hover .navbar__brand-mark,
.footer__brand:hover  .footer__mark { animation: brandPulse .5s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
    [data-anim], [data-anim].is-visible,
    .navbar, .navbar__brand-mark, .footer__mark,
    .scroll-progress {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        will-change: auto !important;
    }
    .scroll-progress { display: none; }
    .navbar__brand:hover .navbar__brand-mark,
    .footer__brand:hover  .footer__mark { animation: none !important; }
}

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

.contact { max-width: 720px; margin: 0 auto; }
.contact__head { text-align: center; margin-bottom: 2.5rem; }
.contact__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    margin-bottom: .75rem;
    letter-spacing: -0.015em;
}
.contact__lede {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 34rem;
    margin: 0 auto;
    line-height: 1.7;
}

.form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    position: relative;
}
.form::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-deep), var(--red));
    border-radius: var(--radius) var(--radius) 0 0;
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.form__field--full { grid-column: 1 / -1; }

.form__label {
    display: block;
    margin-bottom: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--font-mono);
}
.form__required { color: var(--accent-soft); margin-left: .15rem; }

.form input[type="text"],
.form input[type="email"],
.form textarea {
    width: 100%;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem .9rem;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .2);
    transform: translateY(-1px);
}
.form input, .form textarea { transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s var(--ease-out); }
.form textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.form__help {
    font-size: .8rem;
    color: var(--text-mute);
    margin: .35rem 0 0;
}
.form__field-errors {
    list-style: none;
    margin: .5rem 0 0;
    padding: .6rem .8rem;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: var(--radius-sm);
    color: var(--red-soft);
    font-size: .85rem;
}
.form__errors {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    color: var(--red-soft);
    margin-bottom: 1rem;
}
.form__errors p { margin: 0; color: inherit; }

/* ---------- messages rail ---------- */

.messages {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
}
.message {
    margin: 0 0 .5rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    background: var(--bg-card);
    color: var(--text);
}
.message--success { border-color: #22c55e; }
.message--warning { border-color: var(--red); }
.message--error   { border-color: var(--red); }

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

.footer {
    border-top: 1px solid var(--border-soft);
    background: rgba(8, 8, 10, .7);
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    color: var(--text-dim);
    font-size: .9rem;
}
.footer__mark {
    display: inline-grid;
    place-items: center;
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--accent), var(--red-deep));
    color: #ffffff;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.footer__links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer__links a { color: var(--text-dim); font-size: .9rem; }
.footer__links a:hover { color: var(--accent-soft); }
.footer__copy {
    margin: 0;
    color: var(--text-mute);
    font-size: .85rem;
    font-family: var(--font-mono);
}

/* ---------- work page ---------- */

.work-hero {
    padding: 4rem 1.5rem 2rem;
    max-width: 1120px;
    margin: 0 auto;
}
.work-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: .5rem 0 1rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
}
.work-hero__lede {
    color: var(--text-dim);
    max-width: 60ch;
    margin: 0;
    line-height: 1.7;
}

/* ---------- social media (reuses .services grid) ---------- */

.service--social {
    display: block;
    text-decoration: none;
    color: inherit;
}
.service--social .service__title {
    color: var(--accent-soft);
}
.service--social .service__body {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: .85rem;
}

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

@media (max-width: 720px) {
    .navbar__links { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .form__grid { grid-template-columns: 1fr; }
    .tools { grid-template-columns: 1fr; }
    .footer__inner { justify-content: center; text-align: center; }
    .hero__title { font-size: clamp(2.1rem, 8vw, 3rem); }
    .hero__inner { padding: 2.5rem 0 1.5rem; }
    .tools__list { grid-template-columns: 1fr; }
}
