/* Alpcell — site styles. Light theme drawn from the logo: deep blue, sky blue, gold summit, teal. */
:root {
  --bg: #f6f8fb;
  --bg-2: #eef2f8;
  --card: #ffffff;
  --line: #dde4ee;
  --text: #0f1c33;
  --muted: #4f5d73;
  --dim: #8592a6;
  --deep: #003090;
  --blue: #0c54a8;
  --light: #3a8fd8;
  --gold: #c9a14f;
  --gold-soft: #d4b06a;
  --teal: #2f8a8a;
  --navy: #0b1a3a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 28, 51, .04), 0 8px 28px rgba(15, 28, 51, .06);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--blue); font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.gold { color: var(--gold); }
.tagline { font: 600 13px var(--mono); letter-spacing: .06em; color: var(--dim); }
.tagline span:nth-child(1) { color: var(--teal); }
.tagline span:nth-child(2) { color: var(--gold); }
.tagline span:nth-child(3) { color: var(--blue); }

/* ---------- nav ---------- */
nav.top { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 251, .85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; }
nav.top ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
nav.top ul a { color: var(--muted); font-size: 15px; font-weight: 500; }
nav.top ul a:hover, nav.top ul a[aria-current] { color: var(--text); text-decoration: none; }
nav.top ul a.btn { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--deep); color: #fff; border: 1px solid var(--deep); cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--blue); border-color: var(--blue); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--deep); background: var(--card); }
.btn.sm { padding: 7px 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before { content: ""; position: absolute; inset: -30% -15% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(58, 143, 216, .16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .tagline { margin-top: 26px; }
.hexwrap { display: flex; justify-content: center; }
.hexrange { width: 100%; max-width: 540px; height: auto; overflow: visible; }
.hexrange .cell { transform-box: fill-box; transform-origin: center; }
.hexrange.pre .cell { opacity: 0; transform: translateY(14px); }
.hexrange.rise .cell { opacity: 1; transform: none; transition: opacity .35s ease var(--d), transform .45s cubic-bezier(.2, .7, .2, 1) var(--d); }

/* page header (inner pages) */
.pagehead { padding: 72px 0 40px; }
.pagehead h1 { font-size: clamp(36px, 5vw, 54px); margin: 16px 0 16px; }
.pagehead p { font-size: 19px; color: var(--muted); max-width: 40em; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--navy); color: #e8eef8; }
section.dark .muted, section.dark .head p { color: #a9b6cc; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 14px; }
.head p { color: var(--muted); font-size: 17px; }

/* capability cards */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: 15.5px; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; }
.ico svg { width: 44px; height: 44px; }

/* disciplines */
.disc { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.disc > div { padding: 30px; }
.disc > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.disc h3 { font-size: 22px; margin: 12px 0 10px; }
.disc ul { margin: 0; padding: 0; list-style: none; color: #a9b6cc; font-size: 15px; }
.disc li { padding: 5px 0; }
.disc li::before { content: "⬢"; color: var(--gold-soft); font-size: 10px; margin-right: 10px; position: relative; top: -2px; }
.disc .eyebrow { color: var(--light); }
.industries { margin-top: 44px; }
.industries h3 { font-size: 22px; margin: 12px 0 20px; }
.industries ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.industries li { padding: 16px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.03); }
.industries li b { display: block; color: #fff; font-size: 16px; }
.industries li span { display: block; color: #a9b6cc; font-size: 14px; margin-top: 4px; line-height: 1.45; }
.joint { text-align: center; margin-top: 30px; font-size: 18px; color: #e8eef8; }
.joint b { color: var(--gold-soft); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 12px var(--mono); color: var(--dim); letter-spacing: .1em; }
.step h3 { font-size: 20px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step:nth-child(1) { border-color: var(--teal); }
.step:nth-child(2) { border-color: var(--gold); }
.step:nth-child(3) { border-color: var(--blue); }
.step:nth-child(4) { border-color: var(--deep); }

/* featured project */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: var(--shadow); }
.feature h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 14px; }
.feature p { color: var(--muted); font-size: 16.5px; }
.feature .shot { background: radial-gradient(closest-side, #eef2f8, transparent); border-radius: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font: 500 12.5px var(--mono); padding: 5px 11px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.chip.ai { background: rgba(212, 176, 106, .16); color: #8a6a24; border-color: rgba(212, 176, 106, .45); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; color: var(--deep); }
.stat span { color: var(--muted); font-size: 14px; }

/* about band */
.about > *, .case > *, .feature > *, .contact > * { min-width: 0; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(32px, 4vw, 46px); margin: 14px 0 16px; }
.about p { color: var(--muted); font-size: 18px; }
.about .tagline { margin-top: 20px; }

/* cta */
.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta p { color: var(--muted); font-size: 18px; margin: 14px auto 0; max-width: 34em; }
.cta .actions { justify-content: center; }

/* ---------- work page ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.case h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 16px; }
.case .lede { color: var(--muted); font-size: 18px; }
.learn { margin-top: 40px; }
.learn .card h3 { margin-top: 0; }
.project { display: flex; flex-direction: column; gap: 14px; }
.project .thumb { aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.project .chips { margin-top: auto; padding-top: 4px; }
.project h3 { margin: 4px 0 0; font-size: 22px; }
.project .soon { align-self: flex-start; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* ---------- contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact dl { margin: 0; display: grid; gap: 22px; }
.contact dt { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.contact dd { margin: 6px 0 0; font-size: 17px; }
form.card { display: grid; gap: 16px; }
/* The YappityYap embed on the contact page, in the site's own colours and
   type; set here, so it stays light whatever the visitor's system says. */
.yap-card { padding: 20px 24px; }
yap-thread {
  --yap-font: var(--sans);
  --yap-bg: var(--card);
  --yap-fg: var(--text);
  --yap-muted: var(--muted);
  --yap-border: var(--line);
  --yap-surface: var(--bg);
  --yap-accent: var(--deep);
  --yap-accent-fg: #ffffff;
  --yap-radius: 10px;
}
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: 15px var(--sans); padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--light); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note { font-size: 13px; color: var(--dim); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 16px; }
footer .brand img { height: 28px; width: auto; }
footer nav { display: flex; gap: 22px; }
footer nav a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .head, .feature, .about, .case, .contact { grid-template-columns: 1fr; }
  .grid.c3, .grid.c4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .disc { grid-template-columns: 1fr; }
  .industries ul { grid-template-columns: repeat(2, 1fr); }
  .disc > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .feature { padding: 28px; }
  .hexwrap { order: -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  nav.top ul { gap: 16px; }
  nav.top ul li.hide-sm { display: none; }
  .grid.c2, .grid.c3, .grid.c4, .steps, .stats, .row2, .industries ul { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
}
.project .more { font-weight: 600; font-size: 15px; }
