/* ==========================================================================
   Software and Website Development LTD — Design System
   Concept: the agency "frames" a client's brand the way a camera frames
   a shot, and "builds" it the way code is built — viewfinder brackets
   and film-strip sprockets recur as the signature structural device.
   ========================================================================== */

:root {
    --ink:      #14171C;   /* near-black warm charcoal */
    --paper:    #F7F5F0;   /* warm off-white */
    --signal:   #FF6A3D;   /* flash-orange accent */
    --lens:     #1B8A83;   /* viewfinder teal, secondary accent */
    --amber:    #FFC857;   /* exposure-amber, utility accent */
    --slate:    #4B5563;   /* body copy on paper */
    --line:     #E4E0D6;   /* hairline on paper */
    --ink-soft: #2A2E36;   /* raised panels on ink */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--slate);
    background: var(--paper);
}

.font-body { font-family: 'Inter', system-ui, sans-serif; }

h1, h2, h3, .font-display {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.container-x {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--signal);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Eyebrow labels (mono, tracked-out, encode category not decoration) ---- */
.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.eyebrow::before {
    content: "";
    width: 8px; height: 8px;
    background: var(--signal);
    display: inline-block;
    transform: rotate(45deg);
}
.eyebrow-on-dark { color: var(--amber); }
.eyebrow-on-dark::before { background: var(--amber); }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247,245,240,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-color: var(--line); }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-frame {
    width: 34px; height: 34px;
    position: relative;
    border: 2px solid var(--ink);
    flex-shrink: 0;
}
.brand-frame::before, .brand-frame::after {
    content: "";
    position: absolute;
    width: 10px; height: 10px;
    border: 2px solid var(--signal);
}
.brand-frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.brand-frame::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink); }
.brand-accent { color: var(--signal); font-size: 0.72rem; }

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--slate);
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    border-radius: 3px;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(20,23,28,0.05); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }

.phone-link { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--ink); text-decoration: none; }

.staff-login-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.staff-login-link:hover { color: var(--ink); border-color: var(--ink); }

.btn-signal {
    background: var(--signal);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.65rem 1.3rem;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 3px 3px 0 var(--ink);
}
.btn-signal:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }

.btn-outline {
    border: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1.25rem;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-paper {
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 3px 3px 0 var(--signal);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-paper:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--signal); }

.burger { display: flex; flex-direction: column; gap: 5px; padding: 6px; background: none; border: none; }
.burger span { width: 22px; height: 2px; background: var(--ink); display: block; }
.mobile-nav { border-top: 1px solid var(--line); }
.mobile-link { padding: 0.75rem 0; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---- Viewfinder frame: the signature device ---- */
.viewfinder {
    position: relative;
    padding: 2px;
}
.viewfinder::before, .viewfinder::after,
.viewfinder .vf-corner-tl, .viewfinder .vf-corner-br { display: none; }

.vf-frame {
    position: relative;
    border: 1px solid var(--line);
}
.vf-frame::before, .vf-frame::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    border-color: var(--signal);
    border-style: solid;
    transition: width 0.2s ease, height 0.2s ease;
}
.vf-frame::before { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.vf-frame::after { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }
.vf-frame:hover::before, .vf-frame:hover::after { width: 32px; height: 32px; }

/* ---- Sprocket rule: horizontal film-strip divider ---- */
.sprocket-rule {
    height: 14px;
    background-image: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 22px);
    background-position: center;
    background-size: 22px 6px;
    background-repeat: repeat-x;
    background-color: transparent;
}

/* ---- Hero ---- */
.hero {
    padding-block: 4rem 5rem;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(255,106,61,0.10), transparent 60%),
        var(--paper);
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--signal); }
.hero-lede { font-size: 1.1rem; color: var(--slate); max-width: 46ch; }

