@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/Jost-normal-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/Jost-normal-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Jost-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Jost-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/Jost-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/Jost-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/Jost-normal-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/Jost-normal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSerif4-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSerif4-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSerif4-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/SourceSerif4-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/SourceSerif4-normal-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/SourceSerif4-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* inuIT oy. Visual motif: the logo's horizon. White above, black below, Huuru standing on the line. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --stone: #5c6366;
  --rule: #d9dedf;
  --mist: #f1f5f5;
  --cyan: #1ee3e8;
  --teal: #00686d;

  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --serif: "Source Serif 4", "Georgia", serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 72rem;
  --measure: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
}

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 400; }
h3 { font-size: var(--step-1); font-weight: 500; }

p, ul, ol, blockquote { margin: 0 0 1.1em; }
p { text-wrap: pretty; }

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

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: 0.5rem 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--stone); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--sans); font-size: 1.5rem; }
.brand img { width: 3rem; height: auto; margin-top: -0.35rem; }
.brand b { font-weight: 700; }
.brand span { font-weight: 300; }

.nav { font-family: var(--sans); font-size: 1rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.nav-narrow { display: none; }

@media (max-width: 52rem) {
  .nav-wide { display: none !important; }
  .nav-narrow { display: block; }
  .nav summary { list-style: none; cursor: pointer; padding: 0.5rem 0; font-weight: 500; }
  .nav summary::-webkit-details-marker { display: none; }
  .nav-narrow[open] ul {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem;
    position: absolute; left: 0; right: 0; top: 4.5rem; z-index: 5;
    background: var(--paper); padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--rule);
  }
  .nav-narrow li { padding: 0.35rem 0; }
  .site-header { position: relative; }
}

/* Buttons */
.button {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 1.0625rem;
  padding: 0.8rem 1.4rem; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
}
.button:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.button.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button.light:hover { background: var(--ink); color: var(--paper); }
.nav .button { padding: 0.5rem 1rem; color: var(--paper); }
.nav .button:hover { color: var(--ink); text-decoration: none; }

/* Home hero: the horizon */
.hero { padding-top: clamp(3rem, 8vw, 6.5rem); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 34rem; }
.horizon { position: relative; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 52rem) { .horizon { margin-top: calc(clamp(9rem, 22vw, 15rem) * 0.68 + 1.5rem); } }
.horizon .dog {
  position: absolute; right: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
  bottom: 100%; width: clamp(9rem, 22vw, 15rem); color: var(--ink); margin-bottom: -1px;
}
.below {
  background: var(--ink); color: var(--paper);
  border-radius: 0 0 50% 50% / 0 0 clamp(2.5rem, 10vw, 9rem) clamp(2.5rem, 10vw, 9rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 12vw, 9rem);
}
.below p { max-width: var(--measure); font-size: var(--step-1); line-height: 1.55; }
.below a:not(.button) { color: var(--cyan); }
.below .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; font-family: var(--sans); }

