/* =========================================================
   Nimbus Optimus: new look, inner pages
   Loaded after v2.css on every page except the home
   page: About, the four service pages, Our Work, Contact and
   "page not found". Same rules as the home page: a light, quiet
   page, thin centered headlines, frosted boxes, one font, and
   gold only in small accents. Colors come from :root in v2.css.
   ========================================================= */

.center { text-align: center; }
.lead { color: var(--muted); font-size: clamp(1.05rem, .98rem + .4vw, 1.2rem); }
.nav-list a[aria-current] { color: var(--ink); }

/* ---------- Buttons named by the page text ---------- */
.btn--primary, .btn--light { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary:hover, .btn--light:hover { background: #000; border-color: #000; }
.btn--sm { min-height: 42px; padding: .45rem 1.15rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn .icon { width: 1.05em; height: 1.05em; }

/* ---------- Top of the page ---------- */
.page-hero { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(.5rem, 2vw, 1.5rem); text-align: center; }
.page-hero .container > * { max-width: 760px; margin-inline: auto; }
.page-hero h1 { margin-bottom: 1.1rem; }
.page-hero .lead { max-width: 34em; margin-bottom: 0; text-wrap: balance; }
.page-icon { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
/* "Home / About": a small label above the title */
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.4rem; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--gold-text); }

/* ---------- Spacing between the parts of a page ---------- */
.page-hero + .section { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section:has(+ .section--soft) { padding-bottom: clamp(3rem, 2.4rem + 2vw, 4.25rem); }
.section + .section--soft { padding-top: 0; }
.section > .container > h2 { margin-bottom: 2.5rem; text-align: center; }

/* ---------- Article text ---------- */
.prose { max-width: 720px; margin-inline: auto; text-align: center; }
.prose > h2 { margin: clamp(3rem, 2.4rem + 2vw, 4.25rem) 0 1.1rem; font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.1rem); }
.prose > h2:first-child { margin-top: 0; }
.prose > p { max-width: 36em; margin-inline: auto; text-wrap: pretty; }
.prose > p:last-child { margin-bottom: 0; }

/* Lists with a small gold tick */
.check-list { display: grid; gap: .7rem; text-align: left; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .36em; width: 1rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f5d17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.prose > .check-list { margin-top: 1.5rem; padding: 1.5rem 1.6rem; background: rgba(255, 255, 255, .62); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .04); }
@media (min-width: 640px) { .check-list--cols { grid-template-columns: 1fr 1fr; column-gap: 2.25rem; } }

/* Numbered steps: a thin gold numeral, hairlines between */
.numbered { margin-top: 1.5rem; text-align: left; counter-reset: n; }
.numbered li { position: relative; padding: 1.1rem 0 1.1rem 3.5rem; border-bottom: 1px solid var(--line); counter-increment: n; }
.numbered li:first-child { border-top: 1px solid var(--line); }
.numbered li::before { content: counter(n); position: absolute; left: .5rem; top: .85rem; font-size: 2.1rem; font-weight: 200; line-height: 1; color: var(--gold); }
.numbered strong { color: var(--ink); font-weight: 500; }

/* About: what we believe */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.75rem; }
.values li { padding: 1.6rem 1.4rem 1.5rem; background: rgba(255, 255, 255, .62); border: 1px solid var(--line); border-radius: var(--radius); }
.values h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.values p { margin: 0; font-size: .97rem; }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

/* About: the founder. One frosted box: (photo), name, two short lines, then where they worked */
.founder { max-width: 720px; margin-inline: auto; padding: clamp(2rem, 1.25rem + 4vw, 3.25rem) clamp(1.25rem, .5rem + 4vw, 3rem) clamp(1.25rem, 1rem + 2vw, 2rem); text-align: center; background: rgba(255, 255, 255, .62); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .05); }
.founder-photo { width: 200px; height: 200px; margin: 0 auto 1.6rem; border-radius: 14px; object-fit: cover; }
.founder-kicker { margin: 0 0 .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.founder h2 { margin-bottom: 1rem; }
.founder-intro { max-width: 30em; margin: 0 auto 1.9rem; text-wrap: balance; }
.founder-intro:has(+ .founder-why) { margin-bottom: .9rem; }
.founder-why { color: var(--muted, #6b6b6b); }
.history { max-width: 34rem; margin: 0 auto; text-align: left; }
.history-what { text-wrap: balance; }
.history li { display: grid; grid-template-columns: 8.75rem 1fr; gap: .15rem 1.5rem; padding: .95rem .25rem; border-top: 1px solid var(--line); }
.history-where { font-weight: 500; color: var(--ink); }
.section:has(.founder) { padding-bottom: 0; }
@media (max-width: 480px) { .history li { grid-template-columns: 1fr; } }

/* "Other ways we help" */
.pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.pill-list a { display: inline-flex; align-items: center; min-height: 42px; padding: .45rem 1.15rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: .95rem; color: var(--ink); text-decoration: none; transition: background-color .2s, border-color .2s; }
.pill-list a:hover { background: #fff; border-color: rgba(0, 0, 0, .25); }

.prose .faq { margin-top: 1.5rem; text-align: left; }

/* ---------- How it works (About) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.step-num { display: block; margin-bottom: .6rem; font-size: 2.6rem; font-weight: 200; line-height: 1; color: var(--gold); }
.step h3 { margin-bottom: .45rem; font-size: 1.15rem; }
.step p { margin: 0; font-size: .97rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; } }
@media (max-width: 420px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Service cards ("page not found") ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 1.75rem 1.25rem 1.5rem; text-align: center; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, .62); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, background-color .25s; }
.card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .9); box-shadow: 0 16px 40px rgba(0, 0, 0, .08); }
.card-icon { display: none; }
.card h3 { margin-bottom: .7rem; text-wrap: balance; }
.card p { margin-bottom: 1.1rem; font-size: .97rem; line-height: 1.55; }
.card-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-size: .95rem; font-weight: 500; color: var(--ink); }
.card-more .icon { transition: transform .2s; }
.card:hover .card-more .icon { transform: translateX(4px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* ---------- "Let's find your biggest wins" box at the foot of a page ---------- */
.cta-band { padding: 0 0 clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; max-width: 720px; padding: clamp(2rem, 1.25rem + 4vw, 3.5rem) clamp(1.25rem, .5rem + 4vw, 3rem); text-align: center; background: rgba(255, 255, 255, .62); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .05); }
.cta-band h2 { margin-bottom: .9rem; }
.cta-band p { max-width: 30em; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.5rem; max-width: 720px; }
.contact-info { padding: clamp(2rem, 1.25rem + 4vw, 3.5rem) clamp(1.25rem, .5rem + 4vw, 3rem); text-align: center; background: rgba(255, 255, 255, .62); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .05); }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { max-width: 30em; margin-inline: auto; text-wrap: balance; }
.contact-info .contact-email { margin: 1.75rem auto 0; }
/* The address is already the big button in the box above, so the separate "Email us" card is not shown. */
.form-card.email-card { display: none; }
.booking { margin-top: 1.75rem; }
.booking p { margin-bottom: 1rem; }

/* The form (shown once the Web3Forms key is added) */
.form-card { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: left; background: rgba(255, 255, 255, .62); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .05); }
/* (the form's fields are styled in v2.css, shared with the home page's short form) */

/* ---------- Our Work: the two projects ---------- */
.case-list { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.case { padding: clamp(1.75rem, 1rem + 3vw, 3.25rem) clamp(1.25rem, .5rem + 3vw, 3rem); text-align: center; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .05); }
.case-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 2rem; }
.case-logo { display: grid; place-items: center; align-content: center; gap: .2rem; height: 76px; margin-bottom: 1.1rem; }
.case-logo img { width: auto; max-height: 76px; }
.case-logo--elite img { max-height: 40px; }
.case-kicker { max-width: 34em; margin: 0 0 .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; color: var(--gold-text); text-wrap: balance; }
.case-head h2 { max-width: 18em; margin-bottom: 1.4rem; font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem); }

