/* Advisory Consulting Ltd */

:root {
  --bg: #f3f4f1;
  --bg-alt: #e9ebe6;
  --surface: #fbfbfa;
  --ink: #141a18;
  --muted: #4a5450;
  --line: #d6dad4;
  --line-strong: #9aa39e;
  --accent: #1d4a3c;
  --accent-hover: #153a2f;
  --accent-ink: #f3f4f1;
  --accent-soft: #e1e9e4;
  --danger: #a3261b;
  --danger-soft: #f7e4e1;
  --success-soft: #e1ede6;

  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101413;
    --bg-alt: #161b19;
    --surface: #1a201e;
    --ink: #e8ece9;
    --muted: #a6b0ab;
    --line: #2b3330;
    --line-strong: #5b6762;
    --accent: #8fc5ab;
    --accent-hover: #a9d6c0;
    --accent-ink: #0d1714;
    --accent-soft: #1e2b26;
    --danger: #f19385;
    --danger-soft: #2e1b18;
    --success-soft: #1b2a23;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

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

address { font-style: normal; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 58ch;
}

.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.1s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }

.btn-small { padding: 0.55rem 1rem; font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 767px) {
  .js .nav-toggle { display: inline-block; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .js .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--line); color: var(--accent); }
  .js .site-nav .btn { margin-top: 1rem; }

  .no-js .header-inner { flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .no-js .site-nav { gap: 1.25rem; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-flush-top { padding-top: 0; }
.section-tint { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero-note dl { margin: 0; }
.hero-note dl > div { padding: 1rem 0; border-top: 1px solid var(--line-strong); }
.hero-note dt { font-size: 0.875rem; color: var(--muted); }
.hero-note dd { margin: 0.15rem 0 0; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-note {
    animation: rise 0.8s var(--ease) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-note { animation-delay: 0.24s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Services overview ---------- */

.service-rows { border-bottom: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: padding 0.35s var(--ease), background-color 0.35s var(--ease);
}
.service-row h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.service-row p { color: var(--muted); margin: 0; max-width: 52ch; }
.service-row .row-link { justify-self: end; color: var(--accent); font-weight: 600; white-space: nowrap; }
.service-row .arrow { display: inline-block; transition: transform 0.35s var(--ease); }

.service-row:hover { color: var(--ink); background: var(--accent-soft); padding-left: 1.25rem; padding-right: 1.25rem; }
.service-row:hover .arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .service-row, .service-row .arrow { transition: none; }
  .service-row:hover { padding-left: 0; padding-right: 0; }
}

/* ---------- Process ---------- */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.process li { padding-top: 1.25rem; border-top: 2px solid var(--accent); }
.process h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.process p { color: var(--muted); font-size: 1rem; }

/* ---------- Fit ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.fit-statement { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; }

.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.fit-list li { position: relative; padding-left: 2rem; font-size: 1.1rem; }
.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 1.1rem;
  height: 2px;
  background: var(--accent);
}

/* ---------- Team ---------- */

.team-photo { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); aspect-ratio: 4 / 5; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.team-feature .team-photo { max-width: 420px; }
.team-feature .section-title { margin-bottom: 2rem; }
.team-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.team-role { color: var(--muted); margin: 0.25rem 0 1.25rem; }
.team-bio { max-width: 52ch; font-size: 1.1rem; }
.team-links { margin-top: 1.25rem; }
.team-links a { word-break: break-word; }

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 2.5rem 2rem;
}
.team-card .team-photo { margin-bottom: 1.1rem; }
.team-card h3 { font-size: 1.2rem; }
.team-card .team-role { margin-bottom: 0.75rem; }
.team-card .team-bio { font-size: 0.975rem; color: var(--muted); }

@media (max-width: 767px) {
  .team-feature { grid-template-columns: 1fr; }
  .team-feature .team-photo { max-width: 100%; }
}

/* ---------- Call to action band ---------- */

.cta-band {
  background: var(--accent);
  color: var(--accent-ink);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.5rem; }
.cta-band p { opacity: 0.85; margin: 0; }

.btn-light { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.btn-light:hover { background: var(--bg-alt); border-color: var(--bg-alt); color: var(--accent); }

@media (prefers-color-scheme: dark) {
  .btn-light:hover { background: #1f2a26; border-color: #1f2a26; color: var(--accent); }
}

/* ---------- Inner page heading ---------- */

.page-head { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.3rem, 4.5vw, 3.5rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.page-head .meta { color: var(--muted); margin: 0; }
.page-404 { padding-bottom: clamp(5rem, 10vw, 8rem); }

.jump-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.jump-links a {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.jump-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Service detail ---------- */

.service-detail { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.service-detail + .service-detail .detail-grid { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.service-detail + .service-detail { padding-top: 0; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.detail-intro h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.detail-intro p { color: var(--muted); font-size: 1.1rem; }
.detail-body h3 { font-size: 1rem; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.tick-list li { position: relative; padding-left: 1.75rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Prose ---------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; }
.prose ul:not(.tick-list) { padding-left: 1.25rem; margin: 0 0 1em; }
.prose ul:not(.tick-list) li { margin-bottom: 0.5rem; }
.prose .tick-list { margin-bottom: 1em; }

.legal { font-size: 1.025rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; border-bottom-color: var(--line-strong); }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.9em; background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: 3px; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.person {
  position: sticky;
  top: 100px;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.person h2 { font-size: 1.4rem; }
.person-role { color: var(--muted); margin-bottom: 1rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
  margin: 0 0 2rem;
}
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-weight: 500; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.contact-form { display: grid; gap: 1.5rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }

.field label { font-weight: 600; font-size: 0.975rem; }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: -0.15rem 0 0.1rem; font-size: 0.9rem; color: var(--muted); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 10rem; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: 0.925rem; font-weight: 500; }

.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: 0.7; cursor: progress; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-bottom: 2rem; border-left: 3px solid; }
.notice h2 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.notice:focus { outline: none; }
.notice-success { background: var(--success-soft); border-color: var(--accent); }
.notice-error { background: var(--danger-soft); border-color: var(--danger); }

.contact-details { display: grid; gap: 2rem; padding-top: 0.25rem; }
.contact-details h2 { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-bottom: 0.35rem; letter-spacing: 0; }
.contact-details p, .contact-details address { font-size: 1.05rem; }
.contact-details a { word-break: break-word; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.975rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
}
.footer-about p { color: var(--muted); margin-top: 1rem; max-width: 34ch; }

.footer-col h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.9rem; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink); text-decoration: none; word-break: break-word; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-col address { color: var(--muted); }

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  display: grid;
  gap: 0.5rem;
}
.footer-legal p { margin: 0; max-width: 90ch; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .service-row .row-link { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .hero-grid,
  .fit-grid,
  .detail-grid,
  .about-grid,
  .contact-grid,
  .field-row { grid-template-columns: 1fr; }

  .hero-grid { gap: 2.5rem; }
  .service-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .service-row:hover { padding-left: 0; padding-right: 0; background: none; }
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .facts { grid-template-columns: 1fr; gap: 1.25rem; }
  .person { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .actions .btn { flex: 1 1 auto; }
}

@media print {
  .site-header, .site-footer .footer-grid, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; color: #111; }
}
