/* Fuzzy Concept — single-page site */

/* ---------- Colors and type ---------- */
:root {
  /* Navy ink with tinted greys; light shades keep a subtle tint so large surfaces stay grey, not blue */
  --h: 268;
  --n-50:  oklch(.98 .007 var(--h));
  --n-100: oklch(.958 .009 var(--h));
  --n-200: oklch(.91 .012 var(--h));
  --n-300: oklch(.835 .017 var(--h));
  --n-500: oklch(.58 .035 var(--h));
  --n-600: oklch(.48 .04 var(--h));
  --n-700: oklch(.4 .045 var(--h));
  --n-800: oklch(.32 .055 var(--h));
  --n-900: oklch(.26 .06 var(--h));
  --n-950: oklch(.2 .06 var(--h));
  --accent: oklch(.76 .13 38); /* salmon */

  /* System font: Segoe UI on Windows, San Francisco on Apple, Roboto on Android */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 24px;
  --section-gap: 64px;
}
@media (min-width: 640px)  { :root { --section-gap: 96px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section-gap: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--n-950); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; display: flex; flex-direction: column; padding-top: 8px; font: 16px/1.75 var(--font); color: var(--n-950); }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
::selection { background: color-mix(in oklab, var(--accent) 35%, white); }

.container { width: 100%; max-width: calc(80rem); margin: 0 auto; padding: 0 var(--gutter); }
/* Below lg the template keeps content in a narrow 42rem column */
@media (max-width: 1023px) { .container:not(.header-row):not(.footer) > * { max-width: 42rem; margin-left: auto; margin-right: auto; } }

.section { margin-top: var(--section-gap); }
.eyebrow { margin-bottom: 20px; font-size: 13px; line-height: 1.75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--n-500); }
.lead { margin-top: 24px; font-size: 1.25rem; line-height: 2rem; color: var(--n-600); }
.intro { max-width: 42rem; }
.intro h2 { font-size: 2rem; line-height: 2.5rem; }
@media (min-width: 640px) { .intro h2 { font-size: 2.5rem; line-height: 3rem; } }

.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--n-950); color: white; font-weight: 600; line-height: 1.75rem; transition: background .2s; }
.btn:hover { background: var(--n-800); }
.btn-accent { background: var(--accent); color: var(--n-950); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 85%, white); }
.link { font-weight: 600; color: var(--n-700); }
.link:hover { color: var(--n-950); }

/* ---------- Page frame: navy strip on top, white sheet with rounded corners ---------- */
.sheet { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; padding-top: 92px; background: white; border-radius: 40px 40px 0 0; isolation: isolate; }
main { flex: 1; }

/* Background grid from the original design (tiles are 96×160) */
.grid { position: absolute; left: 0; width: 100%; z-index: -1; fill: var(--n-50); stroke: color-mix(in oklab, var(--n-950) 7%, transparent); }
.grid-hero { top: 0; height: 1000px; mask-image: linear-gradient(to bottom left, white 40%, transparent 50%); -webkit-mask-image: linear-gradient(to bottom left, white 40%, transparent 50%); }
.grid-hero .grid-tiles { fill: color-mix(in oklab, var(--accent) 10%, white); }
.grid-band { top: 0; height: 100%; fill: var(--n-100); mask-image: linear-gradient(to bottom left, white 50%, transparent 60%); -webkit-mask-image: linear-gradient(to bottom left, white 50%, transparent 60%); }

