/* Nordic – calm Scandinavian contemporary: cool off-white, slate, sand and wood. Prefix: nd- */

:root {
  --bg: #f6f7f9;
  --ink: #243040;
  --ink-2: #566170;
  --slate: #3e5672;
  --slate-d: #2f4258;
  --mist: #dfe7f0;
  --sand: #ece3d5;
  --sand-2: #e2d6c4;
  --rose: #efe6ea;
  --wood: #c98a4b;
  --wood-ink: #8f5620;
  --line: #dde2e9;
  --accent: #3e5672;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --max: 76rem;
  --blob-1: 58% 42% 55% 45% / 52% 48% 52% 48%;
  --blob-2: 42% 58% 38% 62% / 55% 40% 60% 45%;
}

body { font-size: 1.0625rem; line-height: 1.65; }
::selection { background: #f0d9bd; }
:focus-visible { outline-color: var(--wood-ink); }
h1, h2, h3 { font-weight: 400; color: var(--slate-d); }

/* ---------- header ---------- */
.nd-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 1.6rem var(--gutter);
}
.nd-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.nd-brand__text { display: grid; line-height: 1.15; }
.nd-brand__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--slate-d); letter-spacing: -0.01em; }
.nd-brand__sub { font-size: 0.8125rem; color: var(--ink-2); }
.nd-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nd-nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.nd-nav a:hover { background: var(--mist); }
.nd-lang {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--blob-1);
  background: var(--sand);
  color: var(--slate-d);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-radius 0.4s, background 0.2s;
}
.nd-lang:hover { border-radius: var(--blob-2); background: var(--sand-2); }

/* ---------- hero ---------- */
.nd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 0;
}
.nd-hero h1 {
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 12ch;
}
.nd-hero__lead { max-width: 34rem; margin-top: 1.6rem; font-size: clamp(1.125rem, 1.4vw, 1.25rem); color: var(--ink-2); }
.nd-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.nd-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--slate);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(47, 66, 88, 0.6);
  transition: background 0.2s, transform 0.2s;
}
.nd-btn:hover { background: var(--slate-d); transform: translateY(-1px); }
.nd-phone { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--slate-d); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--sand-2); padding-bottom: 0.1rem; }
.nd-phone svg { color: var(--wood); }
.nd-phone:hover { border-color: var(--wood); }
.nd-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.25rem; }
.nd-chips li { padding: 0.3rem 0.85rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.875rem; color: var(--ink-2); }

.nd-hero__art { position: relative; isolation: isolate; justify-self: center; width: 100%; max-width: 34rem; }
.nd-hero__art svg { position: relative; width: 100%; height: auto; }
.nd-blob { position: absolute; z-index: -1; display: block; }
.nd-blob--sand { left: 2%; right: 6%; top: 4%; bottom: 10%; border-radius: var(--blob-1); background: var(--sand); }
.nd-blob--sky { width: 34%; aspect-ratio: 1; right: -2%; top: -4%; border-radius: var(--blob-2); background: var(--mist); }
@media (prefers-reduced-motion: no-preference) {
  .nd-blob--sand { animation: nd-breathe 14s ease-in-out infinite alternate; }
  @keyframes nd-breathe { to { border-radius: var(--blob-2); transform: rotate(-3deg) scale(1.02); } }
}

/* ---------- sections ---------- */
.nd-sec { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(5.5rem, 11vw, 9.5rem) var(--gutter) 0; }
.nd-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: 1rem 4rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.nd-head h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.nd-head p { max-width: 34rem; font-size: 1.1875rem; color: var(--ink-2); padding-bottom: 0.35rem; }
.nd-head--right { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); }
.nd-head--right h2 { grid-column: 2; }
.nd-head--right p { grid-column: 2 / 4; grid-row: 2; }

/* services: staggered flow */
.nd-flow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(3rem, 6vw, 4.5rem); }
.nd-svc { position: relative; hyphens: auto; }
.nd-svc--dev { grid-column: 1 / span 7; }
.nd-svc--con { grid-column: 8 / span 5; margin-top: 12rem; padding-left: clamp(1rem, 3vw, 2.5rem); }
.nd-svc--coa { grid-column: 3 / span 5; margin-top: -4rem; }
.nd-svc__icon {
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 1.4rem;
  border-radius: var(--blob-1);
}
.nd-svc__icon--sky { background: var(--mist); }
.nd-svc__icon--sand { background: var(--sand); border-radius: var(--blob-2); }
.nd-svc__icon--rose { background: var(--rose); }
.nd-svc h3 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 0.8rem; hyphens: manual; }
.nd-svc__text { max-width: 36rem; color: var(--ink-2); }
.nd-svc__label { margin: 1.75rem 0 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--slate); }
.nd-focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.nd-focus__item { display: grid; align-content: start; gap: 0.35rem; padding: 1.15rem 1.1rem 1.25rem; border-radius: 1.4rem; font-size: 0.9375rem; line-height: 1.5; }
.nd-focus__item strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--slate-d); line-height: 1.2; }
.nd-focus__item span { color: var(--ink-2); }
.nd-focus__item--1 { background: var(--mist); border-top-left-radius: 2.4rem; }
.nd-focus__item--2 { background: var(--sand); transform: translateY(1rem); }
.nd-focus__item--3 { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-bottom-right-radius: 2.4rem; }
.nd-svc__note { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 34rem; margin-top: 2.25rem; font-size: 0.9375rem; color: var(--ink-2); }
.nd-svc__note svg { flex: none; margin-top: 0.2rem; }
.nd-list { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.nd-list li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.nd-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.55rem; border-radius: var(--blob-1); background: var(--wood); opacity: 0.85; }

