:root {
    --primary: #835938;
    --primary-dark: #55351f;
    --primary-light: #c9a77d;
    --primary-lighter: #dfcfbb;
    --bg-primary: #f7f1e8;
    --bg-secondary: #efe4d6;
    --bg-tertiary: #e3d2bd;
    --bg-card: #fffdf8;
    --text-dark: #241a15;
    --text-primary: #382a22;
    --text-secondary: #57463b;
    --text-muted: #725f51;
    --accent-cream: #eadbc8;
    --gradient-primary: linear-gradient(135deg, #74482c 0%, #a87850 100%);
    --shadow-sm: 0 6px 22px rgba(55, 35, 23, 0.08);
    --shadow-md: 0 18px 50px rgba(55, 35, 23, 0.12);
    --shadow-lg: 0 28px 80px rgba(55, 35, 23, 0.16);
}

html {
    scroll-padding-top: 84px;
}

body {
    background:
        radial-gradient(circle at 15% 2%, rgba(198, 163, 119, 0.16), transparent 25rem),
        var(--bg-primary);
}

body.menu-open {
    overflow: hidden;
}

.mobile-nav {
    opacity: 1;
    visibility: hidden;
    transform: translateY(-102%);
    background:
        radial-gradient(circle at 50% 18%, rgba(196, 157, 116, 0.28), transparent 18rem),
        #f7f1e8;
    transition: transform 360ms var(--ease-out-expo), visibility 0s linear 360ms;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.mobile-nav-content {
    position: relative;
    z-index: 1;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(72, 47, 30, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 47, 30, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 0, transparent 70%);
}

::selection {
    background: var(--primary-dark);
    color: #fffaf1;
}

.nav {
    padding: 16px clamp(20px, 3vw, 48px);
}

.nav-inner {
    max-width: 1380px;
    padding: 10px 12px 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
}

.nav.scrolled .nav-inner {
    background: rgba(255, 253, 248, 0.9);
    border-color: rgba(91, 57, 34, 0.15);
    box-shadow: 0 12px 36px rgba(52, 33, 22, 0.1);
    backdrop-filter: blur(18px);
}

.nav.scrolled {
    background: transparent;
    box-shadow: none;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--primary);
    transition: right 220ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    right: 0;
}

.nav-cta,
.btn-primary {
    background: var(--primary-dark);
    box-shadow: none;
}

.nav-cta:hover,
.btn-primary:hover {
    background: #2f2119;
}

.slide {
    min-height: auto;
    padding: clamp(96px, 10vw, 150px) clamp(24px, 5vw, 72px);
    overflow: clip;
    scroll-margin-top: 76px;
    isolation: isolate;
}

.slide:not(.slide-hero)::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -90px;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--section-color, var(--bg-primary)) 82%, transparent));
    pointer-events: none;
}

