/* =========================================================
   Dreamlike Game Studio — landing page
   Concept: the page runs from night (the dreams: our games)
   to morning (the reality: your project).
   ========================================================= */

:root {
  /* palette, taken from the ram mascot and the brand files */
  --night: #2a211f;        /* brand brown */
  --night-deep: #1f1816;
  --noir: #141010;         /* Chicken Holmes case file */
  --wool: #f7f1e3;         /* the ram's fleece */
  --sand: #e8dccb;         /* wordmark colour */
  --day: #ecdfca;          /* morning background */
  --day-light: #f5ecdd;
  --horn: #e5cc8e;         /* the ram's horns */
  --horn-deep: #b48c45;
  --ink: #2a211f;
  --ink-soft: #5c4c44;
  --muted: #c0b09d;        /* secondary text on night */
  --peach: #f8cbb3;        /* Cactus Clicker */
  --lilac: #a99ddb;        /* dream haze */

  --display: "Quicksand", "Nunito", system-ui, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-panel: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--wool);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--horn); color: var(--ink); padding: .6rem 1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--horn); outline-offset: 3px; border-radius: 6px; }
.day :focus-visible { outline-color: var(--horn-deep); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.6rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 2.5rem; padding: .45rem 1.15rem; font-size: .95rem; }
.btn--block { width: 100%; }

