/* ============ Madeby — brand tokens ============ */
:root {
  --cream: #EEEAE3;
  --paper: #F6F3EE;
  --ink: #111111;
  --night: #0D0D0D;
  --lime: #B5E05A;
  --green: #6FA032;
  --sage: #ABC77A;
  --muted: #6B6862;
  --line: rgba(17, 17, 17, .09);
  --ff: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ar: "Cairo", "Inter Tight", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sec: clamp(96px, 12vw, 170px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--ff); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.kicker { color: var(--muted); margin-bottom: 22px; }
.kicker--lime { color: var(--lime); }

.grain { position: fixed; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; }
.grain::before { content: ""; position: absolute; inset: -50%; width: 200%; height: 200%; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0) } 25% { transform: translate(-2%,1%) } 50% { transform: translate(1%,-2%) } 75% { transform: translate(2%,2%) } }

/* type */
.h2 { font-weight: 300; font-size: clamp(42px, 6vw, 92px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--green); }
.h2--light { color: var(--cream); }
.h2--light em { color: var(--lime); }
.lead { margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 540px; }
.head { margin-bottom: clamp(48px, 7vw, 90px); }
.head--center { text-align: center; }
.head--center .h2 { margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .5s var(--ease), background .3s, box-shadow .5s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: 0 12px 30px -14px rgba(17,17,17,.6); }
.btn--ghost { border: 1px solid rgba(17,17,17,.2); }
.btn--ghost:hover { background: rgba(17,17,17,.05); }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 18px 50px -18px rgba(181,224,90,.8); }
.btn--lime:hover { box-shadow: 0 22px 60px -14px rgba(181,224,90,.95); }
.btn--xl { height: 64px; padding: 0 30px; font-size: 17px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(181,224,90,.7); animation: dot 2s infinite; }
@keyframes dot { 70% { box-shadow: 0 0 0 8px rgba(181,224,90,0) } 100% { box-shadow: 0 0 0 0 rgba(181,224,90,0) } }
.arr { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateY(3px); }

/* nav */
.nav { position: fixed; z-index: 800; top: 14px; left: 0; right: 0; margin: 0 auto; width: min(1180px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 22px;
  border-radius: 999px; background: rgba(246,243,238,.72); border: 1px solid rgba(17,17,17,.07);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  transition: transform .6s var(--ease), box-shadow .4s; }
.nav.is-hidden { transform: translateY(-140%); }
.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(17,17,17,.35); }
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: none; gap: 30px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--muted); transition: color .3s; }
.nav__links a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; padding: 120px 0 0; overflow: hidden; display: flex; flex-direction: column; }
.hero__grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 85%); }
.hero__codebg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0 4vw; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.hero__codebg pre { margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.9; color: rgba(17,17,17,.07); white-space: pre; overflow: hidden; animation: codeup 60s linear infinite; }
.hero__codebg pre:nth-child(2) { animation-duration: 75s; animation-delay: -20s; }
.hero__codebg pre:nth-child(3) { animation-duration: 68s; animation-delay: -40s; }
@keyframes codeup { from { transform: translateY(0) } to { transform: translateY(-50%) } }
.hero__glow { position: absolute; width: 900px; height: 900px; right: -200px; top: -120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(181,224,90,.38), rgba(181,224,90,0) 62%); filter: blur(10px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12) translate(-30px, 30px); } }

.hero__inner { position: relative; z-index: 2; flex: 1; width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; gap: 48px; align-items: center; padding-bottom: 56px; }
.hero__title { font-weight: 300; font-size: clamp(54px, 6vw, 104px); line-height: .93; letter-spacing: -.045em; }
.hero__title .line { display: block; }
.hl { position: relative; color: var(--ink); font-weight: 400; white-space: nowrap; }
.hl::before { content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .08em; height: .42em; z-index: -1; background: var(--lime); border-radius: 4px; transform-origin: 0 50%; transform: scaleX(var(--hl, 1)); }
.hero__ar { text-align: left; margin-top: 22px; font-family: var(--ar); font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; color: var(--green); }
.hero__sub { margin-top: 12px; max-width: 470px; color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: minmax(340px, .85fr) 1.25fr; gap: 32px; } }