.hero-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3rem; border: 1px solid var(--line); }
.hero-strip-frame {
    aspect-ratio: 4/5;
    position: relative;
    border-right: 1px solid var(--line);
    display: flex; align-items: flex-end;
    padding: 0.85rem;
    overflow: hidden;
}
.hero-strip-frame:last-child { border-right: none; }
.hero-strip-frame .tag { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: #fff; letter-spacing: 0.06em; position: relative; z-index: 2; }
/* ---- Frame tile: reusable gradient placeholder block ----
   Self-contained on purpose: content + background live in the SAME
   rule so this never again depends on merging ::before declarations
   across two different stylesheets. Used by the hero strip AND the
   gallery grid. */
.frame-tile { position: relative; }
.frame-tile.tile-teal::before   { content: ""; position: absolute; inset: 0; opacity: 0.92; background: linear-gradient(155deg, #1B8A83, #14171C); }
.frame-tile.tile-signal::before { content: ""; position: absolute; inset: 0; opacity: 0.92; background: linear-gradient(155deg, #FF6A3D, #14171C); }
.frame-tile.tile-amber::before  { content: ""; position: absolute; inset: 0; opacity: 0.92; background: linear-gradient(155deg, #FFC857, #4B5563); }
.frame-tile.tile-ink::before    { content: ""; position: absolute; inset: 0; opacity: 0.92; background: linear-gradient(155deg, #14171C, #1B8A83); }

/* ---- Sections ---- */
.section { padding-block: 5rem; }
.section-ink { background: var(--ink); color: #d8d6d0; }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }

/* ---- Service pillar cards ---- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
.pillar-card { background: var(--paper); padding: 2rem 1.5rem; }
.pillar-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--signal); }
.pillar-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-top: 0.4rem; }
.pillar-list { margin-top: 1rem; font-size: 0.9rem; }
.pillar-list li { padding-left: 1rem; position: relative; margin-bottom: 0.4rem; }
.pillar-list li::before { content: "—"; position: absolute; left: 0; color: var(--signal); }

@media (max-width: 900px) {
    .pillar-grid, .hero-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Process timeline (real sequence — numbering justified) ---- */
.process-list { counter-reset: step; margin-top: 2.5rem; }
.process-step { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--signal); }
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }

/* ---- Stats / value strip (qualitative, no fabricated numbers) ---- */
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.value-card { border-top: 3px solid var(--signal); padding-top: 1rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
@media (max-width: 800px) { .value-strip { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); padding-block: 4rem; }
.cta-frame { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-heading { color: var(--paper); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; margin-top: 0.5rem; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #b9b6ae; padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.brand-footer .brand-line { color: var(--paper); }
.footer-tagline { margin-top: 1rem; font-size: 0.9rem; max-width: 32ch; }
.footer-heading { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
.footer-list { list-style: none; padding: 0; font-size: 0.9rem; }
.footer-list li { margin-bottom: 0.55rem; }
.footer-list a { color: #b9b6ae; text-decoration: none; }
.footer-list a:hover { color: var(--paper); }
.social-row { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social-row a { width: 32px; height: 32px; border: 1px solid #3a3f48; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #b9b6ae; text-decoration: none; }
.social-row a:hover { border-color: var(--signal); color: var(--signal); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2a2e36; font-size: 0.8rem; }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Reveal-on-scroll (respects reduced motion) ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ==========================================================================
   Extended components — stats, pricing, testimonials, team, blog, lightbox
   ========================================================================== */

/* ---- Capability stats strip ---- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
.stat-block { background: var(--paper); padding: 2rem 1.25rem; text-align: center; }
.stat-number { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.stat-number .suffix { color: var(--signal); }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-top: 0.6rem; }
@media (max-width: 800px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Pricing / packages ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.pricing-card { background: #fff; border: 1px solid var(--line); padding: 2rem; display: flex; flex-direction: column; position: relative; }
.pricing-card.is-featured { border-color: var(--signal); box-shadow: 6px 6px 0 var(--signal); }
.pricing-featured-tag { position: absolute; top: -13px; left: 2rem; background: var(--signal); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; padding: 0.25rem 0.7rem; text-transform: uppercase; }
.pricing-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.pricing-price { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; color: var(--signal); margin-top: 0.4rem; }
.pricing-desc { font-size: 0.88rem; margin-top: 0.75rem; color: var(--slate); }
.pricing-features { list-style: none; padding: 0; margin-top: 1.5rem; flex-grow: 1; font-size: 0.88rem; }
.pricing-features li { padding-left: 1.2rem; position: relative; margin-bottom: 0.6rem; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--lens); font-weight: 700; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card.is-featured { box-shadow: 4px 4px 0 var(--signal); } }

/* ---- Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial-card { background: var(--ink-soft); padding: 1.75rem; position: relative; }
.testimonial-quote { color: #d8d6d0; font-size: 0.95rem; line-height: 1.6; }
.testimonial-quote::before { content: "“"; font-family: 'Space Grotesk', serif; font-size: 2.2rem; color: var(--signal); display: block; line-height: 0.6; margin-bottom: 0.75rem; }
.testimonial-author { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.testimonial-name { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--amber); }
.sample-badge { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #7a7870; border: 1px solid #3a3f48; padding: 0.15rem 0.5rem; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.team-card { text-align: center; }
.team-avatar { aspect-ratio: 1; position: relative; overflow: hidden; margin-bottom: 1rem; }
.team-avatar .initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.8rem; color: #fff; z-index: 2; }
.team-role { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--signal); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.blog-card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.blog-card:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px,-2px); }
.blog-card-visual { overflow: hidden; }
.blog-card-body { padding: 1.5rem; }
.blog-card-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--signal); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-top: 0.5rem; }
.blog-card-excerpt { font-size: 0.88rem; margin-top: 0.6rem; color: var(--slate); }
.blog-card-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #9a978d; margin-top: 1rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---- Lightbox (gallery) ---- */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(20,23,28,0.94); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox-panel { max-width: 720px; width: 100%; background: var(--ink-soft); position: relative; }
.lightbox-visual { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(20,23,28,0.7); color: #fff; border: 1px solid #3a3f48; font-family: 'JetBrains Mono', monospace; cursor: pointer; }
.lightbox-close { top: -18px; right: -18px; width: 36px; height: 36px; border-radius: 50%; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
.lightbox-prev { left: -20px; } .lightbox-next { right: -20px; }
.lightbox-body { padding: 1.5rem; }
.lightbox-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--paper); font-size: 1.15rem; }
.lightbox-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--amber); margin-top: 0.3rem; display: block; }

/* ---- 404 ---- */
.error-frame { max-width: 480px; margin: 0 auto; text-align: center; padding-block: 4rem; }
.error-code { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 6rem; color: var(--signal); line-height: 1; }