.btn--horn { background: var(--horn); color: var(--ink); }
.btn--horn:hover { background: var(--wool); }
.btn--ghost { border-color: rgba(232, 220, 203, .45); color: var(--wool); }
.btn--ghost:hover { border-color: var(--wool); background: rgba(247, 241, 227, .08); }
.btn--ink { background: var(--ink); color: var(--wool); }
.btn--ink:hover { background: #47372f; }

.text-link {
  font-family: var(--display); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter);
  transition: background-color .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(31, 24, 22, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(232, 220, 203, .08);
  padding-block: .6rem;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--sand);
  font-family: var(--display); font-weight: 400; font-size: 1.2rem; letter-spacing: .22em;
}
.nav__brand img { width: 40px; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) {
  font-family: var(--display); font-weight: 500; text-decoration: none; color: var(--sand);
  padding-block: .35rem; border-bottom: 1.5px solid transparent; transition: border-color .2s, color .2s;
}
.nav__menu a:not(.btn):hover { color: var(--wool); border-color: var(--horn); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: var(--wool); cursor: pointer; position: relative;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle-bars { top: 21px; }
.nav__toggle-bars::before { content: ""; left: 0; top: -7px; }
.nav__toggle-bars::after { content: ""; left: 0; top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 1.75rem;
    background: var(--night-deep);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav__menu a:not(.btn) { font-size: 1.6rem; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav.is-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =========================================================
   NIGHT
   ========================================================= */
.night {
  position: relative;
  background:
    radial-gradient(1200px 700px at 50% 0%, #3a2e2b 0%, transparent 70%),
    var(--night);
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 6rem var(--gutter) 4rem;
  text-align: center;
  overflow: hidden;
}
.hero__sky { position: absolute; inset: 0; z-index: -2; }
.star {
  position: absolute; border-radius: 50%; background: var(--wool);
  opacity: var(--o, .6);
  animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes twinkle { from { opacity: var(--o, .6); } to { opacity: .08; } }

.hero__glow {
  position: absolute; z-index: -1; left: 50%; top: 42%;
  width: min(900px, 140vw); aspect-ratio: 1; translate: -50% -50%;
  background:
    radial-gradient(closest-side, rgba(229, 204, 142, .18), transparent 70%),
    radial-gradient(closest-side at 60% 55%, rgba(169, 157, 219, .14), transparent 75%);
  filter: blur(10px);
}

.hero__inner { display: grid; justify-items: center; max-width: 46rem; }

.ram {
  position: relative; display: block;
  width: clamp(170px, min(30vw, 30svh), 300px);
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 40%;
}
.ram__img {
  width: 100%;
  transform-origin: 50% 92%;
  animation: breathe 4.8s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}
@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  45% { transform: scale(1.012, 1.03); }
}
.ram.is-snoring .ram__img { animation: snore .6s var(--ease); }
@keyframes snore {
  0% { transform: scale(1, 1); }
  40% { transform: scale(1.05, .93); }
  100% { transform: scale(1, 1); }
}
.ram__z {
  position: absolute; left: 22%; top: 18%;
  font-family: var(--display); font-weight: 600; color: var(--sand);
  font-size: 1.1rem; opacity: 0; pointer-events: none;
  animation: drift 6s ease-in-out infinite;
}
.ram__z:nth-child(2) { animation-delay: 2s; font-size: 1.45rem; }
.ram__z:nth-child(3) { animation-delay: 4s; font-size: 1.8rem; }
.ram__z--puff { animation: drift 2.4s ease-out forwards; font-size: 2.2rem; color: var(--horn); }
@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); }
  15% { opacity: .9; }
  80% { opacity: .5; }
  100% { opacity: 0; transform: translate(-46px, -110px) rotate(10deg); }
}

.wordmark { margin-top: 1rem; line-height: 1; }
.wordmark__text {
  display: inline-block;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.9rem, 9vw, 6rem);
  letter-spacing: .3em; margin-right: -.3em; /* balance trailing tracking */
  color: var(--sand);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.tagline {
  margin-top: 1rem;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.25rem); letter-spacing: .16em;
  color: var(--horn);
}
.hero__lede {
  margin-top: 1.6rem; max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted);
}
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* the one orchestrated moment: drifting into the dream */
@media (prefers-reduced-motion: no-preference) {
  .hero__sky { animation: fade-in 2.2s ease both; }
  .hero__inner > * { animation: surface 1s var(--ease) both; }
  .hero .ram { animation-name: focus-in; animation-duration: 1.3s; }
  .hero .wordmark { animation-delay: .35s; }
  .hero .wordmark__text { animation: untrack 1.6s var(--ease) .35s both; }
  .hero .tagline { animation-delay: .7s; }
  .hero .hero__lede { animation-delay: .9s; }
  .hero .hero__actions { animation-delay: 1.05s; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes surface { from { opacity: 0; translate: 0 12px; } }
@keyframes focus-in { from { opacity: 0; filter: blur(10px); scale: .96; } }
@keyframes untrack { from { letter-spacing: .55em; margin-right: -.55em; } }

/* ---------- games ---------- */
.games { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem); }

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2,
.services__head h2,
.process h2,
.studio h2,
.contact h2,
.sunrise h2 {
  font-weight: 400; letter-spacing: .01em; line-height: 1.12;
  font-size: clamp(2.25rem, 4.2vw + .5rem, 3.6rem);
}
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.15rem; }

