/* DN Lumen Studio — visual system inspired by the old official site's
   warm dark-gold rhythm, without copying outdated copy or hotlinking images. */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --background: #141414;
  --foreground: #f5f3ee;
  --oak: #dfb668;
  --oak-deep: #c9a055;
  --muted: #b8b3a8;
  --line: #2e2c28;
  --stone: #1a1a1a;
  --card: #222222;
  --ivory: #f5f3ee;
  --gold: #dfb668;
  --gold-soft: #ada17e;
  --ink: #141414;
  --ink-2: #1a1a1a;
  --ink-3: #111111;
}

::selection {
  color: #141414;
  background: #dfb668;
}

/* ---------- Hero: Ken Burns + dark gradient overlay ---------- */
.dnl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92svh, 58rem);
  background: #111111;
  color: #f3efe8;
  display: flex;
  align-items: flex-end;
}
.dnl-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.dnl-hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
}
.dnl-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transform-origin: center center;
}
.dnl-hero__media img {
  animation: dnl-kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}
.dnl-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0.08) 32%, rgba(10, 10, 10, 0.42) 68%, rgba(8, 8, 8, 0.82) 100%),
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.32) 100%);
}
.dnl-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4.25rem;
}
@media (min-width: 640px) {
  .dnl-hero__content { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .dnl-hero {
    min-height: calc(100svh - 5.25rem);
  }
  .dnl-hero__content { padding: 6rem 1.5rem 5.5rem; }
}
.dnl-kicker {
  font-family: Poppins, "Noto Sans TC", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.dnl-hero h1 {
  margin-top: 1rem;
  max-width: 16ch;
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  line-height: 1.2;
  color: #f7f3ec;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.dnl-hero .dnl-sub {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: rgba(243, 239, 232, 0.78);
}
.dnl-hero .dnl-lead {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.06em;
  font-weight: 300;
  color: rgba(243, 239, 232, 0.9);
}
.dnl-hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .dnl-hero__actions { flex-direction: row; }
}
.dnl-hero__actions a {
  min-height: 2.75rem;
}
.dnl-btn-gold {
  background: var(--gold) !important;
  color: #1a1a1a !important;
}
.dnl-btn-gold:hover {
  background: #c9a055 !important;
  color: #1a1a1a !important;
}
.dnl-btn-ghost {
  border-color: rgba(243, 239, 232, 0.45) !important;
  color: #f3efe8 !important;
  background: transparent !important;
}
.dnl-btn-ghost:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

@keyframes dnl-kenburns {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(1.4%, 0.6%, 0); }
}

/* ---------- Image hover zoom + dark overlay ---------- */
.media-zoom,
.journal-card .overflow-hidden,
.archive-grid button,
a.group .overflow-hidden,
.dnl-shot {
  position: relative;
  overflow: hidden;
}
.media-zoom img,
.media-zoom picture,
.journal-card .overflow-hidden img,
.journal-card .overflow-hidden picture,
.archive-grid img,
.archive-grid picture,
a.group .overflow-hidden img,
a.group .overflow-hidden picture,
.dnl-shot img,
.dnl-shot picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 1.15s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.media-zoom::after,
.journal-card .overflow-hidden::after,
.archive-grid button::after,
a.group .overflow-hidden::after,
.dnl-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.38) 100%),
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.18) 100%);
  transition: opacity 0.8s ease;
}
@media (hover: hover) and (pointer: fine) {
  .media-zoom:hover img,
  .media-zoom:hover picture,
  .journal-card:hover .overflow-hidden img,
  .journal-card:hover .overflow-hidden picture,
  .archive-grid button:hover img,
  .archive-grid button:hover picture,
  a.group:hover .overflow-hidden img,
  a.group:hover .overflow-hidden picture,
  .dnl-shot:hover img,
  .dnl-shot:hover picture {
    transform: scale(1.07);
  }
}