/* ---------- Header: sits on the sheet, sticks once you scroll ---------- */
.header { position: absolute; top: 8px; left: 0; right: 0; z-index: 40; padding-top: 56px; transition: background .25s, padding .25s, box-shadow .25s; }
.header.scrolled { position: fixed; top: 0; padding: 12px 0; background: color-mix(in oklab, white 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--n-200); }
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 1023px) { .header-row { max-width: calc(42rem + 2 * var(--gutter)); } }
.header-logo svg, .footer-logo svg { height: 32px; width: 190px; fill: var(--n-950); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; line-height: 1.75rem; font-weight: 500; color: var(--n-700); transition: background .2s, color .2s; }
.nav a:hover { background: var(--n-100); color: var(--n-950); }
.nav a.active { color: var(--n-950); }
.nav a.active::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--accent); }
.nav a.nav-cta { margin-left: 10px; background: var(--n-950); color: white; }
.nav a.nav-cta:hover, .nav a.nav-cta.active { background: var(--n-800); }
.nav a.nav-cta::after { display: none; }
.burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--n-950); color: white; font-size: 18px; cursor: pointer; }
@media (max-width: 767px) {
  .nav { display: none; position: absolute; top: 100%; right: var(--gutter); margin-top: 8px; flex-direction: column; align-items: stretch; min-width: 200px; padding: 8px; border-radius: 20px; background: white; box-shadow: 0 16px 40px -16px rgba(0,0,0,.3); }
  .nav.open { display: flex; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .burger { display: grid; place-items: center; }
}

/* ---------- Hero ---------- */
/* Less space on phones so the call to action fits on the first screen */
.hero { margin-top: 40px; }
@media (min-width: 640px) { .hero { margin-top: 128px; } }
.hero-text { max-width: 48rem; }
.hero h1 { font-size: 2.5rem; line-height: 3rem; }
@media (min-width: 640px) { .hero h1 { font-size: 4rem; line-height: 4.5rem; } }
.sharp { color: var(--accent); }
/* "fuzzy" starts slightly blurred and comes into focus */
.fuzzy { display: inline-block; filter: blur(.035em); opacity: .8; animation: focus 2.4s cubic-bezier(.3,.6,.3,1) .9s forwards; }
@keyframes focus { to { filter: blur(0); opacity: 1; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }

/* ---------- Clients ---------- */
.clients { padding: 48px 0; border-radius: 2.5rem; background: var(--n-950); color: white; }
@media (min-width: 768px) { .clients { padding: 64px 0; } }
.clients-head { display: flex; align-items: center; gap: 32px; }
.clients-head h2 { font-size: 14px; line-height: 1.75rem; font-weight: 600; letter-spacing: .025em; }
.clients-head span { flex: 1; height: 1px; background: var(--n-800); }
.partners { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
@media (min-width: 768px) { .partners { grid-template-columns: 1fr 1fr; } }
.partner { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1px solid var(--n-800); border-radius: 24px; background: color-mix(in oklab, var(--n-900) 60%, transparent); }
@media (min-width: 768px) { .partner { padding: 32px; } }
.partner-logo { height: 64px; display: flex; align-items: center; }
.partner-logo img, .also img { width: auto; }
.partner p { max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--n-300); }
.also { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 24px 36px; margin-top: 36px; padding: 0 8px; }
@media (min-width: 768px) { .also { justify-content: space-between; gap: 28px 48px; } }
.also span { width: 100%; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--n-500); }
@media (min-width: 768px) { .also span { width: auto; } }
.also img { opacity: .75; transition: opacity .2s; }
.also img:hover { opacity: 1; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 64px; }
@media (min-width: 1024px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--n-200); border-radius: 24px; background: white; transition: box-shadow .25s, transform .25s; }
.project:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px color-mix(in oklab, var(--n-950) 45%, transparent); }
.project-top { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 6px; }
.project-top img { width: auto; }
.project-top span { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--n-500); }
.project-top b { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.75rem; color: var(--n-950); background: color-mix(in oklab, var(--accent) 22%, white); }
.project h3 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: wrap; }
.project p { font-size: 15px; line-height: 1.65; color: var(--n-600); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li, .tech span { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; line-height: 1.75rem; font-weight: 500; color: var(--n-700); background: var(--n-100); }
.project a { font-size: 14.5px; font-weight: 600; }
.project a:hover { color: var(--accent); }

/* ---------- Testimonial ---------- */
.testimonial { position: relative; isolation: isolate; padding: 64px 0; background: var(--n-50); }
@media (min-width: 640px) { .testimonial { padding: 112px 0; } }
@media (min-width: 768px) { .testimonial { padding: 128px 0; } }
.quote { max-width: 56rem; margin: 0 auto; }
.quote blockquote { position: relative; font-size: clamp(24px, 3vw, 32px); line-height: 1.35; font-weight: 500; letter-spacing: -.025em; }
.quote blockquote p::before { content: "“"; color: var(--accent); }
.quote blockquote p::after { content: "”"; color: var(--accent); }
@media (min-width: 640px) { .quote blockquote p::before { position: absolute; right: 100%; } }
.quote figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; font-size: 16px; line-height: 1.5; color: var(--n-600); }
@media (min-width: 640px) { .quote figcaption { flex-direction: row; align-items: center; gap: 20px; } }
.quote strong { font-weight: 600; color: var(--n-950); }
.quote-logo { flex: none; width: 157px; height: 16px; background: var(--n-950); -webkit-mask: url(/images/mountain-rescue.svg) left center / contain no-repeat; mask: url(/images/mountain-rescue.svg) left center / contain no-repeat; }
@media (min-width: 640px) { .quote-logo { box-sizing: content-box; padding-right: 20px; border-right: 1px solid var(--n-300); -webkit-mask-origin: content-box; mask-origin: content-box; -webkit-mask-clip: content-box; mask-clip: content-box; } }

