/* ==========================================================================
   JD Management GmbH — "Aurora" design system
   Light, soft-gradient, indigo accent. Mobile-first, no external requests.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* surface */
  --bg:         #F7F5FF;
  --bg-2:       #FFFFFF;
  --glass:      rgba(255, 255, 255, .66);
  --glass-2:    rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .9);

  /* text */
  --fg:         #171427;
  --fg-mute:    #56517A;
  --fg-faint:   #8E89AD;

  /* accent */
  --indigo:      #5B3FD9;
  --indigo-deep: #4A31BE;
  --indigo-lift: #8B6BFF;
  --violet:      #C9B8FF;
  --peach:       #FFD9C7;
  --mint:        #C4F0E4;
  --rose:        #C2559E;

  /* lines */
  --line:      rgba(91, 63, 217, .14);
  --line-soft: rgba(91, 63, 217, .08);

  /* families */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* rhythm */
  --gut:   clamp(1.25rem, 5vw, 2.5rem);
  --shell: 1260px;
  --band:  clamp(4.5rem, 11vw, 9rem);
  --r:     22px;

  /* motion */
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* elevation */
  --lift-1: 0 10px 30px -22px rgba(23, 20, 39, .45);
  --lift-2: 0 20px 48px -28px rgba(23, 20, 39, .5);
  --lift-3: 0 28px 60px -30px rgba(91, 63, 217, .55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* German compounds (Verbraucherstreitbeilegung) are longer than a 320px
     column; without this they are clipped by the overflow-x above. */
  overflow-wrap: break-word;
  position: relative;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.025em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--indigo); color: #fff; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   AURORA BACKDROP
   Three slow-drifting colour fields behind everything.
   ========================================================================== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  display: block;
}

/* The container is fixed, so these are placed against the viewport — vertical
   offsets must be vh, or on a wide screen the lower field falls out of view
   and the bottom of the page goes flat. */
.aurora i:nth-child(1) { width: clamp(22rem, 48vw, 46rem); aspect-ratio: 1; background: var(--violet); top: -18vh; left: -8vw;   animation: drift-a 26s ease-in-out infinite; }
.aurora i:nth-child(2) { width: clamp(18rem, 40vw, 38rem); aspect-ratio: 1; background: var(--peach);  top:  22vh; right: -12vw; animation: drift-b 32s ease-in-out infinite; }
.aurora i:nth-child(3) { width: clamp(16rem, 34vw, 32rem); aspect-ratio: 1; background: var(--mint);   bottom: -16vh; left: 10vw; animation: drift-c 29s ease-in-out infinite; }

@keyframes drift-a { 0%, 100% { transform: none; } 50% { transform: translate(6vw, 8vw) scale(1.12); } }
@keyframes drift-b { 0%, 100% { transform: none; } 50% { transform: translate(-8vw, 6vw) scale(.9); } }
@keyframes drift-c { 0%, 100% { transform: none; } 50% { transform: translate(10vw, -6vw) scale(1.1); } }

/* ---------- layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band { padding-block: var(--band); position: relative; }
.band--tight { padding-block: clamp(3.5rem, 8vw, 7rem); }

.hair { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- type scale ---------- */
.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 400;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

/* gradient accent word */
.accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--indigo), var(--rose) 55%, #F08A5D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* pad the clip box for the italic overhang, then pull it back so the next
     character (usually a full stop) keeps its position */
  padding-right: .08em;
  margin-right: -.08em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .95rem;
}

.eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--indigo);
  animation: blip 2.4s ease-in-out infinite;
}

@keyframes blip { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.5); } }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.68;
  color: var(--fg-mute);
  max-width: 54ch;
  text-wrap: pretty;
}

.muted { color: var(--fg-mute); }
.small { font-size: .875rem; line-height: 1.6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--glass-2);
  color: var(--indigo);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              background .4s var(--ease), color .4s var(--ease);
}

.btn:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--lift-1); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--indigo);
  color: #fff;
  border-color: transparent;
  font-weight: 500;
  box-shadow: 0 10px 28px -12px rgba(91, 63, 217, .65);
}
.btn--solid:hover {
  background: var(--indigo-deep);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -14px rgba(91, 63, 217, .75);
}

