/* The homepage (the "v9" design). Everything is drawn by assets/js/home.js into #aatc-home9. */
html.aatc-home9, html.aatc-home9 body { background: #fff !important; overscroll-behavior-x: none; }
/* clip, not hidden, on body: a hidden body becomes its own scroll container and would capture the snap points */
html.aatc-home9 { overflow-x: hidden; scroll-snap-type: y mandatory; }
html.aatc-home9 body { overflow-x: clip !important; overflow-y: visible !important; }
html.a9-grabbing, html.a9-grabbing * { cursor: grabbing !important; -webkit-user-select: none !important; user-select: none !important; }

#aatc-home9 {
  --a9-serif: 'Mercure', 'Happy Times at the IKOB', Georgia, 'Times New Roman', serif;
  --a9-sans: 'HB Goblet', 'HB Goblet A', 'Favorit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --a9-u: calc(100vw / 1728);
  /* motion tokens */
  --a9-out: cubic-bezier(.22, 1, .36, 1);        /* entrances, responses to input */
  --a9-io: cubic-bezier(.6, 0, .2, 1);           /* moves between two on-screen places */
  --a9-in: cubic-bezier(.5, 0, .9, .4);          /* exits */
  --a9-open: .56s;                               /* project opens: big surface */
  --a9-close: .42s;                              /* …and closes a little faster */
  --a9-step: .5s;                                /* one image to the next */
  --a9-quick: .16s;                              /* micro feedback */
  --a9-pink: #f0f;
  --a9-panel: #ededed;
  position: relative; z-index: 2; color: #000; background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none; font-kerning: normal;
}
#aatc-home9 ::selection { background: #000; color: #fff; }
#aatc-home9 a { color: inherit; }
#aatc-home9 button { font: inherit; color: inherit; }
#aatc-home9 :focus { outline: none; }
#aatc-home9 :focus-visible { outline: 1.5px solid #000; outline-offset: 3px; }

