/* SeqDA site
   Layout concept: left-aligned, asymmetric. A contour-map field bleeds in from the right of the hero;
   everything else is quiet hairlines, plan-sheet drawings and one copper survey line.
   Dark navy, copper and gold, silver text. Optimised for iOS Safari. */

:root {
  --night: #070B14;
  --navy: #0D1626;
  --navy-2: #111D33;
  --line: rgba(183, 192, 207, .16);
  --line-2: rgba(183, 192, 207, .30);
  --white: #F3F6FB;
  --silver: #B7C0CF;
  --mist: #8D98AD;
  --copper: #C98A54;
  --gold: #E4BC85;
  --copper-deep: #A56B3B;
  --blue: #5B8DEF;
  --gold-grad: linear-gradient(135deg, #EBCB98 0%, #CC8D57 55%, #A56B3B 100%);
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1180px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--night);
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--silver);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

img, svg { max-width: 100%; }
p { margin: 0; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: #0B1220; padding: 12px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(7, 11, 20, .80);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--white); text-decoration: none; }
.mark { width: 34px; height: 34px; flex: none; }
.wordmark { font-size: 1.65rem; line-height: 1; letter-spacing: -.02em; }
.w-seq { font-weight: 300; color: var(--white); }
.w-da { font-weight: 800; color: var(--blue); }

.nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 46px; height: 46px; padding: 0; cursor: pointer; touch-action: manipulation;
  background: transparent; border: 1px solid var(--line-2); border-radius: 8px; color: var(--white);
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column;
  background: rgba(7, 11, 20, .98);
  border-bottom: 1px solid var(--line-2);
  padding: 6px var(--gutter-r) 22px var(--gutter-l);
}
.nav[data-open="true"] { display: flex; }
.nav a {
  display: flex; align-items: center; min-height: 56px;
  font-size: 1.2rem; color: var(--white); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav a[aria-current="page"] { color: var(--gold); }
.nav .nav-cta { margin-top: 18px; border: 0; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 4px;
    background: none; border: 0; padding: 0;
  }
  .nav a {
    position: relative; min-height: 44px; padding: 0 14px; border: 0;
    font-size: .98rem; color: var(--silver);
  }
  .nav a[aria-current="page"] { color: var(--white); }
  .nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: var(--copper);
  }
  .nav .nav-cta { margin: 0 0 0 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1; letter-spacing: .005em;
  text-decoration: none; text-align: center; cursor: pointer;
  border-radius: 6px; border: 1px solid transparent;
  touch-action: manipulation;
  transition: filter .2s ease, border-color .2s ease, background-color .2s ease;
}
.btn.primary { color: #1A0F05; background: var(--gold-grad); }
.btn.ghost { color: var(--white); border-color: var(--line-2); background: transparent; }
.btn.small { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn.outline { color: var(--gold); border-color: rgba(228, 188, 133, .55); background: transparent; }
@media (hover: hover) {
  .btn.primary:hover { filter: brightness(1.08); }
  .btn.ghost:hover { border-color: var(--copper); }
  .btn.outline:hover { background: rgba(228, 188, 133, .08); }
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions .btn { flex: 1 1 200px; }
@media (min-width: 560px) { .actions .btn { flex: 0 0 auto; } }

/* ---------- Type ---------- */
h1, h2, h3 { color: var(--white); margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(2.5rem, 8.4vw, 4.8rem); line-height: 1.04; letter-spacing: -.028em; }
h2 { font-weight: 300; font-size: clamp(1.95rem, 5.2vw, 3.05rem); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-weight: 500; font-size: 1.22rem; line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 1.6; max-width: 56ch; }
.small-text { font-size: .94rem; color: var(--mist); }

/* survey-line marker: a node on a hairline, echoing the logo */
.rule { display: flex; align-items: center; margin-bottom: 24px; }
.rule::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); }
.rule::after { content: ""; width: 64px; height: 1px; background: var(--copper); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 11vw, 132px) 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(40, 86, 170, .30), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(201, 138, 84, .10), transparent 60%),
    var(--night);
}
.hero-bg::before {
  content: ""; position: absolute; inset: -4% -8% -4% 14%;
  background: url("../assets/contours.svg") right center / cover no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  animation: contours-in 1.8s ease-out both;
}
@keyframes contours-in { from { opacity: 0; transform: scale(1.05); } to { opacity: .55; transform: none; } }
@media (min-width: 880px) {
  .hero-bg::before { opacity: .95; inset: -4% -4% -4% 22%; }
  @keyframes contours-in { from { opacity: 0; transform: scale(1.05); } to { opacity: .95; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .hero-bg::before { animation: none; } }

.hero h1 { max-width: 19ch; }
.hero .lead { margin-top: 28px; }
.hero .actions { margin-top: 38px; }

.scope {
  list-style: none; margin: clamp(56px, 9vw, 104px) 0 0; padding: 0;
  display: grid; border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0), rgba(7, 11, 20, .55));
}
.scope li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.scope strong { display: block; color: var(--white); font-weight: 500; font-size: 1.05rem; }
.scope span { display: block; font-size: .95rem; color: var(--mist); margin-top: 2px; }
@media (min-width: 760px) {
  .scope { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scope li { padding: 28px 28px 28px 0; border-bottom: 0; }
  .scope li + li { padding-left: 28px; border-left: 1px solid var(--line); }
}

/* page heads on inner pages */
.pagehead { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(52px, 9vw, 108px) clamp(40px, 7vw, 76px); border-bottom: 1px solid var(--line); }
.pagehead h1 { max-width: 20ch; font-size: clamp(2.3rem, 7vw, 4rem); }
.pagehead .lead { margin-top: 24px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 120px); }
.section.alt { background: linear-gradient(180deg, var(--navy), var(--night)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; max-width: 44rem; margin-bottom: clamp(36px, 6vw, 64px); }

.trio { display: grid; border-top: 1px solid var(--line-2); }
.trio > * { padding: 30px 0; border-bottom: 1px solid var(--line); }
.trio h3 { margin-bottom: 10px; }
@media (min-width: 880px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio > * { padding: 38px 34px 8px 0; border-bottom: 0; }
  .trio > * + * { padding-left: 34px; border-left: 1px solid var(--line); }
}

/* the sequence: a real process, drawn as nodes on a survey line */
.sequence { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.sequence li { position: relative; padding: 0 0 38px 46px; }
.sequence li:last-child { padding-bottom: 0; }
.sequence li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--copper); background: var(--night);
}
.sequence li::after {
  content: ""; position: absolute; left: 7px; top: 28px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--copper), rgba(201, 138, 84, .18));
}
.sequence li:first-child::before { background: var(--white); border-color: var(--white); }
.sequence li:last-child::before { background: var(--copper); }
.sequence li:last-child::after { display: none; }
.sequence h3 { margin-bottom: 8px; }
.sequence p { font-size: .98rem; }
@media (min-width: 900px) {
  .sequence { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .sequence li { padding: 46px 0 0 0; }
  .sequence li::before { left: 0; top: 0; }
  .sequence li::after { left: 24px; right: -22px; top: 7px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--copper), rgba(201, 138, 84, .18)); }
}

