/*
 * InternetGeeks Digital Workshop
 * A neighbourhood service counter for the internet — pegboards, job tickets,
 * dispatch cards, customer notes and a radio that never really turns off.
 */

:root {
  --ink: #f5eddc;
  --muted: #b7ab98;
  --bg: #191a17;
  --panel: #24251f;
  --line: rgba(245,237,220,.18);
  --lime: #c9ff4a;
  --violet: #4767ff;
  --orange: #ff6242;
  --cyan: #59dfca;
  --paper: #f2e5ce;
  --paper-2: #e8d6b7;
  --graphite: #151613;
  --blueprint: #163f6a;
  --cork: #ad7447;
  --yellow: #ffd34f;
  --workshop-font: "Bricolage Grotesque", Manrope, sans-serif;
  --radius: 4px;
}

html[data-theme="light"] {
  --ink: #161713;
  --muted: #696457;
  --bg: #eee5d5;
  --panel: #f8efdf;
  --line: rgba(22,23,19,.2);
}

* { scrollbar-color: var(--orange) color-mix(in srgb, var(--bg) 88%, #000); }
body {
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
}
body::before { opacity: .02; }
h1, h2, h3, .stage h4 { font-family: var(--workshop-font); }
h1, h2 { text-wrap: balance; }
.wrap { width: min(1220px, calc(100% - 48px)); }

/* Shopfront */
.site-header {
  height: 72px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-links { gap: 22px; }
.nav-links > a:not(.ig-instagram-link) { position: relative; }
.nav-links > a:not(.ig-instagram-link)::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .23s ease;
}
.nav-links > a:not(.ig-instagram-link):hover::before { transform: scaleX(1); transform-origin: left; }
.nav-cta,
.primary-btn,
.dark-btn {
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--ink) 20%, transparent);
}
.nav-cta:hover,
.primary-btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 20%, transparent); }
.secondary-btn { border-radius: 2px; border-style: dashed; }
.ig-instagram-link--header { border-radius: 2px; transform: rotate(-3deg); }
.ig-instagram-link--header:hover { transform: translateY(-2px) rotate(2deg); }

.ig-workshop-strip {
  position: relative;
  z-index: 10;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid #111;
  background: var(--yellow);
  color: #151613;
  font: 700 .58rem/1 "DM Mono", monospace;
  letter-spacing: .1em;
  white-space: nowrap;
}
.ig-workshop-strip > div { width: max-content; display: flex; gap: 22px; animation: shop-strip 28s linear infinite; }
.ig-workshop-strip i { color: var(--orange); font-style: normal; }
@keyframes shop-strip { to { transform: translateX(-50%); } }

/* Front counter */
.hero {
  min-height: 790px;
  padding: 82px 0 70px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent 0 49.95%, color-mix(in srgb, var(--ink) 7%, transparent) 50%, transparent 50.05%);
}
.hero-grid { grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr); gap: 62px; }
.hero h1 { max-width: 820px; font-weight: 690; }
.hero h1 em {
  display: inline;
  color: var(--graphite);
  padding-inline: .06em;
  background: var(--yellow);
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transform: rotate(-1deg);
}
.eyebrow { color: var(--orange); }
.eyebrow::before { width: 10px; height: 10px; background: var(--orange); transform: rotate(10deg); }
.availability i { border-radius: 1px; transform: rotate(8deg); }

.hero-art {
  height: 550px;
  border: 2px solid color-mix(in srgb, var(--ink) 56%, transparent);
  background-color: #2b2c27;
  background-image: radial-gradient(circle, rgba(245,237,220,.24) 2px, transparent 2.5px);
  background-size: 28px 28px;
  box-shadow: 18px 20px 0 rgba(0,0,0,.24);
  transform: rotate(.8deg);
  isolation: isolate;
}
.hero-art::before {
  content: "BENCH 01 / ACCEPTING NEW JOBS";
  position: absolute;
  z-index: 6;
  top: 17px;
  right: 18px;
  padding: 7px 9px;
  background: #11120f;
  color: var(--lime);
  font: 500 .53rem/1 "DM Mono", monospace;
  letter-spacing: .11em;
}
.hero-art::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 28px;
  bottom: 24px;
  width: 130px;
  height: 62px;
  border: 3px dashed rgba(245,237,220,.28);
  transform: rotate(-7deg);
}

.ig-monogram {
  position: absolute;
  z-index: 4;
  top: 23px;
  left: 24px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 10px 14px 12px;
  border: 2px solid #11120f;
  background: var(--paper);
  color: var(--graphite);
  font: 800 3.35rem/.72 var(--workshop-font);
  letter-spacing: -.13em;
  box-shadow: 7px 8px 0 var(--orange);
  transform: rotate(-4deg);
}
.ig-monogram i { width: 10px; height: 10px; margin: 0 0 -2px 9px; overflow: hidden; background: var(--lime); color: transparent; transform: rotate(8deg); }
.orbit {
  inset: 91px 42px 55px 38px;
  border: 2px dashed rgba(245,237,220,.23);
  border-radius: 46% 54% 52% 48%;
  animation: none;
  transform: rotate(-9deg);
}
.orbit::before { width: 13px; height: 13px; top: 7%; left: 12%; border-radius: 1px; background: var(--cyan); box-shadow: none; }
.orbit::after { width: 10px; height: 10px; right: 10%; bottom: 5%; border-radius: 1px; background: var(--violet); box-shadow: none; }

