/* Measurements taken from the original aicityinc.com theme at 1440px wide */
:root {
  --black: #000;
  --white: #fff;
  --gray: #b6b6b6;
  --display: "Oswald", sans-serif;
  --body: "Open Sans", sans-serif;
  --gutter: 70px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--white); color: var(--black); font: 14px/1.785 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h5, h6, .btn, .circle-btn, .back-to-top, .main-nav a, .side-menu a, .site-footer nav a { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.container { width: min(1300px, 100% - 2 * var(--gutter)); margin: 0 auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header, .sticky-header { display: flex; align-items: center; padding: 0 var(--gutter); z-index: 20; }
.site-header { position: absolute; inset: 0 0 auto 0; height: 120px; }
.site-header .logo img { height: 82px; width: auto; display: block; }
.sticky-header { position: fixed; inset: 0 0 auto 0; height: 60px; background: var(--white); transform: translateY(-100%); transition: transform .4s ease; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.sticky-header.show { transform: none; }
.sticky-header .logo img { height: 60px; width: auto; display: block; }
.main-nav { margin-left: auto; display: flex; }
.main-nav a { font-size: 15px; line-height: 23px; padding: 0 24px; }
.menu-btn { width: 16px; height: 17px; display: grid; grid-template-columns: repeat(3, 4px); gap: 2px; align-content: center; background: none; border: 0; cursor: pointer; margin-left: 22px; }
.menu-btn span { width: 4px; height: 4px; background: var(--black); transition: transform .3s; }
.menu-btn:hover span:nth-child(odd) { transform: scale(.3); }

/* Side menu */
.side-menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(633px, 100%); background: var(--black); color: var(--white); z-index: 30; transform: translateX(100%); transition: transform .6s cubic-bezier(.77,0,.175,1); padding: 150px 70px 36px; overflow-y: auto; }
.side-menu.open { transform: none; }
.side-menu nav { display: flex; flex-direction: column; align-items: flex-start; }
.side-menu nav a { font-size: 85px; line-height: 1; margin-bottom: 29px; transition: color .2s cubic-bezier(.2,.84,.5,1), -webkit-text-stroke-color .2s; }
/* current page and hover: outlined text, as on the original */
.side-menu nav a:hover, .side-menu nav a.current { color: transparent; -webkit-text-stroke: 1px #a8a8a8; }
.menu-close { position: absolute; top: 50px; right: 70px; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--white); font: 700 13px/1 var(--display); text-transform: uppercase; cursor: pointer; }
.menu-close svg { width: 11px; height: 11px; }
.menu-cover { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.3); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-cover.open { opacity: 1; visibility: visible; }

/* Hero */
.hero { position: relative; height: max(600px, calc(100vh - 60px)); overflow: hidden; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: absolute; left: 13.3%; top: 50%; transform: translateY(-38%); pointer-events: none; }
.hero-inner .btn { pointer-events: auto; }
h1 { font-size: 90px; line-height: 95px; }
.btn { position: relative; display: inline-block; margin-top: 32px; color: var(--white); font-size: 15px; line-height: 54px; height: 56px; width: 192px; border: 1px solid transparent; overflow: hidden; }
/* Hover (from the original theme): the black fill wipes away to the left while a larger
   black label slides in from the left */
.btn::after { content: attr(data-text); position: absolute; inset: 0; background: var(--black); color: var(--white); padding: 0 30px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: clip-path .5s; }
.btn span { position: absolute; left: 0; top: 0; color: var(--black); font-size: 35px; transform: translateX(-101%); transition: transform .5s; white-space: nowrap; }
.btn:hover::after { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.btn:hover span { transform: none; }

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; padding: 28px 0 140px; }
.marquee-track { display: inline-flex; animation: marquee 60s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 175px; line-height: 175px; color: transparent; -webkit-text-stroke: 1px var(--gray); padding: 0 25px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Let's connect the dots */
h2 { font-size: 85px; line-height: 85px; margin-left: -2px; }
.about-row { display: grid; grid-template-columns: 37.2% 37.2% 1fr; padding: 32px 0 108px; }
.text-block { padding-right: 100px; }
h6 { font-size: 17px; line-height: 19px; margin-top: 25px; }
.text-block p { margin-top: 10px; }
.circle-btn { position: relative; display: grid; place-items: center; width: 232px; height: 232px; font-size: 15px; transition: transform .25s ease-out; }
.circle-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Circles that draw themselves in when scrolled into view */
.draw circle { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transform: rotate(-20deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.6s cubic-bezier(.645,.045,.355,1) .1s, transform 1.6s cubic-bezier(.645,.045,.355,1) .1s, opacity .3s .1s; }
.draw.in circle { stroke-dashoffset: 0; opacity: 1; transform: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 108px; }
.step { padding-right: 35px; }
.num { display: block; font-family: var(--display); font-weight: 700; font-size: 90px; line-height: 94.5px; margin: -19px 0 15px; height: 134px; display: flex; align-items: center; }
h5 { font-size: 22px; line-height: 24px; }
.step p { margin-top: 14px; }

/* Footer */
.site-footer { --d: min(780px, 100vw - 80px); position: relative; height: calc(var(--d) * .43); min-height: 260px; overflow: hidden; margin-top: 140px; }
.footer-circle { position: absolute; left: 50%; top: 0; width: var(--d); height: var(--d); transform: translateX(-50%); }
.footer-inner { position: relative; padding-top: calc(var(--d) * .2); display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-footer nav { display: flex; gap: 4px; }
.site-footer nav a { font-size: 15px; padding: 0 14px; transition: opacity .3s; }
.site-footer nav a:hover { opacity: .5; }
.rule { display: block; width: 245px; height: 1px; background: var(--black); margin: 34px 0 0; }
.site-footer p { margin-top: 0; }

/* Back to top */
.back-to-top { position: fixed; right: 17px; bottom: 40px; z-index: 15; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* Theme cursor: a white dot blended with "difference", so it always shows the inverse
   of whatever is underneath (black on white, white on black) — same as the original theme */
.cursor { position: fixed; top: 0; left: 0; width: 32px; height: 32px; margin: -16px 0 0 -16px; pointer-events: none; z-index: 10000; mix-blend-mode: difference; opacity: 0; transition: opacity .2s; }
.cursor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; transform: scale(.5); transition: transform .2s; }
.cursor.on { opacity: 1; }
.cursor.big::before { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }
.custom-cursor, .custom-cursor * { cursor: none !important; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Smaller screens: scale down the way the original theme does */
@media (max-width: 1280px) {
  .hero-inner { left: var(--gutter); }
  .marquee span { font-size: 140px; line-height: 140px; }
}
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .site-header { height: 90px; }
  .site-header .logo img { height: 56px; }
  .main-nav { display: none; }
  .menu-btn { margin-left: auto; }
  .sticky-header .logo img { height: 44px; }
  h1 { font-size: 72px; line-height: 78px; }
  h2 { font-size: 64px; line-height: 66px; }
  .marquee span { font-size: 110px; line-height: 110px; }
  .marquee { padding-bottom: 80px; }
  .about-row { grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .text-block { padding-right: 0; }
  .circle-wrap { grid-column: 1 / -1; margin-top: 50px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .site-footer { margin-top: 60px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .site-header { height: 76px; }
  .site-header .logo img { height: 44px; }
  h1 { font-size: 50px; line-height: 56px; }
  h2 { font-size: 44px; line-height: 48px; }
  h2 br { display: none; }
  .marquee span { font-size: 80px; line-height: 80px; }
  .marquee { padding-bottom: 50px; }
  .about-row, .steps { grid-template-columns: 1fr; }
  .circle-btn { width: 180px; height: 180px; }
  .side-menu { padding: 120px 28px 36px; }
  .side-menu nav a { font-size: 54px; margin-bottom: 20px; }
  .menu-close { top: 34px; right: 28px; }
  .site-footer { --d: max(340px, 100vw - 24px); }
  .rule { width: 200px; }
  .back-to-top { display: none; }
  .num { height: auto; margin: 0 0 8px; }
  .steps { row-gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Subsidiaries: stacked portfolio scroller (from the original theme) ---------- */
.stacked-page, .stacked-page body { overflow: hidden; height: 100%; }
.stacked { position: fixed; inset: 0; z-index: 1; touch-action: none; }
.stacked-item { position: absolute; top: 50%; left: 34%; will-change: transform; pointer-events: none; }
.stacked-item.active { z-index: 100 !important; pointer-events: auto; }
.stacked-item-inner { transform: translateY(-50%); }
.stacked-item-inner > div { opacity: 0; transform: translate3d(0, -10%, 0); transition: transform 1s cubic-bezier(.2,.84,.5,1), opacity .4s; }
.stacked.loaded .stacked-item-inner > div { opacity: 1; transform: none; transition-delay: .25s; }
.stacked-item img { display: block; width: 100%; height: auto; will-change: transform; }

.stacked-text-items { display: none; position: absolute; bottom: 20px; left: 0; width: 100%; z-index: 300; text-align: center; }
.stacked-text-item:not(.active) { display: none; }
.stacked-text-items .stacked-cats { display: none; }
.stacked-title { font-size: 17px; line-height: 19px; }

.stacked-end { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; opacity: 0; transition: opacity .4s; }
.stacked-end > div { max-width: 800px; display: flex; flex-direction: column; align-items: center; }
.stacked-end.visible { pointer-events: auto; opacity: 1; transition: opacity 1s; }
.stacked-end h2 { margin: 0; }
.stacked-end a { position: relative; margin-top: 40px; font: 700 15px/1.6 var(--display); text-transform: uppercase; }
.stacked-end a::after { content: ""; position: absolute; bottom: 0; right: 0; width: 100%; height: 2px; background: currentColor; transition: width .3s ease-in; }
.stacked-end a:hover::after { width: 0; }

.stacked-scroll-note { position: absolute; top: 0; left: 70px; height: 100%; width: 20px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.stacked-scroll-note > div { white-space: nowrap; transform: rotate(-90deg) translateX(36px); transition: transform 1s cubic-bezier(.86,0,.07,1); }
.stacked-scroll-note .line { display: inline-block; vertical-align: middle; height: 1px; width: 90px; margin: 0 15px; background: currentColor; transform: scaleX(0); transform-origin: right; animation: line-in 1s ease forwards; }
.stacked-scroll-note .down { transition: opacity .4s ease-in .2s; }
.stacked-scroll-note .up { opacity: 0; transition: opacity .25s; }
.stacked.eos .stacked-scroll-note > div { transform: rotate(-90deg) translateX(-52px); }
.stacked.eos .stacked-scroll-note .down { opacity: 0; transition: opacity .25s; }
.stacked.eos .stacked-scroll-note .up { opacity: 1; transition: opacity .4s ease-in .2s; }
.stacked.eos .stacked-scroll-note .line { transform-origin: left; animation: line-in-up 1s ease forwards; }
@keyframes line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes line-in-up { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* label that follows the cursor over an image */
.stacked-info { position: fixed; top: -4px; left: 0; z-index: 5000; pointer-events: none; opacity: 0; transition: opacity .1s .15s; }
.stacked-info.show { opacity: 1; transition: none; }
.stacked-info .title { display: inline-block; padding: 0 18px; background: var(--white); white-space: nowrap; }
.stacked-info .title h6 { margin: 15px 0 5px; }
.stacked-info .cats { display: inline-block; padding: 1px 18px 11px; background: var(--white); white-space: nowrap; color: #b0b0b0; }
.stacked-info .cats span::before { content: "/"; }
.stacked-info .cats span:not(:last-child) { margin-right: 5px; }

@media (max-width: 1024px) {
  .stacked-scroll-note { left: 30px; }
  .stacked-end > div { max-width: 75vw; }
  .stacked-end h2 { font-size: 8vw; line-height: 1.05; }
  .stacked-text-items { display: block; }
}
@media (max-width: 680px) {
  .stacked-scroll-note { display: none; }
  .stacked-text-items { bottom: 40px; }
  .stacked-end h2 { font-size: 11vw; }
}
@media (hover: none) { .stacked-info { display: none; } }

/* ---------- Project page (AgencyDog) ---------- */
.project { padding-top: 163px; }
.project-title { font-size: 85px; line-height: 85px; margin: 0 0 94px -2px; }
.project-body { display: grid; grid-template-columns: 66.66% 1fr; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; align-items: start; }
.gallery-col { display: flex; flex-direction: column; gap: 10px; }
.gallery a { display: block; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.84,.5,1); }
.gallery a:hover img { transform: scale(1.04); }
.project-info { position: sticky; top: 90px; padding-left: 36px; }
h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 33px; }
.info-description { margin-bottom: 33px; }
.info-description p { margin-top: 5px; }
.info-item:not(.info-description) { margin: 11px 0 10px; }
.info-item h6 { margin: 0 0 8px; }

.project-nav { display: flex; justify-content: center; padding: 50px 0 0; }
.back-btn { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; padding: 10px; }
.back-btn span { width: 5px; height: 5px; background: var(--black); transition: transform .3s; }
.back-btn:hover span { transform: scale(.4); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(255,255,255,.97); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1100px, 100vw - 180px); max-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.lightbox figcaption { margin-top: 16px; font: 700 13px/1 var(--display); text-transform: uppercase; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--black); cursor: pointer; }
.lb-close { top: 50px; right: 70px; display: flex; align-items: center; gap: 12px; font: 700 13px/1 var(--display); text-transform: uppercase; }
.lb-close svg { width: 11px; height: 11px; }
.lb-prev, .lb-next { top: 50%; width: 44px; height: 44px; margin-top: -22px; }
.lb-prev { left: 50px; } .lb-next { right: 50px; }
.lb-prev svg, .lb-next svg { width: 100%; height: 100%; }

@media (max-width: 1024px) {
  .project { padding-top: 130px; }
  .project-title { font-size: 64px; line-height: 66px; margin-bottom: 50px; }
  .project-body { grid-template-columns: 1fr; }
  .project-info { position: static; order: -1; padding: 0 0 40px; }
}
@media (max-width: 600px) {
  .project { padding-top: 110px; }
  .project-title { font-size: 44px; line-height: 48px; margin-bottom: 32px; }
  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .lightbox figure { max-width: calc(100vw - 32px); }
  .lb-prev, .lb-next { top: auto; bottom: 30px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .lb-close { top: 30px; right: 24px; }
}

/* ---------- 404 ---------- */
.hero-404 { height: 100vh; }
.eyebrow-404 { font: 700 15px/1 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.text-404 { margin-top: 18px; max-width: 360px; }