/* Sub page header: thin horizon with a small dog */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.page-head h1 { font-size: var(--step-3); font-weight: 400; max-width: 22ch; }
.page-head .lead { max-width: var(--measure); }
.line { position: relative; border-top: 2px solid var(--ink); margin-top: 3.5rem; }
.line .dog { position: absolute; right: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); bottom: 100%; width: 4.75rem; margin-bottom: -1px; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { padding-top: 0; }
.section.tint { background: var(--mist); padding-top: clamp(3rem, 7vw, 5.5rem); }
.prose h2 { margin-top: 1.6em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { border-left: 3px solid var(--cyan); padding-left: 1.2rem; color: var(--stone); }

/* Service list: rows, not cards */
.services { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.services li { border-bottom: 1px solid var(--rule); }
.services a {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 0.25rem 2rem;
  padding: 1.4rem 0; color: var(--ink); text-decoration: none;
}
.services strong { font-family: var(--sans); font-weight: 500; font-size: var(--step-1); }
.services span { color: var(--stone); }
.services a:hover strong { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
@media (max-width: 40rem) { .services a { grid-template-columns: 1fr; } }

/* Two column helper */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

/* Case */
.case dl { margin: 0; }
.case dt { font-family: var(--sans); font-weight: 500; margin-top: 1.2rem; }
.case dd { margin: 0.2rem 0 0; }
.figure-big { font-family: var(--sans); font-weight: 300; font-size: clamp(3.5rem, 2rem + 7vw, 7.5rem); line-height: 0.95; margin: 0 0 0.75rem; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1rem; }
.quote figcaption { display: flex; align-items: center; gap: 0.8rem; font-family: var(--sans); font-size: 1rem; line-height: 1.35; }
.quote figcaption img { width: 3.25rem; height: 3.25rem; border-radius: 50%; filter: grayscale(1); }
.quote figcaption small { display: block; color: var(--stone); font-size: 0.9rem; }

/* Logos */
.logos { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; }
.logos img { max-height: 3.25rem; width: auto; max-width: 9rem; filter: grayscale(1); opacity: 0.8; }
.logos img.invert { filter: grayscale(1) invert(1); }

/* Steps: a real sequence */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(step); font-family: var(--sans); font-weight: 300; font-size: 2rem; line-height: 1;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--stone); }

/* People */
.person { display: grid; grid-template-columns: 14rem 1fr; gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.person img { border-radius: 50%; border: 4px solid var(--cyan); aspect-ratio: 1; object-fit: cover; width: 100%; }
.person .dogmark { color: var(--ink); padding: 2rem 0.5rem; border: 0; border-radius: 0; aspect-ratio: auto; }
.person h2 { font-size: var(--step-2); margin-bottom: 0.2em; }
.person .role { font-family: var(--sans); color: var(--stone); margin-bottom: 1rem; }
@media (max-width: 40rem) { .person { grid-template-columns: 1fr; } .person img { max-width: 11rem; } }

/* Price table */
.prices { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.prices th, .prices td { text-align: left; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prices th { font-family: var(--sans); font-weight: 500; padding-right: 1.5rem; }
.prices td:last-child { text-align: right; white-space: nowrap; font-family: var(--sans); }
.note { color: var(--stone); font-size: var(--step--1); }

/* Articles list */
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.posts a { font-family: var(--sans); font-size: var(--step-1); font-weight: 500; color: var(--ink); text-decoration: none; }
.posts a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }
.posts p { margin: 0.4rem 0 0; color: var(--stone); }
.date { font-family: var(--sans); color: var(--stone); font-size: 0.95rem; }

/* Call to action block */
.cta { background: var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0; }
.cta h2 { max-width: 20ch; }
.cta p { max-width: var(--measure); }
.cta a:not(.button) { color: var(--cyan); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 1.75rem; font-family: var(--sans); }

/* Footer */
.site-footer { background: var(--ink); color: #c9cfd0; border-top: 1px solid #2a2a2a; padding: 3rem 0 6rem; font-family: var(--sans); font-size: 1rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--cyan); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
.site-footer h2 { font-size: 1rem; font-weight: 500; color: var(--paper); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }

/* Consent */
.consent {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 6; max-width: 26rem;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 1rem;
  padding: 1.1rem 1.25rem; font-family: var(--sans); font-size: 1rem; line-height: 1.45;
  box-shadow: 0 0.5rem 0 var(--ink);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.9rem; }
.consent .button { padding: 0.55rem 1.1rem; font-size: 1rem; }
.button.ghost { background: var(--paper); color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--paper); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--paper); cursor: pointer; }
.linklike:hover { text-decoration: underline; text-decoration-color: var(--cyan); }
@media (max-width: 40rem) { .consent { left: 0.75rem; right: 0.75rem; bottom: 4rem; } }

/* Mobile contact bar */
.callbar { display: none; }
@media (max-width: 40rem) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
    font-family: var(--sans); font-weight: 500; border-top: 1px solid var(--ink);
  }
  .callbar a { padding: 0.9rem; text-align: center; text-decoration: none; background: var(--paper); color: var(--ink); }
  .callbar a + a { background: var(--ink); color: var(--paper); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .dog { animation: arrive 900ms cubic-bezier(.2,.7,.2,1) both 150ms; }
  @keyframes arrive { from { transform: translateX(2.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
}
