:root {
  --dark: #12091d;
  --deep: #1b0d2c;
  --night: #080512;
  --light: #fffafd;
  --paper: #f8f3ff;
  --ink: #160d22;
  --muted: rgba(22, 13, 34, 0.66);
  --muted-light: rgba(255, 255, 255, 0.72);
  --blue: #2458ff;
  --violet: #8b35ff;
  --magenta: #f20cff;
  --line: rgba(139, 53, 255, 0.16);
  --shadow: 0 22px 70px rgba(38, 18, 69, 0.13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--light);
  font-family: "Readex Pro", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--muted); line-height: 1.9; }
section { scroll-margin-top: 110px; }

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--magenta));
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 36px));
  transform: translateX(-50%);
  color: #fff;
  pointer-events: none;
}

.brand,
.nav-links,
.header-action {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(14, 7, 23, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(10, 4, 20, 0.22);
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 15px;
  font-size: 1rem;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: var(--mark-w, 46px);
  height: var(--mark-h, 32px);
  flex: 0 0 auto;
  background: url("assets/tuwaiq-mark-gradient.png") center / contain no-repeat;
}

.nav-links {
  display: flex;
  gap: 2px;
  padding: 6px;
}

.nav-links a,
.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.header-action,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet) 54%, var(--magenta));
  box-shadow: 0 18px 44px rgba(139, 53, 255, 0.26);
}

.button.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: auto;
  display: block;
  padding: 138px 24px 88px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 14%, rgba(242, 12, 255, 0.24), transparent 27%),
    radial-gradient(circle at 15% 72%, rgba(36, 88, 255, 0.2), transparent 31%),
    radial-gradient(circle at 90% 56%, rgba(139, 53, 255, 0.17), transparent 32%),
    linear-gradient(145deg, #0a0612, #1a0b2d 50%, #090511);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.048) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.048) 1px, transparent 1px);
  background-size: 118px 118px;
  mask-image: linear-gradient(to bottom, #000 0 78%, transparent);
}

.hero-glow {
  position: absolute;
  width: min(58vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 12, 255, 0.16), transparent 68%);
  filter: blur(18px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-layout .hero-content {
  width: 100%;
  text-align: right;
}

.hero-layout .hero-mark,
.hero-layout .eyebrow,
.hero-layout h1,
.hero-layout .hero-copy {
  margin-inline: 0;
}

.hero-visual {
  margin: 0;
}

.hero-visual img,
.section-art,
.contact-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(10, 4, 20, 0.24);
}

.hero-mark {
  --mark-w: clamp(118px, 13vw, 190px);
  --mark-h: clamp(84px, 9.3vw, 136px);
  margin: 0 auto 20px;
  filter: drop-shadow(0 30px 70px rgba(242, 12, 255, 0.32));
}

.eyebrow,
.section-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 9px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--violet);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

h1 {
  max-width: 720px;
  margin: 0 auto 22px;
  color: #fff;
  font-size: clamp(2.85rem, 4.8vw, 4.55rem);
  line-height: 1.16;
  font-weight: 700;
  text-shadow: 0 24px 80px rgba(242, 12, 255, 0.22);
  text-wrap: balance;
}

h1 span { display: block; }
h1 span + span { margin-top: 0.2em; }

