/* Layout: slim top bar → hero with a citrus-slice graphic bleeding off the right → featured company cards + "in the works" grid → about/contact split → footer */
:root {
  --orange: #f15a2a;
  --orange-deep: #d9481c;
  --orange-wash: #fff1eb;
  --bg: #fdfcfb;
  --surface: #ffffff;
  --ink: #23201f;
  --muted: #6c6763;
  --line: #ece6e2;
  --on-orange: #ffffff;
  --live: #2fb36b;
  --font-display: "Urbanist", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --orange: #ff6a3a; --orange-deep: #ff8457; --orange-wash: #2c1a13;
    --bg: #161413; --surface: #1f1c1b; --ink: #f3efec;
    --muted: #a8a19c; --line: #34302d; --on-orange: #1a0d08; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
}

/* top bar */
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--orange); }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-block: 72px 96px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; max-width: 11ch; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 20px; color: var(--muted); max-width: 46ch; margin: 24px 0 36px; }
.slice, .panel-slice {
  position: absolute; aspect-ratio: 1; border-radius: 50%;
  border: 26px solid var(--orange);
  background: repeating-conic-gradient(from 8deg, var(--orange) 0 37deg, transparent 37deg 45deg);
  -webkit-mask: radial-gradient(circle, #000 0 64%, transparent 64.5% 70%, #000 70.5%);
          mask: radial-gradient(circle, #000 0 64%, transparent 64.5% 70%, #000 70.5%);
}
.slice {
  z-index: 0; right: -170px; top: 50%; translate: 0 -50%;
  width: 560px; max-width: none; opacity: .11;
  animation: turn 90s linear infinite;
}
@keyframes turn { to { rotate: 360deg; } }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--orange); color: var(--on-orange); font-weight: 600;
  padding: 14px 24px; border-radius: 999px; transition: background .15s, translate .15s;
}
.btn:hover { background: var(--orange-deep); translate: 0 -1px; }

/* sections */
section.block .wrap { padding-block: 88px; }
.head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.head h2, .about h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }
.about h2 { margin-top: 10px; }

/* status pills */
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--orange-wash); color: var(--orange-deep);
}
.status.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }

/* featured company */
.featured-list { display: flex; flex-direction: column; gap: 24px; }
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.featured .info { padding: 44px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.featured h3 { font-size: 38px; font-weight: 800; }
.featured p { margin: 0; color: var(--muted); max-width: 48ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; list-style: none; font-size: 15px; }
.facts li::before { content: "✓"; color: var(--orange); font-weight: 700; margin-right: 8px; }
.visit { font-weight: 600; color: var(--orange); text-decoration: none; font-size: 18px; margin-top: 6px; }
.visit:hover { text-decoration: underline; text-underline-offset: 4px; }

.panel {
  position: relative; overflow: hidden; background: var(--orange); color: var(--on-orange);
  padding: 44px; min-height: 260px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center;
}
.panel-slice { width: 340px; right: -120px; bottom: -120px; border-color: var(--on-orange); opacity: .14;
  background: repeating-conic-gradient(from 8deg, var(--on-orange) 0 37deg, transparent 37deg 45deg); }
.panel-name { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.panel-host { position: relative; font-size: 15px; font-weight: 600; opacity: .9; }
.logo-tile { position: relative; background: #fff; border-radius: 18px; padding: 26px 30px; max-width: 320px; box-shadow: 0 14px 34px -16px rgba(0,0,0,.4); }
.logo-tile img { display: block; max-height: 90px; width: auto; margin: 0 auto; }

/* in the works */
.sub { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 56px 0 20px; display: flex; align-items: center; gap: 14px; }
.sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px; background: var(--bg); min-width: 0;
}
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange-wash); color: var(--orange); overflow: hidden;
}
.card .ic svg { width: 24px; height: 24px; }
.card .ic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.card h3 { font-size: 22px; font-weight: 700; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--orange); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .status { margin-top: auto; background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* about + contact */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.split > * { min-width: 0; }
.about p { color: var(--muted); max-width: 60ch; margin: 18px 0 0; }
.contact { border-radius: 20px; padding: 34px; background: var(--orange-wash); display: flex; flex-direction: column; gap: 14px; }
.contact h3 { font-size: 26px; font-weight: 700; }
.contact p { margin: 0; }
.mailrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mail { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--orange-deep); word-break: break-all; text-decoration: none; }
.mail:hover { text-decoration: underline; }
.copy {
  font: 600 14px var(--font-body); border: 1px solid var(--orange); background: transparent;
  color: var(--orange-deep); padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.copy:hover { background: var(--orange); color: var(--on-orange); }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 36px; font-size: 14px; color: var(--muted); }