/* ---------- header: name and nav stay put, the bio scrolls away ---------- */
.a9-head { position: relative; height: max(110px, calc(178 * var(--a9-u))); font: 400 clamp(15px, calc(18 * var(--a9-u)), 22px)/1.17 var(--a9-serif); scroll-snap-align: start; }
.a9-head a { text-decoration: none; }
.a9-top { position: fixed; z-index: 7; top: 0; left: 0; right: 0; height: 0; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.a9-top a { pointer-events: auto; }
.a9-name { position: absolute; left: max(16px, calc(40 * var(--a9-u))); top: max(14px, calc(22 * var(--a9-u))); white-space: nowrap; }
.a9-nav { position: absolute; right: max(16px, calc(32 * var(--a9-u))); top: max(14px, calc(22 * var(--a9-u))); display: flex; align-items: center; gap: max(14px, calc(20 * var(--a9-u))); white-space: nowrap; }
.a9-head a:hover { text-decoration: underline; text-decoration-thickness: from-font; }
/* Instagram: the same icon glyph the inside pages use (Cargo's icon font) */
#aatc-home9 .a9-ig { display: inline-flex; font-size: 1.15em; line-height: 1; text-decoration: none !important; transform: translateY(.12em); transition: opacity var(--a9-quick) ease; }
#aatc-home9 .a9-ig:hover { opacity: .6; }
/* the bio stays on screen with the name for the first three projects, then is pushed up out of the page;
   scrolling back up brings it down again. Same difference blend as the name, so it reads over any picture. */
.a9-bio { position: fixed; z-index: 7; left: var(--a9-col-l, 25.3vw); top: max(14px, calc(22 * var(--a9-u))); width: calc(533 * var(--a9-u)); min-width: 380px; margin: 0;
  color: #fff; mix-blend-mode: difference; transition: transform .5s var(--a9-out), visibility 0s; }
.a9-bio.is-up { transform: translate3d(0, calc(-100% - 60px), 0); visibility: hidden; transition: transform .42s var(--a9-io), visibility 0s .42s; }
.a9-bio a { text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: from-font; text-decoration-skip-ink: none; }
.a9-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

/* ---------- projects ---------- */
.a9-list { margin: 0; padding: 0; list-style: none; }
.a9-project { position: relative; transition: opacity .45s var(--a9-out), filter .45s var(--a9-out); }
.a9-row { position: relative; width: 100%; scroll-snap-align: center; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.a9-band { position: absolute; left: 50%; top: 0; width: 0; height: 100%; }
/* Every image of a project is one element at the full size; the big one, the smaller hovered one and
   the thumbnails beside it are the same element at different scales, so everything that moves is a
   transform (plus opacity). */
.a9-item { position: absolute; top: 0; margin: 0; padding: 0; border: 0; display: block; overflow: hidden; background: #f1f0ed; opacity: 0; pointer-events: none;
  transform-origin: 50% 50%; border-radius: var(--a9-r-thumb); backface-visibility: hidden;
  transition: transform var(--a9-step) var(--a9-io), opacity .3s ease, border-radius var(--a9-open) var(--a9-out); }
.a9-item.is-cur { z-index: 2; opacity: 1; pointer-events: auto; border-radius: var(--a9-r-rest); }
.a9-project.is-open .a9-item { opacity: 1; pointer-events: auto; cursor: pointer; transition-timing-function: var(--a9-out), ease, var(--a9-out); transition-duration: var(--a9-open), .3s, var(--a9-open); }
.a9-project.is-open.is-stepping .a9-item { transition-timing-function: var(--a9-io), ease, var(--a9-out); transition-duration: var(--a9-step), .3s, var(--a9-open); }
.a9-project.is-open .a9-item.is-cur { border-radius: var(--a9-r-thumb); }
.a9-project.is-closing .a9-item { transition-duration: var(--a9-close), .14s, var(--a9-close); transition-timing-function: var(--a9-out), ease, var(--a9-out); }
.a9-item.is-gone { opacity: 0 !important; pointer-events: none !important; }
/* what cannot be seen is not painted: the other images of a closed project cost nothing */
#aatc-home9:not(.a9-touch) .a9-project:not(.is-open):not(.is-closing) .a9-item:not(.is-cur) { visibility: hidden; }
.a9-item.no-tr, .a9-band.no-tr { transition: none !important; }
.a9-item img, .a9-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; pointer-events: none; }
.a9-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.a9-frame.is-in { opacity: 1; }
.a9-item img.a9-imgin { opacity: 0; transition: opacity .5s var(--a9-out); }
.a9-item img.a9-imgin.is-in { opacity: 1; }

/* caption: name ● disciplines. Hidden at rest, sits right under the image when the project opens. */
.a9-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .28em; row-gap: 1px; margin: 0 auto; padding: calc(6.6 * var(--a9-u)) 16px;
  min-height: 1.2em; box-sizing: content-box; font: 400 clamp(13px, calc(14.9 * var(--a9-u)), 17px)/1.2 var(--a9-serif);
  opacity: 0; transition: opacity .2s ease, transform var(--a9-close) var(--a9-out); pointer-events: none; }
.a9-cap-t { font-family: var(--a9-sans); font-weight: 400; color: #120000; white-space: nowrap; }
.a9-cap-dot { display: inline-block; width: .67em; height: .67em; border-radius: 50%; background: #000; align-self: center; margin: 0 .08em; flex: none; }
.a9-project.is-open .a9-cap { opacity: 1; transition: opacity .35s ease .12s, transform var(--a9-open) var(--a9-out); }

/* while one project is open the rest of the page steps back */
.a9-opened .a9-project:not(.is-open) { opacity: .2; }
.a9-opened .a9-project.is-near:not(.is-open) { filter: blur(9px); }
/* the neighbour the pointer is resting on comes forward a little: that is where the page is about to go */
.a9-opened .a9-project.is-target:not(.is-open) { opacity: .5; filter: blur(3px); }       /* only the ones that can be on screen */

/* the real link of each project: there for keyboards and screen readers; a visible pill on touch screens */
#aatc-home9 .a9-more { position: absolute; z-index: 3; left: 50%; top: 50%; padding: 0 10px; height: 25px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); color: #fff; text-decoration: none; white-space: nowrap; font: 400 14px/1 var(--a9-sans);
  opacity: 0; pointer-events: none; transform: translate(-50%, -50%); transition: opacity var(--a9-quick) ease; }
#aatc-home9 .a9-more:focus-visible { opacity: 1; pointer-events: auto; outline: 1.5px solid #000; outline-offset: 2px; }
.a9-plus { position: relative; width: 11px; height: 10px; flex: none; }
.a9-plus::before, .a9-plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; }
.a9-plus::before { width: 11px; height: 1.2px; transform: translate(-50%, -50%); }
.a9-plus::after { width: 1.2px; height: 10px; transform: translate(-50%, -50%); }

/* ---------- cursor: "Read More +" over the image, arrows over its left and right ---------- */
.a9-cursor { position: fixed; left: 0; top: 0; z-index: 9; pointer-events: none; will-change: transform; }
.a9-cursor > span { position: absolute; left: 0; top: 0; height: 25px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; white-space: nowrap; font: 400 14px/1 var(--a9-sans);
  opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .14s ease, transform .28s var(--a9-out); }
.a9-cursor .a9-c-prev, .a9-cursor .a9-c-next { width: 50px; padding: 0; box-sizing: border-box; }
/* up / down: a round button; the ring around it closes while the pointer waits, then the page moves */
.a9-cursor .a9-c-round { width: 36px; height: 36px; padding: 0; box-sizing: border-box; }
.a9-rarrow { transition: transform .32s var(--a9-out), opacity .16s ease; }
.a9-cursor[data-kind="up"] .a9-rarrow { transform: rotate(90deg); }
.a9-cursor[data-kind="down"] .a9-rarrow { transform: rotate(-90deg); }
.a9-x { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; opacity: 0; transform: rotate(-90deg) scale(.5); transition: transform .32s var(--a9-out), opacity .16s ease; }
/* over the white around an open project the arrow turns into an x */
.a9-cursor[data-kind="close"] .a9-rarrow { opacity: 0; transform: rotate(135deg) scale(.5); }
.a9-cursor[data-kind="close"] .a9-x { opacity: 1; transform: none; }
.a9-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.a9-cursor.is-wait .a9-ring { animation: a9-ring 1s linear both; }
@keyframes a9-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.a9-cursor[data-kind="close"].is-wait .a9-ring { animation-duration: .6s; }      /* = CLOSE_DWELL in home.js */
.a9-cursor[data-kind="more"] .a9-c-more, .a9-cursor[data-kind="prev"] .a9-c-prev, .a9-cursor[data-kind="next"] .a9-c-next,
.a9-cursor[data-kind="up"] .a9-c-round, .a9-cursor[data-kind="down"] .a9-c-round, .a9-cursor[data-kind="close"] .a9-c-round { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.a9-cursor.is-down > span { transform: translate(-50%, -50%) scale(.9) !important; transition-duration: .1s; }
.a9-arrow { display: block; width: 13px; height: 11px; }
.a9-row[data-zone="more"], .a9-row[data-zone="prev"], .a9-row[data-zone="next"],
.a9-row[data-zone="more"] .a9-item, .a9-row[data-zone="prev"] .a9-item, .a9-row[data-zone="next"] .a9-item { cursor: none; }

#aatc-home9.a9-navzone, .a9-navzone .a9-list, .a9-navzone .a9-list *, .a9-navzone .a9-tail { cursor: none !important; }

.a9-tail { height: 50vh; }

/* ---------- project index: a panel that peeks from the bottom left ---------- */
.a9-dock { position: fixed; z-index: 6; left: max(10px, calc(39 * var(--a9-u))); top: 0; width: clamp(250px, calc(319 * var(--a9-u)), 380px);
  transform: translate3d(0, 100vh, 0); transition: transform .5s var(--a9-out); will-change: transform; }
.a9-dock.no-tr, .a9-dock.no-tr * { transition: none !important; }
.a9-panel { position: relative; overflow: hidden; border-radius: max(7px, calc(9 * var(--a9-u))); box-sizing: border-box; transition: background-color .45s var(--a9-out);
  /* glass: what passes behind shows through, softened; a light veil keeps the names readable over any picture */
  background: #ececef; }
.a9-opened .a9-panel, .a9-under .a9-panel, .a9-compact .a9-panel { background: rgba(224, 224, 228, .6); -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7); }
.a9-panel {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 1px rgba(0, 0, 0, .03), 0 12px 32px -14px rgba(0, 0, 0, .14); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { #aatc-home9 .a9-panel { background: var(--a9-panel); } }
/* while a project is open the index steps back with the rest of the page: only that project stays at full strength */
.a9-irow { transition: opacity .45s var(--a9-out); }
.a9-opened .a9-irow:not(.is-on) { opacity: .26; }
.a9-opened .a9-panel { background: rgba(240, 240, 243, .6); }
.a9-dock.is-full .a9-panel { overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; }
.a9-panel::-webkit-scrollbar { display: none; }
.a9-ilist { margin: 0; padding: var(--a9-ipad) 0 var(--a9-ipad) var(--a9-ipad-l); list-style: none; transition: transform .5s var(--a9-out); }
.a9-irow { display: flex; align-items: center; gap: max(6px, calc(8 * var(--a9-u))); width: 100%; height: var(--a9-pitch); margin: 0; padding: 0 10px 0 0; border: 0; background: none; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.a9-ithumb { position: relative; flex: none; width: calc(var(--a9-pitch) * 16 / 9); height: var(--a9-pitch); border-radius: max(4px, calc(6 * var(--a9-u))); overflow: hidden; background: rgba(0, 0, 0, .06); }
.a9-ithumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s ease; }
.a9-ithumb img.is-in { opacity: 1; }
.a9-iname { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 clamp(15px, calc(18 * var(--a9-u)), 21px)/1.25 var(--a9-sans); transition: opacity var(--a9-quick) ease; }
@media (hover: hover) {
  .a9-panel:hover .a9-iname { opacity: .45; }
  .a9-panel:hover .a9-irow:hover .a9-iname, .a9-panel .a9-irow.is-active .a9-iname { opacity: 1; }
}
/* the pink dot marks the project on screen; drag it to scrub through the page */
.a9-dot { position: absolute; z-index: 2; left: calc(var(--a9-dot) * -1.15 - 1px); top: 0; width: var(--a9-dot); height: var(--a9-dot); border-radius: 50%; cursor: grab; touch-action: none;
  transition: transform .5s var(--a9-out); }
/* the pink itself is a layer of its own, so it can grow without disturbing where the handle sits */
.a9-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--a9-pink); transition: transform .9s cubic-bezier(.33, 0, .2, 1); }
@media (hover: hover) { .a9-dot:hover::after { transform: scale(1.6); } }
.a9-dot::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
.a9-dock.is-scrub .a9-dot { transition: none; cursor: grabbing; }
.a9-dock.is-scrub .a9-dot::after { transform: scale(1.6); }
/* while the dot is dragged, the list steps back: only the project under it stays at full strength */
.a9-dock.is-scrub .a9-irow:not(.is-sel) { opacity: .26; }
.a9-dock.is-scrub .a9-irow .a9-iname { opacity: 1; }
/* (the panel is whole at all times: no dissolving edge, no expand pill) */
#aatc-home9 .a9-expand { display: none !important; }
#aatc-home9 .a9-expand { position: fixed; z-index: 7; left: calc(max(10px, calc(39 * var(--a9-u))) + clamp(250px, calc(319 * var(--a9-u)), 380px) / 2); bottom: 10px; height: 25px; padding: 0 10px; margin: 0; border: 0;
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; white-space: nowrap; font: 400 14px/1 var(--a9-sans); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .3s var(--a9-out), background-color var(--a9-quick) ease; }
#aatc-home9 .a9-expand.is-on, #aatc-home9 .a9-expand:focus-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#aatc-home9 .a9-expand:hover { background: rgba(0, 0, 0, .72); }
#aatc-home9 .a9-expand:active { transform: translate(-50%, 0) scale(.96); }

/* ---------- compact: tablets, small laptops, phones — the index is a bar that opens as a sheet ---------- */
.a9-compact .a9-dock { left: 10px; right: 10px; width: auto; max-width: 420px; }
.a9-compact .a9-panel { border-radius: 12px; background: rgba(232, 232, 236, .74); }
.a9-compact .a9-dot { left: 11px; pointer-events: none; }
.a9-compact .a9-iname { font-size: 16px; }
.a9-compact .a9-dock:not(.is-full) .a9-irow:not(.is-active) { visibility: hidden; }
.a9-compact .a9-dock.is-full .a9-ilist { transition: none; }
.a9-scrim { position: fixed; z-index: 5; inset: 0; background: rgba(255, 255, 255, .55); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.a9-compact .a9-scrim.is-on { opacity: 1; pointer-events: auto; }

@media (max-width: 1099px) {
  .a9-bio { left: max(16px, calc(40 * var(--a9-u))); top: calc(max(14px, calc(22 * var(--a9-u))) + 2.2em); width: min(520px, 62vw); min-width: 0; }
  .a9-head { height: max(150px, calc(178 * var(--a9-u))); }
}
@media (max-width: 767px) {
  .a9-head { height: auto; padding: calc(28px + 1.17em) 16px 20px; }
  .a9-top { height: auto; padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; }
  .a9-name, .a9-nav { position: static; }
  .a9-nav { gap: 14px; }
  .a9-bio { position: static; width: auto; margin: 0; font-size: 15px; line-height: 1.25; color: inherit; mix-blend-mode: normal; transform: none !important; visibility: visible !important; }
  .a9-cap { font-size: 14px; padding: 8px 16px 14px; }
  .a9-cap-t { flex-basis: 100%; text-align: center; }
  .a9-cap-dot { display: none; }
  .a9-cap-d { text-align: center; text-wrap: balance; }
}

/* ---------- touch screens: no hover. The project in the middle shows its caption and a pill; the rest steps back ---------- */
@media not all and (hover: hover) and (pointer: fine) {
  .a9-project { opacity: .2; }
  .a9-project.is-active { opacity: 1; }
  .a9-project.is-active .a9-cap { opacity: 1; }
  #aatc-home9 .a9-project.is-active .a9-more { opacity: 1; pointer-events: auto; left: auto; top: auto; right: calc(50% - var(--a9-w) / 2 + 10px); bottom: 10px; transform: none; }
  .a9-item { border-radius: var(--a9-r-rest); opacity: 1; }
  .a9-item.is-far { opacity: 0; }
  .a9-opened .a9-project:not(.is-open) { filter: none !important; }
  .a9-cursor.is-wait .a9-ring { animation: none; stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  /* reduce, don't remove: states still change, nothing travels or scales over time */
  .a9-item, .a9-band, .a9-cap, .a9-project, .a9-irow, .a9-panel, .a9-dock, .a9-ilist, .a9-dot, .a9-dot::after, .a9-bio, .a9-cursor > span, #aatc-home9 .a9-expand, .a9-item img.a9-imgin { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .a9-opened .a9-project:not(.is-open) { filter: none !important; }
  .a9-cursor.is-wait .a9-ring { animation: none; stroke-dashoffset: 0; }
}
