/* orkode.pk — Orkode Solutions
   Editorial style: warm cream, thin condensed capitals, hairlines, one muted red accent. */

:root {
  --bg: #F3EEE4;          /* cream */
  --bg-alt: #ECE6DA;      /* a shade deeper, for alternate sections */
  --stone: #E2DACB;       /* image panels */
  --ink: #3A3632;         /* headlines */
  --text: #55504A;        /* body */
  --muted: #9C968D;       /* labels, meta */
  --line: #D9D1C3;        /* hairlines */
  --accent: #B5483B;      /* muted brick red — used sparingly */
  --dark: #1F1C19;        /* hero / contact */
  --on-dark: #EDE7DC;
  --on-dark-muted: #9D968B;
  --display: "Barlow Condensed", "Open Sans", "Arial Narrow", sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --track: 0.14em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1A17;
    --bg-alt: #221F1B;
    --stone: #2A2621;
    --ink: #EDE7DC;
    --text: #C3BCB1;
    --muted: #867F75;
    --line: #36312B;
    --accent: #D46B5C;
    --dark: #141210;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.75 var(--body);
  font-stretch: 87.5%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0; font-family: var(--display); font-weight: 300; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.15;
}
strong { font-weight: 600; color: var(--ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 820px; }

/* Small uppercase labels, meta lines */
.label, .meta, .crumbs, .fine, .spec-title, .more-cat {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: var(--track); color: var(--muted);
}
.label { font-size: 13px; margin-bottom: 18px; }
.meta { font-size: 12.5px; margin-bottom: 10px; }
.meta .sep, .crumbs .sep { margin: 0 10px; opacity: .6; }
.status { color: var(--accent); }
.fine { font-size: 12px; margin-top: 12px; }

/* Text links: tiny capitals, underlined */
.links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 18px; }
.text-link {
  font-family: var(--display); font-weight: 500; font-size: 13px; text-transform: uppercase;
  letter-spacing: var(--track); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s, opacity .2s;
}
.text-link:hover { opacity: .65; }
.text-link.accent { color: var(--accent); }