.slide-hero {
    min-height: 100svh;
    padding-top: 88px;
    padding-bottom: 42px;
    background:
        radial-gradient(circle at 75% 42%, rgba(179, 132, 88, 0.22), transparent 26rem),
        linear-gradient(145deg, #fffdf9 0%, #f4eadf 68%, #ead8c3 100%);
}

.hero-split {
    min-height: calc(100svh - 130px);
    max-width: 1380px;
    gap: clamp(36px, 6vw, 92px);
    padding: 0 clamp(4px, 2vw, 28px);
}

.hero-content-wrap {
    max-width: 650px;
    padding-left: clamp(0px, 2.4vw, 34px);
    border-left: 1px solid rgba(80, 48, 29, 0.24);
}

.hero-badge {
    background: rgba(255, 253, 248, 0.68);
    border-color: rgba(82, 49, 29, 0.18);
    border-radius: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.title-main {
    font-size: clamp(2.5rem, 5.8vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.title-highlight {
    margin-top: 0.08em;
    font-size: clamp(3rem, 6.8vw, 6.4rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.title-sub {
    margin-top: 22px;
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
}

.hero-description {
    max-width: 620px;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.75;
}

.btn {
    min-height: 52px;
    border-radius: 3px;
}

.btn-outline {
    border-width: 1px;
}

.hero-features {
    gap: 10px 24px;
}

.feature-item {
    color: var(--text-primary);
}

.feature-item i {
    font-size: 0.72rem;
}

.hero-visual {
    max-width: 650px;
}

.hero-visual::before {
    content: 'IDENTITET  ·  PRINT  ·  DIGITAL';
    position: absolute;
    top: 50%;
    right: -52px;
    z-index: 4;
    color: rgba(69, 42, 26, 0.54);
    font-size: 0.66rem;
    letter-spacing: 0.34em;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
}

.hero-logo-showcase img {
    box-shadow: 0 28px 70px rgba(69, 42, 26, 0.18);
    outline: 8px solid rgba(255, 253, 248, 0.66);
    outline-offset: 10px;
}

.logo-ring {
    border-width: 1px;
    opacity: 0.24;
}

.floating-card {
    border-color: rgba(82, 49, 29, 0.18);
    border-radius: 3px;
    box-shadow: var(--shadow-sm);
}

.floating-card i {
    background: var(--primary-dark);
}

.slide-portfolio {
    --section-color: #f6efe6;
    background: linear-gradient(180deg, #f6efe6 0%, #efe2d2 100%);
}

.slide-services {
    --section-color: #2e211a;
    color: #fff9f0;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        #2e211a;
    background-size: 52px 52px;
}

.slide-services .section-title,
.slide-services .section-desc,
.slide-services .section-label {
    color: #fff9f0;
}

.slide-services .section-desc,
.slide-services .section-label {
    opacity: 0.75;
}

.slide-process {
    --section-color: #f7f1e8;
    background: linear-gradient(180deg, #f2e7da, #f9f5ef);
}

.slide-faq {
    --section-color: #e8d7c4;
    background: linear-gradient(180deg, #f0e4d6, #e7d3bd);
}

.section-intro {
    gap: 12px;
}

.section-num {
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.section-line {
    width: clamp(42px, 8vw, 110px);
    height: 1px;
    background: currentColor;
    opacity: 0.45;
}

.section-title {
    max-width: 820px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.section-title .highlight {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.portfolio-showcase {
    justify-content: flex-start;
}

.showcase-card {
    max-width: 980px;
}

.card-frame {
    padding: clamp(10px, 1.4vw, 18px);
    border: 1px solid rgba(70, 43, 27, 0.2);
    border-radius: 4px;
    background: #2c2019;
    box-shadow: 28px 34px 0 rgba(105, 70, 46, 0.12);
}

.showcase-img {
    border-radius: 2px;
}

.card-overlay {
    inset: clamp(10px, 1.4vw, 18px);
    background: rgba(42, 29, 22, 0.93);
}

.showcase-card:focus-within .card-overlay {
    opacity: 1;
}

.card-info {
    border-bottom: 1px solid rgba(72, 45, 29, 0.18);
}

.services-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.service-card {
    grid-column: span 6;
    min-height: 100%;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(235, 216, 193, 0.24);
    border-radius: 3px;
    color: #2b1f18;
    box-shadow: none;
}

.service-card:nth-child(2),
.service-card:nth-child(4) {
    transform: translateY(28px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.service-card:nth-child(2):hover,
.service-card:nth-child(4):hover {
    transform: translateY(23px);
}

.service-card::after {
    content: '0' attr(data-service);
    position: absolute;
    right: 24px;
    bottom: 14px;
    color: rgba(87, 57, 38, 0.08);
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 1;
    pointer-events: none;
}

.service-card::before {
    height: 2px;
    border-radius: 0;
}

.service-icon,
.faq-icon,
.step-icon {
    border-radius: 3px;
}

.price-value {
    color: var(--primary-dark);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 29px;
    width: 1px;
    background: linear-gradient(to bottom, var(--primary), rgba(131, 89, 56, 0.14));
}

.step-marker {
    border-width: 1px;
    background: var(--primary-dark);
    color: #fff9ef;
}

.step-card {
    border-radius: 3px;
    background: rgba(255, 253, 248, 0.78);
    backdrop-filter: blur(8px);
}

.faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid rgba(69, 42, 26, 0.24);
}

.faq-card {
    min-height: 240px;
    padding: 34px;
    border: 0;
    border-right: 1px solid rgba(69, 42, 26, 0.18);
    border-bottom: 1px solid rgba(69, 42, 26, 0.18);
    border-radius: 0;
    background: rgba(255, 253, 248, 0.42);
}

.faq-card:nth-child(2n) {
    border-right: 0;
}

.footer {
    position: relative;
    padding-top: 90px;
    background: #211813;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, #e7d3bd, #211813);
}

.footer-cta {
    border-radius: 3px;
    border-color: rgba(223, 194, 158, 0.3);
}

.cta-button,
.floating-ig {
    border-radius: 3px;
}

.scroll-progress {
    height: 4px;
    background: rgba(49, 31, 21, 0.12);
}

.progress-bar {
    background: linear-gradient(90deg, #5b3822, #c49467);
}

.title-main,
.title-highlight,
.section-title {
    text-wrap: balance;
}

.title-highlight {
    text-shadow: 5px 6px 0 rgba(131, 89, 56, .12);
}

.service-card,
.step-card,
.faq-card {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .46), transparent 46%);
    box-shadow: inset 0 3px rgba(131, 89, 56, .14), var(--shadow-sm);
}

.showcase-card .card-frame {
    outline: 1px solid rgba(85, 53, 31, .18);
    outline-offset: 7px;
}

.btn-primary,
.cta-button {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.cta-button::after {
    position: absolute;
    right: 14%;
    bottom: 7px;
    left: 14%;
    height: 2px;
    transform: scaleX(.22) skewX(-26deg);
    transform-origin: left;
    content: "";
    background: currentColor;
    transition: transform 240ms ease;
}

.slide:not(.slide-hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 880px;
}

@media (hover: hover) {
    .btn-primary:hover::after,
    .cta-button:hover::after {
        transform: scaleX(1) skewX(-26deg);
    }
}

.duca-motion-intro {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 900;
    width: min(320px, calc(100vw - 36px));
    transform: translate(-50%, -7px);
    opacity: 0;
    pointer-events: none;
    animation: duca-intro-pass 650ms var(--ease-out-expo) both;
}

.duca-motion-intro svg {
    width: 100%;
    overflow: visible;
    filter: drop-shadow(0 5px 12px rgba(85, 53, 31, .13));
}

.duca-motion-intro__paper,
.duca-motion-intro__stroke,
.duca-motion-intro__nib {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.duca-motion-intro__paper {
    stroke: rgba(85, 53, 31, .15);
}

.duca-motion-intro__stroke {
    stroke: var(--primary-dark);
    stroke-width: 2;
    stroke-dasharray: 380;
    stroke-dashoffset: 380;
    animation: duca-stroke-draw 520ms 45ms var(--ease-out-expo) forwards;
}

.duca-motion-intro__nib {
    fill: var(--bg-card);
    stroke: var(--primary-dark);
    opacity: 0;
    animation: duca-nib-in 260ms 230ms ease-out forwards;
}

@keyframes duca-intro-pass {
    0% { opacity: 0; transform: translate(-50%, -7px); }
    16%, 76% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 4px); }
}

@keyframes duca-stroke-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes duca-nib-in {
    to { opacity: 1; transform: translateX(5px); }
}

.chapter-rail {
    display: none;
}

.reveal-in {
    animation: duca-reveal 720ms var(--ease-out-expo) both;
}

.reveal-in[data-motion-delay="1"] { animation-delay: 60ms; }
.reveal-in[data-motion-delay="2"] { animation-delay: 120ms; }
.reveal-in[data-motion-delay="3"] { animation-delay: 180ms; }

.reveal-in[data-motion-kind="curve"] { animation-name: duca-reveal-curve; }
.reveal-in[data-motion-kind="scale"] { animation-name: duca-reveal-scale; }

@keyframes duca-reveal {
    from { opacity: 0.62; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes duca-reveal-curve {
    from { opacity: .62; transform: translate(-16px, 14px) rotate(-.35deg); }
    to { opacity: 1; transform: none; }
}

@keyframes duca-reveal-scale {
    from { opacity: .68; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 1500px) {
    .chapter-rail {
        position: fixed;
        z-index: 850;
        top: 50%;
        left: 20px;
        display: grid;
        gap: 12px;
        transform: translateY(-50%);
    }

    .chapter-track {
        position: absolute;
        top: 8px;
        bottom: 8px;
        left: 13px;
        width: 1px;
        display: none;
    }

    .duca-guide {
        position: absolute;
        inset: 5px auto 5px 4px;
        z-index: -1;
        width: 38px;
        height: calc(100% - 10px);
        overflow: visible;
    }

    .duca-guide__track,
    .duca-guide__line {
        fill: none;
        stroke-linecap: round;
        stroke-width: 1.2;
    }

    .duca-guide__track { stroke: rgba(70, 43, 27, .16); }
    .duca-guide__line { stroke: var(--primary-dark); stroke-dasharray: 0 1; }

    .chapter-track span {
        display: block;
        width: 100%;
        height: 0;
        background: var(--primary-dark);
        transition: height 120ms linear;
    }

    .chapter-rail a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 28px;
        color: var(--text-muted);
    }

    .chapter-rail a span {
        position: relative;
        z-index: 1;
        display: grid;
        width: 27px;
        height: 27px;
        place-items: center;
        border: 1px solid rgba(70, 43, 27, 0.2);
        border-radius: 50%;
        background: var(--bg-primary);
        font-size: 0.58rem;
        font-variant-numeric: tabular-nums;
    }

    .chapter-rail a strong {
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        font-size: 0.7rem;
        font-weight: 600;
        white-space: nowrap;
        transition: max-width 220ms ease, opacity 180ms ease;
    }

    .chapter-rail a:hover strong,
    .chapter-rail a:focus-visible strong,
    .chapter-rail a.active strong {
        max-width: 70px;
        opacity: 1;
    }

    .chapter-rail a.active span {
        border-color: var(--primary-dark);
        background: var(--primary-dark);
        color: #fffaf2;
    }
}

@media (max-width: 1024px) {
    .hero-split {
        padding-top: 56px;
    }

    .hero-content-wrap {
        padding-left: 0;
        border-left: 0;
    }

    .hero-visual::before {
        display: none;
    }

    .service-card:nth-child(2),
    .service-card:nth-child(4),
    .service-card:nth-child(2):hover,
    .service-card:nth-child(4):hover {
        transform: none;
    }
}

@media (max-width: 760px) {
    body::before {
        background-size: 32px 32px;
    }

    .nav {
        padding: 10px 12px;
    }

    .nav-inner {
        background: rgba(255, 253, 248, 0.9);
        border-color: rgba(91, 57, 34, 0.13);
        backdrop-filter: blur(16px);
    }

    .slide {
        padding: 88px 20px;
    }

    .slide-hero {
        min-height: auto;
        padding-top: 88px;
        padding-bottom: 76px;
    }

    .hero-split {
        min-height: auto;
        gap: 48px;
        padding: 30px 2px 0;
    }

    .title-main {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .title-highlight {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }

    .hero-buttons {
        align-items: stretch;
    }

    .hero-logo-showcase {
        width: 230px;
        height: 230px;
    }

    .hero-logo-showcase img {
        width: 128px;
        height: 128px;
    }

    .section-title {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-card {
        grid-column: 1;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-card,
    .faq-card:nth-child(2n) {
        min-height: 0;
        border-right: 0;
    }

    .card-frame {
        box-shadow: 12px 14px 0 rgba(105, 70, 46, 0.12);
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
    }
}

@media (hover: none) {
    .card-overlay {
        position: relative;
        inset: auto;
        opacity: 1;
        min-height: 220px;
        background: #2c2019;
    }

    .showcase-card:hover .card-frame,
    .service-card:hover,
    .faq-card:hover,
    .process-step:hover .step-card,
    .process-step:hover .step-marker {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-in,
    .floating-card,
    .logo-ring,
    .floating-pulse,
    .bg-circle,
    .duca-motion-intro,
    .duca-guide {
        animation: none !important;
    }

    .duca-motion-intro,
    .chapter-rail {
        display: none !important;
    }
}