/* approach: wave */
.nd-wave { position: relative; }
.nd-wave__line { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.nd-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; }
.nd-step { position: relative; padding: 0 0.5rem; text-align: center; hyphens: auto; }
.nd-step--up { padding-top: 5.4rem; }
.nd-step--down { padding-top: 9.2rem; }
.nd-step__dot {
  position: absolute;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  border-radius: var(--blob-1);
  background: #fff;
  color: var(--slate-d);
  font-family: var(--font-display);
  font-size: 1.35rem;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line), 0 10px 20px -10px rgba(47, 66, 88, 0.4);
}
.nd-step--up .nd-step__dot { top: 30px; background: var(--wood); color: #fff; }
.nd-step--down .nd-step__dot { top: 90px; background: var(--slate); color: #fff; border-radius: var(--blob-2); }
.nd-step h3 { font-size: 1.6rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; hyphens: manual; }
.nd-step p { max-width: 17rem; margin-inline: auto; color: var(--ink-2); }

.nd-small {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  max-width: 58rem;
  margin: clamp(5rem, 9vw, 7rem) 0 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--sand);
  border-radius: 3rem 6rem 3rem 5rem / 3rem 4rem 5rem 3rem;
}
.nd-small__art svg { width: 12rem; height: auto; }
.nd-small h3 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 0.75rem; letter-spacing: -0.015em; }
.nd-small p { color: #4a5360; }
.nd-small p + p { margin-top: 0.75rem; }

.nd-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.5rem 4rem; margin-top: clamp(4.5rem, 8vw, 6.5rem); }
.nd-faq__title { font-size: clamp(1.8rem, 2.8vw, 2.3rem); letter-spacing: -0.015em; }
.nd-faq__list { display: grid; gap: 0.75rem; }
.nd-faq details { border-radius: 1.5rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s; }
.nd-faq details[open] { background: #fbfaf7; box-shadow: inset 0 0 0 1px var(--sand-2); }
.nd-faq summary {
  position: relative;
  padding: 1.1rem 3.75rem 1.1rem 1.5rem;
  font-weight: 600;
  color: var(--slate-d);
  cursor: pointer;
  list-style: none;
}
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary::before, .nd-faq summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 0.9rem;
  height: 2px;
  border-radius: 2px;
  background: var(--wood);
  transition: transform 0.25s;
}
.nd-faq summary::after { transform: rotate(90deg); }
.nd-faq details[open] summary::after { transform: rotate(0deg); }
.nd-faq details p { padding: 0 1.5rem 1.3rem; max-width: 40rem; color: var(--ink-2); }

