/* ========================================
   唯度裝修設計 VIDO — Design System
   ======================================== */

/* ---------- Tokens ---------- */
:root {
    /* Colors - extracted from logo */
    --c-primary:        #8B7E8E;   /* 藕灰紫 */
    --c-primary-dark:   #6E6273;
    --c-primary-light:  #B0A6B2;
    --c-secondary:      #6B5D3F;   /* 橄欖褐 */
    --c-secondary-dk:   #4F432D;
    --c-secondary-lt:   #8C7E5F;

    --c-ink:            #2B2B2B;
    --c-ink-2:          #4A4A4A;
    --c-mute:           #6B6B6B;
    --c-line:           rgba(43, 43, 43, 0.10);
    --c-line-2:         rgba(43, 43, 43, 0.05);

    --c-bg:             #FAF8F4;   /* 米白底 */
    --c-bg-2:           #F2EEE7;
    --c-white:          #FFFFFF;
    --c-black:          #1A1A1A;

    /* Type scale */
    --f-serif-cn: "Noto Serif TC", "Songti TC", "STSong", serif;
    --f-sans-cn:  "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --f-serif-en: "Cormorant Garamond", "Times New Roman", serif;
    --f-sans-en:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 9rem;

    /* Layout */
    --container-max: 1280px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 2px;
    --radius-lg: 6px;

    /* Effects */
    --shadow-sm: 0 2px 10px rgba(43,43,43,0.05);
    --shadow-md: 0 10px 30px rgba(43,43,43,0.08);
    --shadow-lg: 0 20px 50px rgba(43,43,43,0.12);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--f-sans-cn), var(--f-sans-en);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.005em;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
    position: relative;
}

.section__head {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section__eyebrow {
    font-family: var(--f-sans-en);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--c-secondary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.section__title {
    font-family: var(--f-serif-cn);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    color: var(--c-ink);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.section__lead {
    font-size: 1.0625rem;
    color: var(--c-mute);
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--c-primary);
    color: var(--c-white);
    border-color: var(--c-primary);
}
.btn--primary:hover {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--c-white);
    border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--c-white);
}

.btn--block {
    width: 100%;
}

/* ============================================
   HEADER
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.4s var(--ease);
    background: transparent;
}
.header.is-scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--c-line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.header__logo {
    height: 44px;
    width: auto;
    transition: filter 0.3s var(--ease);
}
.header.is-scrolled .header__logo {
    filter: none;
}
.header:not(.is-scrolled) .header__logo {
    filter: brightness(0) invert(1);
}

.header__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.header__brand-cn {
    font-family: var(--f-serif-cn);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-white);
    letter-spacing: 0.08em;
    transition: color 0.4s var(--ease);
}
.header.is-scrolled .header__brand-cn {
    color: var(--c-ink);
}
.header__brand-en {
    font-family: var(--f-sans-en);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
    transition: color 0.4s var(--ease);
}
.header.is-scrolled .header__brand-en {
    color: var(--c-mute);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.nav__link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--c-white);
    position: relative;
    transition: color 0.3s var(--ease);
    letter-spacing: 0.05em;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.header.is-scrolled .nav__link { color: var(--c-ink); }

.nav__link--cta {
    padding: 0.55rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius);
    color: var(--c-white);
    transition: all 0.3s var(--ease);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-white);
}
.header.is-scrolled .nav__link--cta {
    border-color: var(--c-primary);
    color: var(--c-primary);
}
.header.is-scrolled .nav__link--cta:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.hamburger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--c-white);
    transition: all 0.3s var(--ease);
}
.header.is-scrolled .hamburger span { background: var(--c-ink); }
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: hero-zoom 14s ease-out forwards;
}
@keyframes hero-zoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1); }
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.35) 40%,
            rgba(0,0,0,0.55) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--c-white);
    padding: 0 var(--gutter);
    max-width: 900px;
    margin-top: 4rem;
}

.hero__eyebrow {
    font-family: var(--f-sans-en);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-family: var(--f-serif-cn);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    color: var(--c-white);
}

.hero__title-line {
    display: block;
}

.hero__accent {
    position: relative;
    color: var(--c-white);
    font-style: italic;
    font-family: var(--f-serif-cn);
}
.hero__accent--alt {
    color: #D4C9B5; /* warm cream, complements the olive */
}