/* The steps of the job, in order */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin: 0 0 2rem; text-align: left; counter-reset: f; }
.flow li { position: relative; display: flex; flex-direction: column; padding: 1rem 1rem 1.1rem; background: var(--bg); border-radius: 12px; counter-increment: f; }
.flow li::before { content: "0" counter(f); margin-bottom: .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--gold-text); }
.flow li + li::after { content: ""; position: absolute; left: -.62rem; top: 50%; width: .5rem; height: .5rem; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: translateY(-50%) rotate(45deg); }
.flow-icon { display: none; }
.flow strong { margin-bottom: .2rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.flow span:last-child { font-size: .88rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: .9rem; }
  .flow li + li::after { left: 1.4rem; top: -.72rem; transform: rotate(135deg); }
}

/* The problem / What we built / What changed */
.case-grid { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; gap: 1rem; text-align: left; }
.case-box { padding: 1.4rem 1.4rem 1.2rem; background: rgba(255, 255, 255, .5); border: 1px solid var(--line); border-radius: 12px; }
.case-box h3 { margin-bottom: .85rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.case-box p, .case-box li { font-size: .97rem; }
.case-box p:last-child { margin-bottom: 0; }
.case-box--win { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

/* Before and after, in small browser frames */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; margin: 0 0 2.25rem; }
.ba-item { position: relative; margin: 0; }
.ba-item figcaption { margin-top: .8rem; font-size: .93rem; line-height: 1.5; text-wrap: balance; }
.ba-label { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 0 0 .8rem; font-size: .97rem; color: var(--ink); }
.ba-label span { padding: .3rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ba-label--before { color: var(--muted); }
.ba-label--before span { background: #6f6f6f; color: #fff; }
.ba-label--after span { background: var(--ink); color: #fff; }
.ba-arrow { align-self: center; display: grid; place-items: center; width: 40px; height: 40px; margin-top: 2.2rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--gold-text); }
.browser { position: relative; display: block; overflow: hidden; border: 1px solid rgba(0, 0, 0, .14); border-radius: 12px; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .06); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.browser:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .1); }
.browser img { width: 100%; }
.ba .browser img { aspect-ratio: 1200 / 755; object-fit: cover; object-position: top; }
.browser-bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .75rem; background: var(--bg); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); text-align: left; }
.browser-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(0, 0, 0, .16); }
.browser-bar span { margin-left: .5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser--old img { filter: grayscale(.6); opacity: .88; }
a.browser--old { cursor: zoom-in; }
.zoom-hint { position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(29, 29, 31, .88); color: #fff; font-size: .85rem; font-weight: 500; }
.zoom-hint .icon { width: 1rem; height: 1rem; }
.new-head { margin: 0 0 1.25rem; font-size: 1.45rem; font-weight: 300; letter-spacing: -0.02em; }
.shots { display: grid; gap: 1rem; align-items: start; margin: 0 0 2.25rem; }
.shots--two { grid-template-columns: 1fr 1fr; }
.shots--two .browser img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top center; }
@media (max-width: 900px) {
  .ba { grid-template-columns: 1fr; gap: 1.5rem; }
  .ba-arrow { justify-self: center; margin: -.4rem 0; transform: rotate(90deg); }
  .shots--two { grid-template-columns: 1fr; }
  .shots--two .browser img { aspect-ratio: auto; }
}

/* Click the old site's picture to see more of it */
.zoom { width: min(1100px, 96vw); height: 92vh; max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.zoom[open] { display: flex; flex-direction: column; }
.zoom::backdrop { background: rgba(29, 29, 31, .6); }
.zoom-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .75rem .6rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); color: var(--ink); }
.zoom-head p { margin: 0; font-size: .95rem; }
.zoom-close { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .7); color: var(--ink); cursor: pointer; }
.zoom-close:hover { background: #fff; border-color: rgba(0, 0, 0, .25); }
.zoom-body { flex: 1; overflow: auto; background: #fff; }
.zoom-body img { width: 100%; height: auto; }

/* ---------- Client pages (/work/qamaria/, /work/elite-construction/) ---------- */
.client-hero .case-logo { margin: .4rem auto 1.1rem; }
.client-kicker { margin: 0 0 .7rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.client-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.6rem; }
.client-tag { padding: .35rem .9rem; border: 1px solid rgba(180, 134, 44, .45); border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }

/* The chat: what the owner sees, played step by step when it scrolls into view */
.chat { max-width: 440px; margin: 0 auto; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(0, 0, 0, .08); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(180, 134, 44, .45); }
.chat-avatar img { width: 26px; height: auto; }
.chat-name { display: flex; flex-direction: column; font-weight: 500; line-height: 1.25; color: var(--ink); }
.chat-name small { font-size: .78rem; font-weight: 400; color: var(--muted); }
.chat-body { display: flex; flex-direction: column; gap: .6rem; min-height: 29rem; padding: 1.2rem 1rem 1.3rem; }
.msg { max-width: 85%; padding: .65rem .9rem; border-radius: 18px; font-size: .95rem; line-height: 1.45; }
.msg--bot { align-self: flex-start; background: var(--bg); color: var(--ink); border-bottom-left-radius: 6px; }
.msg--owner { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.doc { display: flex; align-items: center; gap: .7rem; margin-top: .6rem; padding: .65rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.doc-icon { display: grid; place-items: center; flex: none; width: 36px; height: 44px; border-radius: 5px; background: #faf6ec; box-shadow: inset 0 0 0 1px rgba(180, 134, 44, .4); font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: var(--gold-text); }
.doc-text { display: flex; flex-direction: column; line-height: 1.3; }
.doc-text b { font-weight: 500; }
.doc-text small { font-size: .8rem; color: var(--muted); }
.doc-buttons { display: flex; gap: .5rem; margin-top: .6rem; }
.doc-btn { padding: .35rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500; background: var(--gold); color: #fff; transition: box-shadow .25s; }
.doc-btn.is-pressed { box-shadow: 0 0 0 5px rgba(180, 134, 44, .25); }
.chat-status { display: flex; align-items: center; gap: .55rem; align-self: center; padding: .3rem .85rem; border-radius: 999px; font-size: .85rem; color: var(--gold-text); background: #faf6ec; }
.tick { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); }
.tick::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: .8rem .9rem; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--bg); }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; animation: typing 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.chat--play .chat-step:not(.is-in) { display: none; }
.chat--play .chat-step.is-in { animation: msg-in .35s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-replay { display: block; margin: 0 auto 1.1rem; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; }
.chat-replay[hidden] { display: none; }
.chat-replay:hover { color: var(--ink); border-color: rgba(0, 0, 0, .25); }
.chat-note { margin: 1rem 0 0; text-align: center; font-size: .85rem; color: var(--muted); }

/* Steps with small gold line drawings */
.steps-drawn { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; counter-reset: s; }
.steps-drawn li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.4rem 1rem 1.3rem; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 14px; counter-increment: s; }
.steps-drawn li::before { content: "0" counter(s); position: absolute; top: .8rem; left: .95rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--gold-text); }
.steps-drawn li + li::after { content: ""; position: absolute; left: -.66rem; top: 50%; width: .45rem; height: .45rem; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: translateY(-50%) rotate(45deg); }
.drawing { width: 56px; height: 56px; margin: .6rem 0 .9rem; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.steps-drawn strong { margin-bottom: .25rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.steps-drawn span { font-size: .88rem; line-height: 1.4; color: var(--muted); text-wrap: balance; }
@media (max-width: 900px) {
  .steps-drawn { grid-template-columns: 1fr 1fr; }
  .steps-drawn li + li::after { display: none; }
}
@media (max-width: 480px) {
  .steps-drawn { grid-template-columns: 1fr; gap: .6rem; }
  .steps-drawn li { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; align-items: center; padding: .9rem 1rem; text-align: left; }
  .steps-drawn li::before { display: none; }
  .steps-drawn .drawing { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .steps-drawn strong { margin: 0; }
}

/* Before -> after strip */
.swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem; align-items: stretch; max-width: 900px; margin: 0 auto; text-align: left; }
.swap-side { padding: 1.6rem 1.6rem 1.4rem; border-radius: var(--radius); }
.swap-side--before { background: rgba(255, 255, 255, .45); border: 1px dashed rgba(0, 0, 0, .14); }
.swap-side--after { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .05); }
.swap-label { display: inline-block; margin: 0 0 .9rem; padding: .3rem .85rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #6f6f6f; }
.swap-side--after .swap-label { background: var(--ink); }
.swap-big { margin: 0 0 1.1rem; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.swap-side--before .swap-big { color: var(--muted); }
.swap-list { display: grid; gap: .6rem; }
.swap-list li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.swap-list li::before { content: ""; position: absolute; left: .15rem; top: .72em; width: .7rem; height: 1.5px; background: #b5b5b5; }
.swap-arrow { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(180, 134, 44, .45); border-radius: 50%; color: var(--gold); background: #fff; }
@media (max-width: 760px) {
  .swap { grid-template-columns: 1fr; }
  .swap-arrow { justify-self: center; transform: rotate(90deg); }
}

/* Three numbers in a row */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto; }
.stat-row li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.4rem 1rem; }
.stat-row b { font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); font-weight: 200; line-height: 1; letter-spacing: -0.03em; color: var(--gold); }
.stat-row span { max-width: 14em; margin-top: .6rem; font-size: .95rem; color: var(--muted); text-wrap: balance; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; gap: 0; } }

.case-grid--even { grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
@media (max-width: 900px) { .case-grid--even { grid-template-columns: 1fr; } }

/* All work / Next project */
.next-case { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; max-width: 900px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.next-case a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); }
.next-case a.next-case-back { color: var(--muted); }
.next-case a.next-case-go { flex-direction: column; align-items: flex-end; gap: .1rem; font-size: 1.2rem; font-weight: 300; text-align: right; }
.next-case-go small { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.next-case-go .icon { display: none; }
.next-case a:hover { color: var(--gold-text); }
.icon--back { transform: rotate(180deg); }

/* Our Work overview: the cards carry h2 here (h3 on the home page), same look */
.project h2 { max-width: 17em; margin-bottom: 1.4rem; font-size: 1.5rem; font-weight: 300; letter-spacing: -0.02em; }