/* Override the previous short 1.02 hover on Next group pictures */
.group .transition.duration-500 {
  transition-duration: 1.15s !important;
}

/* ---------- Homepage dark chapters: About / Concept / Service / Vision / Info ---------- */
.dnl-hs {
  background: #1a1a1a;
  color: #f3efe8;
  overflow: hidden;
}
.dnl-hs a { color: inherit; }

.dnl-about {
  padding: 6.25rem 5% 2rem;
}
.dnl-about__row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3%;
  max-width: 1200px;
  margin: 0 auto;
}
.dnl-about__shot {
  flex: 1 1 52%;
  min-height: 22rem;
  max-width: 640px;
}
.dnl-about__shot img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}
.dnl-about__copy {
  flex: 0 1 550px;
  width: 550px;
  max-width: 100%;
  padding-top: 0.4rem;
}

.dnl-brand-line {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}
.dnl-en {
  font-family: Poppins, "Noto Sans TC", sans-serif;
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-transform: uppercase;
}
.dnl-zh {
  display: block;
  margin-top: 1.15rem;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.dnl-body {
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.9;
  letter-spacing: 0.14em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}
.dnl-btn-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 80%;
  max-width: 300px;
  margin-top: 3rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid #5e5e5e;
  border-radius: 999px;
  color: #c2bcb4;
  letter-spacing: 0.14em;
  font-family: Poppins, sans-serif;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  z-index: 1;
  transition: color 0.4s ease;
}
.dnl-btn-more::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gold);
  transition: width 0.45s ease;
  z-index: -1;
}
.dnl-btn-more:hover {
  color: #1a1a1a;
  border-color: var(--gold);
}
.dnl-btn-more:hover::before { width: 100%; }

.dnl-concept {
  position: relative;
  z-index: 1;
  padding: 1rem 5% 0;
}
.dnl-concept::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100px;
  background: #1a1a1a;
  z-index: -1;
}
.dnl-concept__bg {
  position: absolute;
  top: -4vw;
  left: 0;
  width: min(50vw, 910px);
  max-width: 910px;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}
.dnl-concept__bg img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: contrast(1.04);
}
.dnl-concept__row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6%;
  max-width: 1200px;
  margin-left: auto;
}
.dnl-concept__copy {
  width: 550px;
  max-width: 100%;
  margin-right: 4%;
}
.dnl-rule {
  display: block;
  width: 60px;
  height: 5px;
  margin-bottom: 1.7rem;
  background: var(--gold);
}
.dnl-concept__shot {
  flex: 0 1 42%;
  max-width: 520px;
  min-width: 240px;
}
.dnl-concept__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dnl-service {
  background: #1a1a1a;
  padding: 4.5rem 5% 6.25rem;
}
.dnl-service__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.dnl-service__grid {
  margin-top: 4.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem 5%;
  text-align: center;
}
.dnl-service__card {
  padding: 3rem 0.9rem 2.4rem;
  border: 1px solid #ccc;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.dnl-service__num {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.dnl-service__card p {
  margin-top: 1.15rem;
  font-size: 0.98rem;
  line-height: 1.8;
  letter-spacing: 0.14em;
  color: #fff;
}
.dnl-service__card:hover {
  border-color: var(--gold);
  background: rgba(223, 182, 104, 0.06);
}

.dnl-vision {
  background: #1a1a1a;
}
.dnl-vision__copy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.25rem 5% 4.25rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8%;
}
.dnl-vision__copy p {
  width: 575px;
  max-width: 100%;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.9;
  letter-spacing: 0.14em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}
.dnl-vision__shot {
  display: block;
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}
.dnl-vision__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dnl-info {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: #1a1a1a;
}
.dnl-info__copy {
  width: calc(465px + 5%);
  min-width: min(470px, 100%);
  padding: 4.5rem 5% 4.5rem 5%;
}
.dnl-info__grid {
  margin: 4.25rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8%;
  row-gap: 2.8rem;
}
.dnl-info__item {
  position: relative;
  padding-left: 1.15rem;
}
.dnl-info__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
}
.dnl-info__item h3 {
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #ffc300;
  font-weight: 500;
}
.dnl-info__item p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.8;
  letter-spacing: 0.12em;
  font-weight: 400;
  color: #dddddd;
}
.dnl-info__shot {
  flex: 1 1 48%;
  min-height: 22rem;
  overflow: hidden;
}
.dnl-info__shot img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: left center;
}

