/* ============================================================
   SylanOps - public site styles (light theme)
   Brand: electric cyan + blue, deep navy ink
   ============================================================ */

:root {
  --page: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eef4f9;
  --surface-3: #e4eef6;

  --ink: #0d2033;
  --ink-2: #40586e;
  --ink-3: #6d8496;

  --cyan: #0891b2;
  --cyan-bright: #22d3ee;
  --blue: #1f6feb;
  --blue-deep: #1250b8;

  --line: #dde8f1;
  --line-strong: #c4d7e6;

  --ok: #059669;
  --warn: #b45309;
  --err: #dc2626;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 100%;
  --gutter: clamp(20px, 3.2vw, 64px);
  --shadow: 0 10px 30px rgba(13, 32, 51, 0.07);
  --shadow-lg: 0 20px 48px rgba(13, 32, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Aptos', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft brand wash at the top of the page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 38rem at 10% -12%, rgba(31, 111, 235, 0.10), transparent 62%),
    radial-gradient(52rem 34rem at 96% -4%, rgba(34, 211, 238, 0.14), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; letter-spacing: -0.022em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  color: #ffffff; box-shadow: 0 8px 22px rgba(31, 111, 235, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(31, 111, 235, 0.36); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: .58rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(255,255,255,.94); box-shadow: 0 2px 14px rgba(13,32,51,.05); }
/* Logo | section links | actions. The two side columns share the leftover space
   equally, so the links sit in the true centre of the page. On a narrow desktop
   the side columns shrink first and nothing ever overlaps. The nav element itself
   steps out of the layout (display: contents) so its two groups are the columns;
   on phones it becomes the drop-down again. */
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 76px; }
.header-inner .brand { justify-self: start; }
.site-nav { display: contents; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 1.7rem; }
.nav-links { grid-column: 2; }
.nav-actions { grid-column: 3; justify-self: end; }

.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-tag { font-size: .68rem; color: var(--ink-3); letter-spacing: .09em; text-transform: uppercase; }

.site-nav a { color: var(--ink-2); font-size: .94rem; font-weight: 500; position: relative;
  display: inline-flex; align-items: center; gap: .42rem; }
.nav-ico { display: inline-flex; }
.nav-ico svg { width: 16px; height: 16px; opacity: .62; transition: opacity .18s ease; }
.site-nav a:hover .nav-ico svg, .site-nav a.is-active .nav-ico svg { opacity: 1; }
.site-nav .btn .nav-ico svg { opacity: .9; width: 15px; height: 15px; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan-bright)); border-radius: 2px;
}
.site-nav .btn::after { display: none; }
.site-nav .btn { color: #fff; }


.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- sections ---------------- */
.section { padding: 5.5rem 0; }
.section-tight { padding: 2rem 0 1rem; }
.section-head { max-width: 64ch; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--cyan); }
.section-head.center .eyebrow::before { display: none; }