.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9375rem;
  color: var(--indigo);
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .4s var(--ease);
}
.tlink:hover { border-bottom-color: var(--indigo); }

/* ==========================================================================
   NAV — floating glass pill
   ========================================================================== */
.nav {
  position: fixed;
  inset: .75rem 0 auto 0;
  z-index: 100;
}

.nav__in {
  /* .shell also sets width:100%. Together with the side margins below that
     makes the pill 2 x margin wider than the header, so its right end — the
     burger — is clipped on every viewport narrower than about 1340px.
     width:auto gives it the header width minus its own margins instead. */
  width: auto;
  max-width: var(--shell);
  margin-inline: max(var(--gut), calc((100vw - var(--shell)) / 2));
  padding: .55rem .6rem .55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  box-shadow: 0 10px 34px -18px rgba(23, 20, 39, .3);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}

.nav.is-stuck .nav__in {
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 40px -20px rgba(23, 20, 39, .4);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; }

.brand__mark {
  width: 2.05rem;
  height: 2.05rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--indigo), var(--rose));
  color: #fff;
  font-family: var(--serif);
  font-size: .8125rem;
  letter-spacing: .01em;
}

.brand__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: hidden; }
.brand__name { font-size: .9375rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand__sub {
  font-family: var(--mono);
  font-size: .5625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
}

.nav__links { display: none; align-items: center; gap: 1.75rem; }

.nav__link {
  font-size: .875rem;
  color: var(--fg-mute);
  position: relative;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  border-radius: 2px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover { color: var(--indigo); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__side { display: flex; align-items: center; gap: .6rem; }

/* language switch */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .08em;
  background: rgba(255, 255, 255, .6);
}
.lang a {
  padding: .3rem .55rem;
  border-radius: 999px;
  color: var(--fg-faint);
  transition: color .3s, background .3s;
}
.lang a:hover { color: var(--indigo); }
.lang a[aria-current='true'] { background: var(--indigo); color: #fff; font-weight: 500; }

.nav__cta { display: none; }

/* burger */
.burger {
  width: 2.4rem; height: 2.4rem;
  position: relative;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  flex: none;
}
.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 15px; height: 1.5px;
  border-radius: 2px;
  background: var(--fg);
  transform-origin: center;
  transition: transform .4s var(--ease), opacity .25s;
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.burger span:nth-child(2) { transform: translate(-50%, -50%); }
.burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 4.5rem var(--gut) auto;
  z-index: 99;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r);
  box-shadow: var(--lift-2);
  padding: 1.25rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  transform: translateY(-10px) scale(.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer a.drawer__link {
  font-family: var(--serif);
  font-size: 1.4rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg);
}
.drawer a.drawer__link span { font-family: var(--mono); font-size: .5625rem; color: var(--fg-faint); }
.drawer .btn { margin-top: 1.35rem; justify-content: center; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(8rem, 17vh, 12rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}

/* the old dark-theme glow element is unused in this theme */
.hero__glow { display: none; }

.hero__in { position: relative; z-index: 1; }

.hero__title { margin: 1.5rem auto 0; max-width: 17ch; }
.hero__lede  { margin: 1.75rem auto 0; }

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  justify-content: center;
}

/* proof row — glass tiles */
.hero__meta {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
}
.hero__meta > div {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--lift-1);
}
.hero__meta dt {
  font-family: var(--mono);
  font-size: .5625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .45rem;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
  border-block: 1px solid var(--line-soft);
  padding-block: 1.1rem;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__row {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 46s linear infinite;
}
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
}
.ticker__item::after { content: '●'; color: var(--indigo); font-size: .4rem; }

@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTION HEAD
   ========================================================================== */
.shead { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); text-align: center; justify-items: center; }
.shead__title { max-width: 20ch; }
.shead__note  { max-width: 50ch; }

/* ==========================================================================
   SERVICES — glass cards
   ========================================================================== */
.svc { display: grid; gap: 1.1rem; }

.svc__item {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r);
  padding: 1.75rem;
  display: grid;
  gap: .7rem;
  align-content: start;
  box-shadow: var(--lift-1);
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.svc__item:hover { box-shadow: var(--lift-3); }