@media (max-width: 1024px) {
  .dnl-about__row {
    flex-direction: column-reverse;
    align-items: center;
  }
  .dnl-about__copy { width: 100%; margin-bottom: 1.75rem; }
  .dnl-about__shot { width: 100%; max-width: none; min-height: 18rem; }
  .dnl-info { flex-direction: column; }
  .dnl-info__copy { width: 100%; min-width: 0; }
  .dnl-info__shot { min-height: 18rem; }
}
@media (max-width: 768px) {
  .dnl-about { padding: 4.5rem 5% 1.75rem; }
  .dnl-hero { min-height: 86svh; }
  .dnl-hero__content { padding: 4rem 1.15rem 3.25rem; }
  .dnl-concept__row { flex-direction: column; }
  .dnl-concept__copy { margin: 4rem auto 3rem; }
  .dnl-concept__shot { width: 100%; max-width: none; }
  .dnl-concept__bg { top: -10vw; opacity: 0.30; }
  .dnl-service__grid { grid-template-columns: 1fr 1fr; }
  .dnl-vision__copy { flex-direction: column; padding: 4.5rem 5% 3rem; gap: 1.25rem; }
  .dnl-vision__shot { aspect-ratio: 2 / 1; }
}
@media (max-width: 568px) {
  .dnl-vision__shot { aspect-ratio: 4 / 3; }
  .dnl-service__card { padding: 2rem 0.6rem; }
  .dnl-info__grid { grid-template-columns: 1fr; margin: 3rem 0; row-gap: 1.8rem; }
}

/* ---------- Gentle section entrance ---------- */
[data-animate-in] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
[data-animate-in="up"] { transform: translate3d(0, 18px, 0); }
[data-animate-in="down"] { transform: translate3d(0, -16px, 0); }
[data-animate-in="left"] { transform: translate3d(-4%, 0, 0); }
[data-animate-in="right"] { transform: translate3d(4%, 0, 0); }
[data-animate-in="fadeIn"] { transform: none; }
[data-animate-in].is-in {
  opacity: 1;
  transform: none;
}

/* Light-page polish to sit with the warmer palette */
.journal-filters button.is-active,
.journal-filters button[aria-pressed="true"],
.portfolio-filters button.is-active {
  background: #1a1a1a;
  color: #f3efe8;
  border-color: #1a1a1a;
}

@media (prefers-reduced-motion: reduce) {
  .dnl-hero__media img { animation: none !important; transform: scale(1.02); }
  .media-zoom img,
  .media-zoom picture,
  .journal-card .overflow-hidden img,
  .archive-grid img,
  a.group .overflow-hidden img,
  .dnl-shot img,
  .group .transition.duration-500 {
    transition: none !important;
    transform: none !important;
  }
  [data-animate-in],
  [data-animate-in].is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* Materials: imported hardware notes */
.dnl-hw {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.75rem;
  max-width: 48rem;
}
.dnl-hw h3 {
  font-family: var(--font-noto-serif), "Noto Serif TC", serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--foreground);
}
.dnl-hw p {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--muted);
}


