/*
 * Orbitfolio — front-end styles.
 *
 * Colour, type and spacing all come from the tokens in :root. The two dark
 * blocks only redefine tokens, so a component rule never has to know which
 * theme is active. Accent colours are overridden from the admin panel via an
 * inline rule printed after this file.
 */

/* WordPress core classes the theme must honour. */
.orb-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.orb-skip:focus { left: 12px; top: 12px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.orb-hp { position: absolute !important; left: -9999px !important; }

.custom-logo { max-height: 34px; width: auto; }

.alignwide, .alignfull { max-width: 100%; }


/* Layout: dark-first canvas over a slow gradient field. Split hero — copy left, a live
   world globe right tracing routes from Lahore to every market worked in. Below it,
   modular bento cards on a 12-column grid that collapse to single file on phones. */
:root {
  --bg:       #06070A;
  --bg-2:     #090B10;
  --surface:  #0D1016;
  --surface-2:#13171F;
  --fg:       #F2F4F7;
  --muted:    #8B93A1;
  --dim:      #5C6472;
  --line:     #1B1F28;
  --line-2:   #262B36;
  --accent:   #4C8DFF;
  --accent-2: #22D3EE;
  --accent-d: #152340;
  --ok:       #34D399;

  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --r: 16px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:       #FAFBFC;
    --bg-2:     #F3F5F8;
    --surface:  #FFFFFF;
    --surface-2:#F2F4F7;
    --fg:       #0B0D11;
    --muted:    #5A6373;
    --dim:      #8A93A3;
    --line:     #E4E7EC;
    --line-2:   #D5DAE2;
    --accent:   #1F63D6;
    --accent-2: #0E8DA8;
    --accent-d: #E6EEFC;
    --ok:       #0F9C63;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg:       #FAFBFC;
  --bg-2:     #F3F5F8;
  --surface:  #FFFFFF;
  --surface-2:#F2F4F7;
  --fg:       #0B0D11;
  --muted:    #5A6373;
  --dim:      #8A93A3;
  --line:     #E4E7EC;
  --line-2:   #D5DAE2;
  --accent:   #1F63D6;
  --accent-2: #0E8DA8;
  --accent-d: #E6EEFC;
  --ok:       #0F9C63;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

/* ---------- background field ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}
.bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(42vw 42vw at 72% 12%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 62%),
    radial-gradient(38vw 38vw at 16% 42%, color-mix(in srgb, var(--accent-2) 11%, transparent), transparent 64%),
    radial-gradient(46vw 46vw at 58% 88%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 66%);
  filter: blur(26px);
  animation: drift 26s ease-in-out infinite alternate;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--fg) 20%, transparent) 1px, transparent 0);
  background-size: 34px 34px;
  opacity: .055;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 25%, transparent 78%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2.5%, 0) scale(1.07); }
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; }

/* ---------- entrance ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise .7s cubic-bezier(.22,.8,.3,1) backwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .13s; }
.d3 { animation-delay: .21s; }
.d4 { animation-delay: .29s; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.glyph {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0;
}
.links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.links a { text-decoration: none; transition: color .15s; }
.links a:hover { color: var(--fg); }
@media (max-width: 820px) { .links .hide-sm { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, border-color .15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; padding-block: 68px 62px; }
@media (max-width: 760px) { .hero .wrap { padding-block: 42px 42px; } }

.split {
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1020px) { .split { grid-template-columns: 1fr; gap: 34px; } }

.copy { min-width: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 600; line-height: 1.04; max-width: 15ch; }
h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 24px 0 0; font-size: clamp(15.5px, 1.8vw, 18px); color: var(--muted); max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- globe ---------- */
.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  min-width: 0;
}
#globe {
  width: 100%; height: 100%; display: block;
  cursor: grab;
  touch-action: pan-y;
}
#globe.dragging { cursor: grabbing; }
.globe-hint {
  position: absolute;
  top: 6px; right: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: .75;
  pointer-events: none;
  transition: opacity .4s;
}
.globe-hint.gone { opacity: 0; }
.globe-legend {
  position: absolute;
  left: 0; bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
}
.globe-legend span { display: inline-flex; align-items: center; gap: 6px; }
.globe-legend i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 52px; }
.card {
  grid-column: span 3;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  min-width: 0;
}
.card .k {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); display: block; margin-bottom: 10px;
}
.card .v { font-size: 25px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.card .sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
@media (max-width: 900px) { .card { grid-column: span 6; } }
@media (max-width: 460px) { .card { grid-column: span 12; } }

/* ---------- sections ---------- */
section { border-top: 1px solid var(--line); position: relative; }
section > .wrap { padding-block: 72px; }
@media (max-width: 760px) { section > .wrap { padding-block: 50px; } }

.head { margin-bottom: 40px; max-width: 58ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.head h2 { font-size: clamp(27px, 4.2vw, 40px); font-weight: 600; line-height: 1.1; }
.head p { color: var(--muted); margin: 14px 0 0; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.svc {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  min-width: 0;
  transition: border-color .18s, transform .18s;
}
.svc:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-d);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.ico svg { width: 19px; height: 19px; }
.svc h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 8px; }
.svc p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- work ---------- */
.work { display: grid; gap: 14px; }
.proj {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 34px;
  min-width: 0;
  transition: border-color .18s;
}
.proj:hover { border-color: var(--line-2); }
@media (max-width: 820px) { .proj { grid-template-columns: 1fr; gap: 18px; padding: 24px; } }

.proj-meta { min-width: 0; }
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-d);
  padding: 4px 9px; border-radius: 5px; margin-bottom: 14px;
}
.proj-meta h3 { font-size: clamp(21px, 2.8vw, 27px); font-weight: 600; line-height: 1.15; }
.proj-meta .when { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 10px; }
.proj-body { min-width: 0; }
.proj-body p { margin: 0; color: var(--muted); }
.bullets { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.bullets li { position: relative; padding-left: 22px; font-size: 14.8px; color: var(--muted); }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  border: 1.5px solid var(--accent);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; background: var(--surface-2);
  color: var(--muted); border-radius: 6px;
}
.visit {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 14px; font-weight: 600;
  color: var(--accent); text-decoration: none;
  transition: gap .15s;
}
.visit:hover { gap: 10px; }

