/* Sikalio — site.css
   Static, dependency-free stylesheet. System fonts only. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #0b2340;
  --ink-2: #4a5869;
  --rule: rgb(11 35 64 / 0.16);
  --blue: #1363a4;   /* logo blue   rgb(19,99,164)  */
  --navy: #0a3d6a;   /* logo navy   rgb(10,61,106)  */
  --orange: #f0702a; /* logo orange rgb(240,112,42) */
  --on-ink: #f4f1ea;
  --on-ink-2: #a9b4c2;
  --on-ink-rule: rgb(244 241 234 / 0.2);

  --sans: "Helvetica Neue", Helvetica, Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --maxw: 86rem;
  --header-h: 4.75rem;
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --h1: clamp(2.75rem, 1rem + 6.4vw, 6.5rem);

  color-scheme: light;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, address {
  margin: 0;
}

address {
  font-style: normal;
}

ol, ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1, h2, h3 {
  text-wrap: balance;
}

p, li, dd {
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.9375rem;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small typographic devices shared across the page */

.mono-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.marker::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.65rem;
  background: var(--orange);
  vertical-align: 0.06em;
}

.num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}

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

.site-header {
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  margin-right: auto;
  padding-block: 0.875rem;
}

.brand img {
  width: auto;
  height: 2.5rem;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
  border-top: 1px solid var(--rule);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
}

.site-nav a,
.lang {
  display: inline-block;
  padding-block: 0.7rem;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover,
.lang:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.lang {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.lang span[aria-hidden] {
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .site-header {
    position: sticky;
    top: 0;
  }

  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .site-header {
      background: rgb(244 241 234 / 0.9);
      -webkit-backdrop-filter: saturate(1.4) blur(12px);
      backdrop-filter: saturate(1.4) blur(12px);
    }
  }

  .site-nav {
    order: 0;
    flex-basis: auto;
    border-top: 0;
  }

  .site-nav ul {
    column-gap: 2.25rem;
  }

  /* Leave room for the sticky header when jumping to anchors */
  .service,
  .step {
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
  }
}

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

.hero {
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: center;
}

.hero__title {
  margin-top: 1.75rem;
  font-size: var(--h1);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: initial;
}

.hero__title .line {
  display: block;
}

/* Editorial reference marks pointing to the numbered services below.
   Zero-width so they hang above punctuation without disturbing spacing. */
.hero__title .ref {
  --ref: clamp(0.6875rem, 0.55rem + 0.35vw, 0.875rem);
  display: inline-block;
  width: 0;
  position: relative;
  top: calc(var(--ref) * 0.72 - var(--h1) * 0.71);
  text-indent: 0.3rem;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--ref);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0;
  vertical-align: baseline;
  color: var(--blue);
}

.hero__title .stop {
  color: var(--orange);
}

.hero__lead {
  max-width: 34em;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.375rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--on-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.button::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  background: var(--orange);
}

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.5rem;
  font-weight: 500;
  text-decoration: underline;
}

.link-arrow span[aria-hidden] {
  font-family: var(--mono);
  color: var(--blue);
}

/* Isometric figure: layers of a custom system */

.hero__figure {
  width: 100%;
  max-width: 34rem;
}

.hero__figure figcaption {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0.02em;
}

.axo {
  width: 100%;
  overflow: visible;
  color: var(--ink);
}

.axo * {
  vector-effect: non-scaling-stroke;
}

