/* Shared styles for the Unboggle site (home page and AI consultancy page). */
/* Every example on this page (the Topknot salon promo, the Coffee Pitstop site and reel) is an illustration
   for an invented business, not client work. See DESIGN.md. */
:root {
  --ink: #0c0d0b;
  --ink-2: #151713;
  --ink-3: #20231d;
  --bone: #f2efe6;
  --mute: #a3a596;
  --lime: #d7ff3e;
  --red: #ff5a36;
  --line: rgba(242, 239, 230, .14);
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gut), 1320px); margin-inline: auto; }
.label { font: 500 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.is-stuck { background: rgba(12, 13, 11, .86); backdrop-filter: blur(10px); border-color: var(--line); }
.top__bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--display); letter-spacing: -.02em; }
.logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--bone); opacity: .82; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--lime); background: var(--lime); color: var(--ink) !important; opacity: 1 !important; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); background: #e4ff7a; }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: transparent; color: var(--bone) !important; border-color: var(--line); }
.btn--ghost:hover { background: rgba(242, 239, 230, .08); }
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } .top__bar { height: 60px; } .nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; } }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 120px 0 0; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12,13,11,.82) 0%, rgba(12,13,11,.45) 48%, rgba(12,13,11,0) 78%), linear-gradient(0deg, var(--ink) 0%, rgba(12,13,11,0) 26%); }
.hero__in { position: relative; z-index: 2; padding-bottom: clamp(28px, 5vh, 56px); }
.hero h1 { font: 600 clamp(46px, 9.4vw, 148px)/.9 var(--display); letter-spacing: -.035em; font-variation-settings: "opsz" 96; text-wrap: balance; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .ln > span { display: block; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__sub { display: grid; grid-template-columns: minmax(0, 34ch) auto; align-items: end; justify-content: space-between; gap: 28px; margin-top: clamp(24px, 4vh, 44px); }
.hero__sub p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--bone); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__list { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(12, 13, 11, .55); }
.hero__list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__list li { padding: 18px 0; font-weight: 500; font-size: 15px; display: flex; gap: 12px; }
.hero__list li b { color: var(--lime); font: 500 13px/1.7 var(--text); }
@media (max-width: 720px) {
  .hero__sub { grid-template-columns: 1fr; }
  .hero__list ol { grid-template-columns: 1fr 1fr; } .hero__list li { padding: 12px 0; font-size: 14px; }
  .hero::after { background: linear-gradient(0deg, var(--ink) 4%, rgba(12,13,11,.72) 45%, rgba(12,13,11,.25) 100%); }
}

/* marquee */
.band { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink); }
.band__track { display: flex; width: max-content; gap: 0; animation: slide 38s linear infinite; }
.band__track span { font: 500 clamp(28px, 4.4vw, 64px)/1 var(--display); letter-spacing: -.03em; padding-right: .55em; white-space: nowrap; }
.band__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--mute); }
.band__track span::after { content: "✳"; color: var(--red); -webkit-text-stroke: 0; margin-left: .55em; font-size: .6em; vertical-align: .2em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: clamp(72px, 12vh, 150px) 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch); gap: 32px; align-items: end; margin-bottom: clamp(36px, 6vh, 72px); }
.sec__head h2 { font: 600 clamp(36px, 6vw, 92px)/.95 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.sec__head p { color: var(--mute); }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; gap: 16px; } }

/* service rows */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vh, 56px) 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__n { font: 500 14px/1 var(--text); color: var(--lime); letter-spacing: .08em; }
.svc h3 { font: 600 clamp(30px, 3.8vw, 56px)/1 var(--display); letter-spacing: -.035em; margin: 14px 0 16px; }
.svc p { max-width: 40ch; color: var(--bone); opacity: .86; }
.svc ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--mute); }
.demo { position: relative; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 10; }
.demo__tag { position: absolute; left: 14px; top: 14px; z-index: 5; font: 500 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; background: rgba(12,13,11,.7); color: var(--mute); padding: 7px 10px; border-radius: 999px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .demo { aspect-ratio: 4 / 3; } }

