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

:root {
    --ink:       #0C0C0E;
    --ink-soft:  #1A1A20;
    --parchment: #F4EFE6;
    --cream:     #FAF7F2;
    --gold:      #B8913A;
    --gold-lt:   #D4AA5A;
    --slate:     #3E5C72;
    --mist:      #8E9BAA;
    --rule:      rgba(184,145,58,0.25);
    --ff-serif:  'Cormorant Garamond', Georgia, serif;
    --ff-mono:   'DM Mono', 'Courier New', monospace;
    --ff-sans:   'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--parchment);
    font-family: var(--ff-sans);
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
}

/* ── custom cursor ── */
.cursor {
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform .12s ease, width .25s ease, height .25s ease, background .25s ease;
    mix-blend-mode: exclusion;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform .3s cubic-bezier(.25,.1,.25,1), width .35s ease, height .35s ease, opacity .3s;
    opacity: 0.6;
}
body:hover .cursor { opacity: 1; }

/* ── noise overlay ── */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 60px;
    border-bottom: 1px solid transparent;
    transition: border-color .4s, background .4s, padding .4s;
}
nav.scrolled {
    background: rgba(12,12,14,0.88);
    backdrop-filter: blur(18px);
    border-color: var(--rule);
    padding: 18px 60px;
}
.nav-logo {
    font-family: var(--ff-serif);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--parchment);
    text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-family: var(--ff-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mist);
    text-decoration: none;
    transition: color .2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: -3px; left: 0; right: 100%;
    height: 1px; background: var(--gold);
    transition: right .3s ease;
}
.nav-links a:hover { color: var(--parchment); }
.nav-links a:hover::after { right: 0; }

/* ── HERO ── */
#hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 140px 60px 80px;
    overflow: hidden;
}

/* animated grid bg */
.grid-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image:
    linear-gradient(rgba(184,145,58,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,145,58,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 30s linear infinite;
    mask-image: radial-gradient(ellipse 80% 80% at 60% 50%, black 30%, transparent 100%);
}
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 60px 60px; } }

/* floating data dots */
.dot-field {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.dot {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: floatDot var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes floatDot {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    20%  { opacity: var(--op, .4); }
    80%  { opacity: var(--op, .4); }
    100% { opacity: 0; transform: translateY(-80px) scale(.5); }
}

/* glowing orb */
.orb {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62,92,114,.35) 0%, transparent 70%);
    right: -100px; top: 50%; transform: translateY(-50%);
    animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
    0%,100% { transform: translateY(-50%) scale(1); opacity:.8; }
    50% { transform: translateY(-50%) scale(1.08); opacity:1; }
}

/* probability curve SVG */
.prob-curve {
    position: absolute; right: 60px; top: 50%;
    transform: translateY(-50%);
    width: 440px; opacity: .18;
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--ff-mono);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: 0; animation: fadeUp .8s .2s forwards;
}
.hero-title {
    font-family: var(--ff-serif);
    font-size: clamp(3.4rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -.01em;
    max-width: 780px;
    opacity: 0; animation: fadeUp .9s .4s forwards;
}
.hero-title em {
    font-style: italic;
    color: var(--gold-lt);
}
.hero-sub {
    font-family: var(--ff-serif);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 300;
    font-style: italic;
    color: var(--mist);
    max-width: 560px;
    margin-top: 24px;
    line-height: 1.65;
    opacity: 0; animation: fadeUp .9s .6s forwards;
}
.hero-cta {
    display: flex; gap: 20px; margin-top: 48px;
    opacity: 0; animation: fadeUp .9s .8s forwards;
}
.btn-primary {
    font-family: var(--ff-mono);
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    border: none;
    padding: 14px 36px;
    text-decoration: none;
    cursor: none;
    position: relative; overflow: hidden;
    transition: background .3s;
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--gold-lt);
    transform: translateX(-101%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
    font-family: var(--ff-mono);
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--parchment);
    background: transparent;
    border: 1px solid var(--rule);
    padding: 14px 36px;
    text-decoration: none;
    cursor: none;
    transition: border-color .3s, color .3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-scroll-hint {
    position: absolute; bottom: 40px; left: 60px;
    display: flex; align-items: center; gap: 14px;
    font-family: var(--ff-mono); font-size: .65rem;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--mist); opacity: 0;
    animation: fadeUp .8s 1.2s forwards;
}
.scroll-line {
    width: 40px; height: 1px; background: var(--mist);
    animation: scrollPulse 2s 1.5s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,100% { width: 40px; } 50% { width: 70px; background: var(--gold); }
}

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