.axo .top {
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.axo .side {
  fill: var(--paper-2);
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.axo .ln {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-opacity: 0.5;
}

.axo .ln-strong {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.axo .guide {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-opacity: 0.4;
  stroke-dasharray: 2 5;
}

.axo .wire {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
}

.axo .fill-ink { fill: var(--ink); }
.axo .fill-blue { fill: var(--blue); }
.axo .fill-orange { fill: var(--orange); }
.axo .fill-paper { fill: var(--paper); }

.axo .reg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-opacity: 0.45;
}

.axo .lbl-num {
  font-family: var(--mono);
  font-size: 12px;
  fill: var(--blue);
}

.axo .lbl {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  fill: var(--ink);
}

.axo .lbl-sub {
  font-family: var(--mono);
  font-size: 12.5px;
  fill: var(--ink-2);
}

@media (max-width: 30rem) {
  .axo .lbl-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .axo-layer {
    animation: axo-settle 1.4s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }

  .axo-layer--1 { --from: 66px; animation-delay: 0.15s; }
  .axo-layer--2 { --from: 22px; animation-delay: 0.1s; }
  .axo-layer--3 { --from: -22px; animation-delay: 0.05s; }
  .axo-layer--4 { --from: -66px; }

  .axo-guides,
  .axo-labels {
    animation: axo-fade 0.9s 1s ease-out both;
  }
}

@keyframes axo-settle {
  from {
    transform: translateY(var(--from, 0));
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes axo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Index of services under the hero */

.hero__index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.hero__index li {
  border-top: 1px solid var(--ink);
}

.hero__index a {
  display: flex;
  gap: 0.75rem;
  height: 100%;
  padding: 0.9rem 0 1.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.hero__index a .num {
  padding-top: 0.15em;
}

.hero__index a:hover .label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

@media (min-width: 48rem) {
  .hero__index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--gap);
  }

  .hero__figure {
    justify-self: end;
  }
}

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

.section {
  padding-block: var(--section-pad);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

.section-head h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

@media (min-width: 64rem) {
  .section-head .mono-label {
    grid-column: 1 / span 3;
    padding-top: 0.6rem;
  }

  .section-head h2 {
    grid-column: 4 / span 9;
  }

  .section-intro {
    grid-column: 4 / span 6;
  }
}

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

.services {
  border-bottom: 1px solid var(--rule);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}

.service__head .num {
  display: block;
  margin-bottom: 0.5rem;
}

.service h3 {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.service__body {
  max-width: 34em;
}

.service__list {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.service__list li {
  padding-block: 0.45rem;
}

.service__list li + li {
  border-top: 1px solid var(--rule);
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .service {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: var(--gap);
  }

  .service__head {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .service__head {
    grid-column: 1 / span 3;
  }

  .service__body {
    grid-column: 4 / span 5;
    padding-top: 1.55rem;
  }

  .service__list {
    grid-column: 10 / span 3;
    padding-top: 1.2rem;
  }
}

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

.process {
  background: var(--paper-2);
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--gap);
  row-gap: 3rem;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--orange);
}

.step__num {
  display: block;
  font-size: clamp(2.75rem, 2rem + 2vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.step h3 {
  margin-top: 1.25rem;
  font-size: 1.4375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--ink-2);
}

/* Pushed to the bottom so results line up across a row of steps */
.step .step__result {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.step__result .mono-label {
  display: block;
  margin-bottom: 0.3rem;
}

.process__note {
  max-width: 40em;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink-2);
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process__note {
    margin-left: calc((100% - 11 * var(--gap)) / 12 * 3 + 3 * var(--gap));
  }
}

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.5rem;
}

.about__logo img {
  width: clamp(8.5rem, 22vw, 13.5rem);
}

.about__text p {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

.about__text p + p {
  margin-top: 1.25rem;
}

.about__audience h3 {
  margin-bottom: 0.75rem;
}

.about__audience li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9875rem;
  line-height: 1.45;
}

.about__audience li:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--gap);
  }

  .about__audience {
    grid-column: 2;
  }
}

@media (min-width: 64rem) {
  .about__logo {
    grid-column: 1 / span 3;
  }

  .about__text {
    grid-column: 4 / span 5;
  }

  .about__audience {
    grid-column: 10 / span 3;
  }
}

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

.contact {
  background: var(--ink);
  color: var(--on-ink);
}

.contact :focus-visible {
  outline-color: var(--orange);
}

.contact .section-head {
  border-top-color: var(--on-ink-rule);
}

.contact .mono-label,
.contact .section-intro {
  color: var(--on-ink-2);
}

.contact__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(2.5rem, 5vw, 4rem);
}

.contact__email {
  display: inline-block;
  padding-bottom: 0.12em;
  border-bottom: 2px solid var(--orange);
  font-size: clamp(1.5rem, 0.6rem + 4.6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__email span[aria-hidden] {
  margin-left: 0.2em;
  color: var(--orange);
  font-weight: 400;
}

.contact__email:hover {
  border-bottom-color: var(--on-ink);
}

.contact__details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem var(--gap);
}

.contact__details div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--on-ink-rule);
}

.contact__details dd {
  margin-top: 0.3rem;
}

@media (min-width: 48rem) {
  .contact__details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .contact__cta,
  .contact__details {
    grid-column: 4 / span 9;
  }
}

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

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem var(--gap);
}

.footer__brand img {
  width: auto;
  height: 2.75rem;
}

.footer__legal {
  display: grid;
  gap: 0.9rem;
}

.footer__legal dd {
  margin-top: 0.15rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.footer__bottom p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .footer__brand {
    grid-column: 1 / span 3;
  }

  .footer__legal {
    grid-column: 4 / span 5;
  }

  .footer__address {
    grid-column: 9 / span 4;
  }
}

/* ---------- The 12-column frame (tablet landscape and up) ----------
   Declared after the component rules so it takes precedence. */

@media (min-width: 64rem) {
  .section-head,
  .service,
  .about,
  .contact__body,
  .footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 60vh;
  padding-block: var(--section-pad);
}

.notfound h1 {
  max-width: 14ch;
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 1rem + 5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.notfound p {
  max-width: 34em;
  margin-top: 1.5rem;
  color: var(--ink-2);
}

.notfound .hero__actions {
  margin-top: 2rem;
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .skip-link,
  .hero__figure,
  .lang {
    display: none;
  }

  .contact {
    background: none;
    color: var(--ink);
  }

  .contact .mono-label,
  .contact .section-intro {
    color: var(--ink-2);
  }
}