/* studio workspace */
.studio { position: relative; perspective: 1600px; }
.studio__tilt { position: relative; transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease); padding: 0 0 70px 0; }
.browser { position: relative; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(17,17,17,.45), 0 0 0 1px rgba(17,17,17,.08); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #F2EFEA; border-bottom: 1px solid rgba(17,17,17,.06); }
.browser__bar > i { width: 11px; height: 11px; border-radius: 50%; background: #E2DED7; }
.browser__bar > i:nth-child(1) { background: #FF6159; } .browser__bar > i:nth-child(2) { background: #FFBE2F; } .browser__bar > i:nth-child(3) { background: #2ACA44; }
.browser__url { flex: 1; max-width: 340px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; border-radius: 8px; background: #fff; font-size: 12px; color: #555; font-family: var(--mono); }
.lock { width: 8px; height: 9px; border-radius: 2px; background: #9a9a9a; position: relative; }
.lock::before { content: ""; position: absolute; left: 1px; top: -4px; width: 6px; height: 6px; border: 1.5px solid #9a9a9a; border-bottom: 0; border-radius: 4px 4px 0 0; }
.browser__live { font-family: var(--mono); font-size: 11px; color: #c08a00; white-space: nowrap; }
.browser__live.is-live { color: var(--green); }
.browser__screen { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; background: #fff; }
.browser__site { position: absolute; left: 0; top: 0; width: 1280px; transform-origin: 0 0; transform: scale(var(--s, .5)); }
.editor { position: absolute; left: 5%; bottom: 0; width: min(440px, 62%); border-radius: 14px; background: var(--night); color: #d6d6d6; overflow: hidden; transform: translateZ(60px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.editor__bar { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; background: #161616; border-bottom: 1px solid #222; font-family: var(--mono); font-size: 11px; }
.editor__tab { padding: 5px 10px; border-radius: 6px; color: #777; }
.editor__tab.on { color: #eee; background: #222; }
.editor__status { margin-left: auto; padding-right: 6px; color: var(--lime); }
.editor__code { margin: 0; height: 168px; padding: 14px 16px; font-family: var(--mono); font-size: 12px; line-height: 1.75; white-space: pre; overflow: hidden; counter-reset: ln; }
.editor__code .ln { display: block; }
.editor__code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 22px; margin-right: 12px; color: #444; text-align: right; }
.tk-tag { color: #8EC5FF; } .tk-attr { color: var(--lime); } .tk-str { color: #F2C57C; } .tk-kw { color: #FF8BD0; } .tk-com { color: #6a6a6a; }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.editor__progress { height: 3px; background: #1e1e1e; }
.editor__progress span { display: block; height: 100%; width: 0; background: var(--lime); transition: width .4s var(--ease); }

/* build reveal states inside the hero browser */
.is-building [data-b] { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease); }
.is-building [data-b].in { opacity: 1; transform: none; filter: none; }
.is-building [data-b].flash { box-shadow: 0 0 0 3px var(--lime); }
.mcursor { position: absolute; left: 0; top: 0; z-index: 5; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; transition: transform 1s var(--ease), opacity .4s; }
.mcursor svg { width: 18px; height: 18px; fill: var(--ink); stroke: #fff; stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.mcursor span { margin-top: 14px; padding: 3px 8px; border-radius: 6px; background: var(--lime); color: var(--ink); font: 600 11px var(--ff); }

/* ticker */
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.ticker__track { display: flex; width: max-content; gap: 34px; padding: 18px 0; animation: tick 38s linear infinite; font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.ticker__track b { color: var(--green); font-weight: 400; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ WORK ============ */
.work { padding: var(--sec) 0 0; }
.stack { position: relative; }
.case { position: sticky; top: 90px; padding: 0 var(--gutter) 40px; }
.case__card { width: min(1280px, 100%); margin: 0 auto; border-radius: 28px; padding: clamp(14px, 1.6vw, 22px); background: var(--paper); border: 1px solid rgba(17,17,17,.07);
  box-shadow: 0 -20px 60px -40px rgba(17,17,17,.4); display: grid; gap: clamp(16px, 2vw, 28px); transform-origin: 50% 0; will-change: transform; }
.case__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 6px 8px 0; }
.case__name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.case__name h3 { font-weight: 400; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; line-height: 1; }
.case__name small { color: var(--muted); font-size: 14px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case__tags span { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1px solid var(--line); background: #fff; }
.case__tags .tag-concept { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.case__sw { display: inline-flex; gap: 4px; margin-right: 6px; }
.case__sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.case__screen { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(17,17,17,.08); cursor: pointer; }
.case__screen .browser__screen { aspect-ratio: 16 / 9; }
.case__screen .browser__site { transition: transform 6s cubic-bezier(.45, 0, .25, 1); }
.case__open { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 600; transform: translateY(8px); opacity: 0; transition: opacity .4s, transform .5s var(--ease); }
.case__screen:hover .case__open, .case__screen:focus-visible .case__open { opacity: 1; transform: none; }
.case__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 0 8px 6px; color: var(--muted); font-size: 14px; }
.case__foot b { color: var(--ink); font-weight: 600; }
@media (hover: none) { .case__open { opacity: 1; transform: none; } }

/* ============ PROCESS ============ */
.process { padding: var(--sec) 0; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; overflow: hidden; padding: 28px 26px 30px; border-radius: 24px; background: var(--paper); border: 1px solid rgba(17,17,17,.07); min-height: 250px; display: flex; flex-direction: column; transition: background .5s, color .5s, transform .6s var(--ease); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--green); }
.step h3 { margin-top: auto; font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -.03em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; transition: color .5s; }
.step__ic { position: absolute; right: 22px; top: 18px; font-style: normal; font-size: 30px; color: rgba(17,17,17,.15); transition: color .5s, transform .8s var(--ease); }
.step:hover { background: var(--ink); color: var(--cream); transform: translateY(-6px); }
.step:hover p { color: #a8a39b; }
.step:hover .step__ic { color: var(--lime); transform: rotate(-12deg) scale(1.2); }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } .step { min-height: 320px; } }

/* ============ PERSPECTIVE ============ */
.persp { padding: var(--sec) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.persp::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 88px 88px; opacity: .7; }
.persp .wrap { z-index: 1; }
.persp__grid { display: grid; gap: 40px; align-items: end; text-align: center; }
.persp__col { display: grid; justify-items: center; gap: 6px; }
.persp__lbl { margin-top: 26px; font-size: clamp(15px, 1.3vw, 19px); text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
.persp__big { margin-top: 10px; font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.03em; }
.persp__op { color: var(--muted); font-size: 18px; }
.persp__res { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(17,17,17,.15); font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.03em; }
.mark { background: linear-gradient(transparent 55%, var(--lime) 55%, var(--lime) 92%, transparent 92%); padding: 0 .1em; }
.persp__vs { font-size: 28px; font-weight: 300; color: var(--muted); align-self: center; }
.persp__end { margin-top: 64px; text-align: center; font-size: clamp(20px, 2vw, 28px); font-weight: 300; letter-spacing: -.02em; }
@media (min-width: 900px) { .persp__grid { grid-template-columns: 1fr auto 1fr; } }

.laptop { width: min(440px, 88%); filter: drop-shadow(0 40px 40px rgba(17,17,17,.25)); transform: rotate(-4deg); }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; background: #111; padding: 10px 10px 0; overflow: hidden; }
.laptop__site { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4px 4px 0 0; background: #fff; }
.laptop__site .browser__site { transition: transform 5s cubic-bezier(.45, 0, .25, 1); }
.laptop__base { height: 16px; margin: 0 -7%; border-radius: 0 0 16px 16px; background: linear-gradient(#d9d6d0, #a9a6a0); }
.matcha { position: relative; width: 170px; height: 260px; }
.matcha__glass { position: absolute; inset: 0 14px 10px; border-radius: 10px 10px 30px 30px; overflow: hidden; background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), inset 8px 0 18px rgba(255,255,255,.6); transform: perspective(400px) rotateX(4deg); }
.matcha__green { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(#cfe39f, #8fbf4d 60%, #6f9e32); animation: swirl 6s ease-in-out infinite; }
.matcha__milk { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 1; background: linear-gradient(rgba(245,247,236,.0), rgba(245,247,236,.95)); }
@keyframes swirl { 50% { height: 66%; filter: hue-rotate(-6deg); } }
.ice { position: absolute; z-index: 2; width: 46px; height: 42px; border-radius: 8px; background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); animation: bob 5s ease-in-out infinite; }
.ice.a { left: 14px; top: 34%; } .ice.b { right: 16px; top: 28%; animation-delay: -1.6s; } .ice.c { left: 46px; top: 50%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(6deg); } }
.matcha__shadow { position: absolute; left: 20%; right: 20%; bottom: -8px; height: 18px; border-radius: 50%; background: rgba(17,17,17,.18); filter: blur(8px); }

/* ============ START (globe) ============ */
.start { position: relative; background: var(--night); color: var(--cream); padding: var(--sec) 0; overflow: hidden; }
.start__stars { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 30%, #fff, transparent), radial-gradient(1px 1px at 85% 70%, #fff, transparent), radial-gradient(1px 1px at 50% 50%, #fff, transparent), radial-gradient(1px 1px at 20% 60%, #fff, transparent), radial-gradient(1.2px 1.2px at 92% 12%, #fff, transparent), radial-gradient(1px 1px at 62% 88%, #fff, transparent);
  background-size: 420px 420px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35 } to { opacity: .8 } }
.start__grid { display: grid; gap: 30px; align-items: center; }
.globe { position: relative; aspect-ratio: 1; width: min(640px, 100%); margin: 0 auto; }
.globe__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe__canvas:active { cursor: grabbing; }
.globe__fallback { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #26301a, #0f120c 65%); box-shadow: 0 0 90px rgba(181,224,90,.35); }
.globe.gl-ok .globe__fallback { display: none; }
.globe__hint { position: absolute; left: 50%; bottom: 2%; translate: -50% 0; color: #777; }
.start__panel { position: relative; z-index: 2; }
.builder { display: grid; gap: 26px; margin-top: 34px; }
.builder legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 500; font-size: 15px; color: #cfcac2; }
.builder legend span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1d1d1d; color: var(--lime); font: 500 12px var(--mono); }
.builder legend small { color: #77736c; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #2a2a2a; background: #151515; color: #e9e5de; font-size: 14px; font-weight: 500; transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease); }
.chip:hover { border-color: #444; transform: translateY(-2px); }
.chip.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.field { width: 100%; max-width: 420px; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid #2a2a2a; background: #151515; color: var(--cream); font: 500 16px var(--ff); }
.field::placeholder { color: #66625c; }
.field:focus { outline: none; border-color: var(--lime); }
.builder .btn--lime { justify-self: start; margin-top: 4px; }
.builder__note { color: #8a857d; }
@media (min-width: 1000px) { .start__grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }

/* footer */
.foot { position: relative; background: var(--night); color: #a8a39b; padding: 40px 0 0; overflow: hidden; border-top: 1px solid #1d1d1d; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.foot__row--sm { color: #6d6962; border-top: 1px solid #1d1d1d; }
.foot__logo { height: 28px; width: auto; filter: invert(1) brightness(.95) sepia(.1); }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 500; color: var(--cream); }
.foot__links a:hover { color: var(--lime); }
.foot__mark { font-weight: 700; font-size: clamp(90px, 24vw, 380px); line-height: .78; letter-spacing: -.06em; color: #151515; text-align: center; margin-top: 20px; user-select: none; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 3vh 3vw; }
.modal[hidden] { display: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(13,13,13,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal__win { position: relative; width: min(1280px, 100%); height: min(860px, 94vh); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: 0 60px 120px -30px rgba(0,0,0,.6); }
.modal__x { width: 30px; height: 30px; border-radius: 8px; background: #fff; font-size: 13px; }
.modal__screen { position: relative; flex: 1; overflow: auto; overscroll-behavior: contain; }
.modal__screen .browser__site { position: relative; }
.modal__fit { position: relative; }

/* reveal */
html.js [data-rv] { opacity: 0; transform: translateY(18px); }

/* ============================================================
   MINI SITES (designed at 1280px wide)
   ============================================================ */
.ms { width: 1280px; overflow: hidden; }

/* ---- Bayt al Qahwa ---- */
.ms-coffee { background: #F3E9DC; color: #2B1A12; font-family: "Fraunces", Georgia, serif; }
.c-nav { display: flex; align-items: center; justify-content: space-between; padding: 30px 70px; font-family: "Inter Tight", sans-serif; font-size: 15px; }
.c-nav b { font-family: "Fraunces", serif; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.c-nav i { font-style: normal; padding: 12px 22px; border-radius: 999px; background: #2B1A12; color: #F3E9DC; font-weight: 600; }
.c-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 40px 70px 80px; min-height: 560px; }
.c-kicker { font-family: "Inter Tight", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: #C2562F; font-weight: 600; }
.c-hero h1 { margin-top: 22px; font-size: 104px; line-height: .92; font-weight: 400; letter-spacing: -.035em; }
.c-hero h1 em { color: #C2562F; }
.c-sub { margin-top: 26px; font-family: "Inter Tight", sans-serif; font-size: 19px; line-height: 1.55; max-width: 440px; color: #6a4b3a; }
.c-ctas { display: flex; align-items: center; gap: 24px; margin-top: 34px; font-family: "Inter Tight", sans-serif; font-weight: 600; }
.c-btn { padding: 18px 30px; border-radius: 999px; background: #C2562F; color: #fff; }
.c-art { position: relative; height: 460px; }
.c-sun { position: absolute; inset: 10px 30px 40px 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #E9A378, #C2562F 70%); }
.c-cup { position: absolute; left: 50%; bottom: 40px; width: 280px; height: 230px; translate: -50% 0; }
.c-saucer { position: absolute; left: -40px; right: -40px; bottom: 0; height: 40px; border-radius: 50%; background: #F7EFE4; box-shadow: 0 16px 30px rgba(43,26,18,.3); }
.c-body { position: absolute; left: 20px; right: 20px; bottom: 22px; height: 150px; border-radius: 0 0 110px 110px; background: #F7EFE4; box-shadow: inset -20px -10px 30px rgba(43,26,18,.12); }
.c-rim { position: absolute; left: 20px; right: 20px; bottom: 150px; height: 46px; border-radius: 50%; background: #F7EFE4; z-index: 2; }
.c-rim::after { content: ""; position: absolute; inset: 7px 12px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #a0623a, #3b2015 70%); }
.c-handle { position: absolute; right: -24px; bottom: 76px; width: 70px; height: 70px; border-radius: 50%; border: 16px solid #F7EFE4; }
.c-steam { position: absolute; bottom: 196px; width: 12px; height: 90px; border-radius: 12px; background: linear-gradient(transparent, rgba(255,255,255,.7)); filter: blur(4px); animation: steam 3s ease-in-out infinite; z-index: 3; }
.c-steam:nth-child(1) { left: 90px; } .c-steam:nth-child(2) { left: 134px; animation-delay: -1s; height: 110px; } .c-steam:nth-child(3) { left: 176px; animation-delay: -2s; }
@keyframes steam { 0% { transform: translateY(20px) scaleY(.6); opacity: 0 } 40% { opacity: 1 } 100% { transform: translateY(-40px) scaleY(1.1) skewX(10deg); opacity: 0 } }
.c-badge { position: absolute; right: 10px; top: 30px; width: 120px; height: 120px; border-radius: 50%; background: #2B1A12; color: #F3E9DC; display: grid; place-items: center; text-align: center; font: 600 12px/1.3 "Inter Tight", sans-serif; text-transform: uppercase; letter-spacing: .08em; transform: rotate(12deg); }
.c-badge b { font: 600 22px "Fraunces", serif; letter-spacing: 0; }
.c-menu { padding: 70px; background: #EADBC7; }
.c-menu h2 { font-size: 52px; font-weight: 400; letter-spacing: -.02em; }
.c-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.c-cards article { padding: 26px; border-radius: 22px; background: #F7EFE4; }
.c-cards span { display: block; width: 60px; height: 60px; border-radius: 50%; }
.c-cards h3 { margin-top: 26px; font-size: 28px; font-weight: 400; }
.c-cards p { margin-top: 6px; font: 15px "Inter Tight", sans-serif; color: #6a4b3a; }
.c-cards b { display: inline-block; margin-top: 18px; font: 700 15px "Inter Tight", sans-serif; color: #C2562F; }
.c-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 90px 70px; }
.c-story > p { font-size: 46px; line-height: 1.08; font-style: italic; letter-spacing: -.02em; }
.c-map { position: relative; height: 230px; border-radius: 22px; background: repeating-linear-gradient(35deg, #e3d3be 0 2px, transparent 2px 26px), repeating-linear-gradient(-55deg, #e3d3be 0 2px, transparent 2px 40px), #EFE2D0; display: flex; align-items: flex-end; padding: 22px; font: 15px/1.5 "Inter Tight", sans-serif; }
.c-map i { position: absolute; left: 46%; top: 30%; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: #C2562F; transform: rotate(-45deg); box-shadow: 0 0 0 10px rgba(194,86,47,.2); }
.c-foot { display: flex; justify-content: space-between; padding: 30px 70px; background: #2B1A12; color: #F3E9DC; font: 15px "Inter Tight", sans-serif; }
.c-foot b { font: 600 20px "Fraunces", serif; }

/* ---- Noor Dental ---- */
.ms-dental { background: #F5F8FF; color: #0E1B3D; font-family: "Plus Jakarta Sans", "Inter Tight", sans-serif; }
.d-nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 70px; font-size: 15px; font-weight: 500; color: #4a5576; background: #fff; }
.d-nav b { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; color: #0E1B3D; letter-spacing: -.03em; }
.d-nav b span { color: #2F6BFF; }
.d-logo { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #2F6BFF, #7AA2FF); position: relative; }
.d-logo::after { content: ""; position: absolute; inset: 8px; border-radius: 50% 50% 40% 40%; background: #fff; }
.d-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 14px; background: #2F6BFF; color: #fff; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(47,107,255,.7); }
.d-btn.sm { padding: 12px 20px; }
.d-btn.wide { width: 100%; margin-top: 22px; padding: 18px; }
.d-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: 60px 70px 70px; background: radial-gradient(circle at 80% 20%, #E3ECFF, transparent 50%), #fff; }
.d-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #E9FBF5; color: #0F8A6A; font-weight: 700; font-size: 14px; }
.d-pill i { width: 8px; height: 8px; border-radius: 50%; background: #19B394; }
.d-hero h1 { margin-top: 24px; font-size: 92px; line-height: .98; font-weight: 800; letter-spacing: -.045em; }
.d-sub { margin-top: 24px; font-size: 19px; line-height: 1.55; color: #4a5576; max-width: 470px; }
.d-rating { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.d-rating b { font-size: 34px; font-weight: 800; }
.d-rating span { color: #FFB020; font-size: 20px; letter-spacing: 2px; }
.d-rating small { color: #6a7596; font-size: 14px; }
.d-book { padding: 30px; border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -30px rgba(14,27,61,.25), 0 0 0 1px #E6ECF8; }
.d-book h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.d-lbl { margin: 20px 0 10px; font-size: 13px; font-weight: 700; color: #6a7596; text-transform: uppercase; letter-spacing: .06em; }
.d-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.d-days span { display: grid; gap: 2px; padding: 12px 0; border-radius: 14px; border: 1px solid #E6ECF8; text-align: center; font-size: 13px; color: #6a7596; }
.d-days b { font-size: 20px; color: #0E1B3D; }
.d-days .on { background: #0E1B3D; border-color: #0E1B3D; color: #9fb0d8; }
.d-days .on b { color: #fff; }
.d-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-times span { padding: 12px 0; border-radius: 12px; background: #F2F5FC; text-align: center; font-weight: 700; font-size: 15px; }
.d-times .on { background: #2F6BFF; color: #fff; }
.d-times .off { opacity: .35; text-decoration: line-through; }
.d-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 60px 70px; }
.d-services article { padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px #E6ECF8; }
.d-services i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #EAF0FF; color: #2F6BFF; font-style: normal; font-size: 22px; }
.d-services h3 { margin-top: 30px; font-size: 22px; font-weight: 800; }
.d-services p { margin-top: 6px; color: #6a7596; font-size: 15px; }
.d-docs { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 18px; align-items: center; padding: 30px 70px 80px; }
.d-docs h2 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.d-docs div { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #E6ECF8; }
.d-docs div > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; }
.d-docs p { display: grid; font-size: 13px; color: #6a7596; }
.d-docs p b { font-size: 15px; color: #0E1B3D; }

/* ---- Raml Drive ---- */
.ms-cars { background: #0A0A0A; color: #E9E4DA; font-family: "Inter Tight", sans-serif; }
.r-nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 28px 60px; font-size: 13px; letter-spacing: .14em; color: #9b968c; }
.r-nav b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .04em; color: #fff; }
.r-nav b span { color: #FF4D1F; }
.r-btn { padding: 12px 20px; border: 1px solid #FF4D1F; color: #fff; letter-spacing: .14em; }
.r-hero { position: relative; height: 640px; padding: 30px 60px; overflow: hidden; }
.r-sky { position: absolute; inset: 0; background: linear-gradient(#0A0A0A 10%, #2a120a 60%, #5a2410 85%); }
.r-sun { position: absolute; left: 60%; top: 220px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, #FFB36B, #FF4D1F 60%, transparent 72%); filter: blur(2px); }
.r-dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 300px; }
.r-car { position: absolute; right: 70px; bottom: 34px; width: 620px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.r-hero h1 { position: relative; z-index: 2; font-family: "Anton", sans-serif; font-weight: 400; font-size: 168px; line-height: .86; letter-spacing: .005em; color: #fff; }
.r-hero h1 em { font-style: normal; color: #FF4D1F; }
.r-sub { position: relative; z-index: 2; margin-top: 22px; max-width: 420px; font-size: 18px; color: #c9c3b8; }
.r-specs { position: absolute; z-index: 2; left: 60px; bottom: 40px; display: flex; gap: 34px; }
.r-specs span { display: grid; font-size: 12px; letter-spacing: .14em; color: #9b968c; text-transform: uppercase; }
.r-specs b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 30px; letter-spacing: .02em; color: #fff; }
.r-fleet { display: grid; grid-template-columns: 1fr repeat(3, 1.2fr); gap: 2px; padding: 70px 60px; }
.r-fleet h2 { font-family: "Anton", sans-serif; font-weight: 400; font-size: 64px; line-height: .9; }
.r-fleet article { padding: 26px; background: #141414; border-top: 2px solid #FF4D1F; min-height: 200px; display: flex; flex-direction: column; }
.r-fleet small { font-size: 12px; letter-spacing: .14em; color: #9b968c; }
.r-fleet h3 { margin-top: 16px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.r-fleet article > b { margin-top: auto; font-family: "Anton", sans-serif; font-weight: 400; font-size: 32px; color: #FF4D1F; }
.r-fleet b span { font-family: "Inter Tight", sans-serif; font-size: 14px; color: #9b968c; }
.r-foot { display: flex; justify-content: space-between; padding: 30px 60px; border-top: 1px solid #222; font-size: 13px; letter-spacing: .14em; color: #9b968c; }
.r-foot b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 22px; color: #fff; letter-spacing: .04em; }

/* ============ responsive ============ */
@media (max-width: 899px) {
  .hero { padding-top: 104px; }
  .studio__tilt { transform: none; padding-bottom: 90px; }
  .editor { left: 4%; width: 78%; }
}
@media (max-width: 640px) {
  .nav { top: 10px; padding: 8px 8px 8px 16px; }
  .nav__logo img { height: 20px; }
  .hero__title { font-size: clamp(46px, 13.5vw, 64px); }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .editor { left: 3%; width: 94%; }
  .editor__code { height: 132px; font-size: 11px; }
  .case { top: 74px; padding-bottom: 24px; }
  .case__card { border-radius: 22px; }
  .case__screen .browser__screen { aspect-ratio: 4 / 3.4; }
  .persp__vs { font-size: 22px; }
  .builder .btn--lime { width: 100%; justify-content: center; }
  .btn--xl { height: 60px; font-size: 16px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-rv] { opacity: 1; transform: none; filter: none; }
}
.chip { display: inline-flex; align-items: center; gap: 8px; }
.flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
@media (max-width: 899px) {
  .studio__tilt { padding-bottom: 0; }
  .editor { position: relative; left: auto; bottom: auto; width: 92%; margin: -28px auto 0; transform: none; }
}
@media (max-width: 640px) { .editor { width: 94%; margin-top: -22px; } }
/* stacked cards dim with an overlay (never transparent, so nothing shows through) */
.case__card { position: relative; --dim: 0; }
.case__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(238, 234, 227, var(--dim)); pointer-events: none; z-index: 5; }
@media (max-width: 640px) {
  .case__tags span:not(.tag-concept):not(:first-child) { display: none; }
  .case__name small { font-size: 13px; }
}

/* laptop/tablet landscape: keep the live editor on screen beside the copy */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero__title { font-size: clamp(48px, 5.6vw, 72px); }
  .hero__sub { font-size: 15.5px; }
  .editor { left: 2%; width: 72%; }
  .editor__code { height: 150px; font-size: 11px; }
}
@media (min-width: 900px) and (max-height: 760px) { .hero { padding-top: 96px; } .hero__inner { padding-bottom: 32px; } }
.hero__price { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero__price b { color: var(--ink); background: linear-gradient(transparent 55%, var(--lime) 55%, var(--lime) 92%, transparent 92%); padding: 0 .15em; margin-right: 4px; }
.persp__incl { margin: 14px auto 0; max-width: 560px; text-align: center; color: var(--muted); font-size: 15px; }
.builder__price { color: #cfcac2; font-size: 14px; }
.builder__price b { color: var(--lime); }

/* ---- brand lockups inside the mini sites ---- */
.lg-mark { width: 44px; height: 44px; flex: none; }
.c-brand, .d-brand, .r-brand { display: flex; align-items: center; gap: 12px; }
.c-brand span { display: grid; line-height: 1; }
.c-brand small { margin-top: 5px; font: 600 13px "Cairo", sans-serif; color: #C2562F; text-align: left; }
.c-foot .lg-mark { width: 34px; height: 34px; }
.d-brand .lg-mark { width: 38px; height: 38px; }
.d-brand span { display: flex; align-items: baseline; gap: 6px; }
.d-brand em { font-style: normal; font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #2F6BFF; }
.d-brand small { margin-left: 4px; padding: 3px 8px; border-radius: 8px; background: #EAF0FF; color: #2F6BFF; font: 600 14px "Cairo", sans-serif; }
.r-brand .lg-mark { width: 36px; height: 36px; }
.r-brand i { font-style: normal; color: #FF4D1F; }
.r-brand small { font: 600 15px "Cairo", sans-serif; color: #FF4D1F; letter-spacing: 0; }
.r-foot .lg-mark { width: 28px; height: 28px; }

/* ---- identity strip on showcase cards ---- */
.case__name { align-items: center; }
.case__logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.case__logo .lg-mark { width: 36px; height: 36px; }
.case__id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 0 8px 6px; color: var(--muted); font-size: 13.5px; }
.case__id .ar { font: 600 16px var(--ar); color: var(--ink); }
.case__pal { display: flex; gap: 12px; flex-wrap: wrap; }
.case__pal span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; }
.case__pal i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.case__id .sep { flex: 1; }
@media (max-width: 640px) { .case__pal span b { display: none; } .case__id .sep { display: none; } .case__logo { width: 44px; height: 44px; } .case__logo .lg-mark { width: 30px; height: 30px; } }