/* ---------- sites ---------- */
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.site {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  text-decoration: none; display: block; min-width: 0;
  transition: border-color .18s, transform .18s;
}
.site:hover { border-color: var(--accent); transform: translateY(-3px); }
.site h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 7px; }
.site p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.site .url { font-family: var(--mono); font-size: 11.5px; color: var(--accent); word-break: break-all; }

/* ---------- stack ---------- */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; }
.scol {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px; min-width: 0;
}
.scol h3 {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 14px;
}
.scol ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.scol li { font-size: 14.5px; color: var(--muted); }

/* ---------- timeline ---------- */
.tl { display: grid; gap: 0; }
.row {
  display: grid; grid-template-columns: 190px 1fr;
  gap: 30px; padding-block: 24px;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 7px; } }
.when { font-family: var(--mono); font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.what { min-width: 0; }
.what strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 3px; }
.what span { color: var(--muted); font-size: 14.5px; }

/* ---------- contact ---------- */
.contact .wrap { padding-block: 78px 84px; }
.contact h2 { font-size: clamp(28px, 4.8vw, 46px); font-weight: 600; line-height: 1.08; max-width: 18ch; }

.chans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 40px; }
.chan {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px; min-width: 0;
  text-decoration: none; display: block;
  transition: border-color .18s;
}
.chan:hover { border-color: var(--accent); }
.chan .k {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); display: block; margin-bottom: 9px;
}
.chan .v { font-size: 15.5px; font-weight: 500; word-break: break-word; }
.chan .v.link { color: var(--accent); }
.copy-btn {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-2);
  color: var(--muted); padding: 6px 11px; border-radius: 7px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- contact form ---------- */
.enquiry {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  margin-top: 14px;
  min-width: 0;
}
@media (max-width: 560px) { .enquiry { padding: 22px; } }
.enquiry h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.enquiry > p { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.form-foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px; margin-top: 20px;
}
.form-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform .15s;
}
.form-submit:hover { transform: translateY(-1px); }
.form-note { font-size: 13px; color: var(--dim); }
.form-msg {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--muted);
}
.form-msg.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok); }
.form-msg.bad { border-color: color-mix(in srgb, #F87171 50%, transparent); color: #F87171; }

/* ---------- floating whatsapp ---------- */
.float {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 18px; border-radius: 100px;
  background: #25D366; color: #04231B;
  font-weight: 600; font-size: 14.5px; text-decoration: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.34);
  transition: transform .16s;
}
.float:hover { transform: translateY(-2px); }
.float svg { width: 19px; height: 19px; flex: none; }
@media (max-width: 560px) { .float .lbl { display: none; } .float { padding: 15px; } }

footer { border-top: 1px solid var(--line); }
footer .wrap {
  padding-block: 26px; font-size: 13px; color: var(--dim);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  *, .rise, .bg::before { animation: none !important; transition: none !important; }
}

/* ---------- WordPress menu output ---------- */
.links ul { margin: 0; padding: 0; list-style: none; display: contents; }
.links li { display: inline-flex; }
.links li a { text-decoration: none; color: var(--muted); transition: color .15s; }
.links li a:hover { color: var(--fg); }
@media (max-width: 820px) { .links li { display: none; } }

/* ---------- single column when no globe is configured ---------- */
.split.no-globe { grid-template-columns: 1fr; }
.split.no-globe h1 { max-width: 20ch; }
.split.no-globe .lede { max-width: 64ch; }

/* ---------- page fallback for non-front pages ---------- */
.orb-page .wrap { padding-block: 72px; }
.orb-page h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 600; margin-bottom: 20px; }
.orb-page .entry { max-width: 68ch; color: var(--muted); }
.orb-page .entry a { color: var(--accent); }
.orb-page .entry h2,
.orb-page .entry h3 { color: var(--fg); margin: 32px 0 10px; }
.orb-page .entry img { border-radius: var(--r); }