/* ── STATS BAND ── */
.stats-band {
    position: relative; z-index: 1;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.015);
}
.stat-item {
    padding: 44px 48px;
    border-right: 1px solid var(--rule);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-family: var(--ff-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold-lt);
    line-height: 1;
}
.stat-label {
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--mist);
    margin-top: 10px;
}

/* ── SECTION SHARED ── */
section { position: relative; z-index: 1; }
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 60px;
}
.section-tag {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
}
.section-tag::before {
    content: '';
    display: block; width: 32px; height: 1px; background: var(--gold);
}
.section-heading {
    font-family: var(--ff-serif);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -.01em;
}
.section-heading em { font-style: italic; color: var(--gold-lt); }

/* ── ABOUT ── */
#about { background: var(--ink-soft); }
#about .section-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start;
}
.about-left { position: sticky; top: 120px; }
.about-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(244,239,230,.72);
    margin-top: 40px;
}
.about-body p + p { margin-top: 22px; }
.about-body strong { color: var(--parchment); font-weight: 500; }

/* divider rule */
.about-rule {
    width: 60px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 40px 0;
}

/* industry pills */
.industries {
    margin-top: 56px;
}
.industries-label {
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 16px;
}
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    font-family: var(--ff-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid var(--rule);
    padding: 8px 18px;
    color: var(--mist);
    transition: border-color .25s, color .25s, background .25s;
}
.pill:hover { border-color: var(--gold); color: var(--gold); background: rgba(184,145,58,.06); }

/* feature cards */
.feature-cards { display: flex; flex-direction: column; gap: 2px; }
.feature-card {
    padding: 40px 44px;
    border: 1px solid var(--rule);
    position: relative; overflow: hidden;
    cursor: none;
    transition: background .3s, border-color .3s;
}
.feature-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--gold);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.feature-card:hover { background: rgba(255,255,255,.025); border-color: rgba(184,145,58,.4); }
.feature-card:hover::before { transform: scaleY(1); }
.feature-num {
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .18em;
    color: var(--gold);
    margin-bottom: 16px;
}
.feature-title {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 14px;
}
.feature-desc {
    font-size: .9rem;
    line-height: 1.75;
    color: rgba(244,239,230,.6);
}

/* ── INDUSTRIES SECTION ── */
#industries { background: var(--ink); }
#industries .section-inner { text-align: center; }
#industries .section-heading { margin-bottom: 70px; }
.industry-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}
.industry-cell {
    background: var(--ink);
    padding: 48px 24px;
    text-align: center;
    position: relative; overflow: hidden;
    transition: background .3s;
    cursor: none;
}
.industry-cell::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(184,145,58,.1) 0%, transparent 70%);
    opacity: 0; transition: opacity .4s;
}
.industry-cell:hover { background: rgba(255,255,255,.02); }
.industry-cell:hover::after { opacity: 1; }
.industry-icon {
    font-size: 2rem; margin-bottom: 18px;
    display: block; filter: grayscale(.3);
}
.industry-name {
    font-family: var(--ff-mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mist);
    transition: color .3s;
}
.industry-cell:hover .industry-name { color: var(--gold-lt); }

/* ── APPROACH / PHILOSOPHY ── */
#approach { background: var(--ink-soft); }
#approach .section-inner {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; align-items: center;
}
.approach-visual {
    position: relative; height: 420px;
}
/* animated bell-curve viz */
.curve-container {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.curve-container svg { overflow: visible; }
.curve-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCurve 2s 0.5s ease forwards;
}
@keyframes drawCurve {
    to { stroke-dashoffset: 0; }
}
.ci-shade {
    opacity: 0; animation: fadeIn .8s 2s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.axis-line { stroke: rgba(184,145,58,.3); stroke-width: 1; }
.tick-label {
    font-family: var(--ff-mono); font-size: 10px; fill: var(--mist);
}
.approach-content { }
.approach-quote {
    font-family: var(--ff-serif);
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
    color: var(--parchment);
    border-left: 2px solid var(--gold);
    padding-left: 28px;
    margin: 36px 0;
}
.approach-body {
    font-size: .95rem;
    line-height: 1.85;
    color: rgba(244,239,230,.65);
}

/* ── CONTACT ── */
#contact { background: var(--ink); }
#contact .section-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start;
}
.contact-intro {
    font-family: var(--ff-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    line-height: 1.5;
    color: rgba(244,239,230,.8);
    margin-top: 28px;
}
.contact-details { margin-top: 52px; }
.contact-item {
    display: flex; flex-direction: column;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}
.contact-item:first-child { border-top: 1px solid var(--rule); }
.contact-item-label {
    font-family: var(--ff-mono);
    font-size: .62rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 8px;
}
.contact-item-value {
    font-size: 1rem; color: var(--parchment);
}

.contact-form { padding-top: 8px; }
.form-row { margin-bottom: 20px; }
.form-row label {
    display: block;
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 10px;
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--rule);
    color: var(--parchment);
    font-family: var(--ff-sans);
    font-size: .9rem;
    font-weight: 300;
    padding: 14px 18px;
    outline: none;
    transition: border-color .25s;
    resize: none;
    -webkit-appearance: none;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--gold); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(142,155,170,.5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--rule);
    padding: 36px 60px;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--ink);
}
.footer-logo {
    font-family: var(--ff-serif);
    font-size: 1.1rem;
    color: var(--parchment);
}
.footer-logo span { color: var(--gold); }
.footer-copy {
    font-family: var(--ff-mono);
    font-size: .62rem;
    letter-spacing: .1em;
    color: var(--mist);
}