/* ---------------- hero ---------------- */
.hero { padding: 5rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.08rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); width: 100%; max-width: 560px; justify-self: end;
  padding: 1.4rem; box-shadow: var(--shadow-lg);
}
.hero-panel-bar { display: flex; gap: .4rem; margin-bottom: 1rem; }
.hero-panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.hero-panel-bar i:first-child { background: #f87171; }
.hero-panel-bar i:nth-child(2) { background: #fbbf24; }
.hero-panel-bar i:nth-child(3) { background: #34d399; }
.hero-line { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.hero-line:last-child { border-bottom: 0; }
.hero-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.hero-line .label { color: var(--ink-2); flex: 1; }
.hero-line .val { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------- stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: var(--surface); padding: 1.6rem 1.2rem; text-align: center; }
.stat .value { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; background: linear-gradient(120deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { font-size: .82rem; color: var(--ink-2); letter-spacing: .04em; }

/* ---------------- cards ---------------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .5rem; color: var(--ink); }
.card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 1rem; }
.card .card-foot { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; }
.card:hover .card-foot { gap: .7rem; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(31,111,235,.12), rgba(34,211,238,.16));
  border: 1px solid var(--line); margin-bottom: 1.1rem; color: var(--blue);
}
.icon-badge svg { width: 22px; height: 22px; }

/* project card - same tone-driven treatment as the services cards above, so
   an accent bar, an accent chip and a colour-matched button all read as one
   family of "case study" cards. */
.project-card { position: relative; padding: 0; overflow: hidden; }
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 1;
  background: var(--tone, var(--blue)); border-radius: var(--radius) var(--radius) 0 0;
}
.project-thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(140deg, var(--tone-soft-2, var(--surface-2)), var(--tone-soft, var(--surface-3)));
  display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative; padding: .9rem;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb .initials { font-size: 2.4rem; font-weight: 800; color: rgba(31,111,235,.30); letter-spacing: -.04em; }
.project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-card .chip { color: var(--tone, var(--ink-3)); border-color: var(--tone-soft, var(--line)); background: var(--tone-soft-2, transparent); }

/* ---------- generated "app window" preview ----------
   Stands in for a real screenshot: a believable but clearly illustrative
   sliver of product UI (nav + a few skeleton rows), tinted to the card's
   tone, built from the project's own copy rather than any invented data. */
.mock-window {
  width: 100%; height: 100%; border-radius: 10px; overflow: hidden; display: flex;
  background: var(--surface); box-shadow: 0 10px 24px rgba(13, 32, 51, .12);
}
.mock-side {
  flex: 0 0 34%; background: var(--tone, var(--blue)); color: #fff;
  padding: .7rem .6rem; display: flex; flex-direction: column; gap: .4rem;
}
.mock-app {
  display: flex; align-items: center; gap: .3rem; font-size: .64rem; font-weight: 700;
  padding-bottom: .5rem; margin-bottom: .15rem; border-bottom: 1px solid rgba(255,255,255,.28);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-app svg { width: 12px; height: 12px; flex: none; opacity: .9; }
.mock-nav {
  font-size: .6rem; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; padding: .18rem 0;
}
.mock-body { flex: 1; padding: .6rem .65rem; display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.mock-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  font-size: .64rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden;
}
.mock-topbar span:first-child { overflow: hidden; text-overflow: ellipsis; }
.mock-new {
  flex: none; font-size: .56rem; font-weight: 700; color: #fff; background: var(--tone, var(--blue));
  border-radius: 5px; padding: .16rem .4rem;
}
.mock-row { display: flex; align-items: center; gap: .3rem; padding: .28rem 0; border-top: 1px dashed var(--line); }
.mock-row:first-of-type { border-top: 0; }
.mock-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone-soft, var(--line)); border: 1.5px solid var(--tone, var(--line-strong)); }
.mock-bar { display: block; height: 5px; border-radius: 3px; background: var(--surface-3); }
.mock-bar-a { flex: 1 1 40%; }
.mock-bar-b { flex: 1 1 25%; opacity: .6; }
.mock-badge { flex: none; font-size: .5rem; font-weight: 700; color: var(--tone, var(--blue)); background: var(--tone-soft, var(--surface-2)); border-radius: 4px; padding: .1rem .3rem; }
.chip {
  display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: .18rem .65rem; margin-bottom: .8rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag { font-size: .74rem; padding: .22rem .6rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }

/* ---------------- services grid ---------------- */
.services-head { max-width: 62ch; margin: 0 auto 3.2rem; text-align: center; }
.services-head h2 { margin-bottom: .7rem; color: var(--ink); text-wrap: balance; }
.services-head .lead { margin: 0 auto; text-wrap: balance; }

/* Services: deliberately plain - a quiet label, a dark heading, flat cards
   with one accent colour, and a text link rather than a button per card. */
.services-eyebrow {
  display: inline-block; margin-bottom: .8rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}

.service-card { padding: 1.7rem 1.6rem 1.5rem; box-shadow: none; }
.service-card:hover { transform: none; border-color: #b9cde0; box-shadow: 0 10px 28px rgba(13, 32, 51, .07); }
.service-card h3 { font-size: 1.08rem; line-height: 1.35; }
.service-card p { font-size: .93rem; line-height: 1.6; }
.service-card .icon-badge {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 1.1rem;
  color: var(--blue); background: #f0f5fb; border: 1px solid var(--line);
}
.service-card .icon-badge svg { width: 19px; height: 19px; }
/* Shared by the services and the case-study cards: plain ticks and a text
   link instead of filled circles and a button. */
.service-card .check-list,
.project-card .check-list { gap: .45rem; margin-bottom: 1.4rem; }
.service-card .check-list li,
.project-card .check-list li { align-items: flex-start; font-size: .88rem; }
.service-card .check-dot,
.project-card .check-dot {
  width: auto; height: auto; border-radius: 0; background: none;
  color: var(--blue); font-size: .8rem; line-height: 1.6;
}
.service-card .card-cta,
.project-card .card-cta {
  padding: 0; border-radius: 0; background: none; color: var(--blue);
  font-size: .9rem; font-weight: 600; gap: .4rem;
}
.service-card:hover .card-cta,
.project-card:hover .card-cta { gap: .65rem; filter: none; }

/* Case studies: no accent bar, the screenshot fills a frame of one fixed
   shape (so every title lines up across a row), and the industry reads as a
   quiet label rather than a pill. */
.project-card { box-shadow: none; }
.project-card::before { display: none; }
.project-card:hover { transform: none; border-color: #b9cde0; box-shadow: 0 10px 28px rgba(13, 32, 51, .07); }
.project-card .project-thumb { padding: 0; background: #eef3f8; }
.project-card .project-thumb img { position: absolute; inset: 0; object-position: top center; }
.project-card .project-thumb .mock-window { margin: .9rem; height: calc(100% - 1.8rem); width: calc(100% - 1.8rem); }
.project-card .project-body { padding: 1.3rem 1.5rem 1.5rem; }
.project-card .chip {
  padding: 0; border: 0; border-radius: 0; background: none; margin-bottom: .45rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-3);
}
.project-card h3 { font-size: 1.08rem; line-height: 1.35; }
.project-card p { font-size: .93rem; line-height: 1.6; }

.check-list { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .5rem; position: relative; z-index: 1; }
.check-list li { display: flex; align-items: center; gap: .6rem; font-size: .87rem; color: var(--ink-2); }
.check-dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: .62rem; font-weight: 700; color: #fff; background: var(--tone, var(--blue));
}

.card-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  padding: .68rem 1.15rem; border-radius: 10px; font-size: .87rem; font-weight: 600;
  color: #fff; background: var(--tone, var(--blue)); transition: gap .18s ease, filter .18s ease;
}

/* ---------------- work / case studies ---------------- */
.work-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5rem; margin-bottom: 3rem; }
.work-top .section-head { margin-bottom: 0; }

.work-foot { display: flex; justify-content: center; margin-top: 2.6rem; }
.js-more-toggle .js-more-arrow { display: inline-block; transition: transform .2s ease; }
.js-more-toggle[aria-expanded="true"] .js-more-arrow { transform: rotate(90deg); }

@media (max-width: 900px) {
  .work-top { flex-direction: column; }
}

/* ---------------- process ---------------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.process-step { position: relative; padding-top: 2.6rem; }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: .82rem; font-weight: 800; color: var(--cyan);
  letter-spacing: .1em;
}
.process-step::after {
  content: ''; position: absolute; top: 1.9rem; left: 0; right: -1.2rem; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.process-step:last-child::after { right: 0; }
.process-step h3 { font-size: 1rem; margin-bottom: .35rem; }
.process-step p { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* ---------------- values / team / testimonial ---------------- */
.value-row { display: flex; gap: 1rem; align-items: flex-start; }
.value-row .bullet { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-top: .65rem; flex: none; }

/* ---------------- team ---------------- */
/* Plain and professional: photo, then name and role in ordinary type, then
   contact lines. No overlay, no zoom, no lift. */
.team-grid {
  display: grid; gap: 1.5rem; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
}

.person-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.person-card:hover { border-color: #b9cde0; box-shadow: 0 10px 28px rgba(13, 32, 51, .07); }

/* photo, or a plain panel with the initials */
.person-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #e9eff5; }
.person-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
}
.person-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3rem; font-weight: 700; letter-spacing: -.03em; color: #9fb3c6;
}

.person-foot { padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: .45rem; align-content: start; }
.person-id { margin-bottom: .35rem; }
.person-id h3 { font-size: 1.05rem; margin: 0 0 .1rem; color: var(--ink); }
.person-role { font-size: .86rem; font-weight: 500; color: var(--ink-3); }
.person-bio { font-size: .9rem; color: var(--ink-2); margin: 0 0 .3rem; }
.person-foot a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .86rem; color: var(--ink-2); word-break: break-word;
}
.person-foot a:hover { color: var(--blue); }
.person-foot a span { display: inline-flex; flex: none; color: var(--ink-3); }
.person-foot svg { width: 15px; height: 15px; }

.quote {
  border-left: 3px solid var(--cyan); padding: .2rem 0 .2rem 1.4rem; margin: 0;
  font-size: 1.05rem; color: var(--ink);
}
.quote cite { display: block; margin-top: .8rem; font-style: normal; font-size: .86rem; color: var(--ink-3); }

/* ---------------- cta band ---------------- */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(31,111,235,.08), rgba(34,211,238,.12));
  padding: 3rem; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 1.8rem; }

