/* ============================================
   Espy Locksmiths — Unique Editorial Layout
   ============================================ */

:root {
    --ink: #0a0e17;
    --ink-soft: #141b2d;
    --ink-mid: #1e2840;
    --cream: #f5f0e8;
    --cream-dark: #e8e0d4;
    --fire: #ff6b35;
    --fire-glow: #ff8c5a;
    --sage: #2d6a5a;
    --sage-light: #3d8a72;
    --text: #4a5568;
    --text-light: #8896a8;
    --white: #ffffff;

    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'Instrument Sans', system-ui, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-offset: 100px;
    --pill-height: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease); }
ul { list-style: none; }
address { font-style: normal; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Film grain overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fire);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.section-title em {
    font-style: normal;
    color: var(--sage);
}

.section-title--light { color: var(--cream); }

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 440px;
    margin-top: 16px;
}

.pill {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fire);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn--fire {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 28px;
    background: var(--fire);
    color: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.35);
}

.btn--fire:hover {
    background: var(--fire-glow);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(255, 107, 53, 0.45);
}

.btn--fire .btn__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.btn--fire .btn__sub {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn--ghost {
    padding: 16px 24px;
    color: var(--cream);
    border: 1.5px solid rgba(245, 240, 232, 0.25);
    border-radius: 100px;
    font-size: 0.9375rem;
}

.btn--ghost:hover {
    background: rgba(245, 240, 232, 0.08);
    border-color: rgba(245, 240, 232, 0.5);
}

.btn--wide { min-width: 220px; }

/* ============================================
   Header — Floating Pill
   ============================================ */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    pointer-events: none;
}

.header__pill {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--pill-height);
    padding: 6px 8px 6px 18px;
    background: rgba(10, 14, 23, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    max-width: 100%;
}

.header--scrolled .header__pill {
    background: rgba(10, 14, 23, 0.95);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    flex-shrink: 0;
}

.header__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--fire);
    border-radius: 50%;
    color: var(--white);
}

.header__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
}

.header__name span { color: var(--fire); }

.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 12px;
}

.header__nav a {
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(245, 240, 232, 0.65);
    border-radius: 100px;
    transition: all 0.25s var(--ease);
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.08);
}

.header__call {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--sage);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    flex-shrink: 0;
    white-space: nowrap;
}

.header__call:hover {
    background: var(--sage-light);
    transform: scale(1.03);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 10px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.header__burger.active span:first-child { transform: translateY(4px) rotate(45deg); }
.header__burger.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--ink);
    padding: calc(var(--header-offset) + 40px) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(45, 106, 90, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
}

.hero__mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, black 20%, transparent 70%);
}

.hero__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.15);
    pointer-events: none;
}

.hero__ring--1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation: spin 40s linear infinite;
}

.hero__ring--2 {
    width: 300px;
    height: 300px;
    bottom: 120px;
    left: -80px;
    border-color: rgba(45, 106, 90, 0.2);
    animation: spin 30s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    flex: 1;
    padding-bottom: 60px;
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero__status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(245, 240, 232, 0.5);
}

.pulse {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.hero__title {
    margin-bottom: 24px;
}

.hero__line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--cream);
}

.hero__line--accent {
    color: var(--fire);
    padding-left: clamp(20px, 4vw, 60px);
}

.hero__desc {
    font-size: 1.125rem;
    color: rgba(245, 240, 232, 0.55);
    max-width: 460px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero__photo-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero__photo-frame {
    position: relative;
    border-radius: 28px 28px 120px 28px;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 53, 0.25);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    aspect-ratio: 4/5;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.hero__photo-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        transparent 40%,
        rgba(255, 107, 53, 0.08) 70%,
        rgba(10, 14, 23, 0.35) 100%
    );
    pointer-events: none;
}

.hero__vault-badge {
    position: absolute;
    bottom: 24px;
    left: -16px;
    padding: 14px 20px;
    background: var(--sage);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.75rem;
    line-height: 1.3;
    box-shadow: 0 8px 24px rgba(45, 106, 90, 0.4);
    z-index: 2;
}

.hero__vault-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.hero__chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
    min-width: 90px;
}

.chip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--cream);
    letter-spacing: -0.02em;
}

.chip span {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 240, 232, 0.4);
}

.chip--accent {
    background: rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.25);
}

.chip--accent strong { color: var(--fire); }

/* Marquee */
.marquee {
    position: relative;
    z-index: 2;
    background: var(--fire);
    padding: 14px 0;
    overflow: hidden;
    flex-shrink: 0;
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}

.marquee__dot {
    font-size: 0.5rem;
    opacity: 0.5;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--cream);
    position: relative;
}

.about__layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
}

.about__aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.about__vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
}

.about__index {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--cream-dark);
    line-height: 1;
    letter-spacing: -0.05em;
}

.about__top {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 40px;
}

.about__visual {
    position: relative;
}

.about__frame {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 24px;
    overflow: hidden;
    transform: rotate(-2deg);
    box-shadow: 20px 20px 0 var(--sage);
}

.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about__frame-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,107,53,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,53,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.about__stamp {
    position: absolute;
    top: -16px;
    right: -20px;
    width: 90px;
    height: 90px;
    background: var(--fire);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    transform: rotate(12deg);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.about__stamp p {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
}

.about__copy p {
    font-size: 1.0625rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.75;
}

.about__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.about__pill {
    padding: 10px 18px;
    background: var(--white);
    border: 1.5px solid var(--cream-dark);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.25s var(--ease);
}

.about__pill:hover {
    border-color: var(--sage);
    background: rgba(45, 106, 90, 0.06);
    transform: translateY(-2px);
}

.about__location-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 20px;
    flex-wrap: wrap;
}