.float-tag { z-index: 5; padding: 10px 12px; border: 2px solid #151613; border-radius: 0; color: #151613; box-shadow: 6px 7px 0 rgba(0,0,0,.23); }
.float-tag::before { content: ""; position: absolute; top: -16px; left: 50%; width: 1px; height: 16px; background: rgba(245,237,220,.5); }
.float-tag.one { top: 21%; right: -3%; background: var(--yellow); transform: rotate(5deg); }
.float-tag.two { bottom: 15%; left: -4%; background: var(--cyan); transform: rotate(-6deg); }
.float-tag.three { right: 5%; bottom: -2%; background: var(--violet); color: #fff; transform: rotate(2deg); }

/* Shared workshop labels */
.section { position: relative; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.kicker { color: var(--orange); }
.kicker::before { content: "●"; margin-right: 8px; font-size: .55rem; }
.section-intro { max-width: 490px; }

/* Service counter — each department is a pull-out job ticket. */
#services { background: color-mix(in srgb, var(--bg) 90%, var(--orange)); }
.services-grid { display: block; border-top: 3px solid var(--ink); }
.service-card,
.service-card:nth-child(1),
.service-card:nth-child(2) {
  min-height: 158px;
  display: grid;
  grid-template-columns: 76px minmax(240px,.9fr) minmax(300px,1.1fr) 60px;
  align-items: center;
  gap: 24px;
  margin: 9px 0;
  padding: 24px 30px 24px 22px;
  border: 2px solid #171813;
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 92%, var(--card-accent, var(--lime)));
  color: var(--graphite);
  box-shadow: 8px 9px 0 rgba(0,0,0,.2);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform .24s ease, box-shadow .24s ease;
}
.service-card:nth-child(even) { transform: translateX(18px); }
.service-card:hover { transform: translateX(9px); border-color: #171813; box-shadow: 13px 14px 0 color-mix(in srgb, var(--card-accent, var(--lime)) 55%, rgba(0,0,0,.15)); }
.service-card:nth-child(even):hover { transform: translateX(27px); }
.service-card::before { inset: 0 auto 0 0; width: 9px; opacity: 1; background: var(--card-accent, var(--lime)); }
.service-card::after {
  content: "SERVICE TICKET";
  right: 22px;
  bottom: 11px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: rgba(21,22,19,.32);
  filter: none;
  font: 700 .48rem/1 "DM Mono", monospace;
  letter-spacing: .12em;
  opacity: 1;
}
.service-top { display: contents; }
.service-num { grid-column: 1; color: #171813; font-size: .8rem; }
.service-card h3 { grid-column: 2; margin: 0; font-size: clamp(1.8rem,3vw,3.2rem); line-height: .93; }
.service-card p { grid-column: 3; margin: 0; color: #575044; }
.service-arrow,
.soon { grid-column: 4; grid-row: 1; justify-self: end; }
.service-arrow { border: 2px solid #171813; border-radius: 0; transform: rotate(-4deg); }
.service-card:hover .service-arrow { background: #171813; color: var(--paper); transform: rotate(4deg); }
.soon { max-width: 76px; border-color: #171813; border-radius: 0; background: var(--yellow); color: #171813; }

@property --glow-a { syntax: '<number>'; inherits: true; initial-value: 0; }
.service-card { background-image: radial-gradient(380px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,var(--glow-a)), transparent 65%); transition: transform .24s ease, box-shadow .24s ease, --glow-a .28s ease; }
.service-card:hover { --glow-a: .6; }

/* Dispatch board — completed jobs are pinned, not put into another SaaS card grid. */
.work-shell {
  color: #f7f0e2;
  border: 0;
  background-color: var(--blueprint);
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
}
.work-shell::before { content: "DISPATCH BOARD"; position: absolute; top: 22px; right: 3vw; color: rgba(255,255,255,.08); font: 800 clamp(4rem,10vw,9rem)/1 var(--workshop-font); letter-spacing: -.06em; }
.work-shell .kicker { color: var(--yellow); }
.work-shell .section-intro { color: rgba(255,255,255,.68); }
.filters { padding-bottom: 14px; border-bottom: 1px dashed rgba(255,255,255,.35); }
.filter { margin-right: 8px; border: 1px solid rgba(255,255,255,.42); border-radius: 0; color: rgba(255,255,255,.75); background: rgba(0,0,0,.08); }
.filter.active { border-color: #151613; background: var(--yellow); color: #151613; transform: rotate(-2deg); }
.work-grid { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 28px; align-items: start; }
.work-card {
  grid-column: span 7;
  position: relative;
  overflow: visible;
  border: 2px solid #151613;
  border-radius: 0;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 12px 14px 0 rgba(0,0,0,.23);
  transform: rotate(-.7deg);
}
.work-card:nth-child(4n + 2),
.work-card:nth-child(4n + 3) { grid-column: span 5; transform: rotate(1deg); }
.work-card:nth-child(even) { margin-top: 76px; }
.work-card::before {
  content: "";
  position: absolute;
  z-index: 7;
  top: -11px;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0,0,0,.35);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 2px 4px 0 rgba(0,0,0,.23);
  transform: translateX(-50%);
}
.work-card:hover { transform: translateY(-6px) rotate(0); border-color: #151613; }
.work-visual { height: 340px; padding: 0; border-bottom: 2px solid #151613; }
.work-card:nth-child(4n + 2) .work-visual,
.work-card:nth-child(4n + 3) .work-visual { height: 275px; }
.work-visual::before { width: 50%; border-radius: 0; transform: rotate(17deg); }
.work-visual::after { top: auto; right: 13px; bottom: 12px; left: auto; padding: 7px 8px; background: #151613; color: #fff; }
.work-index { position: absolute; z-index: 4; top: 13px; left: 13px; padding: 7px 9px; background: var(--yellow); color: #151613; transform: rotate(-2deg); }
.project-image { filter: saturate(.86) contrast(1.04); transition: filter .35s ease, transform .55s ease; }
.work-card:hover .project-image { filter: saturate(1) contrast(1.05); transform: scale(1.025); }
.mock-window { border-radius: 0; box-shadow: 12px 13px 0 rgba(0,0,0,.23); }
.work-meta { min-height: 178px; padding: 25px; }
.work-meta p { color: #665e51; }
.work-meta h3 { font-size: clamp(1.4rem,2.1vw,2rem); }
.work-meta .project-link { color: #1d4e7c; }
.project-link--muted { color: #6f675a !important; }
.work-type { color: #50493f; writing-mode: vertical-rl; transform: rotate(180deg); }

/* Notes left at the counter. */
.ig-testimonials {
  color: #171813;
  border: 0;
  background-color: var(--cork);
  background-image: radial-gradient(rgba(62,38,24,.22) 1px, transparent 1.5px);
  background-size: 9px 9px;
}
.ig-testimonials::before { content: "CUSTOMER NOTES"; position: absolute; left: 3vw; bottom: 15px; color: rgba(58,35,20,.14); font: 800 clamp(4rem,11vw,10rem)/.8 var(--workshop-font); letter-spacing: -.08em; }
.ig-testimonials .kicker { color: #fff; }
html[data-theme="light"] .ig-testimonials .kicker { color: #fff; }
.ig-testimonials .section-intro { color: #fff; }
.ig-testimonials h2 { color: #fff; }
.testimonial-track { padding: 25px 15px 28px; }
.testimonial-card {
  min-height: 350px;
  overflow: visible;
  border: 1px solid rgba(21,22,19,.38);
  border-radius: 0;
  background: #f5e8cf;
  color: #171813;
  box-shadow: 9px 11px 0 rgba(70,40,21,.22);
  transform: rotate(-1deg);
}
.testimonial-card:nth-child(even) { background: #efe0bd; transform: rotate(1.3deg); }
.testimonial-card::before { content: ""; position: absolute; z-index: 3; top: -14px; left: 35%; width: 86px; height: 27px; background: rgba(255,211,79,.78); transform: rotate(-4deg); }
.testimonial-card::after { content: none; }
.testimonial-card:hover { border-color: rgba(21,22,19,.58); transform: translateY(-5px) rotate(0); }
.testimonial-card blockquote { color: #25251f; }
.testimonial-card footer strong { color: #873923; }
.testimonial-card footer span { color: #716756; }
.testimonial-mark { color: #873923; }
.testimonial-nav { border: 2px solid #171813; border-radius: 0; background: var(--yellow); color: #171813; }

/* Work-order builder. */
.ig-pricing-builder {
  color: #f7f0e2;
  border: 0;
  background-color: #113657;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ig-pricing-builder .kicker { color: var(--yellow); }
.ig-pricing-builder .section-intro { color: rgba(255,255,255,.68); }
.ig-price-grid { gap: 24px; }
.ig-price-card {
  padding: 28px;
  border: 2px solid #151613;
  border-radius: 0;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 9px 10px 0 rgba(0,0,0,.2);
}
.ig-price-card:nth-child(even) { transform: rotate(.5deg); }
.ig-price-card.is-selected { border-color: #151613; box-shadow: 13px 14px 0 var(--price-accent); transform: translate(-3px,-3px) rotate(-.4deg); }
.ig-price-top { color: #6c6458; }
.ig-price-select { border: 1px solid #171813; border-radius: 0; background: rgba(255,255,255,.24); color: #171813; }
.ig-price-card h3 { color: #171813; }
.ig-price-card > p { color: #625a4e; }
.ig-price-amount { border-color: rgba(21,22,19,.28); }
.ig-price-amount span { color: #6f675b; }
.ig-price-card li { color: #39372f; }
.ig-price-card li i { border-radius: 1px; color: color-mix(in srgb, var(--price-accent) 55%, #171813 45%); border-color: color-mix(in srgb, var(--price-accent) 50%, rgba(18,20,17,.4)); }
.ig-price-addon b { color: color-mix(in srgb, var(--price-accent) 55%, #171813 45%); }
.ig-price-addon,
.ig-price-quantity { border-color: rgba(21,22,19,.25); color: #39372f; }
.ig-price-quantity button { border-color: rgba(21,22,19,.45); border-radius: 0; color: #171813; }
.ig-price-summary {
  border: 2px solid #151613;
  border-radius: 0;
  background: var(--yellow);
  color: #151613;
  box-shadow: 10px 12px 0 rgba(0,0,0,.25);
}
.ig-price-summary span,
.ig-price-summary small { color: #5d512c; }
.ig-price-summary strong { color: #151613; }
.ig-price-summary .primary-btn { background: #151613; color: #fff; box-shadow: none; }
.ig-price-disclaimer { color: rgba(255,255,255,.5); }

/* The final counter sign. */
.closing {
  border: 2px solid #151613;
  border-radius: 0;
  background: var(--orange);
  box-shadow: 14px 16px 0 color-mix(in srgb, var(--ink) 16%, transparent);
  clip-path: polygon(0 0, 97% 0, 100% 10%, 100% 100%, 0 100%);
}
.closing::before { content: "WORK\A ORDER"; white-space: pre; position: absolute; right: 3%; bottom: -16%; color: rgba(21,22,19,.09); font: 800 clamp(8rem,20vw,17rem)/.72 var(--workshop-font); letter-spacing: -.09em; }
.closing::after { content: ""; right: 0; top: auto; bottom: 0; left: 0; height: 6px; background: #151613; opacity: 1; }
.closing h2 { position: relative; z-index: 2; }
.closing p { position: relative; z-index: 2; color: rgba(21,22,19,.7); }
.dark-btn { background: #151613; }

/* Inner rooms of the workshop. */
.service-hero,
.case-hero,
.video-portfolio-hero,
.crew-hero {
  background-image: linear-gradient(color-mix(in srgb,var(--ink) 5%,transparent) 1px, transparent 1px), linear-gradient(90deg,color-mix(in srgb,var(--ink) 5%,transparent) 1px, transparent 1px);
  background-size: 30px 30px;
}
.service-hero::after { font-family: var(--workshop-font); opacity: .055; }
.service-side { border-left-style: dashed; }
.tag,
.video-jump-links a,
.ig-video-filter { border-radius: 0; }
.cap-row { transition: padding .2s ease, background .2s ease; }
.cap-row:hover { padding-inline: 12px; background: color-mix(in srgb,var(--yellow) 9%,transparent); }
.process-note { border: 2px solid #151613; border-radius: 0; background: var(--paper); color: var(--graphite); box-shadow: 9px 10px 0 rgba(0,0,0,.18); transform: rotate(.7deg); }
.process-note p { color: #625b4f; }
.process-note .accent { color: #a4412d; }
.mini-flow { color: #5f584d; }
.service-work { background: color-mix(in srgb,var(--blueprint) 48%,var(--bg)); }
.case-cover img,
.ig-before-after { border-radius: 0; }

.video-showcase--films { background: #101f2c; }
.ig-video-featured { border-radius: 0; background: var(--yellow); color: #151613; }

.crew-signal-ring { border-style: dashed; }
.crew-signal-core { border: 2px solid #151613; border-radius: 0; background: var(--paper); color: var(--graphite); box-shadow: 10px 12px 0 var(--orange); }
.crew-role-card { border: 2px solid #151613; border-radius: 0; background: var(--paper); color: var(--graphite); box-shadow: 8px 9px 0 rgba(0,0,0,.18); }
.crew-role-card::before { background: radial-gradient(440px circle at var(--mouse-x) var(--mouse-y), color-mix(in srgb, var(--role-accent) 30%, transparent) 0%, color-mix(in srgb, var(--role-accent) 10%, transparent) 38%, transparent 70%); }
.crew-role-card::after { content: "DEPARTMENT"; right: 17px; bottom: 15px; width: auto; height: auto; border-radius: 0; background: transparent; color: rgba(21,22,19,.28); filter: none; font: 700 .48rem/1 "DM Mono",monospace; letter-spacing: .1em; opacity: 1; }
.crew-role-card p { color: #625b4f; }
.team-member-role { border-radius: 0; }
.team-member-faves span { border-radius: 0; }

.case-hero dl { border: 2px solid #151613; background: var(--paper); color: var(--graphite); box-shadow: 9px 10px 0 rgba(0,0,0,.2); transform: rotate(1deg); }
.case-story-grid > div { border-radius: 0; }
.case-results { background: var(--blueprint); }

/* Work-order modal */
.modal { background: rgba(11,12,10,.76); }
.modal-card {
  position: relative;
  border: 2px solid #151613;
  border-radius: 0;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 16px 18px 0 rgba(0,0,0,.3);
}
.modal-card::before { content: "IG / WORK ORDER"; position: absolute; top: 14px; left: 24px; padding: 7px 10px; background: var(--orange); color: #151613; font: 700 .52rem/1 "DM Mono",monospace; letter-spacing: .09em; transform: rotate(-2deg); z-index: 1; }
.modal-card { padding-top: 56px; }
.modal p { color: #625b4f; }
.modal-card .accent { color: #537700; }
.close-modal { border-color: #171813; border-radius: 0; color: #171813; }
.field label { color: #5f584c; }
.field input,
.field select,
.field textarea { border-color: rgba(21,22,19,.4); border-radius: 0; background: rgba(255,255,255,.28); color: #171813; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #b3462f; box-shadow: 4px 4px 0 rgba(179,70,47,.16); }
.form-note { color: #6f675a; }

.site-footer { border-top: 3px solid var(--orange); background: color-mix(in srgb,var(--bg) 94%,#000); }
.footer-links a { border-bottom: 1px dashed transparent; }
.footer-links a:hover { color: var(--lime); border-bottom-color: var(--lime); }
html[data-theme="light"] .footer-links a:hover { color: #537700; border-bottom-color: #537700; }
html[data-theme="light"] .footer-tag { color: #5f584c; }
html[data-theme="light"] .footer-bottom { color: #6b6459; }
html[data-theme="light"] .footer-links { color: #4a463c; }
.footer-easter-egg { color: var(--orange); }

/* Light opens the shutters, but the boards keep their material colour. */
html[data-theme="light"] body { background-color: var(--bg); }
html[data-theme="light"] .site-header { background: rgba(238,229,213,.95); }
html[data-theme="light"] .ig-workshop-strip { color: #151613; }
html[data-theme="light"] .hero-art { background-color: #65655b; box-shadow: 18px 20px 0 rgba(44,37,28,.16); }
html[data-theme="light"] .hero h1 em { color: #151613; }
html[data-theme="light"] .ig-pricing-builder { background-color: #113657; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; }
html[data-theme="light"] .case-results { background: var(--blueprint); }
html[data-theme="light"] #services { background: #e7dac6; }
html[data-theme="light"] .service-card { color: var(--graphite); }
html[data-theme="light"] .work-shell .kicker { color: var(--yellow); }
html[data-theme="light"] .work-shell .filter { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.42); }
html[data-theme="light"] .work-shell .filter.active { border-color: #151613; background: var(--yellow); color: #151613; }
html[data-theme="light"] .work-shell,
html[data-theme="light"] .ig-pricing-builder,
html[data-theme="light"] .case-results { color: #fff; }
html[data-theme="light"] .work-card,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .ig-price-card { color: var(--graphite); }
html[data-theme="light"] .process-note { background: var(--paper); }
html[data-theme="light"] .modal-card { background: var(--paper); }
html[data-theme="light"] .site-footer { background: #ddd1bd; }

@media (max-width: 1020px) {
  .nav-links { gap: 16px; }
  .site-header .brand::before { display: none; }
}

@media (max-width: 900px) {
  .hero { background: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(680px,100%); margin-inline: auto; }
  .nav-links { top: 71px; }
  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2) { grid-template-columns: 60px minmax(190px,.8fr) minmax(240px,1.2fr) 54px; }
  .work-card,
  .work-card:nth-child(4n + 2),
  .work-card:nth-child(4n + 3) { grid-column: span 6; }
  .work-card:nth-child(even) { margin-top: 38px; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px,1220px); }
  .ig-workshop-strip { height: 27px; font-size: .5rem; }
  .site-header { height: 68px; }
  .nav-links { top: 67px; }
  .hero { min-height: auto; padding-top: 58px; }
  .hero h1 em { padding-inline: .03em; }
  .hero-art { height: 430px; box-shadow: 9px 10px 0 rgba(0,0,0,.24); transform: none; }
  .hero-art::before { top: 12px; right: 12px; font-size: .43rem; }
  .ig-monogram { top: 18px; left: 16px; font-size: 2.5rem; }
  .float-tag { padding: 7px 8px; font-size: .49rem; }
  .float-tag.one { top: 21%; right: -2%; }
  .float-tag.two { bottom: 12%; left: -2%; }
  .float-tag.three { right: 3%; bottom: -2%; }
  .section { padding-block: 78px; }
  .section-head { margin-bottom: 34px; }
  .services-grid { border-top-width: 2px; }
  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    min-height: 0;
    grid-template-columns: 40px 1fr 44px;
    gap: 11px;
    margin: 8px 0;
    padding: 21px 17px 22px 14px;
    transform: none;
  }
  .service-card:nth-child(even) { transform: none; }
  .service-card:hover,
  .service-card:nth-child(even):hover { transform: translateX(4px); }
  .service-num { grid-column: 1; grid-row: 1; }
  .service-card h3 { grid-column: 2; grid-row: 1; font-size: clamp(1.55rem,8vw,2.2rem); }
  .service-card p { grid-column: 2 / 4; grid-row: 2; }
  .service-arrow,
  .soon { grid-column: 3; grid-row: 1; }
  .service-card::after { display: none; }
  .work-shell::before,
  .ig-testimonials::before { display: none; }
  .work-grid { grid-template-columns: 1fr; gap: 25px; }
  .work-card,
  .work-card:nth-child(4n + 2),
  .work-card:nth-child(4n + 3) { grid-column: 1; margin-top: 0; transform: none; }
  .work-visual,
  .work-card:nth-child(4n + 2) .work-visual,
  .work-card:nth-child(4n + 3) .work-visual { height: 245px; }
  .work-meta { min-height: 0; padding: 21px; }
  .work-type { writing-mode: initial; transform: none; }
  .testimonial-track { padding-top: 18px; }
  .testimonial-card,
  .testimonial-card:nth-child(even) { transform: none; }
  .ig-price-card:nth-child(even) { transform: none; }
  .ig-price-summary { box-shadow: 6px 7px 0 rgba(0,0,0,.2); }
  .closing { box-shadow: 8px 9px 0 color-mix(in srgb,var(--ink) 15%,transparent); }
  .modal-card { box-shadow: 8px 9px 0 rgba(0,0,0,.28); }
}

@media (prefers-reduced-motion: reduce) {
  .ig-workshop-strip > div { animation: none; }
}

/* ==========================================================================
   Hero stage — looping demo: search → campaign → code → shipped site
   All scene animation lives under `.sc.on`; JS only swaps which scene is on.
   Keyframes only define the FROM state, so the natural (static) state is the
   finished frame — used for no-JS and prefers-reduced-motion.
   ========================================================================== */
.stage {
  --s-ink: #f2e5ce;
  --s-dim: rgba(242,229,206,.13);
  --s-dim-2: rgba(242,229,206,.07);
  --s-line: rgba(242,229,206,.2);
  --s-mute: rgba(242,229,206,.46);
  --p: 3.9em;
  position: absolute;
  z-index: 3;
  top: 25%;
  right: 10%;
  width: 72%;
  aspect-ratio: 1.12;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  border: 2px solid #171813;
  background:
    radial-gradient(120% 85% at 100% 0, rgba(255,98,66,.24), transparent 58%),
    linear-gradient(rgba(242,229,206,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(242,229,206,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    #12130f;
  color: var(--s-ink);
  font-family: "DM Mono", monospace;
  box-shadow: 14px 16px 0 rgba(0,0,0,.28);
  transform: rotate(3deg);
}
.stage::before {
  content: "WORK ORDER / IG-0001";
  position: absolute;
  z-index: 4;
  top: -14px;
  left: 22px;
  padding: 6px 9px;
  background: var(--orange);
  color: #151613;
  font: 700 .54rem/1 "DM Mono", monospace;
  letter-spacing: .08em;
  transform: rotate(-2deg);
}
.stage::after {
  content: "STATUS: " attr(data-status);
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: -13px;
  padding: 6px 8px;
  border: 2px solid var(--orange);
  background: #12130f;
  color: var(--orange);
  font: 700 .5rem/1 "DM Mono", monospace;
  letter-spacing: .07em;
  white-space: nowrap;
  transform: rotate(-4deg);
}
.stage-bar, .stage-body, .stage-foot { font-size: calc(100cqw / 40); }
.stage-bar {
  display: flex;
  align-items: center;
  gap: 1.2em;
  flex: none;
  height: 3.6em;
  padding: 0 1.8em;
  border-bottom: 1px dashed var(--s-line);
  font-size: calc(100cqw / 40 * .82);
  letter-spacing: .09em;
  color: var(--s-mute);
}
.stage-dots { display: flex; gap: .55em; }
.stage-dots i { width: .75em; height: .75em; background: var(--s-ink); opacity: .8; }
.stage-file { color: var(--s-ink); opacity: .85; font-weight: 500; }
.stage-brief { margin-left: auto; text-align: right; }
.stage-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }

.cn { position: absolute; width: .9em; height: .9em; border: 0 solid var(--s-mute); opacity: .7; }
.cn.tl { top: .6em; left: .8em; border-width: 1px 0 0 1px; }
.cn.tr { top: .6em; right: .8em; border-width: 1px 1px 0 0; }
.cn.bl { bottom: .6em; left: .8em; border-width: 0 0 1px 1px; }
.cn.br { bottom: .6em; right: .8em; border-width: 0 1px 1px 0; }

/* scenes */
.sc {
  position: absolute;
  inset: 1.6em 2em .4em;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.sc.on { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.stage.static .sc-code { opacity: 1; visibility: visible; }
.stage.static .code { display: none; }
.stage.static *, .stage.static *::before, .stage.static *::after { animation: none !important; }

.sc b { display: block; }
.t, .s { height: .55em; background: var(--s-dim); border-radius: 0; }
.t { width: 62%; }
.s { width: 84%; height: .4em; margin-top: .6em; background: var(--s-dim-2); }
.btn {
  display: inline-block;
  padding: .75em 1.6em;
  background: var(--lime);
  color: #151613;
  font: 700 .95em/1 "DM Mono", monospace;
  letter-spacing: .04em;
  box-shadow: .3em .3em 0 var(--orange);
}

/* ---- scene 1: search.results ---- */
.sq {
  display: flex; align-items: center; gap: .9em;
  width: 21em; height: 2.9em; padding: 0 1.2em;
  border: 1px solid var(--s-line); background: rgba(242,229,206,.05);
  color: var(--s-ink); font-size: .95em;
}
.mag { flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: var(--s-mute); stroke-width: 1.4; }
.typed { display: inline-block; width: calc(var(--n) * 1ch); overflow: hidden; white-space: nowrap; }
.caret { flex: none; width: 1px; height: 1.3em; margin-left: -.8em; background: var(--lime); }
.sc-label { position: relative; margin: 1.3em 0 1em 3.6em; padding-bottom: .8em; font-size: .78em; letter-spacing: .14em; color: var(--s-mute); }
.sc-label .ln { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--lime); transform-origin: left; }
.rows { position: relative; margin-left: 0; }
.row { display: grid; grid-template-columns: 3.6em 1fr; align-items: center; margin-bottom: .6em; height: 3.3em; }
.no { font-size: .8em; color: var(--s-mute); letter-spacing: .08em; }
.rcard { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 1.3em; background: var(--s-dim-2); }
.r1 .t { background: var(--lime); }
.r1 .s { background: rgba(201,255,74,.45); }
.hl {
  position: absolute; z-index: 2; top: 0; left: 3.6em; right: 0; height: 3.3em;
  border: 1px solid var(--lime); background: rgba(201,255,74,.06);
  box-shadow: 0 0 2.2em rgba(201,255,74,.2);
}
.hl em {
  position: absolute; right: .9em; top: 50%; margin-top: -.9em;
  padding: .4em .7em; background: var(--lime); color: #151613;
  font: 700 .85em/1 "DM Mono", monospace; font-style: normal;
}

.sc-search.on .sq { animation: igUp .5s ease backwards; }
.sc-search.on .typed { animation: igType 1.25s steps(19, end) .5s backwards; }
.sc-search.on .caret { animation: igBlink .8s steps(1) infinite; }
.sc-search.on .sc-label { animation: igUp .4s ease 1.6s backwards; }
.sc-search.on .ln { animation: igGrow 1.1s cubic-bezier(.6,0,.2,1) 1.8s backwards; }
.sc-search.on .r1 { animation: igSlide .5s ease 2.1s backwards; }
.sc-search.on .r2 { animation: igSlide .5s ease 2.25s backwards; }
.sc-search.on .r3 { animation: igSlide .5s ease 2.4s backwards; }
.sc-search.on .r4 { animation: igSlide .5s ease 2.55s backwards; }
.sc-search.on .hl { animation: igClimb 2s cubic-bezier(.6,0,.2,1) 3s backwards; }
.sc-search.on .hl em { animation: igPop .45s cubic-bezier(.3,1.8,.5,1) 4.9s backwards; }
.sc-search.on .r1 .t, .sc-search.on .r1 .s { animation: igLit .5s ease 4.6s backwards; }
@keyframes igClimb {
  0% { opacity: 0; transform: translateY(calc(var(--p) * 3)); }
  18% { opacity: 1; transform: translateY(calc(var(--p) * 3)); }
  100% { transform: translateY(0); }
}

/* ---- scene 2: campaign.live ---- */
.live { display: flex; align-items: center; gap: .8em; margin-bottom: 1.2em; color: var(--lime); font-size: .85em; letter-spacing: .16em; }
.live i { width: .7em; height: .7em; border-radius: 50%; background: var(--orange); box-shadow: 0 0 1em var(--orange); }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; }
.ad { padding: 1.1em; border: 1px solid var(--s-line); background: rgba(242,229,206,.04); }
.thumb { position: relative; height: 7em; margin-bottom: .9em; background: linear-gradient(135deg, rgba(242,229,206,.1), rgba(242,229,206,.03)); overflow: hidden; }
.play { position: absolute; left: 50%; top: 50%; margin: -1.1em 0 0 -.7em; width: 0; height: 0; border: 1.1em solid transparent; border-left: 1.7em solid var(--lime); border-right: 0; }
.scrub { position: absolute; left: 0; bottom: 0; height: .35em; width: 100%; background: var(--orange); }
.ad small { display: block; margin-bottom: .8em; font-size: .72em; letter-spacing: .14em; color: var(--s-mute); }
.ad .btn { margin-top: 1.2em; font-size: .85em; }
.orders small { display: block; margin-bottom: 1em; font-size: .72em; letter-spacing: .14em; color: var(--s-mute); }
.o { display: flex; align-items: center; gap: .9em; margin-bottom: .7em; padding: .85em 1em; background: var(--s-dim-2); }
.o i { flex: none; width: .75em; height: .75em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 .9em rgba(201,255,74,.6); }
.o > div { flex: 1; }
.o:nth-of-type(odd) i { background: var(--orange); box-shadow: 0 0 .9em rgba(255,98,66,.6); }
.spark { display: block; width: 100%; height: 3.2em; margin-top: 1em; overflow: visible; }
.spark polyline { fill: none; stroke: var(--lime); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }

.sc-live.on .live { animation: igUp .4s ease backwards; }
.sc-live.on .live i { animation: igBlink 1.1s ease-in-out infinite; }
.sc-live.on .ad { animation: igUp .5s ease .15s backwards; }
.sc-live.on .orders small { animation: igUp .4s ease .8s backwards; }
.sc-live.on .scrub { animation: igGrowW 3.4s linear .6s backwards; }
.sc-live.on .play { animation: igBlink 1.4s ease-in-out infinite; }
.sc-live.on .ad .btn { animation: igPress .7s ease 3.2s backwards; }
.sc-live.on .o1 { animation: igSlide .5s ease 1.2s backwards; }
.sc-live.on .o2 { animation: igSlide .5s ease 2s backwards; }
.sc-live.on .o3 { animation: igSlide .5s ease 2.8s backwards; }
.sc-live.on .o4 { animation: igSlide .5s ease 3.6s backwards; }
.sc-live.on .spark polyline { animation: igDraw 3.6s ease-out 1.2s backwards; }

/* ---- scene 3: index.tsx → shipped site ---- */
.sc-code { padding-left: 3.4em; }
.gutter { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; font-size: .8em; color: var(--s-mute); opacity: .8; }
.gutter span { height: 2.2em; line-height: 2.2em; }
.code { font-size: .95em; }
.code p { height: 2.1em; line-height: 2.1em; margin: 0; width: calc(var(--n) * 1ch); overflow: hidden; white-space: pre; color: var(--s-mute); }
.code b { display: inline; font-weight: 400; }
.code .k { color: rgba(242,229,206,.5); }
.code .f { color: var(--s-ink); }
.code .g { color: rgba(242,229,206,.36); }
.code .hi { color: #fff; font-weight: 500; }
.render { position: absolute; inset: 0 0 0 3.4em; }
.r-head { display: flex; align-items: center; gap: .9em; padding-bottom: 1em; border-bottom: 1px solid var(--s-line); font-size: .78em; letter-spacing: .16em; color: var(--s-ink); }
.r-head span { display: flex; align-items: center; gap: .8em; margin-right: auto; }
.r-head i { width: .9em; height: .9em; background: var(--lime); transform: rotate(8deg); }
.r-head u { width: 2em; height: 1px; background: var(--s-mute); }
.render h4 { margin: 0; font-size: 4.2em; line-height: .86; font-weight: 800; letter-spacing: -.045em; color: var(--s-ink); }
.render h4 em { font-style: italic; color: var(--lime); }
.render p { margin: 0 0 1.4em; font-size: .9em; color: var(--s-mute); }
.render .btn { font-size: .95em; }

.sc-code.on .gutter { animation: igUp .4s ease backwards; }
.sc-code.on .code p { animation: igType var(--t) steps(var(--n), end) var(--d) backwards; }
.sc-code.on .code { animation: igOut .5s ease 4.3s forwards; }
.sc-code.on .gutter .n5, .sc-code.on .gutter .n6 { animation: igLitGutter .4s ease 4.3s backwards; }
.sc-code.on .render { animation: igUp .7s cubic-bezier(.2,.8,.2,1) 4.7s backwards; }
.sc-code.on .render h4 { animation: igUp .8s cubic-bezier(.2,.8,.2,1) 4.9s backwards; }
.sc-code.on .render .btn { animation: igUp .6s ease 5.4s backwards, igPulse 1.8s ease-in-out 6.2s infinite; }
.gutter .n5, .gutter .n6 { color: var(--lime); }

/* progress */

/* keyframes (FROM state only) */
@keyframes igUp { from { opacity: 0; transform: translateY(.9em); } }
@keyframes igSlide { from { opacity: 0; transform: translateX(2.2em); } }
@keyframes igType { from { width: 0; } }
@keyframes igGrow { from { transform: scaleX(0); } }
@keyframes igGrowW { from { width: 0; } }
@keyframes igDraw { from { stroke-dashoffset: 1; } }
@keyframes igPop { from { opacity: 0; transform: scale(.2) rotate(-12deg); } }
@keyframes igLit { from { background: var(--s-dim); } }
@keyframes igLitGutter { from { color: var(--s-mute); } }
@keyframes igBlink { 50% { opacity: .15; } }
@keyframes igOut { to { opacity: 0; transform: translateY(-.6em); } }
@keyframes igPress { 0%, 100% { transform: scale(1); } 40% { transform: scale(.88); box-shadow: 0 0 0 var(--orange); } }
@keyframes igPulse { 50% { transform: translate(-.15em,-.15em); box-shadow: .5em .5em 0 var(--orange); } }

/* the rest of the board comes alive too */
.orbit { animation: igOrbit 60s linear infinite; }
@keyframes igOrbit { to { transform: rotate(351deg); } }
.float-tag.one { --r: 5deg; }
.float-tag.two { --r: -6deg; }
.float-tag.three { --r: 2deg; }
.float-tag { animation: igBob 5.5s ease-in-out infinite; }
.float-tag.two { animation-delay: -1.8s; }
.float-tag.three { animation-delay: -3.4s; }
@keyframes igBob {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-8px) rotate(calc(var(--r) * .6)); }
}
.ig-monogram i { animation: igBlink 1.6s steps(1) infinite; }
.ig-monogram { animation: igWiggle 7s ease-in-out infinite; }
@keyframes igWiggle { 0%, 88%, 100% { transform: rotate(-4deg); } 92% { transform: rotate(-7deg) translateY(-3px); } 96% { transform: rotate(-2deg); } }
.hero-art { animation: igBoardIn .8s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes igBoardIn { from { opacity: 0; transform: translateY(24px) rotate(.8deg) scale(.97); } }

@media (max-width: 640px) {
  .stage { top: 27%; right: 6%; width: 84%; box-shadow: 9px 10px 0 rgba(0,0,0,.27); }
  .stage-brief { display: none; }
  .stage::before { font-size: .45rem; }
  .stage::after { font-size: .43rem; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit, .float-tag, .ig-monogram, .ig-monogram i, .hero-art { animation: none !important; }
}



/* ==========================================================================
   Hero board — sits directly on the site background (no tint, no glow).
   Only the stage is a dark panel; accents are the site's lime + orange.
   ========================================================================== */
.hero-art,
html[data-theme="light"] .hero-art {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  box-shadow: 14px 16px 0 color-mix(in srgb, var(--ink) 7%, transparent);
}
.hero-art::before { background: var(--graphite); border: 1px solid rgba(201,255,74,.5); color: var(--lime); }
.hero-art::after { border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.orbit { border-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.orbit::before { background: var(--lime); }
.orbit::after { background: var(--orange); }
.ig-monogram { box-shadow: 6px 7px 0 var(--lime); border-color: #0f100c; }

.stage {
  background:
    linear-gradient(rgba(242,229,206,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(242,229,206,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #121310;
  border: 1px solid rgba(201,255,74,.55);
  box-shadow: 12px 14px 0 rgba(0,0,0,.38);
}

.float-tag, .float-tag.one, .float-tag.two, .float-tag.three,
html[data-theme="light"] .float-tag {
  display: flex; align-items: center; gap: .7em;
  border: 1px solid rgba(242,229,206,.4);
  background: #121310; color: var(--paper);
  box-shadow: 5px 6px 0 rgba(0,0,0,.4);
  backdrop-filter: none;
}
.float-tag::after { content: ""; order: -1; flex: none; width: .7em; height: .7em; background: var(--lime); transform: rotate(8deg); }
.float-tag.two::after { background: var(--orange); }
.float-tag.three::after { background: var(--paper); }
.float-tag::before { background: color-mix(in srgb, var(--ink) 40%, transparent); }

/* ==========================================================================
   After Effects layer: timeline + timecode, shape-wipe, selection handles,
   kinetic type, particle burst, camera drift, film grain, mouse parallax.
   ========================================================================== */

/* timeline */
.stage-foot { display: flex; align-items: center; gap: 1.4em; flex: none; height: 4em; padding: 0 1.8em; border-top: 1px dashed var(--s-line); }
.tc { flex: none; width: 8.6em; font-size: .85em; letter-spacing: .05em; color: var(--lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl { position: relative; flex: 1; display: flex; gap: .3em; height: 1.5em; }
.seg {
  position: relative; flex: 1 1 0; display: flex; align-items: center; min-width: 0; padding-left: 1.5em; overflow: hidden;
  background: rgba(242,229,206,.08); color: var(--s-mute); font-size: .68em; letter-spacing: .1em; white-space: nowrap;
}
.seg::before { content: ""; position: absolute; left: .5em; top: 50%; width: .55em; height: .55em; margin-top: -.28em; background: var(--s-mute); transform: rotate(45deg); }
.seg.on { background: rgba(201,255,74,.2); color: var(--s-ink); }
.seg.on::before, .seg.done::before { background: var(--lime); }
.ph { position: absolute; z-index: 2; top: -.55em; bottom: -.55em; left: var(--ph, 100%); width: 1px; background: var(--orange); pointer-events: none; }
.ph::before { content: ""; position: absolute; top: 0; left: -.4em; border: .4em solid transparent; border-top: .5em solid var(--orange); border-bottom: 0; }
.stage:not(.static) .ph { transition: left .05s linear; }

/* shape-layer wipe between scenes */
.sc, .sc.on { transition: none; }
.wipe { position: absolute; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
.wipe i { position: absolute; left: 0; right: 0; height: 34%; transform: translateX(-101%); }
.wipe i:nth-child(1) { top: 0; background: var(--orange); }
.wipe i:nth-child(2) { top: 33%; background: var(--lime); }
.wipe i:nth-child(3) { top: 66%; background: var(--paper); }
.wipe.go i { animation: igWipe .95s cubic-bezier(.7,0,.3,1) both; }
.wipe.go i:nth-child(2) { animation-delay: .05s; }
.wipe.go i:nth-child(3) { animation-delay: .1s; }
@keyframes igWipe { 0% { transform: translateX(-101%); } 40%, 60% { transform: translateX(0); } 100% { transform: translateX(101%); } }

/* slow camera push on every scene */
.sc.on { animation: igCam 7s cubic-bezier(.2,.6,.2,1) both; }
@keyframes igCam { from { transform: scale(1.07) translate(.5em, .4em); } }

/* film grain + vignette over the whole screen */
.stage-body::before {
  content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0,0,0,.5));
}
.stage-body::after {
  content: ""; position: absolute; inset: -20%; z-index: 7; pointer-events: none; opacity: .13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: igGrain .6s steps(1) infinite;
}
@keyframes igGrain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

/* selection handles (like a picked layer) */
.hd { position: absolute; width: .65em; height: .65em; background: #fff; border: 1px solid var(--lime); }
.hd.a { left: -.35em; top: -.35em; } .hd.b { right: -.35em; top: -.35em; }
.hd.c { left: -.35em; bottom: -.35em; } .hd.d { right: -.35em; bottom: -.35em; }

/* kinetic headline */
.hline { position: relative; display: inline-block; margin: 1.5em 0 .9em; }
.sel { position: absolute; inset: -.3em -.4em -.15em -.4em; border: 1px solid var(--lime); opacity: 0; pointer-events: none; }
.sel em { position: absolute; left: -1px; bottom: 100%; padding: .35em .7em; background: var(--lime); color: #151613; font: 700 .62em/1 "DM Mono", monospace; font-style: normal; letter-spacing: .08em; white-space: nowrap; }
.render h4 .ln { display: inline-block; overflow: hidden; padding: .12em .08em .1em 0; margin: -.12em 0 -.1em; vertical-align: top; }
.render h4 em.ln { padding-right: .1em; }
.ch { display: inline-block; }
.sc-code.on .render { animation: igShow .01s linear 4.6s backwards; }
@keyframes igShow { from { opacity: 0; } }
.sc-code.on .render h4 { animation: none; }
.sc-code.on .r-head { animation: igUp .6s ease 4.7s backwards; }
.sc-code.on .render p { animation: igUp .6s ease 5.3s backwards; }
.sc-code.on .render h4 .ch { animation: igRise .75s cubic-bezier(.2,.9,.2,1) calc(4.9s + var(--i) * .055s) backwards; }
.sc-code.on .render h4 { animation: igGlitch .5s steps(1) 5.75s; }
.sc-code.on .sel { animation: igSel 2.4s ease 5.2s both; }
.btnwrap { position: relative; display: inline-block; }
@keyframes igRise { from { transform: translateY(115%) rotate(9deg); } }
@keyframes igGlitch {
  0%, 100% { text-shadow: none; transform: none; }
  20% { text-shadow: .05em 0 var(--orange), -.05em 0 #59dfca; transform: translateX(.02em); }
  45% { text-shadow: -.04em 0 var(--orange), .04em 0 #59dfca; transform: translateX(-.03em); }
  70% { text-shadow: .03em .01em var(--orange), -.03em 0 #59dfca; transform: none; }
}
@keyframes igSel { 0% { opacity: 0; transform: scale(1.1); } 14%, 72% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* particle burst (#1 badge, Enquire button) */
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.hl .burst { left: auto; right: 2.2em; }
.burst i { position: absolute; left: 0; top: 0; width: .55em; height: .55em; margin: -.28em; background: var(--lime); opacity: 0; }
.burst i:nth-child(3n) { background: var(--orange); }
.burst i:nth-child(3n + 1) { background: var(--paper); }
.sc-search.on .burst i { animation: igBurst .95s cubic-bezier(.1,.7,.3,1) 4.95s; }
.sc-code.on .burst i { animation: igBurst .95s cubic-bezier(.1,.7,.3,1) 5.7s; }
@keyframes igBurst {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1.2); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.2); }
}

/* mouse parallax: each layer moves at its own depth */
.stage { transform: rotate(3deg) perspective(1000px) rotateY(calc(var(--mx, 0) * 7deg)) rotateX(calc(var(--my, 0) * -6deg)); transition: transform .3s ease-out; }
.float-tag, .ig-monogram, .orbit { transition: translate .35s ease-out; }
.float-tag.one { translate: calc(var(--mx, 0) * 18px) calc(var(--my, 0) * 12px); }
.float-tag.two { translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * 10px); }
.float-tag.three { translate: calc(var(--mx, 0) * 22px) calc(var(--my, 0) * -10px); }
.ig-monogram { translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -8px); }
.orbit { translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -16px); }

.stage.static *, .stage.static *::before, .stage.static *::after { animation: none !important; }
@media (max-width: 640px) {
  .stage-brief { display: none; }
  .tc { width: 7.6em; }
  .seg { padding-left: 1.3em; font-size: .6em; }
}

/* ==========================================================================
   Scene: reel_v3.aep — an After Effects composition (viewer + layer panel)
   ========================================================================== */
.viewer { position: relative; height: 12.5em; overflow: hidden; border: 1px solid var(--s-line); background: rgba(242,229,206,.03); }
.safe { position: absolute; inset: 1em; border: 1px dashed rgba(242,229,206,.14); }
.viewer::before, .viewer::after { content: ""; position: absolute; background: rgba(242,229,206,.07); }
.viewer::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.viewer::after { top: 50%; left: 0; right: 0; height: 1px; }
.vl, .vr { position: absolute; top: .7em; z-index: 2; font-size: .66em; letter-spacing: .12em; color: var(--s-mute); }
.vl { left: 1.1em; } .vr { right: 1.1em; }
.mp { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mp path { fill: none; vector-effect: non-scaling-stroke; }
.mp .dash { stroke: var(--s-mute); stroke-width: 1; stroke-dasharray: 4 4; }
.mp .live { stroke: var(--lime); stroke-width: 1.6; stroke-dasharray: 1; }
.mp .kfd { fill: var(--lime); }
.ease { position: absolute; right: 1.2em; top: 2.2em; width: 6em; height: 3.6em; overflow: visible; }
.ease rect { fill: rgba(242,229,206,.04); stroke: var(--s-line); stroke-width: .03; }
.ease path { fill: none; stroke: var(--orange); stroke-width: .12; stroke-dasharray: 1; }
.mt { position: absolute; left: 1.6em; bottom: 1.5em; font: 800 4em/.9 var(--workshop-font); letter-spacing: -.04em; color: var(--s-ink); }
.mt small { display: block; margin-top: .9em; font: 500 .2em/1 "DM Mono", monospace; letter-spacing: .6em; color: var(--s-mute); }
.orb { position: absolute; left: 27.5em; top: 7.2em; width: 3em; height: 3em; }
.orb b { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); }
.orb i { position: absolute; inset: 0; border: 1px solid var(--orange); border-radius: 50%; opacity: 0; }
.mv { position: absolute; left: 0; top: 0; width: 2.6em; height: 2.6em; background: var(--lime); transform: translate(30.70em, 2.70em) rotate(300deg); }
.mv.m2 { opacity: .38; } .mv.m3 { opacity: .16; }
.mv .hd { opacity: 0; }
.mv.m1 .hd { opacity: 1; }

.lays { position: relative; margin-top: .9em; }
.lay { display: grid; grid-template-columns: .9em .9em 8em 1fr; align-items: center; gap: .6em; height: 2.1em; border-bottom: 1px solid rgba(242,229,206,.07); font-size: .78em; color: var(--s-mute); letter-spacing: .04em; }
.lay span { white-space: nowrap; overflow: hidden; color: var(--s-ink); opacity: .8; }
.eye { width: .6em; height: .6em; border-radius: 50%; background: var(--s-mute); }
.lb { width: .8em; height: .8em; background: var(--s-mute); }
.c-lime { background: var(--lime); } .c-orange { background: var(--orange); } .c-paper { background: var(--paper); } .c-mute { background: #7a7a6c; }
.trk { position: relative; height: 1.3em; }
.bar { position: absolute; top: .2em; height: .9em; opacity: .28; transform-origin: left; }
.trk u { position: absolute; top: .3em; width: .7em; height: .7em; margin-left: -.35em; background: var(--lime); transform: rotate(45deg); }
.lph { position: absolute; z-index: 3; top: -.2em; bottom: 0; left: 100%; width: 1px; background: var(--orange); }
.lph::before { content: ""; position: absolute; top: 0; left: -.4em; border: .4em solid transparent; border-top: .5em solid var(--orange); border-bottom: 0; }

.sc-motion.on .viewer { animation: igUp .5s ease backwards; }
.sc-motion.on .mp .live { animation: igDraw 4s cubic-bezier(.65,0,.35,1) .6s backwards; }
.sc-motion.on .ease path { animation: igDraw 1.2s ease .9s backwards; }
.sc-motion.on .mv { animation: igMove 4s linear .6s backwards; }
.sc-motion.on .mv.m2 { animation-delay: .68s; }
.sc-motion.on .mv.m3 { animation-delay: .76s; }
.sc-motion.on .mt { animation: igTrack 1s cubic-bezier(.2,.9,.2,1) 1.2s backwards; }
.sc-motion.on .orb b { animation: igPop .6s cubic-bezier(.3,1.8,.5,1) 2.6s backwards; }
.sc-motion.on .orb i { animation: igRing 1.7s ease-out 3.2s infinite; }
.sc-motion.on .orb i + i { animation-delay: 4s; }
.sc-motion.on .lay { animation: igSlide .5s ease calc(.9s + var(--k) * .12s) backwards; }
.sc-motion.on .bar { animation: igGrow .8s cubic-bezier(.6,0,.2,1) calc(1.2s + var(--k) * .12s) backwards; }
.sc-motion.on .trk u { animation: igLit .4s ease var(--d) backwards; }
.sc-motion.on .lph { animation: igPh 5.6s linear .6s backwards; }
@keyframes igMove {
  0.0% { transform: translate(2.70em, 8.20em) rotate(0deg); }
  0.1% { transform: translate(4.62em, 5.73em) rotate(21deg); }
  1.2% { transform: translate(6.61em, 4.77em) rotate(43deg); }
  3.9% { transform: translate(8.64em, 4.85em) rotate(64deg); }
  9.3% { transform: translate(10.70em, 5.51em) rotate(86deg); }
  18.2% { transform: translate(12.76em, 6.29em) rotate(107deg); }
  31.5% { transform: translate(14.79em, 6.72em) rotate(129deg); }
  50.0% { transform: translate(16.78em, 6.35em) rotate(150deg); }
  68.5% { transform: translate(18.70em, 4.70em) rotate(171deg); }
  81.8% { transform: translate(21.19em, 2.19em) rotate(193deg); }
  90.7% { transform: translate(23.59em, 0.96em) rotate(214deg); }
  96.1% { transform: translate(25.82em, 0.70em) rotate(236deg); }
  98.8% { transform: translate(27.81em, 1.11em) rotate(257deg); }
  99.9% { transform: translate(29.46em, 1.88em) rotate(279deg); }
  100.0% { transform: translate(30.70em, 2.70em) rotate(300deg); }
}
@keyframes igTrack { from { opacity: 0; letter-spacing: .35em; filter: blur(5px); } }
@keyframes igRing { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes igPh { from { left: 9.05em; } }
@media (max-width: 640px) { .lay { grid-template-columns: .9em .9em 6.5em 1fr; } }

/* ==========================================================================
   Hero logo — the original IG mark (same file as the header), no card.
   ========================================================================== */
.ig-monogram {
  --lw: 84px;
  display: block;
  width: var(--lw);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  animation: igLogoIn .9s cubic-bezier(.2,.8,.2,1) .2s backwards;
}
.ig-hero-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(201,255,74,.12)); }
html[data-theme="light"] .ig-hero-logo { filter: invert(1); }
.ig-monogram i {
  position: absolute;
  right: -1%;
  bottom: 3%;
  width: calc(var(--lw) * .075);
  height: calc(var(--lw) * .075);
  margin: 0;
  background: var(--lime);
  transform: none;
  animation: igLogoDot 2.4s steps(1) 1.2s infinite;
}
@keyframes igLogoIn { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-10px); } to { clip-path: inset(0 0 0 0); } }
@keyframes igLogoDot { 0%, 70%, 100% { opacity: 1; } 78% { opacity: .15; } 86% { opacity: 1; } 92% { opacity: .15; } }
@media (max-width: 640px) { .ig-monogram { --lw: 68px; top: 20px; left: 18px; } }
@media (prefers-reduced-motion: reduce) { .ig-monogram, .ig-monogram i { animation: none !important; } }

.orbit::before { top: 50%; left: 1%; }

/* Work-order modal: readable success / error message on the paper card */
.modal-card .form-success {
  color: #1f3300;
  background: #e4f5b8;
  border: 2px solid #4a6b00;
  border-radius: 0;
  font-weight: 600;
  box-shadow: 4px 4px 0 rgba(21,22,19,.18);
}
.modal-card .form-success.is-error {
  color: #5a1200;
  background: #ffd9cc;
  border-color: #b3320f;
}
html[data-theme="light"] .modal-card .form-success { color: #1f3300; background: #e4f5b8; border-color: #4a6b00; }
html[data-theme="light"] .modal-card .form-success.is-error { color: #5a1200; background: #ffd9cc; border-color: #b3320f; }