/* ── REVEAL ANIMATION ── */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

/* ── PROJECTS ── */
#projects { background: var(--ink); }
#projects .section-inner { }
.projects-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 64px;
    flex-wrap: wrap; gap: 24px;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.project-card {
    position: relative;
    background: var(--ink-soft);
    overflow: hidden;
    cursor: none;
    border: 1px solid var(--rule);
    display: flex; flex-direction: column;
    transition: border-color .3s;
}
.project-card:hover { border-color: rgba(184,145,58,.5); }

.project-img-wrap {
    position: relative;
    width: 100%; aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--ink);
}
.project-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(.3) brightness(.85);
    transition: transform .6s cubic-bezier(.4,0,.2,1), filter .4s;
}
.project-card:hover .project-img-wrap img {
    transform: scale(1.04);
    filter: grayscale(0) brightness(.95);
}

/* placeholder when no image provided */
.project-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ink-soft) 0%, #111118 100%);
    position: relative;
}
.project-img-placeholder svg { opacity: .12; }
.project-img-placeholder::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
    linear-gradient(rgba(184,145,58,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,145,58,.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12,12,14,.85) 0%, transparent 60%);
    pointer-events: none;
}

.project-tag {
    position: absolute; top: 18px; left: 18px;
    font-family: var(--ff-mono);
    font-size: .6rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    background: rgba(12,12,14,.75);
    border: 1px solid var(--rule);
    color: var(--gold);
    padding: 5px 12px;
    backdrop-filter: blur(6px);
}

.project-body {
    padding: 28px 30px 32px;
    display: flex; flex-direction: column; flex: 1;
}
.project-number {
    font-family: var(--ff-mono);
    font-size: .6rem;
    letter-spacing: .18em;
    color: var(--gold);
    margin-bottom: 10px;
}
.project-title {
    font-family: var(--ff-serif);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--parchment);
    transition: color .2s;
}
.project-card:hover .project-title { color: var(--gold-lt); }
.project-desc {
    font-size: .88rem;
    line-height: 1.75;
    color: rgba(244,239,230,.58);
    flex: 1;
}
.project-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}
.project-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.project-chip {
    font-family: var(--ff-mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mist);
    border: 1px solid rgba(142,155,170,.25);
    padding: 4px 10px;
}
.project-arrow {
    width: 28px; height: 28px;
    border: 1px solid var(--rule);
    display: flex; align-items: center; justify-content: center;
    color: var(--mist);
    flex-shrink: 0;
    transition: border-color .2s, color .2s, transform .25s;
}
.project-card:hover .project-arrow {
    border-color: var(--gold);
    color: var(--gold);
    transform: translate(2px,-2px);
}

@media (max-width: 900px) {
    .projects-grid { grid-template-columns: 1fr; }
    .projects-header { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    nav { padding: 22px 28px; }
    nav.scrolled { padding: 14px 28px; }
    .nav-links { display: none; }
    #hero { padding: 130px 28px 70px; }
    .prob-curve { display: none; }
    .stats-band { grid-template-columns: 1fr 1fr; }
    .stat-item:nth-child(2) { border-right: none; }
    .section-inner { padding: 80px 28px; }
    #about .section-inner,
    #approach .section-inner,
    #contact .section-inner { grid-template-columns: 1fr; gap: 56px; }
    .about-left { position: static; }
    .industry-grid { grid-template-columns: repeat(3, 1fr); }
    footer { flex-direction: column; gap: 14px; text-align: center; padding: 28px; }
}
