/* About page: dark, editorial, sleek */
:root { --bg: #0d0d0e; --fg: #fff; --muted: rgba(255,255,255,.58); --line: rgba(255,255,255,.1); --card: #17171a; --teal: #36b5a0; --red: #ff4d6d; --orange: #ffad3b; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.t-teal { color: var(--teal); } .t-red { color: var(--red); } .t-orange { color: var(--orange); }

header.ab { display: flex; justify-content: space-between; align-items: center; padding: 26px clamp(20px, 4vw, 56px); font-size: 15px; font-weight: 700; }
header.ab a { text-decoration: none; }
header.ab nav a { margin-left: 24px; color: var(--muted); font-weight: 500; transition: color .2s; }
header.ab nav a:hover, header.ab nav a[aria-current="page"] { color: #fff; }

main { max-width: 1180px; margin: 0 auto; padding: 20px clamp(20px, 4vw, 56px) 80px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; padding: clamp(24px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(48px, 9vw, 120px); line-height: .96; letter-spacing: -0.065em; font-weight: 800; }
.avatar { width: clamp(130px, 17vw, 220px); aspect-ratio: 4 / 5; border-radius: 28px; background: #fff; overflow: hidden; transform: rotate(3deg); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } .avatar { order: -1; width: 120px; } }

/* Facts */
dl.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0 0 clamp(56px, 9vw, 110px); }
dl.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
dl.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
dl.facts dd { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
@media (max-width: 1000px) { dl.facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { dl.facts { grid-template-columns: repeat(2, 1fr); } }

/* Two-column text blocks: big heading left, copy right */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 72px); align-items: start; margin: 0 0 clamp(40px, 6vw, 72px); }
.split h2 { margin: 0; font-size: clamp(38px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.055em; font-weight: 800; position: sticky; top: 24px; }
.copy p { margin: 0 0 1.2em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: rgba(255,255,255,.88); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split h2 { position: static; } }

/* Gallery: staggered */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 clamp(64px, 9vw, 110px); align-items: start; }
.tile { border-radius: 22px; overflow: hidden; aspect-ratio: 253 / 384; background: #1b1b1d; }
.tile:nth-child(even) { margin-top: 44px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tile:hover img { transform: scale(1.05); }
.tile.cta { background: #2a5fe0; padding: 32px 26px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.tile.cta h3 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.04em; font-weight: 800; }
.tile.cta a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; background: #fff; color: #0d0d0e; padding: 13px 20px; border-radius: 14px; font-size: 14px; font-weight: 700; transition: transform .2s; }
.tile.cta a:hover { transform: translateX(3px); }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } .tile:nth-child(even) { margin-top: 0; } .tile:nth-child(n+3) { margin-top: 0; } }

/* Testimonials */
.quote { margin: 0 0 clamp(64px, 9vw, 110px); padding: clamp(26px, 4vw, 52px); background: var(--card); border: 1px solid var(--line); border-radius: 28px; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: clamp(2px, 1vw, 14px); left: clamp(20px, 3.4vw, 46px); font-size: clamp(90px, 12vw, 160px); line-height: 1; font-weight: 800; color: var(--orange); opacity: .9; }
.quote.red::before { color: var(--red); }
.quote blockquote { margin: clamp(46px, 6vw, 76px) 0 26px; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.6; letter-spacing: -0.01em; max-width: 52em; }
.quote figcaption { font-size: 15px; color: var(--muted); display: flex; flex-direction: column; }
.quote figcaption b { color: #fff; font-size: 17px; }

/* Featured list */
.featured { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 4vw, 52px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 56px); align-items: center; margin: 0 0 clamp(64px, 9vw, 110px); }
.featured h3 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.05em; font-weight: 800; }
.featured ul { list-style: none; margin: 0; padding: 0; }
.featured li { border-top: 1px solid var(--line); }
.featured li:last-child { border-bottom: 1px solid var(--line); }
.featured li > a, .featured li > div { display: flex; align-items: baseline; gap: 14px; padding: 15px 4px; text-decoration: none; flex-wrap: wrap; }
.featured li b { font-size: 16px; font-weight: 700; }
.featured li span { color: var(--muted); font-size: 15px; flex: 1; }
.featured li i { font-style: normal; color: var(--muted); transition: transform .2s, color .2s; }
.featured li > a:hover i { transform: translate(3px, -3px); color: #fff; }
.featured li > a:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } }

footer.ab { background: #050505; padding: 28px clamp(20px, 4vw, 56px); display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.4); font-size: 14px; }
footer.ab .icons { display: flex; gap: 20px; align-items: center; }
footer.ab .icons svg { width: 30px; height: 30px; fill: #fff; transition: transform .2s ease; }
footer.ab .icons a:hover svg { transform: translateY(-3px); }

.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .avatar { transform: none; } }

/* Inside the landing page's side panel */
html.framed header.ab { display: none; }
html.framed main { padding-top: 40px; }

/* Single-column layout */
main { max-width: 760px; }
dl.facts, dl.facts { grid-template-columns: 1fr; gap: 0; }
dl.facts div { display: flex; justify-content: space-between; gap: 16px; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
dl.facts div:last-child { border-bottom: 1px solid var(--line); }
dl.facts dt { margin: 0; }
dl.facts dd { text-align: right; }
.split, .featured { grid-template-columns: 1fr; gap: 20px; }
.split h2 { position: static; }
.gallery { grid-template-columns: repeat(2, 1fr); }
.tile:nth-child(even) { margin-top: 0; }
@media (max-width: 800px) { dl.facts { grid-template-columns: 1fr; } }

/* Featured: same row style as the facts list */
.featured { background: none; border: 0; padding: 0; border-radius: 0; }
.featured h3 { font-size: clamp(30px, 4vw, 44px); }
.featured li > a, .featured li > div { justify-content: space-between; align-items: baseline; padding: 14px 0; gap: 16px; flex-wrap: nowrap; }
.featured li b { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex: none; }
.featured li span { flex: none; text-align: right; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.3; }
.featured li i { display: none; }
.featured li > a:hover b { text-decoration: none; }
.featured li > a:hover span { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .featured li > a, .featured li > div { flex-direction: column; gap: 4px; } .featured li span { text-align: left; } }

/* Back chevron (top left), same as the case studies */
.backchev { position: fixed; top: 20px; left: 20px; z-index: 60; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); transition: background .2s ease, transform .2s ease; }
.backchev:hover { background: rgba(255,255,255,.22); transform: translateX(-2px); }
.backchev svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 901px) { html:not(.framed) .backchev { display: none; } }

/* Phones: no top nav (the back chevron is enough); leave room for the chevron */
@media (max-width: 900px) {
  header.ab { display: none; }
  main { padding-top: 76px; }
}

/* Page transitions: simple and quick (the card morph into a project page is kept) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* Footer: "Built with love" line on the lower left, social icons on the right */
footer.ab { flex-direction: row-reverse; }