/* Chicken Holmes: a case file */
.case {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-radius: var(--radius-panel);
  background: var(--noir);
  min-height: 560px;
}
.case__lamp {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 420px at 82% 18%, rgba(255, 236, 200, .16), transparent 70%),
    radial-gradient(700px 500px at 10% 110%, rgba(196, 122, 56, .14), transparent 70%);
}
.case__body { padding: clamp(1.75rem, 4vw, 3.25rem); display: grid; align-content: start; gap: 1.5rem; }
.case__logo img { width: min(340px, 80%); }
.case__intro { max-width: 32em; color: #d9ccbb; }

.case__files { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-block: .5rem 1rem; }
.polaroid { margin: 0; }
.polaroid a {
  display: block; text-decoration: none; color: var(--ink);
  background: #f3ead9; padding: .6rem .6rem 1rem; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.polaroid a::before { /* a strip of tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 70px; height: 22px; translate: -50% 0;
  background: rgba(229, 204, 142, .7); rotate: -3deg; border-radius: 2px;
}
.polaroid--a a { transform: rotate(-2.2deg); }
.polaroid--b a { transform: rotate(1.8deg) translateY(14px); }
.polaroid a:hover, .polaroid a:focus-visible { transform: rotate(0) translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }
.polaroid img { border-radius: 3px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.polaroid figcaption { display: grid; gap: .2rem; padding: .8rem .3rem 0; font-size: .95rem; line-height: 1.5; }
.polaroid figcaption strong { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.polaroid figcaption span { color: var(--ink-soft); }
.polaroid .steam-link {
  margin-top: .35rem; font-family: var(--display); font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(42, 33, 31, .35);
}
.case .text-link { color: var(--horn); justify-self: start; }

.case__detective {
  align-self: end; justify-self: end;
  width: 115%; max-width: none; margin-right: -12%;
  filter: drop-shadow(-20px 10px 40px rgba(0, 0, 0, .6));
  pointer-events: none;
}

/* the other two games */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(1.25rem, 3vw, 2rem); }
.game { border-radius: var(--radius-panel); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.game__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.game__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: .75rem; align-content: start; }
.game__body h3 { font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.game__meta { font-family: var(--display); font-weight: 500; font-size: .95rem; opacity: .8; }
.game__body .text-link { justify-self: start; margin-top: .5rem; }

.game--cactus { background: var(--peach); color: var(--ink); }
.game--cactus .game__key { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.game--cactus .game__logo { position: absolute; left: 50%; top: 13%; width: 58%; translate: -50% 0; filter: drop-shadow(0 4px 0 rgba(122, 74, 60, .18)); }
.game--cactus .game__body p:not(.game__meta) { color: #4a3530; }

/* Lumexa's own Steam capsule is pure black with a white glow, so the card matches it */
.game--lumexa { background: #0c0c0d; color: #f2f2f2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.game--lumexa .game__art { background: #000; }
.game--lumexa .game__cover { width: 100%; height: 100%; object-fit: cover; }
.game--lumexa .game__body p:not(.game__meta) { color: #c9c9cc; }

/* =========================================================
   SUNRISE: the hinge from night to day
   ========================================================= */
.sunrise {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(8rem, 18vw, 13rem);
  text-align: center;
  background: linear-gradient(to bottom, var(--night) 0%, #5a4038 34%, #b98a6c 62%, #e5c8a6 82%, var(--day) 100%);
}
.sunrise__sun {
  position: absolute; z-index: -1; left: 50%; bottom: 0;
  width: clamp(320px, 52vw, 640px); aspect-ratio: 1; translate: -50% 52%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff3dc 0%, #f6d59a 45%, rgba(246, 205, 150, 0) 72%);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sunrise__sun { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
    @keyframes rise { from { translate: -50% 85%; } to { translate: -50% 45%; } }
  }
}
.sunrise__text { max-width: 44rem; }
.sunrise p { margin: 1.1rem auto 0; max-width: 34em; font-size: 1.2rem; color: #f6ebdb; text-shadow: 0 1px 12px rgba(42, 33, 31, .35); }

/* =========================================================
   DAY
   ========================================================= */
.day { background: var(--day); color: var(--ink); }
.day .text-link { color: var(--ink); }

/* ---------- services ---------- */
.services {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem);
}
.services__head { align-self: start; position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; justify-items: start; }
.services__head p { color: var(--ink-soft); font-size: 1.15rem; max-width: 26em; }
.services__list { list-style: none; margin: 0; padding: 0; }
.service { padding: 2rem 0; border-top: 1.5px solid rgba(42, 33, 31, .14); display: grid; gap: .7rem; }
.service:last-child { border-bottom: 1.5px solid rgba(42, 33, 31, .14); }
.service h3 { font-weight: 600; font-size: 1.55rem; }
.service p { max-width: 36em; }
.service__includes { font-family: var(--display); font-weight: 500; font-size: .98rem; color: var(--ink-soft); }

/* ---------- process ---------- */
.process { background: var(--day-light); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.steps {
  list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem);
  position: relative;
}
.steps::before { /* the thread that ties the steps together */
  content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 1.6rem; height: 0;
  border-top: 2px dashed rgba(180, 140, 69, .55);
}
.step { position: relative; display: grid; gap: .6rem; align-content: start; }
.step__n {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--day-light); border: 2px solid var(--horn-deep); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: .5rem;
}
.step h3 { font-weight: 600; font-size: 1.25rem; }
.step p { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; }
.process__note { margin-top: clamp(2rem, 4vw, 3rem); max-width: 40em; font-style: italic; color: var(--ink-soft); }

/* ---------- studio ---------- */
.studio {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.studio__mark {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #3a2e2b, var(--night) 70%);
  box-shadow: inset 0 0 0 10px rgba(229, 204, 142, .12);
}
.studio__mark img { width: 66%; translate: 4% 6%; }
.studio__text { display: grid; gap: 1.1rem; }
.studio__text > p { max-width: 36em; font-size: 1.1rem; }
.people { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.people strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.studio__text > .studio__tools { margin-top: .5rem; color: var(--ink-soft); font-size: 1rem; }

/* ---------- contact ---------- */
.contact { padding: 0 0 clamp(4rem, 9vw, 7rem); }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem);
  background: var(--day-light); border-radius: var(--radius-panel);
  padding: clamp(1.75rem, 5vw, 4rem);
}
.contact__intro { display: grid; gap: 1.1rem; align-content: start; }
.contact__intro > p { color: var(--ink-soft); font-size: 1.15rem; max-width: 24em; }
.contact__intro > .contact__mail { margin-top: 1rem; font-size: 1rem; }
.contact__mail a { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-underline-offset: .25em; word-break: break-word; }

.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fffaf1; border: 1.5px solid rgba(42, 33, 31, .2); border-radius: 14px;
  padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: #8f7f74; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--horn-deep); box-shadow: 0 0 0 4px rgba(180, 140, 69, .22); }
.field [aria-invalid="true"] { border-color: #a4452e; }
.field__error { color: #9a3b25; font-family: var(--display); font-weight: 600; font-size: .92rem; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips legend { margin-bottom: .45rem; float: left; width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid rgba(42, 33, 31, .22); background: #fffaf1;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--wool); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--horn-deep); outline-offset: 2px; }

.form__note { font-size: .92rem; color: var(--ink-soft); text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--sand); padding: 3rem 0; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand img { width: 56px; }
.footer__brand p { font-family: var(--display); line-height: 1.4; color: var(--muted); }
.footer__brand strong { color: var(--sand); font-weight: 600; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; justify-content: center; }
.footer__links a { font-family: var(--display); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid transparent; }
.footer__links a:hover { border-color: var(--horn); }
.footer__legal { font-size: .9rem; color: var(--muted); }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1000px) {
  .case { grid-template-columns: 1fr; }
  .case__detective { position: absolute; right: -6%; top: -2%; width: 46%; margin: 0; opacity: .95; z-index: -1; }
  .case__body { padding-right: clamp(1.75rem, 30%, 16rem); }
  .case__files { margin-right: calc(-1 * clamp(0rem, 26%, 13rem)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps::before { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .duo { grid-template-columns: 1fr; }
  .services, .studio, .contact__grid { grid-template-columns: 1fr; }
  .services__head { position: static; }
  .studio__mark { width: min(240px, 70%); }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .footer__links { justify-content: start; }
}

@media (max-width: 560px) {
  .case__body { padding-right: clamp(1.25rem, 5vw, 1.75rem); }
  .case__detective { width: 58%; top: -1%; right: -14%; opacity: .5; }
  .case__files { grid-template-columns: 1fr; margin-right: 0; gap: 2.25rem; }
  .polaroid--b a { transform: rotate(1.6deg); }
  .steps { grid-template-columns: 1fr; }
  .wordmark__text { letter-spacing: .22em; margin-right: -.22em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ram__z { display: none; }
}