.hero-copy {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.15vw, 1.14rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.strip {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 18px;
  color: rgba(255, 255, 255, 0.38);
  background: var(--dark);
  font-weight: 700;
}

section:not(.hero):not(.strip) {
  padding: clamp(64px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

h2 {
  margin-bottom: 20px;
  max-width: 680px;
  font-size: clamp(1.9rem, 2.45vw, 2.65rem);
  line-height: 1.28;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.16rem;
  line-height: 1.45;
}

.studio,
.services,
.process {
  background:
    radial-gradient(circle at 12% 6%, rgba(242, 12, 255, 0.065), transparent 28%),
    linear-gradient(180deg, #fff, var(--paper));
}

.studio {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) 1.18fr;
  gap: clamp(24px, 4.4vw, 58px);
  align-items: start;
}

.studio .section-kicker,
.services .section-kicker,
.process .section-kicker {
  margin-inline: 0;
}

.studio-grid,
.cards,
.steps {
  display: grid;
  gap: 16px;
}

.studio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

article,
.contact-form {
  border: 1px solid rgba(18, 10, 31, 0.08);
  border-radius: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

article {
  display: flex;
  flex-direction: column;
  min-height: 228px;
}

article p {
  margin-bottom: 18px;
}

article a {
  width: max-content;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--violet);
  background: rgba(139, 53, 255, 0.08);
  font-weight: 700;
}

article span,
.steps strong {
  color: var(--violet);
  font-weight: 700;
}

.section-head {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  margin-bottom: 38px;
}

.section-intro .section-head {
  margin-bottom: 0;
}

.section-art {
  max-width: 460px;
  justify-self: end;
  box-shadow: var(--shadow);
}

.identity,
.cta-panel,
.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 12, 255, 0.19), transparent 32%),
    radial-gradient(circle at 92% 22%, rgba(36, 88, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #150a22, #0d0715);
}

.cta-panel {
  grid-template-columns: 1fr auto;
  background:
    radial-gradient(circle at 16% 0%, rgba(242, 12, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #160a23, #0d0715);
}

.cta-panel p {
  max-width: 620px;
  color: var(--muted-light);
}

.cta-panel .section-kicker {
  margin-inline: 0;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.cta-panel h2,
.identity h2,
.contact h2 {
  color: #fff;
}

.identity p,
.contact p {
  color: var(--muted-light);
}

.identity .section-kicker,
.contact .section-kicker {
  margin-inline: 0;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.identity-mark {
  --mark-w: min(30vw, 340px);
  --mark-h: min(21.4vw, 243px);
  justify-self: center;
  filter: drop-shadow(0 32px 72px rgba(242, 12, 255, 0.26));
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 26px;
  color: var(--muted-light);
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-art {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
}

.contact-form {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px) 42px;
  color: rgba(20, 13, 32, 0.56);
  background: #fff;
  font-size: 0.82rem;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--magenta));
  box-shadow: 0 18px 44px rgba(139, 53, 255, 0.28);
  font-weight: 700;
}

@media (max-width: 1060px) {
  .hero-layout,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .hero-layout .hero-content {
    text-align: center;
  }

  .hero-layout .hero-mark,
  .hero-layout .eyebrow,
  .hero-layout h1,
  .hero-layout .hero-copy {
    margin-inline: auto;
  }

  .hero-visual,
  .section-art {
    width: min(100%, 560px);
    justify-self: center;
  }

  .studio,
  .identity,
  .cta-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .studio-grid,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel .button {
    width: max-content;
  }
}

@media (max-width: 720px) {
  section { scroll-margin-top: 84px; }

  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .nav-links,
  .header-action {
    display: none;
  }

  .brand {
    min-height: 48px;
    padding: 8px 13px;
    font-size: 0.95rem;
  }

  .brand-mark {
    --mark-w: 40px;
    --mark-h: 28px;
  }

  .hero {
    min-height: auto;
    padding: 92px 18px 54px;
  }

  .hero-content {
    width: min(100%, 360px);
  }

  .hero-layout {
    gap: 24px;
  }

  .hero-mark {
    --mark-w: 112px;
    --mark-h: 80px;
    margin-bottom: 18px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(2.5rem, 10.6vw, 2.95rem);
    line-height: 1.18;
    margin-bottom: 20px;
  }

  .hero-copy {
    max-width: 330px;
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-visual img {
    border-radius: 18px;
  }

  .section-art,
  .contact-art {
    border-radius: 18px;
  }

  .button,
  .nav-links a,
  .header-action {
    min-height: 46px;
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  .strip {
    gap: 12px;
    padding: 18px;
    font-size: 0.9rem;
  }

  section:not(.hero):not(.strip) {
    padding: 58px 18px;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.58rem, 7.2vw, 2.12rem);
    line-height: 1.36;
  }

  h3 {
    font-size: 1.08rem;
  }

  .studio-grid,
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  article,
  .contact-form {
    min-height: auto;
    padding: 20px;
    border-radius: 12px;
  }

  .cta-panel .button,
  .contact-actions .button {
    width: 100%;
  }

  .identity-mark {
    --mark-w: 190px;
    --mark-h: 136px;
  }

  .contact-actions {
    display: grid;
    gap: 12px;
  }

  footer {
    flex-direction: column;
    padding-bottom: 86px;
  }

  .floating-cta {
    right: auto;
    left: 14px;
    bottom: 14px;
    min-width: 112px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 2.62rem;
  }

  h2 {
    font-size: 1.55rem;
  }
}
