/* ==========================================================================
   ByteOnyx — home page styles
   Polished stone, not neon: restraint, hairlines, real type, a little grain.
   No web fonts from a CDN (self-hosted below), no JS framework, no trackers.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
  --ink:        #111114;
  --surface:    #17171b;
  --card:       #1c1c21;
  --card-hi:    #232329;

  --gold:       #e6bb55;
  --gold-deep:  #c9a24d;
  --cream:      #f2f2f5;
  --muted:      #b9b9c4;
  --muted-dim:  #8c8c97;

  --line:       rgba(255, 255, 255, .10);
  --line-soft:  rgba(255, 255, 255, .05);

  --shadow-sm:  0 2px 10px rgba(0, 0, 0, .38);
  --shadow-md:  0 14px 34px rgba(0, 0, 0, .48);
  --shadow-lg:  0 30px 70px rgba(0, 0, 0, .58);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --pad: clamp(20px, 5vw, 40px);
  --maxw: 1160px;

  --sans:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont,
             "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* a faint dark grain so the black reads as stone, not a flat #000 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .028;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--gold); color: #201406; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px; top: 16px;
  z-index: 1000;
  background: var(--gold);
  color: #201406;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
}

/* ---------------------------------------------------------------- type --- */

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 52ch;
}

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

.gold { color: var(--gold); }

/* a text link with a thin underline that slides in on hover/focus */
.link-slide {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size .22s ease;
  padding-bottom: 1px;
}
.link-slide:hover, .link-slide:focus-visible {
  text-decoration: none;
  background-size: 100% 1px;
}

/* -------------------------------------------------------------- header --- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 17, 20, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-head { background: var(--ink); }
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 1.06rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: .95rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--cream); border-bottom-color: var(--gold-deep); }

.head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

@media (max-width: 700px) {
  .nav { display: none; }
  .head-actions { margin-left: auto; }
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: -.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease,
              background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #201406;
  box-shadow: 0 6px 20px rgba(201, 162, 77, .25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(201, 162, 77, .32); }

.btn-ghost {
  background: rgba(255, 255, 255, .035);
  color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }

.btn-sm { padding: 9px 18px; font-size: .89rem; }

/* ---------------------------------------------------------------- hero --- */

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(36px, 6vw, 64px); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phone { order: -1; max-width: 220px; margin: 0 auto; }
}

/* ------------------------------------------------------- phone mockup --- */

.hero-phone { display: grid; place-items: center; }

.phone {
  position: relative;
  width: clamp(200px, 22vw, 280px);
  aspect-ratio: 9 / 19.3;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2a2a30, #0c0c0e);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(-3deg);
}

.phone::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 16px;
  background: #0c0c0e;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: var(--surface);
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ sections --- */

section { padding: clamp(44px, 7vw, 84px) 0; }

.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 46px); }

.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* --------------------------------------------------------- trust strip --- */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding-top: clamp(28px, 4vw, 40px);
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-soft);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .93rem;
  color: var(--muted);
}
.trust-item svg { width: 19px; height: 19px; flex: 0 0 auto; stroke: var(--gold-deep); }

/* ------------------------------------------------------------- projects --- */

.projects-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.featured {
  flex: 2 1 0%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.featured:hover {
  border-color: rgba(230, 187, 85, .3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.featured-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.featured-top img.icon {
  width: 62px; height: 62px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.featured-top .body { min-width: 0; }
.featured-top h3 { font-size: 1.4rem; margin-bottom: 6px; }
.featured-top p { color: var(--muted); margin-bottom: 12px; max-width: 46ch; }

.tag {
  display: inline-block;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-dim);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
}

.featured-shots { display: flex; gap: 12px; flex-wrap: wrap; }
.featured-shots img {
  width: 104px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.featured-shots img:hover { transform: translateY(-2px); }

.soon-card {
  flex: 1 1 0%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  color: var(--muted-dim);
}
.soon-card .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.soon-card h3 { color: var(--muted); margin-bottom: 4px; font-size: 1.02rem; }
.soon-card p { margin-bottom: 0; font-size: .92rem; }

@media (max-width: 820px) {
  .projects-row { flex-direction: column; }
  .soon-card { max-width: none; }
}

/* ------------------------------------------------------------- about --- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 52px);
  margin-top: 26px;
}
.stat-item b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--cream);
}
.stat-item span {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 2px;
}

/* -------------------------------------------------------------- footer --- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 56px;
  color: var(--muted-dim);
  font-size: .9rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
}
.foot-brand img { width: 22px; height: 22px; border-radius: 6px; }
.site-foot nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.site-foot nav a { color: var(--muted); padding: 6px 0; display: inline-block; }
.site-foot a { color: var(--muted); }