/* products: tinted plates */
.nd-plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.nd-plate {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.6rem 1.75rem;
  border-radius: 2rem;
  hyphens: auto;
}
.nd-plate--sky { background: var(--mist); }
.nd-plate--sand { background: var(--sand); margin-top: 4rem; }
.nd-plate--rose { background: var(--rose); margin-top: 1.5rem; }
.nd-plate__art {
  display: grid;
  place-items: center;
  height: 8.5rem;
  margin-bottom: 1.5rem;
  border-radius: 1.4rem 1.4rem 3rem 1.4rem;
  background: rgba(255, 255, 255, 0.55);
}
.nd-plate__art svg { width: 9rem; height: auto; }
.nd-plate h3 { font-size: 1.75rem; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 0.65rem; hyphens: manual; }
.nd-plate p { color: #4a5360; font-size: 1rem; }
.nd-plate__meta { margin-top: 0.9rem; font-size: 0.9375rem !important; font-weight: 600; color: var(--slate) !important; }
.nd-plate__link {
  align-self: flex-start;
  margin-top: 1.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--slate-d);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 6px 16px -10px rgba(47, 66, 88, 0.5);
  transition: background 0.2s, color 0.2s;
}
.nd-plate__link:hover { background: var(--slate); color: #fff; }

/* contact */
.nd-contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 3rem clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(6rem, 11vw, 9rem);
  isolation: isolate;
}
.nd-blob--contact { right: 4%; top: 30%; width: 28rem; height: 22rem; border-radius: var(--blob-2); background: var(--sand); opacity: 0.8; }
.nd-contact h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -0.025em; max-width: 13ch; }
.nd-contact__copy p { max-width: 32rem; margin-top: 1.25rem; font-size: 1.1875rem; color: var(--ink-2); }
.nd-contact__card {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
  border-radius: 2.25rem 2.25rem 2.25rem 0.75rem;
  box-shadow: 0 30px 60px -36px rgba(47, 66, 88, 0.45);
}
.nd-contact__card dl { display: grid; gap: 1.1rem; width: 100%; }
.nd-contact__card dl > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.nd-contact__card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.nd-contact__card dt { font-size: 0.875rem; font-weight: 600; color: var(--wood-ink); padding-top: 0.1rem; }
.nd-contact__card a:not(.nd-btn) { color: var(--slate-d); font-weight: 600; text-decoration-color: var(--sand-2); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nd-contact__card a:not(.nd-btn):hover { text-decoration-color: var(--wood); }

/* ---------- footer ---------- */
.nd-foot { position: relative; margin-top: 2rem; background: var(--slate-d); color: #e6ebf1; }
.nd-foot__hills { position: absolute; left: 0; bottom: 100%; width: 100%; height: clamp(40px, 6vw, 90px); }
.nd-foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 1.5rem 3rem;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 2.5rem var(--gutter) 3rem;
}
.nd-foot__name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.nd-foot__tag { color: #b8c4d2; }
.nd-foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.nd-foot__links a { color: #fff; text-decoration-color: rgba(201, 138, 75, 0.7); text-underline-offset: 4px; }
.nd-foot__links a:hover { color: #f2c48d; }
.nd-foot__copy { color: #b8c4d2; font-size: 0.9375rem; }

/* ---------- legal ---------- */
.legal { padding-top: clamp(2rem, 5vw, 4rem); }
.legal__inner { position: relative; max-width: 46rem; padding: clamp(1.75rem, 4vw, 3.5rem); background: #fff; border-radius: 2.5rem 2.5rem 2.5rem 1rem; box-shadow: 0 30px 60px -40px rgba(47, 66, 88, 0.45); }
.legal h1 { font-weight: 400; color: var(--slate-d); letter-spacing: -0.025em; }
.legal h2 { font-family: var(--font-body); font-weight: 650; color: var(--slate-d); font-size: 1.15rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--wood-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nd-focus { grid-template-columns: 1fr; }
  .nd-focus__item--2 { transform: none; }
  .nd-svc--dev { grid-column: 1 / span 7; }
  .nd-svc--con { grid-column: 8 / span 5; margin-top: 8rem; }
  .nd-svc--coa { grid-column: 2 / span 7; margin-top: 0; }
  .nd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .nd-wave__line { display: none; }
  .nd-step--up, .nd-step--down { padding-top: 4rem; }
  .nd-step--up .nd-step__dot, .nd-step--down .nd-step__dot { top: 1.5rem; }
}
@media (max-width: 800px) {
  .nd-top { padding-block: 1.1rem; }
  .nd-nav { order: 3; width: 100%; margin-left: -0.9rem; }
  .nd-hero { grid-template-columns: 1fr; }
  .nd-hero__art { max-width: 26rem; }
  .nd-head, .nd-head--right { grid-template-columns: 1fr; }
  .nd-head--right h2, .nd-head--right p { grid-column: auto; grid-row: auto; }
  .nd-flow { grid-template-columns: 1fr; }
  .nd-svc--dev, .nd-svc--con, .nd-svc--coa { grid-column: auto; margin-top: 0; padding-left: 0; }
  .nd-svc--con { margin-left: 1.5rem; }
  .nd-steps { grid-template-columns: 1fr; gap: 2rem; padding-left: 0.5rem; }
  .nd-steps::before { content: ""; position: absolute; left: calc(0.5rem + 1.5rem - 2px); top: 1.5rem; bottom: 1.5rem; width: 4px; border-radius: 4px; background: #c9d5e3; }
  .nd-step, .nd-step--up, .nd-step--down { padding: 0.35rem 0 0 4.25rem; text-align: left; }
  .nd-step--up .nd-step__dot, .nd-step--down .nd-step__dot { left: 1.5rem; top: 1.5rem; }
  .nd-step p { margin-inline: 0; max-width: none; }
  .nd-small { grid-template-columns: 1fr; margin-left: 0; border-radius: 2rem 3.5rem 2rem 3rem; }
  .nd-small__art svg { width: 8rem; }
  .nd-faq { grid-template-columns: 1fr; }
  .nd-plates { grid-template-columns: 1fr; }
  .nd-plate--sand, .nd-plate--rose { margin-top: 0; }
  .nd-plate--sand { margin-left: 1.25rem; }
  .nd-contact { grid-template-columns: 1fr; }
  .nd-blob--contact { width: 18rem; height: 16rem; right: -4rem; top: auto; bottom: 4rem; }
  .nd-foot__inner { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 480px) {
  .nd-brand__sub { font-size: 0.75rem; }
  .nd-contact__card dl > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .nd-svc--con, .nd-plate--sand { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