/* ---- Site-wide dark luxury polish ---- */
body {
  background: var(--background);
  color: var(--foreground);
}
header.sticky {
  background: rgba(20, 20, 20, 0.92) !important;
  border-bottom-color: rgba(223, 182, 104, 0.18) !important;
}
header.sticky a.min-w-0 > span.font-serif { color: #f5f3ee; }
.bg-oak,
a.bg-oak,
button.bg-oak {
  background-color: #dfb668 !important;
  color: #141414 !important;
}
.hover\:bg-oak-deep:hover,
a.bg-oak:hover,
button.bg-oak:hover {
  background-color: #c9a055 !important;
  color: #141414 !important;
}
.bg-oak.text-background,
.bg-oak.text-ivory { color: #141414 !important; }

.journal-filters button {
  border: 1px solid rgba(223, 182, 104, 0.35);
  color: #f5f3ee;
  background: transparent;
}
.journal-filters button.is-active,
.journal-filters button[aria-pressed="true"],
.portfolio-filters button.is-active {
  background: #dfb668 !important;
  color: #141414 !important;
  border-color: #dfb668 !important;
}
.portfolio-filters button {
  border: 1px solid rgba(223, 182, 104, 0.35);
  color: #f5f3ee;
}
.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .journal-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1100px) {
  .journal-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.journal-card {
  display: none;
  background: #222222;
  border: 1px solid #2e2c28;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.4s ease, transform 0.6s ease;
}
.journal-card.is-visible { display: flex; }
.journal-card:hover { border-color: rgba(223, 182, 104, 0.55); }
.journal-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
}
.journal-card__media img,
.journal-card__media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-card__body { padding: 1.2rem 1.3rem 1.45rem; }
.journal-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #ada17e;
}
.journal-card__body h2 {
  margin-top: 0.65rem;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #f5f3ee;
}
.journal-card__excerpt {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #b8b3a8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

article h1 { color: #f5f3ee; }
article h2 { color: #dfb668; }
article .text-foreground\/90,
article p { color: rgba(245, 243, 238, 0.92); }
article img,
article picture {
  border-radius: 0.35rem;
  overflow: hidden;
}
article p { line-height: 2; }

input, textarea, select {
  background: #222222;
  color: #f5f3ee;
  border-color: #3a3833;
}
.lightbox { background: rgba(10, 10, 10, 0.92); }

.dnl-about-hero {
  background:
    linear-gradient(180deg, rgba(20,20,20,0.35), rgba(20,20,20,0.82)),
    #1a1a1a;
  color: #f5f3ee;
}

/* Magazine journal cards: hover zoom on cover */
.journal-card__media {
  overflow: hidden;
  border-radius: 0.15rem 0.15rem 0 0;
}
.journal-card__media img,
.journal-card__media picture {
  transition: transform 1.15s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .journal-card:hover .journal-card__media img,
  .journal-card:hover .journal-card__media picture {
    transform: scale(1.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .journal-card:hover .journal-card__media img,
  .journal-card:hover .journal-card__media picture {
    transform: none;
  }
}

/* Article reading typography */
article img,
article picture {
  border-radius: 0.75rem;
}
article .overflow-hidden {
  border-radius: 0.75rem;
  overflow: hidden;
}
article h2 { letter-spacing: 0.04em; }
article p { line-height: 2; }

.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}
.journal-filters button {
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

article ul, article ol {
  margin: 0.35rem 0 0.85rem;
}
article li {
  line-height: 2;
  color: rgba(245, 243, 238, 0.92);
}

/* ---------- Hero carousel (homepage only) ---------- */
.dnl-hero__media[data-hero-carousel] picture {
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.15s ease;
}
.dnl-hero__media[data-hero-carousel] picture.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.dnl-hero__media[data-hero-carousel] picture:not(.is-active) img {
  animation: none;
  transform: scale(1.02);
}
.dnl-hero__media[data-hero-carousel] picture.is-active img {
  animation: dnl-kenburns-slide 16s ease-out forwards;
  will-change: transform;
}
@keyframes dnl-kenburns-slide {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.10) translate3d(1.2%, 0.5%, 0); }
}
.dnl-hero__nav {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.dnl-hero__nav button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 232, 0.62);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.dnl-hero__nav button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}
.dnl-hero__nav button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .dnl-hero__media[data-hero-carousel] picture {
    transition: none;
  }
}