.hero__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    line-height: 1.9;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
}
.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255,255,255,0.9);
    animation: scroll-line 2s var(--ease) infinite;
}
@keyframes scroll-line {
    0%   { top: -50%; }
    100% { top: 150%; }
}
.hero__scroll-text {
    font-family: var(--f-sans-en);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
}

/* ============================================
   ABOUT
============================================ */
.section--about { background: var(--c-bg); }

.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.about__text .section__title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about__lead {
    font-size: 1.0625rem;
    color: var(--c-ink-2);
    margin-bottom: var(--space-md);
    line-height: 1.85;
}
.about__body {
    color: var(--c-mute);
    margin-bottom: var(--space-xl);
    line-height: 1.85;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--c-line);
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat__num {
    font-family: var(--f-serif-en);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.stat__num sup {
    font-size: 0.6em;
    color: var(--c-secondary);
    vertical-align: top;
    margin-left: 2px;
}
.stat__label {
    font-size: 0.8rem;
    color: var(--c-mute);
    letter-spacing: 0.05em;
}

.about__img-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius);
}
.about__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.about__img-wrap:hover img { transform: scale(1.05); }

.about__img-caption {
    margin-top: var(--space-sm);
    font-family: var(--f-sans-en);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--c-mute);
    text-transform: uppercase;
}

/* ============================================
   SERVICES
============================================ */
.section--services {
    background: var(--c-bg-2);
}

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

.service-card {
    background: var(--c-white);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius);
    position: relative;
    transition: all 0.4s var(--ease);
    border: 1px solid transparent;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--c-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-line);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__num {
    font-family: var(--f-serif-en);
    font-size: 0.875rem;
    color: var(--c-secondary);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
    color: var(--c-primary);
    transition: color 0.3s var(--ease);
}
.service-card__icon svg {
    width: 100%;
    height: 100%;
}
.service-card:hover .service-card__icon { color: var(--c-secondary); }

.service-card__title {
    font-family: var(--f-serif-cn);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--c-ink);
    margin-bottom: 0.4rem;
}
.service-card__en {
    font-family: var(--f-sans-en);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--c-mute);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}
.service-card__desc {
    font-size: 0.9375rem;
    color: var(--c-mute);
    line-height: 1.8;
}

/* ============================================
   PORTFOLIO
============================================ */
.section--portfolio { background: var(--c-bg); }

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.portfolio__item {
    grid-column: span 3;
    grid-row: span 1;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--c-bg-2);
    cursor: pointer;
}
.portfolio__item--lg {
    grid-column: span 3;
    grid-row: span 2;
}
.portfolio__item--wide {
    grid-column: span 6;
    grid-row: span 2;
}

.portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.portfolio__item:hover img {
    transform: scale(1.08);
}

.portfolio__cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md) var(--space-md) var(--space-md);
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    color: var(--c-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s var(--ease);
}
.portfolio__item:hover .portfolio__cap {
    transform: translateY(0);
    opacity: 1;
}
.portfolio__cat {
    display: block;
    font-family: var(--f-sans-en);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    color: #D4C9B5;
    margin-bottom: 0.4rem;
}
.portfolio__title {
    display: block;
    font-family: var(--f-serif-cn);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.portfolio__meta {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.05em;
}

/* ============================================
   PROCESS
============================================ */
.section--process {
    background: var(--c-ink);
    color: var(--c-white);
}
.section--process .section__eyebrow {
    color: #D4C9B5;
}
.section--process .section__title {
    color: var(--c-white);
}

.process__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}
.process__list::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.process__step {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.process__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-family: var(--f-serif-en);
    font-size: 0.95rem;
    color: var(--c-white);
    background: var(--c-ink);
    position: relative;
    margin-bottom: var(--space-md);
    transition: all 0.4s var(--ease);
}
.process__step:hover .process__num {
    background: var(--c-primary);
    border-color: var(--c-primary);
    transform: scale(1.1);
}