/* ---------------- page header ---------------- */
.page-head { padding: 3.5rem 0 1rem; }
/* Inner pages get a calmer title than the home page hero. */
.page-head h1 { margin-bottom: .6rem; font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.03em; text-wrap: balance; }
.breadcrumb { font-size: .84rem; color: var(--ink-3); margin-bottom: 1rem; }
/* A plain way back to the list this page came from. */
.page-back {
  display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1rem;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
}
.page-back:hover { color: var(--blue); }

/* case study: the hint above the screenshots, and where to go next */
.hint-line { font-size: .88rem; color: var(--ink-3); margin: -.4rem 0 1rem; }
.next-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.next-link { display: grid; gap: .15rem; color: var(--ink); }
.next-link:hover { color: var(--blue); }
.next-k { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.next-t { font-size: 1.15rem; font-weight: 700; }
.breadcrumb a { color: var(--ink-2); }

/* ---------------- forms ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--ink-3); }
input, select, textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .78rem .9rem; transition: border-color .18s ease, box-shadow .18s ease; width: 100%;
}
input::placeholder, textarea::placeholder { color: #9db0c0; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.14);
}
textarea { resize: vertical; min-height: 140px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.flash { border-radius: 10px; padding: .85rem 1.1rem; margin-bottom: 1.4rem; font-size: .92rem; border: 1px solid; }
.flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.error-list { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: .9rem 1.1rem .9rem 2.2rem; margin-bottom: 1.4rem; color: #991b1b; font-size: .9rem; }
.error-list li { margin: .2rem 0; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.contact-item { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.contact-item .v { font-weight: 600; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a {
  font-size: .85rem; padding: .42rem 1rem; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink-2);
}
.filters a.is-active, .filters a:hover { border-color: var(--blue); color: var(--blue); }

/* detail pages */
.detail-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 3rem; align-items: start; }
.detail-body h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { color: var(--ink-2); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.6rem; position: sticky; top: 100px; }
.side-card h4 { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.side-card .meta-row span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.side-card .tags { margin-top: .4rem; }
/* One plain button, the same weight as the rest of the page - not a banner. */
.side-card .btn {
  border-radius: 8px; padding: .75rem 1rem; font-size: .95rem; font-weight: 600;
  background: var(--blue); box-shadow: none;
}
.side-card .btn:hover { background: #1858c4; box-shadow: none; transform: none; }
.feature-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.feature-list li { display: flex; gap: .7rem; padding: .45rem 0; font-size: .93rem; color: var(--ink-2); }
.feature-list li::before { content: '✓'; color: var(--cyan); font-weight: 700; flex: none; }

.meta-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.meta-row:last-child { border-bottom: 0; }
.meta-row .k { color: var(--ink-3); }

/* ---------------- sign-in ---------------- */
.auth-section { padding: 5rem 0 6.5rem; }
.auth-wrap { display: grid; place-items: center; }

.auth-shell {
  width: 100%; max-width: 580px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
}

.auth-main { padding: 3rem 3.2rem 3.2rem; }
.auth-main h1 { font-size: 1.7rem; margin-bottom: .3rem; text-align: center; }
.auth-main .auth-sub { color: var(--ink-2); font-size: .95rem; margin-bottom: 2rem; text-align: center; }
.auth-form .field { margin-bottom: 1.2rem; }
.auth-form .btn { margin-top: .8rem; }
.auth-foot { margin: 1.6rem 0 0; font-size: .82rem; color: var(--ink-3); text-align: center; }

/* inputs with a leading icon and a reveal toggle */
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-left: 2.7rem; }
.input-wrap input[type="password"], .input-wrap input#password { padding-right: 2.9rem; }
.input-ico {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; color: var(--ink-3); pointer-events: none;
}
.input-ico svg { width: 18px; height: 18px; }
.input-wrap input:focus ~ .input-ico { color: var(--blue); }
.input-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--ink-3);
  display: inline-flex; border-radius: 8px; line-height: 0;
}
.input-toggle:hover { color: var(--blue); background: var(--surface-2); }
.input-toggle svg { width: 18px; height: 18px; }

