/* Homepage sections. Values ported 1:1 from the approved Claude Design export. Phone layout = max-width 479px. */
:root { --section-gap: clamp(50px, 6vw, 80px); --pg: clamp(20px, 5vw, 60px); }
@media (max-width: 479px) { :root { --section-gap: 40px; --pg: 16px; } }

.dm-page-root { width: 100%; overflow-x: hidden; background: #fff; }

/* Shared section header */
.sec-head { max-width: 1180px; margin: 0 auto; display: flex; flex-flow: row wrap; gap: 40px; justify-content: space-between; }
.sec-head-title { flex: 1 1 320px; text-align: left; }
.sec-head-desc { flex: 1 1 320px; max-width: 520px; }
.eyebrow { color: #6e6e74; font-size: 1.25rem; font-weight: 400; text-align: left; }
.sec-title { margin-top: 9px; color: #1d1d1f; font-size: 1.85rem; font-weight: 600; text-align: left; }
@media (max-width: 479px) {
  .sec-head { flex-direction: column; gap: 20px; }
  .sec-head-title { flex: none; text-align: center; }
  .sec-head-desc { flex: none; max-width: none; }
  .eyebrow, .sec-title { text-align: left; }
}

/* Hero */
.page-top { position: relative; }
.blob { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1534px; pointer-events: none; z-index: 0; }
.blob img { display: block; width: 1534px; max-width: none; pointer-events: none; }
.hero { position: relative; overflow: hidden; height: 625px; padding: clamp(40px, 8vw, 90px) clamp(20px, 5vw, 60px) 0; }
.hero-content { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; top: 120px; text-align: center; }
.hero-eyebrow { color: #6e6e74; font-size: 1rem; font-weight: 500; line-height: 1; margin-bottom: 18px; }
.hero h1 { line-height: 1; font-weight: inherit; }
.hero-line1-wrap { display: block; overflow: hidden; }
.hero-line1 { display: block; color: #6e6e74; font-size: 2rem; font-weight: 400; }
.hero-line2 { display: block; color: #1d1d1f; font-size: clamp(2rem, 5.5vw, 3.75rem); margin-top: 9px; }
.hero-line2 span { display: inline-block; }
.hero-line2 .w { font-weight: 600; font-size: 2.65rem; }
.hero-line2 .w-strong { font-weight: 800; font-size: 2.95rem; }
.hero-desc { max-width: 721px; margin: 29px auto 0; color: #6e6e74; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.hero-cta-row { display: flex; flex-flow: row wrap; justify-content: center; gap: 32px; margin-top: 56px; }
.btn-book { display: flex; align-items: center; width: 196px; height: 60px; background: #000305; color: #fff; font-weight: 700; font-size: 0.9375rem; padding: 0 9px 0 22px; border-radius: 9999px; box-shadow: 0 16.6px 32.4px -5.8px rgba(0, 0, 0, 0.26); }
.btn-book:hover { color: #fff; }
.btn-book .dm-arrow { margin-left: auto; width: 43px; height: 43px; background: #f8f8f8; }
.btn-book .dm-arrow img { width: 15.57px; height: 11.13px; }
@media (max-width: 479px) {
  .hero { height: auto; padding: clamp(24px, 8vw, 90px) 16px 40px; }
  .hero-content { top: 0; text-align: left; }
  .hero-cta-row { flex-direction: column; justify-content: flex-start; gap: 16px; }
  .btn-book { width: 100%; font-size: 1rem; }
}

/* Work Glimpse (visuals pending — see js/glimpse-data.js) */
.glimpse { padding: 32px 0; }
.glimpse-box { width: 100vw; margin-inline: calc(50% - 50vw); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 16px 0; aspect-ratio: 3 / 1; }
.glimpse-row { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.glimpse-track { display: flex; gap: 24px; padding-right: 24px; position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.glimpse-track.ltr { animation: dm-glimpse-ltr 35s linear infinite; }
.glimpse-track.rtl { animation: dm-glimpse-rtl 34s linear infinite; }
.glimpse-tile { height: 100%; aspect-ratio: 16 / 9; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: #333; }
.glimpse-tile img { width: 100%; height: 100%; object-fit: cover; }
@keyframes dm-glimpse-ltr { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes dm-glimpse-rtl { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 600px) { .glimpse-box { aspect-ratio: 2 / 1; } }
@media (max-width: 479px) {
  .glimpse { padding: 32px 16px; }
  .glimpse-box { width: auto; max-width: 1180px; margin: 0 auto; border-radius: 24px; gap: 8px; padding: 8px 0; }
  .glimpse-track { gap: 10px; padding-right: 10px; }
  .glimpse-track.ltr { animation-duration: 22s; }
  .glimpse-track.rtl { animation-duration: 23s; }
}
@media (prefers-reduced-motion: reduce) { .glimpse-track { animation: none !important; } }

/* Services */
.services { padding: 32px var(--pg); margin-block: var(--section-gap); }
.services .sec-title { margin-top: 6px; }
.services-desc { color: #6b6f74; font-size: 1rem; line-height: 1.6; }
.folders { max-width: 1180px; margin: 70px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.dm-folder { width: 336px; height: 423px; flex-shrink: 0; }
.dm-folder .sf-card { transform: translate(0, 0); transition: transform 700ms var(--ease-out); }
.dm-folder:focus-within .sf-card-left { transform: translate(-14px, -34px); }
.dm-folder:focus-within .sf-card-center { transform: translate(0, -46px); }
.dm-folder:focus-within .sf-card-right { transform: translate(14px, -34px); }
@media (hover: hover) and (pointer: fine) {
  .dm-folder:hover .sf-card-left { transform: translate(-14px, -34px); transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1) 0ms; }
  .dm-folder:hover .sf-card-center { transform: translate(0, -46px); transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1) 50ms; }
  .dm-folder:hover .sf-card-right { transform: translate(14px, -34px); transition: transform 640ms cubic-bezier(0.16, 1, 0.3, 1) 100ms; }
}
@media (hover: none), (pointer: coarse) {
  .dm-folder .sf-card-left { transform: translate(-14px, -34px); }
  .dm-folder .sf-card-center { transform: translate(0, -46px); }
  .dm-folder .sf-card-right { transform: translate(14px, -34px); }
}
@media (prefers-reduced-motion: reduce) {
  .dm-folder * { transition: none !important; }
  .dm-folder:hover .sf-card, .dm-folder:focus-within .sf-card { transform: none !important; }
}
.services-connector { max-width: 900px; margin: 32px auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(29, 29, 31, 0.16), transparent); transform: scaleX(0); transform-origin: center; opacity: 0; transition: transform 700ms var(--ease-out), opacity 700ms ease-out; }
.services-connector.dm-in { transform: scaleX(1); opacity: 1; }
.services-foot { color: #1d1d1f; font-size: 1.6rem; font-weight: 400; margin-top: 70px; text-align: center; min-height: 37px; }
@media (max-width: 479px) {
  .services { padding-block: 24px; }
  .folders { margin-top: 32px; gap: 8px; }
  .services-foot { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .services-connector { transition: none !important; opacity: 1 !important; transform: none !important; } }

/* Work */
.work { padding: 0 var(--pg); margin-bottom: var(--section-gap); }
.work-panel { width: 100%; margin: 0 auto; border-radius: 48px; padding: clamp(28px, 5vw, 80px); background: #e5e9eb; }
.work-inner { max-width: 1180px; margin: 0 auto; }
.work .sec-head { margin-bottom: 70px; }
.work .eyebrow { color: #5c5c62; }
.work-desc { max-width: 651px; color: #1d1d1f; font-size: 1rem; font-weight: 400; line-height: 28px; }
.work-list { display: flex; flex-direction: column; gap: 70px; }
.dm-workcard { background: #fff; border-radius: 40px; padding: clamp(16px, 3vw, 41px); display: flex; flex-flow: row wrap; gap: 40px; align-items: center; }
.workcard-img { flex: 1 1 300px; max-width: 472px; aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden; background: #f6f6f6; }
.workcard-img img { width: 100%; height: 100%; object-fit: cover; }
.dm-workcard-img { transition: transform 400ms var(--ease-out); }
.workcard-body { flex: 1 1 320px; max-width: 654px; display: flex; flex-direction: column; gap: 40px; }
.workcard-text { display: flex; flex-direction: column; gap: 20px; }
.workcard-text-inner { display: flex; flex-direction: column; gap: 8px; }
.workcard-cat { color: #6e6e74; font-size: 1.25rem; font-weight: 400; line-height: 28px; }
.workcard-title { color: #1d1d1f; font-size: 3rem; font-weight: 600; line-height: 58px; }
.workcard-desc { color: #1d1d1f; font-size: 1.25rem; font-weight: 400; line-height: 28px; }
.workcard-cta { width: 200px; height: 60px; position: relative; display: flex; align-items: center; background: #000305; box-shadow: 0 16.6px 32.4px -5.8px rgba(0, 0, 0, 0.26); border-radius: 9999px; padding: 0 9px 0 22px; }
div.workcard-cta { background: #828282; }
.workcard-cta:hover { color: #fff; }
.workcard-cta > span:first-child { color: #fff; font-weight: 700; font-size: 0.9375rem; }
.workcard-cta .dm-arrow { margin-left: auto; width: 36px; height: 36px; background: #f8f8f8; }
.workcard-cta .dm-arrow img { width: 13px; height: 9.3px; }
@media (hover: hover) and (pointer: fine) {
  .dm-workcard { transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
  .dm-workcard:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.14); }
  .dm-workcard:hover .dm-workcard-img { transform: scale(1.02); }
}
@media (max-width: 479px) {
  .work .sec-head { margin-bottom: 32px; }
  .dm-workcard { border-radius: 20px; padding: 21px 16px; flex-direction: column; gap: 16px; align-items: stretch; }
  .workcard-img { flex: none; max-width: none; height: 172px; aspect-ratio: auto; border-radius: 12px; }
  .workcard-body { flex: none; max-width: none; gap: 20px; }
  .workcard-cat { font-size: 0.875rem; line-height: 18px; }
  .workcard-title { font-size: 1.25rem; line-height: 30px; }
  .workcard-desc { font-size: 0.875rem; line-height: 20px; }
  .workcard-cta { width: 100%; }
  .workcard-cta > span:first-child { font-size: 1rem; }
}

/* Process */
.process { padding: 40px var(--pg); height: 922px; margin-bottom: var(--section-gap); }
.process-inner { max-width: 1180px; margin: 30px auto; height: 792px; }
.process .sec-head { margin-bottom: 50px; padding-block: 20px; }
.process-desc { color: #6e6e74; font-size: 1rem; font-weight: 400; line-height: 28px; }
.process-row { display: flex; flex-flow: row wrap; gap: 103px; padding-block: 110px; }
.process-tabs { flex: 0 1 220px; display: flex; flex-direction: column; gap: 46px; position: relative; }
.process-tabs::before { content: ''; position: absolute; left: 2px; top: 0; width: 3px; height: 100%; background: rgba(0, 0, 0, 0.11); z-index: 0; }
.process-tab { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; flex-shrink: 0; }
.process-ind { width: 5px; height: 28px; border-radius: 22px; flex-shrink: 0; }
.process-tab.is-active .process-ind { background: #fe5610; }
.process-tab button { all: unset; cursor: pointer; text-align: left; white-space: nowrap; font-size: 1.25rem; font-family: inherit; }
.process-tab button:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.35); outline-offset: 4px; border-radius: 4px; }
.process-card { flex: 1 1 380px; width: 100%; position: relative; }
.process-card .panel { display: none; }
.process-card .panel.is-active { display: block; }
.process-card.dm-step-fading { opacity: 0.25 !important; transition: opacity 200ms ease !important; }
.process-card.dm-step-fade-in { animation: dmStepIn 650ms var(--ease-out); }
.process-mobile-card { display: none; }
@media (max-width: 479px) {
  .process { padding: 40px 16px 48px; height: auto; }
  .process-inner { margin: 20px auto; height: auto; }
  .process .sec-head { margin-bottom: 32px; padding-bottom: 0; }
  .process-row { flex-direction: column; gap: 24px; padding-block: 24px; }
  .process-tabs { flex: none; flex-direction: row; gap: 28px; overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .process-tabs::before { display: none; }
  .process-tab { gap: 8px; flex-direction: column-reverse; }
  .process-ind { width: 100%; height: 3px; }
  .process-card { flex: 1 1 auto; }
  .process-card .panel { display: none !important; }
  .process-mobile-card { display: block; }
}
@media (prefers-reduced-motion: reduce) { .process-card.dm-step-fade-in { animation: none !important; } }

/* About */
.about { padding: 80px var(--pg); position: relative; margin-bottom: var(--section-gap); }
.about-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.about .sec-head { gap: 32px; align-items: flex-start; }
.about .sec-head-title, .about .sec-head-desc { flex: 1 1 0; min-width: 0; max-width: none; }
.about .sec-title { white-space: pre-line; }
.about-desc p { color: #6e6e74; font-size: 1rem; font-weight: 400; line-height: 28px; margin: 0 0 16px; }
.about-desc p:last-child { margin: 0; }
.about-cards { position: relative; margin-top: 70px; padding: 50px 0; }
.about-row { position: relative; z-index: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: clamp(60px, 10vw, 147px); }
.about-card { flex: 1 1 0; min-width: 0; width: 100%; border-radius: 48px; background: rgba(255, 255, 255, 0.53); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 54px 74px 0 rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; gap: 33px; padding: 30px; }
.about-photo { width: 196px; height: 235px; margin: 0 auto; }
.about-namerow { align-self: stretch; display: flex; flex-direction: row; gap: 33px; justify-content: flex-end; align-items: center; }
.about-nameblock { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.about-name { font-size: 2rem; font-weight: 600; line-height: 100%; color: rgb(29, 29, 31); }
.about-role { font-size: 1.125rem; }
.about-li { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.about-li img { width: 44px; height: 44px; }
.about-bio { align-self: stretch; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.about-bio-label { font-size: 1rem; }
.about-bio ul { list-style: none; margin: 0; padding: 0; align-self: stretch; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.about-bio li { font-size: 1rem; color: #6e6e74; }
@media (max-width: 479px) {
  .about { padding: 48px 16px; }
  .about .sec-head { gap: 20px; }
  .about .sec-head-title, .about .sec-head-desc { flex: none; }
  .about-cards { margin-top: 32px; padding: 24px 0; }
  .about-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .about-card { border-radius: 20px; gap: 20px; padding: 20px; }
  .about-namerow { gap: 16px; }
  .about-name { font-size: 1.5rem; }
  .about-role, .about-bio-label, .about-bio li { font-size: 0.875rem; }
}

@media (min-width: 480px) {
  .hero-desc,
  .services-desc,
  .work-desc,
  .process-desc,
  .about-desc p {
    font-size: 1.25rem;
    line-height: 1.6;
  }
}