.svc__no {
  display: inline-grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--violet), var(--peach));
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--fg);
}

.svc__body { display: grid; gap: .5rem; }

.svc__name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.svc__desc { color: var(--fg-mute); font-size: .9375rem; }

.svc__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.svc__tag {
  font-size: .6875rem;
  color: var(--indigo);
  background: rgba(91, 63, 217, .09);
  border-radius: 999px;
  padding: .28rem .65rem;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.steps { display: grid; gap: 1.1rem; }

.step {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r);
  padding: 1.75rem;
  display: grid;
  gap: .7rem;
  align-content: start;
  box-shadow: var(--lift-1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }

.step__no {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--indigo);
}
.step__name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; }
.step__desc { color: var(--fg-mute); font-size: .9375rem; }

/* ==========================================================================
   WORK
   ========================================================================== */
.work { display: grid; gap: 1.25rem; }

.work__card {
  position: relative;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--r) + 8px);
  overflow: hidden;
  display: grid;
  box-shadow: var(--lift-2);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.work__card:hover { transform: translateY(-3px); box-shadow: var(--lift-3); }

/* a single reference reads as a deliberate feature, not a half-empty grid */
.work__card--feature { grid-column: 1 / -1; }

.work__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, var(--violet), var(--peach) 55%, var(--mint));
  display: grid;
  place-items: center;
}

.work__logo {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  letter-spacing: -.025em;
  color: var(--fg);
  text-align: center;
  padding-inline: 1.5rem;
  line-height: 1.1;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out);
}
.is-in .work__logo { transform: none; }
.work__logo em { font-style: italic; color: var(--indigo); }

.work__body { padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: .8rem; align-content: center; }

.work__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.work__name { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.work__year { font-family: var(--mono); font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }
.work__desc { color: var(--fg-mute); font-size: .9375rem; }

.work__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.work__chip {
  font-size: .6875rem;
  color: var(--indigo);
  background: rgba(91, 63, 217, .09);
  border-radius: 999px;
  padding: .3rem .7rem;
}

/* ==========================================================================
   SPLIT (about)
   ========================================================================== */
.split { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

.facts {
  display: grid;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r);
  padding: .5rem 1.4rem;
  box-shadow: var(--lift-1);
}
.facts__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.facts__row:last-child { border-bottom: 0; }
.facts__k { font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }
.facts__v { text-align: right; font-size: .9375rem; }

.quote {
  border-left: 2px solid var(--indigo);
  padding-left: clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.32;
  letter-spacing: -.025em;
  color: var(--fg);
  text-wrap: balance;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--r) + 8px);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--lift-2);
}

.field { display: grid; gap: .45rem; }

.field label {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .875rem 1rem;
  font-size: .9375rem;
  color: var(--fg);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--indigo);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 63, 217, .1);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-mute) 50%),
                    linear-gradient(135deg, var(--fg-mute) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

.grid2 { display: grid; gap: 1.1rem; }

.consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--fg-mute);
}
.consent input {
  appearance: none;
  flex: none;
  width: 1.15rem; height: 1.15rem;
  margin-top: .1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background .3s, border-color .3s;
}
.consent input:checked { background: var(--indigo); border-color: var(--indigo); }
.consent input:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

.formnote {
  font-size: .8125rem;
  color: var(--fg-mute);
  display: none;
  padding: .875rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(91, 63, 217, .05);
}
.formnote.is-on { display: block; }
.formnote.is-ok { color: var(--indigo); }