/* demo 1: the example promo video */
.reelv { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink-3); }
.reelv video { cursor: pointer; position: absolute; top: 5%; left: 50%; height: 90%; width: auto; max-width: none; aspect-ratio: 9 / 16; transform: translateX(-50%); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.5); object-fit: cover; }
.demo--tall { aspect-ratio: 16 / 12; }
@media (max-width: 860px) { .demo--tall { aspect-ratio: 3 / 4; } }
/* (old CSS-only reel, unused) */
.reel { position: absolute; inset: 0; display: grid; place-items: center; background: var(--red); color: var(--ink); }
.reel__slide { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; opacity: 0; animation: reel 9s infinite; }
.reel__slide:nth-child(2) { animation-delay: 3s; background: var(--lime); }
.reel__slide:nth-child(3) { animation-delay: 6s; background: var(--bone); }
.reel__slide b { display: block; font: 800 clamp(34px, 6.2vw, 96px)/.86 var(--display); letter-spacing: -.05em; text-transform: uppercase; animation: pop 9s infinite; animation-delay: inherit; }
.reel__slide small { display: block; margin-top: 12px; font: 600 clamp(13px, 1.3vw, 18px)/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.reel__bar { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--ink); transform-origin: left; animation: bar 3s linear infinite; }
@keyframes reel { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 4% { opacity: 1; clip-path: inset(0 0 0 0); } 33% { opacity: 1; clip-path: inset(0 0 0 0); } 37%, 100% { opacity: 0; clip-path: inset(0 0 0 100%); } }
@keyframes pop { 0% { transform: translateY(40%) rotate(-4deg); } 7% { transform: none; } 30% { transform: scale(1.04); } 100% { transform: scale(1.04); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* demo 2: a real example website in a browser frame. Sized in cqw so it scales with the frame; the page scrolls itself. */
.site { position: absolute; inset: 7% 5% 0 5%; background: #fff4df; border-radius: 12px 12px 0 0; color: #1b1410; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5); container-type: size; display: grid; grid-template-rows: auto 1fr; }
.site__chrome { height: 5.2cqw; background: #e4dccb; display: flex; align-items: center; gap: 1.1cqw; padding: 0 2.2cqw; position: relative; z-index: 2; }
.site__chrome i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #b9b09d; }
.site__chrome span { margin-left: 2cqw; flex: 1; max-width: 52%; background: #f6f0e3; border-radius: 99px; font: 500 1.9cqw/1 var(--text); color: #6d6557; padding: .9cqw 2cqw; white-space: nowrap; overflow: hidden; }
.site__view { overflow: hidden; }
.site__page { animation: sitescroll 16s cubic-bezier(.6, 0, .3, 1) infinite; font-family: var(--text); }
@keyframes sitescroll { 0%, 14% { transform: translateY(0); } 44%, 56% { transform: translateY(calc((-100% + 94.8cqh) * .52)); } 86%, 100% { transform: translateY(calc(-100% + 94.8cqh)); } }
.ps-nav { display: flex; align-items: center; justify-content: space-between; padding: 2.2cqw 4cqw; }
.ps-logo { font: italic 900 3.6cqw/.9 "Barlow Condensed", sans-serif; text-transform: uppercase; } .ps-logo b { color: #e8372a; }
.ps-nav nav { display: flex; align-items: center; gap: 3cqw; font-size: 1.9cqw; font-weight: 500; }
.ps-btn { background: #1b1410; color: #fff4df; border-radius: 99px; padding: 1.3cqw 2.6cqw; font-weight: 600; font-size: 1.9cqw; display: inline-block; } .ps-btn.y { background: #ffd23e; color: #1b1410; }
.ps-hero { display: grid; grid-template-columns: 1fr 1.05fr; margin: 0 4cqw; border-radius: 2.4cqw; overflow: hidden; background: #ffd23e; }
.ps-hero div { padding: 4.5cqw 4cqw; display: grid; align-content: center; gap: 2.2cqw; justify-items: start; }
.ps-hero h4 { margin: 0; font: italic 900 9cqw/.86 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
.site p { opacity: 1; max-width: none; }
.site .ps-hero p { color: #1b1410; font-size: 2.3cqw; line-height: 1.35; max-width: 24ch; }
.ps-hero img { width: 100%; height: 100%; object-fit: cover; min-height: 40cqw; }
.ps-cheq { height: 3cqw; margin: 4cqw 0 0; background: conic-gradient(#1b1410 25%, #fff4df 0 50%, #1b1410 0 75%, #fff4df 0) 0 0 / 3cqw 3cqw; }
.ps-sec { padding: 5cqw 4cqw; } .ps-sec h5 { margin: 0 0 3cqw; font: italic 900 5.4cqw/.9 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.ps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.ps-card { background: #fff; border-radius: 2cqw; overflow: hidden; } .ps-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.site .ps-card p { color: #1b1410; display: flex; justify-content: space-between; padding: 1.8cqw 2cqw 2.2cqw; font-size: 2cqw; font-weight: 600; } .site .ps-card p b { color: #e8372a; }
.ps-visit { background: #1b1410; color: #fff4df; display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; padding: 5cqw 4cqw 6cqw; }
.ps-visit h5 { margin: 0 0 2cqw; font: italic 900 5.4cqw/.9 "Barlow Condensed", sans-serif; text-transform: uppercase; color: #ffd23e; }
.site .ps-visit p { color: #fff4df; font-size: 2.1cqw; line-height: 1.5; } .ps-visit dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 1cqw 3cqw; font-size: 2.1cqw; } .ps-visit dd { margin: 0; text-align: right; opacity: .8; }
/* demo 3: instagram grid */
.gram { position: absolute; inset: 0; display: grid; place-items: center; }
.gram__phone { height: 88%; aspect-ratio: 9 / 17; background: var(--ink); border: 2px solid #3a3d35; border-radius: 26px; padding: 10px; display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.gram__head { display: flex; align-items: center; gap: 8px; }
.gram__head i { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--lime), var(--red), var(--lime)); }
.gram__head span { height: 8px; width: 46%; border-radius: 4px; background: #3a3d35; }
.gram__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 3px; border-radius: 8px; overflow: hidden; }
.gram__grid i { background: var(--ink-3); animation: tile 7.2s var(--ease) infinite; }
.gram__grid i:nth-child(3n+1) { --c: var(--lime); } .gram__grid i:nth-child(3n+2) { --c: var(--red); } .gram__grid i:nth-child(3n) { --c: var(--bone); }
.gram__grid i:nth-child(1) { animation-delay: 0s; } .gram__grid i:nth-child(2) { animation-delay: .25s; } .gram__grid i:nth-child(3) { animation-delay: .5s; }
.gram__grid i:nth-child(4) { animation-delay: .75s; } .gram__grid i:nth-child(5) { animation-delay: 1s; } .gram__grid i:nth-child(6) { animation-delay: 1.25s; }
.gram__grid i:nth-child(7) { animation-delay: 1.5s; } .gram__grid i:nth-child(8) { animation-delay: 1.75s; } .gram__grid i:nth-child(9) { animation-delay: 2s; }
.gram__grid i:nth-child(10) { animation-delay: 2.25s; } .gram__grid i:nth-child(11) { animation-delay: 2.5s; } .gram__grid i:nth-child(12) { animation-delay: 2.75s; }
@keyframes tile { 0% { background: var(--ink-3); transform: scale(.6); border-radius: 50%; } 10%, 78% { background: var(--c); transform: none; border-radius: 0; } 90%, 100% { background: var(--ink-3); transform: scale(.6); border-radius: 50%; } }
.gram__stat { position: absolute; right: 7%; bottom: 12%; background: var(--bone); color: var(--ink); border-radius: 14px; padding: 12px 16px; font: 600 14px/1.2 var(--text); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.gram__stat b { display: block; font: 700 26px/1 var(--display); letter-spacing: -.03em; }
@media (max-width: 520px) { .gram__stat { display: none; } }

/* demo 4: guides */
.guides { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 8% 8%; }
.guides a { text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.guides a:hover { border-color: var(--lime); transform: translateX(6px); }
.guides a:hover span { color: var(--lime); }
.guides a { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--ink); font-weight: 500; }
.guides a span { color: var(--mute); font-size: 14px; white-space: nowrap; }

/* who */
.who { background: var(--bone); color: var(--ink); }
.who .sec__head p { color: #4c4e45; }
.who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who__card { border-radius: 22px; padding: clamp(22px, 2.6vw, 36px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; background: #e6e2d5; transition: transform .35s var(--ease), background .25s; }
.who__card:hover { transform: translateY(-6px); background: var(--lime); }
.who__card:nth-child(2) { background: var(--ink); color: var(--bone); } .who__card:nth-child(2):hover { background: var(--red); color: var(--ink); }
.who__card h3 { font: 600 clamp(26px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.035em; }
.who__card p { font-size: 16px; max-width: 30ch; }
.who__card svg { width: 54px; height: 54px; }
@media (max-width: 860px) { .who__grid { grid-template-columns: 1fr; } .who__card { min-height: 0; gap: 28px; } }

/* contact: calm, no motion behind the form */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.contact h2 { font: 600 clamp(40px, 6.4vw, 100px)/.92 var(--display); letter-spacing: -.045em; }
.contact h2 em { font-style: normal; color: var(--lime); }
.contact__lede { margin-top: 22px; color: var(--mute); max-width: 36ch; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 36px); }
.f { display: grid; gap: 8px; } .f--full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 500; color: var(--mute); }
input, textarea, select { width: 100%; font: 400 16px/1.4 var(--text); color: var(--bone); background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
.form__note { grid-column: 1 / -1; font-size: 14px; color: var(--mute); min-height: 1.4em; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } form { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer nav { display: flex; gap: 22px; } footer a { text-decoration: none; } footer a:hover { color: var(--bone); }

/* scroll reveals: only hidden once the script says motion is on */
.js-motion [data-reveal] { opacity: 0; transform: translateY(36px); }
.js-motion .hero h1 .ln > span { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gram__grid i { background: var(--c); }
}

/* home page: the AI consultancy teaser row */
.demo--mini { display: block; text-decoration: none; color: var(--bone); }
.mini { position: absolute; inset: 14% 8% 8%; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.mini > div:first-child span { display: block; color: var(--mute); font-size: 15px; } .mini > div:first-child b { font: 700 clamp(34px, 4.4vw, 64px)/1 var(--display); letter-spacing: -.03em; } .mini em { font-style: normal; color: var(--lime); margin-left: 10px; }
.mini__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; min-height: 0; }
.mini__bars i { height: var(--h); background: var(--ink-3); border-radius: 8px 8px 0 0; transition: background .3s; } .mini__bars i.hi { background: var(--lime); }
.demo--mini:hover .mini__bars i { background: #2c3027; } .demo--mini:hover .mini__bars i.hi { background: var(--lime); }
.mini p { background: var(--bone); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-size: 16px; opacity: 1; max-width: none; } .mini p b { background: var(--lime); padding: 0 6px; border-radius: 5px; }
@media (max-width: 720px) { .nav a[href="ai-consultancy.html"] { display: none; } }