/* Thin rectangular buttons (only where an action matters) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border: 1px solid var(--ink); background: transparent;
  font-family: var(--display); font-weight: 500; font-size: 14px; text-transform: uppercase;
  letter-spacing: var(--track); color: var(--ink); text-decoration: none; transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn-light:hover { background: var(--on-dark); color: var(--dark); }

/* ── Logo: thin square, name stacked inside ──────────────────────────────── */
.logo { text-decoration: none; display: inline-block; }
.logo-box {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 78px; height: 78px; border: 1px solid currentColor; color: var(--ink);
  font-family: var(--display); font-weight: 300; text-transform: uppercase; line-height: 1.1;
}
.logo-box span:first-child { font-size: 15px; letter-spacing: 0.16em; margin-left: 0.16em; }
.logo-box span:last-child { font-size: 8.5px; letter-spacing: 0.24em; margin-left: 0.24em; margin-top: 3px; opacity: .8; }
.logo-box-sm { width: 58px; height: 58px; }
.logo-box-sm span:first-child { font-size: 11px; }
.logo-box-sm span:last-child { font-size: 6.5px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav { padding: 28px 0; }
.nav-inner { display: flex; align-items: flex-start; justify-content: space-between; }
.nav-links { display: flex; gap: 34px; padding-top: 6px; }
.nav-links a {
  font-family: var(--display); font-weight: 400; font-size: 13px; text-transform: uppercase;
  letter-spacing: var(--track); color: var(--muted); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }

/* On the home page the nav sits over the dark hero */
.nav-over { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.nav-over .logo-box { color: var(--on-dark); }
.nav-over .nav-links a { color: var(--on-dark-muted); }
.nav-over .nav-links a:hover { color: var(--on-dark); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background-color: var(--dark); background-size: cover; background-position: center;
  background-image:
    radial-gradient(ellipse at 70% 30%, rgba(160, 130, 95, .18), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(120, 100, 80, .14), transparent 55%);
  color: var(--on-dark);
}
.hero::before {
  /* fine grain so the plain background doesn't look empty */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}
.hero.has-image::after {
  content: ""; position: absolute; inset: 0; background: rgba(20, 17, 14, .2);
}
.hero-inner { position: relative; z-index: 1; }
.hero-statement {
  max-width: 760px; color: var(--on-dark); font-weight: 300;
  font-size: clamp(30px, 4.2vw, 52px); letter-spacing: 0.08em; line-height: 1.25;
}
.hero-down {
  position: absolute; z-index: 1; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 34px; height: 34px; color: var(--on-dark-muted); animation: drift 2.8s ease-in-out infinite;
}
.hero-down:hover { color: var(--on-dark); }
@keyframes drift { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hero-down { animation: none; } html { scroll-behavior: auto; } }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }

/* Image panels ("photos" of products) */
.panel {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3;
  background: var(--stone); color: var(--ink);
}
.panel svg { width: 34%; height: 34%; opacity: .85; }
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel-sm { aspect-ratio: 1 / 1; }
.panel-sm svg { width: 42%; height: 42%; }
.panel-lg { aspect-ratio: 5 / 4; }
.panel-art .art { width: 86%; height: 86%; opacity: 1; }
.panel-sm.panel-art .art { width: 104%; height: 104%; }
.art .a { stroke: var(--accent); }
.art .a-fill { fill: var(--accent); }
.art .on-accent { stroke: var(--stone); }

/* Major products: editorial entries separated by hairlines */
.entries { border-top: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
  padding: 48px 0; border-bottom: 1px solid var(--line);
}
.entry-media { display: block; overflow: hidden; }
.entry-media .panel { transition: transform .6s ease; }
.entry:hover .entry-media .panel { transform: scale(1.02); }
.entry h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.entry h3 a, .app h3 a { text-decoration: none; }
.entry h3 a:hover, .app h3 a:hover { color: var(--accent); }
.entry-lead { font-size: 17px; color: var(--ink); margin-bottom: 14px; }
.entry-points { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.entry-points li {
  font-size: 14.5px; padding: 6px 0; border-top: 1px solid var(--line); break-inside: avoid;
}

/* Apps: a compact two-column list */
.app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--line); }
.app {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 26px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.app-media { display: block; }
.app h3 { font-size: 24px; margin-bottom: 6px; }
.app-lead { font-size: 15px; }
.app .links { margin-top: 14px; gap: 22px; }
.app-more { opacity: .75; }

/* About */
.about-lead { max-width: 760px; font-size: 19px; line-height: 1.7; color: var(--ink); margin-bottom: 56px; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.col { border-top: 1px solid var(--line); padding-top: 22px; }
.col .label { margin-bottom: 10px; }
.col p:not(.label) { font-size: 15px; }

/* Dark sections: contact + product CTA */
.section-dark { background: var(--dark); color: var(--on-dark-muted); }
.section-dark h2 { color: var(--on-dark); }
.section-dark .label { color: var(--on-dark-muted); }
.contact-note { margin-top: 16px; font-size: 16px; color: var(--on-dark-muted); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.contact .section-head { margin-bottom: 0; }
.contact-list { margin: 0; border-top: 1px solid rgba(237, 231, 220, .16); }
.contact-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0;
  border-bottom: 1px solid rgba(237, 231, 220, .16);
}
.contact-row dt {
  font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track);
  font-size: 13px; color: var(--on-dark-muted); padding-top: 2px;
}
.contact-row dd { margin: 0; color: var(--on-dark); font-size: 16px; }
.contact-row dd a { text-decoration: none; border-bottom: 1px solid rgba(237, 231, 220, .35); }
.contact-row dd a:hover { border-color: var(--on-dark); }
.contact-row:first-child dd a { color: #E7A093; border-color: rgba(231, 160, 147, .5); }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo-box { color: var(--muted); }
.footer-note {
  font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track);
  font-size: 12px; color: var(--muted);
}

/* ── Product page ────────────────────────────────────────────────────────── */
.product-head { padding: 20px 0 70px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 12.5px; margin-bottom: 40px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; align-items: center; }
.page-title { font-size: clamp(40px, 5.2vw, 64px); letter-spacing: 0.05em; margin-bottom: 18px; }
.product-tagline { font-size: 19px; color: var(--ink); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.overview { max-width: 780px; margin-bottom: 60px; }
.audience {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 19px; line-height: 1.5; color: var(--ink); margin-bottom: 22px;
  padding-left: 18px; border-left: 1px solid var(--accent);
}
.body-text { font-size: 17px; line-height: 1.85; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--line); }
.spec { padding: 30px 0; border-bottom: 1px solid var(--line); }
.spec-title { font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.spec-num { color: var(--muted); margin-right: 12px; }
.spec ul { list-style: none; margin: 0; padding: 0; }
.spec li { font-size: 15px; padding: 5px 0 5px 20px; position: relative; }
.spec li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 22px;
  font-weight: 300; color: var(--muted); line-height: 1.2;
}
.sha { margin-top: 20px; font-size: 13px; color: var(--muted); }
.sha summary { cursor: pointer; font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track); }
.sha code { display: block; margin-top: 10px; word-break: break-all; font-size: 12px; }

.cta h2 { font-size: clamp(28px, 3.4vw, 42px); }
.cta .links { margin-top: 30px; }

.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 40px; }
.more-list li { border-top: 1px solid var(--line); }
.more-list a { display: block; padding: 16px 0; text-decoration: none; }
.more-name {
  display: block; font-family: var(--display); font-size: 19px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink); transition: color .2s;
}
.more-list a:hover .more-name { color: var(--accent); }
.more-cat { font-size: 12px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .entry { grid-template-columns: 1fr; gap: 26px; }
  .app-list { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; gap: 0; }
  .col { padding-bottom: 22px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-media { max-width: 420px; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 20px 0; }
  .logo-box { width: 62px; height: 62px; }
  .logo-box span:first-child { font-size: 12px; }
  .logo-box span:last-child { font-size: 7px; }
  .nav-links { gap: 16px; padding-top: 4px; }
  .nav-links a { font-size: 11.5px; letter-spacing: 0.1em; }
  .section { padding: 72px 0; }
  .section-tight { padding: 52px 0; }
  .entry-points { columns: 1; }
  .app { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
  .hero-statement { letter-spacing: 0.05em; }
}