/* ---------- Services ---------- */
.services { margin-top: 64px; }
@media (min-width: 1024px) { .services { display: flex; align-items: center; } }
.services-image { display: flex; justify-content: center; }
@media (min-width: 1024px) { .services-image { width: 50%; justify-content: flex-end; padding-right: 48px; } }
/* Frame keeps the template's 719:680 box; the 655:680 image sits at its right (lg) or centre */
.services-frame { flex: none; display: flex; justify-content: center; width: 33.75rem; max-width: 100%; aspect-ratio: 719 / 680; }
@media (min-width: 1024px) { .services-frame { width: 45rem; max-width: none; justify-content: flex-end; } }
.services-frame svg { height: 100%; width: auto; }
.services-image image { transform-origin: center; transition: transform .5s; }
.services-image svg:hover image { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .services-image svg:hover image { transform: none; } }
.services-outline { stroke: color-mix(in oklab, var(--n-950) 10%, transparent); }
.services-list { margin-top: 64px; color: var(--n-600); }
@media (min-width: 1024px) { .services-list { flex: none; width: 33rem; margin-top: 0; padding-left: 16px; } }
.services-list li { position: relative; margin-top: 40px; padding-top: 40px; }
.services-list li:first-child { margin-top: 0; padding-top: 0; }
.services-list li:not(:first-child)::before { content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 1px; background: var(--accent); }
.services-list li:not(:first-child)::after { content: ""; position: absolute; top: 0; left: 32px; right: 0; height: 1px; background: color-mix(in oklab, var(--n-950) 10%, transparent); }
.services-list strong { font-weight: 600; color: var(--n-950); }
.services-list .tech { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 32px; }
.services-list .tech::before { display: none; }
.services-list .tech::after { left: 0; }

/* ---------- Contact ---------- */
.contact { margin: 0 calc(-1 * var(--gutter)); padding: 80px var(--gutter); border-radius: 2.5rem; background: var(--n-950); color: white; }
@media (min-width: 640px) { .contact { margin: 0; padding-top: 128px; padding-bottom: 128px; } }
@media (min-width: 768px) { .contact { padding-left: 48px; padding-right: 48px; } }
.contact-inner { max-width: 56rem; margin: 0 auto; }
.contact-inner > * { max-width: 36rem; }
.contact h2 { font-size: 1.75rem; line-height: 2.25rem; }
@media (min-width: 640px) { .contact h2 { font-size: 2rem; line-height: 2.5rem; } }
.contact-inner > p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--n-300); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.contact .link { color: var(--n-300); }
.contact .link:hover { color: white; }
.office { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgb(255 255 255 / .1); }
.office h3 { font-size: 1rem; line-height: 1.75rem; font-weight: 600; letter-spacing: 0; }
.office address { margin-top: 24px; font-size: .875rem; line-height: 1.5rem; font-style: normal; color: var(--n-300); }

/* ---------- Footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: var(--section-gap); margin-bottom: 40px; }
.footer::before { content: ""; flex-basis: 100%; height: 1px; margin-bottom: 16px; background: color-mix(in oklab, var(--n-950) 10%, transparent); }
@media (max-width: 1023px) { .footer { max-width: calc(42rem + 2 * var(--gutter)); } }
.footer p { font-size: .875rem; line-height: 1.5rem; color: var(--n-700); }
.ids { display: block; margin-top: 4px; color: var(--n-500); }
@media (min-width: 640px) { .ids { text-align: right; } }

/* ---------- Fade-in on scroll (only when JavaScript runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fuzzy { animation: none; filter: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