.process__title {
    font-family: var(--f-serif-cn);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--c-white);
}
.process__en {
    font-family: var(--f-sans-en);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}
.process__desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* ============================================
   CONTACT
============================================ */
.section--contact { background: var(--c-bg-2); }

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.contact__info .section__title {
    text-align: left;
    margin-bottom: var(--space-md);
}
.contact__lead {
    color: var(--c-mute);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.contact__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--c-line);
}
.contact__label {
    font-family: var(--f-sans-en);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--c-mute);
    text-transform: uppercase;
}
.contact__val {
    font-size: 1rem;
    color: var(--c-ink);
    line-height: 1.6;
    transition: color 0.3s var(--ease);
}
a.contact__val:hover { color: var(--c-primary); }

/* ---------- Form ---------- */
.contact__form {
    background: var(--c-white);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form__group {
    margin-bottom: 1.25rem;
}
.form__group label {
    display: block;
    font-size: 0.85rem;
    color: var(--c-ink-2);
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.form__group label span {
    color: var(--c-primary);
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-bg);
    transition: all 0.3s var(--ease);
    font-family: inherit;
    color: var(--c-ink);
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: var(--c-white);
    box-shadow: 0 0 0 3px rgba(139, 126, 142, 0.1);
}
.form__group input::placeholder,
.form__group textarea::placeholder {
    color: var(--c-mute);
}

.form__note {
    font-size: 0.75rem;
    color: var(--c-mute);
    text-align: center;
    margin-top: 0.75rem;
}

.form__success {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(107, 93, 63, 0.08);
    border: 1px solid var(--c-secondary);
    color: var(--c-secondary-dk);
    text-align: center;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--c-ink);
    color: rgba(255,255,255,0.75);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer__logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.footer__tagline {
    font-family: var(--f-serif-cn);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.08em;
}

.footer__col h4,
.footer__head {
    font-family: var(--f-sans-en);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: var(--space-md);
    font-weight: 500;
}
.footer__col ul li {
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
}
.footer__col a {
    color: rgba(255,255,255,0.65);
    transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--c-white); }

.footer__bottom {
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}
.footer__credit { font-style: italic; }

/* ============================================
   REVEAL ANIMATIONS
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 0.08s);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .nav { gap: 1.5rem; }
    .portfolio__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
    .portfolio__item--lg, .portfolio__item { grid-column: span 4; }
    .portfolio__item--wide { grid-column: span 4; grid-row: span 2; }
    .process__list { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; }
    .process__list::before { display: none; }
    .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--c-bg);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 5rem 2.5rem;
        gap: 1.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s var(--ease);
        z-index: 99;
    }
    .nav.is-open { right: 0; }
    .nav__link { color: var(--c-ink); font-size: 1.1rem; }
    .nav__link--cta { margin-top: 1rem; }
    .hamburger { display: flex; z-index: 101; }

    .header.is-scrolled .hamburger.is-open span { background: var(--c-ink); }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__text .section__title { text-align: center; }
    .about__stats { grid-template-columns: repeat(3, 1fr); }

    .services__grid { grid-template-columns: 1fr; }
    .service-card { padding: var(--space-md); }

    .portfolio__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .portfolio__item,
    .portfolio__item--lg,
    .portfolio__item--wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    .portfolio__item--lg { grid-row: span 2; }

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

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

    .footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero__title { letter-spacing: 0.05em; }
    .hero__cta { flex-direction: column; width: 100%; }
    .hero__cta .btn { width: 100%; }
    .about__stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .stat__num { font-size: 1.5rem; }
    .stat__label { font-size: 0.7rem; }
    .header__brand-text { display: none; }
}

/* ============================================
   PRINT
============================================ */
@media print {
    .header, .hero__scroll, .hamburger { display: none; }
    .section { padding: 2rem 0; }
    img { filter: grayscale(0.8); }
}
