/* SB Coding — one stylesheet. Dark, editorial: black, warm white, orange accent. */
:root { --bg: #0E0E0E; --bg-2: #151515; --line: #262626; --ink: #EDEBE6; --muted: #A8A6A0; --dim: #7A7873; --num: #4A4945; --orange: #F28C28; --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Instrument Serif', Georgia, serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
.w { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 16px; background: var(--orange); color: #111; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* header */
.hd { position: sticky; top: 0; z-index: 5; background: rgba(14, 14, 14, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.sb { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.sb i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--bg); font-style: normal; font-size: 13px; letter-spacing: 0; }
.hd ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.hd ul a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.hd ul a:hover { color: var(--ink); }

/* hero */
.hero { padding: 96px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: end; }
.hero h1 { margin-top: 16px; font-size: clamp(44px, 6vw, 72px); line-height: 1.03; letter-spacing: -.04em; font-weight: 800; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--orange); }
.lead { font-size: 18px; color: var(--muted); }

/* companies */
.cos { padding-bottom: 40px; }
.row { display: grid; grid-template-columns: 90px 1.1fr 1.4fr 220px 40px; gap: 30px; align-items: center; padding: 40px 16px; margin: 0 -16px; border-top: 1px solid var(--line); border-radius: 4px; transition: background .25s; }
.row:last-child { border-bottom: 1px solid var(--line); }
a.row:hover { background: var(--bg-2); }
.n { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--num); transition: color .25s; }
a.row:hover .n { color: var(--orange); }
.nm b { display: block; font-size: 34px; line-height: 1.1; letter-spacing: -.03em; }
.nm .ar { display: block; margin: 6px 0 0 !important; white-space: nowrap; font-family: 'Changa', sans-serif; font-size: 24px; font-weight: 700; color: #F0C97A; margin-left: 6px; }
.k { display: block; margin-top: 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ds { font-size: 16.5px; color: #BBB9B3; }
.pic { height: 124px; border-radius: 14px; background: #222 center / cover no-repeat; transition: transform .35s ease; }
a.row:hover .pic { transform: scale(1.03); }
.go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
a.row:hover .go { background: var(--orange); border-color: var(--orange); color: #111; }
.row.next { opacity: .5; }
.row.next .nm b { color: var(--muted); }

/* about */
.about { padding: 90px 0; }
.about-in { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; max-width: 900px; }
.ph { width: 200px; height: 240px; border-radius: 16px; background: #222 center / cover no-repeat; filter: grayscale(1); }
.about h2, .contact h2 { margin: 10px 0 14px; font-size: 34px; letter-spacing: -.03em; }
.about p:not(.eyebrow), .contact p:not(.eyebrow) { font-size: 17px; color: var(--muted); max-width: 560px; }
.contact p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* contact */
.contact { padding: 70px 0 90px; border-top: 1px solid var(--line); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ct { display: grid; gap: 12px; }
.ct a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s; }
.ct a:hover { border-color: var(--orange); background: var(--bg-2); }
.ct span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ct b { font-size: 17px; overflow-wrap: anywhere; text-align: right; }

/* footer */
.ft { border-top: 1px solid var(--line); }
.ft-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 26px 40px 34px; font-size: 13.5px; color: var(--dim); }

/* reveal on scroll */
html.js .rv { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
html.js .rv.in { opacity: 1; translate: 0 0; }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .row { grid-template-columns: 56px 1fr 40px; grid-template-areas: "n nm go" "n ds ds" "n pic pic"; gap: 12px 18px; padding: 30px 12px; margin: 0 -12px; }
  .n { grid-area: n; font-size: 40px; } .nm { grid-area: nm; } .ds { grid-area: ds; } .pic { grid-area: pic; height: 150px; } .go { grid-area: go; }
  .row.next { grid-template-areas: "n nm ." "n ds ds"; }
  .contact-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .w { padding: 0 20px; } .ft-in { padding: 22px 20px 30px; }
  .hd ul { gap: 18px; } .hd ul li:nth-child(2) { display: none; }
  .hero { padding: 60px 0 36px; } .lead { font-size: 16.5px; }
  .nm b { font-size: 27px; } .nm .ar { display: block; margin: 4px 0 0; font-size: 20px; }
  .about { padding: 60px 0; } .about-in { grid-template-columns: 1fr; gap: 24px; } .ph { width: 160px; height: 190px; }
  .ct a { flex-direction: column; gap: 4px; } .ct b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } html.js .rv { opacity: 1; translate: none; transition: none; } * { transition: none !important; } }

/* Simple version: no menu, no about, contact on one line */
.contact { padding: 44px 0 52px; }
.contact-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; font-size: 20px; font-weight: 600; }
.contact-line .eyebrow { margin-right: 10px; }
.contact-line a { transition: color .2s; }
.contact-line a:hover { color: var(--orange); }
.contact-line .dot { color: var(--num); }
@media (max-width: 560px) { .contact-line { font-size: 17px; } .contact-line .dot { display: none; } .contact-line .eyebrow { flex-basis: 100%; } }

/* Header scrolls with the page; phone and email on the right */
.hd { position: static; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hd-ct { display: flex; align-items: baseline; gap: 14px; font-size: 15px; font-weight: 600; }
.hd-ct a { color: var(--ink); transition: color .2s; }
.hd-ct a:hover { color: var(--orange); }
.hd-ct .dot { color: var(--num); }
@media (max-width: 680px) { .hd-in { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; height: auto; padding-top: 18px; padding-bottom: 18px; } .hd-ct { flex-wrap: wrap; gap: 4px 12px; font-size: 14px; } }
.hd, .ft { border: 0; }

/* Compact: whole page fits on one laptop screen */
@media (min-width: 981px) {
  .hd-in { height: 64px; }
  .hero { padding: 44px 0 30px; }
  .hero h1 { margin-top: 10px; font-size: 54px; }
  .lead { font-size: 16px; }
  .row { padding: 22px 16px; gap: 26px; grid-template-columns: 70px 1.1fr 1.4fr 170px 36px; }
  .n { font-size: 46px; }
  .nm b { font-size: 26px; }
  .nm .ar { font-size: 19px; margin-top: 2px !important; }
  .k { margin-top: 5px; font-size: 11.5px; }
  .ds { font-size: 15px; line-height: 1.55; }
  .pic { height: 92px; border-radius: 12px; }
  .go { width: 36px; height: 36px; }
  .ft-in { padding: 22px 40px 26px; }
}
/* footer sits at the bottom of the screen; the brands sit in the middle */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* Centered header: logo, then email and phone; centered footer */
.hd-in, .hd-in[class] { flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: auto; padding-top: 22px; padding-bottom: 6px; }
.hd-ct { justify-content: center; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.hd-ct a { color: var(--muted); }
.ft-in { justify-content: center; text-align: center; }
@media (min-width: 981px) and (max-height: 760px) { .hero { padding: 28px 0 22px; } .row { padding: 18px 16px; } .pic { height: 84px; } .ft-in { padding: 14px 40px 18px; } }
/* contact under the copyright line */
.hd-in, .hd-in[class] { padding-bottom: 0; }
.ft-in { flex-direction: column; align-items: center; gap: 8px; }
.ft-ct { font-size: 14px; }
/* logo and footer aligned left */
.hd-in, .hd-in[class] { align-items: flex-start; }
.ft-in { align-items: flex-start; text-align: left; }
.ft-ct { justify-content: flex-start; }
/* fewer lines: only between the brands; more room under the heading so it reads as the page header */
.cos .row:first-child { border-top: 0; }
.cos .row:last-child { border-bottom: 0; }
@media (min-width: 981px) { .hero { padding-bottom: 56px; } .hero h1 { font-size: 58px; } }
@media (min-width: 981px) and (max-height: 760px) { .hero { padding-bottom: 36px; } }
@media (min-width: 981px) and (max-height: 800px) { .hero { padding-top: 18px; padding-bottom: 28px; } .hero h1 { font-size: 52px; } .row { padding-top: 13px; padding-bottom: 13px; } .pic { height: 78px; } }
/* hero uses the same columns as the brand rows, so the intro lines up with the descriptions */
@media (min-width: 981px) {
  .hero-in { grid-template-columns: 70px 1.1fr 1.4fr 170px 36px; column-gap: 26px; }
  .hero-in > div { grid-column: 1 / 3; }
  .hero-in > .lead { grid-column: 3 / 6; }
}

/* SB Coding logo: building blocks */
.sb .sb-mk { display: block; width: 34px; height: 34px; color: var(--ink); flex: none; }

/* brand logos next to the names, no screenshots */
.nmx { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nmx .nm { min-width: 0; }
.ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.ico.nb { border: 1.5px dashed #3A3A3A; color: #5A5A5A; font-size: 24px; font-weight: 300; box-shadow: none; }
@media (min-width: 981px) {
  .row, .hero-in { grid-template-columns: 70px 1.1fr 1.6fr 36px; }
  .hero-in > .lead { grid-column: 3 / 5; }
}
@media (max-width: 980px) {
  .row, .row.next { grid-template-areas: "n nm go" "n ds ds"; }
  .nmx { grid-area: nm; gap: 12px; }
  .ico { width: 42px; height: 42px; border-radius: 11px; }
}

/* background: faint SB logo tiles in the top-right corner, a few in orange */
.tiles-bg { position: absolute; top: 0; left: 0; right: 0; height: 100vh; min-height: 640px; overflow: hidden; pointer-events: none; z-index: 0;
  --fade-x: linear-gradient(to left, #000 0%, rgba(0,0,0,.7) 18%, rgba(0,0,0,.4) 36%, rgba(0,0,0,.18) 54%, rgba(0,0,0,.06) 72%, transparent 92%); --fade-y: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.7) 15%, rgba(0,0,0,.4) 35%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.06) 75%, transparent 95%); -webkit-mask-image: var(--fade-x), var(--fade-y); -webkit-mask-composite: source-in; mask-image: var(--fade-x), var(--fade-y); mask-composite: intersect; }
.tiles-bg svg { position: absolute; top: -20px; right: -40px; width: 1456px; height: auto; }
.tiles-bg rect { fill: #EDEBE6; opacity: .06; }
.tiles-bg rect.o { fill: var(--orange); opacity: .5; }
.hd, main, .ft { position: relative; z-index: 1; }
.hd { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
@media (max-width: 980px) {
  .tiles-bg { min-height: 0; height: 420px; -webkit-mask-image: radial-gradient(80% 70% at 100% 0%, #000 5%, transparent 70%); mask-image: radial-gradient(80% 70% at 100% 0%, #000 5%, transparent 70%); }
  .tiles-bg svg { width: 880px; right: -30px; }
  .tiles-bg rect { opacity: .05; } .tiles-bg rect.o { opacity: .4; }
}
