/* ==========================================================================
   NAUTILUS — Domains · Section 3: One craft, every environment
   Light grey. Four large link cards: icon, one-word category, name, arrow. Prefix dp-.
   Colours are fixed (not from the theme): the section is always light.
   ========================================================================== */
.dp{
  --dp-wine: #79182D;
  --dp-hfont: var(--heading-font, 'Exo 2', sans-serif);
  --dp-hw: var(--font-weight-heading, 600);
  --dp-ease: cubic-bezier(.16, 1, .3, 1);
  background: #F2F2F3; color: #000; padding: 110px 0 120px;
}
.dp-eyebrow{ display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--dp-hfont); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #000; }
.dp-eyebrow::before{ content: ""; width: 10px; height: 10px; border-radius: 50%; background: #000; box-shadow: 0 0 0 6px #E0E0E3; margin-left: 6px; }
.dp-title{ margin: 0; max-width: 820px; font-family: var(--dp-hfont); font-weight: var(--dp-hw); text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.01em; color: #000; }
.dp-cards{ list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dp-card{ position: relative; display: flex; flex-direction: column; height: 100%; min-height: 300px; box-sizing: border-box; padding: 30px 28px 28px;
  overflow: hidden; text-decoration: none; color: #000; background: #fff; border: 1px solid #DCDCDC; border-radius: 16px;
  transition: transform .45s var(--dp-ease), box-shadow .45s var(--dp-ease), border-color .3s; }
/* faint orbit lines in the corner: the same drawing language as the rest of the site */
.dp-card::before{ content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%;
  border: 1px dashed rgba(121,24,45,.22); transition: transform 1.2s var(--dp-ease); }
.dp-card::after{ content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.06); }
.dp-ico{ position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(121,24,45,.07); transition: background .35s; }
.dp-ico svg{ width: 38px; height: 38px; fill: none; stroke: var(--dp-wine); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.dp-cat{ margin-top: auto; padding-top: 40px; font-family: var(--dp-hfont); font-weight: var(--dp-hw); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dp-wine); }
.dp-name{ margin-top: 8px; padding-right: 40px; font-family: var(--dp-hfont); font-weight: var(--dp-hw); font-size: 21px; line-height: 1.22; color: #000; }
.dp-arrow{ position: absolute; right: 26px; bottom: 28px; width: 18px; height: 18px; fill: none; stroke: #000; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--dp-ease), stroke .3s; }
.dp-card:hover{ transform: translateY(-6px); border-color: var(--dp-wine); box-shadow: 0 22px 40px -28px rgba(121,24,45,.55); }
.dp-card:hover::before{ transform: rotate(60deg); }
.dp-card:hover .dp-ico{ background: var(--dp-wine); }
.dp-card:hover .dp-ico svg{ stroke: #fff; }
.dp-card:hover .dp-arrow{ transform: translate(3px,-3px); stroke: var(--dp-wine); }
.dp-card:focus-visible{ outline: 2px solid var(--dp-wine); outline-offset: 4px; }
/* entrance */
.dp-cards li{ opacity: 0; transform: translateY(18px); }
.dp.is-in .dp-cards li{ opacity: 1; transform: none; transition: opacity .6s ease calc(var(--i, 0) * .1s), transform .7s var(--dp-ease) calc(var(--i, 0) * .1s); }
.dp-cards li:nth-child(1){ --i: 0; } .dp-cards li:nth-child(2){ --i: 1; } .dp-cards li:nth-child(3){ --i: 2; } .dp-cards li:nth-child(4){ --i: 3; }
@media (max-width: 1099px){ .dp-cards{ grid-template-columns: repeat(2, 1fr); } .dp-card{ min-height: 250px; } }
@media (max-width: 575px){
  .dp{ padding: 80px 0 90px; }
  .dp-cards{ grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .dp-card{ min-height: 0; flex-direction: row; align-items: center; gap: 18px; padding: 20px 52px 20px 20px; }
  .dp-ico{ flex: none; width: 56px; height: 56px; } .dp-ico svg{ width: 30px; height: 30px; }
  .dp-cat{ display: none; } .dp-name{ margin: 0; padding: 0; font-size: 18px; }
  .dp-arrow{ top: 50%; bottom: auto; margin-top: -9px; right: 20px; }
}
@media (prefers-reduced-motion: reduce){ .dp-cards li{ opacity: 1; transform: none; transition: none !important; } .dp-card, .dp-card::before, .dp-arrow{ transition: none; } }
