/* DOT Studio — a single, responsive design system. */
@font-face {
  font-family: Afacad;
  src: url("assets/afacad-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Afacad;
  src: url("assets/afacad-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Afacad;
  src: url("assets/afacad-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("assets/playfair-italic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --red: #be1e2d;
  --red-hover: #a01927;
  --ink: #231f20;
  --muted: #625c5e;
  --canvas: #faf9f6;
  --surface: #fff;
  --cream: #fff5e1;
  --line: #231f202a;
  --soft: #eeeae4;
  --header: rgba(250, 249, 246, 0.96);
  --section-space: clamp(72px, 9vw, 132px);
  --gutter: clamp(22px, 5vw, 80px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="dark"] {
  color-scheme: dark;
  --red: #f57986;
  --red-hover: #ffa0a9;
  --ink: #f6f2ed;
  --muted: #bbb5b7;
  --canvas: #171719;
  --surface: #202023;
  --line: #ffffff30;
  --soft: #2c292d;
  --header: rgba(23, 23, 25, 0.96);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    400 20px/1.5 Afacad,
    Arial,
    sans-serif;
}
body.modal-open {
  overflow: hidden;
}
button,
a,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
button:not(:disabled),
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button {
  border-radius: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
p {
  max-width: 65ch;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1,
h2 {
  letter-spacing: -0.045em;
  font-weight: 600;
}
h2 {
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.07;
}
h3 {
  line-height: 1.2;
}
em {
  font-family: Playfair, Georgia, serif;
  font-weight: 500;
  color: var(--red);
}
[hidden] {
  display: none !important;
}
:is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
section[id] {
  scroll-margin-top: 24px;
}
button:active,
.button:active {
  transform: translateY(1px);
}
.skip {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
  border-radius: 8px;
}
.skip:focus {
  transform: none;
}
/* Navigation keeps the same destinations at every scroll position. */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 14px var(--gutter);
  background: var(--header);
  border-bottom: 1px solid var(--line);
}
.brand {
  flex: none;
  display: block;
}
.brand img {
  width: 108px;
  height: auto;
}
.brand-morph-dot {
  display: none;
}
.header nav {
  margin-left: auto;
  display: flex;
  gap: clamp(14px, 1.7vw, 28px);
  align-items: center;
  font-size: 17px;
}
.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  white-space: nowrap;
}
.header nav a:hover,
.header nav a[aria-current] {
  color: var(--red);
}
.header nav .nav-pill {
  background: var(--ink);
  color: var(--canvas);
  padding: 9px 20px;
  border-radius: 30px;
}
.header nav .nav-pill:hover {
  background: var(--red);
  color: var(--surface);
}
.signature-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language-switch {
  display: flex;
  gap: 2px;
  font:
    600 13px Afacad,
    Arial,
    sans-serif;
}
.language-switch a {
  min-width: 32px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.language-switch [aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 5px;
}
.theme-toggle {
  width: 46px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 0;
  flex: none;
}
.liquid-thumb {
  display: grid;
  place-items: center;
}
.liquid-thumb svg {
  grid-area: 1/1;
  width: 20px;
  height: 20px;
}
.switch-moon {
  display: none;
}
[data-theme="dark"] .switch-sun {
  display: none;
}
[data-theme="dark"] .switch-moon {
  display: block;
}
.theme-toggle:hover {
  border-color: var(--red);
}
.menu {
  display: none;
  min-height: 44px;
  background: var(--ink);
  color: var(--canvas);
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
}
#mobile-nav {
  position: fixed;
  top: 88px;
  left: 0;
  right: 0;
  z-index: 29;
  padding: 18px var(--gutter) 28px;
  background: var(--canvas);
  max-height: calc(100dvh - 88px);
  overflow: auto;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px #0000000d;
  overscroll-behavior: contain;
}
#mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
}
#mobile-nav a span {
  color: var(--red);
}
/* The hero leads directly into the work. */
.section-label,
.eyebrow,
.studio-note {
  font-size: 14px;
  letter-spacing: 0.055em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  border: 0;
  border-radius: 50px;
  padding: 14px 24px;
  font:
    600 18px/1.3 Afacad,
    Arial,
    sans-serif;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
/* Editorial section rhythm and project cards. */
.section,
.studio,
.closing,
.contact-footer {
  padding: var(--section-space) var(--gutter);
  max-width: 1600px;
  margin: auto;
}
.section-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  color: var(--muted);
}
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10%;
  align-items: end;
  margin: 45px 0 48px;
}
.section-heading p {
  font-size: 23px;
  color: var(--muted);
  max-width: 410px;
}
.works {
  border-top: 1px solid var(--line);
}
.work-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.work-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.work-filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 30px;
  padding: 9px 20px;
  min-height: 44px;
  font-size: 17px;
}
.work-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.work-filters button:hover {
  border-color: var(--red);
}
#project-count {
  font-size: 16px;
  white-space: nowrap;
  color: var(--muted);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 30px;
}
.project {
  min-width: 0;
}
.project-featured {
  grid-column: 1/-1;
}
.project-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.project-image {
  display: block;
  position: relative;
  aspect-ratio: 808/632;
  background: var(--soft);
  overflow: hidden;
  border-radius: var(--radius);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-featured .project-image {
  aspect-ratio: 1.9;
}
.project-featured .project-image img {
  object-fit: contain;
  background: var(--soft);
}
.project-open:hover img {
  transform: scale(1.025);
}
.project-link {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 30px;
  background: #fff;
  color: #231f20;
  font-size: 16px;
  box-shadow: 0 3px 12px #00000012;
}
.project-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.project-category {
  display: block;
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.project-caption h3 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.project-caption p {
  font-size: 18px;
  color: var(--muted);
  margin-top: 5px;
}
.project-external {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 16px;
  flex: none;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--line);
}
.project-external:hover {
  color: var(--red);
}
.project-context {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 16px;
  max-width: 58ch;
}
.project-featured .project-context {
  max-width: 75ch;
}
.works-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.works-end > p {
  font-size: 22px;
}
.dark {
  background: var(--ink);
  color: var(--canvas);
}
.dark:hover {
  background: var(--red);
  color: #fff;
}
.mini-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
/* Moving image and identity reader. */
.audiovisual {
  background: var(--soft);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.video-card {
  min-width: 0;
}
.video-open {
  display: block;
  padding: 0;
  border: 0;
  background: var(--ink);
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9/16;
}
.video-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.video-open:hover img {
  transform: scale(1.035);
}
.play-mark {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #231f20;
  font-size: 16px;
}
.video-duration {
  position: absolute;
  right: 14px;
  bottom: 23px;
  background: #231f20e8;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.video-card h3 {
  font-size: 23px;
  font-weight: 600;
  margin-top: 20px;
}
.video-card p {
  font-size: 18px;
  color: var(--muted);
  margin-top: 6px;
}
.manual-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 7%;
  align-items: center;
  margin-top: 48px;
}
.manual-feature > img {
  width: 100%;
  aspect-ratio: 1400/990;
  object-fit: contain;
  background: var(--soft);
  border-radius: var(--radius);
}
.manual-feature h2 {
  font-size: clamp(38px, 4.5vw, 65px);
}
.manual-feature p {
  font-size: 22px;
  color: var(--muted);
  margin: 25px 0;
}
.manual-source {
  display: block;
  min-height: 44px;
  width: fit-content;
  margin-top: 18px;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.manual-source:hover {
  color: var(--red);
}
.manual-feature + .manual-feature {
  margin-top: 70px;
}
/* Services, studio and process. */
.focus {
  border-top: 1px solid var(--line);
}
.disciplines details {
  border-top: 1px solid var(--line);
}
.disciplines details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.disciplines summary {
  display: grid;
  grid-template-columns: 45px 1fr 210px 28px;
  gap: 20px;
  align-items: center;
  min-height: 100px;
  padding: 22px 0;
}
.number {
  color: var(--red);
  font-size: 15px;
}
summary h3 {
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.025em;
}
.tags {
  font-size: 16px;
  color: var(--muted);
}
.plus {
  font-size: 32px;
  text-align: center;
  transition: transform 0.2s;
}
details[open] .plus {
  transform: rotate(45deg);
}
details[open] h3 {
  color: var(--red);
}
.detail {
  padding: 0 48px 28px 65px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 10%;
}
.detail p {
  font-size: 22px;
  color: var(--muted);
}
.detail ul {
  margin: 0;
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.7;
}
.studio {
  background: #231f20;
  color: #fff5e1;
  --line: #fff5e13d;
  --muted: #d0c9bd;
  --red: #ff9aa4;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  margin-top: 50px;
}
.studio h2 {
  max-width: 10ch;
  font-size: clamp(50px, 6vw, 84px);
}
.studio-note {
  display: block;
  margin-top: 32px;
  color: var(--muted);
  letter-spacing: 0;
  font-size: 17px;
}
.studio-copy .large {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 26px;
}
.studio-copy > p:not(.large) {
  font-size: 21px;
  color: var(--muted);
  margin-bottom: 22px;
}
.brand-signature {
  margin-top: 32px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
}
.brand-signature img {
  width: 145px;
}
.brand-signature span {
  font-size: 16px;
  color: var(--muted);
}
.brand-palette {
  margin-top: 32px;
}
.palette-label {
  font-size: 14px;
  color: var(--muted);
}
.palette-swatches {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  min-height: 125px;
}
.palette-swatch {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: var(--swatch);
  color: #fff;
  transition: transform 0.2s;
}
.palette-swatch:hover {
  transform: translateY(-3px);
}
.palette-swatch:last-child {
  color: #231f20;
}
.palette-swatch strong {
  font:
    12px/1.3 ui-monospace,
    monospace;
}
.palette-swatch span {
  font-size: 16px;
}
.palette-status {
  min-height: 24px;
  margin-top: 12px;
  font-size: 15px !important;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.steps article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.steps article > span {
  font-size: 16px;
  color: var(--red);
}
.steps h3 {
  font-size: 28px;
  font-weight: 600;
  margin: 26px 0 14px;
}
.steps p {
  font-size: 20px;
  color: var(--muted);
}
/* Contact uses one clear action and persistent, unobtrusive access. */
.closing {
  background: #be1e2d;
  color: #fff5e1;
  padding-top: 70px;
  padding-bottom: 75px;
}
.closing em {
  color: inherit;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.closing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.closing h2 {
  font-size: clamp(48px, 7vw, 100px);
  margin: 42px 0;
}
.closing-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}
.closing-bottom p {
  font-size: 23px;
}
.cream {
  background: #fff5e1;
  color: #231f20;
}
.cream:hover {
  background: #fff;
}
.contact-footer {
  padding-top: 50px;
  padding-bottom: 45px;
}
.footer-main {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.footer-brand img {
  width: 120px;
}
.footer-brand > span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 18px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 18px;
}
.email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.email-link {
  font-size: 25px;
  overflow-wrap: anywhere;
}
.copy-email {
  border: 1px solid var(--line);
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.copy-dot {
  width: 13px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 3px;
  box-shadow:
    3px -3px 0 -1px var(--canvas),
    3px -3px 0 currentColor;
}
.copy-email.copied .copy-dot {
  background: var(--red);
  border-color: var(--red);
}
.copy-status {
  font-size: 14px;
  color: var(--muted);
  width: 100%;
}
.social-links {
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 17px;
}
.social-links a,
.footer-contact > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.social-links a:hover,
.footer-contact a:hover {
  color: var(--red);
}
.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  color: var(--muted);
}
.footer-base a:hover {
  color: var(--red);
}
.whatsapp-fixed {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 25;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 50%;
  box-shadow: 0 4px 20px #00000016;
  border: 1px solid var(--canvas);
}
.whatsapp-fixed:hover {
  background: var(--red);
  color: var(--canvas);
}
.wa-message,
.wa-dot {
  display: none;
}
/* Native dialogs preserve keyboard focus and keep all controls reachable. */
dialog {
  color-scheme: dark;
  border: 1px solid #ffffff25;
  background: #202023;
  color: #f6f2ed;
  padding: 28px;
  border-radius: 20px;
  max-height: 90dvh;
  overscroll-behavior: contain;
  --red: #f57986;
  --muted: #c9c4c6;
  --canvas: #202023;
  --ink: #f6f2ed;
  --line: #ffffff30;
}
dialog::backdrop {
  background: #171719cc;
}
dialog a:hover {
  color: var(--red);
}
dialog .dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.dialog-top h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.dialog-top p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 7px;
}
.dialog-close {
  min-height: 44px;
  padding: 9px 18px;
  background: #ffffff15;
  color: #fff;
  border: 1px solid #ffffff35;
  border-radius: 30px;
  flex: none;
}
.dialog-close:hover {
  background: #ffffff28;
}
.video-dialog {
  width: min(510px, 94vw);
}
#portfolio-video {
  display: block;
  width: 100%;
  max-height: 65dvh;
  background: #111;
  aspect-ratio: 9/16;
}
#video-error {
  color: #ffb8bd;
  font-size: 17px;
  margin-top: 15px;
}
.video-description {
  font-size: 17px;
  color: var(--muted);
  margin-top: 20px;
}
.video-dialog details {
  margin-top: 18px;
}
.video-dialog details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: underline;
}
.video-dialog details div {
  white-space: pre-line;
  font-size: 17px;
}
.book-dialog {
  width: min(1280px, 95vw);
  overflow: auto;
}
.manual-download {
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-left: auto;
}
.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-bottom: 15px;
  position: sticky;
  top: 0;
  background: #202023;
  z-index: 2;
}
.book-controls button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  background: #ffffff10;
  color: #fff;
  font-size: 16px;
}
.book-controls button:hover:not(:disabled) {
  background: #ffffff25;
}
.book-controls button[aria-pressed="true"] {
  background: #be1e2d;
  color: #fff;
}
.book-controls span {
  font-size: 16px;
  padding: 8px;
  font-variant-numeric: tabular-nums;
}
.book-viewport {
  max-height: 60dvh;
  overflow: auto;
  border-radius: 8px;
  overscroll-behavior: contain;
  background: #151517;
}
.book-spread {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  min-height: 100px;
}
.book-spread img {
  width: calc(50% - 6px);
  height: auto;
  flex: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.book-viewport.zoomed .book-spread {
  width: 180%;
}
.book-viewport.pan-mode {
  cursor: grab;
  touch-action: none;
}
.book-viewport.is-dragging {
  cursor: grabbing;
}
.manual-palette {
  padding: 20px;
  background: #2b292d;
  border-radius: 12px;
  margin-bottom: 18px;
}
.manual-palette .palette-swatch:last-child {
  color: #fff;
}
.book-dialog:fullscreen,
.book-dialog.expanded-book {
  max-width: none;
  width: 100%;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
}
.book-dialog:fullscreen .book-viewport,
.book-dialog.expanded-book .book-viewport {
  max-height: 72dvh;
}
.cms-project-dialog {
  width: min(1040px, 94vw);
  overflow: auto;
}
.project-dialog-content > p,
.cms-project-body {
  font-size: 21px;
  line-height: 1.6;
  white-space: pre-line;
  max-width: 70ch;
  margin: 12px 0 24px;
}
.cms-project-photos {
  display: grid;
  gap: 18px;
}
.cms-project-photos img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #2c292d;
}
.cms-project-palette {
  margin: 28px 0;
}
.cms-project-palette .palette-swatches {
  min-height: 140px;
}
.cms-empty {
  font-size: 20px;
  color: var(--muted);
  padding: 20px 0;
  grid-column: 1/-1;
}
@media (min-width: 1601px) {
  body {
    background: var(--canvas);
  }
}
@media (max-width: 1100px) {
  .header {
    gap: 16px;
  }
  .header nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .menu {
    display: block;
  }
  .video-grid {
    gap: 18px;
  }
  .footer-main {
    grid-template-columns: 0.7fr 1.3fr;
  }
  .social-links {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .disciplines summary {
    grid-template-columns: 35px 1fr 180px 25px;
    gap: 15px;
  }
  .detail {
    padding-left: 50px;
    gap: 40px;
  }
  .steps {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 24px;
    --section-space: 70px;
  }
  .header {
    min-height: 76px;
    padding: 12px var(--gutter);
    gap: 12px;
  }
  .brand img {
    width: 90px;
  }
  .header-actions {
    gap: 8px;
  }
  .language-switch a {
    min-width: 29px;
  }
  .theme-toggle {
    width: 42px;
  }
  #mobile-nav {
    top: 76px;
    max-height: calc(100dvh - 76px);
  }
  html {
    scroll-padding-top: 95px;
  }
  .section-label {
    font-size: 12px;
    gap: 20px;
  }
  .section-label > span:last-child {
    text-align: right;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 34px 0;
  }
  .section-heading p {
    font-size: 21px;
  }
  h2 {
    font-size: clamp(40px, 8vw, 60px);
  }
  .work-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  .work-filters {
    gap: 6px;
  }
  .work-filters button {
    font-size: 16px;
    padding: 9px 16px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .project-featured {
    grid-column: auto;
  }
  .project-featured .project-image,
  .project-image {
    aspect-ratio: 808/632;
  }
  .project-caption {
    gap: 14px;
    align-items: start;
  }
  .project-caption h3 {
    font-size: 28px;
  }
  .project-caption p {
    font-size: 17px;
  }
  .project-category {
    font-size: 13px;
  }
  .project-external {
    font-size: 15px;
    align-self: center;
  }
  .project-context {
    font-size: 18px;
    margin-top: 14px;
  }
  .project-link {
    bottom: 12px;
    right: 12px;
    font-size: 15px;
    padding: 8px 14px;
  }
  .works-end {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 40px;
    gap: 20px;
  }
  .works-end > p {
    font-size: 21px;
  }
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 16px;
  }
  .video-card h3 {
    font-size: 21px;
    margin-top: 15px;
  }
  .video-card p {
    font-size: 17px;
  }
  .play-mark {
    left: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
  }
  .video-duration {
    right: 10px;
    bottom: 16px;
    font-size: 12px;
  }
  .manual-feature {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 32px;
  }
  .manual-feature h2 {
    font-size: 44px;
  }
  .manual-feature p {
    font-size: 21px;
    margin: 20px 0;
  }
  .disciplines summary {
    grid-template-columns: 28px 1fr 24px;
    gap: 12px;
    padding: 23px 0;
    min-height: 88px;
  }
  .tags {
    display: none;
  }
  summary h3 {
    font-size: 27px;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px 26px 40px;
  }
  .detail p {
    font-size: 20px;
  }
  .detail ul {
    font-size: 17px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 36px;
  }
  .studio h2 {
    font-size: clamp(44px, 10vw, 60px);
  }
  .studio h2 br {
    display: none;
  }
  .studio-note {
    margin-top: 24px;
  }
  .studio-copy .large {
    font-size: 28px;
  }
  .studio-copy > p:not(.large) {
    font-size: 21px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .steps h3 {
    font-size: 26px;
    margin-top: 22px;
  }
  .steps p {
    font-size: 19px;
  }
  .closing {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .closing h2 {
    font-size: clamp(48px, 10vw, 72px);
    margin: 34px 0;
  }
  .closing-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .closing-bottom p {
    font-size: 22px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .social-links {
    grid-column: auto;
    justify-content: flex-start;
  }
  .email-link {
    font-size: 24px;
  }
  .footer-base {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px 26px;
    padding-right: 48px;
  }
  .footer-base > span {
    width: 100%;
  }
  .contact-footer {
    padding-bottom: 85px;
  }
  .whatsapp-fixed {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
  dialog {
    padding: 20px;
    border-radius: 16px;
  }
  .dialog-top {
    gap: 14px !important;
    flex-wrap: wrap;
  }
  .dialog-top h2 {
    font-size: 27px;
  }
  .dialog-close {
    font-size: 17px;
  }
  .manual-download {
    order: 3;
    width: 100%;
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .book-controls {
    gap: 6px;
    justify-content: flex-start;
  }
  .book-controls button {
    font-size: 14px;
    padding: 8px 11px;
  }
  .book-controls span {
    font-size: 14px;
  }
  .book-spread img {
    width: 100%;
  }
  .book-viewport.zoomed .book-spread {
    width: 180%;
  }
  .book-viewport {
    max-height: 53dvh;
  }
  .cms-project-dialog {
    padding: 18px;
  }
  .cms-project-dialog .dialog-top {
    position: sticky;
    top: -18px;
    background: #202023;
    padding: 12px 0;
    z-index: 3;
  }
  .project-dialog-content > p {
    font-size: 19px;
  }
  .cms-project-photos {
    gap: 12px;
  }
  .palette-swatch {
    padding: 12px 9px;
  }
  .palette-swatch span {
    font-size: 14px;
  }
  .palette-swatch strong {
    font-size: 11px;
  }
  .manual-palette .palette-swatches {
    flex-wrap: wrap;
  }
  .manual-palette .palette-swatch {
    flex: 1 1 calc(50% - 8px);
    min-height: 95px;
  }
}
@media (max-width: 380px) {
  :root {
    --gutter: 18px;
  }
  .header {
    gap: 8px;
  }
  .brand img {
    width: 76px;
  }
  .language-switch a {
    min-width: 26px;
  }
  .header-actions {
    gap: 5px;
  }
  .menu {
    padding: 8px 12px;
    font-size: 16px;
  }
  .project-caption {
    flex-wrap: wrap;
  }
  .project-external {
    align-self: start;
  }
  .video-grid {
    gap: 28px 12px;
  }
  .video-card h3 {
    font-size: 19px;
  }
  .play-mark {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .palette-swatch strong {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .project-open:hover img,
  .video-open:hover img,
  .palette-swatch:hover {
    transform: none;
  }
}

/* Content may grow when edited in the CMS. */
.studio-grid > *,
.studio-copy,
.manual-feature > *,
.section-heading > * {
  min-width: 0;
}
.studio h2 {
  overflow-wrap: anywhere;
}
.brand-signature span {
  min-width: 0;
}
.language-switch a {
  min-width: 44px;
}
@media (max-width: 760px) {
  .language-switch a[aria-current="page"] {
    display: none;
  }
  .language-switch a {
    min-width: 44px;
  }
  .header .theme-toggle {
    width: 44px;
  }
}
