/* MohamedStudios — design tokens */
:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --ink: #15140f;
  --ink-2: #3b3932;
  --muted: #77736a;
  --line: #d6cfbf;
  --signal: #ff4b1f;
  --signal-ink: #ffffff;
  --night: #121210;
  --night-2: #1c1c19;
  --night-line: #2e2d29;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--signal-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; }
em.serif, .serif em { font-style: italic; }

/* Grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  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'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn--signal:hover { background: var(--ink); border-color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--signal); border-color: var(--signal); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.logo__mark { width: 26px; height: 26px; position: relative; background: var(--ink); border-radius: 6px; overflow: hidden; }
.logo__mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--signal); }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav__links a:not(.btn):hover { color: var(--signal); }
.nav__links .btn { padding: 10px 18px; color: var(--paper); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s; }

/* Hero */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255,75,31,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,75,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,75,31,0); } }
.hero h1 {
  font-family: var(--sans); font-weight: 500; letter-spacing: -.045em; line-height: .95;
  font-size: clamp(46px, 6.3vw, 92px); margin: 22px 0 26px;
}
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.02em; color: var(--signal); }
.hero__lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.clock { margin-top: 44px; display: flex; gap: 22px 26px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.clock__item b { display: block; font: 500 26px/1 var(--mono); letter-spacing: -.03em; }
.clock__item span { color: var(--muted); }

/* Hero deck of live pages */
.deck { position: relative; height: 560px; perspective: 1600px; }
.deck__card {
  position: absolute; width: 78%; aspect-ratio: 10 / 12.5; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(21,20,15,.35), 0 2px 0 rgba(255,255,255,.6) inset;
  transition: transform .9s var(--ease), opacity .6s, z-index 0s .3s;
  text-decoration: none;
}
.deck__card:nth-child(1) { left: 0; top: 30px; transform: rotate(-7deg); }
.deck__card:nth-child(2) { left: 12%; top: 10px; transform: rotate(-1deg); }
.deck__card:nth-child(3) { left: 22%; top: 40px; transform: rotate(6deg); }
.deck:hover .deck__card:nth-child(1) { transform: rotate(-11deg) translateX(-20px); }
.deck:hover .deck__card:nth-child(3) { transform: rotate(10deg) translateX(30px); }
.deck__label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: var(--ink); color: var(--paper); padding: 6px 10px; border-radius: 6px;
}

