/* ===========================
   Base / tokens
=========================== */
:root {
    --brand: #f97316;
    /* orange */
    --brand-2: #fb923c;
    /* light orange */
    --ink: #0f172a;
    /* slate-900 */
    --ink-2: #334155;
    /* slate-700 */
    --navy-1: #000777;
    --navy-2: #000555;
    --bg-alt: #f8fafc;
    /* slate-50 */
    --rule: rgba(15, 23, 42, .12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: #fff;
    /* mobile sticky header spacing (adjust to your header height if needed) */
}

@media (max-width:768px) {
    body {
        padding-top: 95px;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ===========================
   Links / buttons
=========================== */
a {
    color: var(--brand);
    text-decoration: none;
}


a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

.btn-primary,
.btn-outline {
    display: inline-block;
    padding: .9rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    will-change: transform;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, .25);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary:focus-visible {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 6px var(--brand);
}

/* make .btn-outline a white-filled button */
.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 2px solid #fff; /* matches fill */
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.btn-outline:focus-visible {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px var(--brand);
}


/* ===========================
   Lead
=========================== */
.lead {
    background:
        radial-gradient(1200px 400px at 0% 0%, rgba(249, 115, 22, .10), transparent 60%),
        linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 5.5rem 0 3.5rem;
}

.lead .breadcrumb {
    color: rgba(255, 255, 255, .8);
    margin-bottom: .75rem;
    font-size: .9rem;
}

.lead .breadcrumb a {
    color: var(--brand);
}

.eyebrow {
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: .35rem;
    font-size: .9rem;
}

.lead h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.12;
    margin: 0 0 .8rem;
}

.lead .lede {
    font-size: 1.15rem;
    max-width: 62ch;
    opacity: .95;
}

.pullquote {
    margin: 1.2rem 0 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
    max-width: 60ch;
    padding-left: 1rem;
    border-left: 3px solid var(--brand);
    color: #fff;
}

.lead-tags {
    list-style: none;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: 1rem 0 0;
    padding: 0;
}

.lead-tags li {
    font-size: .85rem;
    padding: .35rem .6rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
}

/* ===========================
   Story
=========================== */
.story {
    padding: 4.5rem 0 2.5rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: start;
}

.story h2 {
    font-size: 2rem;
    margin-bottom: .4rem;
    color: #000555;
}

.story h3 {
    font-size: 1.15rem;
    color: var(--ink);
    margin-top: 1rem;
}

.story p {
    color: var(--ink-2);
}

.principles {
    list-style: none;
    padding: 0;
    margin: .6rem 0 0;
}

.principles li {
    display: flex;
    gap: .7rem;
    margin: .45rem 0;
    color: var(--ink-2);
}

.principles .rule {
    width: 4px;
    background: var(--brand);
    border-radius: 2px;
    display: inline-block;
}

/* ===========================
   Byte mosaic image (D or square)
=========================== */
.byte-mosaic {
    --img: url("");
    --bgw: 0px;
    --bgh: 0px;
    position: relative;
    width: min(54vh, 54vw);
    aspect-ratio: 1/1;
    /* square container */
    margin: 1.5rem auto;
}

.byte-mosaic .tile {
    position: absolute;
    background-image: var(--img);
    background-size: var(--bgw) var(--bgh);
    background-position: var(--bgx) var(--bgy);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.byte-mosaic:hover .tile {
    transform: translate(var(--dx, 0), var(--dy, 0));
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

@media (prefers-reduced-motion:reduce) {
    .byte-mosaic .tile {
        transition: none;
    }
}

/* ===========================
   (Legacy) Triangle collage (kept if you reuse it)
=========================== */
.photo-triangle {
    position: relative;
    width: 100%;
}

.photo-triangle .ph {
    position: absolute;
    overflow: hidden;
    border-radius: 12px;
    transform: rotate(var(--rot, 0deg));
    opacity: 0;
    transition: opacity .6s ease, transform .4s ease;
    border: 1px solid rgba(15, 23, 42, .08);
}

.photo-triangle .ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:root {
    --tile: clamp(120px, 20vw, 190px);
}

.ph-1 {
    width: var(--tile);
    height: var(--tile);
    left: 50%;
    top: 0;
    transform: translateX(-50%) rotate(-1.5deg);
}

.ph-2 {
    width: var(--tile);
    height: var(--tile);
    left: calc(50% - var(--tile) - 12px);
    top: calc(var(--tile)*.65);
    --rot: 1.2deg;
}

.ph-3 {
    width: var(--tile);
    height: var(--tile);
    left: 50%;
    top: calc(var(--tile)*.75);
    transform: translateX(-50%) rotate(-.6deg);
}

.ph-4 {
    width: var(--tile);
    height: var(--tile);
    left: calc(50% + var(--tile) + 12px);
    top: calc(var(--tile)*.65);
    --rot: 1.6deg;
}

.ph-5 {
    width: var(--tile);
    height: var(--tile);
    left: calc(50% - var(--tile)*1.5 - 18px);
    top: calc(var(--tile)*1.5);
    --rot: -.8deg;
}

.ph-6 {
    width: var(--tile);
    height: var(--tile);
    left: 50%;
    top: calc(var(--tile)*1.7);
    transform: translateX(-50%) rotate(.8deg);
}

.ph-7 {
    width: var(--tile);
    height: var(--tile);
    left: calc(50% + var(--tile)*1.5 + 18px);
    top: calc(var(--tile)*1.5);
    --rot: -1.2deg;
}

/* ===========================
   Long-form Approach (new deep section)
=========================== */
.approach-longform {
    background: var(--bg-alt);
    padding: 3.5rem 0;
}

.approach-longform h2 {
    color: #000555;
    font-size: 2rem;
    margin-bottom: 1.1rem;
}

.approach-longform h3 {
    color: var(--ink);
    font-size: 1.2rem;
    margin: 1.6rem 0 .4rem;
}

.approach-longform p {
    color: var(--ink-2);
    max-width: 78ch;
}

.approach-longform p+p {
    margin-top: .85rem;
}

.approach-longform .aside {
    margin: 1.6rem 0 0;
    padding-left: 1rem;
    border-left: 3px solid var(--brand);
    color: var(--ink);
    font-weight: 600;
    max-width: 70ch;
}

/* ===========================
   Difference (table)
=========================== */
.difference {
    padding: 2rem 0 1rem;
}

.difference h2 {
    color: #000555;
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: .98rem;
}

.compare thead th {
    text-align: left;
    padding: .7rem .6rem;
    color: var(--ink);
    border-bottom: 2px solid var(--rule);
}

.compare td {
    padding: .7rem .6rem;
    color: var(--ink-2);
}

.compare tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, .03);
}

/* Responsive table: stack on small screens */
@media (max-width:640px) {
    .compare thead {
        display: none;
    }

    .compare,
    .compare tbody,
    .compare tr,
    .compare td {
        display: block;
        width: 100%;
    }

    .compare tr {
        margin: 0 0 .8rem;
        background: rgba(15, 23, 42, .02);
        border: 1px solid rgba(15, 23, 42, .06);
        border-radius: 8px;
    }

    .compare td {
        padding: .6rem .8rem;
    }

    .compare td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: .15rem;
    }
}

/* ===========================
   Milestones
=========================== */
.milestones {
    padding: 2rem 0 3rem;
}

.milestones h2 {
    color: #000555;
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

.years {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .6rem;
}

.years li {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: baseline;
}

.year {
    font-weight: 800;
    color: var(--ink);
    background: linear-gradient(90deg, rgba(249, 115, 22, .18), transparent);
    padding: .25rem .5rem;
    border-radius: 6px;
}

.years p {
    margin: .15rem 0;
    color: var(--ink-2);
}

/* ===========================
   CTA
=========================== */
.cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    text-align: center;
    padding: 3.5rem 0;
}

.cta h2 {
    font-size: 2rem;
    margin: 0 0 .4rem;
}

.cta p {
    max-width: 68ch;
    margin: 0 auto 1rem;
    font-size: 1.05rem;
}

.cta-actions {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Timeline (kept in case you re-enable it)
=========================== */
.timeline {
    padding: 2rem 0 1rem;
}

.timeline h2 {
    color: #000555;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.rail {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--rule);
    position: relative;
}

.rail li {
    padding: .6rem 0 .9rem 1.25rem;
    position: relative;
}

.rail .dot {
    width: 10px;
    height: 10px;
    background: var(--brand);
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 1.1rem;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .15);
}

.rail h4 {
    margin: 0 0 .15rem;
    font-size: 1.05rem;
    color: var(--ink);
}

.rail p {
    margin: 0;
    color: var(--ink-2);
}

/* ===========================
   Reveal on scroll (consolidated)
=========================== */
.reveal {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) rotate(var(--rot, 0deg)) !important;
    transition: opacity .6s ease, transform .6s ease;
}

.story-copy,
.approach-longform p,
.approach-longform h3,
.compare,
.years li,
.pullquote,
.photo-triangle .ph {
    opacity: 0;
    transform: translateY(16px);
}

@media (prefers-reduced-motion:reduce) {

    .reveal,
    .story-copy,
    .approach-longform p,
    .approach-longform h3,
    .compare,
    .years li,
    .pullquote,
    .photo-triangle .ph {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* ===========================
   Fallback image (if JS disabled)
=========================== */
.mosaic-fallback {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ===========================
   Responsive
=========================== */
@media (max-width:980px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .photo-triangle {
        height: calc(var(--tile)*2.9);
        margin-top: 1rem;
    }
}

@media (max-width:720px) {
    .photo-triangle {
        height: calc(var(--tile)*3.4);
    }
}