/* Minutech Builds studio site: base, nav, hero, client strip. Section styles live in sections.css. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0a0a; --bg2: #121212; --card: #171717; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #f3f1ed; --muted: #9c9a96; --dim: #6c6a67; --accent: #ff6200; --accent2: #ff8a3d;
  --pad: clamp(20px, 5vw, 72px); --max: 1320px;
  --ease: cubic-bezier(.2,.7,.1,1); --spring: cubic-bezier(.34,1.4,.5,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
em { font-family: "Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--accent2); }
.mono { font: 500 12px/1.4 "Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--text); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
main > section { padding: clamp(70px, 9vw, 120px) var(--pad); max-width: var(--max); margin: 0 auto; }

/* interactive dot field (field.js) sits behind everything */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* film grain, very light */
.grain { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--spring); will-change: transform; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn.solid { background: var(--accent); color: #0a0a0a; }
.btn.solid:hover { background: var(--accent2); }
.btn.line { border: 1px solid var(--line2); }
.btn.line:hover { border-color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .25s, border-color .25s, color .25s; }
.pill.solid { background: var(--text); color: #0a0a0a; }
.pill.solid:hover { background: var(--accent); }
.pill.ghost { border: 1px solid var(--line2); color: var(--muted); }
.pill.ghost:hover { color: var(--text); border-color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; vertical-align: 1px; margin-right: 4px; }
.dot.live { box-shadow: 0 0 0 0 rgba(61,220,132,.5); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--pad); transition: transform .45s var(--ease); }
/* no strip: two blur layers fade out downward, so the page melts into the bar instead of meeting an edge */
.nav::before, .nav::after { content: ""; position: absolute; inset: 0 0 -46px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; }
.nav::before { background: linear-gradient(to bottom, rgba(10,10,10,.7), rgba(10,10,10,0));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.nav::after { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 65%); mask-image: linear-gradient(to bottom, #000 25%, transparent 65%); }
.nav.solid::before, .nav.solid::after { opacity: 1; }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.mark { width: 30px; height: 24px; overflow: visible; }
.mark path { fill: var(--text); transition: transform .55s var(--spring), fill .35s; transform-box: fill-box; }
.mark .l { transform-origin: 0% 50%; } .mark .r { transform-origin: 100% 50%; }
.brand:hover .mark .l { transform: translateX(-3px) rotate(-6deg); fill: var(--accent); }
.brand:hover .mark .r { transform: translateX(3px) rotate(6deg); }
.brand:active .mark path { transform: none; transition-duration: .15s; }
.brand b { font-weight: 700; }
.nav nav { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav nav a { position: relative; transition: color .2s; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav nav a:hover, .nav nav a.on { color: var(--text); }
.nav nav a:hover::after, .nav nav a.on::after { transform: scaleX(1); transform-origin: left; }
.nav-end { display: flex; gap: 10px; }
.nav nav a, .brand span, .pill { white-space: nowrap; }
@media (max-width: 1180px) { .nav nav { gap: 22px; } .nav nav a[href="#about"], .pill.ghost { display: none; } }

/* hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.3fr .9fr; align-items: center; gap: clamp(30px, 5vw, 80px); padding-top: 120px !important; }
/* "New: AI Playground" pill above the eyebrow, links down to the Roar AI section */
.announce { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border: 1px solid var(--line2); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text); background: rgba(255,255,255,.03); transition: border-color .25s, background .25s; }
.announce b { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #0a0a0a; font: 600 11px "Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.announce .t, .announce .by { white-space: nowrap; }
.announce .by { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.announce .by img { height: 13px; width: auto; }
.announce .s-show { display: none; }
.announce > span:last-child { transition: transform .3s var(--ease); }
.announce:hover { border-color: var(--accent); background: rgba(255,98,0,.08); }
.announce:hover > span:last-child { transform: translateX(4px); }
.eyebrow { font: 500 13px/1 "Mono", monospace; color: var(--muted); letter-spacing: .04em; margin-bottom: 30px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.hero h1 em { font-size: 1.08em; letter-spacing: -.01em; }
/* headline motion (site.js): the three things he builds dip light, then snap back bold, one after another; the italic phrase retypes itself */
.hero h1 .w { display: inline-grid; font-weight: inherit; }
.hero h1 .w::after { content: attr(data-t); grid-area: 1 / 1; font-weight: 650; visibility: hidden; white-space: nowrap; }
.hero h1 .w > span { grid-area: 1 / 1; justify-self: center; }
.hero h1 .nw { white-space: nowrap; }
.hero h1 .w.pulse { animation: wpulse 1.1s var(--ease) both; animation-delay: calc(var(--k) * 160ms); }
@keyframes wpulse { 0% { font-weight: 650; } 35% { font-weight: 330; color: var(--muted); } 75% { color: var(--accent2); } 100% { font-weight: 650; color: var(--text); } }
.hero h1 .rot { display: inline-block; white-space: nowrap; }
.caret { display: inline-block; width: .06em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--accent); border-radius: 2px; animation: blink 1s steps(1) infinite; }
.caret.typing { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.mark-sand { width: 44px; height: 44px; margin: -10px -5px -10px -5px; }
.lede { margin-top: 28px; max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-stack { position: relative; aspect-ratio: 1 / 1.02; perspective: 1400px; }
.card-shot { position: absolute; left: 0; top: 24%; width: 92%; border-radius: 14px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
  transform-origin: 50% 120%; transition: transform 1s var(--ease), opacity .8s var(--ease), filter .8s; }
.card-shot::before { content: ""; display: block; height: 22px; background: #1d1d1d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='22'%3E%3Cg fill='%23464646'%3E%3Ccircle cx='12' cy='11' r='4'/%3E%3Ccircle cx='26' cy='11' r='4'/%3E%3Ccircle cx='40' cy='11' r='4'/%3E%3C/g%3E%3C/svg%3E") no-repeat 4px 0; }
.card-shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.card-shot figcaption { position: absolute; left: 14px; bottom: 12px; font: 500 12px "Mono", monospace; background: rgba(10,10,10,.72); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 6px; color: var(--text); }
.card-shot[data-pos="0"] { transform: translate3d(calc(var(--mx,0) * 14px), calc(var(--my,0) * 10px), 60px) rotateY(calc(var(--mx,0) * -6deg)) rotateX(calc(var(--my,0) * 5deg)); z-index: 4; }
.card-shot[data-pos="1"] { transform: translate3d(9%, -13%, 0) rotate(5deg) scale(.92); z-index: 3; filter: brightness(.65); }
.card-shot[data-pos="2"] { transform: translate3d(17%, -25%, -40px) rotate(10deg) scale(.84); z-index: 2; filter: brightness(.42); }
.card-shot[data-pos="3"], .card-shot[data-pos="4"] { transform: translate3d(-10%, 30%, -60px) rotate(-6deg) scale(.8); z-index: 1; opacity: 0; }

/* client strip with a cursor-following preview */
.clients { display: flex; align-items: baseline; gap: 34px; padding-top: 0 !important; padding-bottom: 0 !important; position: relative; }
.clients ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.015em; }
.clients li { cursor: default; color: var(--muted); transition: color .25s; }
.clients li span { font: 500 11px "Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-left: 4px; vertical-align: 3px; }
.clients ul:hover li { color: var(--dim); }
.clients ul li:hover { color: var(--text); }
.peek { position: fixed; left: 0; top: 0; width: 280px; border-radius: 10px; pointer-events: none; z-index: 60; opacity: 0;
  transform: translate3d(var(--px,0), var(--py,0), 0) scale(.85) rotate(-3deg); transition: opacity .25s, transform .5s var(--ease); box-shadow: 0 30px 60px -20px #000; }
.peek.on { opacity: 1; transform: translate3d(var(--px,0), var(--py,0), 0) scale(1) rotate(-2deg); }

@media (max-width: 960px) {
  .nav nav, .pill.ghost { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 130px !important; }
  .hero-stack { max-width: 560px; width: 100%; margin: 10px auto 0; aspect-ratio: 1 / .78; }
  .card-shot { top: 22%; }
  .clients { flex-direction: column; gap: 14px; }
  .announce { font-size: 13px; gap: 8px; } .announce .s-hide { display: none; } .announce .s-show { display: inline; }
  .peek { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-shot, .dot.live { transition: none; animation: none; }
}
/* social icons: hero "Follow along" row and footer */
.follow { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.social-icons { display: flex; gap: 8px; }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); color: var(--muted); transition: color .25s, border-color .25s, background .25s, transform .35s var(--spring); }
.social-icons svg { width: 17px; height: 17px; fill: currentColor; }
.social-icons a:hover { color: #0a0a0a; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