/* error page */
.error-page { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 3.5rem 0 1.5rem; background: var(--surface); }
.footer-logo { height: 52px; width: auto; margin-bottom: 1.1rem; }
.footer-col h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; color: var(--ink-2); font-size: .92rem; padding: .28rem 0; }
.footer-col a:hover { color: var(--blue); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 2.5rem; }

.footer-link {
  display: flex !important; align-items: flex-start; gap: .6rem;
}
.footer-link-ico {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-top: .05rem; color: var(--ink-3);
}
.footer-link-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.socials { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: var(--ink-3);
}
.admin-link { margin-left: 1.2rem; color: var(--ink-3); }
.admin-link:hover { color: var(--blue); }

/* ---------------- motion ----------------
   Quiet and quick: things fade up as they arrive, never bounce or spin.
   Content is only ever hidden-before-reveal under html.has-reveal, which
   main.js sets in the same step that starts watching the page - so if the
   script is off or fails, nothing is left invisible. And all of it sits
   inside (prefers-reduced-motion: no-preference): anyone who has asked their
   device for less motion gets every element shown in place, still. main.js
   also adds .reveal to section headings and forms, staggers siblings through
   --d, counts the numbers up and draws the process line. */
@media (prefers-reduced-motion: no-preference) {
  /* Only the waiting state is styled: once an element has arrived, main.js
     drops .reveal so its own hover lift and transitions work normally. */
  .has-reveal .reveal {
    transition: opacity .65s cubic-bezier(.2, .7, .2, 1), transform .65s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0ms);
  }
  .has-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }

  /* The hero is on screen at load, so it animates in on its own rather
     than waiting for a scroll. */
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes slide-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
  .hero .eyebrow     { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1           { animation: rise .7s .08s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .hero-sub    { animation: rise .7s .18s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .hero-actions { animation: rise .7s .28s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .hero-panel,
  .has-reveal .hero .hero-panel.reveal { animation: slide-in .8s .2s cubic-bezier(.2, .7, .2, 1) both; transition: none; opacity: 1; transform: none; }
  .hero .hero-line   { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .hero-line:nth-child(2) { animation-delay: .45s; }
  .hero .hero-line:nth-child(3) { animation-delay: .53s; }
  .hero .hero-line:nth-child(4) { animation-delay: .61s; }
  .hero .hero-line:nth-child(5) { animation-delay: .69s; }
  .hero .hero-line:nth-child(6) { animation-delay: .77s; }

  /* Process: the line above the steps draws across, one step after another. */
  .has-reveal .steps .step::before {
    content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left center;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  }
  .steps.is-visible .step::before { transform: scaleX(1); }
  .steps.is-visible .step:nth-child(2)::before { transition-delay: .35s; }
  .steps.is-visible .step:nth-child(3)::before { transition-delay: .7s; }
  .steps.is-visible .step:nth-child(4)::before { transition-delay: 1.05s; }
  .steps.is-visible .step:nth-child(5)::before { transition-delay: 1.4s; }
  .steps.is-visible .step:nth-child(6)::before { transition-delay: 1.75s; }

  /* Header links: the underline slides in from the left on hover, and on the
     section you are in, instead of simply appearing. */
  .nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan-bright)); border-radius: 2px;
    transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
  }
  .nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

  /* A case study's screenshot leans in a little under the pointer. */
  .project-card .project-thumb img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .project-card:hover .project-thumb img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------------- responsive ---------------- */
@media (min-width: 1500px) {
  .grid-3 { grid-template-columns: repeat(4, 1fr); }
  .hero-sub { max-width: 62ch; }
  .lead { max-width: 78ch; }
  .section-head { max-width: 78ch; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; justify-self: start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .auth-section { padding: 2.5rem 0 4rem; }
  .auth-main { padding: 2rem 1.7rem 2.2rem; }
  .auth-main h1 { font-size: 1.45rem; }
}

/* The header needs ~1050px for logo + five links + the two actions side by
   side; below that it becomes the tap-to-open menu rather than squeezing. */
@media (max-width: 1080px) {
  .header-inner { display: flex; justify-content: space-between; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.4rem; display: none; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .nav-links, .nav-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); gap: .6rem; }
  .site-nav .nav-ico svg { width: 18px; height: 18px; }
  .site-nav a.is-active::after, .site-nav .nav-links a::after { display: none; }
  .site-nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}
@media (max-width: 1080px) and (prefers-reduced-motion: no-preference) {
  @keyframes menu-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .site-nav.is-open { animation: menu-drop .2s ease both; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: minmax(0, 340px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .cta-band { padding: 2rem 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .brand-logo { height: 36px; }
}

/* ---------- case study screenshots ---------- */
.case-cover-figure { margin: 0 0 2.2rem; }
.case-cover-link { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px rgba(13, 32, 51, .08); }
.case-cover {
  width: 100%; max-height: 520px; object-fit: cover; object-position: top center;
  border-radius: 12px; border: 1px solid var(--line);
  display: block; transition: opacity .18s ease, transform .18s ease;
}
.case-cover-link:hover .case-cover { opacity: .94; }

.shots {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; margin: 0 0 2.4rem;
}
.shot-card { margin: 0; }
.shot-card a {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shot-card a:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(13, 32, 51, .12); }
.shot-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.shot-card figcaption { font-size: .84rem; color: var(--ink-3); padding: .55rem .1rem 0; }

/* the enlarged view - a full-page screenshot can be much taller than any
   screen, so the overlay scrolls to it at a readable width instead of
   shrinking it down to fit. */
body.has-lightbox { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: safe center;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(9, 22, 36, .9);
  animation: lb-in .16s ease;
  /* No backdrop-filter here - it would make this scrolling element the
     containing block for the fixed close button below, so the button would
     scroll away with a tall screenshot instead of staying put. */
}
@keyframes lb-in { from { opacity: 0 } to { opacity: 1 } }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); flex: none; }
.lightbox img {
  display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain;
  border-radius: 10px; background: #fff; box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
}
.lightbox figcaption { color: #e7eef5; text-align: center; font-size: .9rem; padding-top: .8rem; }
.lightbox-close {
  position: fixed; top: 1rem; right: 1.2rem; width: 42px; height: 42px;
  border: none; background: transparent; cursor: pointer;
  color: #ef4444; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { color: #f87171; }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2001;
  width: 48px; height: 48px;
  border: none; background: transparent; cursor: pointer;
  color: #ef4444; font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { color: #f87171; }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-prev { left: .4rem; }
  .lightbox-next { right: .4rem; }
}

/* ---------------- phones: readable text, thumb-sized links ----------------
   Every link you tap is at least ~40px tall, and no label drops below 12px. */
@media (max-width: 760px) {
  .footer-col a { padding: .6rem 0; }
  .person-foot a { min-height: 40px; align-items: center; }
  .page-back { min-height: 40px; }
  .side-card .meta-row a { display: inline-flex; align-items: center; min-height: 40px; }
  .next-link { padding: .4rem 0; }

  .eyebrow, .services-eyebrow, .sx-eyebrow { font-size: .78rem; }
  .chip, .project-card .chip { font-size: .76rem; }
  .tag { font-size: .8rem; }

  /* the two hero buttons sit side by side, full width between them */
  .hero-actions .btn { flex: 1 1 0; justify-content: center; padding-inline: 1rem; }
}