.about__location-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 12px;
    color: var(--fire);
    flex-shrink: 0;
}

.about__location-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(245, 240, 232, 0.45);
    margin-bottom: 4px;
}

.about__location-card address {
    font-size: 0.9375rem;
    font-weight: 500;
}

.about__location-call {
    margin-left: auto;
    padding: 12px 24px;
    background: var(--fire);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    white-space: nowrap;
}

.about__location-call:hover {
    background: var(--fire-glow);
    transform: scale(1.04);
}

/* ============================================
   Services — Bento Grid
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 100% 0%, rgba(45, 106, 90, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.services__head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 56px;
}

.services__aside {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.services__index {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    letter-spacing: -0.05em;
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
    margin-bottom: 48px;
}

.bento__card {
    position: relative;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
}

.bento__card--has-img .bento__body {
    padding: 24px 28px 28px;
}

.bento__card:not(.bento__card--has-img) {
    padding: 28px;
}

.bento__img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.bento__card--large .bento__img-wrap {
    height: 220px;
}

.bento__card--medium .bento__img-wrap {
    height: 160px;
}

.bento__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.5s var(--ease);
}

.bento__card:hover .bento__img {
    transform: scale(1.06);
}

.bento__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(10, 14, 23, 0.85) 100%);
    pointer-events: none;
}

.bento__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bento__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.bento__card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.bento__card:hover::before { opacity: 1; }

.bento__card--large {
    grid-column: span 2;
    grid-row: span 2;
    background: rgba(45, 106, 90, 0.15);
    border-color: rgba(45, 106, 90, 0.25);
}

.bento__card--large .bento__img-wrap {
    height: 280px;
}

.bento__card--large .bento__body {
    padding: 28px 36px 36px;
}

.bento__card--large h3 { font-size: 1.75rem; }
.bento__card--large p { font-size: 1rem; max-width: 320px; }

.bento__card--medium { grid-column: span 2; }

.bento__num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fire);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.bento__card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.bento__card p {
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.45);
    line-height: 1.6;
    flex: 1;
    position: relative;
    z-index: 1;
}

.bento__arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 50%;
    color: var(--fire);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.3s var(--ease);
}

.bento__card:hover .bento__arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.services__banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 40px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(45, 106, 90, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 24px;
    flex-wrap: wrap;
}

.services__banner-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fire);
    margin-bottom: 6px;
}

.services__banner-text p {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.02em;
}

/* ============================================
   Footer
   ============================================ */
.footer__top {
    background: var(--cream-dark);
    padding: 80px 0 60px;
}

.footer__top-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer__hero-text h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.footer__hero-text h2 span { color: var(--fire); }

.footer__hero-text p {
    margin-top: 20px;
    font-size: 1.0625rem;
    color: var(--text);
    max-width: 300px;
}

.footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.footer__col a,
.footer__col span {
    font-size: 0.9375rem;
    color: var(--ink);
    font-weight: 500;
}

.footer__col a:hover { color: var(--fire); }

.footer__bar {
    background: var(--ink);
    padding: 20px 0;
}

.footer__bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: rgba(245, 240, 232, 0.35);
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Error Page
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    text-align: center;
    padding: 40px 24px;
}

.error-page__inner h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page__inner p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__desc { margin-left: auto; margin-right: auto; }
    .hero__cta-row { justify-content: center; }
    .hero__meta { justify-content: center; }
    .hero__line--accent { padding-left: 0; }

    .about__layout { grid-template-columns: 1fr; }
    .about__aside { flex-direction: row; justify-content: flex-start; gap: 24px; }
    .about__vertical { writing-mode: horizontal-tb; transform: none; }

    .about__top { grid-template-columns: 1fr; gap: 40px; }
    .about__frame { max-width: 360px; margin: 0 auto; transform: rotate(0); }

    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento__card--large { grid-column: span 2; grid-row: span 1; }
    .bento__card--medium { grid-column: span 2; }

    .footer__top-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root {
        --header-offset: 88px;
        --pill-height: auto;
    }

    .header { top: 12px; padding: 0 12px; }

    .header__pill {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 12px 16px;
        width: 100%;
        max-width: 420px;
    }

    .header__nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin: 8px 0 0;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .header__nav.open { display: flex; }

    .header__nav a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .header__call {
        margin-left: auto;
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .header__burger { display: flex; }

    .hero { min-height: auto; padding-top: calc(var(--header-offset) + 20px); }
    .hero__photo-wrap { max-width: 320px; }

    .about { padding: 80px 0; }
    .about__location-call { margin-left: 0; width: 100%; text-align: center; }

    .services { padding: 80px 0; }
    .services__head { grid-template-columns: 1fr; }
    .services__index { font-size: 3rem; }

    .bento { grid-template-columns: 1fr; }
    .bento__card--large,
    .bento__card--medium { grid-column: span 1; }

    .services__banner { flex-direction: column; text-align: center; }
    .btn--wide { width: 100%; align-items: center; }

    .footer__cols { grid-template-columns: 1fr; }
    .footer__bar-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero__cta-row { flex-direction: column; width: 100%; }
    .btn--fire, .btn--ghost { width: 100%; justify-content: center; }
    .btn--fire { align-items: center; }

    .hero__chips { width: 100%; }
    .chip { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee__track { animation: none; }
    .reveal { opacity: 1; transform: none; }
}