/* ---------- Plan sheets (original illustrations) ---------- */
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .82em; width: 18px; height: 1px; background: var(--copper); }
.ticks li::after { content: ""; position: absolute; left: 18px; top: calc(.82em - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--copper); }

.sheet { border: 1px solid var(--line-2); border-radius: 4px; background: linear-gradient(180deg, rgba(17, 29, 51, .75), rgba(10, 17, 32, .92)); }
.sheet svg { display: block; width: 100%; height: auto; padding: 14px 14px 6px; }
.titleblock { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid var(--line-2); font-size: .82rem; }
.titleblock div { padding: 10px 14px; border-left: 1px solid var(--line); min-width: 0; }
.titleblock div:first-child { border-left: 0; }
.titleblock dt { color: var(--mist); font-size: .72rem; }
.titleblock dd { margin: 2px 0 0; color: var(--white); }

/* ---------- Services ---------- */
.svc { display: grid; gap: 16px; padding-block: 38px; border-top: 1px solid var(--line-2); }
.svc:last-of-type { border-bottom: 1px solid var(--line-2); }
.svc h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.svc .ticks { margin-top: 20px; }
@media (min-width: 880px) {
  .svc { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; padding-block: 48px; }
}

/* ---------- CTA band ---------- */
.cta {
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: radial-gradient(800px 320px at 85% 0%, rgba(201, 138, 84, .13), transparent 70%), var(--navy);
  padding-block: clamp(52px, 8vw, 92px);
}
.cta .wrap { display: grid; gap: 30px; align-items: center; }
@media (min-width: 880px) { .cta .wrap { grid-template-columns: 1fr auto; gap: 64px; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; } }
.prose { display: grid; gap: 20px; max-width: 62ch; }
.person { border: 1px solid var(--line-2); border-radius: 4px; padding: 30px; display: grid; gap: 18px; align-self: start; background: var(--navy); }
.person .badge { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--night); }
.person .badge svg { width: 38px; height: 38px; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--mist); }
.facts dd { margin: 0; color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; } }
form { display: grid; gap: 20px; }
.row { display: grid; gap: 20px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
label { color: var(--white); font-weight: 500; font-size: .95rem; }
input, select, textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font-family: inherit; font-size: 16px; /* 16px stops iOS zooming into fields */ line-height: 1.4; color: var(--white);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); border-radius: 6px;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 150px; resize: vertical; }
select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23E4BC85' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select option { color: #0B1220; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(228, 188, 133, .18); }
::placeholder { color: var(--mist); opacity: 1; }
.form-note { font-size: .92rem; color: var(--mist); }
.form-status { min-height: 1.4em; color: var(--gold); font-size: .95rem; }
.details { display: grid; gap: 0; align-self: start; border-top: 1px solid var(--line-2); }
.details div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.details dt { font-size: .82rem; color: var(--mist); }
.details dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.ph { color: var(--gold); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: 56px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .96rem; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 5fr 3fr 4fr; gap: 64px; } }
.foot h3 { font-size: .95rem; color: var(--mist); font-weight: 400; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--silver); }
@media (hover: hover) { .foot ul a:hover, .nav a:hover { color: var(--white); } }
.foot .brand-block { display: grid; gap: 16px; max-width: 34ch; }
.fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--mist); display: grid; gap: 8px; max-width: 78ch; }