footer img { height: 28px; width: auto; display: block; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--orange); }

/* 404 / error pages */
.simple .wrap { padding-block: 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.simple-logo { height: 40px; width: auto; }
.simple h1 { font-size: 44px; font-weight: 800; }
.simple p { color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .featured, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .brand img { height: 36px; }
  .hero .wrap { padding-block: 40px 64px; }
  .slice { width: 380px; right: -200px; top: 30%; }
  .featured .info, .panel { padding: 28px 24px; }
  .featured h3 { font-size: 30px; }
  section.block .wrap { padding-block: 64px; }
}

/* ---------- shared bits added for company pages ---------- */
.featured h3 a { text-decoration: none; }
.featured h3 a:hover { color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.featured .visit { margin-top: 0; }
.ghost { font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.ghost:hover { color: var(--orange); border-color: var(--orange); }
a.panel { text-decoration: none; transition: filter .2s; }
a.panel:hover { filter: brightness(1.05); }
a.panel:hover .panel-slice { rotate: 20deg; }
.panel-slice { transition: rotate .6s ease; }

.card { position: relative; transition: border-color .15s, translate .15s, box-shadow .15s; }
.card:hover { border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); translate: 0 -2px; box-shadow: 0 14px 30px -20px rgba(0,0,0,.35); }
.card .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .stretch:focus-visible { outline: none; }
.card:has(.stretch:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .card-foot .status { margin-top: 0; }
.card .more { font-size: 14px; font-weight: 600; color: var(--orange); opacity: 0; translate: -4px 0; transition: opacity .15s, translate .15s; }
.card:hover .more, .card:focus-within .more { opacity: 1; translate: 0 0; }
@media (hover: none) { .card .more { opacity: 1; translate: 0 0; } }

/* ---------- company page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs span:last-child { color: var(--ink); font-weight: 500; }
.co-hero .wrap { padding-block: 24px 56px; }
.co-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.co-title { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.co-title h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.tagline { font-size: 21px; color: var(--muted); margin: 0; max-width: 40ch; }
.co-title .actions { margin-top: 10px; }
.co-mark {
  position: relative; overflow: hidden; border-radius: 26px; background: var(--orange); color: var(--on-orange);
  aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: center; padding: 32px;
}
.co-mark .panel-slice { width: 70%; right: -22%; bottom: -26%; }
.co-icon { position: relative; width: 120px; height: 120px; border-radius: 30px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.co-icon svg { width: 60px; height: 60px; }

.co-body { border-top: 1px solid var(--line); background: var(--surface); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-block: 64px 80px; align-items: start; }
.co-main h2, .glance h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.co-main p { color: var(--muted); max-width: 64ch; margin: 0 0 16px; font-size: 17.5px; }
.gal-title { margin-top: 44px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .3s; }
.gallery a:hover img { scale: 1.04; }
.gallery figcaption { font-size: 14px; color: var(--muted); }

.glance { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.glance h2 { font-size: 22px; margin-bottom: 6px; }
.glance h3 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 18px 0 8px; }
.glance dl { margin: 0; display: flex; flex-direction: column; }
.glance dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.glance dd a { color: var(--orange); text-decoration: none; }
.glance dd a:hover { text-decoration: underline; }
.facts.stack { flex-direction: column; margin: 0; }
.linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.linklist a { color: var(--orange-deep); font-weight: 600; text-decoration: none; font-size: 15px; }
.linklist a:hover { text-decoration: underline; }
.more-cos .wrap { padding-block: 64px; }
.more-cos .sub { margin-top: 0; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 8, 7, .88); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: #eee; font-size: 15px; text-align: center; }
.lightbox button { background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; justify-self: center; }
.lightbox button:hover { background: var(--orange); }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

/* visitor sitemap */
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; width: 100%; }
.sitemap h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.sitemap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sitemap a { color: var(--orange-deep); text-decoration: none; font-weight: 500; }
.sitemap a:hover { text-decoration: underline; }
.dim { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .co-head, .co-grid { grid-template-columns: 1fr; }
  .co-grid { gap: 40px; }
  .glance { position: static; }
  .co-mark { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lightbox button { width: 38px; height: 38px; font-size: 22px; }
  .co-grid { padding-block: 44px 56px; }
}