.reach { display: grid; gap: 1.6rem; align-content: start; }
.reach__item { display: grid; gap: .25rem; }
.reach__k {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.reach__v { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -.02em; }
.reach__v a { transition: color .3s; }
.reach__v a:hover { color: var(--indigo); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 7vw, 4.5rem) 2.25rem;
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.foot__top { display: grid; gap: 2.25rem; margin-bottom: 2.75rem; }

.foot__col h4 {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .9rem;
  font-weight: 500;
}
.foot__col li + li { margin-top: .55rem; }
.foot__col a { font-size: .9375rem; color: var(--fg-mute); transition: color .3s; }
.foot__col a:hover { color: var(--indigo); }

.foot__bar {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: var(--fg-faint);
}
.foot__bar a { transition: color .3s; }
.foot__bar a:hover { color: var(--indigo); }

.foot__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ==========================================================================
   LEGAL / PROSE PAGES
   ========================================================================== */
.prose {
  -webkit-hyphens: auto;
  hyphens: auto;
  max-width: 74ch;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--r) + 6px);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--lift-1);
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  letter-spacing: -.025em;
  margin-top: 2.75rem;
  margin-bottom: .9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 1.9rem;
  margin-bottom: .55rem;
}
.prose p, .prose ul, .prose ol { color: var(--fg-mute); font-size: .9375rem; line-height: 1.75; }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: none; margin-top: 1rem; display: grid; gap: .5rem; }
.prose ul li { padding-left: 1.3rem; position: relative; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .66em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  opacity: .45;
}
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 700; }
.prose address { font-style: normal; color: var(--fg-mute); line-height: 1.8; }

.prose__meta {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--fg-faint);
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(.995);
  filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
}
[data-reveal-group].is-in > * { opacity: 1; transform: none; filter: none; }
[data-reveal-group].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-in > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-group].is-in > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-group].is-in > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-group].is-in > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-group].is-in > *:nth-child(6) { transition-delay: 400ms; }
[data-reveal-group].is-in > *:nth-child(7) { transition-delay: 480ms; }
[data-reveal-group].is-in > *:nth-child(8) { transition-delay: 560ms; }

/* ==========================================================================
   SKIP LINK
   ========================================================================== */
.skip {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  top: -100px;
  z-index: 200;
  background: var(--indigo);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 12px 12px;
  font-size: .875rem;
  font-weight: 500;
  transition: top .3s var(--ease);
}
.skip:focus { top: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* narrow phones: the glass pill must stay on one line */
@media (max-width: 560px) {
  .nav__in { gap: .5rem; padding-left: .8rem; }
  .brand__name { font-size: .875rem; }
  .brand__sub { display: none; }

  /* The legal pages put a back-button in the bar where the home page has the
     burger (its own CTA, .nav__cta, is hidden below 1024px). Mark + wordmark
     + language switch + that button do not fit on a 375px phone, so the
     wordmark gives way — the JD mark still links home. */
  .nav__in:has(.nav__side > .btn:not(.nav__cta)) .brand__txt { display: none; }
  .nav__side > .btn:not(.nav__cta) { white-space: nowrap; }
}

/* On a phone the back-button is the widest thing left in the bar once the
   wordmark is gone, so it sheds its arrow first and then its padding —
   otherwise it pushes the language switch onto the JD mark. */
@media (max-width: 420px) {
  .nav__side > .btn:not(.nav__cta) .arrow { display: none; }
}

@media (max-width: 360px) {
  .nav__side > .btn:not(.nav__cta) { padding-inline: 1.1rem; font-size: .875rem; }
}

@media (min-width: 600px) {
  .hero__meta { grid-template-columns: repeat(4, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot__top { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .svc { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .work { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact { grid-template-columns: 1.35fr .65fr; }
  .foot__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

  .work__card--feature { grid-template-columns: 1fr 1fr; }
  .work__card--feature .work__visual { aspect-ratio: auto; height: 100%; min-height: 21rem; }
  .work__card--feature .work__logo { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
  .work__card--feature .work__body { padding: clamp(2rem, 4vw, 3rem); }
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
}

/* ==========================================================================
   MOTION / CONTRAST PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
  }
  [data-reveal],
  [data-reveal-group] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .work__logo { transform: none !important; }
}

@media (prefers-contrast: more) {
  :root {
    --fg-mute: #3C3860;
    --fg-faint: #56517A;
    --line: rgba(91, 63, 217, .35);
    --glass: rgba(255, 255, 255, .92);
    --glass-2: rgba(255, 255, 255, .96);
  }
}

/* print */
@media print {
  .nav, .drawer, .ticker, .aurora, .btn { display: none !important; }
  body { background: #fff; }
  .prose, .contact, .facts { box-shadow: none; border-color: #ccc; backdrop-filter: none; }
  .prose p, .prose ul { color: #000; }
}
