/* =================================================================== 
 *
 * components.css
 * --------------
 * Reusable UI components: buttons, display headings, section
 * headers, slick slider dots, alert boxes, stats tabs, skill bars,
 * pull quotes, additional type styles.
 *
 * TOC:
 *  # buttons
 *  # display headings
 *  # section header
 *  # slick slider
 *  # alert box
 *  # additional type styles
 *      ## drop cap
 *      ## lining definition
 *      ## dictionary definition
 *      ## pull quotes
 *      ## stats tabs
 *      ## skill bars
 *
 * =================================================================== */

/* ===================================================================
 * # buttons
 * ------------------------------------------------------------------- */
.btn,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  height: 5.4rem;
  line-height: calc(5.4rem - 0.4rem);
  padding: 0 3rem;
  margin: 0 0.3rem 1.2rem 0;
  color: #000000;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  background-color: #c5c5c5;
  border: 0.2rem solid #c5c5c5;
}

/* Portfolio card: full-card modal trigger must remain visually transparent.
   This overrides the generic `button` styles above. */
button.item-folio__trigger {
  display: block;
  height: auto;
  line-height: normal;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

button.item-folio__trigger:hover,
button.item-folio__trigger:focus,
button.item-folio__trigger:active {
  background: transparent;
  border-color: transparent;
  color: inherit;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.btn:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
  background-color: #ee3d99;
  border-color: #000;
  color: #fff;
}

/* button primary */
.btn--primary,
button.btn--primary,
input[type="submit"].btn--primary,
input[type="reset"].btn--primary,
input[type="button"].btn--primary {
  background: #ff99cc;
  border-color: #ff99cc;
  color: #fff;
}

.btn--primary:hover,
button.btn--primary:hover,
input[type="submit"].btn--primary:hover,
input[type="reset"].btn--primary:hover,
input[type="button"].btn--primary:hover,
.btn--primary:focus,
button.btn--primary:focus,
input[type="submit"].btn--primary:focus,
input[type="reset"].btn--primary:focus,
input[type="button"].btn--primary:focus {
  background: #33a242;
  border-color: #33a242;
}

/* button modifiers */
.btn.full-width,
button.full-width {
  width: 100%;
  margin-right: 0;
}

.btn--medium,
button.btn--medium {
  height: 5.7rem;
  line-height: calc(5.7rem - 0.4rem);
}

.btn--large,
button.btn--large {
  height: 6rem;
  line-height: calc(6rem - 0.4rem);
}

.btn--stroke,
button.btn--stroke {
  background: transparent;
  border: 0.2rem solid #ff99cc;
  color: #ff99cc;
}

.btn--stroke:hover,
button.btn--stroke:hover {
  border: 0.2rem solid #000000;
  color: #000000;
}

.btn--pill,
button.btn--pill {
  padding-left: 3rem;
  padding-right: 3rem;
  border-radius: 1000px;
}

/* ===================================================================
 * # display headings
 * ------------------------------------------------------------------- */
.display-1 {
  font-family: "Montserrat", sans-serif;
  font-size: 6.4rem;
  line-height: 1.25;
  color: #000000;
  margin-top: 0;
}

.display-1--light {
  color: #fff;
}

.display-2 {
  font-family: "Montserrat", sans-serif;
  font-size: 4rem;
  line-height: 1.255;
  color: #000000;
  margin-top: 0;
}

.display-2--light {
  color: #fff;
}

.subhead + .display-2 {
  margin-top: 0.6rem;
}

.subhead {
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  color: #ff99cc;
  margin-top: 0;
  margin-bottom: 0;
}

.subhead--dark {
  color: #ec008c;
}

/* responsive: display headings */
@media only screen and (max-width: 1200px) {
  .display-1 {
    font-size: 7.2rem;
  }
  .display-2 {
    font-size: 4.4rem;
  }
}

@media only screen and (max-width: 800px) {
  .display-1 {
    font-size: 6.5rem;
  }
  .display-2 {
    font-size: 4rem;
  }
}

@media only screen and (max-width: 600px) {
  .display-1 {
    font-size: 5rem;
  }
  .display-2 {
    font-size: 3.3rem;
  }
  .subhead {
    font-size: 1.5rem;
  }
}

@media only screen and (max-width: 400px) {
  .display-1 {
    font-size: 4.2rem;
  }
  .display-2 {
    font-size: 3rem;
  }
}

/* ===================================================================
 * # section header
 * ------------------------------------------------------------------- */
.section-header {
  text-align: center;
  position: relative;
  margin-bottom: 3.6rem;
  max-width: 960px;
}

.section-header.has-bottom-sep {
  padding-bottom: 2.1rem;
  position: relative;
}

.section-header.has-bottom-sep::before {
  content: "";
  display: inline-block;
  height: 1px;
  width: 550px;
  background-color: rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-header.has-bottom-sep.light-sep::before {
  background-color: rgba(255, 255, 255, 0.05);
}

/* responsive: section header */
@media only screen and (max-width: 1200px) {
  .section-header {
    max-width: 800px;
  }
}

@media only screen and (max-width: 900px) {
  .section-header {
    max-width: 700px;
  }
}

@media only screen and (max-width: 800px) {
  .section-header.has-bottom-sep::before {
    width: 400px;
  }
}

@media only screen and (max-width: 600px) {
  .section-header.has-bottom-sep {
    padding-bottom: 0;
  }
  .section-header.has-bottom-sep::before {
    width: 250px;
  }
}

/* ===================================================================
 * # slick slider
 * ------------------------------------------------------------------- */
.slick-slider .slick-slide {
  outline: none;
}

.slick-slider .slick-dots {
  display: block;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 3rem 0 0 0;
  text-align: center;
  position: absolute;
  top: 100%;
  left: 0;
}

.slick-slider .slick-dots li {
  display: inline-block;
  width: 27px;
  height: 27px;
  margin: 0;
  padding: 9px;
  cursor: pointer;
}

.slick-slider .slick-dots li button {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #959595;
  border: none;
  line-height: 10px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: 0/0 a;
  text-shadow: none;
  color: transparent;
}

.slick-slider .slick-dots li button:hover,
.slick-slider .slick-dots li button:focus {
  outline: none;
}

.slick-slider .slick-dots li.slick-active button,
.slick-slider .slick-dots li:hover button {
  background: #ec008c;
}

/* ===================================================================
 * # alert box
 * ------------------------------------------------------------------- */
.alert-box {
  padding: 2.1rem 4rem 2.1rem 3rem;
  position: relative;
  margin-bottom: 3rem;
  border-radius: 3px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
}

.alert-box__close {
  position: absolute;
  right: 1.8rem;
  top: 1.8rem;
  cursor: pointer;
}

.alert-box__close.fa {
  font-size: 12px;
}

.alert-box--error {
  background-color: #ffd1d2;
  color: #e65153;
}
.alert-box--success {
  background-color: #c8e675;
  color: #758c36;
}
.alert-box--info {
  background-color: #d7ecfb;
  color: #4a95cc;
}
.alert-box--notice {
  background-color: #fff099;
  color: #bba31b;
}

/* ===================================================================
 * # additional type styles
 * ------------------------------------------------------------------- */

/* ------------------------------------------------------------------- 
 * ## drop cap
 * ------------------------------------------------------------------- */
.drop-cap:first-letter {
  float: left;
  margin: 0;
  padding: 1.5rem 0.6rem 0 0;
  font-size: 8.4rem;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  line-height: 6rem;
  text-indent: 0;
  background: transparent;
  color: #000000;
}

/* ------------------------------------------------------------------- 
 * ## lining definition
 * ------------------------------------------------------------------- */
.lining dt,
.lining dd {
  display: inline;
  margin: 0;
}

.lining dt + dt::before,
.lining dd + dt::before {
  content: "\A";
  white-space: pre;
}

.lining dd + dd::before {
  content: ", ";
}

.lining dd::before {
  content: ": ";
  margin-left: -0.2em;
}

/* ------------------------------------------------------------------- 
 * ## dictionary definition
 * ------------------------------------------------------------------- */
.dictionary-style dt {
  display: inline;
  counter-reset: definitions;
}

.dictionary-style dt + dt::before {
  content: ", ";
  margin-left: -0.2em;
}

.dictionary-style dd {
  display: block;
  counter-increment: definitions;
}

.dictionary-style dd::before {
  content: counter(definitions, decimal) ". ";
}

/* ------------------------------------------------------------------- 
 * ## pull quotes
 * ------------------------------------------------------------------- */
.pull-quote {
  position: relative;
  padding: 2.1rem 3rem 2.1rem 0;
}

.pull-quote::before,
.pull-quote::after {
  height: 1em;
  position: absolute;
  font-size: 10rem;
  font-family: Arial, Sans-Serif;
  color: rgba(0, 0, 0, 0.25);
}

.pull-quote::before {
  content: "\201C";
  top: -3.6rem;
  left: 0;
}

.pull-quote::after {
  content: "\201D";
  bottom: 3.6rem;
  right: 0;
}

.pull-quote blockquote {
  margin: 0;
}

.pull-quote blockquote::before {
  content: none;
}

/* ------------------------------------------------------------------- 
 * ## stats tabs
 * ------------------------------------------------------------------- */
.stats-tabs {
  padding: 0;
  margin: 3rem 0;
}

.stats-tabs li {
  display: inline-block;
  margin: 0 1.5rem 3rem 0;
  padding: 0 1.5rem 0 0;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.stats-tabs li:last-child {
  margin: 0;
  padding: 0;
  border: none;
}

.stats-tabs li a {
  display: inline-block;
  font-size: 2.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  border: none;
  color: #000000;
}

.stats-tabs li a:hover {
  color: #ff99cc;
}

.stats-tabs li a em {
  display: block;
  margin: 0.6rem 0 0 0;
  font-size: 1.4rem;
  font-family: "Montserrat", sans-serif;
  color: #828282;
}

/* ------------------------------------------------------------------- 
 * ## skill bars
 * ------------------------------------------------------------------- */
.skill-bars {
  list-style: none;
  margin: 6rem 0 3rem;
}

.skill-bars li {
  height: 0.6rem;
  background: #c9c9c9;
  width: 100%;
  margin-bottom: 6.9rem;
  padding: 0;
  position: relative;
}

.skill-bars li strong {
  position: absolute;
  left: 0;
  top: -3rem;
  font-family: "Montserrat", sans-serif;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 1.4rem;
  line-height: 2.4rem;
}

.skill-bars li .progress {
  background: #000000;
  position: relative;
  height: 100%;
}

.skill-bars li .progress span {
  position: absolute;
  right: 0;
  top: -3.6rem;
  display: block;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  background: #000000;
  padding: 0.6rem;
  border-radius: 3px;
}

.skill-bars li .progress span::after {
  position: absolute;
  left: 50%;
  bottom: -5px;
  margin-left: -5px;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 5px solid #000000;
  content: "";
}

.skill-bars li .percent5 {
  width: 5%;
}
.skill-bars li .percent10 {
  width: 10%;
}
.skill-bars li .percent15 {
  width: 15%;
}
.skill-bars li .percent20 {
  width: 20%;
}
.skill-bars li .percent25 {
  width: 25%;
}
.skill-bars li .percent30 {
  width: 30%;
}
.skill-bars li .percent35 {
  width: 35%;
}
.skill-bars li .percent40 {
  width: 40%;
}
.skill-bars li .percent45 {
  width: 45%;
}
.skill-bars li .percent50 {
  width: 50%;
}
.skill-bars li .percent55 {
  width: 55%;
}
.skill-bars li .percent60 {
  width: 60%;
}
.skill-bars li .percent65 {
  width: 65%;
}
.skill-bars li .percent70 {
  width: 70%;
}
.skill-bars li .percent75 {
  width: 75%;
}
.skill-bars li .percent80 {
  width: 80%;
}
.skill-bars li .percent85 {
  width: 85%;
}
.skill-bars li .percent90 {
  width: 90%;
}
.skill-bars li .percent95 {
  width: 95%;
}
.skill-bars li .percent100 {
  width: 100%;
}

/* ------------------------------------------------------------------- 
 * ## misc
 * ------------------------------------------------------------------- */
.wide {
  max-width: 1400px;
}
.narrow {
  max-width: 800px;
}

/* ===================================================================
 * # casos modal
 * Modal overlay for portfolio case studies.
 * Triggered by .item-folio__trigger buttons.
 * ------------------------------------------------------------------- */

/* portfolio card tags (injected by casos-modal.js) */
.item-folio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.item-folio__tag {
  font-family: "Ubuntu", sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.4;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.item-folio:hover .item-folio__tag {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.3);
}

.item-folio__tag:first-child {
  color: rgba(238, 61, 150, 0.75);
  border-color: rgba(238, 61, 150, 0.32);
}

/* backdrop */
.cm-bd {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cm-bd.open {
  opacity: 1;
  pointer-events: all;
}

/* modal panel */
.cm-mo {
  background: #000;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.978);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.cm-bd.open .cm-mo {
  transform: translateY(0) scale(1);
}

/* top bar */
.cm-tb {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px 0;
  background: linear-gradient(to bottom, #000 50%, transparent);
  pointer-events: none;
}

/* close button */
.cm-x {
  pointer-events: all;
  background: transparent;
  border: 1px solid #222;
  color: #888;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 14px;
  line-height: 1;
  font-family: "Ubuntu", sans-serif;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.cm-x:hover,
.cm-x:focus-visible {
  background: #ee3d96;
  border-color: #ee3d96;
  color: #fff;
  outline: none;
}

/* header */
.cm-hd {
  padding: 8px 48px 28px;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.cm-no {
  font-family: "Ubuntu", sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #ee3d96;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cm-ti {
  font-family: "Ubuntu", sans-serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.cm-tl {
  font-family: "Ubuntu", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #999;
  margin-top: 8px;
}

.cm-lk {
  font-family: "Ubuntu", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-bottom: 1px solid #222;
  padding-bottom: 4px;
  align-self: flex-end;
  flex-shrink: 0;
  transition:
    color 0.2s,
    gap 0.2s;
}

.cm-lk:hover {
  color: #fff;
  gap: 14px;
}

.cm-lk svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* gallery wrapper */
.cm-gw {
  padding: 28px 48px 0;
  position: relative;
  isolation: isolate;
}

/* gallery strip */
.cm-gl {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cm-gl::-webkit-scrollbar {
  display: none;
}

/* All items 58% wide — ~1.7 images visible, second peeks from right */
.cm-gi {
  flex: 0 0 58%;
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #222;
  position: relative;
}

/* 3:2 ratio, no cropping — images are 1500×1000px */
.cm-gi img,
.cm-gi picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cm-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background: #111;
  font-family: "Ubuntu", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #222;
}

/* Caption — discreet label, bottom-right corner of each image */
.cm-gi-caption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: "Ubuntu", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: #ee3d96;
  padding: 4px 9px;
  line-height: 1.5;
  pointer-events: none;
}

/* Gallery arrows — small 40×40 buttons, vertically centred on the image.
   Arrows are direct <button> elements (not wrappers) placed after .cm-gl
   in the DOM so they are never buried by the scroll container.
   Image at 58% of 1160px ≈ 672px wide → 3:2 height ≈ 448px
   top = 28px (gw padding) + 224px (half image) - 20px (half button)  */
.cm-garrow {
  position: absolute;
  top: calc(28px + 224px - 20px);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  padding: 0;
  font-family: "Ubuntu", sans-serif;
}

/* 48px = .cm-gw side padding; +12px puts button inside the image edge */
.cm-garrow.prev {
  left: 60px;
}
.cm-garrow.next {
  right: 60px;
}

.cm-garrow:hover,
.cm-garrow:focus-visible {
  background: #ee3d96;
  border-color: #ee3d96;
  outline: none;
}

.cm-garrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* gallery dots */
.cm-dt {
  display: flex;
  gap: 5px;
  margin: 10px 0 0 2px;
  cursor: pointer;
}

.cm-dt span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #222;
  transition:
    width 0.2s,
    border-radius 0.2s,
    background 0.2s;
}

.cm-dt span.on {
  background: #ee3d96;
  width: 16px;
  border-radius: 3px;
}

/* modal body grid */
.cm-by {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  padding: 36px 48px 48px;
}

/* case text */
.cm-tx p {
  font-family: "Ubuntu", sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: #d2d2d2;
  line-height: 1.8;
  margin-bottom: 14px;
}

.cm-tx h4 {
  font-family: "Ubuntu", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #777;
  margin: 22px 0 10px;
}

.cm-tx ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.cm-tx ul li {
  font-family: "Ubuntu", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: #d2d2d2;
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px solid #1a1a1a;
}

.cm-tx ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #ee3d96;
  opacity: 0.8;
}

/* side panel */
.cm-sd {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cm-sb {
  background: #0a0a0a;
  padding: 18px 20px;
  border-left: 2px solid transparent;
  transition: border-color 0.2s;
}

.cm-sb:hover {
  border-left-color: #999;
}

.cm-sl {
  font-family: "Ubuntu", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ee3d96;
  opacity: 0.8;
  margin-bottom: 8px;
}

.cm-sv {
  font-family: "Ubuntu", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: #d2d2d2;
  line-height: 1.65;
}

.cm-stags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.cm-stag {
  font-family: "Ubuntu", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  border: 1px solid #222;
  padding: 3px 8px;
  border-radius: 2px;
}

/* modal nav footer */
.cm-nv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  border-top: 1px solid #222;
}

.cm-nb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Ubuntu", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 5px;
  transition:
    color 0.2s,
    gap 0.2s;
}

.cm-nb:hover,
.cm-nb:focus-visible {
  color: #fff;
  gap: 14px;
  outline: none;
}

.cm-nb svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cm-ct {
  font-family: "Ubuntu", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #555;
}

/* responsive — tablet */
@media (max-width: 900px) {
  .cm-by {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cm-hd {
    flex-direction: column;
    align-items: flex-start;
  }
  .cm-lk {
    align-self: flex-start;
  }
  .cm-garrow.prev {
    left: 60px;
  }
  .cm-garrow.next {
    right: 60px;
  }
  .cm-tx p,
  .cm-tx ul li {
    font-size: 1.4rem;
  }
  .cm-sv {
    font-size: 1.4rem;
  }
}

/* responsive — mobile */
@media (max-width: 640px) {
  .cm-bd {
    padding: 0;
    align-items: flex-start;
  }
  .cm-mo {
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
  }
  .cm-hd,
  .cm-gw,
  .cm-by,
  .cm-nv {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* One image at a time on mobile, native 3:2 ratio */
  .cm-gi {
    flex: 0 0 100%;
  }

  .cm-gi img,
  .cm-gi picture img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .cm-ph {
    aspect-ratio: 3 / 2;
    height: auto;
  }

  /* Arrow centred on 3:2 image: width = 100vw-32px, height = /1.5
       top = 16px (gw padding) + height/2 - 17px (half button)     */
  .cm-garrow {
    display: none;
  }

  .cm-gi-caption {
    font-size: 0.75rem;
    padding: 3px 7px;
  }

  /* Case text — larger on mobile */
  .cm-tx p,
  .cm-tx ul li {
    font-size: 1.4rem;
  }
  .cm-tx h4 {
    font-size: 1.3rem;
  }
  .cm-sv {
    font-size: 1.4rem;
  }
  .cm-sl {
    font-size: 1.1rem;
  }
  .cm-stag {
    font-size: 1rem;
  }
  .cm-ti {
    font-size: 2.2rem;
  }
  .cm-tl {
    font-size: 1.4rem;
  }
}

/* ===================================================================
 * # language switcher
 * ------------------------------------------------------------------- */

/* --- hero social: EN circle button --- */
.home-social .lang-switch i.lang-switch__label {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.5px;
  color: #ee3d96;
  right: 0;
  text-align: center;
  display: inline-block;
  width: 33px;
  height: 33px;
  background-color: rgba(0, 0, 0, 0.8);
  line-height: calc(33px - 4px);
  border: 2px solid #ee3d96;
  border-radius: 50%;
}

.home-social .lang-switch:hover i.lang-switch__label,
.home-social .lang-switch:focus i.lang-switch__label {
  background-color: rgba(238, 61, 150, 0.15);
}

/* --- nav menu: EN text link --- */
.header-nav__social-sep {
  display: inline-block;
  margin-right: 12px;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.4rem;
  vertical-align: middle;
  user-select: none;
}

.header-nav__lang-switch {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ee3d96;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav__lang-switch:hover,
.header-nav__lang-switch:focus {
  color: #ffffff;
}
