/* Shared styles for every page: tokens, layout, buttons, nav, footer, case cards, carousel,
   testimonials, dialogs and the interaction states. Each page adds its own CSS after this. */
:root {
  /* Warm Design System (José): https://claude.ai/artifact/ENaTEYr8ja8UbW9JrNJEEf */
  --bg: #fffcf7;
  --soft: #f7f1e8;
  --tint: #eee5d8;
  --tint-2: #e3d7c7;
  --ink: #0a0a0a;
  --body: #3a3a3a;
  --muted: #6a6a6a;
  --line: #e5e5e5;
  --brand: #b5583f;
  --brand-active: #a9513a;
  --on-brand: #fff;
  --btn-line: var(--line);
  --ok: #22c55e;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 3.2vw, 32px);
  --max: 1280px;
  --space: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --shadow-soft: 0 1px 2px rgba(40, 28, 16, 0.04), 0 12px 32px -12px rgba(40, 28, 16, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
}
/* Dark theme: the same warm palette, inverted. The brand colour gets lighter so
   text in it keeps AA contrast, and primary buttons switch to dark text. */
html[data-theme='dark'] {
  --bg: #15120f;
  --soft: #1d1a16;
  --tint: #29241f;
  --tint-2: #3a332c;
  --ink: #f6f1ea;
  --body: #d9d1c6;
  --muted: #a1978b;
  --line: #2e2924;
  --brand: #e08a6d;
  --brand-active: #ea9c81;
  --on-brand: #15120f;
  --btn-line: #574e44; /* button borders a step lighter than hairlines */
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  /* taps give their own feedback (see "Touch screens"), not the grey flash */
  -webkit-tap-highlight-color: transparent;
}
html.locked {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}
dialog:focus-visible {
  outline: none;
}
section[id] {
  scroll-margin-top: 80px;
}
/* Layout primitives */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.section {
  padding-top: var(--space);
}
.label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 63px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.9vw, 49px);
  line-height: 1.05;
  letter-spacing: -0.036em;
  max-width: 18ch;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.016em;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.16s var(--ease-standard),
    border-color 0.16s var(--ease-standard),
    color 0.16s var(--ease-standard);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn--primary:active {
  background: var(--brand-active);
}
.btn--ghost {
  border: 1px solid var(--btn-line);
  background: var(--bg);
  color: var(--ink);
}
.btn--ghost:active {
  background: var(--soft);
}
.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
}
.link-u {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--btn-line);
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    background 0.16s var(--ease-standard),
    border-color 0.16s var(--ease-standard),
    color 0.16s var(--ease-standard),
    opacity 0.16s var(--ease-standard);
}
.icon-btn:active {
  background: var(--soft);
}
.icon-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled {
  border-color: var(--line);
}
/* scroll progress along the top of the bar (site.js) */
.nav__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}
.nav__progress i {
  display: block;
  height: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.nav__name {
  display: inline-block;
  font-weight: 500;
  font-size: 21px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* the é of the wordmark: a plain e with a terracotta accent on top */
.nav__e {
  position: relative;
}
.nav__e::after {
  content: '\00b4';
  position: absolute;
  left: 50%;
  top: -0.12em;
  transform: translateX(-35%);
  transform-origin: 50% 80%;
  font-weight: 700;
  color: var(--brand);
  transition: transform 0.16s var(--ease-standard);
}
.nav__anchors {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.nav__anchors a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__theme {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--btn-line);
  background: var(--bg);
  color: var(--ink);
  transition:
    border-color 0.16s var(--ease-standard),
    color 0.16s var(--ease-standard);
}
.nav__sun,
html[data-theme='dark'] .nav__moon {
  display: none;
}
html[data-theme='dark'] .nav__sun {
  display: block;
}
.nav__menu {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  place-items: center;
  border: 1px solid var(--btn-line);
  background: var(--bg);
  transition:
    border-color 0.16s var(--ease-standard),
    color 0.16s var(--ease-standard);
}
.nav__menu path {
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
  transform-origin: 9px 9px;
}
.nav__menu[aria-expanded='true'] path:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav__menu[aria-expanded='true'] path:last-child {
  transform: translateY(-3px) rotate(-45deg);
}
.nav__sheet {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 49;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 24px
    max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  /* phones held sideways are shorter than the menu: let it scroll */
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.35s var(--ease);
}
.nav__sheet.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav__sheet > a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nav__sheet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
/* Placeholder mockups */
.ph {
  position: relative;
  background: var(--soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #9a9a9a;
  font-size: 13px;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  left: 16px;
  bottom: 14px;
}
/* a real image instead of the mockup: it fills the frame (images stay light in dark mode) */
.ph--img::after {
  content: none;
}
.ph--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* a screen video plays behind the device image, through its see-through screen */
.ph__screen {
  position: absolute;
  object-fit: fill;
  background: #fff; /* a screen, so it stays light in dark mode */
}
.ph--img img {
  position: relative;
}
/* on the case cards a real screenshot keeps its own shape, nothing cropped */
.case__media.ph--img {
  aspect-ratio: auto;
}
.case__media.ph--img img {
  height: auto;
}
.mock-browser {
  width: 78%;
  aspect-ratio: 16/10;
  background: #fffcf7; /* stands in for a screenshot, so it stays light */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}
.mock-browser__bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
}
.mock-browser__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
}
.mock-browser__body {
  flex: 1;
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: 12px;
  padding: 12px;
}
.mock-side {
  background: #f5f5f4;
  border-radius: 8px;
}
.mock-main {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mock-kpis i {
  height: 44px;
  border-radius: 8px;
  background: #f3f4f8;
}
.mock-chart {
  border-radius: 8px;
  background: linear-gradient(to top, #e8edfd 0 30%, transparent 30%), #f7f7f7;
}
.case {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case__media {
  order: -1;
}
.case--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 40px 56px 40px 40px;
  background: var(--soft);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color 0.16s var(--ease-standard);
}
.case--feature .case__media {
  background: transparent;
}
.case__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.case__kicker .kicker__year {
  margin-left: 12px;
  color: var(--ink);
}
/* a case's kicker: the full text on one line, a little smaller when needed (fitKickers) */
.kicker {
  white-space: nowrap;
}
.kicker--wrap {
  white-space: normal;
}
/* …so a card and its text may be narrower than the kicker's full line */
.case,
.case__text {
  min-width: 0;
}
.case__title {
  margin-top: 12px;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(25px, 2.8vw, 35px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  transition: color 0.16s var(--ease-standard);
}
.case__sub {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--muted);
}
.case__link {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.case__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.case__link span {
  transition: transform 0.16s var(--ease-standard);
}
.case__media {
  aspect-ratio: 16/10;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.16s var(--ease-standard);
}
.case--feature .case__media {
  border: 0;
}
.case__media .mock-browser {
  width: 84%;
}
/* a case still being written, under the case list (Home, Work) */
.soon {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 16px 20px;
  border: 1px dashed var(--btn-line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--muted);
}
.soon__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}
.quote .quote__soon {
  color: var(--muted);
  font-style: italic;
}
/* Carousel (testimonials on Home, screens in a case study) */
.track {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
  margin-top: 48px;
}
.track::-webkit-scrollbar {
  display: none;
}
.track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.carousel__ctrl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots button {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--tint-2);
  transition:
    width 0.35s var(--ease),
    background 0.25s;
}
.dots button.on {
  width: 22px;
  background: var(--ink);
}
.arrows {
  display: flex;
  gap: 8px;
}
.quote {
  margin: 0;
  width: min(440px, 82vw);
  min-height: 300px;
  background: var(--tint);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote p {
  font-size: 16px;
  line-height: 1.55;
}
.quote .link-u {
  align-self: flex-start;
  font-size: 14px;
  color: var(--body);
}
.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.who i,
.who img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tint-2);
}
.who img {
  object-fit: cover;
}
.who b {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.who span {
  font-size: 13px;
  color: var(--body);
}
/* Footer */
.foot {
  padding-top: 80px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  margin-top: var(--space);
  background: var(--soft);
}
.foot__cta {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.foot__talk {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
}
.foot__talk em {
  color: var(--brand);
}
.foot__talk span {
  transition: transform 0.16s var(--ease-standard);
}
.foot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.foot__bar {
  display: grid;
  gap: 16px;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.foot__row {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.foot__bar nav {
  display: flex;
  gap: 20px;
}
/* footer without the "Let’s talk" call to action (Contact, 404, under construction) */
.foot--bare {
  padding-top: 40px;
}
.foot--bare .foot__bar {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
/* Dannebrog, 37:28 with the cross off-centre towards the hoist */
.foot__flag {
  width: 15px;
  height: 11px;
  margin-left: 4px;
  vertical-align: -1px;
  border-radius: 1px;
}
.foot__eggs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* a small egg */
.foot__eggs i {
  width: 11px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--tint-2);
}
.foot__eggs b {
  color: var(--brand);
  font-weight: 600;
}
/* Dialogs / overlays */
dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  max-width: none;
  max-height: none;
}
dialog::backdrop {
  background: rgba(10, 10, 10, 0.42);
}
dialog[open] {
  animation: dlg-in 0.5s var(--ease);
}
dialog.closing {
  animation: dlg-out 0.28s ease forwards;
}
dialog.closing::backdrop {
  opacity: 0;
  transition: opacity 0.28s;
}
@keyframes dlg-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dlg-out {
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}
/* Dashed note where José still has to send text or images (removed once it arrives) */
.pending {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px dashed var(--brand);
  border-radius: var(--radius-sm);
  background: var(--soft);
  font-size: 14px;
  line-height: 1.5;
  color: var(--brand-active);
  max-width: 62ch;
}
/* Small dialogs: testimonial */
.modal {
  width: min(620px, calc(100% - 32px));
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  margin: auto;
}
/* Never taller than the screen: the text scrolls inside, the close button stays put */
.modal[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}
#modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.modal p:not(.label) {
  font-size: 16px;
  line-height: 1.55;
}
.modal p + p {
  margin-top: 14px;
}
.modal .who {
  margin-top: 28px;
}
/* Hover: one pattern for everything clickable (an exception to the design system's
   "no hover", asked for by José). Text turns terracotta; outlined controls get a
   terracotta label and border; the primary button darkens. Mouse and trackpad only. */
.nav__anchors a,
.nav__sheet > a,
.link-u,
.foot__talk,
.foot__bar a,
.case__title,
.case__link {
  transition:
    color 0.16s var(--ease-standard),
    border-color 0.16s var(--ease-standard);
}
@media (hover: hover) {
  .nav__anchors a:hover,
  .nav__sheet > a:hover,
  .link-u:hover,
  .foot__talk:hover,
  .foot__bar a:hover,
  .case:hover .case__title,
  .case:hover .case__link {
    color: var(--brand);
  }
  .foot__talk:hover span {
    transform: translateX(8px);
  }
  .nav__name:hover .nav__e::after {
    transform: translateX(-35%) scale(1.18);
  }
  .case:hover .case__link span {
    transform: translateX(4px);
  }
  .case--feature:hover {
    border-color: var(--brand);
  }
  .btn--primary:hover {
    background: var(--brand-active);
  }
  .btn--ghost:hover,
  .icon-btn:not([disabled]):hover,
  .nav__menu:hover,
  .nav__theme:hover {
    color: var(--brand);
    border-color: var(--brand);
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open] {
    animation: none;
  }
  .case__link span,
  .foot__talk span,
  .nav__e::after {
    transition: none;
  }
}
/* Touch screens: no hover, so taps get the same terracotta feedback while the
   finger is down, and small text links get a bigger invisible hit area. */
@media (hover: none) {
  .nav__anchors a:active,
  .nav__sheet > a:active,
  .link-u:active,
  .foot__talk:active,
  .foot__bar a:active,
  .case:active .case__title,
  .case:active .case__link {
    color: var(--brand);
  }
  .case--feature:active {
    border-color: var(--brand);
  }
  .btn--primary:active {
    background: var(--brand-active);
  }
  .btn--ghost:active,
  .icon-btn:not([disabled]):active,
  .nav__menu:active,
  .nav__theme:active {
    color: var(--brand);
    border-color: var(--brand);
  }
}
@media (pointer: coarse) {
  .nav__anchors a,
  .link-u,
  .foot__bar a,
  .dots button {
    position: relative;
  }
  .nav__anchors a::before,
  .link-u::before,
  .foot__bar a::before {
    content: '';
    position: absolute;
    inset: -12px -6px;
  }
  .dots {
    gap: 10px;
  }
  .dots button::before {
    content: '';
    position: absolute;
    inset: -19px -5px;
  }
}
/* Responsive */
@media (max-width: 1100px) {
  .nav__anchors {
    display: none;
  }
  .nav__menu {
    display: grid;
  }
}
@media (max-width: 860px) {
  .nav__links .btn--ghost {
    display: none;
  }
  .case--feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 20px 28px;
  }
}
@media (max-width: 520px) {
  .nav .btn--primary {
    display: none;
  }
}
