/*
Theme Name: MNB Digital
Theme URI: https://mnbdigitalllc.com
Author: MNB Digital LLC
Author URI: https://mnbdigitalllc.com
Description: A dark, single-page theme for MNB Digital LLC — a mobile product studio. Hero and contact only, with no image assets: every graphic on the page is drawn in CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mnb-digital
Tags: one-page, dark, custom-colors, custom-logo
*/

/* ============================================================
   MNB Digital — design tokens
   Geometry is derived from the iOS app-icon superellipse:
   corner radius = 22.4% of the side. Every surface on this
   page is an icon on the same grid.
   ============================================================ */
:root{
  /* ground — ink with a violet bias, not a neutral black */
  --ink:        #07060D;
  --ink-2:      #0B0A14;
  --surface:    #11101C;
  --surface-2:  #161524;

  /* accents */
  --iris:       #6D4AFF;
  --iris-lift:  #A48BFF;
  --rose:       #FF4D8D;
  --amber:      #FFC46B;

  /* type — warm-cool white on a violet-biased grey */
  --fg:         #EDEBF5;
  --fg-mute:    #918CA8;
  --fg-faint:   #625D78;
  --hair:       rgba(237,235,245,.09);
  --hair-2:     rgba(237,235,245,.055);

  --grad-hero:  linear-gradient(96deg, var(--iris-lift) 0%, var(--rose) 54%, var(--amber) 100%);
  --grad-a:     linear-gradient(150deg, #8B6BFF, #6D4AFF 46%, #4A2FD1);
  --grad-b:     linear-gradient(150deg, #FF7BB0, #FF4D8D 50%, #D62E6B);
  --grad-c:     linear-gradient(150deg, #FFDCA6, #FFC46B 50%, #E2953A);
  --grad-quiet: linear-gradient(150deg, rgba(237,235,245,.15), rgba(237,235,245,.06));

  /* radii — the icon ratio, scaled */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --nav-h: 72px;
  --shell: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body{
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible{
  outline: 2px solid var(--iris-lift);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ============================================================
   Ambient layers — the icon lattice, screen glow, grain
   ============================================================ */
.bg{ position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.bg__lattice{
  position: absolute; inset: -10%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Crect x='28' y='28' width='72' height='72' rx='16.1' fill='none' stroke='%23EDEBF5' stroke-opacity='.055' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  -webkit-mask-image: radial-gradient(115% 85% at 50% 8%, #000 12%, transparent 72%);
  mask-image: radial-gradient(115% 85% at 50% 8%, #000 12%, transparent 72%);
}

.bg__glow{ position: absolute; border-radius: 50%; filter: blur(110px); }
.bg__glow--a{
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -14vw; left: -10vw;
  background: radial-gradient(circle, rgba(109,74,255,.42), transparent 68%);
  animation: drift 26s var(--ease) infinite alternate;
}
.bg__glow--b{
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  top: 8vh; right: -12vw;
  background: radial-gradient(circle, rgba(255,77,141,.30), transparent 66%);
  animation: drift 21s var(--ease) infinite alternate-reverse;
}
.bg__glow--c{
  width: 30vw; height: 30vw; min-width: 260px; min-height: 260px;
  bottom: -8vw; left: 34vw;
  background: radial-gradient(circle, rgba(255,196,107,.16), transparent 68%);
  animation: drift 31s var(--ease) infinite alternate;
}

.bg__grain{
  position: absolute; inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift{
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4vw, 5vh, 0) scale(1.14); }
}

/* ============================================================
   Shell
   ============================================================ */
.shell{
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.page{ position: relative; z-index: 1; }

/* ============================================================
   Nav
   ============================================================ */
.nav{
  position: fixed; inset: 0 0 auto 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7,6,13,.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hair-2);
}
.nav__in{
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.mark{
  display: inline-flex; align-items: center; gap: .625rem;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.025em;
}
.mark__glyph{
  width: 28px; height: 28px;
  border-radius: 6.27px; /* 28 × 22.4% */
  background: var(--grad-a);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset, 0 6px 18px -6px rgba(109,74,255,.85);
  position: relative;
  flex: none;
}
.mark__glyph::before{
  content: ""; position: absolute;
  left: 50%; top: 50%; translate: -50% -50%;
  width: 11px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.86);
}

.chip{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: rgba(237,235,245,.035);
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: -.01em;
  color: var(--fg-mute);
  text-decoration: none;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.chip:hover{ color: var(--fg); border-color: rgba(237,235,245,.2); background: rgba(237,235,245,.07); }
.chip__dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px 1px rgba(255,196,107,.9);
  flex: none;
}
.chip--nav .chip__label--short{ display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  min-height: 100svh;
  padding-block: calc(var(--nav-h) + clamp(2.5rem, 7vh, 5rem)) clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.eyebrow{
  margin: 0;
  font-family: var(--f-mono);
  font-size: .705rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::after{
  content: ""; height: 1px; flex: 1; max-width: 90px;
  background: linear-gradient(90deg, var(--hair), transparent);
}

.h1{
  margin: 1.5rem 0 0;
  font-family: var(--f-display);
  font-weight: 620;
  font-size: clamp(2.85rem, 6.9vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.h1 em{
  font-style: normal;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede{
  margin: 1.6rem 0 0;
  max-width: 50ch;
  font-size: clamp(1.02rem, 1.35vw, 1.135rem);
  line-height: 1.62;
  color: var(--fg-mute);
}

.actions{
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.25rem;
}

.btn{
  --btn-bg: var(--grad-hero);
  position: relative;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.6rem;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .965rem;
  letter-spacing: -.012em;
  color: #0A0713;
  text-decoration: none;
  background: var(--btn-bg);
  box-shadow: 0 10px 34px -12px rgba(255,77,141,.75), 0 2px 0 0 rgba(255,255,255,.22) inset;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
}
.btn:hover{
  transform: translateY(-2px);
  filter: saturate(115%) brightness(1.04);
  box-shadow: 0 18px 44px -12px rgba(255,77,141,.85), 0 2px 0 0 rgba(255,255,255,.28) inset;
}
.btn:active{ transform: translateY(0); }
.btn svg{ transition: transform .35s var(--ease); }
.btn:hover svg{ transform: translateX(4px); }

.link-mono{
  font-family: var(--f-mono);
  font-size: .875rem;
  color: var(--fg-mute);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--hair);
  transition: color .3s var(--ease), border-color .3s var(--ease);
  overflow-wrap: anywhere;
}
.link-mono:hover{ color: var(--fg); border-color: var(--rose); }

.caps{
  margin: clamp(2.5rem, 5.5vh, 3.5rem) 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--hair-2);
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: .7rem 1.7rem;
  font-family: var(--f-mono);
  font-size: .705rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ============================================================
   Device — built entirely in CSS, no image assets
   ============================================================ */
.stage{
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}
.stage::before{
  content: "";
  position: absolute;
  width: 118%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,74,255,.34), rgba(255,77,141,.14) 42%, transparent 68%);
  filter: blur(50px);
}

.device{
  position: relative;
  width: min(310px, 82vw);
  aspect-ratio: 9 / 19;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(155deg, #2A2740, #131223 38%, #0B0A14 78%);
  box-shadow:
    0 0 0 1px rgba(237,235,245,.14),
    0 0 0 8px rgba(11,10,20,.6),
    0 60px 110px -40px rgba(0,0,0,.95),
    0 30px 70px -30px rgba(109,74,255,.5);
  animation: float 9s ease-in-out infinite;
}

@keyframes float{
  0%, 100% { transform: translateY(-9px); }
  50%      { transform: translateY(9px); }
}

.screen{
  position: relative;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(109,74,255,.30), transparent 62%),
    radial-gradient(90% 60% at 20% 100%, rgba(255,77,141,.20), transparent 60%),
    linear-gradient(180deg, #100E20, #0A0817);
  box-shadow: 0 0 0 1px rgba(237,235,245,.07) inset;
  display: flex; flex-direction: column;
  padding: 14px 15px 15px;
}

.status{
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(237,235,245,.82);
  padding: 2px 6px 0;
  flex: none;
}
.status__right{ display: flex; align-items: center; gap: 4px; }
.status__bar{ width: 3px; border-radius: 1px; background: rgba(237,235,245,.72); }
.status__bar:nth-child(1){ height: 4px; }
.status__bar:nth-child(2){ height: 6px; }
.status__bar:nth-child(3){ height: 8px; }
.status__batt{
  width: 16px; height: 8px; margin-left: 2px;
  border-radius: 2.5px;
  border: 1px solid rgba(237,235,245,.5);
  padding: 1px;
}
.status__batt span{
  display: block; height: 100%; width: 64%;
  border-radius: 1px; background: rgba(237,235,245,.82);
}

.grid{
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px 12px;
  flex: 1;
  align-content: start;
}
.grid span{
  position: relative;
  aspect-ratio: 1;
  border-radius: 22.4%;             /* the iOS icon ratio */
  background: var(--grad-quiet);
  box-shadow: 0 0 0 1px rgba(237,235,245,.06) inset;
}
.grid span::before{
  content: "";
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 42%; height: 4px; border-radius: 2px;
  background: rgba(237,235,245,.30);
}
.grid span:nth-child(3n)::before{
  width: 40%; height: 0; padding-bottom: 40%; border-radius: 50%;
  background: rgba(237,235,245,.22);
}
.grid span:nth-child(5n)::before{ width: 30%; }

/* the three that carry the brand */
.grid span:nth-child(2){
  background: var(--grad-a);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 8px 20px -8px rgba(109,74,255,.95);
}
.grid span:nth-child(7){
  background: var(--grad-b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 8px 20px -8px rgba(255,77,141,.95);
}
.grid span:nth-child(14){
  background: var(--grad-c);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 8px 20px -8px rgba(255,196,107,.85);
}
.grid span:nth-child(2)::before,
.grid span:nth-child(7)::before,
.grid span:nth-child(14)::before{ background: rgba(255,255,255,.9); }

/* a notification badge — the truest detail of the domain */
.grid span:nth-child(7)::after{
  content: "3";
  position: absolute; top: -5px; right: -5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FF3B30;
  border: 1.5px solid #0A0815;
  font-family: var(--f-mono);
  font-size: 8px; font-weight: 500;
  color: #fff;
  display: grid; place-items: center;
  line-height: 1;
}

.dock{
  flex: none;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 11px;
  border-radius: 26px;
  background: rgba(237,235,245,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(237,235,245,.07) inset;
}
.dock span{
  aspect-ratio: 1;
  border-radius: 22.4%;
  background: var(--grad-quiet);
  box-shadow: 0 0 0 1px rgba(237,235,245,.07) inset;
}
.dock span:nth-child(1){ background: linear-gradient(150deg, rgba(164,139,255,.65), rgba(109,74,255,.35)); }

.homebar{
  flex: none;
  width: 34%; height: 4px;
  margin: 11px auto 0;
  border-radius: 2px;
  background: rgba(237,235,245,.4);
}

/* ============================================================
   Contact — one large icon on the same grid
   ============================================================ */
.contact{
  padding-block: clamp(1rem, 4vh, 3rem) clamp(4rem, 10vh, 7rem);
}
.card{
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.25rem);
  border-radius: clamp(28px, 4vw, 48px);
  border: 1px solid var(--hair);
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(109,74,255,.20), transparent 58%),
    radial-gradient(70% 120% at 100% 100%, rgba(255,77,141,.14), transparent 60%),
    var(--surface);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9);
}
.card::before{
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(237,235,245,.09), transparent 40%);
  pointer-events: none;
}
.card__in{ position: relative; }

.h2{
  margin: 1.15rem 0 0;
  font-family: var(--f-display);
  font-weight: 620;
  font-size: clamp(1.95rem, 4.4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  text-wrap: balance;
  max-width: 18ch;
}
.card .lede{ margin-top: 1.1rem; max-width: 46ch; }

.mailto{
  display: inline-block;
  margin-top: 2.25rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(1.05rem, 3vw, 2rem);
  letter-spacing: -.035em;
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--rose), var(--rose));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .45s var(--ease);
}
.mailto:hover{ background-size: 100% 1px; }

.card .actions{ margin-top: 2rem; }

/* ============================================================
   Footer
   ============================================================ */
.foot{
  border-top: 1px solid var(--hair-2);
  padding-block: 1.75rem 2.25rem;
}
.foot__in{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.5rem;
  font-family: var(--f-mono);
  font-size: .715rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ============================================================
   Load sequence
   ============================================================ */
.rise{ animation: rise .95s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise{
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.stage{ animation: rise 1.2s var(--ease) both; animation-delay: .28s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px){
  .hero{
    grid-template-columns: 1fr;
    gap: clamp(3rem, 9vh, 4.5rem);
    min-height: auto;
    padding-block: calc(var(--nav-h) + 3.25rem) 4rem;
  }
  .stage{ order: 2; }
  .stage::before{ width: 130%; }
  .caps{ margin-top: 2.5rem; }
}

@media (max-width: 520px){
  .chip--nav .chip__label--long{ display: none; }
  .chip--nav .chip__label--short{ display: inline; }
  .device{ width: min(268px, 76vw); }
  .btn{ width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   WordPress admin bar — keep the fixed nav clear of it
   ============================================================ */
body.admin-bar .nav{ top: 32px; }
@media screen and (max-width: 782px){
  body.admin-bar .nav{ top: 46px; }
}

/* Hide the fixed nav behind the admin bar on very short screens */
@media screen and (max-width: 600px){
  body.admin-bar .nav{ position: absolute; }
}