/* Scaled live iframe preview */
.preview { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.preview__bar { position: absolute; inset: 0 0 auto 0; height: 26px; background: #f2f0eb; border-bottom: 1px solid #e3ded3; display: flex; align-items: center; gap: 5px; padding: 0 10px; z-index: 1; }
.preview__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4cec2; }
.preview iframe {
  position: absolute; top: 26px; left: 0; border: 0; pointer-events: none;
  width: 1280px; max-width: none; height: 1600px; transform-origin: 0 0;
}

/* Marquee */
.marquee { border-block: 1px solid var(--ink); background: var(--ink); color: var(--paper); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: 30px; font-style: italic; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✳"; font-style: normal; color: var(--signal); font-size: 20px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section__head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 56px; }
.section__head .mono { color: var(--muted); padding-top: 12px; }
.section__head h2 { font-weight: 500; letter-spacing: -.035em; line-height: 1; font-size: clamp(36px, 5vw, 68px); margin: 0; max-width: 900px; }
.section__head h2 .serif { color: var(--signal); }
.section__head p { color: var(--ink-2); max-width: 560px; margin: 18px 0 0; }

/* Work */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.work__item { grid-column: span 6; text-decoration: none; display: block; }
.work__item:nth-child(1), .work__item:nth-child(4) { grid-column: span 7; }
.work__item:nth-child(2), .work__item:nth-child(3) { grid-column: span 5; }
.work__frame { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), box-shadow .5s; }
.work__item:hover .work__frame { transform: translateY(-6px); box-shadow: 0 30px 50px -25px rgba(21,20,15,.4); }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 2px 0; gap: 12px; }
.work__meta h3 { margin: 0; font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.work__meta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.work__meta .mono { color: var(--muted); white-space: nowrap; }
.work__open { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: var(--signal); color: #fff; padding: 8px 12px; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: .35s var(--ease); }
.work__item:hover .work__open { opacity: 1; transform: none; }

/* Founder */
.founder__grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.founder__card { margin: 0; background: var(--ink); color: var(--paper); border-radius: 22px; padding: 18px; position: sticky; top: 92px; }
.founder__portrait {
  aspect-ratio: 4 / 5; border-radius: 14px; display: grid; place-items: center; overflow: hidden; position: relative;
  background: radial-gradient(circle at 30% 25%, #3a372f, var(--night) 70%);
}
.founder__portrait::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 28px); }
.founder__portrait .logo__mark { width: 96px; height: 96px; border-radius: 22px; background: var(--paper); }
.founder__portrait .logo__mark::after { height: 6px; margin-top: -3px; }
.founder__card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 14px; }
.founder__card figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 4px 14px; border-bottom: 1px solid var(--night-line); }
.founder__card figcaption .mono { color: var(--signal); }
.founder__card figcaption strong { font-weight: 500; }
.founder__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 4px 4px; }
.founder__stats b { display: block; font: 500 34px/1 var(--mono); letter-spacing: -.04em; margin-bottom: 6px; }
.founder__stats .mono { color: #8b877c; font-size: 11px; }
.founder__hi { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 30px; color: var(--ink); }
.founder__text > p:not(.founder__hi) { color: var(--ink-2); font-size: 18px; max-width: 640px; }
.founder__text strong { font-weight: 600; color: var(--ink); box-shadow: inset 0 -.38em 0 rgba(255,75,31,.22); }
.founder__skills { list-style: none; padding: 0; margin: 36px 0 28px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.founder__skills li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; letter-spacing: -.01em; display: flex; gap: 14px; align-items: baseline; }
.founder__skills li:nth-child(odd) { padding-right: 16px; }
.founder__skills .mono { color: var(--signal); }
.founder__who { color: var(--muted); }

/* Process (dark) */
.dark { background: var(--night); color: #ece8de; }
.dark .section__head .mono { color: #8b877c; }
.dark .section__head p { color: #b5b0a4; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.step { padding: 28px 24px 8px 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--night-line); }
.step__hour { font: 500 44px/1 var(--mono); letter-spacing: -.04em; color: var(--signal); }
.step h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 18px 0 10px; }
.step p { color: #b5b0a4; font-size: 15.5px; margin: 0 0 18px; }
.step ul { list-style: none; padding: 0; margin: 0; }
.step li { font: 13px/1.4 var(--mono); color: #8b877c; padding: 7px 0; border-top: 1px dashed var(--night-line); }
.progress { height: 2px; background: var(--night-line); margin-top: 48px; position: relative; overflow: hidden; }
.progress::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }

/* Included */
.included { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.inc { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.inc:hover { background: var(--paper-2); }
.inc .mono { color: var(--signal); }
.inc h3 { font-weight: 500; font-size: 21px; letter-spacing: -.02em; margin: 14px 0 8px; }
.inc p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; background: #f7f4ed; position: relative; }
.plan--hot { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-12px); }
.plan__tag { position: absolute; top: -12px; right: 24px; background: var(--signal); color: #fff; padding: 6px 10px; border-radius: 6px; }
.plan h3 { font-weight: 500; font-size: 24px; margin: 0; letter-spacing: -.02em; }
.plan__sub { color: var(--muted); font-size: 15px; margin: 6px 0 24px; }
.plan--hot .plan__sub { color: #a7a397; }
.plan__price { font: 500 54px/1 var(--sans); letter-spacing: -.05em; }
.plan__price small { font-size: 16px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.plan__eta { margin: 10px 0 26px; color: var(--signal); }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; flex: 1; }
.plan li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); font-size: 15.5px; position: relative; }
.plan--hot li { border-color: #2f2e29; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }
.plan .btn { justify-content: center; }
.plan--hot .btn { border-color: var(--paper); color: var(--paper); }
.plan--hot .btn--signal { border-color: var(--signal); }
.pricing__note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(18px, 2vw, 23px); letter-spacing: -.015em; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--mono); color: var(--signal); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--ink-2); max-width: 760px; }

/* Brief form */
.brief { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.brief__intro h2 { font-weight: 500; letter-spacing: -.04em; line-height: .98; font-size: clamp(40px, 5.6vw, 76px); margin: 18px 0 20px; }
.brief__intro h2 .serif { color: var(--signal); }
.brief__intro p { color: #b5b0a4; max-width: 420px; }
.brief__contact { margin-top: 36px; display: grid; gap: 10px; }
.brief__contact a { text-decoration: none; font-size: 20px; }
.brief__contact a:hover { color: var(--signal); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { color: #8b877c; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: #f3efe6; border: 0; border-bottom: 1px solid #3c3b36;
  padding: 10px 0; font: 17px var(--sans); outline: none; border-radius: 0; transition: border-color .25s;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { border: 1px solid #3c3b36; border-radius: 999px; padding: 8px 14px; font: 14px var(--sans); color: #d9d4c8; cursor: pointer; text-transform: none; letter-spacing: 0; transition: .2s; }
.chips input:checked + label { background: var(--signal); border-color: var(--signal); color: #fff; }
.chips input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form__status { color: #8b877c; font-size: 14px; }
.form__status.is-error { color: #ff8a6b; }

/* Footer */
.footer { background: var(--night); color: #8b877c; padding: 0 0 36px; }
.footer__big { font-family: var(--serif); font-style: italic; color: #2a2925; font-size: clamp(80px, 20vw, 300px); line-height: .8; letter-spacing: -.04em; white-space: nowrap; overflow: hidden; padding-top: 40px; user-select: none; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--night-line); padding-top: 24px; margin-top: 24px; }
.footer__row a { text-decoration: none; color: #c9c4b8; }
.footer__row a:hover { color: var(--signal); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .deck { height: auto; aspect-ratio: 1 / 1.12; max-width: 520px; margin: 20px auto 0; width: 100%; }
  .section__head { grid-template-columns: 1fr; gap: 10px; }
  .work__item, .work__item:nth-child(n) { grid-column: span 12; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .included { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; }
  .plan--hot { transform: none; }
  .brief { grid-template-columns: 1fr; }
  .founder__grid { grid-template-columns: 1fr; }
  .founder__card { position: static; max-width: 420px; }
}
@media (max-width: 520px) {
  .founder__skills { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1;
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a { padding: 14px 0; font-size: 18px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; width: auto; border-bottom: 0; padding: 12px 20px; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .deck { max-width: 92%; }
  .clock { gap: 20px; }
  .clock__item b { font-size: 24px; }
  .timeline, .included { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--night-line); }
  .form { grid-template-columns: 1fr; }
}
