:root { --ink:#333; --black:#111; --muted:#616161; --grey:#9a9a9a; --line:#e6e6e6; --red:#E04E39; --brush:#E04E39; --pop:#FF5C39; --lav:#D9D2F0; --blue:#7F9CC8; --tile:#f4f4f4; --tile-hover:#e6e6e6; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.7 Chivo, Arial, sans-serif; letter-spacing: .32px; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
header.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 22px; height: 112px; padding: 0 max(40px, calc((100vw - 1240px) / 2)) 16px; color: #111; }
header.top.ready, header.top.ready .tag, header.top.ready nav a { transition: color .35s; } /* the glass itself switches instantly: a fade showed a dark band */
header.top.edgy::before { background: rgba(214,225,250,.97); -webkit-backdrop-filter: none; backdrop-filter: none; } /* while the black hero is still under or just below the menu: no blur, so the black cannot smear into the glass */
header.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(214,225,250,.86); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); -webkit-mask: var(--hmask, none); mask: var(--hmask, none); transition: background .35s; }
header.top.dark { color: #fff; }
body.inkhdr header.top { color: #fff; }
body.inkhdr header.top::before { background: #0b0b10; } /* same solid ink as the footer */
body.inkhdr header.top .tag { color: rgba(255,255,255,.72); }
body.inkhdr header.top nav a { color: rgba(255,255,255,.7); }
body.inkhdr header.top nav a.on, body.inkhdr header.top nav a:hover { color: #fff; }
header.top.dark::before { background: rgba(150,172,240,.2); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
body:not(.home) { padding-top: 112px; }
header.top .logo { width: 117px; height: auto; }
header.top .tag { font-size: 14px; color: var(--muted); letter-spacing: .6px; transition: color .35s; }
header.top.dark .tag { color: rgba(255,255,255,.78); }
header.top nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
header.top nav a { text-decoration: none; color: #6f6f6f; transition: color .25s; }
header.top nav a.on, header.top nav a:hover { color: #111; }
header.top.dark nav a { color: rgba(255,255,255,.72); }
header.top.dark nav a.on, header.top.dark nav a:hover { color: #fff; }
h1, h2, h3 { font-weight: 400; color: var(--ink); margin: 0; }
.caps { font-size: 12px; text-transform: uppercase; letter-spacing: 2.4px; }
.btn { display: inline-block; border: 1.5px solid var(--red); color: var(--red); background: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; padding: 12px 22px; text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: var(--red); color: #fff; }
.social { display: inline-flex; color: var(--black); transition: color .2s, transform .2s; }
.social:hover { color: #0a66c2; transform: translateY(-2px); }

/* Footer */
.foot { position: relative; background: #0b0b10; color: #cfcbe0; padding: 46px max(40px, calc((100vw - 1240px) / 2)) 22px; }
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #E4DEF7, #C7B8FF 35%, #8F9DF0 70%, #5B7FD1); opacity: .7; }
.foot .fin { display: grid; grid-template-columns: auto 1fr auto auto; gap: 28px 40px; align-items: center; }
.foot .flogo { color: #fff; } .foot .flogo .logo { width: 96px; height: auto; display: block; }
.foot .ftag { margin: 0; font-size: 14px; letter-spacing: .6px; color: #9a96ad; }
.foot .fnav { display: flex; gap: 24px; font-size: 14px; } .foot .fnav a { color: #cfcbe0; text-decoration: none; } .foot .fnav a:hover { color: #fff; }
.foot .fcon { display: flex; align-items: center; gap: 16px; font-size: 14px; } .foot .fcon a { color: #cfcbe0; text-decoration: none; } .foot .fcon a:hover { color: #fff; }
.foot .fcon .social { color: #fff; }
.foot .fcopy { margin: 34px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; letter-spacing: .4px; color: #77738a; }
@media (max-width: 900px) { .foot .fin { grid-template-columns: 1fr; gap: 16px; } .foot { padding: 36px 20px 20px; } }

/* Home */
.hero { text-align: center; padding: 56px 0 30px; }
.hero h1 { font-size: 72px; letter-spacing: -1.44px; line-height: 1.1; }
.hero p { margin: 14px 0 0; font-size: 20px; }
.hero s { text-decoration-thickness: 2px; }
.hero .social { margin-top: 18px; }
.intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 40px 0 70px; }
.intro .caps { line-height: 2; color: var(--ink); }
.intro p.mission { color: var(--muted); margin: 18px 0 0; }
.photo { width: 100%; object-fit: cover; background: #f2f2f2; }
.photo.wide { aspect-ratio: 447 / 295; object-position: 58% 42%; }
.expertise { text-align: center; padding: 10px 0 90px; }
.expertise h2 { font-size: 30.4px; letter-spacing: -.6px; margin-bottom: 40px; }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.cols4 .caps { font-weight: 700; color: var(--ink); }
.cols4 p { color: var(--muted); margin: 14px 0 22px; font-size: 15px; }

/* Work */
.page-title { padding: 30px 0 26px; }
.page-title h1 { font-size: 44px; letter-spacing: -.9px; }
.page-title p { color: var(--muted); margin: 8px 0 0; max-width: 680px; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding-bottom: 56px; }
.box { position: relative; display: block; aspect-ratio: 702 / 527; overflow: hidden; text-decoration: none; border-radius: 6px; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.box:hover, .box:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px #111; }
.box::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px #111; opacity: 0; transition: opacity .2s; pointer-events: none; }
.box:hover::after, .box:focus-visible::after { opacity: 1; }
/* frosted glass: heavily blurred, the art behind it only just visible */
.box .band { position: absolute; left: 0; right: 0; top: 58%; height: 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 20px;
  background: rgba(255,255,255,.66); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-top: 1px solid rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.5); transition: background .35s; }
.box .band b { font: 700 clamp(13px, 1.5vw, 19px)/1.2 Chivo, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #15151f; position: relative; padding-bottom: 6px; }
.box .band b::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 46%; height: 2px; background: #FF5C39; transform: translateX(-50%); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.box .band i { font: 400 12px/1 Chivo, sans-serif; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #E04E39; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.box:hover .band, .box:focus-visible .band { background: #fff; box-shadow: 0 -1.5px 0 #111, 0 1.5px 0 #111; }
.box:hover .band b::after, .box:focus-visible .band b::after { background: #111; }
.box:hover .band i, .box:focus-visible .band i { color: #111; } /* the label band turns solid white with a black outline */
.box:hover .band b::after, .box:focus-visible .band b::after { width: 100%; }
.box:hover .band i, .box:focus-visible .band i { opacity: 1; transform: none; }

.box svg { width: 100%; height: 100%; transition: transform .6s ease; }
.box svg { transition: transform .6s ease, filter .25s ease; }
.box:hover svg, .box:focus-visible svg { transform: scale(1.04); filter: grayscale(1) brightness(1.1) contrast(1.3); } /* hover: the whole box turns black and white */

/* Category page */
.back { display: inline-block; margin-top: 18px; font-size: 13px; text-decoration: none; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.back:hover { color: var(--red); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 6px 0 56px; }
.pcard { font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; color: var(--ink); transition: transform .22s, box-shadow .22s, border-color .22s, background .22s; }
.pcard:hover, .pcard:focus-visible { transform: scale(1.02); border-color: #111; box-shadow: inset 0 0 0 .5px #111; outline: none; } /* hover: crisp white with a thin black outline, like the home circles */
.pcard .plogo { width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pcard .plogo img { width: 28px; height: 28px; object-fit: contain; }
.pcard .picon { width: 46px; height: 46px; margin-bottom: 6px; }
.pcard .pname { font-size: 19px; letter-spacing: -.3px; color: var(--black); }
.pcard .pclient { color: var(--brush); font-weight: 700; font-size: 11px; }
.pcard .ptag { color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.pcard .pmore { margin-top: 8px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--brush); }
.sheet .shot { width: 100%; max-width: 440px; height: auto; border-radius: 12px; display: block; }
.sheet .notice { margin-bottom: 14px; }
.sheet .client { margin: -12px 0 12px; }
.sheet .lead { color: var(--ink); }
.bhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.bhead h2 { margin: 0 !important; }
.blogo { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); padding: 7px; background: #fff; object-fit: contain; }
.bsite { margin-left: auto; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brush); text-decoration: none; border-bottom: 1px solid transparent; }
.bsite:hover { border-bottom-color: var(--brush); }
.sheet > div > .bsite, .sheet .client + .bsite { display: inline-block; margin: 0 0 12px; }
.brief .bkick { color: var(--brush); font-weight: 700; margin: 0 0 6px; }
.brief h2 { font-size: 34px; margin: 0 0 10px; }
.brief .bbrand { font-size: 15.5px; font-style: italic; color: #6a6f8a; border-left: 2px solid #C7B8FF; padding-left: 14px; margin: 0 0 26px; }
.brief .blabel { color: #5B7FD1; font-weight: 700; margin: 26px 0 10px; }
.brief .brow { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.brief .brow .blabel { margin-top: 0; }
.brief .brole p:last-child { color: var(--ink); margin: 0; }
.brief .bstat { text-align: center; padding: 18px 22px; border-radius: 14px; background: linear-gradient(135deg, #F1ECFD, #DDE5FA); min-width: 150px; }
.brief .bstat b { display: block; font: 700 46px/1 Chivo, sans-serif; color: #E04E39; letter-spacing: -1px; }
.brief .bstat span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #4a4f6a; }
.brief .bcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.brief .bcol { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaff; }
.brief .bnum { display: block; font: 700 12px/1 Chivo, sans-serif; letter-spacing: .14em; color: #FF5C39; margin-bottom: 8px; }
.brief .bcol h4 { margin: 0 0 6px; font-size: 15px; color: var(--black); }
.brief .bcol p { margin: 0; font-size: 14px; line-height: 1.6; }
.brief .bresult { color: var(--ink); margin: 0; }
@media (max-width: 760px) { .brief .bcols, .brief .brow { grid-template-columns: 1fr; } }
.ptabs { display: flex; gap: 8px; margin: 18px 0 6px; border-bottom: 1px solid var(--line); }
.ptab { font: inherit; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 6px; margin-bottom: -1px; cursor: pointer; color: var(--muted); }
.ptab.on { color: var(--black); border-bottom-color: var(--brush); }
.ptab:hover { color: var(--black); }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; padding: 10px 0 56px; }
.project img, .project svg.shot { width: 100%; height: auto; border-radius: 12px; }
.notice { font-size: 11.5px; line-height: 1.5; color: var(--grey); margin: 8px 0 0; letter-spacing: .2px; }
.project h3 { font-size: 24px; letter-spacing: -.4px; margin-top: 16px; }
.project .client { color: var(--brush); margin-top: 4px; font-weight: 700; }
.project p.sum { color: var(--muted); margin: 10px 0 16px; font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { font: inherit; cursor: pointer; border: 1.5px solid transparent; background: var(--tile); color: var(--ink); padding: 16px 10px 14px; text-align: center;
  transition: background .22s, border-color .22s, transform .22s, box-shadow .22s; }
.tile .caps { display: block; font-weight: 700; }
.tile i { display: block; font-style: normal; font-size: 12px; color: var(--grey); margin-top: 2px; letter-spacing: .3px; }
.tile:hover, .tile:focus-visible { background: var(--tile-hover); border-color: var(--black); transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 26px rgba(0,0,0,.16); outline: none; }
.tile:active { transform: translateY(-1px) scale(1.02); }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(17,17,17,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.sheet { background: #fff; width: 60vw; max-height: 80vh; overflow: auto; position: relative; padding: 46px 52px 40px; transform: translateY(18px) scale(.98); transition: transform .25s; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.modal.open .sheet { transform: none; }
.sheet .caps { color: var(--brush); font-weight: 700; }
.sheet h2 { font-size: 30px; letter-spacing: -.6px; margin: 4px 0 18px; }
.sheet h4 { font-size: 16px; font-weight: 700; color: var(--black); margin: 22px 0 4px; }
.sheet p { color: var(--muted); margin: 0 0 12px; }
.sheet .x { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); transition: color .2s, transform .2s; }
.sheet .x:hover { color: var(--red); transform: rotate(90deg); }
body.locked { overflow: hidden; }

/* About */
.about2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; padding: 36px 0 64px; align-items: start; }
.about2 .akick { color: var(--brush); font-weight: 700; margin: 0 0 6px; }
.about2 h1 { font-size: 44px; letter-spacing: -.9px; line-height: 1.12; margin: 0 0 22px; }
.about2 p { color: var(--muted); margin: 0 0 16px; }
.about2 .alead { color: var(--ink); font-size: 19px; line-height: 1.6; }
.about2 .ablock { margin-top: 30px; padding-top: 22px; border-top: 1px solid #e6e1f6; }
.about2 .ablock .caps { color: #5B7FD1; font-weight: 700; margin-bottom: 10px; }
.about2 .aquote { margin: 36px 0 0; padding: 24px 28px; border-left: 3px solid #FF5C39; background: linear-gradient(90deg, #f1ecfd, rgba(241,236,253,0)); font-size: 21px; line-height: 1.5; color: #15151f; }
.about2 .aphoto { position: sticky; top: 160px; margin: 70px 0 0; aspect-ratio: 1; max-width: 400px; justify-self: center; width: 100%; }
.about2 .aphoto img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 52% 28%; border-radius: 50%; border: 0; box-shadow: 0 24px 50px rgba(30,25,60,.16); }
/* an echo of the home page circle: a soft coral ring offset behind the portrait */
.about2 .ring { position: absolute; z-index: 0; width: 112%; aspect-ratio: 1; left: -14%; top: -8%; border-radius: 50%; background: rgba(199,184,255,.10); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } /* the home page ring: thin lavender-to-blue, fading out at both ends */
.about2 .ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, rgba(199,184,255,0) 0deg, rgba(199,184,255,.95) 90deg, rgba(143,157,240,.95) 200deg, rgba(91,127,209,.7) 280deg, rgba(91,127,209,0) 330deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.about2 .minis { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.about2 .minis i { position: absolute; aspect-ratio: 1; border-radius: 50%; } /* solid circles, no outlines */
.about2 .minis i:nth-child(1) { display: none; }
.about2 .minis i:nth-child(2) { display: none; }
.about2 .minis i:nth-child(3) { display: none; }
.about2 .minis i:nth-child(4) { width: 5%; right: 6.3%; top: 19.2%; background: #FF5C39; z-index: 3; } /* sits exactly on the ring line, where the ring passes behind the photo */
.about2::before { content: ""; position: absolute; }
.about { display: grid; grid-template-columns: 1.45fr 1fr; gap: 56px; padding: 30px 0 56px; align-items: start; }
.about h1 { font-size: 44px; letter-spacing: -.9px; margin-bottom: 22px; }
.about p { color: var(--muted); margin: 0 0 16px; }
.photo.tall { aspect-ratio: 567 / 764; object-position: 50% 35%; position: sticky; top: 24px; }

/* Contact */
/* Contact boxes: details always visible (not only on hover) */
.cboxes .box .band i { opacity: 1; transform: none; text-transform: none; letter-spacing: .04em; font-size: 15px; color: #4a4f6a; }
.cboxes .box:hover .band i { color: #E04E39; }
.contact { padding: 40px 0 56px; }
.contact .who { font-size: 20px; color: var(--black); margin: 0; }
.contact .mail { color: var(--muted); text-decoration: none; }
.contact .mail:hover { color: var(--red); }
.contact figure { margin: 30px auto 0; max-width: 1024px; }
.contact .center { text-align: center; margin-top: 22px; }

@media (max-width: 900px) {
  .wrap, header.top { padding-left: 20px; padding-right: 20px; }
  header.top { flex-wrap: wrap; gap: 10px 16px; height: auto; padding-top: 12px; padding-bottom: 34px; }
  body:not(.home) { padding-top: 132px; }
  header.top .logo { width: 88px; }
  header.top nav { gap: 18px; width: 100%; margin-left: 0; }
  .hero h1 { font-size: 46px; }
  .intro, .about, .about2, .projects, .boxes { grid-template-columns: 1fr; gap: 28px; }
  .about2 .aphoto { position: relative; top: 0; max-width: 240px; order: -1; margin: 8px auto 6px; } /* phones: the portrait leads the page */
  .about2 h1 { font-size: 36px; }
  .cols4 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sheet { width: 94vw; padding: 40px 22px 28px; max-height: 86vh; }
  .photo.tall { position: static; }
}
@media (max-width: 1000px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pgrid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cols4 { grid-template-columns: 1fr; } .tiles { gap: 8px; } .tile { padding: 14px 4px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
#hand { position: fixed; left: 0; top: 0; width: 120px; height: 160px; pointer-events: none; z-index: 70; display: none; transform-origin: 51px 8px; } /* drawn at its largest size and scaled down, so it stays crisp when enlarged */
html.handcursor, html.handcursor * { cursor: none !important; }
#smudge { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 65; }
.print { position: fixed; width: 84px; height: 84px; margin: -42px 0 0 -42px; pointer-events: none; z-index: 66; transition: opacity .7s ease; background: center / contain no-repeat; } /* the print texture is generated in JS */
.circle.pressed { scale: .96 !important; transition: scale .15s ease; } /* phones: the tapped circle presses in while its print shows */
