/* ==========================================================================
   Aram Frsat — portfolio
   ========================================================================== */
:root {
  --bg: #10110f;
  --surface: #191b17;
  --surface-2: #20231d;
  --ink: #f1f2e9;
  --muted: #a6aa9e;
  --line: #33362e;
  --accent: #c7fc59;
  --accent-ink: #10110f;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 4.5%;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: fixed; top: -100px; left: 20px; padding: 15px; background: var(--accent); color: #111; z-index: 100; }
.skip:focus { top: 10px; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 100; }

/* Shared type ------------------------------------------------------------ */
.eyebrow, .location, .hero-index, .work-note, .portrait-caption, .contact-top,
.lightbox-bar, .dialog-bar, .kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 500;
  text-transform: uppercase;
}
.eyebrow i {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  background: var(--accent); border-radius: 100%; box-shadow: 0 0 12px #c7fc5944;
}
.serif, em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.055em; }
h2 { font-size: clamp(38px, 4.5vw, 72px); font-weight: 500; line-height: 1.1; letter-spacing: -.05em; margin: 25px 0 0; }
h2 em { color: var(--accent); }
.section { padding: 110px var(--gutter); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 48px; }
.section-heading .eyebrow { color: var(--muted); }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 3px; }

/* Header ----------------------------------------------------------------- */
header {
  height: 104px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
  border-bottom: 1px solid var(--line);
  background: #10110ff2; position: relative; z-index: 5;
}
.wordmark { font-weight: 900; font-size: 56px; letter-spacing: -7px; line-height: 1; }
.wordmark span { font-size: 13px; letter-spacing: 0; vertical-align: top; margin-left: 8px; }
.header-name { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600; line-height: 1.7; letter-spacing: 1px; }
.header-name span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .8px; }
nav { display: flex; gap: 35px; margin-left: auto; font-size: 13px; }
nav a { transition: color .2s; }
nav a:hover { color: var(--accent); }
sup { color: var(--muted); font-size: 9px; }
.contact-pill { border: 1px solid #707564; border-radius: 30px; padding: 12px 21px; margin-left: 35px; font-size: 13px; transition: .25s; }
.contact-pill span { margin-left: 20px; }
.contact-pill:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 44px var(--gutter) 0; overflow: hidden; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.location { color: var(--muted); }
.location span { margin-left: 16px; color: var(--ink); }
h1 {
  position: relative; font-weight: 500;
  font-size: clamp(58px, 8.4vw, 142px); line-height: 1.04; letter-spacing: -.065em;
  margin: 63px 0 40px; max-width: 1500px;
}
.serif { color: var(--accent); }
.outline { color: transparent; -webkit-text-stroke: 1px #d4d8c9; }
.asterisk { position: absolute; right: 1%; bottom: 0; color: var(--accent); font-size: 1.1em; line-height: 1; animation: rotate 45s linear infinite; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; margin: 48px 0 68px; gap: 30px; }
.intro { display: flex; align-items: center; gap: 20px; }
.mini-line { height: 1px; width: 40px; background: var(--accent); flex-shrink: 0; }
.intro p { color: #bec2b4; font-size: 14px; line-height: 1.7; margin: 0; }
.round-link { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.round-link b { width: 52px; height: 52px; border: 1px solid #656a59; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 400; transition: .3s; }
.round-link:hover b { background: var(--accent); color: #111; transform: translateY(4px); }
.hero-index { text-align: right; color: var(--muted); line-height: 2; }
.hero-ribbon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -5%; overflow: hidden; padding: 18px 0; }
.hero-ribbon > div { width: max-content; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 3px; animation: marquee 40s linear infinite; }
.hero-ribbon span { color: var(--accent); padding: 0 40px; font-size: 18px; }

/* Work grid -------------------------------------------------------------- */
.work-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 10px 17px; border-radius: 24px; font-size: 12px; transition: .2s;
}
.filters button:hover { border-color: #9ea58f; color: #fff; }
.filters button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filters sup { font-size: 9px; margin-left: 3px; color: inherit; opacity: .7; }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); width: 220px; flex-shrink: 0; }
.search span { font-size: 26px; color: var(--muted); }
.search input { width: 100%; background: transparent; border: 0; outline: none; color: var(--ink); font-size: 12px; padding: 10px 0; }
.search input::placeholder { color: #80857a; }
.search:focus-within { border-color: var(--accent); }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 26px; }
.project-card { display: block; color: var(--ink); animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.project-card.wide { grid-column: 1 / -1; }
.project-art { aspect-ratio: 1.35; position: relative; overflow: hidden; background: var(--surface); border-radius: 3px; isolation: isolate; }
.project-card.wide .project-art { aspect-ratio: 2.2; }
.project-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-art > img, .brand-cover { transition: transform .8s var(--ease); }
.project-card:hover .project-art > img, .project-card:hover .brand-cover { transform: scale(1.025); }
.project-art::after { content: ''; position: absolute; inset: 0; border: 1px solid #ffffff0b; pointer-events: none; }
.project-label {
  position: absolute; left: 22px; top: 22px; z-index: 3;
  border: 1px solid #ffffff40; border-radius: 30px; padding: 8px 13px;
  font-size: 10px; background: #10110f99; color: #fff; backdrop-filter: blur(14px);
}
.project-open {
  position: absolute; right: 22px; bottom: 22px; z-index: 3;
  width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); border-radius: 50%; font-size: 25px;
  transition: transform .3s;
}
.project-card:hover .project-open, .project-card:focus-visible .project-open { transform: rotate(45deg); }
.project-info { display: flex; justify-content: space-between; align-items: center; margin-top: 19px; gap: 14px; }
.project-info h3 { font-size: 22px; font-weight: 500; letter-spacing: -.7px; margin: 0; }
.project-info p { font-size: 12px; margin: 5px 0 0; color: var(--muted); }
.project-number { font-family: 'Space Grotesk', sans-serif; font-size: 11px; color: var(--muted); white-space: nowrap; }
#empty { color: var(--muted); padding: 40px 0; }
.work-note { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }

/* Project covers ---------------------------------------------------------- */
.brand-cover { height: 100%; position: relative; overflow: hidden; }
.cover-kicker { font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: 2px; }
.cover-foot { position: absolute; bottom: 9%; font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 2px; }

.base-cover { background: #dbe455; color: #181d0e; padding: 6%; }
.base-cover > strong { position: absolute; left: 6%; top: 19%; font-size: clamp(90px, 15vw, 260px); font-weight: 900; letter-spacing: -.09em; line-height: 1; }
.base-cover > strong > span { font-size: .12em; letter-spacing: 0; vertical-align: top; display: inline-block; margin-top: .6em; }
.base-cover > img { position: absolute; height: 108%; width: 53%; object-fit: contain; right: 3%; bottom: -12%; filter: drop-shadow(0 15px 25px #35430b30); }
.base-cover .cover-kicker { position: absolute; left: 6%; top: 12%; }

.cvase-cover { background: #dad1ec; color: #24202d; padding: clamp(52px, 6vw, 72px) 7% 7%; }
.cvase-cover > strong { font-size: clamp(26px, 3.6vw, 48px); font-weight: 800; letter-spacing: -3px; display: block; line-height: 1.2; margin-top: 4%; }
.cvase-cover > strong > span { font-size: 12px; letter-spacing: 0; vertical-align: top; }
.cvase-cover .cover-kicker { font-size: 9px; }
.phone-stack { display: flex; gap: 15px; position: absolute; top: 40%; width: 88%; left: 6%; transform: rotate(-8deg); align-items: flex-start; }
.phone-stack img { width: 32%; border-radius: 15px; box-shadow: 0 10px 30px #2b164236; }
.phone-1 { margin-top: 25px; }
.phone-2 { margin-top: 50px; }

.aramo-cover { background: radial-gradient(ellipse at 60% 80%, #29442e, #151b19 70%); padding: 4% 6%; color: #d9f9c1; }
.aramo-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 5%; position: relative; z-index: 2; }
.aramo-heading > strong { font-size: clamp(30px, 4vw, 64px); letter-spacing: -.05em; }
.aramo-heading > strong > span { font-size: .3em; border: 1px solid #71945a; border-radius: 6px; padding: 3px 6px; vertical-align: middle; margin-left: 10px; letter-spacing: 0; }
.aramo-heading > span { font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 2px; text-align: right; line-height: 1.8; }
.aramo-cover > img { width: 72%; position: absolute; top: 34%; left: 14%; transform: perspective(900px) rotateX(10deg) rotateZ(-3deg); border: 1px solid #5d7b4b; border-radius: 10px; box-shadow: 0 0 90px #a9ed5c22; }

.velori-cover { background: #ebe5da; color: #141414; display: grid; grid-template-columns: 1.2fr .5fr .5fr; }
.velori-mark { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 0 9%; position: relative; }
.velori-mark img { width: min(85%, 460px); height: auto; }
.velori-mark .cover-kicker { font-family: Georgia, serif; letter-spacing: 4px; font-size: 11px; }
.velori-mark .cover-foot { position: static; color: #6d665c; }
.velori-cover > img { width: 100%; height: 100%; object-fit: cover; }
.velori-cover > img + img { border-left: 1px solid #ebe5da; }

.collage-cover { background: var(--cc, #222); }
.collage-cover img { position: absolute; border-radius: 6px; box-shadow: 0 24px 60px #0000005e; object-fit: cover; }
.collage-cover .c0 { left: 7%; top: 50%; width: 55%; transform: translateY(-50%) rotate(-2deg); }
.collage-cover .c1 { right: 7%; top: 7%; width: 27%; transform: rotate(3deg); }
.collage-cover .c2 { right: 13%; bottom: 7%; width: 27%; transform: rotate(-3deg); }

.mosaic-cover { background: var(--cc, #222); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 7%; align-content: center; }
.mosaic-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 34px #00000040; }

.wall-cover { background: var(--cc, #111); }
.wall-cover .wall { position: absolute; inset: -18% -12%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-8deg); align-content: center; }
.wall-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }

.fan-cover { background: var(--cc, #222); }
.fan-cover img { position: absolute; top: 50%; left: 50%; width: 36%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; box-shadow: 0 24px 60px #00000070; }
.fan-cover .c0 { transform: translate(-128%, -46%) rotate(-9deg); }
.fan-cover .c1 { transform: translate(-50%, -54%); z-index: 2; }
.fan-cover .c2 { transform: translate(28%, -46%) rotate(9deg); }
.fan-cover.tall img { width: 31%; aspect-ratio: 3 / 4; }
.fan-cover.tall .c0 { transform: translate(-135%, -47%) rotate(-7deg); }
.fan-cover.tall .c2 { transform: translate(35%, -47%) rotate(7deg); }

.strip-cover { background: var(--cc, #0b0c0a); display: flex; justify-content: center; align-items: center; gap: 12px; }
.strip-cover img { flex: 0 0 21%; min-width: 0; width: 21%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; box-shadow: 0 20px 50px #0000008c; }
.strip-cover img:nth-child(odd) { transform: translateY(-7%); }
.strip-cover img:nth-child(even) { transform: translateY(7%); }

/* Statement / about / metrics ------------------------------------------- */
.statement { background: var(--accent); color: #1b2312; text-align: center; padding: 90px var(--gutter); }
.statement .eyebrow { color: #1b2312; }
.statement > p { font-size: clamp(38px, 5.2vw, 82px); line-height: 1.12; letter-spacing: -.05em; margin: 35px 0; }
.statement > p span { font-family: Georgia, serif; font-style: italic; }
.statement > div { font-size: 13px; line-height: 1.8; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10%; align-items: center; }
.about .eyebrow { color: var(--muted); }
.portrait-wrap { position: relative; }
.portrait-wrap > img { width: 100%; height: 570px; object-fit: cover; object-position: 50% 30%; filter: saturate(.6); display: block; }
.portrait-caption { background: #23271e; display: flex; justify-content: space-between; padding: 18px 20px; font-size: 9px; }
.about h2 { margin-bottom: 32px; }
.about-copy > p { font-size: 15px; color: var(--muted); line-height: 1.9; max-width: 520px; }
.about-copy > p strong { color: var(--ink); font-weight: 500; }
.career-note { border-left: 2px solid var(--accent); padding-left: 16px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.about-tags span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 20px; font-size: 11px; color: #d1d4c9; }
.text-link { display: inline-flex; align-items: center; gap: 55px; border-bottom: 1px solid #7b836c; padding-bottom: 9px; font-size: 13px; transition: border-color .2s; }
.text-link span { color: var(--accent); font-size: 20px; }
.text-link:hover { border-color: var(--accent); }

.metrics { padding-top: 0; padding-bottom: 90px; display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics > div { border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: 35px 10px 0 32px; }
.metrics > div:first-child { padding-left: 0; }
.metrics > div:last-child { border-right: 0; }
.metrics strong { font-family: 'Space Grotesk', sans-serif; font-size: clamp(38px, 5vw, 78px); font-weight: 400; letter-spacing: -.06em; line-height: 1.2; }
.metrics strong span { color: var(--accent); font-size: .65em; }
.metrics p { color: var(--muted); font-size: 12px; }

/* Experience -------------------------------------------------------------- */
.experience { border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 170px 1.1fr 1.4fr; gap: 30px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line); transition: background .3s;
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: var(--muted); letter-spacing: .5px; padding-top: 6px; }
.timeline h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.03em; margin: 0; }
.timeline h3 + span { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.timeline .current { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); font-size: 9px; letter-spacing: 1px; vertical-align: middle; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.timeline p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.timeline p b { color: var(--ink); font-weight: 500; }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; }
.credentials > div { background: var(--surface); border: 1px solid var(--line); padding: 28px; border-radius: 4px; }
.credentials .eyebrow { color: var(--accent); }
.credentials h3 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin: 18px 0 4px; }
.credentials p { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.7; }
.credentials p:last-child { margin-bottom: 0; }
.languages { list-style: none; margin: 18px 0 0; padding: 0; }
.languages li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.languages li:last-child { border-bottom: 0; }
.languages span { color: var(--muted); font-size: 12px; }

/* Expertise / builds / tools ------------------------------------------- */
.expertise { border-top: 1px solid var(--line); padding-top: 90px; }
.services details { border-top: 1px solid var(--line); }
.services details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; cursor: pointer; padding: 28px 0; list-style: none; gap: 36px; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 10px; color: var(--muted); }
summary h3 { font-size: clamp(20px, 2.7vw, 38px); font-weight: 400; letter-spacing: -.04em; margin: 0; }
summary b { margin-left: auto; font-size: 30px; font-weight: 400; color: var(--accent); transition: transform .3s; }
details[open] summary b { transform: rotate(45deg); }
.service-body { padding: 0 0 32px 50px; display: flex; justify-content: space-between; gap: 40px; }
.service-body p { max-width: 530px; color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.service-body span { font-size: 9px; letter-spacing: 1px; color: var(--muted); align-self: flex-end; }

.builds-heading { margin-top: 100px; }
.builds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.build { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 28px 24px 30px; display: flex; flex-direction: column; min-height: 270px; transition: border-color .3s, transform .5s var(--ease); }
.build:hover { border-color: #5d634f; transform: translateY(-4px); }
.build .kicker { color: var(--accent); }
.build h3 { font-size: 22px; font-weight: 500; letter-spacing: -.03em; margin: auto 0 12px; padding-top: 50px; }
.build p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.toolkit { margin-top: 60px; display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: start; border-top: 1px solid var(--line); padding-top: 30px; }
.toolkit .eyebrow { color: var(--muted); padding-top: 8px; }
.toolkit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toolkit li { border: 1px solid var(--line); border-radius: 30px; padding: 8px 14px; font-size: 12px; color: #d1d4c9; }

/* Contact / footer ------------------------------------------------------- */
.contact { margin: 0 var(--gutter); padding: 45px 0 40px; border-top: 1px solid var(--line); }
.contact-top { display: flex; justify-content: space-between; color: var(--muted); }
.contact-title { position: relative; display: block; font-size: clamp(68px, 11vw, 180px); line-height: 1; letter-spacing: -.065em; margin: 50px 0; font-weight: 500; }
.contact-title em { color: var(--accent); }
.contact-title > span { position: absolute; right: 4%; top: 18%; font-size: .8em; color: var(--accent); transition: transform .4s; }
.contact-title:hover > span { transform: translate(12px, -12px); }
.contact-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; font-size: 15px; }
.contact-bottom a:hover { color: var(--accent); }
.contact-bottom .phone { margin-left: auto; }
.contact-bottom button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 10px 16px; border-radius: 30px; font-size: 11px; }
.contact-bottom button:hover { color: var(--accent); border-color: var(--accent); }
#copy-status { font-size: 12px; color: var(--accent); display: block; min-height: 20px; margin-top: 10px; }
footer { display: flex; align-items: center; gap: 35px; border-top: 1px solid var(--line); padding: 35px var(--gutter); font-size: 9px; letter-spacing: .6px; color: var(--muted); }
footer .wordmark { font-size: 40px; color: var(--ink); }
footer > div { margin-left: auto; display: flex; gap: 20px; font-size: 11px; }
footer a:hover { color: var(--accent); }
footer > a:last-child { margin-left: 20px; }

/* Project dialog ---------------------------------------------------------- */
dialog { color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 0; width: calc(100% - 60px); max-width: 1450px; max-height: 94vh; overscroll-behavior: contain; }
dialog::backdrop { background: #000c; backdrop-filter: blur(10px); }
dialog[open] { animation: dialogIn .5s var(--ease); }
.dialog-bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 30px; background: #10110ff5; border-bottom: 1px solid var(--line); z-index: 4; }
dialog button { color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 10px 18px; border-radius: 30px; font-size: 12px; transition: border-color .2s, color .2s; }
dialog button:hover { border-color: var(--accent); }
.dialog-bar button span { font-size: 20px; margin-left: 14px; line-height: 0; vertical-align: -2px; }
.project-heading { padding: 55px 6% 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 6%; align-items: end; }
.project-heading .eyebrow { color: var(--muted); grid-column: 1 / -1; }
.project-heading h2 { font-size: clamp(42px, 6vw, 88px); margin: 0; }
.project-heading .project-sub { font-family: Georgia, serif; font-style: italic; font-size: clamp(18px, 1.8vw, 26px); color: var(--accent); margin: 14px 0 0; letter-spacing: -.02em; }
.project-desc { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0; }
.project-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); margin-top: 26px; }
.project-facts > div { padding: 18px 20px 0 0; }
.project-facts span { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.project-facts b { font-weight: 500; font-size: 14px; }
.project-facts a { color: var(--accent); font-size: 14px; }
.project-facts a:hover { text-decoration: underline; }

.gallery { padding: 0 6% 50px; }
.gallery figure { margin: 0; }
.gallery figure > button { border: 0; padding: 0; border-radius: 0; display: block; width: 100%; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery figure > button:hover img { transform: scale(1.015); }
.gallery video { display: block; width: 100%; height: auto; max-height: 82vh; background: #000; }
.gallery figcaption { font-size: 11px; color: var(--muted); padding: 10px 0 0; line-height: 1.6; }
.gallery figcaption b { font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--ink); margin-right: 6px; }

.gallery.stack { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 18px; }
.gallery.stack figure { grid-column: 1 / -1; }
.gallery.stack figure.tall { grid-column: span 2; }
.gallery.stack figure.tall video { max-height: none; }

.gallery.grid { columns: 3 280px; column-gap: 18px; }
.gallery.grid figure { break-inside: avoid; margin-bottom: 26px; }
.gallery.grid figure.wide:not(.loop) { column-span: all; margin-bottom: 34px; }

.gallery.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; background: #dad1ec; margin: 0 6% 50px; padding: 40px; border-radius: 4px; }
.gallery.phones img { border-radius: 18px; box-shadow: 0 18px 40px #2b164230; }
.gallery.phones figure > button { background: transparent; }
.gallery.phones figcaption { color: #3b3448; }
.gallery.phones figcaption b { color: #24202d; }

.gallery figure:has(img[src*="baseagy"]) > button { background: #dbe455; }
.gallery img[src*="baseagy"] { max-height: 72vh; object-fit: contain; margin: auto; width: auto; }
.gallery figure:has(img[src$=".svg"]) > button { background: #e9eee2; }
.gallery img[src$=".svg"] { max-height: 70vh; object-fit: contain; padding: 25px; }
.gallery-empty { padding: 45px; border: 1px solid var(--line); color: var(--muted); }

.project-next { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.project-next button { border: 0; border-radius: 0; padding: 34px 6%; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.project-next button + button { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.project-next button span { font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.project-next button strong { font-size: clamp(22px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.04em; transition: color .2s; }
.project-next button:hover strong { color: var(--accent); }

/* Lightbox ----------------------------------------------------------------- */
#lightbox { width: 100%; max-width: none; height: 100%; max-height: 100%; border: 0; background: #080908f5; }
#lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 20px; }
.lightbox-bar { position: absolute; top: 20px; left: 25px; right: 25px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.media-arrow { flex-shrink: 0; margin: 0 15px; font-size: 22px; width: 54px; height: 54px; padding: 0 !important; display: grid; place-items: center; border-radius: 50% !important; }
#lightbox-content { height: 84vh; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; gap: 14px; touch-action: pan-y; }
#lightbox-content img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; user-select: none; }
#lightbox-content p { margin: 0; color: var(--muted); font-size: 12px; text-align: center; max-width: 760px; }

/* Motion ------------------------------------------------------------------ */
.reveal { opacity: 1; }
.js-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-motion .reveal.visible { opacity: 1; transform: none; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px); } }

/* Responsive ---------------------------------------------------------- */
@media (min-width: 1600px) {
  main, header, footer { max-width: 1800px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 1100px) {
  .builds { grid-template-columns: 1fr 1fr; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 130px 1fr; }
  .timeline p { grid-column: 2; }
}
@media (max-width: 900px) {
  header { height: 84px; gap: 18px; }
  .header-name { display: none; }
  .contact-pill { margin-left: 0; }
  nav { gap: 20px; }
  h1 { font-size: 9vw; }
  .asterisk { right: 0; font-size: .85em; }
  .hero-index { display: none; }
  .hero-top .location { font-size: 9px; }
  .hero-top .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .section { padding: 75px 5%; }
  .section-heading > p { max-width: 260px; }
  .work-toolbar { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .about { gap: 6%; }
  .portrait-wrap > img { height: 500px; }
  .about h2 { font-size: 38px; }
  .portrait-caption { font-size: 8px; padding: 15px 10px; }
  .metrics > div { padding-left: 20px; }
  .service-body { display: block; }
  .service-body span { display: block; margin-top: 20px; }
  .contact { padding-left: 0; padding-right: 0; }
  footer { flex-wrap: wrap; gap: 20px; }
  .contact-bottom { font-size: 13px; }
  .project-heading { grid-template-columns: 1fr; }
  .velori-cover { grid-template-columns: 1fr .5fr .5fr; }
  .toolkit { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  header { padding: 0 5%; height: 76px; }
  .wordmark { font-size: 44px; }
  nav { gap: 16px; }
  nav a { font-size: 12px; }
  nav a.hide-sm { display: none; }
  .contact-pill { padding: 10px 13px; font-size: 11px; }
  .contact-pill span { margin-left: 8px; }
  .hero { padding: 30px 5% 0; }
  .location { display: none; }
  h1 { font-size: 12.3vw; line-height: 1.11; margin: 48px 0 30px; }
  .asterisk { position: relative; display: inline-block; font-size: 70px; margin: 28px 0 0; right: auto; }
  .hero-bottom { margin: 0 0 40px; display: block; }
  .intro { gap: 12px; }
  .intro p { font-size: 13px; }
  .intro br { display: none; }
  .mini-line { width: 25px; }
  .round-link { margin-top: 25px; justify-content: space-between; }
  .round-link b { width: 44px; height: 44px; }
  .hero-ribbon { padding: 12px 0; }
  .section { padding: 64px 5%; }
  .section-heading { display: block; margin-bottom: 28px; }
  h2 { font-size: 42px; margin-top: 18px; }
  .section-heading > p { max-width: none; margin-top: 22px; font-size: 12px; }
  .section-heading > p br { display: none; }
  .filters { gap: 6px; }
  .filters button { padding: 9px 12px; font-size: 11px; }
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-art, .project-card.wide .project-art { aspect-ratio: 1.15; }
  .project-info h3 { font-size: 21px; }
  .project-info p { font-size: 12px; }
  .project-open { width: 44px; height: 44px; right: 15px; bottom: 15px; font-size: 21px; }
  .project-label { left: 15px; top: 15px; }
  .work-note { font-size: 8px; gap: 15px; line-height: 1.8; }
  .work-note span:last-child { text-align: right; }
  .base-cover > strong { font-size: 30vw; top: 26%; }
  .base-cover > img { width: 62%; right: -6%; height: 92%; bottom: -10%; }
  .base-cover .cover-kicker { font-size: 8px; top: 14%; }
  .cover-foot { font-size: 8px; bottom: 9%; }
  .cvase-cover > strong { font-size: 40px; }
  .phone-stack { top: 38%; }
  .aramo-heading > span { display: none; }
  .aramo-cover { padding-top: 58px; }
  .aramo-cover > img { width: 100%; left: 8%; top: 36%; }
  .cvase-cover { padding-top: 58px; }
  .cvase-cover > strong { font-size: 34px; }
  .phone-stack { top: 44%; }
  .velori-cover { grid-template-columns: 1fr 1fr; grid-template-rows: 46% 54%; }
  .velori-mark { grid-column: 1 / -1; align-items: center; gap: 12px; }
  .velori-mark img { width: 66%; }
  .velori-mark .cover-kicker { font-size: 9px; }
  .velori-mark .cover-foot { display: none; }
  .collage-cover .c0 { width: 62%; left: 5%; }
  .collage-cover .c1, .collage-cover .c2 { width: 31%; }
  .collage-cover .c2 { right: 6%; }
  .fan-cover img { width: 42%; }
  .strip-cover img { flex-basis: 28%; }
  .statement > p { font-size: 39px; }
  .statement > div { font-size: 12px; }
  .statement > div br { display: none; }
  .about { grid-template-columns: 1fr; gap: 38px; }
  .portrait-wrap > img { height: 480px; }
  .about-copy > p { font-size: 14px; }
  .metrics { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .metrics > div { padding: 25px 0 0 20px; }
  .metrics > div:nth-child(3) { padding-left: 0; }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics strong { font-size: 50px; }
  .metrics p { font-size: 11px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .timeline p { grid-column: auto; font-size: 13px; }
  .timeline time { padding-top: 0; }
  .credentials { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  summary { gap: 18px; padding: 24px 0; }
  summary h3 { font-size: 20px; }
  .service-body { padding-left: 32px; }
  .builds-heading { margin-top: 70px; }
  .builds { grid-template-columns: 1fr; }
  .build { min-height: 0; }
  .build h3 { padding-top: 28px; }
  .contact { padding: 35px 0; }
  .contact-top { font-size: 8px; }
  .contact-title { font-size: 18vw; margin: 40px 0; }
  .contact-title > span { right: 0; top: 18px; font-size: .7em; }
  .contact-bottom { gap: 18px; }
  .contact-bottom .phone { margin-left: 0; width: 100%; }
  footer { padding: 30px 5%; gap: 22px; }
  footer > span { font-size: 8px; }
  footer > div { width: 100%; margin: 0; justify-content: space-between; }
  footer > a:last-child { margin: 0; font-size: 8px; }
  dialog { width: 100%; max-height: 100%; height: 100%; border: 0; }
  .dialog-bar { padding: 12px 20px; }
  .project-heading { padding: 35px 6% 30px; }
  .project-desc { font-size: 14px; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .gallery.stack { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .gallery.stack figure.tall { grid-column: span 1; }
  .gallery.grid { columns: 2 140px; column-gap: 10px; }
  .gallery.grid figure { margin-bottom: 16px; }
  .gallery figcaption { font-size: 10px; }
  .gallery.grid figcaption { display: none; }
  .gallery.phones { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; margin: 0 6% 40px; }
  .gallery.phones figcaption { display: none; }
  .project-next button { padding: 24px 6%; }
  .media-arrow { position: absolute; bottom: 24px; margin: 0; }
  #prev-media { left: calc(50% - 64px); }
  #next-media { right: calc(50% - 64px); }
  #lightbox-content { height: 74vh; padding: 0 12px; }
  .lightbox-bar { left: 15px; right: 15px; }
  #lightbox[open] { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}

/* Reels marquee ----------------------------------------------------------- */
.reels { padding: 110px 0 120px; border-top: 1px solid var(--line); overflow: hidden; }
.reels .section-heading { padding: 0 var(--gutter); }
.reel-marquee {
  position: relative; overflow: hidden; padding: 6px 0 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reel-track { display: flex; align-items: flex-start; gap: 18px; width: max-content; animation: reelScroll var(--reel-duration, 60s) linear infinite; will-change: transform; }
.reel-marquee:hover .reel-track, .reel-marquee:focus-within .reel-track, .reel-track.held { animation-play-state: paused; }
@keyframes reelScroll { to { transform: translateX(calc(-50% - 9px)); } }
.reel {
  position: relative; flex: 0 0 auto; width: clamp(200px, 18vw, 280px); aspect-ratio: 9 / 16;
  padding: 0; border: 1px solid #ffffff17; border-radius: 18px; overflow: hidden;
  background: var(--surface); color: #fff; cursor: pointer; isolation: isolate;
  transition: transform .6s var(--ease), border-color .3s, box-shadow .6s var(--ease);
}
.reel:nth-child(even) { margin-top: 38px; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.reel::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #0000 50%, #000000c4 100%); pointer-events: none; }
.reel:hover, .reel:focus-visible { transform: translateY(-8px); border-color: #c7fc5980; box-shadow: 0 30px 70px #0000008c, 0 0 0 1px #c7fc5926; }
.reel:hover video { transform: scale(1.05); }
.reel-meta { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.reel-meta b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.reel-meta span { font-family: 'Space Grotesk', sans-serif; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: #d9dccf; }
.reel-play {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; color: var(--accent);
  background: #10110f8c; border: 1px solid #ffffff2b; backdrop-filter: blur(10px); transition: .3s;
}
.reel:hover .reel-play { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
#lightbox-content video { max-width: 100%; max-height: calc(100% - 40px); background: #000; }

/* Instagram grid gallery -------------------------------------------------- */
.gallery.instagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(88%, 1020px); margin: 0 auto 50px; padding: 0; }
.gallery.instagram figure { position: relative; }
.gallery.instagram figure > button, .gallery.instagram video { aspect-ratio: 3 / 4; width: 100%; height: auto; max-height: none; }
.gallery.instagram img { width: 100%; height: 100%; object-fit: cover; }
.gallery.instagram video { object-fit: cover; aspect-ratio: 3 / 4 !important; }
.gallery.instagram { align-items: start; }
.gallery.instagram figcaption { display: none; }
.gallery.instagram figure > button::after { content: ''; position: absolute; inset: 0; background: #0000; transition: background .3s; }
.gallery.instagram figure > button:hover::after { background: #00000026; }

/* Triptych cover (three consecutive grid posts) ---------------------------- */
.triptych-cover { background: var(--cc, #111); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.triptych-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 600px) {
  .reels { padding: 64px 0 70px; }
  .reels .section-heading { padding: 0 5%; }
  .reel { width: clamp(150px, 42vw, 200px); border-radius: 14px; }
  .reel:nth-child(even) { margin-top: 26px; }
  .reel-meta { left: 12px; right: 12px; bottom: 12px; }
  .reel-meta b { font-size: 14px; }
  .reel-play { width: 32px; height: 32px; top: 10px; right: 10px; }
  .gallery.instagram { width: 100%; gap: 2px; }
  .project-card.wide .project-art:has(.triptych-cover) { aspect-ratio: 2.2; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* Looping video tiles ------------------------------------------------------ */
.gallery figure.loop > button { position: relative; cursor: pointer; background: #000; }
.gallery figure.loop video { display: block; width: 100%; height: auto; max-height: none; object-fit: cover; }
.loop-badge {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; color: var(--accent);
  background: #10110f99; border: 1px solid #ffffff2b; backdrop-filter: blur(8px); transition: .3s; pointer-events: none;
}
.gallery figure.loop > button:hover .loop-badge { background: var(--accent); color: var(--accent-ink); }
.gallery.instagram figure.loop video { aspect-ratio: 3 / 4 !important; height: 100%; }

/* Gallery section headings & colour-ordered tiles ------------------------ */
.gallery-heading { grid-column: 1 / -1; column-span: all; padding: 56px 0 14px; border-top: 1px solid var(--line); margin-top: 30px; }
.gallery-heading span { font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.gallery-heading h3 { margin: 10px 0 0; font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.04em; }
.gallery.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery.tiles figure > button { aspect-ratio: 4 / 5; }
.gallery.tiles img { width: 100%; height: 100%; object-fit: cover; }
.gallery.tiles figcaption { display: none; }

/* Device cover: upright app screens ---------------------------------------- */
.devices-cover { background: radial-gradient(ellipse at 50% 120%, #ffb38a 0%, #f3ece4 55%, #ece6f5 100%); display: flex; justify-content: center; align-items: center; gap: 4%; }
.devices-cover img { width: 16.5%; border-radius: 18px; box-shadow: 0 30px 60px #3b2a5a33, 0 0 0 6px #ffffff; }
.devices-cover .c1 { width: 19.5%; z-index: 2; }
.devices-cover .c0, .devices-cover .c2 { transform: translateY(4%); }

/* Lookbook cover: editorial portrait trio ---------------------------------- */
.lookbook-cover { background: var(--cc, #f3e6e2); display: flex; justify-content: center; align-items: center; gap: 2.4%; }
.lookbook-cover img { width: 27%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; box-shadow: 0 24px 50px #6b3b3b30; }
.lookbook-cover .c1 { width: 31%; }

@media (max-width: 600px) {
  .gallery.tiles { gap: 4px; }
  .gallery-heading { padding-top: 36px; }
  .devices-cover img { border-radius: 10px; box-shadow: 0 16px 30px #3b2a5a33, 0 0 0 3px #fff; }
}
